// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/python/training/checkpoint_state.proto // #pragma warning disable 1591, 0612, 3021, 8981 #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 { /// Holder for reflection information generated from tensorflow/python/training/checkpoint_state.proto public static partial class CheckpointStateReflection { #region Descriptor /// File descriptor for tensorflow/python/training/checkpoint_state.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static CheckpointStateReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjF0ZW5zb3JmbG93L3B5dGhvbi90cmFpbmluZy9jaGVja3BvaW50X3N0YXRl", "LnByb3RvEgp0ZW5zb3JmbG93Ip8BCg9DaGVja3BvaW50U3RhdGUSHQoVbW9k", "ZWxfY2hlY2twb2ludF9wYXRoGAEgASgJEiIKGmFsbF9tb2RlbF9jaGVja3Bv", "aW50X3BhdGhzGAIgAygJEicKH2FsbF9tb2RlbF9jaGVja3BvaW50X3RpbWVz", "dGFtcHMYAyADKAESIAoYbGFzdF9wcmVzZXJ2ZWRfdGltZXN0YW1wGAQgASgB", "QgP4AQFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CheckpointState), global::Tensorflow.CheckpointState.Parser, new[]{ "ModelCheckpointPath", "AllModelCheckpointPaths", "AllModelCheckpointTimestamps", "LastPreservedTimestamp" }, null, null, null, null) })); } #endregion } #region Messages /// /// Protocol buffer representing the checkpoint state. /// public sealed partial class CheckpointState : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CheckpointState()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.CheckpointStateReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CheckpointState() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 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] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CheckpointState Clone() { return new CheckpointState(this); } /// Field number for the "model_checkpoint_path" field. public const int ModelCheckpointPathFieldNumber = 1; private string modelCheckpointPath_ = ""; /// /// Path to the most-recent model checkpoint. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ModelCheckpointPath { get { return modelCheckpointPath_; } set { modelCheckpointPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "all_model_checkpoint_paths" field. public const int AllModelCheckpointPathsFieldNumber = 2; private static readonly pb::FieldCodec _repeated_allModelCheckpointPaths_codec = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField allModelCheckpointPaths_ = new pbc::RepeatedField(); /// /// 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. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField AllModelCheckpointPaths { get { return allModelCheckpointPaths_; } } /// Field number for the "all_model_checkpoint_timestamps" field. public const int AllModelCheckpointTimestampsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_allModelCheckpointTimestamps_codec = pb::FieldCodec.ForDouble(26); private readonly pbc::RepeatedField allModelCheckpointTimestamps_ = new pbc::RepeatedField(); /// /// Unix timestamps corresponding to all_model_checkpoint_paths, indicating /// when each checkpoint was created. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField AllModelCheckpointTimestamps { get { return allModelCheckpointTimestamps_; } } /// Field number for the "last_preserved_timestamp" field. public const int LastPreservedTimestampFieldNumber = 4; private double lastPreservedTimestamp_; /// /// Unix timestamp indicating the creation time for the last preserved /// checkpoint. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double LastPreservedTimestamp { get { return lastPreservedTimestamp_; } set { lastPreservedTimestamp_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CheckpointState); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 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] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 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] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else 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); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (ModelCheckpointPath.Length != 0) { output.WriteRawTag(10); output.WriteString(ModelCheckpointPath); } allModelCheckpointPaths_.WriteTo(ref output, _repeated_allModelCheckpointPaths_codec); allModelCheckpointTimestamps_.WriteTo(ref output, _repeated_allModelCheckpointTimestamps_codec); if (LastPreservedTimestamp != 0D) { output.WriteRawTag(33); output.WriteDouble(LastPreservedTimestamp); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 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] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 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] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else 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; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { ModelCheckpointPath = input.ReadString(); break; } case 18: { allModelCheckpointPaths_.AddEntriesFrom(ref input, _repeated_allModelCheckpointPaths_codec); break; } case 26: case 25: { allModelCheckpointTimestamps_.AddEntriesFrom(ref input, _repeated_allModelCheckpointTimestamps_codec); break; } case 33: { LastPreservedTimestamp = input.ReadDouble(); break; } } } } #endif } #endregion } #endregion Designer generated code