// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: checkpoint_state.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code

using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Tensorflow {

  /// <summary>Holder for reflection information generated from checkpoint_state.proto</summary>
  public static partial class CheckpointStateReflection {

    #region Descriptor
    /// <summary>File descriptor for checkpoint_state.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static CheckpointStateReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChZjaGVja3BvaW50X3N0YXRlLnByb3RvEgp0ZW5zb3JmbG93Ip8BCg9DaGVj",
            "a3BvaW50U3RhdGUSHQoVbW9kZWxfY2hlY2twb2ludF9wYXRoGAEgASgJEiIK",
            "GmFsbF9tb2RlbF9jaGVja3BvaW50X3BhdGhzGAIgAygJEicKH2FsbF9tb2Rl",
            "bF9jaGVja3BvaW50X3RpbWVzdGFtcHMYAyADKAESIAoYbGFzdF9wcmVzZXJ2",
            "ZWRfdGltZXN0YW1wGAQgASgBQgP4AQFiBnByb3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { },
          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CheckpointState), global::Tensorflow.CheckpointState.Parser, new[]{ "ModelCheckpointPath", "AllModelCheckpointPaths", "AllModelCheckpointTimestamps", "LastPreservedTimestamp" }, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  /// <summary>
  /// Protocol buffer representing the checkpoint state.
  /// </summary>
  public sealed partial class CheckpointState : pb::IMessage<CheckpointState> {
    private static readonly pb::MessageParser<CheckpointState> _parser = new pb::MessageParser<CheckpointState>(() => new CheckpointState());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pb::MessageParser<CheckpointState> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Tensorflow.CheckpointStateReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public CheckpointState() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public CheckpointState(CheckpointState other) : this() {
      modelCheckpointPath_ = other.modelCheckpointPath_;
      allModelCheckpointPaths_ = other.allModelCheckpointPaths_.Clone();
      allModelCheckpointTimestamps_ = other.allModelCheckpointTimestamps_.Clone();
      lastPreservedTimestamp_ = other.lastPreservedTimestamp_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public CheckpointState Clone() {
      return new CheckpointState(this);
    }

    /// <summary>Field number for the "model_checkpoint_path" field.</summary>
    public const int ModelCheckpointPathFieldNumber = 1;
    private string modelCheckpointPath_ = "";
    /// <summary>
    /// Path to the most-recent model checkpoint.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public string ModelCheckpointPath {
      get { return modelCheckpointPath_; }
      set {
        modelCheckpointPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "all_model_checkpoint_paths" field.</summary>
    public const int AllModelCheckpointPathsFieldNumber = 2;
    private static readonly pb::FieldCodec<string> _repeated_allModelCheckpointPaths_codec
        = pb::FieldCodec.ForString(18);
    private readonly pbc::RepeatedField<string> allModelCheckpointPaths_ = new pbc::RepeatedField<string>();
    /// <summary>
    /// Paths to all not-yet-deleted model checkpoints, sorted from oldest to
    /// newest.
    /// Note that the value of model_checkpoint_path should be the last item in
    /// this list.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public pbc::RepeatedField<string> AllModelCheckpointPaths {
      get { return allModelCheckpointPaths_; }
    }

    /// <summary>Field number for the "all_model_checkpoint_timestamps" field.</summary>
    public const int AllModelCheckpointTimestampsFieldNumber = 3;
    private static readonly pb::FieldCodec<double> _repeated_allModelCheckpointTimestamps_codec
        = pb::FieldCodec.ForDouble(26);
    private readonly pbc::RepeatedField<double> allModelCheckpointTimestamps_ = new pbc::RepeatedField<double>();
    /// <summary>
    /// Unix timestamps corresponding to all_model_checkpoint_paths, indicating
    /// when each checkpoint was created.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public pbc::RepeatedField<double> AllModelCheckpointTimestamps {
      get { return allModelCheckpointTimestamps_; }
    }

    /// <summary>Field number for the "last_preserved_timestamp" field.</summary>
    public const int LastPreservedTimestampFieldNumber = 4;
    private double lastPreservedTimestamp_;
    /// <summary>
    /// Unix timestamp indicating the creation time for the last preserved
    /// checkpoint.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public double LastPreservedTimestamp {
      get { return lastPreservedTimestamp_; }
      set {
        lastPreservedTimestamp_ = value;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override bool Equals(object other) {
      return Equals(other as CheckpointState);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool Equals(CheckpointState other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (ModelCheckpointPath != other.ModelCheckpointPath) return false;
      if(!allModelCheckpointPaths_.Equals(other.allModelCheckpointPaths_)) return false;
      if(!allModelCheckpointTimestamps_.Equals(other.allModelCheckpointTimestamps_)) return false;
      if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LastPreservedTimestamp, other.LastPreservedTimestamp)) return false;
      return Equals(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override int GetHashCode() {
      int hash = 1;
      if (ModelCheckpointPath.Length != 0) hash ^= ModelCheckpointPath.GetHashCode();
      hash ^= allModelCheckpointPaths_.GetHashCode();
      hash ^= allModelCheckpointTimestamps_.GetHashCode();
      if (LastPreservedTimestamp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LastPreservedTimestamp);
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
      return hash;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void WriteTo(pb::CodedOutputStream output) {
      if (ModelCheckpointPath.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(ModelCheckpointPath);
      }
      allModelCheckpointPaths_.WriteTo(output, _repeated_allModelCheckpointPaths_codec);
      allModelCheckpointTimestamps_.WriteTo(output, _repeated_allModelCheckpointTimestamps_codec);
      if (LastPreservedTimestamp != 0D) {
        output.WriteRawTag(33);
        output.WriteDouble(LastPreservedTimestamp);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int CalculateSize() {
      int size = 0;
      if (ModelCheckpointPath.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(ModelCheckpointPath);
      }
      size += allModelCheckpointPaths_.CalculateSize(_repeated_allModelCheckpointPaths_codec);
      size += allModelCheckpointTimestamps_.CalculateSize(_repeated_allModelCheckpointTimestamps_codec);
      if (LastPreservedTimestamp != 0D) {
        size += 1 + 8;
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(CheckpointState other) {
      if (other == null) {
        return;
      }
      if (other.ModelCheckpointPath.Length != 0) {
        ModelCheckpointPath = other.ModelCheckpointPath;
      }
      allModelCheckpointPaths_.Add(other.allModelCheckpointPaths_);
      allModelCheckpointTimestamps_.Add(other.allModelCheckpointTimestamps_);
      if (other.LastPreservedTimestamp != 0D) {
        LastPreservedTimestamp = other.LastPreservedTimestamp;
      }
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
            break;
          case 10: {
            ModelCheckpointPath = input.ReadString();
            break;
          }
          case 18: {
            allModelCheckpointPaths_.AddEntriesFrom(input, _repeated_allModelCheckpointPaths_codec);
            break;
          }
          case 26:
          case 25: {
            allModelCheckpointTimestamps_.AddEntriesFrom(input, _repeated_allModelCheckpointTimestamps_codec);
            break;
          }
          case 33: {
            LastPreservedTimestamp = input.ReadDouble();
            break;
          }
        }
      }
    }

  }

  #endregion

}

#endregion Designer generated code
