/*
 * 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/optimizer.proto

package object_detection.protos;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface OptimizerOrBuilder extends
      // @@protoc_insertion_point(interface_extends:object_detection.protos.Optimizer)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
     * @return Whether the rmsPropOptimizer field is set.
     */
    boolean hasRmsPropOptimizer();
    /**
     * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
     * @return The rmsPropOptimizer.
     */
    object_detection.protos.OptimizerOuterClass.RMSPropOptimizer getRmsPropOptimizer();
    /**
     * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
     */
    object_detection.protos.OptimizerOuterClass.RMSPropOptimizerOrBuilder getRmsPropOptimizerOrBuilder();

    /**
     * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
     * @return Whether the momentumOptimizer field is set.
     */
    boolean hasMomentumOptimizer();
    /**
     * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
     * @return The momentumOptimizer.
     */
    object_detection.protos.OptimizerOuterClass.MomentumOptimizer getMomentumOptimizer();
    /**
     * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
     */
    object_detection.protos.OptimizerOuterClass.MomentumOptimizerOrBuilder getMomentumOptimizerOrBuilder();

    /**
     * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
     * @return Whether the adamOptimizer field is set.
     */
    boolean hasAdamOptimizer();
    /**
     * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
     * @return The adamOptimizer.
     */
    object_detection.protos.OptimizerOuterClass.AdamOptimizer getAdamOptimizer();
    /**
     * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
     */
    object_detection.protos.OptimizerOuterClass.AdamOptimizerOrBuilder getAdamOptimizerOrBuilder();

    /**
     * <code>optional bool use_moving_average = 4 [default = true];</code>
     * @return Whether the useMovingAverage field is set.
     */
    boolean hasUseMovingAverage();
    /**
     * <code>optional bool use_moving_average = 4 [default = true];</code>
     * @return The useMovingAverage.
     */
    boolean getUseMovingAverage();

    /**
     * <code>optional float moving_average_decay = 5 [default = 0.9999];</code>
     * @return Whether the movingAverageDecay field is set.
     */
    boolean hasMovingAverageDecay();
    /**
     * <code>optional float moving_average_decay = 5 [default = 0.9999];</code>
     * @return The movingAverageDecay.
     */
    float getMovingAverageDecay();

    public object_detection.protos.OptimizerOuterClass.Optimizer.OptimizerCase getOptimizerCase();
  }
  /**
   * <pre>
   * Top level optimizer message.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.Optimizer}
   */
  public static final class Optimizer extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.Optimizer)
      OptimizerOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Optimizer.newBuilder() to construct.
    private Optimizer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Optimizer() {
      useMovingAverage_ = true;
      movingAverageDecay_ = 0.9999F;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Optimizer(
        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.OptimizerOuterClass.RMSPropOptimizer.Builder subBuilder = null;
              if (optimizerCase_ == 1) {
                subBuilder = ((object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) optimizer_).toBuilder();
              }
              optimizer_ =
                  input.readMessage(object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) optimizer_);
                optimizer_ = subBuilder.buildPartial();
              }
              optimizerCase_ = 1;
              break;
            }
            case 18: {
              object_detection.protos.OptimizerOuterClass.MomentumOptimizer.Builder subBuilder = null;
              if (optimizerCase_ == 2) {
                subBuilder = ((object_detection.protos.OptimizerOuterClass.MomentumOptimizer) optimizer_).toBuilder();
              }
              optimizer_ =
                  input.readMessage(object_detection.protos.OptimizerOuterClass.MomentumOptimizer.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.OptimizerOuterClass.MomentumOptimizer) optimizer_);
                optimizer_ = subBuilder.buildPartial();
              }
              optimizerCase_ = 2;
              break;
            }
            case 26: {
              object_detection.protos.OptimizerOuterClass.AdamOptimizer.Builder subBuilder = null;
              if (optimizerCase_ == 3) {
                subBuilder = ((object_detection.protos.OptimizerOuterClass.AdamOptimizer) optimizer_).toBuilder();
              }
              optimizer_ =
                  input.readMessage(object_detection.protos.OptimizerOuterClass.AdamOptimizer.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.OptimizerOuterClass.AdamOptimizer) optimizer_);
                optimizer_ = subBuilder.buildPartial();
              }
              optimizerCase_ = 3;
              break;
            }
            case 32: {
              bitField0_ |= 0x00000008;
              useMovingAverage_ = input.readBool();
              break;
            }
            case 45: {
              bitField0_ |= 0x00000010;
              movingAverageDecay_ = 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.OptimizerOuterClass.internal_static_object_detection_protos_Optimizer_descriptor;
    }

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

    private int bitField0_;
    private int optimizerCase_ = 0;
    private java.lang.Object optimizer_;
    public enum OptimizerCase
        implements com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      RMS_PROP_OPTIMIZER(1),
      MOMENTUM_OPTIMIZER(2),
      ADAM_OPTIMIZER(3),
      OPTIMIZER_NOT_SET(0);
      private final int value;
      private OptimizerCase(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 OptimizerCase valueOf(int value) {
        return forNumber(value);
      }

      public static OptimizerCase forNumber(int value) {
        switch (value) {
          case 1: return RMS_PROP_OPTIMIZER;
          case 2: return MOMENTUM_OPTIMIZER;
          case 3: return ADAM_OPTIMIZER;
          case 0: return OPTIMIZER_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public OptimizerCase
    getOptimizerCase() {
      return OptimizerCase.forNumber(
          optimizerCase_);
    }

    public static final int RMS_PROP_OPTIMIZER_FIELD_NUMBER = 1;
    /**
     * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
     * @return Whether the rmsPropOptimizer field is set.
     */
    @java.lang.Override
    public boolean hasRmsPropOptimizer() {
      return optimizerCase_ == 1;
    }
    /**
     * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
     * @return The rmsPropOptimizer.
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.RMSPropOptimizer getRmsPropOptimizer() {
      if (optimizerCase_ == 1) {
         return (object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) optimizer_;
      }
      return object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.getDefaultInstance();
    }
    /**
     * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.RMSPropOptimizerOrBuilder getRmsPropOptimizerOrBuilder() {
      if (optimizerCase_ == 1) {
         return (object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) optimizer_;
      }
      return object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.getDefaultInstance();
    }

    public static final int MOMENTUM_OPTIMIZER_FIELD_NUMBER = 2;
    /**
     * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
     * @return Whether the momentumOptimizer field is set.
     */
    @java.lang.Override
    public boolean hasMomentumOptimizer() {
      return optimizerCase_ == 2;
    }
    /**
     * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
     * @return The momentumOptimizer.
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.MomentumOptimizer getMomentumOptimizer() {
      if (optimizerCase_ == 2) {
         return (object_detection.protos.OptimizerOuterClass.MomentumOptimizer) optimizer_;
      }
      return object_detection.protos.OptimizerOuterClass.MomentumOptimizer.getDefaultInstance();
    }
    /**
     * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.MomentumOptimizerOrBuilder getMomentumOptimizerOrBuilder() {
      if (optimizerCase_ == 2) {
         return (object_detection.protos.OptimizerOuterClass.MomentumOptimizer) optimizer_;
      }
      return object_detection.protos.OptimizerOuterClass.MomentumOptimizer.getDefaultInstance();
    }

    public static final int ADAM_OPTIMIZER_FIELD_NUMBER = 3;
    /**
     * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
     * @return Whether the adamOptimizer field is set.
     */
    @java.lang.Override
    public boolean hasAdamOptimizer() {
      return optimizerCase_ == 3;
    }
    /**
     * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
     * @return The adamOptimizer.
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.AdamOptimizer getAdamOptimizer() {
      if (optimizerCase_ == 3) {
         return (object_detection.protos.OptimizerOuterClass.AdamOptimizer) optimizer_;
      }
      return object_detection.protos.OptimizerOuterClass.AdamOptimizer.getDefaultInstance();
    }
    /**
     * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.AdamOptimizerOrBuilder getAdamOptimizerOrBuilder() {
      if (optimizerCase_ == 3) {
         return (object_detection.protos.OptimizerOuterClass.AdamOptimizer) optimizer_;
      }
      return object_detection.protos.OptimizerOuterClass.AdamOptimizer.getDefaultInstance();
    }

    public static final int USE_MOVING_AVERAGE_FIELD_NUMBER = 4;
    private boolean useMovingAverage_;
    /**
     * <code>optional bool use_moving_average = 4 [default = true];</code>
     * @return Whether the useMovingAverage field is set.
     */
    @java.lang.Override
    public boolean hasUseMovingAverage() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <code>optional bool use_moving_average = 4 [default = true];</code>
     * @return The useMovingAverage.
     */
    @java.lang.Override
    public boolean getUseMovingAverage() {
      return useMovingAverage_;
    }

    public static final int MOVING_AVERAGE_DECAY_FIELD_NUMBER = 5;
    private float movingAverageDecay_;
    /**
     * <code>optional float moving_average_decay = 5 [default = 0.9999];</code>
     * @return Whether the movingAverageDecay field is set.
     */
    @java.lang.Override
    public boolean hasMovingAverageDecay() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * <code>optional float moving_average_decay = 5 [default = 0.9999];</code>
     * @return The movingAverageDecay.
     */
    @java.lang.Override
    public float getMovingAverageDecay() {
      return movingAverageDecay_;
    }

    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 (optimizerCase_ == 1) {
        output.writeMessage(1, (object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) optimizer_);
      }
      if (optimizerCase_ == 2) {
        output.writeMessage(2, (object_detection.protos.OptimizerOuterClass.MomentumOptimizer) optimizer_);
      }
      if (optimizerCase_ == 3) {
        output.writeMessage(3, (object_detection.protos.OptimizerOuterClass.AdamOptimizer) optimizer_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        output.writeBool(4, useMovingAverage_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        output.writeFloat(5, movingAverageDecay_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (optimizerCase_ == 1) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, (object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) optimizer_);
      }
      if (optimizerCase_ == 2) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, (object_detection.protos.OptimizerOuterClass.MomentumOptimizer) optimizer_);
      }
      if (optimizerCase_ == 3) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, (object_detection.protos.OptimizerOuterClass.AdamOptimizer) optimizer_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(4, useMovingAverage_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(5, movingAverageDecay_);
      }
      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.OptimizerOuterClass.Optimizer)) {
        return super.equals(obj);
      }
      object_detection.protos.OptimizerOuterClass.Optimizer other = (object_detection.protos.OptimizerOuterClass.Optimizer) obj;

      if (hasUseMovingAverage() != other.hasUseMovingAverage()) return false;
      if (hasUseMovingAverage()) {
        if (getUseMovingAverage()
            != other.getUseMovingAverage()) return false;
      }
      if (hasMovingAverageDecay() != other.hasMovingAverageDecay()) return false;
      if (hasMovingAverageDecay()) {
        if (java.lang.Float.floatToIntBits(getMovingAverageDecay())
            != java.lang.Float.floatToIntBits(
                other.getMovingAverageDecay())) return false;
      }
      if (!getOptimizerCase().equals(other.getOptimizerCase())) return false;
      switch (optimizerCase_) {
        case 1:
          if (!getRmsPropOptimizer()
              .equals(other.getRmsPropOptimizer())) return false;
          break;
        case 2:
          if (!getMomentumOptimizer()
              .equals(other.getMomentumOptimizer())) return false;
          break;
        case 3:
          if (!getAdamOptimizer()
              .equals(other.getAdamOptimizer())) 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();
      if (hasUseMovingAverage()) {
        hash = (37 * hash) + USE_MOVING_AVERAGE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            getUseMovingAverage());
      }
      if (hasMovingAverageDecay()) {
        hash = (37 * hash) + MOVING_AVERAGE_DECAY_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getMovingAverageDecay());
      }
      switch (optimizerCase_) {
        case 1:
          hash = (37 * hash) + RMS_PROP_OPTIMIZER_FIELD_NUMBER;
          hash = (53 * hash) + getRmsPropOptimizer().hashCode();
          break;
        case 2:
          hash = (37 * hash) + MOMENTUM_OPTIMIZER_FIELD_NUMBER;
          hash = (53 * hash) + getMomentumOptimizer().hashCode();
          break;
        case 3:
          hash = (37 * hash) + ADAM_OPTIMIZER_FIELD_NUMBER;
          hash = (53 * hash) + getAdamOptimizer().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

      // Construct using object_detection.protos.OptimizerOuterClass.Optimizer.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();
        useMovingAverage_ = true;
        bitField0_ = (bitField0_ & ~0x00000008);
        movingAverageDecay_ = 0.9999F;
        bitField0_ = (bitField0_ & ~0x00000010);
        optimizerCase_ = 0;
        optimizer_ = null;
        return this;
      }

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

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

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

      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.Optimizer buildPartial() {
        object_detection.protos.OptimizerOuterClass.Optimizer result = new object_detection.protos.OptimizerOuterClass.Optimizer(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (optimizerCase_ == 1) {
          if (rmsPropOptimizerBuilder_ == null) {
            result.optimizer_ = optimizer_;
          } else {
            result.optimizer_ = rmsPropOptimizerBuilder_.build();
          }
        }
        if (optimizerCase_ == 2) {
          if (momentumOptimizerBuilder_ == null) {
            result.optimizer_ = optimizer_;
          } else {
            result.optimizer_ = momentumOptimizerBuilder_.build();
          }
        }
        if (optimizerCase_ == 3) {
          if (adamOptimizerBuilder_ == null) {
            result.optimizer_ = optimizer_;
          } else {
            result.optimizer_ = adamOptimizerBuilder_.build();
          }
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          to_bitField0_ |= 0x00000008;
        }
        result.useMovingAverage_ = useMovingAverage_;
        if (((from_bitField0_ & 0x00000010) != 0)) {
          to_bitField0_ |= 0x00000010;
        }
        result.movingAverageDecay_ = movingAverageDecay_;
        result.bitField0_ = to_bitField0_;
        result.optimizerCase_ = optimizerCase_;
        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.OptimizerOuterClass.Optimizer) {
          return mergeFrom((object_detection.protos.OptimizerOuterClass.Optimizer)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.OptimizerOuterClass.Optimizer other) {
        if (other == object_detection.protos.OptimizerOuterClass.Optimizer.getDefaultInstance()) return this;
        if (other.hasUseMovingAverage()) {
          setUseMovingAverage(other.getUseMovingAverage());
        }
        if (other.hasMovingAverageDecay()) {
          setMovingAverageDecay(other.getMovingAverageDecay());
        }
        switch (other.getOptimizerCase()) {
          case RMS_PROP_OPTIMIZER: {
            mergeRmsPropOptimizer(other.getRmsPropOptimizer());
            break;
          }
          case MOMENTUM_OPTIMIZER: {
            mergeMomentumOptimizer(other.getMomentumOptimizer());
            break;
          }
          case ADAM_OPTIMIZER: {
            mergeAdamOptimizer(other.getAdamOptimizer());
            break;
          }
          case OPTIMIZER_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.OptimizerOuterClass.Optimizer parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.OptimizerOuterClass.Optimizer) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int optimizerCase_ = 0;
      private java.lang.Object optimizer_;
      public OptimizerCase
          getOptimizerCase() {
        return OptimizerCase.forNumber(
            optimizerCase_);
      }

      public Builder clearOptimizer() {
        optimizerCase_ = 0;
        optimizer_ = null;
        onChanged();
        return this;
      }

      private int bitField0_;

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.RMSPropOptimizer, object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.Builder, object_detection.protos.OptimizerOuterClass.RMSPropOptimizerOrBuilder> rmsPropOptimizerBuilder_;
      /**
       * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
       * @return Whether the rmsPropOptimizer field is set.
       */
      @java.lang.Override
      public boolean hasRmsPropOptimizer() {
        return optimizerCase_ == 1;
      }
      /**
       * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
       * @return The rmsPropOptimizer.
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.RMSPropOptimizer getRmsPropOptimizer() {
        if (rmsPropOptimizerBuilder_ == null) {
          if (optimizerCase_ == 1) {
            return (object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) optimizer_;
          }
          return object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.getDefaultInstance();
        } else {
          if (optimizerCase_ == 1) {
            return rmsPropOptimizerBuilder_.getMessage();
          }
          return object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
       */
      public Builder setRmsPropOptimizer(object_detection.protos.OptimizerOuterClass.RMSPropOptimizer value) {
        if (rmsPropOptimizerBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          optimizer_ = value;
          onChanged();
        } else {
          rmsPropOptimizerBuilder_.setMessage(value);
        }
        optimizerCase_ = 1;
        return this;
      }
      /**
       * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
       */
      public Builder setRmsPropOptimizer(
          object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.Builder builderForValue) {
        if (rmsPropOptimizerBuilder_ == null) {
          optimizer_ = builderForValue.build();
          onChanged();
        } else {
          rmsPropOptimizerBuilder_.setMessage(builderForValue.build());
        }
        optimizerCase_ = 1;
        return this;
      }
      /**
       * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
       */
      public Builder mergeRmsPropOptimizer(object_detection.protos.OptimizerOuterClass.RMSPropOptimizer value) {
        if (rmsPropOptimizerBuilder_ == null) {
          if (optimizerCase_ == 1 &&
              optimizer_ != object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.getDefaultInstance()) {
            optimizer_ = object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.newBuilder((object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) optimizer_)
                .mergeFrom(value).buildPartial();
          } else {
            optimizer_ = value;
          }
          onChanged();
        } else {
          if (optimizerCase_ == 1) {
            rmsPropOptimizerBuilder_.mergeFrom(value);
          }
          rmsPropOptimizerBuilder_.setMessage(value);
        }
        optimizerCase_ = 1;
        return this;
      }
      /**
       * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
       */
      public Builder clearRmsPropOptimizer() {
        if (rmsPropOptimizerBuilder_ == null) {
          if (optimizerCase_ == 1) {
            optimizerCase_ = 0;
            optimizer_ = null;
            onChanged();
          }
        } else {
          if (optimizerCase_ == 1) {
            optimizerCase_ = 0;
            optimizer_ = null;
          }
          rmsPropOptimizerBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
       */
      public object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.Builder getRmsPropOptimizerBuilder() {
        return getRmsPropOptimizerFieldBuilder().getBuilder();
      }
      /**
       * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.RMSPropOptimizerOrBuilder getRmsPropOptimizerOrBuilder() {
        if ((optimizerCase_ == 1) && (rmsPropOptimizerBuilder_ != null)) {
          return rmsPropOptimizerBuilder_.getMessageOrBuilder();
        } else {
          if (optimizerCase_ == 1) {
            return (object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) optimizer_;
          }
          return object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.RMSPropOptimizer rms_prop_optimizer = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.RMSPropOptimizer, object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.Builder, object_detection.protos.OptimizerOuterClass.RMSPropOptimizerOrBuilder>
          getRmsPropOptimizerFieldBuilder() {
        if (rmsPropOptimizerBuilder_ == null) {
          if (!(optimizerCase_ == 1)) {
            optimizer_ = object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.getDefaultInstance();
          }
          rmsPropOptimizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.OptimizerOuterClass.RMSPropOptimizer, object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.Builder, object_detection.protos.OptimizerOuterClass.RMSPropOptimizerOrBuilder>(
                  (object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) optimizer_,
                  getParentForChildren(),
                  isClean());
          optimizer_ = null;
        }
        optimizerCase_ = 1;
        onChanged();;
        return rmsPropOptimizerBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.MomentumOptimizer, object_detection.protos.OptimizerOuterClass.MomentumOptimizer.Builder, object_detection.protos.OptimizerOuterClass.MomentumOptimizerOrBuilder> momentumOptimizerBuilder_;
      /**
       * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
       * @return Whether the momentumOptimizer field is set.
       */
      @java.lang.Override
      public boolean hasMomentumOptimizer() {
        return optimizerCase_ == 2;
      }
      /**
       * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
       * @return The momentumOptimizer.
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.MomentumOptimizer getMomentumOptimizer() {
        if (momentumOptimizerBuilder_ == null) {
          if (optimizerCase_ == 2) {
            return (object_detection.protos.OptimizerOuterClass.MomentumOptimizer) optimizer_;
          }
          return object_detection.protos.OptimizerOuterClass.MomentumOptimizer.getDefaultInstance();
        } else {
          if (optimizerCase_ == 2) {
            return momentumOptimizerBuilder_.getMessage();
          }
          return object_detection.protos.OptimizerOuterClass.MomentumOptimizer.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
       */
      public Builder setMomentumOptimizer(object_detection.protos.OptimizerOuterClass.MomentumOptimizer value) {
        if (momentumOptimizerBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          optimizer_ = value;
          onChanged();
        } else {
          momentumOptimizerBuilder_.setMessage(value);
        }
        optimizerCase_ = 2;
        return this;
      }
      /**
       * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
       */
      public Builder setMomentumOptimizer(
          object_detection.protos.OptimizerOuterClass.MomentumOptimizer.Builder builderForValue) {
        if (momentumOptimizerBuilder_ == null) {
          optimizer_ = builderForValue.build();
          onChanged();
        } else {
          momentumOptimizerBuilder_.setMessage(builderForValue.build());
        }
        optimizerCase_ = 2;
        return this;
      }
      /**
       * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
       */
      public Builder mergeMomentumOptimizer(object_detection.protos.OptimizerOuterClass.MomentumOptimizer value) {
        if (momentumOptimizerBuilder_ == null) {
          if (optimizerCase_ == 2 &&
              optimizer_ != object_detection.protos.OptimizerOuterClass.MomentumOptimizer.getDefaultInstance()) {
            optimizer_ = object_detection.protos.OptimizerOuterClass.MomentumOptimizer.newBuilder((object_detection.protos.OptimizerOuterClass.MomentumOptimizer) optimizer_)
                .mergeFrom(value).buildPartial();
          } else {
            optimizer_ = value;
          }
          onChanged();
        } else {
          if (optimizerCase_ == 2) {
            momentumOptimizerBuilder_.mergeFrom(value);
          }
          momentumOptimizerBuilder_.setMessage(value);
        }
        optimizerCase_ = 2;
        return this;
      }
      /**
       * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
       */
      public Builder clearMomentumOptimizer() {
        if (momentumOptimizerBuilder_ == null) {
          if (optimizerCase_ == 2) {
            optimizerCase_ = 0;
            optimizer_ = null;
            onChanged();
          }
        } else {
          if (optimizerCase_ == 2) {
            optimizerCase_ = 0;
            optimizer_ = null;
          }
          momentumOptimizerBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
       */
      public object_detection.protos.OptimizerOuterClass.MomentumOptimizer.Builder getMomentumOptimizerBuilder() {
        return getMomentumOptimizerFieldBuilder().getBuilder();
      }
      /**
       * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.MomentumOptimizerOrBuilder getMomentumOptimizerOrBuilder() {
        if ((optimizerCase_ == 2) && (momentumOptimizerBuilder_ != null)) {
          return momentumOptimizerBuilder_.getMessageOrBuilder();
        } else {
          if (optimizerCase_ == 2) {
            return (object_detection.protos.OptimizerOuterClass.MomentumOptimizer) optimizer_;
          }
          return object_detection.protos.OptimizerOuterClass.MomentumOptimizer.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.MomentumOptimizer momentum_optimizer = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.MomentumOptimizer, object_detection.protos.OptimizerOuterClass.MomentumOptimizer.Builder, object_detection.protos.OptimizerOuterClass.MomentumOptimizerOrBuilder>
          getMomentumOptimizerFieldBuilder() {
        if (momentumOptimizerBuilder_ == null) {
          if (!(optimizerCase_ == 2)) {
            optimizer_ = object_detection.protos.OptimizerOuterClass.MomentumOptimizer.getDefaultInstance();
          }
          momentumOptimizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.OptimizerOuterClass.MomentumOptimizer, object_detection.protos.OptimizerOuterClass.MomentumOptimizer.Builder, object_detection.protos.OptimizerOuterClass.MomentumOptimizerOrBuilder>(
                  (object_detection.protos.OptimizerOuterClass.MomentumOptimizer) optimizer_,
                  getParentForChildren(),
                  isClean());
          optimizer_ = null;
        }
        optimizerCase_ = 2;
        onChanged();;
        return momentumOptimizerBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.AdamOptimizer, object_detection.protos.OptimizerOuterClass.AdamOptimizer.Builder, object_detection.protos.OptimizerOuterClass.AdamOptimizerOrBuilder> adamOptimizerBuilder_;
      /**
       * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
       * @return Whether the adamOptimizer field is set.
       */
      @java.lang.Override
      public boolean hasAdamOptimizer() {
        return optimizerCase_ == 3;
      }
      /**
       * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
       * @return The adamOptimizer.
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.AdamOptimizer getAdamOptimizer() {
        if (adamOptimizerBuilder_ == null) {
          if (optimizerCase_ == 3) {
            return (object_detection.protos.OptimizerOuterClass.AdamOptimizer) optimizer_;
          }
          return object_detection.protos.OptimizerOuterClass.AdamOptimizer.getDefaultInstance();
        } else {
          if (optimizerCase_ == 3) {
            return adamOptimizerBuilder_.getMessage();
          }
          return object_detection.protos.OptimizerOuterClass.AdamOptimizer.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
       */
      public Builder setAdamOptimizer(object_detection.protos.OptimizerOuterClass.AdamOptimizer value) {
        if (adamOptimizerBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          optimizer_ = value;
          onChanged();
        } else {
          adamOptimizerBuilder_.setMessage(value);
        }
        optimizerCase_ = 3;
        return this;
      }
      /**
       * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
       */
      public Builder setAdamOptimizer(
          object_detection.protos.OptimizerOuterClass.AdamOptimizer.Builder builderForValue) {
        if (adamOptimizerBuilder_ == null) {
          optimizer_ = builderForValue.build();
          onChanged();
        } else {
          adamOptimizerBuilder_.setMessage(builderForValue.build());
        }
        optimizerCase_ = 3;
        return this;
      }
      /**
       * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
       */
      public Builder mergeAdamOptimizer(object_detection.protos.OptimizerOuterClass.AdamOptimizer value) {
        if (adamOptimizerBuilder_ == null) {
          if (optimizerCase_ == 3 &&
              optimizer_ != object_detection.protos.OptimizerOuterClass.AdamOptimizer.getDefaultInstance()) {
            optimizer_ = object_detection.protos.OptimizerOuterClass.AdamOptimizer.newBuilder((object_detection.protos.OptimizerOuterClass.AdamOptimizer) optimizer_)
                .mergeFrom(value).buildPartial();
          } else {
            optimizer_ = value;
          }
          onChanged();
        } else {
          if (optimizerCase_ == 3) {
            adamOptimizerBuilder_.mergeFrom(value);
          }
          adamOptimizerBuilder_.setMessage(value);
        }
        optimizerCase_ = 3;
        return this;
      }
      /**
       * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
       */
      public Builder clearAdamOptimizer() {
        if (adamOptimizerBuilder_ == null) {
          if (optimizerCase_ == 3) {
            optimizerCase_ = 0;
            optimizer_ = null;
            onChanged();
          }
        } else {
          if (optimizerCase_ == 3) {
            optimizerCase_ = 0;
            optimizer_ = null;
          }
          adamOptimizerBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
       */
      public object_detection.protos.OptimizerOuterClass.AdamOptimizer.Builder getAdamOptimizerBuilder() {
        return getAdamOptimizerFieldBuilder().getBuilder();
      }
      /**
       * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.AdamOptimizerOrBuilder getAdamOptimizerOrBuilder() {
        if ((optimizerCase_ == 3) && (adamOptimizerBuilder_ != null)) {
          return adamOptimizerBuilder_.getMessageOrBuilder();
        } else {
          if (optimizerCase_ == 3) {
            return (object_detection.protos.OptimizerOuterClass.AdamOptimizer) optimizer_;
          }
          return object_detection.protos.OptimizerOuterClass.AdamOptimizer.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.AdamOptimizer adam_optimizer = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.AdamOptimizer, object_detection.protos.OptimizerOuterClass.AdamOptimizer.Builder, object_detection.protos.OptimizerOuterClass.AdamOptimizerOrBuilder>
          getAdamOptimizerFieldBuilder() {
        if (adamOptimizerBuilder_ == null) {
          if (!(optimizerCase_ == 3)) {
            optimizer_ = object_detection.protos.OptimizerOuterClass.AdamOptimizer.getDefaultInstance();
          }
          adamOptimizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.OptimizerOuterClass.AdamOptimizer, object_detection.protos.OptimizerOuterClass.AdamOptimizer.Builder, object_detection.protos.OptimizerOuterClass.AdamOptimizerOrBuilder>(
                  (object_detection.protos.OptimizerOuterClass.AdamOptimizer) optimizer_,
                  getParentForChildren(),
                  isClean());
          optimizer_ = null;
        }
        optimizerCase_ = 3;
        onChanged();;
        return adamOptimizerBuilder_;
      }

      private boolean useMovingAverage_ = true;
      /**
       * <code>optional bool use_moving_average = 4 [default = true];</code>
       * @return Whether the useMovingAverage field is set.
       */
      @java.lang.Override
      public boolean hasUseMovingAverage() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * <code>optional bool use_moving_average = 4 [default = true];</code>
       * @return The useMovingAverage.
       */
      @java.lang.Override
      public boolean getUseMovingAverage() {
        return useMovingAverage_;
      }
      /**
       * <code>optional bool use_moving_average = 4 [default = true];</code>
       * @param value The useMovingAverage to set.
       * @return This builder for chaining.
       */
      public Builder setUseMovingAverage(boolean value) {
        bitField0_ |= 0x00000008;
        useMovingAverage_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional bool use_moving_average = 4 [default = true];</code>
       * @return This builder for chaining.
       */
      public Builder clearUseMovingAverage() {
        bitField0_ = (bitField0_ & ~0x00000008);
        useMovingAverage_ = true;
        onChanged();
        return this;
      }

      private float movingAverageDecay_ = 0.9999F;
      /**
       * <code>optional float moving_average_decay = 5 [default = 0.9999];</code>
       * @return Whether the movingAverageDecay field is set.
       */
      @java.lang.Override
      public boolean hasMovingAverageDecay() {
        return ((bitField0_ & 0x00000010) != 0);
      }
      /**
       * <code>optional float moving_average_decay = 5 [default = 0.9999];</code>
       * @return The movingAverageDecay.
       */
      @java.lang.Override
      public float getMovingAverageDecay() {
        return movingAverageDecay_;
      }
      /**
       * <code>optional float moving_average_decay = 5 [default = 0.9999];</code>
       * @param value The movingAverageDecay to set.
       * @return This builder for chaining.
       */
      public Builder setMovingAverageDecay(float value) {
        bitField0_ |= 0x00000010;
        movingAverageDecay_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float moving_average_decay = 5 [default = 0.9999];</code>
       * @return This builder for chaining.
       */
      public Builder clearMovingAverageDecay() {
        bitField0_ = (bitField0_ & ~0x00000010);
        movingAverageDecay_ = 0.9999F;
        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.Optimizer)
    }

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

    public static object_detection.protos.OptimizerOuterClass.Optimizer getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

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

    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return Whether the learningRate field is set.
     */
    boolean hasLearningRate();
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return The learningRate.
     */
    object_detection.protos.OptimizerOuterClass.LearningRate getLearningRate();
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     */
    object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder getLearningRateOrBuilder();

    /**
     * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
     * @return Whether the momentumOptimizerValue field is set.
     */
    boolean hasMomentumOptimizerValue();
    /**
     * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
     * @return The momentumOptimizerValue.
     */
    float getMomentumOptimizerValue();

    /**
     * <code>optional float decay = 3 [default = 0.9];</code>
     * @return Whether the decay field is set.
     */
    boolean hasDecay();
    /**
     * <code>optional float decay = 3 [default = 0.9];</code>
     * @return The decay.
     */
    float getDecay();

    /**
     * <code>optional float epsilon = 4 [default = 1];</code>
     * @return Whether the epsilon field is set.
     */
    boolean hasEpsilon();
    /**
     * <code>optional float epsilon = 4 [default = 1];</code>
     * @return The epsilon.
     */
    float getEpsilon();
  }
  /**
   * <pre>
   * Configuration message for the RMSPropOptimizer
   * See: https://www.tensorflow.org/api_docs/python/tf/train/RMSPropOptimizer
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.RMSPropOptimizer}
   */
  public static final class RMSPropOptimizer extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.RMSPropOptimizer)
      RMSPropOptimizerOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use RMSPropOptimizer.newBuilder() to construct.
    private RMSPropOptimizer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private RMSPropOptimizer() {
      momentumOptimizerValue_ = 0.9F;
      decay_ = 0.9F;
      epsilon_ = 1F;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private RMSPropOptimizer(
        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.OptimizerOuterClass.LearningRate.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = learningRate_.toBuilder();
              }
              learningRate_ = input.readMessage(object_detection.protos.OptimizerOuterClass.LearningRate.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(learningRate_);
                learningRate_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 21: {
              bitField0_ |= 0x00000002;
              momentumOptimizerValue_ = input.readFloat();
              break;
            }
            case 29: {
              bitField0_ |= 0x00000004;
              decay_ = input.readFloat();
              break;
            }
            case 37: {
              bitField0_ |= 0x00000008;
              epsilon_ = 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.OptimizerOuterClass.internal_static_object_detection_protos_RMSPropOptimizer_descriptor;
    }

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

    private int bitField0_;
    public static final int LEARNING_RATE_FIELD_NUMBER = 1;
    private object_detection.protos.OptimizerOuterClass.LearningRate learningRate_;
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return Whether the learningRate field is set.
     */
    @java.lang.Override
    public boolean hasLearningRate() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return The learningRate.
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.LearningRate getLearningRate() {
      return learningRate_ == null ? object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
    }
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder getLearningRateOrBuilder() {
      return learningRate_ == null ? object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
    }

    public static final int MOMENTUM_OPTIMIZER_VALUE_FIELD_NUMBER = 2;
    private float momentumOptimizerValue_;
    /**
     * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
     * @return Whether the momentumOptimizerValue field is set.
     */
    @java.lang.Override
    public boolean hasMomentumOptimizerValue() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
     * @return The momentumOptimizerValue.
     */
    @java.lang.Override
    public float getMomentumOptimizerValue() {
      return momentumOptimizerValue_;
    }

    public static final int DECAY_FIELD_NUMBER = 3;
    private float decay_;
    /**
     * <code>optional float decay = 3 [default = 0.9];</code>
     * @return Whether the decay field is set.
     */
    @java.lang.Override
    public boolean hasDecay() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional float decay = 3 [default = 0.9];</code>
     * @return The decay.
     */
    @java.lang.Override
    public float getDecay() {
      return decay_;
    }

    public static final int EPSILON_FIELD_NUMBER = 4;
    private float epsilon_;
    /**
     * <code>optional float epsilon = 4 [default = 1];</code>
     * @return Whether the epsilon field is set.
     */
    @java.lang.Override
    public boolean hasEpsilon() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <code>optional float epsilon = 4 [default = 1];</code>
     * @return The epsilon.
     */
    @java.lang.Override
    public float getEpsilon() {
      return epsilon_;
    }

    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, getLearningRate());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeFloat(2, momentumOptimizerValue_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeFloat(3, decay_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        output.writeFloat(4, epsilon_);
      }
      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, getLearningRate());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(2, momentumOptimizerValue_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(3, decay_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(4, epsilon_);
      }
      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.OptimizerOuterClass.RMSPropOptimizer)) {
        return super.equals(obj);
      }
      object_detection.protos.OptimizerOuterClass.RMSPropOptimizer other = (object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) obj;

      if (hasLearningRate() != other.hasLearningRate()) return false;
      if (hasLearningRate()) {
        if (!getLearningRate()
            .equals(other.getLearningRate())) return false;
      }
      if (hasMomentumOptimizerValue() != other.hasMomentumOptimizerValue()) return false;
      if (hasMomentumOptimizerValue()) {
        if (java.lang.Float.floatToIntBits(getMomentumOptimizerValue())
            != java.lang.Float.floatToIntBits(
                other.getMomentumOptimizerValue())) return false;
      }
      if (hasDecay() != other.hasDecay()) return false;
      if (hasDecay()) {
        if (java.lang.Float.floatToIntBits(getDecay())
            != java.lang.Float.floatToIntBits(
                other.getDecay())) return false;
      }
      if (hasEpsilon() != other.hasEpsilon()) return false;
      if (hasEpsilon()) {
        if (java.lang.Float.floatToIntBits(getEpsilon())
            != java.lang.Float.floatToIntBits(
                other.getEpsilon())) 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 (hasLearningRate()) {
        hash = (37 * hash) + LEARNING_RATE_FIELD_NUMBER;
        hash = (53 * hash) + getLearningRate().hashCode();
      }
      if (hasMomentumOptimizerValue()) {
        hash = (37 * hash) + MOMENTUM_OPTIMIZER_VALUE_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getMomentumOptimizerValue());
      }
      if (hasDecay()) {
        hash = (37 * hash) + DECAY_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getDecay());
      }
      if (hasEpsilon()) {
        hash = (37 * hash) + EPSILON_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getEpsilon());
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.OptimizerOuterClass.RMSPropOptimizer parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.RMSPropOptimizer 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.OptimizerOuterClass.RMSPropOptimizer parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.RMSPropOptimizer 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.OptimizerOuterClass.RMSPropOptimizer parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.RMSPropOptimizer parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.OptimizerOuterClass.RMSPropOptimizer parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.RMSPropOptimizer 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.OptimizerOuterClass.RMSPropOptimizer parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.RMSPropOptimizer 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.OptimizerOuterClass.RMSPropOptimizer parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.RMSPropOptimizer 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.OptimizerOuterClass.RMSPropOptimizer 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>
     * Configuration message for the RMSPropOptimizer
     * See: https://www.tensorflow.org/api_docs/python/tf/train/RMSPropOptimizer
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.RMSPropOptimizer}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.RMSPropOptimizer)
        object_detection.protos.OptimizerOuterClass.RMSPropOptimizerOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.OptimizerOuterClass.internal_static_object_detection_protos_RMSPropOptimizer_descriptor;
      }

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

      // Construct using object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getLearningRateFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (learningRateBuilder_ == null) {
          learningRate_ = null;
        } else {
          learningRateBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        momentumOptimizerValue_ = 0.9F;
        bitField0_ = (bitField0_ & ~0x00000002);
        decay_ = 0.9F;
        bitField0_ = (bitField0_ & ~0x00000004);
        epsilon_ = 1F;
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

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

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

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

      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.RMSPropOptimizer buildPartial() {
        object_detection.protos.OptimizerOuterClass.RMSPropOptimizer result = new object_detection.protos.OptimizerOuterClass.RMSPropOptimizer(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (learningRateBuilder_ == null) {
            result.learningRate_ = learningRate_;
          } else {
            result.learningRate_ = learningRateBuilder_.build();
          }
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.momentumOptimizerValue_ = momentumOptimizerValue_;
        if (((from_bitField0_ & 0x00000004) != 0)) {
          to_bitField0_ |= 0x00000004;
        }
        result.decay_ = decay_;
        if (((from_bitField0_ & 0x00000008) != 0)) {
          to_bitField0_ |= 0x00000008;
        }
        result.epsilon_ = epsilon_;
        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.OptimizerOuterClass.RMSPropOptimizer) {
          return mergeFrom((object_detection.protos.OptimizerOuterClass.RMSPropOptimizer)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.OptimizerOuterClass.RMSPropOptimizer other) {
        if (other == object_detection.protos.OptimizerOuterClass.RMSPropOptimizer.getDefaultInstance()) return this;
        if (other.hasLearningRate()) {
          mergeLearningRate(other.getLearningRate());
        }
        if (other.hasMomentumOptimizerValue()) {
          setMomentumOptimizerValue(other.getMomentumOptimizerValue());
        }
        if (other.hasDecay()) {
          setDecay(other.getDecay());
        }
        if (other.hasEpsilon()) {
          setEpsilon(other.getEpsilon());
        }
        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.OptimizerOuterClass.RMSPropOptimizer parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.OptimizerOuterClass.RMSPropOptimizer) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private object_detection.protos.OptimizerOuterClass.LearningRate learningRate_;
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.LearningRate, object_detection.protos.OptimizerOuterClass.LearningRate.Builder, object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder> learningRateBuilder_;
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       * @return Whether the learningRate field is set.
       */
      public boolean hasLearningRate() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       * @return The learningRate.
       */
      public object_detection.protos.OptimizerOuterClass.LearningRate getLearningRate() {
        if (learningRateBuilder_ == null) {
          return learningRate_ == null ? object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
        } else {
          return learningRateBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder setLearningRate(object_detection.protos.OptimizerOuterClass.LearningRate value) {
        if (learningRateBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          learningRate_ = value;
          onChanged();
        } else {
          learningRateBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder setLearningRate(
          object_detection.protos.OptimizerOuterClass.LearningRate.Builder builderForValue) {
        if (learningRateBuilder_ == null) {
          learningRate_ = builderForValue.build();
          onChanged();
        } else {
          learningRateBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder mergeLearningRate(object_detection.protos.OptimizerOuterClass.LearningRate value) {
        if (learningRateBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              learningRate_ != null &&
              learningRate_ != object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance()) {
            learningRate_ =
              object_detection.protos.OptimizerOuterClass.LearningRate.newBuilder(learningRate_).mergeFrom(value).buildPartial();
          } else {
            learningRate_ = value;
          }
          onChanged();
        } else {
          learningRateBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder clearLearningRate() {
        if (learningRateBuilder_ == null) {
          learningRate_ = null;
          onChanged();
        } else {
          learningRateBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public object_detection.protos.OptimizerOuterClass.LearningRate.Builder getLearningRateBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getLearningRateFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder getLearningRateOrBuilder() {
        if (learningRateBuilder_ != null) {
          return learningRateBuilder_.getMessageOrBuilder();
        } else {
          return learningRate_ == null ?
              object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
        }
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.LearningRate, object_detection.protos.OptimizerOuterClass.LearningRate.Builder, object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder>
          getLearningRateFieldBuilder() {
        if (learningRateBuilder_ == null) {
          learningRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.OptimizerOuterClass.LearningRate, object_detection.protos.OptimizerOuterClass.LearningRate.Builder, object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder>(
                  getLearningRate(),
                  getParentForChildren(),
                  isClean());
          learningRate_ = null;
        }
        return learningRateBuilder_;
      }

      private float momentumOptimizerValue_ = 0.9F;
      /**
       * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
       * @return Whether the momentumOptimizerValue field is set.
       */
      @java.lang.Override
      public boolean hasMomentumOptimizerValue() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
       * @return The momentumOptimizerValue.
       */
      @java.lang.Override
      public float getMomentumOptimizerValue() {
        return momentumOptimizerValue_;
      }
      /**
       * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
       * @param value The momentumOptimizerValue to set.
       * @return This builder for chaining.
       */
      public Builder setMomentumOptimizerValue(float value) {
        bitField0_ |= 0x00000002;
        momentumOptimizerValue_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
       * @return This builder for chaining.
       */
      public Builder clearMomentumOptimizerValue() {
        bitField0_ = (bitField0_ & ~0x00000002);
        momentumOptimizerValue_ = 0.9F;
        onChanged();
        return this;
      }

      private float decay_ = 0.9F;
      /**
       * <code>optional float decay = 3 [default = 0.9];</code>
       * @return Whether the decay field is set.
       */
      @java.lang.Override
      public boolean hasDecay() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>optional float decay = 3 [default = 0.9];</code>
       * @return The decay.
       */
      @java.lang.Override
      public float getDecay() {
        return decay_;
      }
      /**
       * <code>optional float decay = 3 [default = 0.9];</code>
       * @param value The decay to set.
       * @return This builder for chaining.
       */
      public Builder setDecay(float value) {
        bitField0_ |= 0x00000004;
        decay_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float decay = 3 [default = 0.9];</code>
       * @return This builder for chaining.
       */
      public Builder clearDecay() {
        bitField0_ = (bitField0_ & ~0x00000004);
        decay_ = 0.9F;
        onChanged();
        return this;
      }

      private float epsilon_ = 1F;
      /**
       * <code>optional float epsilon = 4 [default = 1];</code>
       * @return Whether the epsilon field is set.
       */
      @java.lang.Override
      public boolean hasEpsilon() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * <code>optional float epsilon = 4 [default = 1];</code>
       * @return The epsilon.
       */
      @java.lang.Override
      public float getEpsilon() {
        return epsilon_;
      }
      /**
       * <code>optional float epsilon = 4 [default = 1];</code>
       * @param value The epsilon to set.
       * @return This builder for chaining.
       */
      public Builder setEpsilon(float value) {
        bitField0_ |= 0x00000008;
        epsilon_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float epsilon = 4 [default = 1];</code>
       * @return This builder for chaining.
       */
      public Builder clearEpsilon() {
        bitField0_ = (bitField0_ & ~0x00000008);
        epsilon_ = 1F;
        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.RMSPropOptimizer)
    }

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

    public static object_detection.protos.OptimizerOuterClass.RMSPropOptimizer getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

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

    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return Whether the learningRate field is set.
     */
    boolean hasLearningRate();
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return The learningRate.
     */
    object_detection.protos.OptimizerOuterClass.LearningRate getLearningRate();
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     */
    object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder getLearningRateOrBuilder();

    /**
     * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
     * @return Whether the momentumOptimizerValue field is set.
     */
    boolean hasMomentumOptimizerValue();
    /**
     * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
     * @return The momentumOptimizerValue.
     */
    float getMomentumOptimizerValue();
  }
  /**
   * <pre>
   * Configuration message for the MomentumOptimizer
   * See: https://www.tensorflow.org/api_docs/python/tf/train/MomentumOptimizer
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.MomentumOptimizer}
   */
  public static final class MomentumOptimizer extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.MomentumOptimizer)
      MomentumOptimizerOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MomentumOptimizer.newBuilder() to construct.
    private MomentumOptimizer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private MomentumOptimizer() {
      momentumOptimizerValue_ = 0.9F;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MomentumOptimizer(
        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.OptimizerOuterClass.LearningRate.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = learningRate_.toBuilder();
              }
              learningRate_ = input.readMessage(object_detection.protos.OptimizerOuterClass.LearningRate.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(learningRate_);
                learningRate_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 21: {
              bitField0_ |= 0x00000002;
              momentumOptimizerValue_ = 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.OptimizerOuterClass.internal_static_object_detection_protos_MomentumOptimizer_descriptor;
    }

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

    private int bitField0_;
    public static final int LEARNING_RATE_FIELD_NUMBER = 1;
    private object_detection.protos.OptimizerOuterClass.LearningRate learningRate_;
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return Whether the learningRate field is set.
     */
    @java.lang.Override
    public boolean hasLearningRate() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return The learningRate.
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.LearningRate getLearningRate() {
      return learningRate_ == null ? object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
    }
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder getLearningRateOrBuilder() {
      return learningRate_ == null ? object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
    }

    public static final int MOMENTUM_OPTIMIZER_VALUE_FIELD_NUMBER = 2;
    private float momentumOptimizerValue_;
    /**
     * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
     * @return Whether the momentumOptimizerValue field is set.
     */
    @java.lang.Override
    public boolean hasMomentumOptimizerValue() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
     * @return The momentumOptimizerValue.
     */
    @java.lang.Override
    public float getMomentumOptimizerValue() {
      return momentumOptimizerValue_;
    }

    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, getLearningRate());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeFloat(2, momentumOptimizerValue_);
      }
      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, getLearningRate());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(2, momentumOptimizerValue_);
      }
      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.OptimizerOuterClass.MomentumOptimizer)) {
        return super.equals(obj);
      }
      object_detection.protos.OptimizerOuterClass.MomentumOptimizer other = (object_detection.protos.OptimizerOuterClass.MomentumOptimizer) obj;

      if (hasLearningRate() != other.hasLearningRate()) return false;
      if (hasLearningRate()) {
        if (!getLearningRate()
            .equals(other.getLearningRate())) return false;
      }
      if (hasMomentumOptimizerValue() != other.hasMomentumOptimizerValue()) return false;
      if (hasMomentumOptimizerValue()) {
        if (java.lang.Float.floatToIntBits(getMomentumOptimizerValue())
            != java.lang.Float.floatToIntBits(
                other.getMomentumOptimizerValue())) 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 (hasLearningRate()) {
        hash = (37 * hash) + LEARNING_RATE_FIELD_NUMBER;
        hash = (53 * hash) + getLearningRate().hashCode();
      }
      if (hasMomentumOptimizerValue()) {
        hash = (37 * hash) + MOMENTUM_OPTIMIZER_VALUE_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getMomentumOptimizerValue());
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.OptimizerOuterClass.MomentumOptimizer parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.MomentumOptimizer 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.OptimizerOuterClass.MomentumOptimizer parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.MomentumOptimizer 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.OptimizerOuterClass.MomentumOptimizer parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.MomentumOptimizer parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.OptimizerOuterClass.MomentumOptimizer parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.MomentumOptimizer 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.OptimizerOuterClass.MomentumOptimizer parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.MomentumOptimizer 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.OptimizerOuterClass.MomentumOptimizer parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.MomentumOptimizer 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.OptimizerOuterClass.MomentumOptimizer 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>
     * Configuration message for the MomentumOptimizer
     * See: https://www.tensorflow.org/api_docs/python/tf/train/MomentumOptimizer
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.MomentumOptimizer}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.MomentumOptimizer)
        object_detection.protos.OptimizerOuterClass.MomentumOptimizerOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.OptimizerOuterClass.internal_static_object_detection_protos_MomentumOptimizer_descriptor;
      }

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

      // Construct using object_detection.protos.OptimizerOuterClass.MomentumOptimizer.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getLearningRateFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (learningRateBuilder_ == null) {
          learningRate_ = null;
        } else {
          learningRateBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        momentumOptimizerValue_ = 0.9F;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

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

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

      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.MomentumOptimizer buildPartial() {
        object_detection.protos.OptimizerOuterClass.MomentumOptimizer result = new object_detection.protos.OptimizerOuterClass.MomentumOptimizer(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (learningRateBuilder_ == null) {
            result.learningRate_ = learningRate_;
          } else {
            result.learningRate_ = learningRateBuilder_.build();
          }
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.momentumOptimizerValue_ = momentumOptimizerValue_;
        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.OptimizerOuterClass.MomentumOptimizer) {
          return mergeFrom((object_detection.protos.OptimizerOuterClass.MomentumOptimizer)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.OptimizerOuterClass.MomentumOptimizer other) {
        if (other == object_detection.protos.OptimizerOuterClass.MomentumOptimizer.getDefaultInstance()) return this;
        if (other.hasLearningRate()) {
          mergeLearningRate(other.getLearningRate());
        }
        if (other.hasMomentumOptimizerValue()) {
          setMomentumOptimizerValue(other.getMomentumOptimizerValue());
        }
        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.OptimizerOuterClass.MomentumOptimizer parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.OptimizerOuterClass.MomentumOptimizer) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private object_detection.protos.OptimizerOuterClass.LearningRate learningRate_;
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.LearningRate, object_detection.protos.OptimizerOuterClass.LearningRate.Builder, object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder> learningRateBuilder_;
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       * @return Whether the learningRate field is set.
       */
      public boolean hasLearningRate() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       * @return The learningRate.
       */
      public object_detection.protos.OptimizerOuterClass.LearningRate getLearningRate() {
        if (learningRateBuilder_ == null) {
          return learningRate_ == null ? object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
        } else {
          return learningRateBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder setLearningRate(object_detection.protos.OptimizerOuterClass.LearningRate value) {
        if (learningRateBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          learningRate_ = value;
          onChanged();
        } else {
          learningRateBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder setLearningRate(
          object_detection.protos.OptimizerOuterClass.LearningRate.Builder builderForValue) {
        if (learningRateBuilder_ == null) {
          learningRate_ = builderForValue.build();
          onChanged();
        } else {
          learningRateBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder mergeLearningRate(object_detection.protos.OptimizerOuterClass.LearningRate value) {
        if (learningRateBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              learningRate_ != null &&
              learningRate_ != object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance()) {
            learningRate_ =
              object_detection.protos.OptimizerOuterClass.LearningRate.newBuilder(learningRate_).mergeFrom(value).buildPartial();
          } else {
            learningRate_ = value;
          }
          onChanged();
        } else {
          learningRateBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder clearLearningRate() {
        if (learningRateBuilder_ == null) {
          learningRate_ = null;
          onChanged();
        } else {
          learningRateBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public object_detection.protos.OptimizerOuterClass.LearningRate.Builder getLearningRateBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getLearningRateFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder getLearningRateOrBuilder() {
        if (learningRateBuilder_ != null) {
          return learningRateBuilder_.getMessageOrBuilder();
        } else {
          return learningRate_ == null ?
              object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
        }
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.LearningRate, object_detection.protos.OptimizerOuterClass.LearningRate.Builder, object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder>
          getLearningRateFieldBuilder() {
        if (learningRateBuilder_ == null) {
          learningRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.OptimizerOuterClass.LearningRate, object_detection.protos.OptimizerOuterClass.LearningRate.Builder, object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder>(
                  getLearningRate(),
                  getParentForChildren(),
                  isClean());
          learningRate_ = null;
        }
        return learningRateBuilder_;
      }

      private float momentumOptimizerValue_ = 0.9F;
      /**
       * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
       * @return Whether the momentumOptimizerValue field is set.
       */
      @java.lang.Override
      public boolean hasMomentumOptimizerValue() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
       * @return The momentumOptimizerValue.
       */
      @java.lang.Override
      public float getMomentumOptimizerValue() {
        return momentumOptimizerValue_;
      }
      /**
       * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
       * @param value The momentumOptimizerValue to set.
       * @return This builder for chaining.
       */
      public Builder setMomentumOptimizerValue(float value) {
        bitField0_ |= 0x00000002;
        momentumOptimizerValue_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float momentum_optimizer_value = 2 [default = 0.9];</code>
       * @return This builder for chaining.
       */
      public Builder clearMomentumOptimizerValue() {
        bitField0_ = (bitField0_ & ~0x00000002);
        momentumOptimizerValue_ = 0.9F;
        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.MomentumOptimizer)
    }

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

    public static object_detection.protos.OptimizerOuterClass.MomentumOptimizer getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

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

    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return Whether the learningRate field is set.
     */
    boolean hasLearningRate();
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return The learningRate.
     */
    object_detection.protos.OptimizerOuterClass.LearningRate getLearningRate();
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     */
    object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder getLearningRateOrBuilder();

    /**
     * <pre>
     * Default value for epsilon (1e-8) matches default value in
     * tf.train.AdamOptimizer. This differs from tf2 default of 1e-7
     * in tf.keras.optimizers.Adam .
     * </pre>
     *
     * <code>optional float epsilon = 2 [default = 1e-08];</code>
     * @return Whether the epsilon field is set.
     */
    boolean hasEpsilon();
    /**
     * <pre>
     * Default value for epsilon (1e-8) matches default value in
     * tf.train.AdamOptimizer. This differs from tf2 default of 1e-7
     * in tf.keras.optimizers.Adam .
     * </pre>
     *
     * <code>optional float epsilon = 2 [default = 1e-08];</code>
     * @return The epsilon.
     */
    float getEpsilon();
  }
  /**
   * <pre>
   * Configuration message for the AdamOptimizer
   * See: https://www.tensorflow.org/api_docs/python/tf/train/AdamOptimizer
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.AdamOptimizer}
   */
  public static final class AdamOptimizer extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.AdamOptimizer)
      AdamOptimizerOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use AdamOptimizer.newBuilder() to construct.
    private AdamOptimizer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private AdamOptimizer() {
      epsilon_ = 1e-08F;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private AdamOptimizer(
        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.OptimizerOuterClass.LearningRate.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = learningRate_.toBuilder();
              }
              learningRate_ = input.readMessage(object_detection.protos.OptimizerOuterClass.LearningRate.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(learningRate_);
                learningRate_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 21: {
              bitField0_ |= 0x00000002;
              epsilon_ = 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.OptimizerOuterClass.internal_static_object_detection_protos_AdamOptimizer_descriptor;
    }

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

    private int bitField0_;
    public static final int LEARNING_RATE_FIELD_NUMBER = 1;
    private object_detection.protos.OptimizerOuterClass.LearningRate learningRate_;
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return Whether the learningRate field is set.
     */
    @java.lang.Override
    public boolean hasLearningRate() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     * @return The learningRate.
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.LearningRate getLearningRate() {
      return learningRate_ == null ? object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
    }
    /**
     * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder getLearningRateOrBuilder() {
      return learningRate_ == null ? object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
    }

    public static final int EPSILON_FIELD_NUMBER = 2;
    private float epsilon_;
    /**
     * <pre>
     * Default value for epsilon (1e-8) matches default value in
     * tf.train.AdamOptimizer. This differs from tf2 default of 1e-7
     * in tf.keras.optimizers.Adam .
     * </pre>
     *
     * <code>optional float epsilon = 2 [default = 1e-08];</code>
     * @return Whether the epsilon field is set.
     */
    @java.lang.Override
    public boolean hasEpsilon() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <pre>
     * Default value for epsilon (1e-8) matches default value in
     * tf.train.AdamOptimizer. This differs from tf2 default of 1e-7
     * in tf.keras.optimizers.Adam .
     * </pre>
     *
     * <code>optional float epsilon = 2 [default = 1e-08];</code>
     * @return The epsilon.
     */
    @java.lang.Override
    public float getEpsilon() {
      return epsilon_;
    }

    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, getLearningRate());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeFloat(2, epsilon_);
      }
      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, getLearningRate());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(2, epsilon_);
      }
      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.OptimizerOuterClass.AdamOptimizer)) {
        return super.equals(obj);
      }
      object_detection.protos.OptimizerOuterClass.AdamOptimizer other = (object_detection.protos.OptimizerOuterClass.AdamOptimizer) obj;

      if (hasLearningRate() != other.hasLearningRate()) return false;
      if (hasLearningRate()) {
        if (!getLearningRate()
            .equals(other.getLearningRate())) return false;
      }
      if (hasEpsilon() != other.hasEpsilon()) return false;
      if (hasEpsilon()) {
        if (java.lang.Float.floatToIntBits(getEpsilon())
            != java.lang.Float.floatToIntBits(
                other.getEpsilon())) 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 (hasLearningRate()) {
        hash = (37 * hash) + LEARNING_RATE_FIELD_NUMBER;
        hash = (53 * hash) + getLearningRate().hashCode();
      }
      if (hasEpsilon()) {
        hash = (37 * hash) + EPSILON_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getEpsilon());
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.OptimizerOuterClass.AdamOptimizer parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.AdamOptimizer 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.OptimizerOuterClass.AdamOptimizer parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.AdamOptimizer 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.OptimizerOuterClass.AdamOptimizer parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.AdamOptimizer parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.OptimizerOuterClass.AdamOptimizer parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.AdamOptimizer 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.OptimizerOuterClass.AdamOptimizer parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.AdamOptimizer 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.OptimizerOuterClass.AdamOptimizer parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.AdamOptimizer 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.OptimizerOuterClass.AdamOptimizer 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>
     * Configuration message for the AdamOptimizer
     * See: https://www.tensorflow.org/api_docs/python/tf/train/AdamOptimizer
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.AdamOptimizer}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.AdamOptimizer)
        object_detection.protos.OptimizerOuterClass.AdamOptimizerOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.OptimizerOuterClass.internal_static_object_detection_protos_AdamOptimizer_descriptor;
      }

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

      // Construct using object_detection.protos.OptimizerOuterClass.AdamOptimizer.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getLearningRateFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (learningRateBuilder_ == null) {
          learningRate_ = null;
        } else {
          learningRateBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        epsilon_ = 1e-08F;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

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

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

      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.AdamOptimizer buildPartial() {
        object_detection.protos.OptimizerOuterClass.AdamOptimizer result = new object_detection.protos.OptimizerOuterClass.AdamOptimizer(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (learningRateBuilder_ == null) {
            result.learningRate_ = learningRate_;
          } else {
            result.learningRate_ = learningRateBuilder_.build();
          }
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.epsilon_ = epsilon_;
        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.OptimizerOuterClass.AdamOptimizer) {
          return mergeFrom((object_detection.protos.OptimizerOuterClass.AdamOptimizer)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.OptimizerOuterClass.AdamOptimizer other) {
        if (other == object_detection.protos.OptimizerOuterClass.AdamOptimizer.getDefaultInstance()) return this;
        if (other.hasLearningRate()) {
          mergeLearningRate(other.getLearningRate());
        }
        if (other.hasEpsilon()) {
          setEpsilon(other.getEpsilon());
        }
        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.OptimizerOuterClass.AdamOptimizer parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.OptimizerOuterClass.AdamOptimizer) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private object_detection.protos.OptimizerOuterClass.LearningRate learningRate_;
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.LearningRate, object_detection.protos.OptimizerOuterClass.LearningRate.Builder, object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder> learningRateBuilder_;
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       * @return Whether the learningRate field is set.
       */
      public boolean hasLearningRate() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       * @return The learningRate.
       */
      public object_detection.protos.OptimizerOuterClass.LearningRate getLearningRate() {
        if (learningRateBuilder_ == null) {
          return learningRate_ == null ? object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
        } else {
          return learningRateBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder setLearningRate(object_detection.protos.OptimizerOuterClass.LearningRate value) {
        if (learningRateBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          learningRate_ = value;
          onChanged();
        } else {
          learningRateBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder setLearningRate(
          object_detection.protos.OptimizerOuterClass.LearningRate.Builder builderForValue) {
        if (learningRateBuilder_ == null) {
          learningRate_ = builderForValue.build();
          onChanged();
        } else {
          learningRateBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder mergeLearningRate(object_detection.protos.OptimizerOuterClass.LearningRate value) {
        if (learningRateBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              learningRate_ != null &&
              learningRate_ != object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance()) {
            learningRate_ =
              object_detection.protos.OptimizerOuterClass.LearningRate.newBuilder(learningRate_).mergeFrom(value).buildPartial();
          } else {
            learningRate_ = value;
          }
          onChanged();
        } else {
          learningRateBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public Builder clearLearningRate() {
        if (learningRateBuilder_ == null) {
          learningRate_ = null;
          onChanged();
        } else {
          learningRateBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public object_detection.protos.OptimizerOuterClass.LearningRate.Builder getLearningRateBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getLearningRateFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      public object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder getLearningRateOrBuilder() {
        if (learningRateBuilder_ != null) {
          return learningRateBuilder_.getMessageOrBuilder();
        } else {
          return learningRate_ == null ?
              object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance() : learningRate_;
        }
      }
      /**
       * <code>optional .object_detection.protos.LearningRate learning_rate = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.LearningRate, object_detection.protos.OptimizerOuterClass.LearningRate.Builder, object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder>
          getLearningRateFieldBuilder() {
        if (learningRateBuilder_ == null) {
          learningRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.OptimizerOuterClass.LearningRate, object_detection.protos.OptimizerOuterClass.LearningRate.Builder, object_detection.protos.OptimizerOuterClass.LearningRateOrBuilder>(
                  getLearningRate(),
                  getParentForChildren(),
                  isClean());
          learningRate_ = null;
        }
        return learningRateBuilder_;
      }

      private float epsilon_ = 1e-08F;
      /**
       * <pre>
       * Default value for epsilon (1e-8) matches default value in
       * tf.train.AdamOptimizer. This differs from tf2 default of 1e-7
       * in tf.keras.optimizers.Adam .
       * </pre>
       *
       * <code>optional float epsilon = 2 [default = 1e-08];</code>
       * @return Whether the epsilon field is set.
       */
      @java.lang.Override
      public boolean hasEpsilon() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <pre>
       * Default value for epsilon (1e-8) matches default value in
       * tf.train.AdamOptimizer. This differs from tf2 default of 1e-7
       * in tf.keras.optimizers.Adam .
       * </pre>
       *
       * <code>optional float epsilon = 2 [default = 1e-08];</code>
       * @return The epsilon.
       */
      @java.lang.Override
      public float getEpsilon() {
        return epsilon_;
      }
      /**
       * <pre>
       * Default value for epsilon (1e-8) matches default value in
       * tf.train.AdamOptimizer. This differs from tf2 default of 1e-7
       * in tf.keras.optimizers.Adam .
       * </pre>
       *
       * <code>optional float epsilon = 2 [default = 1e-08];</code>
       * @param value The epsilon to set.
       * @return This builder for chaining.
       */
      public Builder setEpsilon(float value) {
        bitField0_ |= 0x00000002;
        epsilon_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Default value for epsilon (1e-8) matches default value in
       * tf.train.AdamOptimizer. This differs from tf2 default of 1e-7
       * in tf.keras.optimizers.Adam .
       * </pre>
       *
       * <code>optional float epsilon = 2 [default = 1e-08];</code>
       * @return This builder for chaining.
       */
      public Builder clearEpsilon() {
        bitField0_ = (bitField0_ & ~0x00000002);
        epsilon_ = 1e-08F;
        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.AdamOptimizer)
    }

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

    public static object_detection.protos.OptimizerOuterClass.AdamOptimizer getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

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

    /**
     * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
     * @return Whether the constantLearningRate field is set.
     */
    boolean hasConstantLearningRate();
    /**
     * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
     * @return The constantLearningRate.
     */
    object_detection.protos.OptimizerOuterClass.ConstantLearningRate getConstantLearningRate();
    /**
     * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
     */
    object_detection.protos.OptimizerOuterClass.ConstantLearningRateOrBuilder getConstantLearningRateOrBuilder();

    /**
     * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
     * @return Whether the exponentialDecayLearningRate field is set.
     */
    boolean hasExponentialDecayLearningRate();
    /**
     * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
     * @return The exponentialDecayLearningRate.
     */
    object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate getExponentialDecayLearningRate();
    /**
     * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
     */
    object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRateOrBuilder getExponentialDecayLearningRateOrBuilder();

    /**
     * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
     * @return Whether the manualStepLearningRate field is set.
     */
    boolean hasManualStepLearningRate();
    /**
     * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
     * @return The manualStepLearningRate.
     */
    object_detection.protos.OptimizerOuterClass.ManualStepLearningRate getManualStepLearningRate();
    /**
     * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
     */
    object_detection.protos.OptimizerOuterClass.ManualStepLearningRateOrBuilder getManualStepLearningRateOrBuilder();

    /**
     * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
     * @return Whether the cosineDecayLearningRate field is set.
     */
    boolean hasCosineDecayLearningRate();
    /**
     * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
     * @return The cosineDecayLearningRate.
     */
    object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate getCosineDecayLearningRate();
    /**
     * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
     */
    object_detection.protos.OptimizerOuterClass.CosineDecayLearningRateOrBuilder getCosineDecayLearningRateOrBuilder();

    public object_detection.protos.OptimizerOuterClass.LearningRate.LearningRateCase getLearningRateCase();
  }
  /**
   * <pre>
   * Configuration message for optimizer learning rate.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.LearningRate}
   */
  public static final class LearningRate extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.LearningRate)
      LearningRateOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use LearningRate.newBuilder() to construct.
    private LearningRate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private LearningRate() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private LearningRate(
        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.OptimizerOuterClass.ConstantLearningRate.Builder subBuilder = null;
              if (learningRateCase_ == 1) {
                subBuilder = ((object_detection.protos.OptimizerOuterClass.ConstantLearningRate) learningRate_).toBuilder();
              }
              learningRate_ =
                  input.readMessage(object_detection.protos.OptimizerOuterClass.ConstantLearningRate.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.OptimizerOuterClass.ConstantLearningRate) learningRate_);
                learningRate_ = subBuilder.buildPartial();
              }
              learningRateCase_ = 1;
              break;
            }
            case 18: {
              object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.Builder subBuilder = null;
              if (learningRateCase_ == 2) {
                subBuilder = ((object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) learningRate_).toBuilder();
              }
              learningRate_ =
                  input.readMessage(object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) learningRate_);
                learningRate_ = subBuilder.buildPartial();
              }
              learningRateCase_ = 2;
              break;
            }
            case 26: {
              object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.Builder subBuilder = null;
              if (learningRateCase_ == 3) {
                subBuilder = ((object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) learningRate_).toBuilder();
              }
              learningRate_ =
                  input.readMessage(object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) learningRate_);
                learningRate_ = subBuilder.buildPartial();
              }
              learningRateCase_ = 3;
              break;
            }
            case 34: {
              object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.Builder subBuilder = null;
              if (learningRateCase_ == 4) {
                subBuilder = ((object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) learningRate_).toBuilder();
              }
              learningRate_ =
                  input.readMessage(object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) learningRate_);
                learningRate_ = subBuilder.buildPartial();
              }
              learningRateCase_ = 4;
              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.OptimizerOuterClass.internal_static_object_detection_protos_LearningRate_descriptor;
    }

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

    private int bitField0_;
    private int learningRateCase_ = 0;
    private java.lang.Object learningRate_;
    public enum LearningRateCase
        implements com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      CONSTANT_LEARNING_RATE(1),
      EXPONENTIAL_DECAY_LEARNING_RATE(2),
      MANUAL_STEP_LEARNING_RATE(3),
      COSINE_DECAY_LEARNING_RATE(4),
      LEARNINGRATE_NOT_SET(0);
      private final int value;
      private LearningRateCase(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 LearningRateCase valueOf(int value) {
        return forNumber(value);
      }

      public static LearningRateCase forNumber(int value) {
        switch (value) {
          case 1: return CONSTANT_LEARNING_RATE;
          case 2: return EXPONENTIAL_DECAY_LEARNING_RATE;
          case 3: return MANUAL_STEP_LEARNING_RATE;
          case 4: return COSINE_DECAY_LEARNING_RATE;
          case 0: return LEARNINGRATE_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public LearningRateCase
    getLearningRateCase() {
      return LearningRateCase.forNumber(
          learningRateCase_);
    }

    public static final int CONSTANT_LEARNING_RATE_FIELD_NUMBER = 1;
    /**
     * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
     * @return Whether the constantLearningRate field is set.
     */
    @java.lang.Override
    public boolean hasConstantLearningRate() {
      return learningRateCase_ == 1;
    }
    /**
     * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
     * @return The constantLearningRate.
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.ConstantLearningRate getConstantLearningRate() {
      if (learningRateCase_ == 1) {
         return (object_detection.protos.OptimizerOuterClass.ConstantLearningRate) learningRate_;
      }
      return object_detection.protos.OptimizerOuterClass.ConstantLearningRate.getDefaultInstance();
    }
    /**
     * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.ConstantLearningRateOrBuilder getConstantLearningRateOrBuilder() {
      if (learningRateCase_ == 1) {
         return (object_detection.protos.OptimizerOuterClass.ConstantLearningRate) learningRate_;
      }
      return object_detection.protos.OptimizerOuterClass.ConstantLearningRate.getDefaultInstance();
    }

    public static final int EXPONENTIAL_DECAY_LEARNING_RATE_FIELD_NUMBER = 2;
    /**
     * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
     * @return Whether the exponentialDecayLearningRate field is set.
     */
    @java.lang.Override
    public boolean hasExponentialDecayLearningRate() {
      return learningRateCase_ == 2;
    }
    /**
     * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
     * @return The exponentialDecayLearningRate.
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate getExponentialDecayLearningRate() {
      if (learningRateCase_ == 2) {
         return (object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) learningRate_;
      }
      return object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.getDefaultInstance();
    }
    /**
     * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRateOrBuilder getExponentialDecayLearningRateOrBuilder() {
      if (learningRateCase_ == 2) {
         return (object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) learningRate_;
      }
      return object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.getDefaultInstance();
    }

    public static final int MANUAL_STEP_LEARNING_RATE_FIELD_NUMBER = 3;
    /**
     * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
     * @return Whether the manualStepLearningRate field is set.
     */
    @java.lang.Override
    public boolean hasManualStepLearningRate() {
      return learningRateCase_ == 3;
    }
    /**
     * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
     * @return The manualStepLearningRate.
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate getManualStepLearningRate() {
      if (learningRateCase_ == 3) {
         return (object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) learningRate_;
      }
      return object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.getDefaultInstance();
    }
    /**
     * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.ManualStepLearningRateOrBuilder getManualStepLearningRateOrBuilder() {
      if (learningRateCase_ == 3) {
         return (object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) learningRate_;
      }
      return object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.getDefaultInstance();
    }

    public static final int COSINE_DECAY_LEARNING_RATE_FIELD_NUMBER = 4;
    /**
     * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
     * @return Whether the cosineDecayLearningRate field is set.
     */
    @java.lang.Override
    public boolean hasCosineDecayLearningRate() {
      return learningRateCase_ == 4;
    }
    /**
     * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
     * @return The cosineDecayLearningRate.
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate getCosineDecayLearningRate() {
      if (learningRateCase_ == 4) {
         return (object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) learningRate_;
      }
      return object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.getDefaultInstance();
    }
    /**
     * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.CosineDecayLearningRateOrBuilder getCosineDecayLearningRateOrBuilder() {
      if (learningRateCase_ == 4) {
         return (object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) learningRate_;
      }
      return object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.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 (learningRateCase_ == 1) {
        output.writeMessage(1, (object_detection.protos.OptimizerOuterClass.ConstantLearningRate) learningRate_);
      }
      if (learningRateCase_ == 2) {
        output.writeMessage(2, (object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) learningRate_);
      }
      if (learningRateCase_ == 3) {
        output.writeMessage(3, (object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) learningRate_);
      }
      if (learningRateCase_ == 4) {
        output.writeMessage(4, (object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) learningRate_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (learningRateCase_ == 1) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, (object_detection.protos.OptimizerOuterClass.ConstantLearningRate) learningRate_);
      }
      if (learningRateCase_ == 2) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, (object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) learningRate_);
      }
      if (learningRateCase_ == 3) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, (object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) learningRate_);
      }
      if (learningRateCase_ == 4) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, (object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) learningRate_);
      }
      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.OptimizerOuterClass.LearningRate)) {
        return super.equals(obj);
      }
      object_detection.protos.OptimizerOuterClass.LearningRate other = (object_detection.protos.OptimizerOuterClass.LearningRate) obj;

      if (!getLearningRateCase().equals(other.getLearningRateCase())) return false;
      switch (learningRateCase_) {
        case 1:
          if (!getConstantLearningRate()
              .equals(other.getConstantLearningRate())) return false;
          break;
        case 2:
          if (!getExponentialDecayLearningRate()
              .equals(other.getExponentialDecayLearningRate())) return false;
          break;
        case 3:
          if (!getManualStepLearningRate()
              .equals(other.getManualStepLearningRate())) return false;
          break;
        case 4:
          if (!getCosineDecayLearningRate()
              .equals(other.getCosineDecayLearningRate())) 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 (learningRateCase_) {
        case 1:
          hash = (37 * hash) + CONSTANT_LEARNING_RATE_FIELD_NUMBER;
          hash = (53 * hash) + getConstantLearningRate().hashCode();
          break;
        case 2:
          hash = (37 * hash) + EXPONENTIAL_DECAY_LEARNING_RATE_FIELD_NUMBER;
          hash = (53 * hash) + getExponentialDecayLearningRate().hashCode();
          break;
        case 3:
          hash = (37 * hash) + MANUAL_STEP_LEARNING_RATE_FIELD_NUMBER;
          hash = (53 * hash) + getManualStepLearningRate().hashCode();
          break;
        case 4:
          hash = (37 * hash) + COSINE_DECAY_LEARNING_RATE_FIELD_NUMBER;
          hash = (53 * hash) + getCosineDecayLearningRate().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

      // Construct using object_detection.protos.OptimizerOuterClass.LearningRate.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();
        learningRateCase_ = 0;
        learningRate_ = null;
        return this;
      }

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

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

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

      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.LearningRate buildPartial() {
        object_detection.protos.OptimizerOuterClass.LearningRate result = new object_detection.protos.OptimizerOuterClass.LearningRate(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (learningRateCase_ == 1) {
          if (constantLearningRateBuilder_ == null) {
            result.learningRate_ = learningRate_;
          } else {
            result.learningRate_ = constantLearningRateBuilder_.build();
          }
        }
        if (learningRateCase_ == 2) {
          if (exponentialDecayLearningRateBuilder_ == null) {
            result.learningRate_ = learningRate_;
          } else {
            result.learningRate_ = exponentialDecayLearningRateBuilder_.build();
          }
        }
        if (learningRateCase_ == 3) {
          if (manualStepLearningRateBuilder_ == null) {
            result.learningRate_ = learningRate_;
          } else {
            result.learningRate_ = manualStepLearningRateBuilder_.build();
          }
        }
        if (learningRateCase_ == 4) {
          if (cosineDecayLearningRateBuilder_ == null) {
            result.learningRate_ = learningRate_;
          } else {
            result.learningRate_ = cosineDecayLearningRateBuilder_.build();
          }
        }
        result.bitField0_ = to_bitField0_;
        result.learningRateCase_ = learningRateCase_;
        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.OptimizerOuterClass.LearningRate) {
          return mergeFrom((object_detection.protos.OptimizerOuterClass.LearningRate)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.OptimizerOuterClass.LearningRate other) {
        if (other == object_detection.protos.OptimizerOuterClass.LearningRate.getDefaultInstance()) return this;
        switch (other.getLearningRateCase()) {
          case CONSTANT_LEARNING_RATE: {
            mergeConstantLearningRate(other.getConstantLearningRate());
            break;
          }
          case EXPONENTIAL_DECAY_LEARNING_RATE: {
            mergeExponentialDecayLearningRate(other.getExponentialDecayLearningRate());
            break;
          }
          case MANUAL_STEP_LEARNING_RATE: {
            mergeManualStepLearningRate(other.getManualStepLearningRate());
            break;
          }
          case COSINE_DECAY_LEARNING_RATE: {
            mergeCosineDecayLearningRate(other.getCosineDecayLearningRate());
            break;
          }
          case LEARNINGRATE_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.OptimizerOuterClass.LearningRate parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.OptimizerOuterClass.LearningRate) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int learningRateCase_ = 0;
      private java.lang.Object learningRate_;
      public LearningRateCase
          getLearningRateCase() {
        return LearningRateCase.forNumber(
            learningRateCase_);
      }

      public Builder clearLearningRate() {
        learningRateCase_ = 0;
        learningRate_ = null;
        onChanged();
        return this;
      }

      private int bitField0_;

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.ConstantLearningRate, object_detection.protos.OptimizerOuterClass.ConstantLearningRate.Builder, object_detection.protos.OptimizerOuterClass.ConstantLearningRateOrBuilder> constantLearningRateBuilder_;
      /**
       * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
       * @return Whether the constantLearningRate field is set.
       */
      @java.lang.Override
      public boolean hasConstantLearningRate() {
        return learningRateCase_ == 1;
      }
      /**
       * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
       * @return The constantLearningRate.
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.ConstantLearningRate getConstantLearningRate() {
        if (constantLearningRateBuilder_ == null) {
          if (learningRateCase_ == 1) {
            return (object_detection.protos.OptimizerOuterClass.ConstantLearningRate) learningRate_;
          }
          return object_detection.protos.OptimizerOuterClass.ConstantLearningRate.getDefaultInstance();
        } else {
          if (learningRateCase_ == 1) {
            return constantLearningRateBuilder_.getMessage();
          }
          return object_detection.protos.OptimizerOuterClass.ConstantLearningRate.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
       */
      public Builder setConstantLearningRate(object_detection.protos.OptimizerOuterClass.ConstantLearningRate value) {
        if (constantLearningRateBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          learningRate_ = value;
          onChanged();
        } else {
          constantLearningRateBuilder_.setMessage(value);
        }
        learningRateCase_ = 1;
        return this;
      }
      /**
       * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
       */
      public Builder setConstantLearningRate(
          object_detection.protos.OptimizerOuterClass.ConstantLearningRate.Builder builderForValue) {
        if (constantLearningRateBuilder_ == null) {
          learningRate_ = builderForValue.build();
          onChanged();
        } else {
          constantLearningRateBuilder_.setMessage(builderForValue.build());
        }
        learningRateCase_ = 1;
        return this;
      }
      /**
       * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
       */
      public Builder mergeConstantLearningRate(object_detection.protos.OptimizerOuterClass.ConstantLearningRate value) {
        if (constantLearningRateBuilder_ == null) {
          if (learningRateCase_ == 1 &&
              learningRate_ != object_detection.protos.OptimizerOuterClass.ConstantLearningRate.getDefaultInstance()) {
            learningRate_ = object_detection.protos.OptimizerOuterClass.ConstantLearningRate.newBuilder((object_detection.protos.OptimizerOuterClass.ConstantLearningRate) learningRate_)
                .mergeFrom(value).buildPartial();
          } else {
            learningRate_ = value;
          }
          onChanged();
        } else {
          if (learningRateCase_ == 1) {
            constantLearningRateBuilder_.mergeFrom(value);
          }
          constantLearningRateBuilder_.setMessage(value);
        }
        learningRateCase_ = 1;
        return this;
      }
      /**
       * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
       */
      public Builder clearConstantLearningRate() {
        if (constantLearningRateBuilder_ == null) {
          if (learningRateCase_ == 1) {
            learningRateCase_ = 0;
            learningRate_ = null;
            onChanged();
          }
        } else {
          if (learningRateCase_ == 1) {
            learningRateCase_ = 0;
            learningRate_ = null;
          }
          constantLearningRateBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
       */
      public object_detection.protos.OptimizerOuterClass.ConstantLearningRate.Builder getConstantLearningRateBuilder() {
        return getConstantLearningRateFieldBuilder().getBuilder();
      }
      /**
       * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.ConstantLearningRateOrBuilder getConstantLearningRateOrBuilder() {
        if ((learningRateCase_ == 1) && (constantLearningRateBuilder_ != null)) {
          return constantLearningRateBuilder_.getMessageOrBuilder();
        } else {
          if (learningRateCase_ == 1) {
            return (object_detection.protos.OptimizerOuterClass.ConstantLearningRate) learningRate_;
          }
          return object_detection.protos.OptimizerOuterClass.ConstantLearningRate.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.ConstantLearningRate constant_learning_rate = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.ConstantLearningRate, object_detection.protos.OptimizerOuterClass.ConstantLearningRate.Builder, object_detection.protos.OptimizerOuterClass.ConstantLearningRateOrBuilder>
          getConstantLearningRateFieldBuilder() {
        if (constantLearningRateBuilder_ == null) {
          if (!(learningRateCase_ == 1)) {
            learningRate_ = object_detection.protos.OptimizerOuterClass.ConstantLearningRate.getDefaultInstance();
          }
          constantLearningRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.OptimizerOuterClass.ConstantLearningRate, object_detection.protos.OptimizerOuterClass.ConstantLearningRate.Builder, object_detection.protos.OptimizerOuterClass.ConstantLearningRateOrBuilder>(
                  (object_detection.protos.OptimizerOuterClass.ConstantLearningRate) learningRate_,
                  getParentForChildren(),
                  isClean());
          learningRate_ = null;
        }
        learningRateCase_ = 1;
        onChanged();;
        return constantLearningRateBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate, object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.Builder, object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRateOrBuilder> exponentialDecayLearningRateBuilder_;
      /**
       * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
       * @return Whether the exponentialDecayLearningRate field is set.
       */
      @java.lang.Override
      public boolean hasExponentialDecayLearningRate() {
        return learningRateCase_ == 2;
      }
      /**
       * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
       * @return The exponentialDecayLearningRate.
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate getExponentialDecayLearningRate() {
        if (exponentialDecayLearningRateBuilder_ == null) {
          if (learningRateCase_ == 2) {
            return (object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) learningRate_;
          }
          return object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.getDefaultInstance();
        } else {
          if (learningRateCase_ == 2) {
            return exponentialDecayLearningRateBuilder_.getMessage();
          }
          return object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
       */
      public Builder setExponentialDecayLearningRate(object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate value) {
        if (exponentialDecayLearningRateBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          learningRate_ = value;
          onChanged();
        } else {
          exponentialDecayLearningRateBuilder_.setMessage(value);
        }
        learningRateCase_ = 2;
        return this;
      }
      /**
       * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
       */
      public Builder setExponentialDecayLearningRate(
          object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.Builder builderForValue) {
        if (exponentialDecayLearningRateBuilder_ == null) {
          learningRate_ = builderForValue.build();
          onChanged();
        } else {
          exponentialDecayLearningRateBuilder_.setMessage(builderForValue.build());
        }
        learningRateCase_ = 2;
        return this;
      }
      /**
       * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
       */
      public Builder mergeExponentialDecayLearningRate(object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate value) {
        if (exponentialDecayLearningRateBuilder_ == null) {
          if (learningRateCase_ == 2 &&
              learningRate_ != object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.getDefaultInstance()) {
            learningRate_ = object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.newBuilder((object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) learningRate_)
                .mergeFrom(value).buildPartial();
          } else {
            learningRate_ = value;
          }
          onChanged();
        } else {
          if (learningRateCase_ == 2) {
            exponentialDecayLearningRateBuilder_.mergeFrom(value);
          }
          exponentialDecayLearningRateBuilder_.setMessage(value);
        }
        learningRateCase_ = 2;
        return this;
      }
      /**
       * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
       */
      public Builder clearExponentialDecayLearningRate() {
        if (exponentialDecayLearningRateBuilder_ == null) {
          if (learningRateCase_ == 2) {
            learningRateCase_ = 0;
            learningRate_ = null;
            onChanged();
          }
        } else {
          if (learningRateCase_ == 2) {
            learningRateCase_ = 0;
            learningRate_ = null;
          }
          exponentialDecayLearningRateBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
       */
      public object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.Builder getExponentialDecayLearningRateBuilder() {
        return getExponentialDecayLearningRateFieldBuilder().getBuilder();
      }
      /**
       * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRateOrBuilder getExponentialDecayLearningRateOrBuilder() {
        if ((learningRateCase_ == 2) && (exponentialDecayLearningRateBuilder_ != null)) {
          return exponentialDecayLearningRateBuilder_.getMessageOrBuilder();
        } else {
          if (learningRateCase_ == 2) {
            return (object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) learningRate_;
          }
          return object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.ExponentialDecayLearningRate exponential_decay_learning_rate = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate, object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.Builder, object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRateOrBuilder>
          getExponentialDecayLearningRateFieldBuilder() {
        if (exponentialDecayLearningRateBuilder_ == null) {
          if (!(learningRateCase_ == 2)) {
            learningRate_ = object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.getDefaultInstance();
          }
          exponentialDecayLearningRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate, object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.Builder, object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRateOrBuilder>(
                  (object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) learningRate_,
                  getParentForChildren(),
                  isClean());
          learningRate_ = null;
        }
        learningRateCase_ = 2;
        onChanged();;
        return exponentialDecayLearningRateBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.ManualStepLearningRate, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.Builder, object_detection.protos.OptimizerOuterClass.ManualStepLearningRateOrBuilder> manualStepLearningRateBuilder_;
      /**
       * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
       * @return Whether the manualStepLearningRate field is set.
       */
      @java.lang.Override
      public boolean hasManualStepLearningRate() {
        return learningRateCase_ == 3;
      }
      /**
       * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
       * @return The manualStepLearningRate.
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate getManualStepLearningRate() {
        if (manualStepLearningRateBuilder_ == null) {
          if (learningRateCase_ == 3) {
            return (object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) learningRate_;
          }
          return object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.getDefaultInstance();
        } else {
          if (learningRateCase_ == 3) {
            return manualStepLearningRateBuilder_.getMessage();
          }
          return object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
       */
      public Builder setManualStepLearningRate(object_detection.protos.OptimizerOuterClass.ManualStepLearningRate value) {
        if (manualStepLearningRateBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          learningRate_ = value;
          onChanged();
        } else {
          manualStepLearningRateBuilder_.setMessage(value);
        }
        learningRateCase_ = 3;
        return this;
      }
      /**
       * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
       */
      public Builder setManualStepLearningRate(
          object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.Builder builderForValue) {
        if (manualStepLearningRateBuilder_ == null) {
          learningRate_ = builderForValue.build();
          onChanged();
        } else {
          manualStepLearningRateBuilder_.setMessage(builderForValue.build());
        }
        learningRateCase_ = 3;
        return this;
      }
      /**
       * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
       */
      public Builder mergeManualStepLearningRate(object_detection.protos.OptimizerOuterClass.ManualStepLearningRate value) {
        if (manualStepLearningRateBuilder_ == null) {
          if (learningRateCase_ == 3 &&
              learningRate_ != object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.getDefaultInstance()) {
            learningRate_ = object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.newBuilder((object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) learningRate_)
                .mergeFrom(value).buildPartial();
          } else {
            learningRate_ = value;
          }
          onChanged();
        } else {
          if (learningRateCase_ == 3) {
            manualStepLearningRateBuilder_.mergeFrom(value);
          }
          manualStepLearningRateBuilder_.setMessage(value);
        }
        learningRateCase_ = 3;
        return this;
      }
      /**
       * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
       */
      public Builder clearManualStepLearningRate() {
        if (manualStepLearningRateBuilder_ == null) {
          if (learningRateCase_ == 3) {
            learningRateCase_ = 0;
            learningRate_ = null;
            onChanged();
          }
        } else {
          if (learningRateCase_ == 3) {
            learningRateCase_ = 0;
            learningRate_ = null;
          }
          manualStepLearningRateBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
       */
      public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.Builder getManualStepLearningRateBuilder() {
        return getManualStepLearningRateFieldBuilder().getBuilder();
      }
      /**
       * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.ManualStepLearningRateOrBuilder getManualStepLearningRateOrBuilder() {
        if ((learningRateCase_ == 3) && (manualStepLearningRateBuilder_ != null)) {
          return manualStepLearningRateBuilder_.getMessageOrBuilder();
        } else {
          if (learningRateCase_ == 3) {
            return (object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) learningRate_;
          }
          return object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.ManualStepLearningRate manual_step_learning_rate = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.ManualStepLearningRate, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.Builder, object_detection.protos.OptimizerOuterClass.ManualStepLearningRateOrBuilder>
          getManualStepLearningRateFieldBuilder() {
        if (manualStepLearningRateBuilder_ == null) {
          if (!(learningRateCase_ == 3)) {
            learningRate_ = object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.getDefaultInstance();
          }
          manualStepLearningRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.OptimizerOuterClass.ManualStepLearningRate, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.Builder, object_detection.protos.OptimizerOuterClass.ManualStepLearningRateOrBuilder>(
                  (object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) learningRate_,
                  getParentForChildren(),
                  isClean());
          learningRate_ = null;
        }
        learningRateCase_ = 3;
        onChanged();;
        return manualStepLearningRateBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate, object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.Builder, object_detection.protos.OptimizerOuterClass.CosineDecayLearningRateOrBuilder> cosineDecayLearningRateBuilder_;
      /**
       * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
       * @return Whether the cosineDecayLearningRate field is set.
       */
      @java.lang.Override
      public boolean hasCosineDecayLearningRate() {
        return learningRateCase_ == 4;
      }
      /**
       * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
       * @return The cosineDecayLearningRate.
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate getCosineDecayLearningRate() {
        if (cosineDecayLearningRateBuilder_ == null) {
          if (learningRateCase_ == 4) {
            return (object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) learningRate_;
          }
          return object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.getDefaultInstance();
        } else {
          if (learningRateCase_ == 4) {
            return cosineDecayLearningRateBuilder_.getMessage();
          }
          return object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
       */
      public Builder setCosineDecayLearningRate(object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate value) {
        if (cosineDecayLearningRateBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          learningRate_ = value;
          onChanged();
        } else {
          cosineDecayLearningRateBuilder_.setMessage(value);
        }
        learningRateCase_ = 4;
        return this;
      }
      /**
       * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
       */
      public Builder setCosineDecayLearningRate(
          object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.Builder builderForValue) {
        if (cosineDecayLearningRateBuilder_ == null) {
          learningRate_ = builderForValue.build();
          onChanged();
        } else {
          cosineDecayLearningRateBuilder_.setMessage(builderForValue.build());
        }
        learningRateCase_ = 4;
        return this;
      }
      /**
       * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
       */
      public Builder mergeCosineDecayLearningRate(object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate value) {
        if (cosineDecayLearningRateBuilder_ == null) {
          if (learningRateCase_ == 4 &&
              learningRate_ != object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.getDefaultInstance()) {
            learningRate_ = object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.newBuilder((object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) learningRate_)
                .mergeFrom(value).buildPartial();
          } else {
            learningRate_ = value;
          }
          onChanged();
        } else {
          if (learningRateCase_ == 4) {
            cosineDecayLearningRateBuilder_.mergeFrom(value);
          }
          cosineDecayLearningRateBuilder_.setMessage(value);
        }
        learningRateCase_ = 4;
        return this;
      }
      /**
       * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
       */
      public Builder clearCosineDecayLearningRate() {
        if (cosineDecayLearningRateBuilder_ == null) {
          if (learningRateCase_ == 4) {
            learningRateCase_ = 0;
            learningRate_ = null;
            onChanged();
          }
        } else {
          if (learningRateCase_ == 4) {
            learningRateCase_ = 0;
            learningRate_ = null;
          }
          cosineDecayLearningRateBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
       */
      public object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.Builder getCosineDecayLearningRateBuilder() {
        return getCosineDecayLearningRateFieldBuilder().getBuilder();
      }
      /**
       * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
       */
      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.CosineDecayLearningRateOrBuilder getCosineDecayLearningRateOrBuilder() {
        if ((learningRateCase_ == 4) && (cosineDecayLearningRateBuilder_ != null)) {
          return cosineDecayLearningRateBuilder_.getMessageOrBuilder();
        } else {
          if (learningRateCase_ == 4) {
            return (object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) learningRate_;
          }
          return object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.getDefaultInstance();
        }
      }
      /**
       * <code>.object_detection.protos.CosineDecayLearningRate cosine_decay_learning_rate = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate, object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.Builder, object_detection.protos.OptimizerOuterClass.CosineDecayLearningRateOrBuilder>
          getCosineDecayLearningRateFieldBuilder() {
        if (cosineDecayLearningRateBuilder_ == null) {
          if (!(learningRateCase_ == 4)) {
            learningRate_ = object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.getDefaultInstance();
          }
          cosineDecayLearningRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate, object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.Builder, object_detection.protos.OptimizerOuterClass.CosineDecayLearningRateOrBuilder>(
                  (object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) learningRate_,
                  getParentForChildren(),
                  isClean());
          learningRate_ = null;
        }
        learningRateCase_ = 4;
        onChanged();;
        return cosineDecayLearningRateBuilder_;
      }
      @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.LearningRate)
    }

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

    public static object_detection.protos.OptimizerOuterClass.LearningRate getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

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

    /**
     * <code>optional float learning_rate = 1 [default = 0.002];</code>
     * @return Whether the learningRate field is set.
     */
    boolean hasLearningRate();
    /**
     * <code>optional float learning_rate = 1 [default = 0.002];</code>
     * @return The learningRate.
     */
    float getLearningRate();
  }
  /**
   * <pre>
   * Configuration message for a constant learning rate.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.ConstantLearningRate}
   */
  public static final class ConstantLearningRate extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.ConstantLearningRate)
      ConstantLearningRateOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ConstantLearningRate.newBuilder() to construct.
    private ConstantLearningRate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ConstantLearningRate() {
      learningRate_ = 0.002F;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ConstantLearningRate(
        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;
              learningRate_ = 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.OptimizerOuterClass.internal_static_object_detection_protos_ConstantLearningRate_descriptor;
    }

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

    private int bitField0_;
    public static final int LEARNING_RATE_FIELD_NUMBER = 1;
    private float learningRate_;
    /**
     * <code>optional float learning_rate = 1 [default = 0.002];</code>
     * @return Whether the learningRate field is set.
     */
    @java.lang.Override
    public boolean hasLearningRate() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional float learning_rate = 1 [default = 0.002];</code>
     * @return The learningRate.
     */
    @java.lang.Override
    public float getLearningRate() {
      return learningRate_;
    }

    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, learningRate_);
      }
      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, learningRate_);
      }
      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.OptimizerOuterClass.ConstantLearningRate)) {
        return super.equals(obj);
      }
      object_detection.protos.OptimizerOuterClass.ConstantLearningRate other = (object_detection.protos.OptimizerOuterClass.ConstantLearningRate) obj;

      if (hasLearningRate() != other.hasLearningRate()) return false;
      if (hasLearningRate()) {
        if (java.lang.Float.floatToIntBits(getLearningRate())
            != java.lang.Float.floatToIntBits(
                other.getLearningRate())) 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 (hasLearningRate()) {
        hash = (37 * hash) + LEARNING_RATE_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getLearningRate());
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.OptimizerOuterClass.ConstantLearningRate parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.ConstantLearningRate 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.OptimizerOuterClass.ConstantLearningRate parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.ConstantLearningRate 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.OptimizerOuterClass.ConstantLearningRate parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.ConstantLearningRate parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.OptimizerOuterClass.ConstantLearningRate parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.ConstantLearningRate 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.OptimizerOuterClass.ConstantLearningRate parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.ConstantLearningRate 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.OptimizerOuterClass.ConstantLearningRate parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.ConstantLearningRate 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.OptimizerOuterClass.ConstantLearningRate 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>
     * Configuration message for a constant learning rate.
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.ConstantLearningRate}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.ConstantLearningRate)
        object_detection.protos.OptimizerOuterClass.ConstantLearningRateOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.OptimizerOuterClass.internal_static_object_detection_protos_ConstantLearningRate_descriptor;
      }

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

      // Construct using object_detection.protos.OptimizerOuterClass.ConstantLearningRate.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();
        learningRate_ = 0.002F;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

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

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

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

      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.ConstantLearningRate buildPartial() {
        object_detection.protos.OptimizerOuterClass.ConstantLearningRate result = new object_detection.protos.OptimizerOuterClass.ConstantLearningRate(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.learningRate_ = learningRate_;
        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.OptimizerOuterClass.ConstantLearningRate) {
          return mergeFrom((object_detection.protos.OptimizerOuterClass.ConstantLearningRate)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

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

      private float learningRate_ = 0.002F;
      /**
       * <code>optional float learning_rate = 1 [default = 0.002];</code>
       * @return Whether the learningRate field is set.
       */
      @java.lang.Override
      public boolean hasLearningRate() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional float learning_rate = 1 [default = 0.002];</code>
       * @return The learningRate.
       */
      @java.lang.Override
      public float getLearningRate() {
        return learningRate_;
      }
      /**
       * <code>optional float learning_rate = 1 [default = 0.002];</code>
       * @param value The learningRate to set.
       * @return This builder for chaining.
       */
      public Builder setLearningRate(float value) {
        bitField0_ |= 0x00000001;
        learningRate_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float learning_rate = 1 [default = 0.002];</code>
       * @return This builder for chaining.
       */
      public Builder clearLearningRate() {
        bitField0_ = (bitField0_ & ~0x00000001);
        learningRate_ = 0.002F;
        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.ConstantLearningRate)
    }

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

    public static object_detection.protos.OptimizerOuterClass.ConstantLearningRate getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

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

    /**
     * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
     * @return Whether the initialLearningRate field is set.
     */
    boolean hasInitialLearningRate();
    /**
     * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
     * @return The initialLearningRate.
     */
    float getInitialLearningRate();

    /**
     * <code>optional uint32 decay_steps = 2 [default = 4000000];</code>
     * @return Whether the decaySteps field is set.
     */
    boolean hasDecaySteps();
    /**
     * <code>optional uint32 decay_steps = 2 [default = 4000000];</code>
     * @return The decaySteps.
     */
    int getDecaySteps();

    /**
     * <code>optional float decay_factor = 3 [default = 0.95];</code>
     * @return Whether the decayFactor field is set.
     */
    boolean hasDecayFactor();
    /**
     * <code>optional float decay_factor = 3 [default = 0.95];</code>
     * @return The decayFactor.
     */
    float getDecayFactor();

    /**
     * <code>optional bool staircase = 4 [default = true];</code>
     * @return Whether the staircase field is set.
     */
    boolean hasStaircase();
    /**
     * <code>optional bool staircase = 4 [default = true];</code>
     * @return The staircase.
     */
    boolean getStaircase();

    /**
     * <code>optional float burnin_learning_rate = 5 [default = 0];</code>
     * @return Whether the burninLearningRate field is set.
     */
    boolean hasBurninLearningRate();
    /**
     * <code>optional float burnin_learning_rate = 5 [default = 0];</code>
     * @return The burninLearningRate.
     */
    float getBurninLearningRate();

    /**
     * <code>optional uint32 burnin_steps = 6 [default = 0];</code>
     * @return Whether the burninSteps field is set.
     */
    boolean hasBurninSteps();
    /**
     * <code>optional uint32 burnin_steps = 6 [default = 0];</code>
     * @return The burninSteps.
     */
    int getBurninSteps();

    /**
     * <code>optional float min_learning_rate = 7 [default = 0];</code>
     * @return Whether the minLearningRate field is set.
     */
    boolean hasMinLearningRate();
    /**
     * <code>optional float min_learning_rate = 7 [default = 0];</code>
     * @return The minLearningRate.
     */
    float getMinLearningRate();
  }
  /**
   * <pre>
   * Configuration message for an exponentially decaying learning rate.
   * See https://www.tensorflow.org/versions/master/api_docs/python/train/ &#92;
   *     decaying_the_learning_rate#exponential_decay
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.ExponentialDecayLearningRate}
   */
  public static final class ExponentialDecayLearningRate extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.ExponentialDecayLearningRate)
      ExponentialDecayLearningRateOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ExponentialDecayLearningRate.newBuilder() to construct.
    private ExponentialDecayLearningRate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ExponentialDecayLearningRate() {
      initialLearningRate_ = 0.002F;
      decaySteps_ = 4000000;
      decayFactor_ = 0.95F;
      staircase_ = true;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ExponentialDecayLearningRate(
        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;
              initialLearningRate_ = input.readFloat();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              decaySteps_ = input.readUInt32();
              break;
            }
            case 29: {
              bitField0_ |= 0x00000004;
              decayFactor_ = input.readFloat();
              break;
            }
            case 32: {
              bitField0_ |= 0x00000008;
              staircase_ = input.readBool();
              break;
            }
            case 45: {
              bitField0_ |= 0x00000010;
              burninLearningRate_ = input.readFloat();
              break;
            }
            case 48: {
              bitField0_ |= 0x00000020;
              burninSteps_ = input.readUInt32();
              break;
            }
            case 61: {
              bitField0_ |= 0x00000040;
              minLearningRate_ = 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.OptimizerOuterClass.internal_static_object_detection_protos_ExponentialDecayLearningRate_descriptor;
    }

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

    private int bitField0_;
    public static final int INITIAL_LEARNING_RATE_FIELD_NUMBER = 1;
    private float initialLearningRate_;
    /**
     * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
     * @return Whether the initialLearningRate field is set.
     */
    @java.lang.Override
    public boolean hasInitialLearningRate() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
     * @return The initialLearningRate.
     */
    @java.lang.Override
    public float getInitialLearningRate() {
      return initialLearningRate_;
    }

    public static final int DECAY_STEPS_FIELD_NUMBER = 2;
    private int decaySteps_;
    /**
     * <code>optional uint32 decay_steps = 2 [default = 4000000];</code>
     * @return Whether the decaySteps field is set.
     */
    @java.lang.Override
    public boolean hasDecaySteps() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional uint32 decay_steps = 2 [default = 4000000];</code>
     * @return The decaySteps.
     */
    @java.lang.Override
    public int getDecaySteps() {
      return decaySteps_;
    }

    public static final int DECAY_FACTOR_FIELD_NUMBER = 3;
    private float decayFactor_;
    /**
     * <code>optional float decay_factor = 3 [default = 0.95];</code>
     * @return Whether the decayFactor field is set.
     */
    @java.lang.Override
    public boolean hasDecayFactor() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional float decay_factor = 3 [default = 0.95];</code>
     * @return The decayFactor.
     */
    @java.lang.Override
    public float getDecayFactor() {
      return decayFactor_;
    }

    public static final int STAIRCASE_FIELD_NUMBER = 4;
    private boolean staircase_;
    /**
     * <code>optional bool staircase = 4 [default = true];</code>
     * @return Whether the staircase field is set.
     */
    @java.lang.Override
    public boolean hasStaircase() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <code>optional bool staircase = 4 [default = true];</code>
     * @return The staircase.
     */
    @java.lang.Override
    public boolean getStaircase() {
      return staircase_;
    }

    public static final int BURNIN_LEARNING_RATE_FIELD_NUMBER = 5;
    private float burninLearningRate_;
    /**
     * <code>optional float burnin_learning_rate = 5 [default = 0];</code>
     * @return Whether the burninLearningRate field is set.
     */
    @java.lang.Override
    public boolean hasBurninLearningRate() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * <code>optional float burnin_learning_rate = 5 [default = 0];</code>
     * @return The burninLearningRate.
     */
    @java.lang.Override
    public float getBurninLearningRate() {
      return burninLearningRate_;
    }

    public static final int BURNIN_STEPS_FIELD_NUMBER = 6;
    private int burninSteps_;
    /**
     * <code>optional uint32 burnin_steps = 6 [default = 0];</code>
     * @return Whether the burninSteps field is set.
     */
    @java.lang.Override
    public boolean hasBurninSteps() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * <code>optional uint32 burnin_steps = 6 [default = 0];</code>
     * @return The burninSteps.
     */
    @java.lang.Override
    public int getBurninSteps() {
      return burninSteps_;
    }

    public static final int MIN_LEARNING_RATE_FIELD_NUMBER = 7;
    private float minLearningRate_;
    /**
     * <code>optional float min_learning_rate = 7 [default = 0];</code>
     * @return Whether the minLearningRate field is set.
     */
    @java.lang.Override
    public boolean hasMinLearningRate() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * <code>optional float min_learning_rate = 7 [default = 0];</code>
     * @return The minLearningRate.
     */
    @java.lang.Override
    public float getMinLearningRate() {
      return minLearningRate_;
    }

    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, initialLearningRate_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeUInt32(2, decaySteps_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeFloat(3, decayFactor_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        output.writeBool(4, staircase_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        output.writeFloat(5, burninLearningRate_);
      }
      if (((bitField0_ & 0x00000020) != 0)) {
        output.writeUInt32(6, burninSteps_);
      }
      if (((bitField0_ & 0x00000040) != 0)) {
        output.writeFloat(7, minLearningRate_);
      }
      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, initialLearningRate_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, decaySteps_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(3, decayFactor_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(4, staircase_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(5, burninLearningRate_);
      }
      if (((bitField0_ & 0x00000020) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(6, burninSteps_);
      }
      if (((bitField0_ & 0x00000040) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(7, minLearningRate_);
      }
      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.OptimizerOuterClass.ExponentialDecayLearningRate)) {
        return super.equals(obj);
      }
      object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate other = (object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) obj;

      if (hasInitialLearningRate() != other.hasInitialLearningRate()) return false;
      if (hasInitialLearningRate()) {
        if (java.lang.Float.floatToIntBits(getInitialLearningRate())
            != java.lang.Float.floatToIntBits(
                other.getInitialLearningRate())) return false;
      }
      if (hasDecaySteps() != other.hasDecaySteps()) return false;
      if (hasDecaySteps()) {
        if (getDecaySteps()
            != other.getDecaySteps()) return false;
      }
      if (hasDecayFactor() != other.hasDecayFactor()) return false;
      if (hasDecayFactor()) {
        if (java.lang.Float.floatToIntBits(getDecayFactor())
            != java.lang.Float.floatToIntBits(
                other.getDecayFactor())) return false;
      }
      if (hasStaircase() != other.hasStaircase()) return false;
      if (hasStaircase()) {
        if (getStaircase()
            != other.getStaircase()) return false;
      }
      if (hasBurninLearningRate() != other.hasBurninLearningRate()) return false;
      if (hasBurninLearningRate()) {
        if (java.lang.Float.floatToIntBits(getBurninLearningRate())
            != java.lang.Float.floatToIntBits(
                other.getBurninLearningRate())) return false;
      }
      if (hasBurninSteps() != other.hasBurninSteps()) return false;
      if (hasBurninSteps()) {
        if (getBurninSteps()
            != other.getBurninSteps()) return false;
      }
      if (hasMinLearningRate() != other.hasMinLearningRate()) return false;
      if (hasMinLearningRate()) {
        if (java.lang.Float.floatToIntBits(getMinLearningRate())
            != java.lang.Float.floatToIntBits(
                other.getMinLearningRate())) 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 (hasInitialLearningRate()) {
        hash = (37 * hash) + INITIAL_LEARNING_RATE_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getInitialLearningRate());
      }
      if (hasDecaySteps()) {
        hash = (37 * hash) + DECAY_STEPS_FIELD_NUMBER;
        hash = (53 * hash) + getDecaySteps();
      }
      if (hasDecayFactor()) {
        hash = (37 * hash) + DECAY_FACTOR_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getDecayFactor());
      }
      if (hasStaircase()) {
        hash = (37 * hash) + STAIRCASE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            getStaircase());
      }
      if (hasBurninLearningRate()) {
        hash = (37 * hash) + BURNIN_LEARNING_RATE_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getBurninLearningRate());
      }
      if (hasBurninSteps()) {
        hash = (37 * hash) + BURNIN_STEPS_FIELD_NUMBER;
        hash = (53 * hash) + getBurninSteps();
      }
      if (hasMinLearningRate()) {
        hash = (37 * hash) + MIN_LEARNING_RATE_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getMinLearningRate());
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate 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.OptimizerOuterClass.ExponentialDecayLearningRate parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate 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.OptimizerOuterClass.ExponentialDecayLearningRate parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate 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.OptimizerOuterClass.ExponentialDecayLearningRate parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate 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.OptimizerOuterClass.ExponentialDecayLearningRate parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate 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.OptimizerOuterClass.ExponentialDecayLearningRate 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>
     * Configuration message for an exponentially decaying learning rate.
     * See https://www.tensorflow.org/versions/master/api_docs/python/train/ &#92;
     *     decaying_the_learning_rate#exponential_decay
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.ExponentialDecayLearningRate}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.ExponentialDecayLearningRate)
        object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRateOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.OptimizerOuterClass.internal_static_object_detection_protos_ExponentialDecayLearningRate_descriptor;
      }

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

      // Construct using object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.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();
        initialLearningRate_ = 0.002F;
        bitField0_ = (bitField0_ & ~0x00000001);
        decaySteps_ = 4000000;
        bitField0_ = (bitField0_ & ~0x00000002);
        decayFactor_ = 0.95F;
        bitField0_ = (bitField0_ & ~0x00000004);
        staircase_ = true;
        bitField0_ = (bitField0_ & ~0x00000008);
        burninLearningRate_ = 0F;
        bitField0_ = (bitField0_ & ~0x00000010);
        burninSteps_ = 0;
        bitField0_ = (bitField0_ & ~0x00000020);
        minLearningRate_ = 0F;
        bitField0_ = (bitField0_ & ~0x00000040);
        return this;
      }

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

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

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

      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate buildPartial() {
        object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate result = new object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.initialLearningRate_ = initialLearningRate_;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.decaySteps_ = decaySteps_;
        if (((from_bitField0_ & 0x00000004) != 0)) {
          to_bitField0_ |= 0x00000004;
        }
        result.decayFactor_ = decayFactor_;
        if (((from_bitField0_ & 0x00000008) != 0)) {
          to_bitField0_ |= 0x00000008;
        }
        result.staircase_ = staircase_;
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.burninLearningRate_ = burninLearningRate_;
          to_bitField0_ |= 0x00000010;
        }
        if (((from_bitField0_ & 0x00000020) != 0)) {
          result.burninSteps_ = burninSteps_;
          to_bitField0_ |= 0x00000020;
        }
        if (((from_bitField0_ & 0x00000040) != 0)) {
          result.minLearningRate_ = minLearningRate_;
          to_bitField0_ |= 0x00000040;
        }
        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.OptimizerOuterClass.ExponentialDecayLearningRate) {
          return mergeFrom((object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate other) {
        if (other == object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate.getDefaultInstance()) return this;
        if (other.hasInitialLearningRate()) {
          setInitialLearningRate(other.getInitialLearningRate());
        }
        if (other.hasDecaySteps()) {
          setDecaySteps(other.getDecaySteps());
        }
        if (other.hasDecayFactor()) {
          setDecayFactor(other.getDecayFactor());
        }
        if (other.hasStaircase()) {
          setStaircase(other.getStaircase());
        }
        if (other.hasBurninLearningRate()) {
          setBurninLearningRate(other.getBurninLearningRate());
        }
        if (other.hasBurninSteps()) {
          setBurninSteps(other.getBurninSteps());
        }
        if (other.hasMinLearningRate()) {
          setMinLearningRate(other.getMinLearningRate());
        }
        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.OptimizerOuterClass.ExponentialDecayLearningRate parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private float initialLearningRate_ = 0.002F;
      /**
       * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
       * @return Whether the initialLearningRate field is set.
       */
      @java.lang.Override
      public boolean hasInitialLearningRate() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
       * @return The initialLearningRate.
       */
      @java.lang.Override
      public float getInitialLearningRate() {
        return initialLearningRate_;
      }
      /**
       * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
       * @param value The initialLearningRate to set.
       * @return This builder for chaining.
       */
      public Builder setInitialLearningRate(float value) {
        bitField0_ |= 0x00000001;
        initialLearningRate_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
       * @return This builder for chaining.
       */
      public Builder clearInitialLearningRate() {
        bitField0_ = (bitField0_ & ~0x00000001);
        initialLearningRate_ = 0.002F;
        onChanged();
        return this;
      }

      private int decaySteps_ = 4000000;
      /**
       * <code>optional uint32 decay_steps = 2 [default = 4000000];</code>
       * @return Whether the decaySteps field is set.
       */
      @java.lang.Override
      public boolean hasDecaySteps() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional uint32 decay_steps = 2 [default = 4000000];</code>
       * @return The decaySteps.
       */
      @java.lang.Override
      public int getDecaySteps() {
        return decaySteps_;
      }
      /**
       * <code>optional uint32 decay_steps = 2 [default = 4000000];</code>
       * @param value The decaySteps to set.
       * @return This builder for chaining.
       */
      public Builder setDecaySteps(int value) {
        bitField0_ |= 0x00000002;
        decaySteps_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional uint32 decay_steps = 2 [default = 4000000];</code>
       * @return This builder for chaining.
       */
      public Builder clearDecaySteps() {
        bitField0_ = (bitField0_ & ~0x00000002);
        decaySteps_ = 4000000;
        onChanged();
        return this;
      }

      private float decayFactor_ = 0.95F;
      /**
       * <code>optional float decay_factor = 3 [default = 0.95];</code>
       * @return Whether the decayFactor field is set.
       */
      @java.lang.Override
      public boolean hasDecayFactor() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>optional float decay_factor = 3 [default = 0.95];</code>
       * @return The decayFactor.
       */
      @java.lang.Override
      public float getDecayFactor() {
        return decayFactor_;
      }
      /**
       * <code>optional float decay_factor = 3 [default = 0.95];</code>
       * @param value The decayFactor to set.
       * @return This builder for chaining.
       */
      public Builder setDecayFactor(float value) {
        bitField0_ |= 0x00000004;
        decayFactor_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float decay_factor = 3 [default = 0.95];</code>
       * @return This builder for chaining.
       */
      public Builder clearDecayFactor() {
        bitField0_ = (bitField0_ & ~0x00000004);
        decayFactor_ = 0.95F;
        onChanged();
        return this;
      }

      private boolean staircase_ = true;
      /**
       * <code>optional bool staircase = 4 [default = true];</code>
       * @return Whether the staircase field is set.
       */
      @java.lang.Override
      public boolean hasStaircase() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * <code>optional bool staircase = 4 [default = true];</code>
       * @return The staircase.
       */
      @java.lang.Override
      public boolean getStaircase() {
        return staircase_;
      }
      /**
       * <code>optional bool staircase = 4 [default = true];</code>
       * @param value The staircase to set.
       * @return This builder for chaining.
       */
      public Builder setStaircase(boolean value) {
        bitField0_ |= 0x00000008;
        staircase_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional bool staircase = 4 [default = true];</code>
       * @return This builder for chaining.
       */
      public Builder clearStaircase() {
        bitField0_ = (bitField0_ & ~0x00000008);
        staircase_ = true;
        onChanged();
        return this;
      }

      private float burninLearningRate_ ;
      /**
       * <code>optional float burnin_learning_rate = 5 [default = 0];</code>
       * @return Whether the burninLearningRate field is set.
       */
      @java.lang.Override
      public boolean hasBurninLearningRate() {
        return ((bitField0_ & 0x00000010) != 0);
      }
      /**
       * <code>optional float burnin_learning_rate = 5 [default = 0];</code>
       * @return The burninLearningRate.
       */
      @java.lang.Override
      public float getBurninLearningRate() {
        return burninLearningRate_;
      }
      /**
       * <code>optional float burnin_learning_rate = 5 [default = 0];</code>
       * @param value The burninLearningRate to set.
       * @return This builder for chaining.
       */
      public Builder setBurninLearningRate(float value) {
        bitField0_ |= 0x00000010;
        burninLearningRate_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float burnin_learning_rate = 5 [default = 0];</code>
       * @return This builder for chaining.
       */
      public Builder clearBurninLearningRate() {
        bitField0_ = (bitField0_ & ~0x00000010);
        burninLearningRate_ = 0F;
        onChanged();
        return this;
      }

      private int burninSteps_ ;
      /**
       * <code>optional uint32 burnin_steps = 6 [default = 0];</code>
       * @return Whether the burninSteps field is set.
       */
      @java.lang.Override
      public boolean hasBurninSteps() {
        return ((bitField0_ & 0x00000020) != 0);
      }
      /**
       * <code>optional uint32 burnin_steps = 6 [default = 0];</code>
       * @return The burninSteps.
       */
      @java.lang.Override
      public int getBurninSteps() {
        return burninSteps_;
      }
      /**
       * <code>optional uint32 burnin_steps = 6 [default = 0];</code>
       * @param value The burninSteps to set.
       * @return This builder for chaining.
       */
      public Builder setBurninSteps(int value) {
        bitField0_ |= 0x00000020;
        burninSteps_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional uint32 burnin_steps = 6 [default = 0];</code>
       * @return This builder for chaining.
       */
      public Builder clearBurninSteps() {
        bitField0_ = (bitField0_ & ~0x00000020);
        burninSteps_ = 0;
        onChanged();
        return this;
      }

      private float minLearningRate_ ;
      /**
       * <code>optional float min_learning_rate = 7 [default = 0];</code>
       * @return Whether the minLearningRate field is set.
       */
      @java.lang.Override
      public boolean hasMinLearningRate() {
        return ((bitField0_ & 0x00000040) != 0);
      }
      /**
       * <code>optional float min_learning_rate = 7 [default = 0];</code>
       * @return The minLearningRate.
       */
      @java.lang.Override
      public float getMinLearningRate() {
        return minLearningRate_;
      }
      /**
       * <code>optional float min_learning_rate = 7 [default = 0];</code>
       * @param value The minLearningRate to set.
       * @return This builder for chaining.
       */
      public Builder setMinLearningRate(float value) {
        bitField0_ |= 0x00000040;
        minLearningRate_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float min_learning_rate = 7 [default = 0];</code>
       * @return This builder for chaining.
       */
      public Builder clearMinLearningRate() {
        bitField0_ = (bitField0_ & ~0x00000040);
        minLearningRate_ = 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.ExponentialDecayLearningRate)
    }

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

    public static object_detection.protos.OptimizerOuterClass.ExponentialDecayLearningRate getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

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

    /**
     * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
     * @return Whether the initialLearningRate field is set.
     */
    boolean hasInitialLearningRate();
    /**
     * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
     * @return The initialLearningRate.
     */
    float getInitialLearningRate();

    /**
     * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
     */
    java.util.List<object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule>
        getScheduleList();
    /**
     * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
     */
    object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule getSchedule(int index);
    /**
     * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
     */
    int getScheduleCount();
    /**
     * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
     */
    java.util.List<? extends object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateScheduleOrBuilder>
        getScheduleOrBuilderList();
    /**
     * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
     */
    object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateScheduleOrBuilder getScheduleOrBuilder(
        int index);

    /**
     * <pre>
     * Whether to linearly interpolate learning rates for steps in
     * [0, schedule[0].step].
     * </pre>
     *
     * <code>optional bool warmup = 3 [default = false];</code>
     * @return Whether the warmup field is set.
     */
    boolean hasWarmup();
    /**
     * <pre>
     * Whether to linearly interpolate learning rates for steps in
     * [0, schedule[0].step].
     * </pre>
     *
     * <code>optional bool warmup = 3 [default = false];</code>
     * @return The warmup.
     */
    boolean getWarmup();
  }
  /**
   * <pre>
   * Configuration message for a manually defined learning rate schedule.
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.ManualStepLearningRate}
   */
  public static final class ManualStepLearningRate extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.ManualStepLearningRate)
      ManualStepLearningRateOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ManualStepLearningRate.newBuilder() to construct.
    private ManualStepLearningRate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ManualStepLearningRate() {
      initialLearningRate_ = 0.002F;
      schedule_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ManualStepLearningRate(
        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;
              initialLearningRate_ = input.readFloat();
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                schedule_ = new java.util.ArrayList<object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule>();
                mutable_bitField0_ |= 0x00000002;
              }
              schedule_.add(
                  input.readMessage(object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.PARSER, extensionRegistry));
              break;
            }
            case 24: {
              bitField0_ |= 0x00000002;
              warmup_ = input.readBool();
              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_ & 0x00000002) != 0)) {
          schedule_ = java.util.Collections.unmodifiableList(schedule_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return object_detection.protos.OptimizerOuterClass.internal_static_object_detection_protos_ManualStepLearningRate_descriptor;
    }

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

    public interface LearningRateScheduleOrBuilder extends
        // @@protoc_insertion_point(interface_extends:object_detection.protos.ManualStepLearningRate.LearningRateSchedule)
        com.google.protobuf.MessageOrBuilder {

      /**
       * <code>optional uint32 step = 1;</code>
       * @return Whether the step field is set.
       */
      boolean hasStep();
      /**
       * <code>optional uint32 step = 1;</code>
       * @return The step.
       */
      int getStep();

      /**
       * <code>optional float learning_rate = 2 [default = 0.002];</code>
       * @return Whether the learningRate field is set.
       */
      boolean hasLearningRate();
      /**
       * <code>optional float learning_rate = 2 [default = 0.002];</code>
       * @return The learningRate.
       */
      float getLearningRate();
    }
    /**
     * Protobuf type {@code object_detection.protos.ManualStepLearningRate.LearningRateSchedule}
     */
    public static final class LearningRateSchedule extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:object_detection.protos.ManualStepLearningRate.LearningRateSchedule)
        LearningRateScheduleOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use LearningRateSchedule.newBuilder() to construct.
      private LearningRateSchedule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private LearningRateSchedule() {
        learningRate_ = 0.002F;
      }

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

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private LearningRateSchedule(
          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 8: {
                bitField0_ |= 0x00000001;
                step_ = input.readUInt32();
                break;
              }
              case 21: {
                bitField0_ |= 0x00000002;
                learningRate_ = 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.OptimizerOuterClass.internal_static_object_detection_protos_ManualStepLearningRate_LearningRateSchedule_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return object_detection.protos.OptimizerOuterClass.internal_static_object_detection_protos_ManualStepLearningRate_LearningRateSchedule_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.class, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder.class);
      }

      private int bitField0_;
      public static final int STEP_FIELD_NUMBER = 1;
      private int step_;
      /**
       * <code>optional uint32 step = 1;</code>
       * @return Whether the step field is set.
       */
      @java.lang.Override
      public boolean hasStep() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional uint32 step = 1;</code>
       * @return The step.
       */
      @java.lang.Override
      public int getStep() {
        return step_;
      }

      public static final int LEARNING_RATE_FIELD_NUMBER = 2;
      private float learningRate_;
      /**
       * <code>optional float learning_rate = 2 [default = 0.002];</code>
       * @return Whether the learningRate field is set.
       */
      @java.lang.Override
      public boolean hasLearningRate() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional float learning_rate = 2 [default = 0.002];</code>
       * @return The learningRate.
       */
      @java.lang.Override
      public float getLearningRate() {
        return learningRate_;
      }

      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.writeUInt32(1, step_);
        }
        if (((bitField0_ & 0x00000002) != 0)) {
          output.writeFloat(2, learningRate_);
        }
        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
            .computeUInt32Size(1, step_);
        }
        if (((bitField0_ & 0x00000002) != 0)) {
          size += com.google.protobuf.CodedOutputStream
            .computeFloatSize(2, learningRate_);
        }
        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.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule)) {
          return super.equals(obj);
        }
        object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule other = (object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule) obj;

        if (hasStep() != other.hasStep()) return false;
        if (hasStep()) {
          if (getStep()
              != other.getStep()) return false;
        }
        if (hasLearningRate() != other.hasLearningRate()) return false;
        if (hasLearningRate()) {
          if (java.lang.Float.floatToIntBits(getLearningRate())
              != java.lang.Float.floatToIntBits(
                  other.getLearningRate())) 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 (hasStep()) {
          hash = (37 * hash) + STEP_FIELD_NUMBER;
          hash = (53 * hash) + getStep();
        }
        if (hasLearningRate()) {
          hash = (37 * hash) + LEARNING_RATE_FIELD_NUMBER;
          hash = (53 * hash) + java.lang.Float.floatToIntBits(
              getLearningRate());
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

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

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return object_detection.protos.OptimizerOuterClass.internal_static_object_detection_protos_ManualStepLearningRate_LearningRateSchedule_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.class, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder.class);
        }

        // Construct using object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.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();
          step_ = 0;
          bitField0_ = (bitField0_ & ~0x00000001);
          learningRate_ = 0.002F;
          bitField0_ = (bitField0_ & ~0x00000002);
          return this;
        }

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

        @java.lang.Override
        public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule getDefaultInstanceForType() {
          return object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.getDefaultInstance();
        }

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

        @java.lang.Override
        public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule buildPartial() {
          object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule result = new object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.step_ = step_;
            to_bitField0_ |= 0x00000001;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            to_bitField0_ |= 0x00000002;
          }
          result.learningRate_ = learningRate_;
          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.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule) {
            return mergeFrom((object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule other) {
          if (other == object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.getDefaultInstance()) return this;
          if (other.hasStep()) {
            setStep(other.getStep());
          }
          if (other.hasLearningRate()) {
            setLearningRate(other.getLearningRate());
          }
          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.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int bitField0_;

        private int step_ ;
        /**
         * <code>optional uint32 step = 1;</code>
         * @return Whether the step field is set.
         */
        @java.lang.Override
        public boolean hasStep() {
          return ((bitField0_ & 0x00000001) != 0);
        }
        /**
         * <code>optional uint32 step = 1;</code>
         * @return The step.
         */
        @java.lang.Override
        public int getStep() {
          return step_;
        }
        /**
         * <code>optional uint32 step = 1;</code>
         * @param value The step to set.
         * @return This builder for chaining.
         */
        public Builder setStep(int value) {
          bitField0_ |= 0x00000001;
          step_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>optional uint32 step = 1;</code>
         * @return This builder for chaining.
         */
        public Builder clearStep() {
          bitField0_ = (bitField0_ & ~0x00000001);
          step_ = 0;
          onChanged();
          return this;
        }

        private float learningRate_ = 0.002F;
        /**
         * <code>optional float learning_rate = 2 [default = 0.002];</code>
         * @return Whether the learningRate field is set.
         */
        @java.lang.Override
        public boolean hasLearningRate() {
          return ((bitField0_ & 0x00000002) != 0);
        }
        /**
         * <code>optional float learning_rate = 2 [default = 0.002];</code>
         * @return The learningRate.
         */
        @java.lang.Override
        public float getLearningRate() {
          return learningRate_;
        }
        /**
         * <code>optional float learning_rate = 2 [default = 0.002];</code>
         * @param value The learningRate to set.
         * @return This builder for chaining.
         */
        public Builder setLearningRate(float value) {
          bitField0_ |= 0x00000002;
          learningRate_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>optional float learning_rate = 2 [default = 0.002];</code>
         * @return This builder for chaining.
         */
        public Builder clearLearningRate() {
          bitField0_ = (bitField0_ & ~0x00000002);
          learningRate_ = 0.002F;
          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.ManualStepLearningRate.LearningRateSchedule)
      }

      // @@protoc_insertion_point(class_scope:object_detection.protos.ManualStepLearningRate.LearningRateSchedule)
      private static final object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule();
      }

      public static object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

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

      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    private int bitField0_;
    public static final int INITIAL_LEARNING_RATE_FIELD_NUMBER = 1;
    private float initialLearningRate_;
    /**
     * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
     * @return Whether the initialLearningRate field is set.
     */
    @java.lang.Override
    public boolean hasInitialLearningRate() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
     * @return The initialLearningRate.
     */
    @java.lang.Override
    public float getInitialLearningRate() {
      return initialLearningRate_;
    }

    public static final int SCHEDULE_FIELD_NUMBER = 2;
    private java.util.List<object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule> schedule_;
    /**
     * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
     */
    @java.lang.Override
    public java.util.List<object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule> getScheduleList() {
      return schedule_;
    }
    /**
     * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
     */
    @java.lang.Override
    public java.util.List<? extends object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateScheduleOrBuilder>
        getScheduleOrBuilderList() {
      return schedule_;
    }
    /**
     * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
     */
    @java.lang.Override
    public int getScheduleCount() {
      return schedule_.size();
    }
    /**
     * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule getSchedule(int index) {
      return schedule_.get(index);
    }
    /**
     * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
     */
    @java.lang.Override
    public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateScheduleOrBuilder getScheduleOrBuilder(
        int index) {
      return schedule_.get(index);
    }

    public static final int WARMUP_FIELD_NUMBER = 3;
    private boolean warmup_;
    /**
     * <pre>
     * Whether to linearly interpolate learning rates for steps in
     * [0, schedule[0].step].
     * </pre>
     *
     * <code>optional bool warmup = 3 [default = false];</code>
     * @return Whether the warmup field is set.
     */
    @java.lang.Override
    public boolean hasWarmup() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <pre>
     * Whether to linearly interpolate learning rates for steps in
     * [0, schedule[0].step].
     * </pre>
     *
     * <code>optional bool warmup = 3 [default = false];</code>
     * @return The warmup.
     */
    @java.lang.Override
    public boolean getWarmup() {
      return warmup_;
    }

    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, initialLearningRate_);
      }
      for (int i = 0; i < schedule_.size(); i++) {
        output.writeMessage(2, schedule_.get(i));
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeBool(3, warmup_);
      }
      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, initialLearningRate_);
      }
      for (int i = 0; i < schedule_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, schedule_.get(i));
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(3, warmup_);
      }
      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.OptimizerOuterClass.ManualStepLearningRate)) {
        return super.equals(obj);
      }
      object_detection.protos.OptimizerOuterClass.ManualStepLearningRate other = (object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) obj;

      if (hasInitialLearningRate() != other.hasInitialLearningRate()) return false;
      if (hasInitialLearningRate()) {
        if (java.lang.Float.floatToIntBits(getInitialLearningRate())
            != java.lang.Float.floatToIntBits(
                other.getInitialLearningRate())) return false;
      }
      if (!getScheduleList()
          .equals(other.getScheduleList())) return false;
      if (hasWarmup() != other.hasWarmup()) return false;
      if (hasWarmup()) {
        if (getWarmup()
            != other.getWarmup()) 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 (hasInitialLearningRate()) {
        hash = (37 * hash) + INITIAL_LEARNING_RATE_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getInitialLearningRate());
      }
      if (getScheduleCount() > 0) {
        hash = (37 * hash) + SCHEDULE_FIELD_NUMBER;
        hash = (53 * hash) + getScheduleList().hashCode();
      }
      if (hasWarmup()) {
        hash = (37 * hash) + WARMUP_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            getWarmup());
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.OptimizerOuterClass.ManualStepLearningRate parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.ManualStepLearningRate 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.OptimizerOuterClass.ManualStepLearningRate parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.ManualStepLearningRate 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.OptimizerOuterClass.ManualStepLearningRate parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.ManualStepLearningRate parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.OptimizerOuterClass.ManualStepLearningRate parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.ManualStepLearningRate 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.OptimizerOuterClass.ManualStepLearningRate parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.ManualStepLearningRate 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.OptimizerOuterClass.ManualStepLearningRate parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.ManualStepLearningRate 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.OptimizerOuterClass.ManualStepLearningRate 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>
     * Configuration message for a manually defined learning rate schedule.
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.ManualStepLearningRate}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.ManualStepLearningRate)
        object_detection.protos.OptimizerOuterClass.ManualStepLearningRateOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.OptimizerOuterClass.internal_static_object_detection_protos_ManualStepLearningRate_descriptor;
      }

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

      // Construct using object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getScheduleFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        initialLearningRate_ = 0.002F;
        bitField0_ = (bitField0_ & ~0x00000001);
        if (scheduleBuilder_ == null) {
          schedule_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          scheduleBuilder_.clear();
        }
        warmup_ = false;
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

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

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

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

      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate buildPartial() {
        object_detection.protos.OptimizerOuterClass.ManualStepLearningRate result = new object_detection.protos.OptimizerOuterClass.ManualStepLearningRate(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.initialLearningRate_ = initialLearningRate_;
        if (scheduleBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            schedule_ = java.util.Collections.unmodifiableList(schedule_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.schedule_ = schedule_;
        } else {
          result.schedule_ = scheduleBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.warmup_ = warmup_;
          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.OptimizerOuterClass.ManualStepLearningRate) {
          return mergeFrom((object_detection.protos.OptimizerOuterClass.ManualStepLearningRate)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.OptimizerOuterClass.ManualStepLearningRate other) {
        if (other == object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.getDefaultInstance()) return this;
        if (other.hasInitialLearningRate()) {
          setInitialLearningRate(other.getInitialLearningRate());
        }
        if (scheduleBuilder_ == null) {
          if (!other.schedule_.isEmpty()) {
            if (schedule_.isEmpty()) {
              schedule_ = other.schedule_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureScheduleIsMutable();
              schedule_.addAll(other.schedule_);
            }
            onChanged();
          }
        } else {
          if (!other.schedule_.isEmpty()) {
            if (scheduleBuilder_.isEmpty()) {
              scheduleBuilder_.dispose();
              scheduleBuilder_ = null;
              schedule_ = other.schedule_;
              bitField0_ = (bitField0_ & ~0x00000002);
              scheduleBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getScheduleFieldBuilder() : null;
            } else {
              scheduleBuilder_.addAllMessages(other.schedule_);
            }
          }
        }
        if (other.hasWarmup()) {
          setWarmup(other.getWarmup());
        }
        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.OptimizerOuterClass.ManualStepLearningRate parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.OptimizerOuterClass.ManualStepLearningRate) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private float initialLearningRate_ = 0.002F;
      /**
       * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
       * @return Whether the initialLearningRate field is set.
       */
      @java.lang.Override
      public boolean hasInitialLearningRate() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
       * @return The initialLearningRate.
       */
      @java.lang.Override
      public float getInitialLearningRate() {
        return initialLearningRate_;
      }
      /**
       * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
       * @param value The initialLearningRate to set.
       * @return This builder for chaining.
       */
      public Builder setInitialLearningRate(float value) {
        bitField0_ |= 0x00000001;
        initialLearningRate_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float initial_learning_rate = 1 [default = 0.002];</code>
       * @return This builder for chaining.
       */
      public Builder clearInitialLearningRate() {
        bitField0_ = (bitField0_ & ~0x00000001);
        initialLearningRate_ = 0.002F;
        onChanged();
        return this;
      }

      private java.util.List<object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule> schedule_ =
        java.util.Collections.emptyList();
      private void ensureScheduleIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          schedule_ = new java.util.ArrayList<object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule>(schedule_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateScheduleOrBuilder> scheduleBuilder_;

      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public java.util.List<object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule> getScheduleList() {
        if (scheduleBuilder_ == null) {
          return java.util.Collections.unmodifiableList(schedule_);
        } else {
          return scheduleBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public int getScheduleCount() {
        if (scheduleBuilder_ == null) {
          return schedule_.size();
        } else {
          return scheduleBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule getSchedule(int index) {
        if (scheduleBuilder_ == null) {
          return schedule_.get(index);
        } else {
          return scheduleBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public Builder setSchedule(
          int index, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule value) {
        if (scheduleBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureScheduleIsMutable();
          schedule_.set(index, value);
          onChanged();
        } else {
          scheduleBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public Builder setSchedule(
          int index, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder builderForValue) {
        if (scheduleBuilder_ == null) {
          ensureScheduleIsMutable();
          schedule_.set(index, builderForValue.build());
          onChanged();
        } else {
          scheduleBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public Builder addSchedule(object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule value) {
        if (scheduleBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureScheduleIsMutable();
          schedule_.add(value);
          onChanged();
        } else {
          scheduleBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public Builder addSchedule(
          int index, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule value) {
        if (scheduleBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureScheduleIsMutable();
          schedule_.add(index, value);
          onChanged();
        } else {
          scheduleBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public Builder addSchedule(
          object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder builderForValue) {
        if (scheduleBuilder_ == null) {
          ensureScheduleIsMutable();
          schedule_.add(builderForValue.build());
          onChanged();
        } else {
          scheduleBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public Builder addSchedule(
          int index, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder builderForValue) {
        if (scheduleBuilder_ == null) {
          ensureScheduleIsMutable();
          schedule_.add(index, builderForValue.build());
          onChanged();
        } else {
          scheduleBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public Builder addAllSchedule(
          java.lang.Iterable<? extends object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule> values) {
        if (scheduleBuilder_ == null) {
          ensureScheduleIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, schedule_);
          onChanged();
        } else {
          scheduleBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public Builder clearSchedule() {
        if (scheduleBuilder_ == null) {
          schedule_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          scheduleBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public Builder removeSchedule(int index) {
        if (scheduleBuilder_ == null) {
          ensureScheduleIsMutable();
          schedule_.remove(index);
          onChanged();
        } else {
          scheduleBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder getScheduleBuilder(
          int index) {
        return getScheduleFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateScheduleOrBuilder getScheduleOrBuilder(
          int index) {
        if (scheduleBuilder_ == null) {
          return schedule_.get(index);  } else {
          return scheduleBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public java.util.List<? extends object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateScheduleOrBuilder>
           getScheduleOrBuilderList() {
        if (scheduleBuilder_ != null) {
          return scheduleBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(schedule_);
        }
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder addScheduleBuilder() {
        return getScheduleFieldBuilder().addBuilder(
            object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.getDefaultInstance());
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder addScheduleBuilder(
          int index) {
        return getScheduleFieldBuilder().addBuilder(
            index, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.getDefaultInstance());
      }
      /**
       * <code>repeated .object_detection.protos.ManualStepLearningRate.LearningRateSchedule schedule = 2;</code>
       */
      public java.util.List<object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder>
           getScheduleBuilderList() {
        return getScheduleFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateScheduleOrBuilder>
          getScheduleFieldBuilder() {
        if (scheduleBuilder_ == null) {
          scheduleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateSchedule.Builder, object_detection.protos.OptimizerOuterClass.ManualStepLearningRate.LearningRateScheduleOrBuilder>(
                  schedule_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          schedule_ = null;
        }
        return scheduleBuilder_;
      }

      private boolean warmup_ ;
      /**
       * <pre>
       * Whether to linearly interpolate learning rates for steps in
       * [0, schedule[0].step].
       * </pre>
       *
       * <code>optional bool warmup = 3 [default = false];</code>
       * @return Whether the warmup field is set.
       */
      @java.lang.Override
      public boolean hasWarmup() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <pre>
       * Whether to linearly interpolate learning rates for steps in
       * [0, schedule[0].step].
       * </pre>
       *
       * <code>optional bool warmup = 3 [default = false];</code>
       * @return The warmup.
       */
      @java.lang.Override
      public boolean getWarmup() {
        return warmup_;
      }
      /**
       * <pre>
       * Whether to linearly interpolate learning rates for steps in
       * [0, schedule[0].step].
       * </pre>
       *
       * <code>optional bool warmup = 3 [default = false];</code>
       * @param value The warmup to set.
       * @return This builder for chaining.
       */
      public Builder setWarmup(boolean value) {
        bitField0_ |= 0x00000004;
        warmup_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Whether to linearly interpolate learning rates for steps in
       * [0, schedule[0].step].
       * </pre>
       *
       * <code>optional bool warmup = 3 [default = false];</code>
       * @return This builder for chaining.
       */
      public Builder clearWarmup() {
        bitField0_ = (bitField0_ & ~0x00000004);
        warmup_ = false;
        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.ManualStepLearningRate)
    }

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

    public static object_detection.protos.OptimizerOuterClass.ManualStepLearningRate getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

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

    /**
     * <code>optional float learning_rate_base = 1 [default = 0.002];</code>
     * @return Whether the learningRateBase field is set.
     */
    boolean hasLearningRateBase();
    /**
     * <code>optional float learning_rate_base = 1 [default = 0.002];</code>
     * @return The learningRateBase.
     */
    float getLearningRateBase();

    /**
     * <code>optional uint32 total_steps = 2 [default = 4000000];</code>
     * @return Whether the totalSteps field is set.
     */
    boolean hasTotalSteps();
    /**
     * <code>optional uint32 total_steps = 2 [default = 4000000];</code>
     * @return The totalSteps.
     */
    int getTotalSteps();

    /**
     * <code>optional float warmup_learning_rate = 3 [default = 0.0002];</code>
     * @return Whether the warmupLearningRate field is set.
     */
    boolean hasWarmupLearningRate();
    /**
     * <code>optional float warmup_learning_rate = 3 [default = 0.0002];</code>
     * @return The warmupLearningRate.
     */
    float getWarmupLearningRate();

    /**
     * <code>optional uint32 warmup_steps = 4 [default = 10000];</code>
     * @return Whether the warmupSteps field is set.
     */
    boolean hasWarmupSteps();
    /**
     * <code>optional uint32 warmup_steps = 4 [default = 10000];</code>
     * @return The warmupSteps.
     */
    int getWarmupSteps();

    /**
     * <code>optional uint32 hold_base_rate_steps = 5 [default = 0];</code>
     * @return Whether the holdBaseRateSteps field is set.
     */
    boolean hasHoldBaseRateSteps();
    /**
     * <code>optional uint32 hold_base_rate_steps = 5 [default = 0];</code>
     * @return The holdBaseRateSteps.
     */
    int getHoldBaseRateSteps();
  }
  /**
   * <pre>
   * Configuration message for a cosine decaying learning rate as defined in
   * object_detection/utils/learning_schedules.py
   * </pre>
   *
   * Protobuf type {@code object_detection.protos.CosineDecayLearningRate}
   */
  public static final class CosineDecayLearningRate extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:object_detection.protos.CosineDecayLearningRate)
      CosineDecayLearningRateOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use CosineDecayLearningRate.newBuilder() to construct.
    private CosineDecayLearningRate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private CosineDecayLearningRate() {
      learningRateBase_ = 0.002F;
      totalSteps_ = 4000000;
      warmupLearningRate_ = 0.0002F;
      warmupSteps_ = 10000;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private CosineDecayLearningRate(
        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;
              learningRateBase_ = input.readFloat();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              totalSteps_ = input.readUInt32();
              break;
            }
            case 29: {
              bitField0_ |= 0x00000004;
              warmupLearningRate_ = input.readFloat();
              break;
            }
            case 32: {
              bitField0_ |= 0x00000008;
              warmupSteps_ = input.readUInt32();
              break;
            }
            case 40: {
              bitField0_ |= 0x00000010;
              holdBaseRateSteps_ = input.readUInt32();
              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.OptimizerOuterClass.internal_static_object_detection_protos_CosineDecayLearningRate_descriptor;
    }

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

    private int bitField0_;
    public static final int LEARNING_RATE_BASE_FIELD_NUMBER = 1;
    private float learningRateBase_;
    /**
     * <code>optional float learning_rate_base = 1 [default = 0.002];</code>
     * @return Whether the learningRateBase field is set.
     */
    @java.lang.Override
    public boolean hasLearningRateBase() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional float learning_rate_base = 1 [default = 0.002];</code>
     * @return The learningRateBase.
     */
    @java.lang.Override
    public float getLearningRateBase() {
      return learningRateBase_;
    }

    public static final int TOTAL_STEPS_FIELD_NUMBER = 2;
    private int totalSteps_;
    /**
     * <code>optional uint32 total_steps = 2 [default = 4000000];</code>
     * @return Whether the totalSteps field is set.
     */
    @java.lang.Override
    public boolean hasTotalSteps() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional uint32 total_steps = 2 [default = 4000000];</code>
     * @return The totalSteps.
     */
    @java.lang.Override
    public int getTotalSteps() {
      return totalSteps_;
    }

    public static final int WARMUP_LEARNING_RATE_FIELD_NUMBER = 3;
    private float warmupLearningRate_;
    /**
     * <code>optional float warmup_learning_rate = 3 [default = 0.0002];</code>
     * @return Whether the warmupLearningRate field is set.
     */
    @java.lang.Override
    public boolean hasWarmupLearningRate() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional float warmup_learning_rate = 3 [default = 0.0002];</code>
     * @return The warmupLearningRate.
     */
    @java.lang.Override
    public float getWarmupLearningRate() {
      return warmupLearningRate_;
    }

    public static final int WARMUP_STEPS_FIELD_NUMBER = 4;
    private int warmupSteps_;
    /**
     * <code>optional uint32 warmup_steps = 4 [default = 10000];</code>
     * @return Whether the warmupSteps field is set.
     */
    @java.lang.Override
    public boolean hasWarmupSteps() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <code>optional uint32 warmup_steps = 4 [default = 10000];</code>
     * @return The warmupSteps.
     */
    @java.lang.Override
    public int getWarmupSteps() {
      return warmupSteps_;
    }

    public static final int HOLD_BASE_RATE_STEPS_FIELD_NUMBER = 5;
    private int holdBaseRateSteps_;
    /**
     * <code>optional uint32 hold_base_rate_steps = 5 [default = 0];</code>
     * @return Whether the holdBaseRateSteps field is set.
     */
    @java.lang.Override
    public boolean hasHoldBaseRateSteps() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * <code>optional uint32 hold_base_rate_steps = 5 [default = 0];</code>
     * @return The holdBaseRateSteps.
     */
    @java.lang.Override
    public int getHoldBaseRateSteps() {
      return holdBaseRateSteps_;
    }

    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, learningRateBase_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeUInt32(2, totalSteps_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeFloat(3, warmupLearningRate_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        output.writeUInt32(4, warmupSteps_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        output.writeUInt32(5, holdBaseRateSteps_);
      }
      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, learningRateBase_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, totalSteps_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(3, warmupLearningRate_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(4, warmupSteps_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(5, holdBaseRateSteps_);
      }
      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.OptimizerOuterClass.CosineDecayLearningRate)) {
        return super.equals(obj);
      }
      object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate other = (object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) obj;

      if (hasLearningRateBase() != other.hasLearningRateBase()) return false;
      if (hasLearningRateBase()) {
        if (java.lang.Float.floatToIntBits(getLearningRateBase())
            != java.lang.Float.floatToIntBits(
                other.getLearningRateBase())) return false;
      }
      if (hasTotalSteps() != other.hasTotalSteps()) return false;
      if (hasTotalSteps()) {
        if (getTotalSteps()
            != other.getTotalSteps()) return false;
      }
      if (hasWarmupLearningRate() != other.hasWarmupLearningRate()) return false;
      if (hasWarmupLearningRate()) {
        if (java.lang.Float.floatToIntBits(getWarmupLearningRate())
            != java.lang.Float.floatToIntBits(
                other.getWarmupLearningRate())) return false;
      }
      if (hasWarmupSteps() != other.hasWarmupSteps()) return false;
      if (hasWarmupSteps()) {
        if (getWarmupSteps()
            != other.getWarmupSteps()) return false;
      }
      if (hasHoldBaseRateSteps() != other.hasHoldBaseRateSteps()) return false;
      if (hasHoldBaseRateSteps()) {
        if (getHoldBaseRateSteps()
            != other.getHoldBaseRateSteps()) 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 (hasLearningRateBase()) {
        hash = (37 * hash) + LEARNING_RATE_BASE_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getLearningRateBase());
      }
      if (hasTotalSteps()) {
        hash = (37 * hash) + TOTAL_STEPS_FIELD_NUMBER;
        hash = (53 * hash) + getTotalSteps();
      }
      if (hasWarmupLearningRate()) {
        hash = (37 * hash) + WARMUP_LEARNING_RATE_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getWarmupLearningRate());
      }
      if (hasWarmupSteps()) {
        hash = (37 * hash) + WARMUP_STEPS_FIELD_NUMBER;
        hash = (53 * hash) + getWarmupSteps();
      }
      if (hasHoldBaseRateSteps()) {
        hash = (37 * hash) + HOLD_BASE_RATE_STEPS_FIELD_NUMBER;
        hash = (53 * hash) + getHoldBaseRateSteps();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate 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.OptimizerOuterClass.CosineDecayLearningRate parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate 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.OptimizerOuterClass.CosineDecayLearningRate parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate 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.OptimizerOuterClass.CosineDecayLearningRate parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate 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.OptimizerOuterClass.CosineDecayLearningRate parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate 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.OptimizerOuterClass.CosineDecayLearningRate 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>
     * Configuration message for a cosine decaying learning rate as defined in
     * object_detection/utils/learning_schedules.py
     * </pre>
     *
     * Protobuf type {@code object_detection.protos.CosineDecayLearningRate}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:object_detection.protos.CosineDecayLearningRate)
        object_detection.protos.OptimizerOuterClass.CosineDecayLearningRateOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return object_detection.protos.OptimizerOuterClass.internal_static_object_detection_protos_CosineDecayLearningRate_descriptor;
      }

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

      // Construct using object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.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();
        learningRateBase_ = 0.002F;
        bitField0_ = (bitField0_ & ~0x00000001);
        totalSteps_ = 4000000;
        bitField0_ = (bitField0_ & ~0x00000002);
        warmupLearningRate_ = 0.0002F;
        bitField0_ = (bitField0_ & ~0x00000004);
        warmupSteps_ = 10000;
        bitField0_ = (bitField0_ & ~0x00000008);
        holdBaseRateSteps_ = 0;
        bitField0_ = (bitField0_ & ~0x00000010);
        return this;
      }

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

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

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

      @java.lang.Override
      public object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate buildPartial() {
        object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate result = new object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.learningRateBase_ = learningRateBase_;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.totalSteps_ = totalSteps_;
        if (((from_bitField0_ & 0x00000004) != 0)) {
          to_bitField0_ |= 0x00000004;
        }
        result.warmupLearningRate_ = warmupLearningRate_;
        if (((from_bitField0_ & 0x00000008) != 0)) {
          to_bitField0_ |= 0x00000008;
        }
        result.warmupSteps_ = warmupSteps_;
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.holdBaseRateSteps_ = holdBaseRateSteps_;
          to_bitField0_ |= 0x00000010;
        }
        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.OptimizerOuterClass.CosineDecayLearningRate) {
          return mergeFrom((object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate other) {
        if (other == object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate.getDefaultInstance()) return this;
        if (other.hasLearningRateBase()) {
          setLearningRateBase(other.getLearningRateBase());
        }
        if (other.hasTotalSteps()) {
          setTotalSteps(other.getTotalSteps());
        }
        if (other.hasWarmupLearningRate()) {
          setWarmupLearningRate(other.getWarmupLearningRate());
        }
        if (other.hasWarmupSteps()) {
          setWarmupSteps(other.getWarmupSteps());
        }
        if (other.hasHoldBaseRateSteps()) {
          setHoldBaseRateSteps(other.getHoldBaseRateSteps());
        }
        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.OptimizerOuterClass.CosineDecayLearningRate parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private float learningRateBase_ = 0.002F;
      /**
       * <code>optional float learning_rate_base = 1 [default = 0.002];</code>
       * @return Whether the learningRateBase field is set.
       */
      @java.lang.Override
      public boolean hasLearningRateBase() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional float learning_rate_base = 1 [default = 0.002];</code>
       * @return The learningRateBase.
       */
      @java.lang.Override
      public float getLearningRateBase() {
        return learningRateBase_;
      }
      /**
       * <code>optional float learning_rate_base = 1 [default = 0.002];</code>
       * @param value The learningRateBase to set.
       * @return This builder for chaining.
       */
      public Builder setLearningRateBase(float value) {
        bitField0_ |= 0x00000001;
        learningRateBase_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float learning_rate_base = 1 [default = 0.002];</code>
       * @return This builder for chaining.
       */
      public Builder clearLearningRateBase() {
        bitField0_ = (bitField0_ & ~0x00000001);
        learningRateBase_ = 0.002F;
        onChanged();
        return this;
      }

      private int totalSteps_ = 4000000;
      /**
       * <code>optional uint32 total_steps = 2 [default = 4000000];</code>
       * @return Whether the totalSteps field is set.
       */
      @java.lang.Override
      public boolean hasTotalSteps() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional uint32 total_steps = 2 [default = 4000000];</code>
       * @return The totalSteps.
       */
      @java.lang.Override
      public int getTotalSteps() {
        return totalSteps_;
      }
      /**
       * <code>optional uint32 total_steps = 2 [default = 4000000];</code>
       * @param value The totalSteps to set.
       * @return This builder for chaining.
       */
      public Builder setTotalSteps(int value) {
        bitField0_ |= 0x00000002;
        totalSteps_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional uint32 total_steps = 2 [default = 4000000];</code>
       * @return This builder for chaining.
       */
      public Builder clearTotalSteps() {
        bitField0_ = (bitField0_ & ~0x00000002);
        totalSteps_ = 4000000;
        onChanged();
        return this;
      }

      private float warmupLearningRate_ = 0.0002F;
      /**
       * <code>optional float warmup_learning_rate = 3 [default = 0.0002];</code>
       * @return Whether the warmupLearningRate field is set.
       */
      @java.lang.Override
      public boolean hasWarmupLearningRate() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>optional float warmup_learning_rate = 3 [default = 0.0002];</code>
       * @return The warmupLearningRate.
       */
      @java.lang.Override
      public float getWarmupLearningRate() {
        return warmupLearningRate_;
      }
      /**
       * <code>optional float warmup_learning_rate = 3 [default = 0.0002];</code>
       * @param value The warmupLearningRate to set.
       * @return This builder for chaining.
       */
      public Builder setWarmupLearningRate(float value) {
        bitField0_ |= 0x00000004;
        warmupLearningRate_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional float warmup_learning_rate = 3 [default = 0.0002];</code>
       * @return This builder for chaining.
       */
      public Builder clearWarmupLearningRate() {
        bitField0_ = (bitField0_ & ~0x00000004);
        warmupLearningRate_ = 0.0002F;
        onChanged();
        return this;
      }

      private int warmupSteps_ = 10000;
      /**
       * <code>optional uint32 warmup_steps = 4 [default = 10000];</code>
       * @return Whether the warmupSteps field is set.
       */
      @java.lang.Override
      public boolean hasWarmupSteps() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * <code>optional uint32 warmup_steps = 4 [default = 10000];</code>
       * @return The warmupSteps.
       */
      @java.lang.Override
      public int getWarmupSteps() {
        return warmupSteps_;
      }
      /**
       * <code>optional uint32 warmup_steps = 4 [default = 10000];</code>
       * @param value The warmupSteps to set.
       * @return This builder for chaining.
       */
      public Builder setWarmupSteps(int value) {
        bitField0_ |= 0x00000008;
        warmupSteps_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional uint32 warmup_steps = 4 [default = 10000];</code>
       * @return This builder for chaining.
       */
      public Builder clearWarmupSteps() {
        bitField0_ = (bitField0_ & ~0x00000008);
        warmupSteps_ = 10000;
        onChanged();
        return this;
      }

      private int holdBaseRateSteps_ ;
      /**
       * <code>optional uint32 hold_base_rate_steps = 5 [default = 0];</code>
       * @return Whether the holdBaseRateSteps field is set.
       */
      @java.lang.Override
      public boolean hasHoldBaseRateSteps() {
        return ((bitField0_ & 0x00000010) != 0);
      }
      /**
       * <code>optional uint32 hold_base_rate_steps = 5 [default = 0];</code>
       * @return The holdBaseRateSteps.
       */
      @java.lang.Override
      public int getHoldBaseRateSteps() {
        return holdBaseRateSteps_;
      }
      /**
       * <code>optional uint32 hold_base_rate_steps = 5 [default = 0];</code>
       * @param value The holdBaseRateSteps to set.
       * @return This builder for chaining.
       */
      public Builder setHoldBaseRateSteps(int value) {
        bitField0_ |= 0x00000010;
        holdBaseRateSteps_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional uint32 hold_base_rate_steps = 5 [default = 0];</code>
       * @return This builder for chaining.
       */
      public Builder clearHoldBaseRateSteps() {
        bitField0_ = (bitField0_ & ~0x00000010);
        holdBaseRateSteps_ = 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.CosineDecayLearningRate)
    }

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

    public static object_detection.protos.OptimizerOuterClass.CosineDecayLearningRate getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_Optimizer_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_Optimizer_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_RMSPropOptimizer_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_RMSPropOptimizer_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_MomentumOptimizer_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_MomentumOptimizer_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_AdamOptimizer_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_AdamOptimizer_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_LearningRate_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_LearningRate_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_ConstantLearningRate_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_ConstantLearningRate_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_ExponentialDecayLearningRate_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_ExponentialDecayLearningRate_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_ManualStepLearningRate_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_ManualStepLearningRate_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_ManualStepLearningRate_LearningRateSchedule_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_ManualStepLearningRate_LearningRateSchedule_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_object_detection_protos_CosineDecayLearningRate_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_object_detection_protos_CosineDecayLearningRate_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/optimizer.prot" +
      "o\022\027object_detection.protos\"\265\002\n\tOptimizer" +
      "\022G\n\022rms_prop_optimizer\030\001 \001(\0132).object_de" +
      "tection.protos.RMSPropOptimizerH\000\022H\n\022mom" +
      "entum_optimizer\030\002 \001(\0132*.object_detection" +
      ".protos.MomentumOptimizerH\000\022@\n\016adam_opti" +
      "mizer\030\003 \001(\0132&.object_detection.protos.Ad" +
      "amOptimizerH\000\022 \n\022use_moving_average\030\004 \001(" +
      "\010:\004true\022$\n\024moving_average_decay\030\005 \001(\002:\0060" +
      ".9999B\013\n\toptimizer\"\237\001\n\020RMSPropOptimizer\022" +
      "<\n\rlearning_rate\030\001 \001(\0132%.object_detectio" +
      "n.protos.LearningRate\022%\n\030momentum_optimi" +
      "zer_value\030\002 \001(\002:\0030.9\022\022\n\005decay\030\003 \001(\002:\0030.9" +
      "\022\022\n\007epsilon\030\004 \001(\002:\0011\"x\n\021MomentumOptimize" +
      "r\022<\n\rlearning_rate\030\001 \001(\0132%.object_detect" +
      "ion.protos.LearningRate\022%\n\030momentum_opti" +
      "mizer_value\030\002 \001(\002:\0030.9\"e\n\rAdamOptimizer\022" +
      "<\n\rlearning_rate\030\001 \001(\0132%.object_detectio" +
      "n.protos.LearningRate\022\026\n\007epsilon\030\002 \001(\002:\005" +
      "1e-08\"\200\003\n\014LearningRate\022O\n\026constant_learn" +
      "ing_rate\030\001 \001(\0132-.object_detection.protos" +
      ".ConstantLearningRateH\000\022`\n\037exponential_d" +
      "ecay_learning_rate\030\002 \001(\01325.object_detect" +
      "ion.protos.ExponentialDecayLearningRateH" +
      "\000\022T\n\031manual_step_learning_rate\030\003 \001(\0132/.o" +
      "bject_detection.protos.ManualStepLearnin" +
      "gRateH\000\022V\n\032cosine_decay_learning_rate\030\004 " +
      "\001(\01320.object_detection.protos.CosineDeca" +
      "yLearningRateH\000B\017\n\rlearning_rate\"4\n\024Cons" +
      "tantLearningRate\022\034\n\rlearning_rate\030\001 \001(\002:" +
      "\0050.002\"\357\001\n\034ExponentialDecayLearningRate\022" +
      "$\n\025initial_learning_rate\030\001 \001(\002:\0050.002\022\034\n" +
      "\013decay_steps\030\002 \001(\r:\0074000000\022\032\n\014decay_fac" +
      "tor\030\003 \001(\002:\0040.95\022\027\n\tstaircase\030\004 \001(\010:\004true" +
      "\022\037\n\024burnin_learning_rate\030\005 \001(\002:\0010\022\027\n\014bur" +
      "nin_steps\030\006 \001(\r:\0010\022\034\n\021min_learning_rate\030" +
      "\007 \001(\002:\0010\"\361\001\n\026ManualStepLearningRate\022$\n\025i" +
      "nitial_learning_rate\030\001 \001(\002:\0050.002\022V\n\010sch" +
      "edule\030\002 \003(\0132D.object_detection.protos.Ma" +
      "nualStepLearningRate.LearningRateSchedul" +
      "e\022\025\n\006warmup\030\003 \001(\010:\005false\032B\n\024LearningRate" +
      "Schedule\022\014\n\004step\030\001 \001(\r\022\034\n\rlearning_rate\030" +
      "\002 \001(\002:\0050.002\"\276\001\n\027CosineDecayLearningRate" +
      "\022!\n\022learning_rate_base\030\001 \001(\002:\0050.002\022\034\n\013t" +
      "otal_steps\030\002 \001(\r:\0074000000\022$\n\024warmup_lear" +
      "ning_rate\030\003 \001(\002:\0060.0002\022\033\n\014warmup_steps\030" +
      "\004 \001(\r:\00510000\022\037\n\024hold_base_rate_steps\030\005 \001" +
      "(\r:\0010"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_object_detection_protos_Optimizer_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_object_detection_protos_Optimizer_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_Optimizer_descriptor,
        new java.lang.String[] { "RmsPropOptimizer", "MomentumOptimizer", "AdamOptimizer", "UseMovingAverage", "MovingAverageDecay", "Optimizer", });
    internal_static_object_detection_protos_RMSPropOptimizer_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_object_detection_protos_RMSPropOptimizer_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_RMSPropOptimizer_descriptor,
        new java.lang.String[] { "LearningRate", "MomentumOptimizerValue", "Decay", "Epsilon", });
    internal_static_object_detection_protos_MomentumOptimizer_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_object_detection_protos_MomentumOptimizer_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_MomentumOptimizer_descriptor,
        new java.lang.String[] { "LearningRate", "MomentumOptimizerValue", });
    internal_static_object_detection_protos_AdamOptimizer_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_object_detection_protos_AdamOptimizer_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_AdamOptimizer_descriptor,
        new java.lang.String[] { "LearningRate", "Epsilon", });
    internal_static_object_detection_protos_LearningRate_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_object_detection_protos_LearningRate_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_LearningRate_descriptor,
        new java.lang.String[] { "ConstantLearningRate", "ExponentialDecayLearningRate", "ManualStepLearningRate", "CosineDecayLearningRate", "LearningRate", });
    internal_static_object_detection_protos_ConstantLearningRate_descriptor =
      getDescriptor().getMessageTypes().get(5);
    internal_static_object_detection_protos_ConstantLearningRate_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_ConstantLearningRate_descriptor,
        new java.lang.String[] { "LearningRate", });
    internal_static_object_detection_protos_ExponentialDecayLearningRate_descriptor =
      getDescriptor().getMessageTypes().get(6);
    internal_static_object_detection_protos_ExponentialDecayLearningRate_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_ExponentialDecayLearningRate_descriptor,
        new java.lang.String[] { "InitialLearningRate", "DecaySteps", "DecayFactor", "Staircase", "BurninLearningRate", "BurninSteps", "MinLearningRate", });
    internal_static_object_detection_protos_ManualStepLearningRate_descriptor =
      getDescriptor().getMessageTypes().get(7);
    internal_static_object_detection_protos_ManualStepLearningRate_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_ManualStepLearningRate_descriptor,
        new java.lang.String[] { "InitialLearningRate", "Schedule", "Warmup", });
    internal_static_object_detection_protos_ManualStepLearningRate_LearningRateSchedule_descriptor =
      internal_static_object_detection_protos_ManualStepLearningRate_descriptor.getNestedTypes().get(0);
    internal_static_object_detection_protos_ManualStepLearningRate_LearningRateSchedule_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_ManualStepLearningRate_LearningRateSchedule_descriptor,
        new java.lang.String[] { "Step", "LearningRate", });
    internal_static_object_detection_protos_CosineDecayLearningRate_descriptor =
      getDescriptor().getMessageTypes().get(8);
    internal_static_object_detection_protos_CosineDecayLearningRate_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_object_detection_protos_CosineDecayLearningRate_descriptor,
        new java.lang.String[] { "LearningRateBase", "TotalSteps", "WarmupLearningRate", "WarmupSteps", "HoldBaseRateSteps", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
