/*
 * Copyright (c) 2020. Kin-Hong Wong. All Rights Reserved.
 *
 * 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
 *
 *     http://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: object_detection/protos/calibration.proto

package object_detection.protos;

public final class Calibration {
  private Calibration() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * <pre>
   * Description of data used to fit the calibration model. CLASS_SPECIFIC
   * indicates that the calibration parameters are derived from detections
   * pertaining to a single class. ALL_CLASSES indicates that parameters were
   * obtained by fitting a model on detections from all classes (including the
   * background class).
   * </pre>
   *
   * Protobuf enum {@code object_detection.protos.TrainingDataType}
   */
  public enum TrainingDataType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>DATA_TYPE_UNKNOWN = 0;</code>
     */
    DATA_TYPE_UNKNOWN(0),
    /**
     * <code>ALL_CLASSES = 1;</code>
     */
    ALL_CLASSES(1),
    /**
     * <code>CLASS_SPECIFIC = 2;</code>
     */
    CLASS_SPECIFIC(2),
    ;

    /**
     * <code>DATA_TYPE_UNKNOWN = 0;</code>
     */
    public static final int DATA_TYPE_UNKNOWN_VALUE = 0;
    /**
     * <code>ALL_CLASSES = 1;</code>
     */
    public static final int ALL_CLASSES_VALUE = 1;
    /**
     * <code>CLASS_SPECIFIC = 2;</code>
     */
    public static final int CLASS_SPECIFIC_VALUE = 2;


    public final int getNumber() {
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static TrainingDataType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static TrainingDataType forNumber(int value) {
      switch (value) {
        case 0: return DATA_TYPE_UNKNOWN;
        case 1: return ALL_CLASSES;
        case 2: return CLASS_SPECIFIC;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<TrainingDataType>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        TrainingDataType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<TrainingDataType>() {
            public TrainingDataType findValueByNumber(int number) {
              return TrainingDataType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return object_detection.protos.Calibration.getDescriptor().getEnumTypes().get(0);
    }

    private static final TrainingDataType[] VALUES = values();

    public static TrainingDataType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private TrainingDataType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:object_detection.protos.TrainingDataType)
  }

  public interface CalibrationConfigOrBuilder extends
      // @@protoc_insertion_point(interface_extends:object_detection.protos.CalibrationConfig)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Class-agnostic calibration via linear interpolation (usually output from
     * isotonic regression).
     * </pre>
     *
     * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
     * @return Whether the functionApproximation field is set.
     */
    boolean hasFunctionApproximation();
    /**
     * <pre>
     * Class-agnostic calibration via linear interpolation (usually output from
     * isotonic regression).
     * </pre>
     *
     * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
     * @return The functionApproximation.
     */
    object_detection.protos.Calibration.FunctionApproximation getFunctionApproximation();
    /**
     * <pre>
     * Class-agnostic calibration via linear interpolation (usually output from
     * isotonic regression).
     * </pre>
     *
     * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
     */
    object_detection.protos.Calibration.FunctionApproximationOrBuilder getFunctionApproximationOrBuilder();

    /**
     * <pre>
     * Per-class calibration via linear interpolation.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
     * @return Whether the classIdFunctionApproximations field is set.
     */
    boolean hasClassIdFunctionApproximations();
    /**
     * <pre>
     * Per-class calibration via linear interpolation.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
     * @return The classIdFunctionApproximations.
     */
    object_detection.protos.Calibration.ClassIdFunctionApproximations getClassIdFunctionApproximations();
    /**
     * <pre>
     * Per-class calibration via linear interpolation.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
     */
    object_detection.protos.Calibration.ClassIdFunctionApproximationsOrBuilder getClassIdFunctionApproximationsOrBuilder();

    /**
     * <pre>
     * Class-agnostic sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
     * @return Whether the sigmoidCalibration field is set.
     */
    boolean hasSigmoidCalibration();
    /**
     * <pre>
     * Class-agnostic sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
     * @return The sigmoidCalibration.
     */
    object_detection.protos.Calibration.SigmoidCalibration getSigmoidCalibration();
    /**
     * <pre>
     * Class-agnostic sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
     */
    object_detection.protos.Calibration.SigmoidCalibrationOrBuilder getSigmoidCalibrationOrBuilder();

    /**
     * <pre>
     * Per-class sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
     * @return Whether the classIdSigmoidCalibrations field is set.
     */
    boolean hasClassIdSigmoidCalibrations();
    /**
     * <pre>
     * Per-class sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
     * @return The classIdSigmoidCalibrations.
     */
    object_detection.protos.Calibration.ClassIdSigmoidCalibrations getClassIdSigmoidCalibrations();
    /**
     * <pre>
     * Per-class sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
     */
    object_detection.protos.Calibration.ClassIdSigmoidCalibrationsOrBuilder getClassIdSigmoidCalibrationsOrBuilder();

    /**
     * <pre>
     * Temperature scaling calibration.
     * </pre>
     *
     * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
     * @return Whether the temperatureScalingCalibration field is set.
     */
    boolean hasTemperatureScalingCalibration();
    /**
     * <pre>
     * Temperature scaling calibration.
     * </pre>
     *
     * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
     * @return The temperatureScalingCalibration.
     */
    object_detection.protos.Calibration.TemperatureScalingCalibration getTemperatureScalingCalibration();
    /**
     * <pre>
     * Temperature scaling calibration.
     * </pre>
     *
     * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
     */
    object_detection.protos.Calibration.TemperatureScalingCalibrationOrBuilder getTemperatureScalingCalibrationOrBuilder();

    public object_detection.protos.Calibration.CalibrationConfig.CalibratorCase getCalibratorCase();
  }
  /**
   * <pre>
   * Message wrapper for various calibration configurations.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.CalibrationConfig}
   */
  public static final class CalibrationConfig extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.CalibrationConfig)
      CalibrationConfigOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use CalibrationConfig.newBuilder() to construct.
    private CalibrationConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private CalibrationConfig() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private CalibrationConfig(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              object_detection.protos.Calibration.FunctionApproximation.Builder subBuilder = null;
              if (calibratorCase_ == 1) {
                subBuilder = ((object_detection.protos.Calibration.FunctionApproximation) calibrator_).toBuilder();
              }
              calibrator_ =
                  input.readMessage(object_detection.protos.Calibration.FunctionApproximation.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.Calibration.FunctionApproximation) calibrator_);
                calibrator_ = subBuilder.buildPartial();
              }
              calibratorCase_ = 1;
              break;
            }
            case 18: {
              object_detection.protos.Calibration.ClassIdFunctionApproximations.Builder subBuilder = null;
              if (calibratorCase_ == 2) {
                subBuilder = ((object_detection.protos.Calibration.ClassIdFunctionApproximations) calibrator_).toBuilder();
              }
              calibrator_ =
                  input.readMessage(object_detection.protos.Calibration.ClassIdFunctionApproximations.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.Calibration.ClassIdFunctionApproximations) calibrator_);
                calibrator_ = subBuilder.buildPartial();
              }
              calibratorCase_ = 2;
              break;
            }
            case 26: {
              object_detection.protos.Calibration.SigmoidCalibration.Builder subBuilder = null;
              if (calibratorCase_ == 3) {
                subBuilder = ((object_detection.protos.Calibration.SigmoidCalibration) calibrator_).toBuilder();
              }
              calibrator_ =
                  input.readMessage(object_detection.protos.Calibration.SigmoidCalibration.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.Calibration.SigmoidCalibration) calibrator_);
                calibrator_ = subBuilder.buildPartial();
              }
              calibratorCase_ = 3;
              break;
            }
            case 34: {
              object_detection.protos.Calibration.ClassIdSigmoidCalibrations.Builder subBuilder = null;
              if (calibratorCase_ == 4) {
                subBuilder = ((object_detection.protos.Calibration.ClassIdSigmoidCalibrations) calibrator_).toBuilder();
              }
              calibrator_ =
                  input.readMessage(object_detection.protos.Calibration.ClassIdSigmoidCalibrations.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.Calibration.ClassIdSigmoidCalibrations) calibrator_);
                calibrator_ = subBuilder.buildPartial();
              }
              calibratorCase_ = 4;
              break;
            }
            case 42: {
              object_detection.protos.Calibration.TemperatureScalingCalibration.Builder subBuilder = null;
              if (calibratorCase_ == 5) {
                subBuilder = ((object_detection.protos.Calibration.TemperatureScalingCalibration) calibrator_).toBuilder();
              }
              calibrator_ =
                  input.readMessage(object_detection.protos.Calibration.TemperatureScalingCalibration.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.Calibration.TemperatureScalingCalibration) calibrator_);
                calibrator_ = subBuilder.buildPartial();
              }
              calibratorCase_ = 5;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_CalibrationConfig_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_CalibrationConfig_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              object_detection.protos.Calibration.CalibrationConfig.class, object_detection.protos.Calibration.CalibrationConfig.Builder.class);
    }

    private int bitField0_;
    private int calibratorCase_ = 0;
    private java.lang.Object calibrator_;
    public enum CalibratorCase
        implements com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      FUNCTION_APPROXIMATION(1),
      CLASS_ID_FUNCTION_APPROXIMATIONS(2),
      SIGMOID_CALIBRATION(3),
      CLASS_ID_SIGMOID_CALIBRATIONS(4),
      TEMPERATURE_SCALING_CALIBRATION(5),
      CALIBRATOR_NOT_SET(0);
      private final int value;
      private CalibratorCase(int value) {
        this.value = value;
      }
      /**
       * @param value The number of the enum to look for.
       * @return The enum associated with the given number.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static CalibratorCase valueOf(int value) {
        return forNumber(value);
      }

      public static CalibratorCase forNumber(int value) {
        switch (value) {
          case 1: return FUNCTION_APPROXIMATION;
          case 2: return CLASS_ID_FUNCTION_APPROXIMATIONS;
          case 3: return SIGMOID_CALIBRATION;
          case 4: return CLASS_ID_SIGMOID_CALIBRATIONS;
          case 5: return TEMPERATURE_SCALING_CALIBRATION;
          case 0: return CALIBRATOR_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public CalibratorCase
    getCalibratorCase() {
      return CalibratorCase.forNumber(
          calibratorCase_);
    }

    public static final int FUNCTION_APPROXIMATION_FIELD_NUMBER = 1;
    /**
     * <pre>
     * Class-agnostic calibration via linear interpolation (usually output from
     * isotonic regression).
     * </pre>
     *
     * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
     * @return Whether the functionApproximation field is set.
     */
    @java.lang.Override
    public boolean hasFunctionApproximation() {
      return calibratorCase_ == 1;
    }
    /**
     * <pre>
     * Class-agnostic calibration via linear interpolation (usually output from
     * isotonic regression).
     * </pre>
     *
     * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
     * @return The functionApproximation.
     */
    @java.lang.Override
    public object_detection.protos.Calibration.FunctionApproximation getFunctionApproximation() {
      if (calibratorCase_ == 1) {
         return (object_detection.protos.Calibration.FunctionApproximation) calibrator_;
      }
      return object_detection.protos.Calibration.FunctionApproximation.getDefaultInstance();
    }
    /**
     * <pre>
     * Class-agnostic calibration via linear interpolation (usually output from
     * isotonic regression).
     * </pre>
     *
     * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
     */
    @java.lang.Override
    public object_detection.protos.Calibration.FunctionApproximationOrBuilder getFunctionApproximationOrBuilder() {
      if (calibratorCase_ == 1) {
         return (object_detection.protos.Calibration.FunctionApproximation) calibrator_;
      }
      return object_detection.protos.Calibration.FunctionApproximation.getDefaultInstance();
    }

    public static final int CLASS_ID_FUNCTION_APPROXIMATIONS_FIELD_NUMBER = 2;
    /**
     * <pre>
     * Per-class calibration via linear interpolation.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
     * @return Whether the classIdFunctionApproximations field is set.
     */
    @java.lang.Override
    public boolean hasClassIdFunctionApproximations() {
      return calibratorCase_ == 2;
    }
    /**
     * <pre>
     * Per-class calibration via linear interpolation.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
     * @return The classIdFunctionApproximations.
     */
    @java.lang.Override
    public object_detection.protos.Calibration.ClassIdFunctionApproximations getClassIdFunctionApproximations() {
      if (calibratorCase_ == 2) {
         return (object_detection.protos.Calibration.ClassIdFunctionApproximations) calibrator_;
      }
      return object_detection.protos.Calibration.ClassIdFunctionApproximations.getDefaultInstance();
    }
    /**
     * <pre>
     * Per-class calibration via linear interpolation.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
     */
    @java.lang.Override
    public object_detection.protos.Calibration.ClassIdFunctionApproximationsOrBuilder getClassIdFunctionApproximationsOrBuilder() {
      if (calibratorCase_ == 2) {
         return (object_detection.protos.Calibration.ClassIdFunctionApproximations) calibrator_;
      }
      return object_detection.protos.Calibration.ClassIdFunctionApproximations.getDefaultInstance();
    }

    public static final int SIGMOID_CALIBRATION_FIELD_NUMBER = 3;
    /**
     * <pre>
     * Class-agnostic sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
     * @return Whether the sigmoidCalibration field is set.
     */
    @java.lang.Override
    public boolean hasSigmoidCalibration() {
      return calibratorCase_ == 3;
    }
    /**
     * <pre>
     * Class-agnostic sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
     * @return The sigmoidCalibration.
     */
    @java.lang.Override
    public object_detection.protos.Calibration.SigmoidCalibration getSigmoidCalibration() {
      if (calibratorCase_ == 3) {
         return (object_detection.protos.Calibration.SigmoidCalibration) calibrator_;
      }
      return object_detection.protos.Calibration.SigmoidCalibration.getDefaultInstance();
    }
    /**
     * <pre>
     * Class-agnostic sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
     */
    @java.lang.Override
    public object_detection.protos.Calibration.SigmoidCalibrationOrBuilder getSigmoidCalibrationOrBuilder() {
      if (calibratorCase_ == 3) {
         return (object_detection.protos.Calibration.SigmoidCalibration) calibrator_;
      }
      return object_detection.protos.Calibration.SigmoidCalibration.getDefaultInstance();
    }

    public static final int CLASS_ID_SIGMOID_CALIBRATIONS_FIELD_NUMBER = 4;
    /**
     * <pre>
     * Per-class sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
     * @return Whether the classIdSigmoidCalibrations field is set.
     */
    @java.lang.Override
    public boolean hasClassIdSigmoidCalibrations() {
      return calibratorCase_ == 4;
    }
    /**
     * <pre>
     * Per-class sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
     * @return The classIdSigmoidCalibrations.
     */
    @java.lang.Override
    public object_detection.protos.Calibration.ClassIdSigmoidCalibrations getClassIdSigmoidCalibrations() {
      if (calibratorCase_ == 4) {
         return (object_detection.protos.Calibration.ClassIdSigmoidCalibrations) calibrator_;
      }
      return object_detection.protos.Calibration.ClassIdSigmoidCalibrations.getDefaultInstance();
    }
    /**
     * <pre>
     * Per-class sigmoid calibration.
     * </pre>
     *
     * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
     */
    @java.lang.Override
    public object_detection.protos.Calibration.ClassIdSigmoidCalibrationsOrBuilder getClassIdSigmoidCalibrationsOrBuilder() {
      if (calibratorCase_ == 4) {
         return (object_detection.protos.Calibration.ClassIdSigmoidCalibrations) calibrator_;
      }
      return object_detection.protos.Calibration.ClassIdSigmoidCalibrations.getDefaultInstance();
    }

    public static final int TEMPERATURE_SCALING_CALIBRATION_FIELD_NUMBER = 5;
    /**
     * <pre>
     * Temperature scaling calibration.
     * </pre>
     *
     * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
     * @return Whether the temperatureScalingCalibration field is set.
     */
    @java.lang.Override
    public boolean hasTemperatureScalingCalibration() {
      return calibratorCase_ == 5;
    }
    /**
     * <pre>
     * Temperature scaling calibration.
     * </pre>
     *
     * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
     * @return The temperatureScalingCalibration.
     */
    @java.lang.Override
    public object_detection.protos.Calibration.TemperatureScalingCalibration getTemperatureScalingCalibration() {
      if (calibratorCase_ == 5) {
         return (object_detection.protos.Calibration.TemperatureScalingCalibration) calibrator_;
      }
      return object_detection.protos.Calibration.TemperatureScalingCalibration.getDefaultInstance();
    }
    /**
     * <pre>
     * Temperature scaling calibration.
     * </pre>
     *
     * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
     */
    @java.lang.Override
    public object_detection.protos.Calibration.TemperatureScalingCalibrationOrBuilder getTemperatureScalingCalibrationOrBuilder() {
      if (calibratorCase_ == 5) {
         return (object_detection.protos.Calibration.TemperatureScalingCalibration) calibrator_;
      }
      return object_detection.protos.Calibration.TemperatureScalingCalibration.getDefaultInstance();
    }

    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 (calibratorCase_ == 1) {
        output.writeMessage(1, (object_detection.protos.Calibration.FunctionApproximation) calibrator_);
      }
      if (calibratorCase_ == 2) {
        output.writeMessage(2, (object_detection.protos.Calibration.ClassIdFunctionApproximations) calibrator_);
      }
      if (calibratorCase_ == 3) {
        output.writeMessage(3, (object_detection.protos.Calibration.SigmoidCalibration) calibrator_);
      }
      if (calibratorCase_ == 4) {
        output.writeMessage(4, (object_detection.protos.Calibration.ClassIdSigmoidCalibrations) calibrator_);
      }
      if (calibratorCase_ == 5) {
        output.writeMessage(5, (object_detection.protos.Calibration.TemperatureScalingCalibration) calibrator_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (calibratorCase_ == 1) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, (object_detection.protos.Calibration.FunctionApproximation) calibrator_);
      }
      if (calibratorCase_ == 2) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, (object_detection.protos.Calibration.ClassIdFunctionApproximations) calibrator_);
      }
      if (calibratorCase_ == 3) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, (object_detection.protos.Calibration.SigmoidCalibration) calibrator_);
      }
      if (calibratorCase_ == 4) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, (object_detection.protos.Calibration.ClassIdSigmoidCalibrations) calibrator_);
      }
      if (calibratorCase_ == 5) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, (object_detection.protos.Calibration.TemperatureScalingCalibration) calibrator_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof object_detection.protos.Calibration.CalibrationConfig)) {
        return super.equals(obj);
      }
      object_detection.protos.Calibration.CalibrationConfig other = (object_detection.protos.Calibration.CalibrationConfig) obj;

      if (!getCalibratorCase().equals(other.getCalibratorCase())) return false;
      switch (calibratorCase_) {
        case 1:
          if (!getFunctionApproximation()
              .equals(other.getFunctionApproximation())) return false;
          break;
        case 2:
          if (!getClassIdFunctionApproximations()
              .equals(other.getClassIdFunctionApproximations())) return false;
          break;
        case 3:
          if (!getSigmoidCalibration()
              .equals(other.getSigmoidCalibration())) return false;
          break;
        case 4:
          if (!getClassIdSigmoidCalibrations()
              .equals(other.getClassIdSigmoidCalibrations())) return false;
          break;
        case 5:
          if (!getTemperatureScalingCalibration()
              .equals(other.getTemperatureScalingCalibration())) return false;
          break;
        case 0:
        default:
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      switch (calibratorCase_) {
        case 1:
          hash = (37 * hash) + FUNCTION_APPROXIMATION_FIELD_NUMBER;
          hash = (53 * hash) + getFunctionApproximation().hashCode();
          break;
        case 2:
          hash = (37 * hash) + CLASS_ID_FUNCTION_APPROXIMATIONS_FIELD_NUMBER;
          hash = (53 * hash) + getClassIdFunctionApproximations().hashCode();
          break;
        case 3:
          hash = (37 * hash) + SIGMOID_CALIBRATION_FIELD_NUMBER;
          hash = (53 * hash) + getSigmoidCalibration().hashCode();
          break;
        case 4:
          hash = (37 * hash) + CLASS_ID_SIGMOID_CALIBRATIONS_FIELD_NUMBER;
          hash = (53 * hash) + getClassIdSigmoidCalibrations().hashCode();
          break;
        case 5:
          hash = (37 * hash) + TEMPERATURE_SCALING_CALIBRATION_FIELD_NUMBER;
          hash = (53 * hash) + getTemperatureScalingCalibration().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.Calibration.CalibrationConfig parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.CalibrationConfig parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.CalibrationConfig parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.CalibrationConfig parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.CalibrationConfig parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.CalibrationConfig parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.CalibrationConfig parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.CalibrationConfig 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 object_detection.protos.Calibration.CalibrationConfig parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.CalibrationConfig 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 object_detection.protos.Calibration.CalibrationConfig parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.CalibrationConfig 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(object_detection.protos.Calibration.CalibrationConfig 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>
     * Message wrapper for various calibration configurations.
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.CalibrationConfig}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.CalibrationConfig)
        object_detection.protos.Calibration.CalibrationConfigOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_CalibrationConfig_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_CalibrationConfig_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                object_detection.protos.Calibration.CalibrationConfig.class, object_detection.protos.Calibration.CalibrationConfig.Builder.class);
      }

      // Construct using object_detection.protos.Calibration.CalibrationConfig.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        calibratorCase_ = 0;
        calibrator_ = null;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_CalibrationConfig_descriptor;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.CalibrationConfig getDefaultInstanceForType() {
        return object_detection.protos.Calibration.CalibrationConfig.getDefaultInstance();
      }

      @java.lang.Override
      public object_detection.protos.Calibration.CalibrationConfig build() {
        object_detection.protos.Calibration.CalibrationConfig result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.CalibrationConfig buildPartial() {
        object_detection.protos.Calibration.CalibrationConfig result = new object_detection.protos.Calibration.CalibrationConfig(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (calibratorCase_ == 1) {
          if (functionApproximationBuilder_ == null) {
            result.calibrator_ = calibrator_;
          } else {
            result.calibrator_ = functionApproximationBuilder_.build();
          }
        }
        if (calibratorCase_ == 2) {
          if (classIdFunctionApproximationsBuilder_ == null) {
            result.calibrator_ = calibrator_;
          } else {
            result.calibrator_ = classIdFunctionApproximationsBuilder_.build();
          }
        }
        if (calibratorCase_ == 3) {
          if (sigmoidCalibrationBuilder_ == null) {
            result.calibrator_ = calibrator_;
          } else {
            result.calibrator_ = sigmoidCalibrationBuilder_.build();
          }
        }
        if (calibratorCase_ == 4) {
          if (classIdSigmoidCalibrationsBuilder_ == null) {
            result.calibrator_ = calibrator_;
          } else {
            result.calibrator_ = classIdSigmoidCalibrationsBuilder_.build();
          }
        }
        if (calibratorCase_ == 5) {
          if (temperatureScalingCalibrationBuilder_ == null) {
            result.calibrator_ = calibrator_;
          } else {
            result.calibrator_ = temperatureScalingCalibrationBuilder_.build();
          }
        }
        result.bitField0_ = to_bitField0_;
        result.calibratorCase_ = calibratorCase_;
        onBuilt();
        return result;
      }

      @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 object_detection.protos.Calibration.CalibrationConfig) {
          return mergeFrom((object_detection.protos.Calibration.CalibrationConfig)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.Calibration.CalibrationConfig other) {
        if (other == object_detection.protos.Calibration.CalibrationConfig.getDefaultInstance()) return this;
        switch (other.getCalibratorCase()) {
          case FUNCTION_APPROXIMATION: {
            mergeFunctionApproximation(other.getFunctionApproximation());
            break;
          }
          case CLASS_ID_FUNCTION_APPROXIMATIONS: {
            mergeClassIdFunctionApproximations(other.getClassIdFunctionApproximations());
            break;
          }
          case SIGMOID_CALIBRATION: {
            mergeSigmoidCalibration(other.getSigmoidCalibration());
            break;
          }
          case CLASS_ID_SIGMOID_CALIBRATIONS: {
            mergeClassIdSigmoidCalibrations(other.getClassIdSigmoidCalibrations());
            break;
          }
          case TEMPERATURE_SCALING_CALIBRATION: {
            mergeTemperatureScalingCalibration(other.getTemperatureScalingCalibration());
            break;
          }
          case CALIBRATOR_NOT_SET: {
            break;
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        object_detection.protos.Calibration.CalibrationConfig parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.Calibration.CalibrationConfig) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int calibratorCase_ = 0;
      private java.lang.Object calibrator_;
      public CalibratorCase
          getCalibratorCase() {
        return CalibratorCase.forNumber(
            calibratorCase_);
      }

      public Builder clearCalibrator() {
        calibratorCase_ = 0;
        calibrator_ = null;
        onChanged();
        return this;
      }

      private int bitField0_;

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.FunctionApproximation, object_detection.protos.Calibration.FunctionApproximation.Builder, object_detection.protos.Calibration.FunctionApproximationOrBuilder> functionApproximationBuilder_;
      /**
       * <pre>
       * Class-agnostic calibration via linear interpolation (usually output from
       * isotonic regression).
       * </pre>
       *
       * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
       * @return Whether the functionApproximation field is set.
       */
      @java.lang.Override
      public boolean hasFunctionApproximation() {
        return calibratorCase_ == 1;
      }
      /**
       * <pre>
       * Class-agnostic calibration via linear interpolation (usually output from
       * isotonic regression).
       * </pre>
       *
       * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
       * @return The functionApproximation.
       */
      @java.lang.Override
      public object_detection.protos.Calibration.FunctionApproximation getFunctionApproximation() {
        if (functionApproximationBuilder_ == null) {
          if (calibratorCase_ == 1) {
            return (object_detection.protos.Calibration.FunctionApproximation) calibrator_;
          }
          return object_detection.protos.Calibration.FunctionApproximation.getDefaultInstance();
        } else {
          if (calibratorCase_ == 1) {
            return functionApproximationBuilder_.getMessage();
          }
          return object_detection.protos.Calibration.FunctionApproximation.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Class-agnostic calibration via linear interpolation (usually output from
       * isotonic regression).
       * </pre>
       *
       * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
       */
      public Builder setFunctionApproximation(object_detection.protos.Calibration.FunctionApproximation value) {
        if (functionApproximationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          calibrator_ = value;
          onChanged();
        } else {
          functionApproximationBuilder_.setMessage(value);
        }
        calibratorCase_ = 1;
        return this;
      }
      /**
       * <pre>
       * Class-agnostic calibration via linear interpolation (usually output from
       * isotonic regression).
       * </pre>
       *
       * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
       */
      public Builder setFunctionApproximation(
          object_detection.protos.Calibration.FunctionApproximation.Builder builderForValue) {
        if (functionApproximationBuilder_ == null) {
          calibrator_ = builderForValue.build();
          onChanged();
        } else {
          functionApproximationBuilder_.setMessage(builderForValue.build());
        }
        calibratorCase_ = 1;
        return this;
      }
      /**
       * <pre>
       * Class-agnostic calibration via linear interpolation (usually output from
       * isotonic regression).
       * </pre>
       *
       * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
       */
      public Builder mergeFunctionApproximation(object_detection.protos.Calibration.FunctionApproximation value) {
        if (functionApproximationBuilder_ == null) {
          if (calibratorCase_ == 1 &&
              calibrator_ != object_detection.protos.Calibration.FunctionApproximation.getDefaultInstance()) {
            calibrator_ = object_detection.protos.Calibration.FunctionApproximation.newBuilder((object_detection.protos.Calibration.FunctionApproximation) calibrator_)
                .mergeFrom(value).buildPartial();
          } else {
            calibrator_ = value;
          }
          onChanged();
        } else {
          if (calibratorCase_ == 1) {
            functionApproximationBuilder_.mergeFrom(value);
          }
          functionApproximationBuilder_.setMessage(value);
        }
        calibratorCase_ = 1;
        return this;
      }
      /**
       * <pre>
       * Class-agnostic calibration via linear interpolation (usually output from
       * isotonic regression).
       * </pre>
       *
       * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
       */
      public Builder clearFunctionApproximation() {
        if (functionApproximationBuilder_ == null) {
          if (calibratorCase_ == 1) {
            calibratorCase_ = 0;
            calibrator_ = null;
            onChanged();
          }
        } else {
          if (calibratorCase_ == 1) {
            calibratorCase_ = 0;
            calibrator_ = null;
          }
          functionApproximationBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * Class-agnostic calibration via linear interpolation (usually output from
       * isotonic regression).
       * </pre>
       *
       * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
       */
      public object_detection.protos.Calibration.FunctionApproximation.Builder getFunctionApproximationBuilder() {
        return getFunctionApproximationFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Class-agnostic calibration via linear interpolation (usually output from
       * isotonic regression).
       * </pre>
       *
       * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
       */
      @java.lang.Override
      public object_detection.protos.Calibration.FunctionApproximationOrBuilder getFunctionApproximationOrBuilder() {
        if ((calibratorCase_ == 1) && (functionApproximationBuilder_ != null)) {
          return functionApproximationBuilder_.getMessageOrBuilder();
        } else {
          if (calibratorCase_ == 1) {
            return (object_detection.protos.Calibration.FunctionApproximation) calibrator_;
          }
          return object_detection.protos.Calibration.FunctionApproximation.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Class-agnostic calibration via linear interpolation (usually output from
       * isotonic regression).
       * </pre>
       *
       * <code>.object_detection.protos.FunctionApproximation function_approximation = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.FunctionApproximation, object_detection.protos.Calibration.FunctionApproximation.Builder, object_detection.protos.Calibration.FunctionApproximationOrBuilder>
          getFunctionApproximationFieldBuilder() {
        if (functionApproximationBuilder_ == null) {
          if (!(calibratorCase_ == 1)) {
            calibrator_ = object_detection.protos.Calibration.FunctionApproximation.getDefaultInstance();
          }
          functionApproximationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.Calibration.FunctionApproximation, object_detection.protos.Calibration.FunctionApproximation.Builder, object_detection.protos.Calibration.FunctionApproximationOrBuilder>(
                  (object_detection.protos.Calibration.FunctionApproximation) calibrator_,
                  getParentForChildren(),
                  isClean());
          calibrator_ = null;
        }
        calibratorCase_ = 1;
        onChanged();;
        return functionApproximationBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.ClassIdFunctionApproximations, object_detection.protos.Calibration.ClassIdFunctionApproximations.Builder, object_detection.protos.Calibration.ClassIdFunctionApproximationsOrBuilder> classIdFunctionApproximationsBuilder_;
      /**
       * <pre>
       * Per-class calibration via linear interpolation.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
       * @return Whether the classIdFunctionApproximations field is set.
       */
      @java.lang.Override
      public boolean hasClassIdFunctionApproximations() {
        return calibratorCase_ == 2;
      }
      /**
       * <pre>
       * Per-class calibration via linear interpolation.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
       * @return The classIdFunctionApproximations.
       */
      @java.lang.Override
      public object_detection.protos.Calibration.ClassIdFunctionApproximations getClassIdFunctionApproximations() {
        if (classIdFunctionApproximationsBuilder_ == null) {
          if (calibratorCase_ == 2) {
            return (object_detection.protos.Calibration.ClassIdFunctionApproximations) calibrator_;
          }
          return object_detection.protos.Calibration.ClassIdFunctionApproximations.getDefaultInstance();
        } else {
          if (calibratorCase_ == 2) {
            return classIdFunctionApproximationsBuilder_.getMessage();
          }
          return object_detection.protos.Calibration.ClassIdFunctionApproximations.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Per-class calibration via linear interpolation.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
       */
      public Builder setClassIdFunctionApproximations(object_detection.protos.Calibration.ClassIdFunctionApproximations value) {
        if (classIdFunctionApproximationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          calibrator_ = value;
          onChanged();
        } else {
          classIdFunctionApproximationsBuilder_.setMessage(value);
        }
        calibratorCase_ = 2;
        return this;
      }
      /**
       * <pre>
       * Per-class calibration via linear interpolation.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
       */
      public Builder setClassIdFunctionApproximations(
          object_detection.protos.Calibration.ClassIdFunctionApproximations.Builder builderForValue) {
        if (classIdFunctionApproximationsBuilder_ == null) {
          calibrator_ = builderForValue.build();
          onChanged();
        } else {
          classIdFunctionApproximationsBuilder_.setMessage(builderForValue.build());
        }
        calibratorCase_ = 2;
        return this;
      }
      /**
       * <pre>
       * Per-class calibration via linear interpolation.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
       */
      public Builder mergeClassIdFunctionApproximations(object_detection.protos.Calibration.ClassIdFunctionApproximations value) {
        if (classIdFunctionApproximationsBuilder_ == null) {
          if (calibratorCase_ == 2 &&
              calibrator_ != object_detection.protos.Calibration.ClassIdFunctionApproximations.getDefaultInstance()) {
            calibrator_ = object_detection.protos.Calibration.ClassIdFunctionApproximations.newBuilder((object_detection.protos.Calibration.ClassIdFunctionApproximations) calibrator_)
                .mergeFrom(value).buildPartial();
          } else {
            calibrator_ = value;
          }
          onChanged();
        } else {
          if (calibratorCase_ == 2) {
            classIdFunctionApproximationsBuilder_.mergeFrom(value);
          }
          classIdFunctionApproximationsBuilder_.setMessage(value);
        }
        calibratorCase_ = 2;
        return this;
      }
      /**
       * <pre>
       * Per-class calibration via linear interpolation.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
       */
      public Builder clearClassIdFunctionApproximations() {
        if (classIdFunctionApproximationsBuilder_ == null) {
          if (calibratorCase_ == 2) {
            calibratorCase_ = 0;
            calibrator_ = null;
            onChanged();
          }
        } else {
          if (calibratorCase_ == 2) {
            calibratorCase_ = 0;
            calibrator_ = null;
          }
          classIdFunctionApproximationsBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * Per-class calibration via linear interpolation.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
       */
      public object_detection.protos.Calibration.ClassIdFunctionApproximations.Builder getClassIdFunctionApproximationsBuilder() {
        return getClassIdFunctionApproximationsFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Per-class calibration via linear interpolation.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
       */
      @java.lang.Override
      public object_detection.protos.Calibration.ClassIdFunctionApproximationsOrBuilder getClassIdFunctionApproximationsOrBuilder() {
        if ((calibratorCase_ == 2) && (classIdFunctionApproximationsBuilder_ != null)) {
          return classIdFunctionApproximationsBuilder_.getMessageOrBuilder();
        } else {
          if (calibratorCase_ == 2) {
            return (object_detection.protos.Calibration.ClassIdFunctionApproximations) calibrator_;
          }
          return object_detection.protos.Calibration.ClassIdFunctionApproximations.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Per-class calibration via linear interpolation.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdFunctionApproximations class_id_function_approximations = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.ClassIdFunctionApproximations, object_detection.protos.Calibration.ClassIdFunctionApproximations.Builder, object_detection.protos.Calibration.ClassIdFunctionApproximationsOrBuilder>
          getClassIdFunctionApproximationsFieldBuilder() {
        if (classIdFunctionApproximationsBuilder_ == null) {
          if (!(calibratorCase_ == 2)) {
            calibrator_ = object_detection.protos.Calibration.ClassIdFunctionApproximations.getDefaultInstance();
          }
          classIdFunctionApproximationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.Calibration.ClassIdFunctionApproximations, object_detection.protos.Calibration.ClassIdFunctionApproximations.Builder, object_detection.protos.Calibration.ClassIdFunctionApproximationsOrBuilder>(
                  (object_detection.protos.Calibration.ClassIdFunctionApproximations) calibrator_,
                  getParentForChildren(),
                  isClean());
          calibrator_ = null;
        }
        calibratorCase_ = 2;
        onChanged();;
        return classIdFunctionApproximationsBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.SigmoidCalibration, object_detection.protos.Calibration.SigmoidCalibration.Builder, object_detection.protos.Calibration.SigmoidCalibrationOrBuilder> sigmoidCalibrationBuilder_;
      /**
       * <pre>
       * Class-agnostic sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
       * @return Whether the sigmoidCalibration field is set.
       */
      @java.lang.Override
      public boolean hasSigmoidCalibration() {
        return calibratorCase_ == 3;
      }
      /**
       * <pre>
       * Class-agnostic sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
       * @return The sigmoidCalibration.
       */
      @java.lang.Override
      public object_detection.protos.Calibration.SigmoidCalibration getSigmoidCalibration() {
        if (sigmoidCalibrationBuilder_ == null) {
          if (calibratorCase_ == 3) {
            return (object_detection.protos.Calibration.SigmoidCalibration) calibrator_;
          }
          return object_detection.protos.Calibration.SigmoidCalibration.getDefaultInstance();
        } else {
          if (calibratorCase_ == 3) {
            return sigmoidCalibrationBuilder_.getMessage();
          }
          return object_detection.protos.Calibration.SigmoidCalibration.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Class-agnostic sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
       */
      public Builder setSigmoidCalibration(object_detection.protos.Calibration.SigmoidCalibration value) {
        if (sigmoidCalibrationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          calibrator_ = value;
          onChanged();
        } else {
          sigmoidCalibrationBuilder_.setMessage(value);
        }
        calibratorCase_ = 3;
        return this;
      }
      /**
       * <pre>
       * Class-agnostic sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
       */
      public Builder setSigmoidCalibration(
          object_detection.protos.Calibration.SigmoidCalibration.Builder builderForValue) {
        if (sigmoidCalibrationBuilder_ == null) {
          calibrator_ = builderForValue.build();
          onChanged();
        } else {
          sigmoidCalibrationBuilder_.setMessage(builderForValue.build());
        }
        calibratorCase_ = 3;
        return this;
      }
      /**
       * <pre>
       * Class-agnostic sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
       */
      public Builder mergeSigmoidCalibration(object_detection.protos.Calibration.SigmoidCalibration value) {
        if (sigmoidCalibrationBuilder_ == null) {
          if (calibratorCase_ == 3 &&
              calibrator_ != object_detection.protos.Calibration.SigmoidCalibration.getDefaultInstance()) {
            calibrator_ = object_detection.protos.Calibration.SigmoidCalibration.newBuilder((object_detection.protos.Calibration.SigmoidCalibration) calibrator_)
                .mergeFrom(value).buildPartial();
          } else {
            calibrator_ = value;
          }
          onChanged();
        } else {
          if (calibratorCase_ == 3) {
            sigmoidCalibrationBuilder_.mergeFrom(value);
          }
          sigmoidCalibrationBuilder_.setMessage(value);
        }
        calibratorCase_ = 3;
        return this;
      }
      /**
       * <pre>
       * Class-agnostic sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
       */
      public Builder clearSigmoidCalibration() {
        if (sigmoidCalibrationBuilder_ == null) {
          if (calibratorCase_ == 3) {
            calibratorCase_ = 0;
            calibrator_ = null;
            onChanged();
          }
        } else {
          if (calibratorCase_ == 3) {
            calibratorCase_ = 0;
            calibrator_ = null;
          }
          sigmoidCalibrationBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * Class-agnostic sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
       */
      public object_detection.protos.Calibration.SigmoidCalibration.Builder getSigmoidCalibrationBuilder() {
        return getSigmoidCalibrationFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Class-agnostic sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
       */
      @java.lang.Override
      public object_detection.protos.Calibration.SigmoidCalibrationOrBuilder getSigmoidCalibrationOrBuilder() {
        if ((calibratorCase_ == 3) && (sigmoidCalibrationBuilder_ != null)) {
          return sigmoidCalibrationBuilder_.getMessageOrBuilder();
        } else {
          if (calibratorCase_ == 3) {
            return (object_detection.protos.Calibration.SigmoidCalibration) calibrator_;
          }
          return object_detection.protos.Calibration.SigmoidCalibration.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Class-agnostic sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.SigmoidCalibration sigmoid_calibration = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.SigmoidCalibration, object_detection.protos.Calibration.SigmoidCalibration.Builder, object_detection.protos.Calibration.SigmoidCalibrationOrBuilder>
          getSigmoidCalibrationFieldBuilder() {
        if (sigmoidCalibrationBuilder_ == null) {
          if (!(calibratorCase_ == 3)) {
            calibrator_ = object_detection.protos.Calibration.SigmoidCalibration.getDefaultInstance();
          }
          sigmoidCalibrationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.Calibration.SigmoidCalibration, object_detection.protos.Calibration.SigmoidCalibration.Builder, object_detection.protos.Calibration.SigmoidCalibrationOrBuilder>(
                  (object_detection.protos.Calibration.SigmoidCalibration) calibrator_,
                  getParentForChildren(),
                  isClean());
          calibrator_ = null;
        }
        calibratorCase_ = 3;
        onChanged();;
        return sigmoidCalibrationBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.ClassIdSigmoidCalibrations, object_detection.protos.Calibration.ClassIdSigmoidCalibrations.Builder, object_detection.protos.Calibration.ClassIdSigmoidCalibrationsOrBuilder> classIdSigmoidCalibrationsBuilder_;
      /**
       * <pre>
       * Per-class sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
       * @return Whether the classIdSigmoidCalibrations field is set.
       */
      @java.lang.Override
      public boolean hasClassIdSigmoidCalibrations() {
        return calibratorCase_ == 4;
      }
      /**
       * <pre>
       * Per-class sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
       * @return The classIdSigmoidCalibrations.
       */
      @java.lang.Override
      public object_detection.protos.Calibration.ClassIdSigmoidCalibrations getClassIdSigmoidCalibrations() {
        if (classIdSigmoidCalibrationsBuilder_ == null) {
          if (calibratorCase_ == 4) {
            return (object_detection.protos.Calibration.ClassIdSigmoidCalibrations) calibrator_;
          }
          return object_detection.protos.Calibration.ClassIdSigmoidCalibrations.getDefaultInstance();
        } else {
          if (calibratorCase_ == 4) {
            return classIdSigmoidCalibrationsBuilder_.getMessage();
          }
          return object_detection.protos.Calibration.ClassIdSigmoidCalibrations.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Per-class sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
       */
      public Builder setClassIdSigmoidCalibrations(object_detection.protos.Calibration.ClassIdSigmoidCalibrations value) {
        if (classIdSigmoidCalibrationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          calibrator_ = value;
          onChanged();
        } else {
          classIdSigmoidCalibrationsBuilder_.setMessage(value);
        }
        calibratorCase_ = 4;
        return this;
      }
      /**
       * <pre>
       * Per-class sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
       */
      public Builder setClassIdSigmoidCalibrations(
          object_detection.protos.Calibration.ClassIdSigmoidCalibrations.Builder builderForValue) {
        if (classIdSigmoidCalibrationsBuilder_ == null) {
          calibrator_ = builderForValue.build();
          onChanged();
        } else {
          classIdSigmoidCalibrationsBuilder_.setMessage(builderForValue.build());
        }
        calibratorCase_ = 4;
        return this;
      }
      /**
       * <pre>
       * Per-class sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
       */
      public Builder mergeClassIdSigmoidCalibrations(object_detection.protos.Calibration.ClassIdSigmoidCalibrations value) {
        if (classIdSigmoidCalibrationsBuilder_ == null) {
          if (calibratorCase_ == 4 &&
              calibrator_ != object_detection.protos.Calibration.ClassIdSigmoidCalibrations.getDefaultInstance()) {
            calibrator_ = object_detection.protos.Calibration.ClassIdSigmoidCalibrations.newBuilder((object_detection.protos.Calibration.ClassIdSigmoidCalibrations) calibrator_)
                .mergeFrom(value).buildPartial();
          } else {
            calibrator_ = value;
          }
          onChanged();
        } else {
          if (calibratorCase_ == 4) {
            classIdSigmoidCalibrationsBuilder_.mergeFrom(value);
          }
          classIdSigmoidCalibrationsBuilder_.setMessage(value);
        }
        calibratorCase_ = 4;
        return this;
      }
      /**
       * <pre>
       * Per-class sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
       */
      public Builder clearClassIdSigmoidCalibrations() {
        if (classIdSigmoidCalibrationsBuilder_ == null) {
          if (calibratorCase_ == 4) {
            calibratorCase_ = 0;
            calibrator_ = null;
            onChanged();
          }
        } else {
          if (calibratorCase_ == 4) {
            calibratorCase_ = 0;
            calibrator_ = null;
          }
          classIdSigmoidCalibrationsBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * Per-class sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
       */
      public object_detection.protos.Calibration.ClassIdSigmoidCalibrations.Builder getClassIdSigmoidCalibrationsBuilder() {
        return getClassIdSigmoidCalibrationsFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Per-class sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
       */
      @java.lang.Override
      public object_detection.protos.Calibration.ClassIdSigmoidCalibrationsOrBuilder getClassIdSigmoidCalibrationsOrBuilder() {
        if ((calibratorCase_ == 4) && (classIdSigmoidCalibrationsBuilder_ != null)) {
          return classIdSigmoidCalibrationsBuilder_.getMessageOrBuilder();
        } else {
          if (calibratorCase_ == 4) {
            return (object_detection.protos.Calibration.ClassIdSigmoidCalibrations) calibrator_;
          }
          return object_detection.protos.Calibration.ClassIdSigmoidCalibrations.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Per-class sigmoid calibration.
       * </pre>
       *
       * <code>.object_detection.protos.ClassIdSigmoidCalibrations class_id_sigmoid_calibrations = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.ClassIdSigmoidCalibrations, object_detection.protos.Calibration.ClassIdSigmoidCalibrations.Builder, object_detection.protos.Calibration.ClassIdSigmoidCalibrationsOrBuilder>
          getClassIdSigmoidCalibrationsFieldBuilder() {
        if (classIdSigmoidCalibrationsBuilder_ == null) {
          if (!(calibratorCase_ == 4)) {
            calibrator_ = object_detection.protos.Calibration.ClassIdSigmoidCalibrations.getDefaultInstance();
          }
          classIdSigmoidCalibrationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.Calibration.ClassIdSigmoidCalibrations, object_detection.protos.Calibration.ClassIdSigmoidCalibrations.Builder, object_detection.protos.Calibration.ClassIdSigmoidCalibrationsOrBuilder>(
                  (object_detection.protos.Calibration.ClassIdSigmoidCalibrations) calibrator_,
                  getParentForChildren(),
                  isClean());
          calibrator_ = null;
        }
        calibratorCase_ = 4;
        onChanged();;
        return classIdSigmoidCalibrationsBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.TemperatureScalingCalibration, object_detection.protos.Calibration.TemperatureScalingCalibration.Builder, object_detection.protos.Calibration.TemperatureScalingCalibrationOrBuilder> temperatureScalingCalibrationBuilder_;
      /**
       * <pre>
       * Temperature scaling calibration.
       * </pre>
       *
       * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
       * @return Whether the temperatureScalingCalibration field is set.
       */
      @java.lang.Override
      public boolean hasTemperatureScalingCalibration() {
        return calibratorCase_ == 5;
      }
      /**
       * <pre>
       * Temperature scaling calibration.
       * </pre>
       *
       * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
       * @return The temperatureScalingCalibration.
       */
      @java.lang.Override
      public object_detection.protos.Calibration.TemperatureScalingCalibration getTemperatureScalingCalibration() {
        if (temperatureScalingCalibrationBuilder_ == null) {
          if (calibratorCase_ == 5) {
            return (object_detection.protos.Calibration.TemperatureScalingCalibration) calibrator_;
          }
          return object_detection.protos.Calibration.TemperatureScalingCalibration.getDefaultInstance();
        } else {
          if (calibratorCase_ == 5) {
            return temperatureScalingCalibrationBuilder_.getMessage();
          }
          return object_detection.protos.Calibration.TemperatureScalingCalibration.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Temperature scaling calibration.
       * </pre>
       *
       * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
       */
      public Builder setTemperatureScalingCalibration(object_detection.protos.Calibration.TemperatureScalingCalibration value) {
        if (temperatureScalingCalibrationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          calibrator_ = value;
          onChanged();
        } else {
          temperatureScalingCalibrationBuilder_.setMessage(value);
        }
        calibratorCase_ = 5;
        return this;
      }
      /**
       * <pre>
       * Temperature scaling calibration.
       * </pre>
       *
       * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
       */
      public Builder setTemperatureScalingCalibration(
          object_detection.protos.Calibration.TemperatureScalingCalibration.Builder builderForValue) {
        if (temperatureScalingCalibrationBuilder_ == null) {
          calibrator_ = builderForValue.build();
          onChanged();
        } else {
          temperatureScalingCalibrationBuilder_.setMessage(builderForValue.build());
        }
        calibratorCase_ = 5;
        return this;
      }
      /**
       * <pre>
       * Temperature scaling calibration.
       * </pre>
       *
       * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
       */
      public Builder mergeTemperatureScalingCalibration(object_detection.protos.Calibration.TemperatureScalingCalibration value) {
        if (temperatureScalingCalibrationBuilder_ == null) {
          if (calibratorCase_ == 5 &&
              calibrator_ != object_detection.protos.Calibration.TemperatureScalingCalibration.getDefaultInstance()) {
            calibrator_ = object_detection.protos.Calibration.TemperatureScalingCalibration.newBuilder((object_detection.protos.Calibration.TemperatureScalingCalibration) calibrator_)
                .mergeFrom(value).buildPartial();
          } else {
            calibrator_ = value;
          }
          onChanged();
        } else {
          if (calibratorCase_ == 5) {
            temperatureScalingCalibrationBuilder_.mergeFrom(value);
          }
          temperatureScalingCalibrationBuilder_.setMessage(value);
        }
        calibratorCase_ = 5;
        return this;
      }
      /**
       * <pre>
       * Temperature scaling calibration.
       * </pre>
       *
       * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
       */
      public Builder clearTemperatureScalingCalibration() {
        if (temperatureScalingCalibrationBuilder_ == null) {
          if (calibratorCase_ == 5) {
            calibratorCase_ = 0;
            calibrator_ = null;
            onChanged();
          }
        } else {
          if (calibratorCase_ == 5) {
            calibratorCase_ = 0;
            calibrator_ = null;
          }
          temperatureScalingCalibrationBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * Temperature scaling calibration.
       * </pre>
       *
       * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
       */
      public object_detection.protos.Calibration.TemperatureScalingCalibration.Builder getTemperatureScalingCalibrationBuilder() {
        return getTemperatureScalingCalibrationFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Temperature scaling calibration.
       * </pre>
       *
       * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
       */
      @java.lang.Override
      public object_detection.protos.Calibration.TemperatureScalingCalibrationOrBuilder getTemperatureScalingCalibrationOrBuilder() {
        if ((calibratorCase_ == 5) && (temperatureScalingCalibrationBuilder_ != null)) {
          return temperatureScalingCalibrationBuilder_.getMessageOrBuilder();
        } else {
          if (calibratorCase_ == 5) {
            return (object_detection.protos.Calibration.TemperatureScalingCalibration) calibrator_;
          }
          return object_detection.protos.Calibration.TemperatureScalingCalibration.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Temperature scaling calibration.
       * </pre>
       *
       * <code>.object_detection.protos.TemperatureScalingCalibration temperature_scaling_calibration = 5;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.TemperatureScalingCalibration, object_detection.protos.Calibration.TemperatureScalingCalibration.Builder, object_detection.protos.Calibration.TemperatureScalingCalibrationOrBuilder>
          getTemperatureScalingCalibrationFieldBuilder() {
        if (temperatureScalingCalibrationBuilder_ == null) {
          if (!(calibratorCase_ == 5)) {
            calibrator_ = object_detection.protos.Calibration.TemperatureScalingCalibration.getDefaultInstance();
          }
          temperatureScalingCalibrationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.Calibration.TemperatureScalingCalibration, object_detection.protos.Calibration.TemperatureScalingCalibration.Builder, object_detection.protos.Calibration.TemperatureScalingCalibrationOrBuilder>(
                  (object_detection.protos.Calibration.TemperatureScalingCalibration) calibrator_,
                  getParentForChildren(),
                  isClean());
          calibrator_ = null;
        }
        calibratorCase_ = 5;
        onChanged();;
        return temperatureScalingCalibrationBuilder_;
      }
      @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:object_detection.protos.CalibrationConfig)
    }

    // @@protoc_insertion_point(class_scope:object_detection.protos.CalibrationConfig)
    private static final object_detection.protos.Calibration.CalibrationConfig DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new object_detection.protos.Calibration.CalibrationConfig();
    }

    public static object_detection.protos.Calibration.CalibrationConfig getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<CalibrationConfig>
        PARSER = new com.google.protobuf.AbstractParser<CalibrationConfig>() {
      @java.lang.Override
      public CalibrationConfig parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new CalibrationConfig(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public object_detection.protos.Calibration.CalibrationConfig getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface FunctionApproximationOrBuilder extends
      // @@protoc_insertion_point(interface_extends:object_detection.protos.FunctionApproximation)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Message mapping class labels to indices
     * </pre>
     *
     * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
     * @return Whether the xYPairs field is set.
     */
    boolean hasXYPairs();
    /**
     * <pre>
     * Message mapping class labels to indices
     * </pre>
     *
     * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
     * @return The xYPairs.
     */
    object_detection.protos.Calibration.XYPairs getXYPairs();
    /**
     * <pre>
     * Message mapping class labels to indices
     * </pre>
     *
     * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
     */
    object_detection.protos.Calibration.XYPairsOrBuilder getXYPairsOrBuilder();
  }
  /**
   * <pre>
   * Message for class-agnostic domain/range mapping for function
   * approximations.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.FunctionApproximation}
   */
  public static final class FunctionApproximation extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.FunctionApproximation)
      FunctionApproximationOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use FunctionApproximation.newBuilder() to construct.
    private FunctionApproximation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private FunctionApproximation() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private FunctionApproximation(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              object_detection.protos.Calibration.XYPairs.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = xYPairs_.toBuilder();
              }
              xYPairs_ = input.readMessage(object_detection.protos.Calibration.XYPairs.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(xYPairs_);
                xYPairs_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_FunctionApproximation_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_FunctionApproximation_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              object_detection.protos.Calibration.FunctionApproximation.class, object_detection.protos.Calibration.FunctionApproximation.Builder.class);
    }

    private int bitField0_;
    public static final int X_Y_PAIRS_FIELD_NUMBER = 1;
    private object_detection.protos.Calibration.XYPairs xYPairs_;
    /**
     * <pre>
     * Message mapping class labels to indices
     * </pre>
     *
     * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
     * @return Whether the xYPairs field is set.
     */
    @java.lang.Override
    public boolean hasXYPairs() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <pre>
     * Message mapping class labels to indices
     * </pre>
     *
     * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
     * @return The xYPairs.
     */
    @java.lang.Override
    public object_detection.protos.Calibration.XYPairs getXYPairs() {
      return xYPairs_ == null ? object_detection.protos.Calibration.XYPairs.getDefaultInstance() : xYPairs_;
    }
    /**
     * <pre>
     * Message mapping class labels to indices
     * </pre>
     *
     * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
     */
    @java.lang.Override
    public object_detection.protos.Calibration.XYPairsOrBuilder getXYPairsOrBuilder() {
      return xYPairs_ == null ? object_detection.protos.Calibration.XYPairs.getDefaultInstance() : xYPairs_;
    }

    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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getXYPairs());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getXYPairs());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof object_detection.protos.Calibration.FunctionApproximation)) {
        return super.equals(obj);
      }
      object_detection.protos.Calibration.FunctionApproximation other = (object_detection.protos.Calibration.FunctionApproximation) obj;

      if (hasXYPairs() != other.hasXYPairs()) return false;
      if (hasXYPairs()) {
        if (!getXYPairs()
            .equals(other.getXYPairs())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasXYPairs()) {
        hash = (37 * hash) + X_Y_PAIRS_FIELD_NUMBER;
        hash = (53 * hash) + getXYPairs().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.Calibration.FunctionApproximation parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.FunctionApproximation parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.FunctionApproximation parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.FunctionApproximation parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.FunctionApproximation parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.FunctionApproximation parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.FunctionApproximation parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.FunctionApproximation 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 object_detection.protos.Calibration.FunctionApproximation parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.FunctionApproximation 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 object_detection.protos.Calibration.FunctionApproximation parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.FunctionApproximation 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(object_detection.protos.Calibration.FunctionApproximation 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>
     * Message for class-agnostic domain/range mapping for function
     * approximations.
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.FunctionApproximation}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.FunctionApproximation)
        object_detection.protos.Calibration.FunctionApproximationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_FunctionApproximation_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_FunctionApproximation_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                object_detection.protos.Calibration.FunctionApproximation.class, object_detection.protos.Calibration.FunctionApproximation.Builder.class);
      }

      // Construct using object_detection.protos.Calibration.FunctionApproximation.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getXYPairsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (xYPairsBuilder_ == null) {
          xYPairs_ = null;
        } else {
          xYPairsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_FunctionApproximation_descriptor;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.FunctionApproximation getDefaultInstanceForType() {
        return object_detection.protos.Calibration.FunctionApproximation.getDefaultInstance();
      }

      @java.lang.Override
      public object_detection.protos.Calibration.FunctionApproximation build() {
        object_detection.protos.Calibration.FunctionApproximation result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.FunctionApproximation buildPartial() {
        object_detection.protos.Calibration.FunctionApproximation result = new object_detection.protos.Calibration.FunctionApproximation(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (xYPairsBuilder_ == null) {
            result.xYPairs_ = xYPairs_;
          } else {
            result.xYPairs_ = xYPairsBuilder_.build();
          }
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @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 object_detection.protos.Calibration.FunctionApproximation) {
          return mergeFrom((object_detection.protos.Calibration.FunctionApproximation)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.Calibration.FunctionApproximation other) {
        if (other == object_detection.protos.Calibration.FunctionApproximation.getDefaultInstance()) return this;
        if (other.hasXYPairs()) {
          mergeXYPairs(other.getXYPairs());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        object_detection.protos.Calibration.FunctionApproximation parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.Calibration.FunctionApproximation) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private object_detection.protos.Calibration.XYPairs xYPairs_;
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.XYPairs, object_detection.protos.Calibration.XYPairs.Builder, object_detection.protos.Calibration.XYPairsOrBuilder> xYPairsBuilder_;
      /**
       * <pre>
       * Message mapping class labels to indices
       * </pre>
       *
       * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
       * @return Whether the xYPairs field is set.
       */
      public boolean hasXYPairs() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <pre>
       * Message mapping class labels to indices
       * </pre>
       *
       * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
       * @return The xYPairs.
       */
      public object_detection.protos.Calibration.XYPairs getXYPairs() {
        if (xYPairsBuilder_ == null) {
          return xYPairs_ == null ? object_detection.protos.Calibration.XYPairs.getDefaultInstance() : xYPairs_;
        } else {
          return xYPairsBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * Message mapping class labels to indices
       * </pre>
       *
       * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
       */
      public Builder setXYPairs(object_detection.protos.Calibration.XYPairs value) {
        if (xYPairsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          xYPairs_ = value;
          onChanged();
        } else {
          xYPairsBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <pre>
       * Message mapping class labels to indices
       * </pre>
       *
       * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
       */
      public Builder setXYPairs(
          object_detection.protos.Calibration.XYPairs.Builder builderForValue) {
        if (xYPairsBuilder_ == null) {
          xYPairs_ = builderForValue.build();
          onChanged();
        } else {
          xYPairsBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <pre>
       * Message mapping class labels to indices
       * </pre>
       *
       * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
       */
      public Builder mergeXYPairs(object_detection.protos.Calibration.XYPairs value) {
        if (xYPairsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              xYPairs_ != null &&
              xYPairs_ != object_detection.protos.Calibration.XYPairs.getDefaultInstance()) {
            xYPairs_ =
              object_detection.protos.Calibration.XYPairs.newBuilder(xYPairs_).mergeFrom(value).buildPartial();
          } else {
            xYPairs_ = value;
          }
          onChanged();
        } else {
          xYPairsBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <pre>
       * Message mapping class labels to indices
       * </pre>
       *
       * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
       */
      public Builder clearXYPairs() {
        if (xYPairsBuilder_ == null) {
          xYPairs_ = null;
          onChanged();
        } else {
          xYPairsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <pre>
       * Message mapping class labels to indices
       * </pre>
       *
       * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
       */
      public object_detection.protos.Calibration.XYPairs.Builder getXYPairsBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getXYPairsFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Message mapping class labels to indices
       * </pre>
       *
       * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
       */
      public object_detection.protos.Calibration.XYPairsOrBuilder getXYPairsOrBuilder() {
        if (xYPairsBuilder_ != null) {
          return xYPairsBuilder_.getMessageOrBuilder();
        } else {
          return xYPairs_ == null ?
              object_detection.protos.Calibration.XYPairs.getDefaultInstance() : xYPairs_;
        }
      }
      /**
       * <pre>
       * Message mapping class labels to indices
       * </pre>
       *
       * <code>optional .object_detection.protos.XYPairs x_y_pairs = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.XYPairs, object_detection.protos.Calibration.XYPairs.Builder, object_detection.protos.Calibration.XYPairsOrBuilder>
          getXYPairsFieldBuilder() {
        if (xYPairsBuilder_ == null) {
          xYPairsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.Calibration.XYPairs, object_detection.protos.Calibration.XYPairs.Builder, object_detection.protos.Calibration.XYPairsOrBuilder>(
                  getXYPairs(),
                  getParentForChildren(),
                  isClean());
          xYPairs_ = null;
        }
        return xYPairsBuilder_;
      }
      @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:object_detection.protos.FunctionApproximation)
    }

    // @@protoc_insertion_point(class_scope:object_detection.protos.FunctionApproximation)
    private static final object_detection.protos.Calibration.FunctionApproximation DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new object_detection.protos.Calibration.FunctionApproximation();
    }

    public static object_detection.protos.Calibration.FunctionApproximation getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<FunctionApproximation>
        PARSER = new com.google.protobuf.AbstractParser<FunctionApproximation>() {
      @java.lang.Override
      public FunctionApproximation parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new FunctionApproximation(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public object_detection.protos.Calibration.FunctionApproximation getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ClassIdFunctionApproximationsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:object_detection.protos.ClassIdFunctionApproximations)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Message mapping class ids to indices.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
     */
    int getClassIdXyPairsMapCount();
    /**
     * <pre>
     * Message mapping class ids to indices.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
     */
    boolean containsClassIdXyPairsMap(
        int key);
    /**
     * Use {@link #getClassIdXyPairsMapMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs>
    getClassIdXyPairsMap();
    /**
     * <pre>
     * Message mapping class ids to indices.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
     */
    java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs>
    getClassIdXyPairsMapMap();
    /**
     * <pre>
     * Message mapping class ids to indices.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
     */

    object_detection.protos.Calibration.XYPairs getClassIdXyPairsMapOrDefault(
        int key,
        object_detection.protos.Calibration.XYPairs defaultValue);
    /**
     * <pre>
     * Message mapping class ids to indices.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
     */

    object_detection.protos.Calibration.XYPairs getClassIdXyPairsMapOrThrow(
        int key);
  }
  /**
   * <pre>
   * Message for class-specific domain/range mapping for function
   * approximations.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.ClassIdFunctionApproximations}
   */
  public static final class ClassIdFunctionApproximations extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.ClassIdFunctionApproximations)
      ClassIdFunctionApproximationsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ClassIdFunctionApproximations.newBuilder() to construct.
    private ClassIdFunctionApproximations(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ClassIdFunctionApproximations() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ClassIdFunctionApproximations(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                classIdXyPairsMap_ = com.google.protobuf.MapField.newMapField(
                    ClassIdXyPairsMapDefaultEntryHolder.defaultEntry);
                mutable_bitField0_ |= 0x00000001;
              }
              com.google.protobuf.MapEntry<java.lang.Integer, object_detection.protos.Calibration.XYPairs>
              classIdXyPairsMap__ = input.readMessage(
                  ClassIdXyPairsMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              classIdXyPairsMap_.getMutableMap().put(
                  classIdXyPairsMap__.getKey(), classIdXyPairsMap__.getValue());
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdFunctionApproximations_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    @java.lang.Override
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 1:
          return internalGetClassIdXyPairsMap();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdFunctionApproximations_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              object_detection.protos.Calibration.ClassIdFunctionApproximations.class, object_detection.protos.Calibration.ClassIdFunctionApproximations.Builder.class);
    }

    public static final int CLASS_ID_XY_PAIRS_MAP_FIELD_NUMBER = 1;
    private static final class ClassIdXyPairsMapDefaultEntryHolder {
      static final com.google.protobuf.MapEntry<
          java.lang.Integer, object_detection.protos.Calibration.XYPairs> defaultEntry =
              com.google.protobuf.MapEntry
              .<java.lang.Integer, object_detection.protos.Calibration.XYPairs>newDefaultInstance(
                  object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdFunctionApproximations_ClassIdXyPairsMapEntry_descriptor,
                  com.google.protobuf.WireFormat.FieldType.INT32,
                  0,
                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
                  object_detection.protos.Calibration.XYPairs.getDefaultInstance());
    }
    private com.google.protobuf.MapField<
        java.lang.Integer, object_detection.protos.Calibration.XYPairs> classIdXyPairsMap_;
    private com.google.protobuf.MapField<java.lang.Integer, object_detection.protos.Calibration.XYPairs>
    internalGetClassIdXyPairsMap() {
      if (classIdXyPairsMap_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            ClassIdXyPairsMapDefaultEntryHolder.defaultEntry);
      }
      return classIdXyPairsMap_;
    }

    public int getClassIdXyPairsMapCount() {
      return internalGetClassIdXyPairsMap().getMap().size();
    }
    /**
     * <pre>
     * Message mapping class ids to indices.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
     */

    @java.lang.Override
    public boolean containsClassIdXyPairsMap(
        int key) {

      return internalGetClassIdXyPairsMap().getMap().containsKey(key);
    }
    /**
     * Use {@link #getClassIdXyPairsMapMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs> getClassIdXyPairsMap() {
      return getClassIdXyPairsMapMap();
    }
    /**
     * <pre>
     * Message mapping class ids to indices.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs> getClassIdXyPairsMapMap() {
      return internalGetClassIdXyPairsMap().getMap();
    }
    /**
     * <pre>
     * Message mapping class ids to indices.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
     */
    @java.lang.Override

    public object_detection.protos.Calibration.XYPairs getClassIdXyPairsMapOrDefault(
        int key,
        object_detection.protos.Calibration.XYPairs defaultValue) {

      java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs> map =
          internalGetClassIdXyPairsMap().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * Message mapping class ids to indices.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
     */
    @java.lang.Override

    public object_detection.protos.Calibration.XYPairs getClassIdXyPairsMapOrThrow(
        int key) {

      java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs> map =
          internalGetClassIdXyPairsMap().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    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 {
      com.google.protobuf.GeneratedMessageV3
        .serializeIntegerMapTo(
          output,
          internalGetClassIdXyPairsMap(),
          ClassIdXyPairsMapDefaultEntryHolder.defaultEntry,
          1);
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (java.util.Map.Entry<java.lang.Integer, object_detection.protos.Calibration.XYPairs> entry
           : internalGetClassIdXyPairsMap().getMap().entrySet()) {
        com.google.protobuf.MapEntry<java.lang.Integer, object_detection.protos.Calibration.XYPairs>
        classIdXyPairsMap__ = ClassIdXyPairsMapDefaultEntryHolder.defaultEntry.newBuilderForType()
            .setKey(entry.getKey())
            .setValue(entry.getValue())
            .build();
        size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, classIdXyPairsMap__);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof object_detection.protos.Calibration.ClassIdFunctionApproximations)) {
        return super.equals(obj);
      }
      object_detection.protos.Calibration.ClassIdFunctionApproximations other = (object_detection.protos.Calibration.ClassIdFunctionApproximations) obj;

      if (!internalGetClassIdXyPairsMap().equals(
          other.internalGetClassIdXyPairsMap())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (!internalGetClassIdXyPairsMap().getMap().isEmpty()) {
        hash = (37 * hash) + CLASS_ID_XY_PAIRS_MAP_FIELD_NUMBER;
        hash = (53 * hash) + internalGetClassIdXyPairsMap().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.Calibration.ClassIdFunctionApproximations parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.ClassIdFunctionApproximations parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.ClassIdFunctionApproximations parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.ClassIdFunctionApproximations parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.ClassIdFunctionApproximations parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.ClassIdFunctionApproximations parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.ClassIdFunctionApproximations parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.ClassIdFunctionApproximations 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 object_detection.protos.Calibration.ClassIdFunctionApproximations parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.ClassIdFunctionApproximations 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 object_detection.protos.Calibration.ClassIdFunctionApproximations parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.ClassIdFunctionApproximations 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(object_detection.protos.Calibration.ClassIdFunctionApproximations 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>
     * Message for class-specific domain/range mapping for function
     * approximations.
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.ClassIdFunctionApproximations}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.ClassIdFunctionApproximations)
        object_detection.protos.Calibration.ClassIdFunctionApproximationsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdFunctionApproximations_descriptor;
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 1:
            return internalGetClassIdXyPairsMap();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(
          int number) {
        switch (number) {
          case 1:
            return internalGetMutableClassIdXyPairsMap();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdFunctionApproximations_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                object_detection.protos.Calibration.ClassIdFunctionApproximations.class, object_detection.protos.Calibration.ClassIdFunctionApproximations.Builder.class);
      }

      // Construct using object_detection.protos.Calibration.ClassIdFunctionApproximations.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        internalGetMutableClassIdXyPairsMap().clear();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdFunctionApproximations_descriptor;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.ClassIdFunctionApproximations getDefaultInstanceForType() {
        return object_detection.protos.Calibration.ClassIdFunctionApproximations.getDefaultInstance();
      }

      @java.lang.Override
      public object_detection.protos.Calibration.ClassIdFunctionApproximations build() {
        object_detection.protos.Calibration.ClassIdFunctionApproximations result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.ClassIdFunctionApproximations buildPartial() {
        object_detection.protos.Calibration.ClassIdFunctionApproximations result = new object_detection.protos.Calibration.ClassIdFunctionApproximations(this);
        int from_bitField0_ = bitField0_;
        result.classIdXyPairsMap_ = internalGetClassIdXyPairsMap();
        result.classIdXyPairsMap_.makeImmutable();
        onBuilt();
        return result;
      }

      @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 object_detection.protos.Calibration.ClassIdFunctionApproximations) {
          return mergeFrom((object_detection.protos.Calibration.ClassIdFunctionApproximations)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.Calibration.ClassIdFunctionApproximations other) {
        if (other == object_detection.protos.Calibration.ClassIdFunctionApproximations.getDefaultInstance()) return this;
        internalGetMutableClassIdXyPairsMap().mergeFrom(
            other.internalGetClassIdXyPairsMap());
        this.mergeUnknownFields(other.unknownFields);
        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 {
        object_detection.protos.Calibration.ClassIdFunctionApproximations parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.Calibration.ClassIdFunctionApproximations) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.MapField<
          java.lang.Integer, object_detection.protos.Calibration.XYPairs> classIdXyPairsMap_;
      private com.google.protobuf.MapField<java.lang.Integer, object_detection.protos.Calibration.XYPairs>
      internalGetClassIdXyPairsMap() {
        if (classIdXyPairsMap_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              ClassIdXyPairsMapDefaultEntryHolder.defaultEntry);
        }
        return classIdXyPairsMap_;
      }
      private com.google.protobuf.MapField<java.lang.Integer, object_detection.protos.Calibration.XYPairs>
      internalGetMutableClassIdXyPairsMap() {
        onChanged();;
        if (classIdXyPairsMap_ == null) {
          classIdXyPairsMap_ = com.google.protobuf.MapField.newMapField(
              ClassIdXyPairsMapDefaultEntryHolder.defaultEntry);
        }
        if (!classIdXyPairsMap_.isMutable()) {
          classIdXyPairsMap_ = classIdXyPairsMap_.copy();
        }
        return classIdXyPairsMap_;
      }

      public int getClassIdXyPairsMapCount() {
        return internalGetClassIdXyPairsMap().getMap().size();
      }
      /**
       * <pre>
       * Message mapping class ids to indices.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
       */

      @java.lang.Override
      public boolean containsClassIdXyPairsMap(
          int key) {

        return internalGetClassIdXyPairsMap().getMap().containsKey(key);
      }
      /**
       * Use {@link #getClassIdXyPairsMapMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs> getClassIdXyPairsMap() {
        return getClassIdXyPairsMapMap();
      }
      /**
       * <pre>
       * Message mapping class ids to indices.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
       */
      @java.lang.Override

      public java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs> getClassIdXyPairsMapMap() {
        return internalGetClassIdXyPairsMap().getMap();
      }
      /**
       * <pre>
       * Message mapping class ids to indices.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
       */
      @java.lang.Override

      public object_detection.protos.Calibration.XYPairs getClassIdXyPairsMapOrDefault(
          int key,
          object_detection.protos.Calibration.XYPairs defaultValue) {

        java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs> map =
            internalGetClassIdXyPairsMap().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <pre>
       * Message mapping class ids to indices.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
       */
      @java.lang.Override

      public object_detection.protos.Calibration.XYPairs getClassIdXyPairsMapOrThrow(
          int key) {

        java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs> map =
            internalGetClassIdXyPairsMap().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }

      public Builder clearClassIdXyPairsMap() {
        internalGetMutableClassIdXyPairsMap().getMutableMap()
            .clear();
        return this;
      }
      /**
       * <pre>
       * Message mapping class ids to indices.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
       */

      public Builder removeClassIdXyPairsMap(
          int key) {

        internalGetMutableClassIdXyPairsMap().getMutableMap()
            .remove(key);
        return this;
      }
      /**
       * Use alternate mutation accessors instead.
       */
      @java.lang.Deprecated
      public java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs>
      getMutableClassIdXyPairsMap() {
        return internalGetMutableClassIdXyPairsMap().getMutableMap();
      }
      /**
       * <pre>
       * Message mapping class ids to indices.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
       */
      public Builder putClassIdXyPairsMap(
          int key,
          object_detection.protos.Calibration.XYPairs value) {

        if (value == null) { throw new java.lang.NullPointerException(); }
        internalGetMutableClassIdXyPairsMap().getMutableMap()
            .put(key, value);
        return this;
      }
      /**
       * <pre>
       * Message mapping class ids to indices.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.XYPairs&gt; class_id_xy_pairs_map = 1;</code>
       */

      public Builder putAllClassIdXyPairsMap(
          java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs> values) {
        internalGetMutableClassIdXyPairsMap().getMutableMap()
            .putAll(values);
        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:object_detection.protos.ClassIdFunctionApproximations)
    }

    // @@protoc_insertion_point(class_scope:object_detection.protos.ClassIdFunctionApproximations)
    private static final object_detection.protos.Calibration.ClassIdFunctionApproximations DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new object_detection.protos.Calibration.ClassIdFunctionApproximations();
    }

    public static object_detection.protos.Calibration.ClassIdFunctionApproximations getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<ClassIdFunctionApproximations>
        PARSER = new com.google.protobuf.AbstractParser<ClassIdFunctionApproximations>() {
      @java.lang.Override
      public ClassIdFunctionApproximations parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ClassIdFunctionApproximations(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public object_detection.protos.Calibration.ClassIdFunctionApproximations getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface SigmoidCalibrationOrBuilder extends
      // @@protoc_insertion_point(interface_extends:object_detection.protos.SigmoidCalibration)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters
     * </pre>
     *
     * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
     * @return Whether the sigmoidParameters field is set.
     */
    boolean hasSigmoidParameters();
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters
     * </pre>
     *
     * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
     * @return The sigmoidParameters.
     */
    object_detection.protos.Calibration.SigmoidParameters getSigmoidParameters();
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters
     * </pre>
     *
     * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
     */
    object_detection.protos.Calibration.SigmoidParametersOrBuilder getSigmoidParametersOrBuilder();
  }
  /**
   * <pre>
   * Message for class-agnostic Sigmoid Calibration.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.SigmoidCalibration}
   */
  public static final class SigmoidCalibration extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.SigmoidCalibration)
      SigmoidCalibrationOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SigmoidCalibration.newBuilder() to construct.
    private SigmoidCalibration(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private SigmoidCalibration() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SigmoidCalibration(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              object_detection.protos.Calibration.SigmoidParameters.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = sigmoidParameters_.toBuilder();
              }
              sigmoidParameters_ = input.readMessage(object_detection.protos.Calibration.SigmoidParameters.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(sigmoidParameters_);
                sigmoidParameters_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_SigmoidCalibration_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_SigmoidCalibration_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              object_detection.protos.Calibration.SigmoidCalibration.class, object_detection.protos.Calibration.SigmoidCalibration.Builder.class);
    }

    private int bitField0_;
    public static final int SIGMOID_PARAMETERS_FIELD_NUMBER = 1;
    private object_detection.protos.Calibration.SigmoidParameters sigmoidParameters_;
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters
     * </pre>
     *
     * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
     * @return Whether the sigmoidParameters field is set.
     */
    @java.lang.Override
    public boolean hasSigmoidParameters() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters
     * </pre>
     *
     * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
     * @return The sigmoidParameters.
     */
    @java.lang.Override
    public object_detection.protos.Calibration.SigmoidParameters getSigmoidParameters() {
      return sigmoidParameters_ == null ? object_detection.protos.Calibration.SigmoidParameters.getDefaultInstance() : sigmoidParameters_;
    }
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters
     * </pre>
     *
     * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
     */
    @java.lang.Override
    public object_detection.protos.Calibration.SigmoidParametersOrBuilder getSigmoidParametersOrBuilder() {
      return sigmoidParameters_ == null ? object_detection.protos.Calibration.SigmoidParameters.getDefaultInstance() : sigmoidParameters_;
    }

    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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getSigmoidParameters());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getSigmoidParameters());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof object_detection.protos.Calibration.SigmoidCalibration)) {
        return super.equals(obj);
      }
      object_detection.protos.Calibration.SigmoidCalibration other = (object_detection.protos.Calibration.SigmoidCalibration) obj;

      if (hasSigmoidParameters() != other.hasSigmoidParameters()) return false;
      if (hasSigmoidParameters()) {
        if (!getSigmoidParameters()
            .equals(other.getSigmoidParameters())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasSigmoidParameters()) {
        hash = (37 * hash) + SIGMOID_PARAMETERS_FIELD_NUMBER;
        hash = (53 * hash) + getSigmoidParameters().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.Calibration.SigmoidCalibration parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.SigmoidCalibration parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.SigmoidCalibration parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.SigmoidCalibration parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.SigmoidCalibration parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.SigmoidCalibration parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.SigmoidCalibration parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.SigmoidCalibration 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 object_detection.protos.Calibration.SigmoidCalibration parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.SigmoidCalibration 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 object_detection.protos.Calibration.SigmoidCalibration parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.SigmoidCalibration 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(object_detection.protos.Calibration.SigmoidCalibration 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>
     * Message for class-agnostic Sigmoid Calibration.
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.SigmoidCalibration}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.SigmoidCalibration)
        object_detection.protos.Calibration.SigmoidCalibrationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_SigmoidCalibration_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_SigmoidCalibration_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                object_detection.protos.Calibration.SigmoidCalibration.class, object_detection.protos.Calibration.SigmoidCalibration.Builder.class);
      }

      // Construct using object_detection.protos.Calibration.SigmoidCalibration.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getSigmoidParametersFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (sigmoidParametersBuilder_ == null) {
          sigmoidParameters_ = null;
        } else {
          sigmoidParametersBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_SigmoidCalibration_descriptor;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.SigmoidCalibration getDefaultInstanceForType() {
        return object_detection.protos.Calibration.SigmoidCalibration.getDefaultInstance();
      }

      @java.lang.Override
      public object_detection.protos.Calibration.SigmoidCalibration build() {
        object_detection.protos.Calibration.SigmoidCalibration result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.SigmoidCalibration buildPartial() {
        object_detection.protos.Calibration.SigmoidCalibration result = new object_detection.protos.Calibration.SigmoidCalibration(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (sigmoidParametersBuilder_ == null) {
            result.sigmoidParameters_ = sigmoidParameters_;
          } else {
            result.sigmoidParameters_ = sigmoidParametersBuilder_.build();
          }
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @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 object_detection.protos.Calibration.SigmoidCalibration) {
          return mergeFrom((object_detection.protos.Calibration.SigmoidCalibration)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.Calibration.SigmoidCalibration other) {
        if (other == object_detection.protos.Calibration.SigmoidCalibration.getDefaultInstance()) return this;
        if (other.hasSigmoidParameters()) {
          mergeSigmoidParameters(other.getSigmoidParameters());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        object_detection.protos.Calibration.SigmoidCalibration parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.Calibration.SigmoidCalibration) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private object_detection.protos.Calibration.SigmoidParameters sigmoidParameters_;
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.SigmoidParameters, object_detection.protos.Calibration.SigmoidParameters.Builder, object_detection.protos.Calibration.SigmoidParametersOrBuilder> sigmoidParametersBuilder_;
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters
       * </pre>
       *
       * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
       * @return Whether the sigmoidParameters field is set.
       */
      public boolean hasSigmoidParameters() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters
       * </pre>
       *
       * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
       * @return The sigmoidParameters.
       */
      public object_detection.protos.Calibration.SigmoidParameters getSigmoidParameters() {
        if (sigmoidParametersBuilder_ == null) {
          return sigmoidParameters_ == null ? object_detection.protos.Calibration.SigmoidParameters.getDefaultInstance() : sigmoidParameters_;
        } else {
          return sigmoidParametersBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters
       * </pre>
       *
       * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
       */
      public Builder setSigmoidParameters(object_detection.protos.Calibration.SigmoidParameters value) {
        if (sigmoidParametersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          sigmoidParameters_ = value;
          onChanged();
        } else {
          sigmoidParametersBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters
       * </pre>
       *
       * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
       */
      public Builder setSigmoidParameters(
          object_detection.protos.Calibration.SigmoidParameters.Builder builderForValue) {
        if (sigmoidParametersBuilder_ == null) {
          sigmoidParameters_ = builderForValue.build();
          onChanged();
        } else {
          sigmoidParametersBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters
       * </pre>
       *
       * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
       */
      public Builder mergeSigmoidParameters(object_detection.protos.Calibration.SigmoidParameters value) {
        if (sigmoidParametersBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              sigmoidParameters_ != null &&
              sigmoidParameters_ != object_detection.protos.Calibration.SigmoidParameters.getDefaultInstance()) {
            sigmoidParameters_ =
              object_detection.protos.Calibration.SigmoidParameters.newBuilder(sigmoidParameters_).mergeFrom(value).buildPartial();
          } else {
            sigmoidParameters_ = value;
          }
          onChanged();
        } else {
          sigmoidParametersBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters
       * </pre>
       *
       * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
       */
      public Builder clearSigmoidParameters() {
        if (sigmoidParametersBuilder_ == null) {
          sigmoidParameters_ = null;
          onChanged();
        } else {
          sigmoidParametersBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters
       * </pre>
       *
       * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
       */
      public object_detection.protos.Calibration.SigmoidParameters.Builder getSigmoidParametersBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getSigmoidParametersFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters
       * </pre>
       *
       * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
       */
      public object_detection.protos.Calibration.SigmoidParametersOrBuilder getSigmoidParametersOrBuilder() {
        if (sigmoidParametersBuilder_ != null) {
          return sigmoidParametersBuilder_.getMessageOrBuilder();
        } else {
          return sigmoidParameters_ == null ?
              object_detection.protos.Calibration.SigmoidParameters.getDefaultInstance() : sigmoidParameters_;
        }
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters
       * </pre>
       *
       * <code>optional .object_detection.protos.SigmoidParameters sigmoid_parameters = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.Calibration.SigmoidParameters, object_detection.protos.Calibration.SigmoidParameters.Builder, object_detection.protos.Calibration.SigmoidParametersOrBuilder>
          getSigmoidParametersFieldBuilder() {
        if (sigmoidParametersBuilder_ == null) {
          sigmoidParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.Calibration.SigmoidParameters, object_detection.protos.Calibration.SigmoidParameters.Builder, object_detection.protos.Calibration.SigmoidParametersOrBuilder>(
                  getSigmoidParameters(),
                  getParentForChildren(),
                  isClean());
          sigmoidParameters_ = null;
        }
        return sigmoidParametersBuilder_;
      }
      @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:object_detection.protos.SigmoidCalibration)
    }

    // @@protoc_insertion_point(class_scope:object_detection.protos.SigmoidCalibration)
    private static final object_detection.protos.Calibration.SigmoidCalibration DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new object_detection.protos.Calibration.SigmoidCalibration();
    }

    public static object_detection.protos.Calibration.SigmoidCalibration getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<SigmoidCalibration>
        PARSER = new com.google.protobuf.AbstractParser<SigmoidCalibration>() {
      @java.lang.Override
      public SigmoidCalibration parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new SigmoidCalibration(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public object_detection.protos.Calibration.SigmoidCalibration getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ClassIdSigmoidCalibrationsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:object_detection.protos.ClassIdSigmoidCalibrations)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
     */
    int getClassIdSigmoidParametersMapCount();
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
     */
    boolean containsClassIdSigmoidParametersMap(
        int key);
    /**
     * Use {@link #getClassIdSigmoidParametersMapMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters>
    getClassIdSigmoidParametersMap();
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
     */
    java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters>
    getClassIdSigmoidParametersMapMap();
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
     */

    object_detection.protos.Calibration.SigmoidParameters getClassIdSigmoidParametersMapOrDefault(
        int key,
        object_detection.protos.Calibration.SigmoidParameters defaultValue);
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
     */

    object_detection.protos.Calibration.SigmoidParameters getClassIdSigmoidParametersMapOrThrow(
        int key);
  }
  /**
   * <pre>
   * Message for class-specific Sigmoid Calibration.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.ClassIdSigmoidCalibrations}
   */
  public static final class ClassIdSigmoidCalibrations extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.ClassIdSigmoidCalibrations)
      ClassIdSigmoidCalibrationsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ClassIdSigmoidCalibrations.newBuilder() to construct.
    private ClassIdSigmoidCalibrations(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ClassIdSigmoidCalibrations() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ClassIdSigmoidCalibrations(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                classIdSigmoidParametersMap_ = com.google.protobuf.MapField.newMapField(
                    ClassIdSigmoidParametersMapDefaultEntryHolder.defaultEntry);
                mutable_bitField0_ |= 0x00000001;
              }
              com.google.protobuf.MapEntry<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters>
              classIdSigmoidParametersMap__ = input.readMessage(
                  ClassIdSigmoidParametersMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              classIdSigmoidParametersMap_.getMutableMap().put(
                  classIdSigmoidParametersMap__.getKey(), classIdSigmoidParametersMap__.getValue());
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdSigmoidCalibrations_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    @java.lang.Override
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 1:
          return internalGetClassIdSigmoidParametersMap();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdSigmoidCalibrations_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              object_detection.protos.Calibration.ClassIdSigmoidCalibrations.class, object_detection.protos.Calibration.ClassIdSigmoidCalibrations.Builder.class);
    }

    public static final int CLASS_ID_SIGMOID_PARAMETERS_MAP_FIELD_NUMBER = 1;
    private static final class ClassIdSigmoidParametersMapDefaultEntryHolder {
      static final com.google.protobuf.MapEntry<
          java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> defaultEntry =
              com.google.protobuf.MapEntry
              .<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters>newDefaultInstance(
                  object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdSigmoidCalibrations_ClassIdSigmoidParametersMapEntry_descriptor,
                  com.google.protobuf.WireFormat.FieldType.INT32,
                  0,
                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
                  object_detection.protos.Calibration.SigmoidParameters.getDefaultInstance());
    }
    private com.google.protobuf.MapField<
        java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> classIdSigmoidParametersMap_;
    private com.google.protobuf.MapField<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters>
    internalGetClassIdSigmoidParametersMap() {
      if (classIdSigmoidParametersMap_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            ClassIdSigmoidParametersMapDefaultEntryHolder.defaultEntry);
      }
      return classIdSigmoidParametersMap_;
    }

    public int getClassIdSigmoidParametersMapCount() {
      return internalGetClassIdSigmoidParametersMap().getMap().size();
    }
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
     */

    @java.lang.Override
    public boolean containsClassIdSigmoidParametersMap(
        int key) {

      return internalGetClassIdSigmoidParametersMap().getMap().containsKey(key);
    }
    /**
     * Use {@link #getClassIdSigmoidParametersMapMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> getClassIdSigmoidParametersMap() {
      return getClassIdSigmoidParametersMapMap();
    }
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> getClassIdSigmoidParametersMapMap() {
      return internalGetClassIdSigmoidParametersMap().getMap();
    }
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
     */
    @java.lang.Override

    public object_detection.protos.Calibration.SigmoidParameters getClassIdSigmoidParametersMapOrDefault(
        int key,
        object_detection.protos.Calibration.SigmoidParameters defaultValue) {

      java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> map =
          internalGetClassIdSigmoidParametersMap().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * Message mapping class index to Sigmoid Parameters.
     * </pre>
     *
     * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
     */
    @java.lang.Override

    public object_detection.protos.Calibration.SigmoidParameters getClassIdSigmoidParametersMapOrThrow(
        int key) {

      java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> map =
          internalGetClassIdSigmoidParametersMap().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    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 {
      com.google.protobuf.GeneratedMessageV3
        .serializeIntegerMapTo(
          output,
          internalGetClassIdSigmoidParametersMap(),
          ClassIdSigmoidParametersMapDefaultEntryHolder.defaultEntry,
          1);
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (java.util.Map.Entry<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> entry
           : internalGetClassIdSigmoidParametersMap().getMap().entrySet()) {
        com.google.protobuf.MapEntry<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters>
        classIdSigmoidParametersMap__ = ClassIdSigmoidParametersMapDefaultEntryHolder.defaultEntry.newBuilderForType()
            .setKey(entry.getKey())
            .setValue(entry.getValue())
            .build();
        size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, classIdSigmoidParametersMap__);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof object_detection.protos.Calibration.ClassIdSigmoidCalibrations)) {
        return super.equals(obj);
      }
      object_detection.protos.Calibration.ClassIdSigmoidCalibrations other = (object_detection.protos.Calibration.ClassIdSigmoidCalibrations) obj;

      if (!internalGetClassIdSigmoidParametersMap().equals(
          other.internalGetClassIdSigmoidParametersMap())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (!internalGetClassIdSigmoidParametersMap().getMap().isEmpty()) {
        hash = (37 * hash) + CLASS_ID_SIGMOID_PARAMETERS_MAP_FIELD_NUMBER;
        hash = (53 * hash) + internalGetClassIdSigmoidParametersMap().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.Calibration.ClassIdSigmoidCalibrations parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.ClassIdSigmoidCalibrations parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.ClassIdSigmoidCalibrations parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.ClassIdSigmoidCalibrations parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.ClassIdSigmoidCalibrations parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.ClassIdSigmoidCalibrations parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.ClassIdSigmoidCalibrations parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.ClassIdSigmoidCalibrations 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 object_detection.protos.Calibration.ClassIdSigmoidCalibrations parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.ClassIdSigmoidCalibrations 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 object_detection.protos.Calibration.ClassIdSigmoidCalibrations parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.ClassIdSigmoidCalibrations 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(object_detection.protos.Calibration.ClassIdSigmoidCalibrations 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>
     * Message for class-specific Sigmoid Calibration.
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.ClassIdSigmoidCalibrations}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.ClassIdSigmoidCalibrations)
        object_detection.protos.Calibration.ClassIdSigmoidCalibrationsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdSigmoidCalibrations_descriptor;
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 1:
            return internalGetClassIdSigmoidParametersMap();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(
          int number) {
        switch (number) {
          case 1:
            return internalGetMutableClassIdSigmoidParametersMap();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdSigmoidCalibrations_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                object_detection.protos.Calibration.ClassIdSigmoidCalibrations.class, object_detection.protos.Calibration.ClassIdSigmoidCalibrations.Builder.class);
      }

      // Construct using object_detection.protos.Calibration.ClassIdSigmoidCalibrations.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        internalGetMutableClassIdSigmoidParametersMap().clear();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_ClassIdSigmoidCalibrations_descriptor;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.ClassIdSigmoidCalibrations getDefaultInstanceForType() {
        return object_detection.protos.Calibration.ClassIdSigmoidCalibrations.getDefaultInstance();
      }

      @java.lang.Override
      public object_detection.protos.Calibration.ClassIdSigmoidCalibrations build() {
        object_detection.protos.Calibration.ClassIdSigmoidCalibrations result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.ClassIdSigmoidCalibrations buildPartial() {
        object_detection.protos.Calibration.ClassIdSigmoidCalibrations result = new object_detection.protos.Calibration.ClassIdSigmoidCalibrations(this);
        int from_bitField0_ = bitField0_;
        result.classIdSigmoidParametersMap_ = internalGetClassIdSigmoidParametersMap();
        result.classIdSigmoidParametersMap_.makeImmutable();
        onBuilt();
        return result;
      }

      @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 object_detection.protos.Calibration.ClassIdSigmoidCalibrations) {
          return mergeFrom((object_detection.protos.Calibration.ClassIdSigmoidCalibrations)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.Calibration.ClassIdSigmoidCalibrations other) {
        if (other == object_detection.protos.Calibration.ClassIdSigmoidCalibrations.getDefaultInstance()) return this;
        internalGetMutableClassIdSigmoidParametersMap().mergeFrom(
            other.internalGetClassIdSigmoidParametersMap());
        this.mergeUnknownFields(other.unknownFields);
        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 {
        object_detection.protos.Calibration.ClassIdSigmoidCalibrations parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.Calibration.ClassIdSigmoidCalibrations) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.MapField<
          java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> classIdSigmoidParametersMap_;
      private com.google.protobuf.MapField<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters>
      internalGetClassIdSigmoidParametersMap() {
        if (classIdSigmoidParametersMap_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              ClassIdSigmoidParametersMapDefaultEntryHolder.defaultEntry);
        }
        return classIdSigmoidParametersMap_;
      }
      private com.google.protobuf.MapField<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters>
      internalGetMutableClassIdSigmoidParametersMap() {
        onChanged();;
        if (classIdSigmoidParametersMap_ == null) {
          classIdSigmoidParametersMap_ = com.google.protobuf.MapField.newMapField(
              ClassIdSigmoidParametersMapDefaultEntryHolder.defaultEntry);
        }
        if (!classIdSigmoidParametersMap_.isMutable()) {
          classIdSigmoidParametersMap_ = classIdSigmoidParametersMap_.copy();
        }
        return classIdSigmoidParametersMap_;
      }

      public int getClassIdSigmoidParametersMapCount() {
        return internalGetClassIdSigmoidParametersMap().getMap().size();
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
       */

      @java.lang.Override
      public boolean containsClassIdSigmoidParametersMap(
          int key) {

        return internalGetClassIdSigmoidParametersMap().getMap().containsKey(key);
      }
      /**
       * Use {@link #getClassIdSigmoidParametersMapMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> getClassIdSigmoidParametersMap() {
        return getClassIdSigmoidParametersMapMap();
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
       */
      @java.lang.Override

      public java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> getClassIdSigmoidParametersMapMap() {
        return internalGetClassIdSigmoidParametersMap().getMap();
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
       */
      @java.lang.Override

      public object_detection.protos.Calibration.SigmoidParameters getClassIdSigmoidParametersMapOrDefault(
          int key,
          object_detection.protos.Calibration.SigmoidParameters defaultValue) {

        java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> map =
            internalGetClassIdSigmoidParametersMap().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
       */
      @java.lang.Override

      public object_detection.protos.Calibration.SigmoidParameters getClassIdSigmoidParametersMapOrThrow(
          int key) {

        java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> map =
            internalGetClassIdSigmoidParametersMap().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }

      public Builder clearClassIdSigmoidParametersMap() {
        internalGetMutableClassIdSigmoidParametersMap().getMutableMap()
            .clear();
        return this;
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
       */

      public Builder removeClassIdSigmoidParametersMap(
          int key) {

        internalGetMutableClassIdSigmoidParametersMap().getMutableMap()
            .remove(key);
        return this;
      }
      /**
       * Use alternate mutation accessors instead.
       */
      @java.lang.Deprecated
      public java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters>
      getMutableClassIdSigmoidParametersMap() {
        return internalGetMutableClassIdSigmoidParametersMap().getMutableMap();
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
       */
      public Builder putClassIdSigmoidParametersMap(
          int key,
          object_detection.protos.Calibration.SigmoidParameters value) {

        if (value == null) { throw new java.lang.NullPointerException(); }
        internalGetMutableClassIdSigmoidParametersMap().getMutableMap()
            .put(key, value);
        return this;
      }
      /**
       * <pre>
       * Message mapping class index to Sigmoid Parameters.
       * </pre>
       *
       * <code>map&lt;int32, .object_detection.protos.SigmoidParameters&gt; class_id_sigmoid_parameters_map = 1;</code>
       */

      public Builder putAllClassIdSigmoidParametersMap(
          java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters> values) {
        internalGetMutableClassIdSigmoidParametersMap().getMutableMap()
            .putAll(values);
        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:object_detection.protos.ClassIdSigmoidCalibrations)
    }

    // @@protoc_insertion_point(class_scope:object_detection.protos.ClassIdSigmoidCalibrations)
    private static final object_detection.protos.Calibration.ClassIdSigmoidCalibrations DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new object_detection.protos.Calibration.ClassIdSigmoidCalibrations();
    }

    public static object_detection.protos.Calibration.ClassIdSigmoidCalibrations getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<ClassIdSigmoidCalibrations>
        PARSER = new com.google.protobuf.AbstractParser<ClassIdSigmoidCalibrations>() {
      @java.lang.Override
      public ClassIdSigmoidCalibrations parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ClassIdSigmoidCalibrations(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public object_detection.protos.Calibration.ClassIdSigmoidCalibrations getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface TemperatureScalingCalibrationOrBuilder extends
      // @@protoc_insertion_point(interface_extends:object_detection.protos.TemperatureScalingCalibration)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional float scaler = 1;</code>
     * @return Whether the scaler field is set.
     */
    boolean hasScaler();
    /**
     * <code>optional float scaler = 1;</code>
     * @return The scaler.
     */
    float getScaler();
  }
  /**
   * <pre>
   * Message for Temperature Scaling Calibration.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.TemperatureScalingCalibration}
   */
  public static final class TemperatureScalingCalibration extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.TemperatureScalingCalibration)
      TemperatureScalingCalibrationOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TemperatureScalingCalibration.newBuilder() to construct.
    private TemperatureScalingCalibration(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private TemperatureScalingCalibration() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private TemperatureScalingCalibration(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 13: {
              bitField0_ |= 0x00000001;
              scaler_ = input.readFloat();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_TemperatureScalingCalibration_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_TemperatureScalingCalibration_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              object_detection.protos.Calibration.TemperatureScalingCalibration.class, object_detection.protos.Calibration.TemperatureScalingCalibration.Builder.class);
    }

    private int bitField0_;
    public static final int SCALER_FIELD_NUMBER = 1;
    private float scaler_;
    /**
     * <code>optional float scaler = 1;</code>
     * @return Whether the scaler field is set.
     */
    @java.lang.Override
    public boolean hasScaler() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional float scaler = 1;</code>
     * @return The scaler.
     */
    @java.lang.Override
    public float getScaler() {
      return scaler_;
    }

    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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeFloat(1, scaler_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(1, scaler_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof object_detection.protos.Calibration.TemperatureScalingCalibration)) {
        return super.equals(obj);
      }
      object_detection.protos.Calibration.TemperatureScalingCalibration other = (object_detection.protos.Calibration.TemperatureScalingCalibration) obj;

      if (hasScaler() != other.hasScaler()) return false;
      if (hasScaler()) {
        if (java.lang.Float.floatToIntBits(getScaler())
            != java.lang.Float.floatToIntBits(
                other.getScaler())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

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

    public static object_detection.protos.Calibration.TemperatureScalingCalibration parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.TemperatureScalingCalibration parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.TemperatureScalingCalibration parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.TemperatureScalingCalibration parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.TemperatureScalingCalibration parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.TemperatureScalingCalibration parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.TemperatureScalingCalibration parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.TemperatureScalingCalibration 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 object_detection.protos.Calibration.TemperatureScalingCalibration parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.TemperatureScalingCalibration 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 object_detection.protos.Calibration.TemperatureScalingCalibration parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.TemperatureScalingCalibration 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(object_detection.protos.Calibration.TemperatureScalingCalibration 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>
     * Message for Temperature Scaling Calibration.
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.TemperatureScalingCalibration}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.TemperatureScalingCalibration)
        object_detection.protos.Calibration.TemperatureScalingCalibrationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_TemperatureScalingCalibration_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_TemperatureScalingCalibration_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                object_detection.protos.Calibration.TemperatureScalingCalibration.class, object_detection.protos.Calibration.TemperatureScalingCalibration.Builder.class);
      }

      // Construct using object_detection.protos.Calibration.TemperatureScalingCalibration.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        scaler_ = 0F;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_TemperatureScalingCalibration_descriptor;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.TemperatureScalingCalibration getDefaultInstanceForType() {
        return object_detection.protos.Calibration.TemperatureScalingCalibration.getDefaultInstance();
      }

      @java.lang.Override
      public object_detection.protos.Calibration.TemperatureScalingCalibration build() {
        object_detection.protos.Calibration.TemperatureScalingCalibration result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.TemperatureScalingCalibration buildPartial() {
        object_detection.protos.Calibration.TemperatureScalingCalibration result = new object_detection.protos.Calibration.TemperatureScalingCalibration(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.scaler_ = scaler_;
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @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 object_detection.protos.Calibration.TemperatureScalingCalibration) {
          return mergeFrom((object_detection.protos.Calibration.TemperatureScalingCalibration)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.Calibration.TemperatureScalingCalibration other) {
        if (other == object_detection.protos.Calibration.TemperatureScalingCalibration.getDefaultInstance()) return this;
        if (other.hasScaler()) {
          setScaler(other.getScaler());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        object_detection.protos.Calibration.TemperatureScalingCalibration parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.Calibration.TemperatureScalingCalibration) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private float scaler_ ;
      /**
       * <code>optional float scaler = 1;</code>
       * @return Whether the scaler field is set.
       */
      @java.lang.Override
      public boolean hasScaler() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional float scaler = 1;</code>
       * @return The scaler.
       */
      @java.lang.Override
      public float getScaler() {
        return scaler_;
      }
      /**
       * <code>optional float scaler = 1;</code>
       * @param value The scaler to set.
       * @return This builder for chaining.
       */
      public Builder setScaler(float value) {
        bitField0_ |= 0x00000001;
        scaler_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float scaler = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearScaler() {
        bitField0_ = (bitField0_ & ~0x00000001);
        scaler_ = 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:object_detection.protos.TemperatureScalingCalibration)
    }

    // @@protoc_insertion_point(class_scope:object_detection.protos.TemperatureScalingCalibration)
    private static final object_detection.protos.Calibration.TemperatureScalingCalibration DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new object_detection.protos.Calibration.TemperatureScalingCalibration();
    }

    public static object_detection.protos.Calibration.TemperatureScalingCalibration getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<TemperatureScalingCalibration>
        PARSER = new com.google.protobuf.AbstractParser<TemperatureScalingCalibration>() {
      @java.lang.Override
      public TemperatureScalingCalibration parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new TemperatureScalingCalibration(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public object_detection.protos.Calibration.TemperatureScalingCalibration getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface XYPairsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:object_detection.protos.XYPairs)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Sequence of x/y pairs for function approximation.
     * </pre>
     *
     * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
     */
    java.util.List<object_detection.protos.Calibration.XYPairs.XYPair>
        getXYPairList();
    /**
     * <pre>
     * Sequence of x/y pairs for function approximation.
     * </pre>
     *
     * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
     */
    object_detection.protos.Calibration.XYPairs.XYPair getXYPair(int index);
    /**
     * <pre>
     * Sequence of x/y pairs for function approximation.
     * </pre>
     *
     * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
     */
    int getXYPairCount();
    /**
     * <pre>
     * Sequence of x/y pairs for function approximation.
     * </pre>
     *
     * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
     */
    java.util.List<? extends object_detection.protos.Calibration.XYPairs.XYPairOrBuilder>
        getXYPairOrBuilderList();
    /**
     * <pre>
     * Sequence of x/y pairs for function approximation.
     * </pre>
     *
     * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
     */
    object_detection.protos.Calibration.XYPairs.XYPairOrBuilder getXYPairOrBuilder(
        int index);

    /**
     * <pre>
     * Description of data used to fit the calibration model.
     * </pre>
     *
     * <code>optional .object_detection.protos.TrainingDataType training_data_type = 2;</code>
     * @return Whether the trainingDataType field is set.
     */
    boolean hasTrainingDataType();
    /**
     * <pre>
     * Description of data used to fit the calibration model.
     * </pre>
     *
     * <code>optional .object_detection.protos.TrainingDataType training_data_type = 2;</code>
     * @return The trainingDataType.
     */
    object_detection.protos.Calibration.TrainingDataType getTrainingDataType();
  }
  /**
   * <pre>
   * Message to store a domain/range pair for function to be approximated.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.XYPairs}
   */
  public static final class XYPairs extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.XYPairs)
      XYPairsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use XYPairs.newBuilder() to construct.
    private XYPairs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private XYPairs() {
      xYPair_ = java.util.Collections.emptyList();
      trainingDataType_ = 0;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private XYPairs(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                xYPair_ = new java.util.ArrayList<object_detection.protos.Calibration.XYPairs.XYPair>();
                mutable_bitField0_ |= 0x00000001;
              }
              xYPair_.add(
                  input.readMessage(object_detection.protos.Calibration.XYPairs.XYPair.PARSER, extensionRegistry));
              break;
            }
            case 16: {
              int rawValue = input.readEnum();
                @SuppressWarnings("deprecation")
              object_detection.protos.Calibration.TrainingDataType value = object_detection.protos.Calibration.TrainingDataType.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(2, rawValue);
              } else {
                bitField0_ |= 0x00000001;
                trainingDataType_ = rawValue;
              }
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          xYPair_ = java.util.Collections.unmodifiableList(xYPair_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_XYPairs_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_XYPairs_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              object_detection.protos.Calibration.XYPairs.class, object_detection.protos.Calibration.XYPairs.Builder.class);
    }

    public interface XYPairOrBuilder extends
        // @@protoc_insertion_point(interface_extends:object_detection.protos.XYPairs.XYPair)
        com.google.protobuf.MessageOrBuilder {

      /**
       * <code>optional float x = 1;</code>
       * @return Whether the x field is set.
       */
      boolean hasX();
      /**
       * <code>optional float x = 1;</code>
       * @return The x.
       */
      float getX();

      /**
       * <code>optional float y = 2;</code>
       * @return Whether the y field is set.
       */
      boolean hasY();
      /**
       * <code>optional float y = 2;</code>
       * @return The y.
       */
      float getY();
    }
    /**
     * Protobuf type {@code object_detection.protos.XYPairs.XYPair}
     */
    public static final class XYPair extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:object_detection.protos.XYPairs.XYPair)
        XYPairOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use XYPair.newBuilder() to construct.
      private XYPair(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private XYPair() {
      }

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

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private XYPair(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 13: {
                bitField0_ |= 0x00000001;
                x_ = input.readFloat();
                break;
              }
              case 21: {
                bitField0_ |= 0x00000002;
                y_ = input.readFloat();
                break;
              }
              default: {
                if (!parseUnknownField(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e).setUnfinishedMessage(this);
        } finally {
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_XYPairs_XYPair_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_XYPairs_XYPair_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                object_detection.protos.Calibration.XYPairs.XYPair.class, object_detection.protos.Calibration.XYPairs.XYPair.Builder.class);
      }

      private int bitField0_;
      public static final int X_FIELD_NUMBER = 1;
      private float x_;
      /**
       * <code>optional float x = 1;</code>
       * @return Whether the x field is set.
       */
      @java.lang.Override
      public boolean hasX() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional float x = 1;</code>
       * @return The x.
       */
      @java.lang.Override
      public float getX() {
        return x_;
      }

      public static final int Y_FIELD_NUMBER = 2;
      private float y_;
      /**
       * <code>optional float y = 2;</code>
       * @return Whether the y field is set.
       */
      @java.lang.Override
      public boolean hasY() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional float y = 2;</code>
       * @return The y.
       */
      @java.lang.Override
      public float getY() {
        return y_;
      }

      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 (((bitField0_ & 0x00000001) != 0)) {
          output.writeFloat(1, x_);
        }
        if (((bitField0_ & 0x00000002) != 0)) {
          output.writeFloat(2, y_);
        }
        unknownFields.writeTo(output);
      }

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

        size = 0;
        if (((bitField0_ & 0x00000001) != 0)) {
          size += com.google.protobuf.CodedOutputStream
            .computeFloatSize(1, x_);
        }
        if (((bitField0_ & 0x00000002) != 0)) {
          size += com.google.protobuf.CodedOutputStream
            .computeFloatSize(2, y_);
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof object_detection.protos.Calibration.XYPairs.XYPair)) {
          return super.equals(obj);
        }
        object_detection.protos.Calibration.XYPairs.XYPair other = (object_detection.protos.Calibration.XYPairs.XYPair) obj;

        if (hasX() != other.hasX()) return false;
        if (hasX()) {
          if (java.lang.Float.floatToIntBits(getX())
              != java.lang.Float.floatToIntBits(
                  other.getX())) return false;
        }
        if (hasY() != other.hasY()) return false;
        if (hasY()) {
          if (java.lang.Float.floatToIntBits(getY())
              != java.lang.Float.floatToIntBits(
                  other.getY())) return false;
        }
        if (!unknownFields.equals(other.unknownFields)) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        if (hasX()) {
          hash = (37 * hash) + X_FIELD_NUMBER;
          hash = (53 * hash) + java.lang.Float.floatToIntBits(
              getX());
        }
        if (hasY()) {
          hash = (37 * hash) + Y_FIELD_NUMBER;
          hash = (53 * hash) + java.lang.Float.floatToIntBits(
              getY());
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static object_detection.protos.Calibration.XYPairs.XYPair parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static object_detection.protos.Calibration.XYPairs.XYPair parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static object_detection.protos.Calibration.XYPairs.XYPair parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static object_detection.protos.Calibration.XYPairs.XYPair parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static object_detection.protos.Calibration.XYPairs.XYPair parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static object_detection.protos.Calibration.XYPairs.XYPair parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static object_detection.protos.Calibration.XYPairs.XYPair parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static object_detection.protos.Calibration.XYPairs.XYPair 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 object_detection.protos.Calibration.XYPairs.XYPair parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static object_detection.protos.Calibration.XYPairs.XYPair 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 object_detection.protos.Calibration.XYPairs.XYPair parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static object_detection.protos.Calibration.XYPairs.XYPair 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(object_detection.protos.Calibration.XYPairs.XYPair 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;
      }
      /**
       * Protobuf type {@code object_detection.protos.XYPairs.XYPair}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:object_detection.protos.XYPairs.XYPair)
          object_detection.protos.Calibration.XYPairs.XYPairOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return object_detection.protos.Calibration.internal_static_object_detection_protos_XYPairs_XYPair_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return object_detection.protos.Calibration.internal_static_object_detection_protos_XYPairs_XYPair_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  object_detection.protos.Calibration.XYPairs.XYPair.class, object_detection.protos.Calibration.XYPairs.XYPair.Builder.class);
        }

        // Construct using object_detection.protos.Calibration.XYPairs.XYPair.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3
                  .alwaysUseFieldBuilders) {
          }
        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          x_ = 0F;
          bitField0_ = (bitField0_ & ~0x00000001);
          y_ = 0F;
          bitField0_ = (bitField0_ & ~0x00000002);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return object_detection.protos.Calibration.internal_static_object_detection_protos_XYPairs_XYPair_descriptor;
        }

        @java.lang.Override
        public object_detection.protos.Calibration.XYPairs.XYPair getDefaultInstanceForType() {
          return object_detection.protos.Calibration.XYPairs.XYPair.getDefaultInstance();
        }

        @java.lang.Override
        public object_detection.protos.Calibration.XYPairs.XYPair build() {
          object_detection.protos.Calibration.XYPairs.XYPair result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public object_detection.protos.Calibration.XYPairs.XYPair buildPartial() {
          object_detection.protos.Calibration.XYPairs.XYPair result = new object_detection.protos.Calibration.XYPairs.XYPair(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.x_ = x_;
            to_bitField0_ |= 0x00000001;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.y_ = y_;
            to_bitField0_ |= 0x00000002;
          }
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }

        @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 object_detection.protos.Calibration.XYPairs.XYPair) {
            return mergeFrom((object_detection.protos.Calibration.XYPairs.XYPair)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(object_detection.protos.Calibration.XYPairs.XYPair other) {
          if (other == object_detection.protos.Calibration.XYPairs.XYPair.getDefaultInstance()) return this;
          if (other.hasX()) {
            setX(other.getX());
          }
          if (other.hasY()) {
            setY(other.getY());
          }
          this.mergeUnknownFields(other.unknownFields);
          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 {
          object_detection.protos.Calibration.XYPairs.XYPair parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (object_detection.protos.Calibration.XYPairs.XYPair) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int bitField0_;

        private float x_ ;
        /**
         * <code>optional float x = 1;</code>
         * @return Whether the x field is set.
         */
        @java.lang.Override
        public boolean hasX() {
          return ((bitField0_ & 0x00000001) != 0);
        }
        /**
         * <code>optional float x = 1;</code>
         * @return The x.
         */
        @java.lang.Override
        public float getX() {
          return x_;
        }
        /**
         * <code>optional float x = 1;</code>
         * @param value The x to set.
         * @return This builder for chaining.
         */
        public Builder setX(float value) {
          bitField0_ |= 0x00000001;
          x_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>optional float x = 1;</code>
         * @return This builder for chaining.
         */
        public Builder clearX() {
          bitField0_ = (bitField0_ & ~0x00000001);
          x_ = 0F;
          onChanged();
          return this;
        }

        private float y_ ;
        /**
         * <code>optional float y = 2;</code>
         * @return Whether the y field is set.
         */
        @java.lang.Override
        public boolean hasY() {
          return ((bitField0_ & 0x00000002) != 0);
        }
        /**
         * <code>optional float y = 2;</code>
         * @return The y.
         */
        @java.lang.Override
        public float getY() {
          return y_;
        }
        /**
         * <code>optional float y = 2;</code>
         * @param value The y to set.
         * @return This builder for chaining.
         */
        public Builder setY(float value) {
          bitField0_ |= 0x00000002;
          y_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>optional float y = 2;</code>
         * @return This builder for chaining.
         */
        public Builder clearY() {
          bitField0_ = (bitField0_ & ~0x00000002);
          y_ = 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:object_detection.protos.XYPairs.XYPair)
      }

      // @@protoc_insertion_point(class_scope:object_detection.protos.XYPairs.XYPair)
      private static final object_detection.protos.Calibration.XYPairs.XYPair DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new object_detection.protos.Calibration.XYPairs.XYPair();
      }

      public static object_detection.protos.Calibration.XYPairs.XYPair getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

      @java.lang.Deprecated public static final com.google.protobuf.Parser<XYPair>
          PARSER = new com.google.protobuf.AbstractParser<XYPair>() {
        @java.lang.Override
        public XYPair parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new XYPair(input, extensionRegistry);
        }
      };

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

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

      @java.lang.Override
      public object_detection.protos.Calibration.XYPairs.XYPair getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    private int bitField0_;
    public static final int X_Y_PAIR_FIELD_NUMBER = 1;
    private java.util.List<object_detection.protos.Calibration.XYPairs.XYPair> xYPair_;
    /**
     * <pre>
     * Sequence of x/y pairs for function approximation.
     * </pre>
     *
     * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
     */
    @java.lang.Override
    public java.util.List<object_detection.protos.Calibration.XYPairs.XYPair> getXYPairList() {
      return xYPair_;
    }
    /**
     * <pre>
     * Sequence of x/y pairs for function approximation.
     * </pre>
     *
     * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
     */
    @java.lang.Override
    public java.util.List<? extends object_detection.protos.Calibration.XYPairs.XYPairOrBuilder>
        getXYPairOrBuilderList() {
      return xYPair_;
    }
    /**
     * <pre>
     * Sequence of x/y pairs for function approximation.
     * </pre>
     *
     * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
     */
    @java.lang.Override
    public int getXYPairCount() {
      return xYPair_.size();
    }
    /**
     * <pre>
     * Sequence of x/y pairs for function approximation.
     * </pre>
     *
     * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
     */
    @java.lang.Override
    public object_detection.protos.Calibration.XYPairs.XYPair getXYPair(int index) {
      return xYPair_.get(index);
    }
    /**
     * <pre>
     * Sequence of x/y pairs for function approximation.
     * </pre>
     *
     * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
     */
    @java.lang.Override
    public object_detection.protos.Calibration.XYPairs.XYPairOrBuilder getXYPairOrBuilder(
        int index) {
      return xYPair_.get(index);
    }

    public static final int TRAINING_DATA_TYPE_FIELD_NUMBER = 2;
    private int trainingDataType_;
    /**
     * <pre>
     * Description of data used to fit the calibration model.
     * </pre>
     *
     * <code>optional .object_detection.protos.TrainingDataType training_data_type = 2;</code>
     * @return Whether the trainingDataType field is set.
     */
    @java.lang.Override public boolean hasTrainingDataType() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <pre>
     * Description of data used to fit the calibration model.
     * </pre>
     *
     * <code>optional .object_detection.protos.TrainingDataType training_data_type = 2;</code>
     * @return The trainingDataType.
     */
    @java.lang.Override public object_detection.protos.Calibration.TrainingDataType getTrainingDataType() {
      @SuppressWarnings("deprecation")
      object_detection.protos.Calibration.TrainingDataType result = object_detection.protos.Calibration.TrainingDataType.valueOf(trainingDataType_);
      return result == null ? object_detection.protos.Calibration.TrainingDataType.DATA_TYPE_UNKNOWN : result;
    }

    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 {
      for (int i = 0; i < xYPair_.size(); i++) {
        output.writeMessage(1, xYPair_.get(i));
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeEnum(2, trainingDataType_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < xYPair_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, xYPair_.get(i));
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(2, trainingDataType_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof object_detection.protos.Calibration.XYPairs)) {
        return super.equals(obj);
      }
      object_detection.protos.Calibration.XYPairs other = (object_detection.protos.Calibration.XYPairs) obj;

      if (!getXYPairList()
          .equals(other.getXYPairList())) return false;
      if (hasTrainingDataType() != other.hasTrainingDataType()) return false;
      if (hasTrainingDataType()) {
        if (trainingDataType_ != other.trainingDataType_) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getXYPairCount() > 0) {
        hash = (37 * hash) + X_Y_PAIR_FIELD_NUMBER;
        hash = (53 * hash) + getXYPairList().hashCode();
      }
      if (hasTrainingDataType()) {
        hash = (37 * hash) + TRAINING_DATA_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + trainingDataType_;
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.Calibration.XYPairs parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.XYPairs parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.XYPairs parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.XYPairs parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.XYPairs parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.XYPairs parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.XYPairs parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.XYPairs 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 object_detection.protos.Calibration.XYPairs parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.XYPairs 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 object_detection.protos.Calibration.XYPairs parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.XYPairs 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(object_detection.protos.Calibration.XYPairs 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>
     * Message to store a domain/range pair for function to be approximated.
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.XYPairs}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.XYPairs)
        object_detection.protos.Calibration.XYPairsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_XYPairs_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_XYPairs_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                object_detection.protos.Calibration.XYPairs.class, object_detection.protos.Calibration.XYPairs.Builder.class);
      }

      // Construct using object_detection.protos.Calibration.XYPairs.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getXYPairFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (xYPairBuilder_ == null) {
          xYPair_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          xYPairBuilder_.clear();
        }
        trainingDataType_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_XYPairs_descriptor;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.XYPairs getDefaultInstanceForType() {
        return object_detection.protos.Calibration.XYPairs.getDefaultInstance();
      }

      @java.lang.Override
      public object_detection.protos.Calibration.XYPairs build() {
        object_detection.protos.Calibration.XYPairs result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.XYPairs buildPartial() {
        object_detection.protos.Calibration.XYPairs result = new object_detection.protos.Calibration.XYPairs(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (xYPairBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            xYPair_ = java.util.Collections.unmodifiableList(xYPair_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.xYPair_ = xYPair_;
        } else {
          result.xYPair_ = xYPairBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.trainingDataType_ = trainingDataType_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @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 object_detection.protos.Calibration.XYPairs) {
          return mergeFrom((object_detection.protos.Calibration.XYPairs)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.Calibration.XYPairs other) {
        if (other == object_detection.protos.Calibration.XYPairs.getDefaultInstance()) return this;
        if (xYPairBuilder_ == null) {
          if (!other.xYPair_.isEmpty()) {
            if (xYPair_.isEmpty()) {
              xYPair_ = other.xYPair_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureXYPairIsMutable();
              xYPair_.addAll(other.xYPair_);
            }
            onChanged();
          }
        } else {
          if (!other.xYPair_.isEmpty()) {
            if (xYPairBuilder_.isEmpty()) {
              xYPairBuilder_.dispose();
              xYPairBuilder_ = null;
              xYPair_ = other.xYPair_;
              bitField0_ = (bitField0_ & ~0x00000001);
              xYPairBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getXYPairFieldBuilder() : null;
            } else {
              xYPairBuilder_.addAllMessages(other.xYPair_);
            }
          }
        }
        if (other.hasTrainingDataType()) {
          setTrainingDataType(other.getTrainingDataType());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        object_detection.protos.Calibration.XYPairs parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.Calibration.XYPairs) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<object_detection.protos.Calibration.XYPairs.XYPair> xYPair_ =
        java.util.Collections.emptyList();
      private void ensureXYPairIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          xYPair_ = new java.util.ArrayList<object_detection.protos.Calibration.XYPairs.XYPair>(xYPair_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          object_detection.protos.Calibration.XYPairs.XYPair, object_detection.protos.Calibration.XYPairs.XYPair.Builder, object_detection.protos.Calibration.XYPairs.XYPairOrBuilder> xYPairBuilder_;

      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public java.util.List<object_detection.protos.Calibration.XYPairs.XYPair> getXYPairList() {
        if (xYPairBuilder_ == null) {
          return java.util.Collections.unmodifiableList(xYPair_);
        } else {
          return xYPairBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public int getXYPairCount() {
        if (xYPairBuilder_ == null) {
          return xYPair_.size();
        } else {
          return xYPairBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public object_detection.protos.Calibration.XYPairs.XYPair getXYPair(int index) {
        if (xYPairBuilder_ == null) {
          return xYPair_.get(index);
        } else {
          return xYPairBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public Builder setXYPair(
          int index, object_detection.protos.Calibration.XYPairs.XYPair value) {
        if (xYPairBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureXYPairIsMutable();
          xYPair_.set(index, value);
          onChanged();
        } else {
          xYPairBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public Builder setXYPair(
          int index, object_detection.protos.Calibration.XYPairs.XYPair.Builder builderForValue) {
        if (xYPairBuilder_ == null) {
          ensureXYPairIsMutable();
          xYPair_.set(index, builderForValue.build());
          onChanged();
        } else {
          xYPairBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public Builder addXYPair(object_detection.protos.Calibration.XYPairs.XYPair value) {
        if (xYPairBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureXYPairIsMutable();
          xYPair_.add(value);
          onChanged();
        } else {
          xYPairBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public Builder addXYPair(
          int index, object_detection.protos.Calibration.XYPairs.XYPair value) {
        if (xYPairBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureXYPairIsMutable();
          xYPair_.add(index, value);
          onChanged();
        } else {
          xYPairBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public Builder addXYPair(
          object_detection.protos.Calibration.XYPairs.XYPair.Builder builderForValue) {
        if (xYPairBuilder_ == null) {
          ensureXYPairIsMutable();
          xYPair_.add(builderForValue.build());
          onChanged();
        } else {
          xYPairBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public Builder addXYPair(
          int index, object_detection.protos.Calibration.XYPairs.XYPair.Builder builderForValue) {
        if (xYPairBuilder_ == null) {
          ensureXYPairIsMutable();
          xYPair_.add(index, builderForValue.build());
          onChanged();
        } else {
          xYPairBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public Builder addAllXYPair(
          java.lang.Iterable<? extends object_detection.protos.Calibration.XYPairs.XYPair> values) {
        if (xYPairBuilder_ == null) {
          ensureXYPairIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, xYPair_);
          onChanged();
        } else {
          xYPairBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public Builder clearXYPair() {
        if (xYPairBuilder_ == null) {
          xYPair_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          xYPairBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public Builder removeXYPair(int index) {
        if (xYPairBuilder_ == null) {
          ensureXYPairIsMutable();
          xYPair_.remove(index);
          onChanged();
        } else {
          xYPairBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public object_detection.protos.Calibration.XYPairs.XYPair.Builder getXYPairBuilder(
          int index) {
        return getXYPairFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public object_detection.protos.Calibration.XYPairs.XYPairOrBuilder getXYPairOrBuilder(
          int index) {
        if (xYPairBuilder_ == null) {
          return xYPair_.get(index);  } else {
          return xYPairBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public java.util.List<? extends object_detection.protos.Calibration.XYPairs.XYPairOrBuilder>
           getXYPairOrBuilderList() {
        if (xYPairBuilder_ != null) {
          return xYPairBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(xYPair_);
        }
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public object_detection.protos.Calibration.XYPairs.XYPair.Builder addXYPairBuilder() {
        return getXYPairFieldBuilder().addBuilder(
            object_detection.protos.Calibration.XYPairs.XYPair.getDefaultInstance());
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public object_detection.protos.Calibration.XYPairs.XYPair.Builder addXYPairBuilder(
          int index) {
        return getXYPairFieldBuilder().addBuilder(
            index, object_detection.protos.Calibration.XYPairs.XYPair.getDefaultInstance());
      }
      /**
       * <pre>
       * Sequence of x/y pairs for function approximation.
       * </pre>
       *
       * <code>repeated .object_detection.protos.XYPairs.XYPair x_y_pair = 1;</code>
       */
      public java.util.List<object_detection.protos.Calibration.XYPairs.XYPair.Builder>
           getXYPairBuilderList() {
        return getXYPairFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          object_detection.protos.Calibration.XYPairs.XYPair, object_detection.protos.Calibration.XYPairs.XYPair.Builder, object_detection.protos.Calibration.XYPairs.XYPairOrBuilder>
          getXYPairFieldBuilder() {
        if (xYPairBuilder_ == null) {
          xYPairBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              object_detection.protos.Calibration.XYPairs.XYPair, object_detection.protos.Calibration.XYPairs.XYPair.Builder, object_detection.protos.Calibration.XYPairs.XYPairOrBuilder>(
                  xYPair_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          xYPair_ = null;
        }
        return xYPairBuilder_;
      }

      private int trainingDataType_ = 0;
      /**
       * <pre>
       * Description of data used to fit the calibration model.
       * </pre>
       *
       * <code>optional .object_detection.protos.TrainingDataType training_data_type = 2;</code>
       * @return Whether the trainingDataType field is set.
       */
      @java.lang.Override public boolean hasTrainingDataType() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <pre>
       * Description of data used to fit the calibration model.
       * </pre>
       *
       * <code>optional .object_detection.protos.TrainingDataType training_data_type = 2;</code>
       * @return The trainingDataType.
       */
      @java.lang.Override
      public object_detection.protos.Calibration.TrainingDataType getTrainingDataType() {
        @SuppressWarnings("deprecation")
        object_detection.protos.Calibration.TrainingDataType result = object_detection.protos.Calibration.TrainingDataType.valueOf(trainingDataType_);
        return result == null ? object_detection.protos.Calibration.TrainingDataType.DATA_TYPE_UNKNOWN : result;
      }
      /**
       * <pre>
       * Description of data used to fit the calibration model.
       * </pre>
       *
       * <code>optional .object_detection.protos.TrainingDataType training_data_type = 2;</code>
       * @param value The trainingDataType to set.
       * @return This builder for chaining.
       */
      public Builder setTrainingDataType(object_detection.protos.Calibration.TrainingDataType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        trainingDataType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Description of data used to fit the calibration model.
       * </pre>
       *
       * <code>optional .object_detection.protos.TrainingDataType training_data_type = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearTrainingDataType() {
        bitField0_ = (bitField0_ & ~0x00000002);
        trainingDataType_ = 0;
        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:object_detection.protos.XYPairs)
    }

    // @@protoc_insertion_point(class_scope:object_detection.protos.XYPairs)
    private static final object_detection.protos.Calibration.XYPairs DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new object_detection.protos.Calibration.XYPairs();
    }

    public static object_detection.protos.Calibration.XYPairs getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<XYPairs>
        PARSER = new com.google.protobuf.AbstractParser<XYPairs>() {
      @java.lang.Override
      public XYPairs parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new XYPairs(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public object_detection.protos.Calibration.XYPairs getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface SigmoidParametersOrBuilder extends
      // @@protoc_insertion_point(interface_extends:object_detection.protos.SigmoidParameters)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional float a = 1 [default = -1];</code>
     * @return Whether the a field is set.
     */
    boolean hasA();
    /**
     * <code>optional float a = 1 [default = -1];</code>
     * @return The a.
     */
    float getA();

    /**
     * <code>optional float b = 2 [default = 0];</code>
     * @return Whether the b field is set.
     */
    boolean hasB();
    /**
     * <code>optional float b = 2 [default = 0];</code>
     * @return The b.
     */
    float getB();
  }
  /**
   * <pre>
   * Message defining parameters for sigmoid calibration.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.SigmoidParameters}
   */
  public static final class SigmoidParameters extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.SigmoidParameters)
      SigmoidParametersOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SigmoidParameters.newBuilder() to construct.
    private SigmoidParameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private SigmoidParameters() {
      a_ = -1F;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SigmoidParameters(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 13: {
              bitField0_ |= 0x00000001;
              a_ = input.readFloat();
              break;
            }
            case 21: {
              bitField0_ |= 0x00000002;
              b_ = input.readFloat();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_SigmoidParameters_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return object_detection.protos.Calibration.internal_static_object_detection_protos_SigmoidParameters_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              object_detection.protos.Calibration.SigmoidParameters.class, object_detection.protos.Calibration.SigmoidParameters.Builder.class);
    }

    private int bitField0_;
    public static final int A_FIELD_NUMBER = 1;
    private float a_;
    /**
     * <code>optional float a = 1 [default = -1];</code>
     * @return Whether the a field is set.
     */
    @java.lang.Override
    public boolean hasA() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional float a = 1 [default = -1];</code>
     * @return The a.
     */
    @java.lang.Override
    public float getA() {
      return a_;
    }

    public static final int B_FIELD_NUMBER = 2;
    private float b_;
    /**
     * <code>optional float b = 2 [default = 0];</code>
     * @return Whether the b field is set.
     */
    @java.lang.Override
    public boolean hasB() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional float b = 2 [default = 0];</code>
     * @return The b.
     */
    @java.lang.Override
    public float getB() {
      return b_;
    }

    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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeFloat(1, a_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeFloat(2, b_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(1, a_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(2, b_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof object_detection.protos.Calibration.SigmoidParameters)) {
        return super.equals(obj);
      }
      object_detection.protos.Calibration.SigmoidParameters other = (object_detection.protos.Calibration.SigmoidParameters) obj;

      if (hasA() != other.hasA()) return false;
      if (hasA()) {
        if (java.lang.Float.floatToIntBits(getA())
            != java.lang.Float.floatToIntBits(
                other.getA())) return false;
      }
      if (hasB() != other.hasB()) return false;
      if (hasB()) {
        if (java.lang.Float.floatToIntBits(getB())
            != java.lang.Float.floatToIntBits(
                other.getB())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasA()) {
        hash = (37 * hash) + A_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getA());
      }
      if (hasB()) {
        hash = (37 * hash) + B_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getB());
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.Calibration.SigmoidParameters parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.SigmoidParameters parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.SigmoidParameters parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.SigmoidParameters parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.SigmoidParameters parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.Calibration.SigmoidParameters parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.Calibration.SigmoidParameters parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.SigmoidParameters 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 object_detection.protos.Calibration.SigmoidParameters parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.SigmoidParameters 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 object_detection.protos.Calibration.SigmoidParameters parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.Calibration.SigmoidParameters 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(object_detection.protos.Calibration.SigmoidParameters 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>
     * Message defining parameters for sigmoid calibration.
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.SigmoidParameters}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.SigmoidParameters)
        object_detection.protos.Calibration.SigmoidParametersOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_SigmoidParameters_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_SigmoidParameters_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                object_detection.protos.Calibration.SigmoidParameters.class, object_detection.protos.Calibration.SigmoidParameters.Builder.class);
      }

      // Construct using object_detection.protos.Calibration.SigmoidParameters.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        a_ = -1F;
        bitField0_ = (bitField0_ & ~0x00000001);
        b_ = 0F;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return object_detection.protos.Calibration.internal_static_object_detection_protos_SigmoidParameters_descriptor;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.SigmoidParameters getDefaultInstanceForType() {
        return object_detection.protos.Calibration.SigmoidParameters.getDefaultInstance();
      }

      @java.lang.Override
      public object_detection.protos.Calibration.SigmoidParameters build() {
        object_detection.protos.Calibration.SigmoidParameters result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public object_detection.protos.Calibration.SigmoidParameters buildPartial() {
        object_detection.protos.Calibration.SigmoidParameters result = new object_detection.protos.Calibration.SigmoidParameters(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.a_ = a_;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.b_ = b_;
          to_bitField0_ |= 0x00000002;
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @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 object_detection.protos.Calibration.SigmoidParameters) {
          return mergeFrom((object_detection.protos.Calibration.SigmoidParameters)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.Calibration.SigmoidParameters other) {
        if (other == object_detection.protos.Calibration.SigmoidParameters.getDefaultInstance()) return this;
        if (other.hasA()) {
          setA(other.getA());
        }
        if (other.hasB()) {
          setB(other.getB());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        object_detection.protos.Calibration.SigmoidParameters parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.Calibration.SigmoidParameters) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private float a_ = -1F;
      /**
       * <code>optional float a = 1 [default = -1];</code>
       * @return Whether the a field is set.
       */
      @java.lang.Override
      public boolean hasA() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional float a = 1 [default = -1];</code>
       * @return The a.
       */
      @java.lang.Override
      public float getA() {
        return a_;
      }
      /**
       * <code>optional float a = 1 [default = -1];</code>
       * @param value The a to set.
       * @return This builder for chaining.
       */
      public Builder setA(float value) {
        bitField0_ |= 0x00000001;
        a_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float a = 1 [default = -1];</code>
       * @return This builder for chaining.
       */
      public Builder clearA() {
        bitField0_ = (bitField0_ & ~0x00000001);
        a_ = -1F;
        onChanged();
        return this;
      }

      private float b_ ;
      /**
       * <code>optional float b = 2 [default = 0];</code>
       * @return Whether the b field is set.
       */
      @java.lang.Override
      public boolean hasB() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional float b = 2 [default = 0];</code>
       * @return The b.
       */
      @java.lang.Override
      public float getB() {
        return b_;
      }
      /**
       * <code>optional float b = 2 [default = 0];</code>
       * @param value The b to set.
       * @return This builder for chaining.
       */
      public Builder setB(float value) {
        bitField0_ |= 0x00000002;
        b_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float b = 2 [default = 0];</code>
       * @return This builder for chaining.
       */
      public Builder clearB() {
        bitField0_ = (bitField0_ & ~0x00000002);
        b_ = 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:object_detection.protos.SigmoidParameters)
    }

    // @@protoc_insertion_point(class_scope:object_detection.protos.SigmoidParameters)
    private static final object_detection.protos.Calibration.SigmoidParameters DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new object_detection.protos.Calibration.SigmoidParameters();
    }

    public static object_detection.protos.Calibration.SigmoidParameters getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<SigmoidParameters>
        PARSER = new com.google.protobuf.AbstractParser<SigmoidParameters>() {
      @java.lang.Override
      public SigmoidParameters parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new SigmoidParameters(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public object_detection.protos.Calibration.SigmoidParameters getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_CalibrationConfig_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_CalibrationConfig_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_FunctionApproximation_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_FunctionApproximation_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_ClassIdFunctionApproximations_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_ClassIdFunctionApproximations_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_ClassIdFunctionApproximations_ClassIdXyPairsMapEntry_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_ClassIdFunctionApproximations_ClassIdXyPairsMapEntry_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_SigmoidCalibration_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_SigmoidCalibration_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_ClassIdSigmoidCalibrations_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_ClassIdSigmoidCalibrations_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_ClassIdSigmoidCalibrations_ClassIdSigmoidParametersMapEntry_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_ClassIdSigmoidCalibrations_ClassIdSigmoidParametersMapEntry_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_TemperatureScalingCalibration_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_TemperatureScalingCalibration_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_XYPairs_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_XYPairs_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_XYPairs_XYPair_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_XYPairs_XYPair_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_SigmoidParameters_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_SigmoidParameters_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n)object_detection/protos/calibration.pr" +
      "oto\022\027object_detection.protos\"\344\003\n\021Calibra" +
      "tionConfig\022P\n\026function_approximation\030\001 \001" +
      "(\0132..object_detection.protos.FunctionApp" +
      "roximationH\000\022b\n class_id_function_approx" +
      "imations\030\002 \001(\01326.object_detection.protos" +
      ".ClassIdFunctionApproximationsH\000\022J\n\023sigm" +
      "oid_calibration\030\003 \001(\0132+.object_detection" +
      ".protos.SigmoidCalibrationH\000\022\\\n\035class_id" +
      "_sigmoid_calibrations\030\004 \001(\01323.object_det" +
      "ection.protos.ClassIdSigmoidCalibrations" +
      "H\000\022a\n\037temperature_scaling_calibration\030\005 " +
      "\001(\01326.object_detection.protos.Temperatur" +
      "eScalingCalibrationH\000B\014\n\ncalibrator\"L\n\025F" +
      "unctionApproximation\0223\n\tx_y_pairs\030\001 \001(\0132" +
      " .object_detection.protos.XYPairs\"\351\001\n\035Cl" +
      "assIdFunctionApproximations\022l\n\025class_id_" +
      "xy_pairs_map\030\001 \003(\0132M.object_detection.pr" +
      "otos.ClassIdFunctionApproximations.Class" +
      "IdXyPairsMapEntry\032Z\n\026ClassIdXyPairsMapEn" +
      "try\022\013\n\003key\030\001 \001(\005\022/\n\005value\030\002 \001(\0132 .object" +
      "_detection.protos.XYPairs:\0028\001\"\\\n\022Sigmoid" +
      "Calibration\022F\n\022sigmoid_parameters\030\001 \001(\0132" +
      "*.object_detection.protos.SigmoidParamet" +
      "ers\"\213\002\n\032ClassIdSigmoidCalibrations\022}\n\037cl" +
      "ass_id_sigmoid_parameters_map\030\001 \003(\0132T.ob" +
      "ject_detection.protos.ClassIdSigmoidCali" +
      "brations.ClassIdSigmoidParametersMapEntr" +
      "y\032n\n ClassIdSigmoidParametersMapEntry\022\013\n" +
      "\003key\030\001 \001(\005\0229\n\005value\030\002 \001(\0132*.object_detec" +
      "tion.protos.SigmoidParameters:\0028\001\"/\n\035Tem" +
      "peratureScalingCalibration\022\016\n\006scaler\030\001 \001" +
      "(\002\"\253\001\n\007XYPairs\0229\n\010x_y_pair\030\001 \003(\0132\'.objec" +
      "t_detection.protos.XYPairs.XYPair\022E\n\022tra" +
      "ining_data_type\030\002 \001(\0162).object_detection" +
      ".protos.TrainingDataType\032\036\n\006XYPair\022\t\n\001x\030" +
      "\001 \001(\002\022\t\n\001y\030\002 \001(\002\"0\n\021SigmoidParameters\022\r\n" +
      "\001a\030\001 \001(\002:\002-1\022\014\n\001b\030\002 \001(\002:\0010*N\n\020TrainingDa" +
      "taType\022\025\n\021DATA_TYPE_UNKNOWN\020\000\022\017\n\013ALL_CLA" +
      "SSES\020\001\022\022\n\016CLASS_SPECIFIC\020\002"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_object_detection_protos_CalibrationConfig_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_object_detection_protos_CalibrationConfig_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_CalibrationConfig_descriptor,
        new java.lang.String[] { "FunctionApproximation", "ClassIdFunctionApproximations", "SigmoidCalibration", "ClassIdSigmoidCalibrations", "TemperatureScalingCalibration", "Calibrator", });
    internal_static_object_detection_protos_FunctionApproximation_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_object_detection_protos_FunctionApproximation_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_FunctionApproximation_descriptor,
        new java.lang.String[] { "XYPairs", });
    internal_static_object_detection_protos_ClassIdFunctionApproximations_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_object_detection_protos_ClassIdFunctionApproximations_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_ClassIdFunctionApproximations_descriptor,
        new java.lang.String[] { "ClassIdXyPairsMap", });
    internal_static_object_detection_protos_ClassIdFunctionApproximations_ClassIdXyPairsMapEntry_descriptor =
      internal_static_object_detection_protos_ClassIdFunctionApproximations_descriptor.getNestedTypes().get(0);
    internal_static_object_detection_protos_ClassIdFunctionApproximations_ClassIdXyPairsMapEntry_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_ClassIdFunctionApproximations_ClassIdXyPairsMapEntry_descriptor,
        new java.lang.String[] { "Key", "Value", });
    internal_static_object_detection_protos_SigmoidCalibration_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_object_detection_protos_SigmoidCalibration_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_SigmoidCalibration_descriptor,
        new java.lang.String[] { "SigmoidParameters", });
    internal_static_object_detection_protos_ClassIdSigmoidCalibrations_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_object_detection_protos_ClassIdSigmoidCalibrations_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_ClassIdSigmoidCalibrations_descriptor,
        new java.lang.String[] { "ClassIdSigmoidParametersMap", });
    internal_static_object_detection_protos_ClassIdSigmoidCalibrations_ClassIdSigmoidParametersMapEntry_descriptor =
      internal_static_object_detection_protos_ClassIdSigmoidCalibrations_descriptor.getNestedTypes().get(0);
    internal_static_object_detection_protos_ClassIdSigmoidCalibrations_ClassIdSigmoidParametersMapEntry_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_ClassIdSigmoidCalibrations_ClassIdSigmoidParametersMapEntry_descriptor,
        new java.lang.String[] { "Key", "Value", });
    internal_static_object_detection_protos_TemperatureScalingCalibration_descriptor =
      getDescriptor().getMessageTypes().get(5);
    internal_static_object_detection_protos_TemperatureScalingCalibration_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_TemperatureScalingCalibration_descriptor,
        new java.lang.String[] { "Scaler", });
    internal_static_object_detection_protos_XYPairs_descriptor =
      getDescriptor().getMessageTypes().get(6);
    internal_static_object_detection_protos_XYPairs_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_XYPairs_descriptor,
        new java.lang.String[] { "XYPair", "TrainingDataType", });
    internal_static_object_detection_protos_XYPairs_XYPair_descriptor =
      internal_static_object_detection_protos_XYPairs_descriptor.getNestedTypes().get(0);
    internal_static_object_detection_protos_XYPairs_XYPair_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_XYPairs_XYPair_descriptor,
        new java.lang.String[] { "X", "Y", });
    internal_static_object_detection_protos_SigmoidParameters_descriptor =
      getDescriptor().getMessageTypes().get(7);
    internal_static_object_detection_protos_SigmoidParameters_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_SigmoidParameters_descriptor,
        new java.lang.String[] { "A", "B", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
