// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/trackable_object_graph.proto // #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 { /// Holder for reflection information generated from tensorflow/core/protobuf/trackable_object_graph.proto public static partial class TrackableObjectGraphReflection { #region Descriptor /// File descriptor for tensorflow/core/protobuf/trackable_object_graph.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static TrackableObjectGraphReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjV0ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvdHJhY2thYmxlX29iamVjdF9n", "cmFwaC5wcm90bxIKdGVuc29yZmxvdyKDBQoUVHJhY2thYmxlT2JqZWN0R3Jh", "cGgSPwoFbm9kZXMYASADKAsyMC50ZW5zb3JmbG93LlRyYWNrYWJsZU9iamVj", "dEdyYXBoLlRyYWNrYWJsZU9iamVjdBqpBAoPVHJhY2thYmxlT2JqZWN0ElIK", "CGNoaWxkcmVuGAEgAygLMkAudGVuc29yZmxvdy5UcmFja2FibGVPYmplY3RH", "cmFwaC5UcmFja2FibGVPYmplY3QuT2JqZWN0UmVmZXJlbmNlElUKCmF0dHJp", "YnV0ZXMYAiADKAsyQS50ZW5zb3JmbG93LlRyYWNrYWJsZU9iamVjdEdyYXBo", "LlRyYWNrYWJsZU9iamVjdC5TZXJpYWxpemVkVGVuc29yEl4KDnNsb3RfdmFy", "aWFibGVzGAMgAygLMkYudGVuc29yZmxvdy5UcmFja2FibGVPYmplY3RHcmFw", "aC5UcmFja2FibGVPYmplY3QuU2xvdFZhcmlhYmxlUmVmZXJlbmNlGjYKD09i", "amVjdFJlZmVyZW5jZRIPCgdub2RlX2lkGAEgASgFEhIKCmxvY2FsX25hbWUY", "AiABKAkaZQoQU2VyaWFsaXplZFRlbnNvchIMCgRuYW1lGAEgASgJEhEKCWZ1", "bGxfbmFtZRgCIAEoCRIWCg5jaGVja3BvaW50X2tleRgDIAEoCRIYChBvcHRp", "b25hbF9yZXN0b3JlGAQgASgIGmwKFVNsb3RWYXJpYWJsZVJlZmVyZW5jZRIh", "ChlvcmlnaW5hbF92YXJpYWJsZV9ub2RlX2lkGAEgASgFEhEKCXNsb3RfbmFt", "ZRgCIAEoCRIdChVzbG90X3ZhcmlhYmxlX25vZGVfaWQYAyABKAVCWlpVZ2l0", "aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmZsb3cvdGVuc29yZmxvdy9nby9j", "b3JlL3Byb3RvYnVmL2Zvcl9jb3JlX3Byb3Rvc19nb19wcm90b/gBAWIGcHJv", "dG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TrackableObjectGraph), global::Tensorflow.TrackableObjectGraph.Parser, new[]{ "Nodes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TrackableObjectGraph.Types.TrackableObject), global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Parser, new[]{ "Children", "Attributes", "SlotVariables" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Types.ObjectReference), global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Types.ObjectReference.Parser, new[]{ "NodeId", "LocalName" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Types.SerializedTensor), global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Types.SerializedTensor.Parser, new[]{ "Name", "FullName", "CheckpointKey", "OptionalRestore" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Types.SlotVariableReference), global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Types.SlotVariableReference.Parser, new[]{ "OriginalVariableNodeId", "SlotName", "SlotVariableNodeId" }, null, null, null, null)})}) })); } #endregion } #region Messages public sealed partial class TrackableObjectGraph : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackableObjectGraph()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.TrackableObjectGraphReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public TrackableObjectGraph() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public TrackableObjectGraph(TrackableObjectGraph other) : this() { nodes_ = other.nodes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public TrackableObjectGraph Clone() { return new TrackableObjectGraph(this); } /// Field number for the "nodes" field. public const int NodesFieldNumber = 1; private static readonly pb::FieldCodec _repeated_nodes_codec = pb::FieldCodec.ForMessage(10, global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Parser); private readonly pbc::RepeatedField nodes_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Nodes { get { return nodes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as TrackableObjectGraph); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(TrackableObjectGraph other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!nodes_.Equals(other.nodes_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= nodes_.GetHashCode(); 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) { nodes_.WriteTo(output, _repeated_nodes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += nodes_.CalculateSize(_repeated_nodes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(TrackableObjectGraph other) { if (other == null) { return; } nodes_.Add(other.nodes_); _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: { nodes_.AddEntriesFrom(input, _repeated_nodes_codec); break; } } } } #region Nested types /// Container for nested types declared in the TrackableObjectGraph message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { public sealed partial class TrackableObject : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackableObject()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.TrackableObjectGraph.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public TrackableObject() { OnConstruction(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public TrackableObject(pbc::RepeatedField slot) { OnConstruction(); slotVariables_ = slot; } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public TrackableObject(TrackableObject other) : this() { children_ = other.children_.Clone(); attributes_ = other.attributes_.Clone(); slotVariables_ = other.slotVariables_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public TrackableObject Clone() { return new TrackableObject(this); } /// Field number for the "children" field. public const int ChildrenFieldNumber = 1; private static readonly pb::FieldCodec _repeated_children_codec = pb::FieldCodec.ForMessage(10, global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Types.ObjectReference.Parser); private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); /// /// Objects which this object depends on. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Children { get { return children_; } } /// Field number for the "attributes" field. public const int AttributesFieldNumber = 2; private static readonly pb::FieldCodec _repeated_attributes_codec = pb::FieldCodec.ForMessage(18, global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Types.SerializedTensor.Parser); private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); /// /// Serialized data specific to this object. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Attributes { get { return attributes_; } } /// Field number for the "slot_variables" field. public const int SlotVariablesFieldNumber = 3; private static readonly pb::FieldCodec _repeated_slotVariables_codec = pb::FieldCodec.ForMessage(26, global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Types.SlotVariableReference.Parser); private readonly pbc::RepeatedField slotVariables_ = new pbc::RepeatedField(); /// /// Slot variables owned by this object. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField SlotVariables { get { return slotVariables_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as TrackableObject); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(TrackableObject other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!children_.Equals(other.children_)) return false; if(!attributes_.Equals(other.attributes_)) return false; if(!slotVariables_.Equals(other.slotVariables_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= children_.GetHashCode(); hash ^= attributes_.GetHashCode(); hash ^= slotVariables_.GetHashCode(); 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) { children_.WriteTo(output, _repeated_children_codec); attributes_.WriteTo(output, _repeated_attributes_codec); slotVariables_.WriteTo(output, _repeated_slotVariables_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += children_.CalculateSize(_repeated_children_codec); size += attributes_.CalculateSize(_repeated_attributes_codec); size += slotVariables_.CalculateSize(_repeated_slotVariables_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(TrackableObject other) { if (other == null) { return; } children_.Add(other.children_); attributes_.Add(other.attributes_); slotVariables_.Add(other.slotVariables_); _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: { children_.AddEntriesFrom(input, _repeated_children_codec); break; } case 18: { attributes_.AddEntriesFrom(input, _repeated_attributes_codec); break; } case 26: { slotVariables_.AddEntriesFrom(input, _repeated_slotVariables_codec); break; } } } } #region Nested types /// Container for nested types declared in the TrackableObject message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { public sealed partial class ObjectReference : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ObjectReference()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ObjectReference() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ObjectReference(ObjectReference other) : this() { nodeId_ = other.nodeId_; localName_ = other.localName_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ObjectReference Clone() { return new ObjectReference(this); } /// Field number for the "node_id" field. public const int NodeIdFieldNumber = 1; private int nodeId_; /// /// An index into `TrackableObjectGraph.nodes`, indicating the object /// being referenced. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int NodeId { get { return nodeId_; } set { nodeId_ = value; } } /// Field number for the "local_name" field. public const int LocalNameFieldNumber = 2; private string localName_ = ""; /// /// A user-provided name for the edge. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string LocalName { get { return localName_; } set { localName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ObjectReference); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ObjectReference other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (NodeId != other.NodeId) return false; if (LocalName != other.LocalName) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (NodeId != 0) hash ^= NodeId.GetHashCode(); if (LocalName.Length != 0) hash ^= LocalName.GetHashCode(); 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 (NodeId != 0) { output.WriteRawTag(8); output.WriteInt32(NodeId); } if (LocalName.Length != 0) { output.WriteRawTag(18); output.WriteString(LocalName); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (NodeId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(NodeId); } if (LocalName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalName); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ObjectReference other) { if (other == null) { return; } if (other.NodeId != 0) { NodeId = other.NodeId; } if (other.LocalName.Length != 0) { LocalName = other.LocalName; } _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 8: { NodeId = input.ReadInt32(); break; } case 18: { LocalName = input.ReadString(); break; } } } } } public sealed partial class SerializedTensor : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SerializedTensor()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SerializedTensor() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SerializedTensor(SerializedTensor other) : this() { name_ = other.name_; fullName_ = other.fullName_; checkpointKey_ = other.checkpointKey_; optionalRestore_ = other.optionalRestore_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SerializedTensor Clone() { return new SerializedTensor(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; /// /// A name for the Tensor. Simple variables have only one /// `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may /// be restored on object creation as an optimization. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "full_name" field. public const int FullNameFieldNumber = 2; private string fullName_ = ""; /// /// The full name of the variable/tensor, if applicable. Used to allow /// name-based loading of checkpoints which were saved using an /// object-based API. Should match the checkpoint key which would have been /// assigned by tf.train.Saver. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FullName { get { return fullName_; } set { fullName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "checkpoint_key" field. public const int CheckpointKeyFieldNumber = 3; private string checkpointKey_ = ""; /// /// The generated name of the Tensor in the checkpoint. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string CheckpointKey { get { return checkpointKey_; } set { checkpointKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "optional_restore" field. public const int OptionalRestoreFieldNumber = 4; private bool optionalRestore_; /// /// Whether checkpoints should be considered as matching even without this /// value restored. Used for non-critical values which don't affect the /// TensorFlow graph, such as layer configurations. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool OptionalRestore { get { return optionalRestore_; } set { optionalRestore_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SerializedTensor); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SerializedTensor other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Name != other.Name) return false; if (FullName != other.FullName) return false; if (CheckpointKey != other.CheckpointKey) return false; if (OptionalRestore != other.OptionalRestore) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (FullName.Length != 0) hash ^= FullName.GetHashCode(); if (CheckpointKey.Length != 0) hash ^= CheckpointKey.GetHashCode(); if (OptionalRestore != false) hash ^= OptionalRestore.GetHashCode(); 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 (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (FullName.Length != 0) { output.WriteRawTag(18); output.WriteString(FullName); } if (CheckpointKey.Length != 0) { output.WriteRawTag(26); output.WriteString(CheckpointKey); } if (OptionalRestore != false) { output.WriteRawTag(32); output.WriteBool(OptionalRestore); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (FullName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FullName); } if (CheckpointKey.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CheckpointKey); } if (OptionalRestore != false) { size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SerializedTensor other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.FullName.Length != 0) { FullName = other.FullName; } if (other.CheckpointKey.Length != 0) { CheckpointKey = other.CheckpointKey; } if (other.OptionalRestore != false) { OptionalRestore = other.OptionalRestore; } _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: { Name = input.ReadString(); break; } case 18: { FullName = input.ReadString(); break; } case 26: { CheckpointKey = input.ReadString(); break; } case 32: { OptionalRestore = input.ReadBool(); break; } } } } } public sealed partial class SlotVariableReference : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SlotVariableReference()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.TrackableObjectGraph.Types.TrackableObject.Descriptor.NestedTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SlotVariableReference() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SlotVariableReference(SlotVariableReference other) : this() { originalVariableNodeId_ = other.originalVariableNodeId_; slotName_ = other.slotName_; slotVariableNodeId_ = other.slotVariableNodeId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SlotVariableReference Clone() { return new SlotVariableReference(this); } /// Field number for the "original_variable_node_id" field. public const int OriginalVariableNodeIdFieldNumber = 1; private int originalVariableNodeId_; /// /// An index into `TrackableObjectGraph.nodes`, indicating the /// variable object this slot was created for. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int OriginalVariableNodeId { get { return originalVariableNodeId_; } set { originalVariableNodeId_ = value; } } /// Field number for the "slot_name" field. public const int SlotNameFieldNumber = 2; private string slotName_ = ""; /// /// The name of the slot (e.g. "m"/"v"). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string SlotName { get { return slotName_; } set { slotName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "slot_variable_node_id" field. public const int SlotVariableNodeIdFieldNumber = 3; private int slotVariableNodeId_; /// /// An index into `TrackableObjectGraph.nodes`, indicating the /// `Object` with the value of the slot variable. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int SlotVariableNodeId { get { return slotVariableNodeId_; } set { slotVariableNodeId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SlotVariableReference); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SlotVariableReference other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (OriginalVariableNodeId != other.OriginalVariableNodeId) return false; if (SlotName != other.SlotName) return false; if (SlotVariableNodeId != other.SlotVariableNodeId) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (OriginalVariableNodeId != 0) hash ^= OriginalVariableNodeId.GetHashCode(); if (SlotName.Length != 0) hash ^= SlotName.GetHashCode(); if (SlotVariableNodeId != 0) hash ^= SlotVariableNodeId.GetHashCode(); 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 (OriginalVariableNodeId != 0) { output.WriteRawTag(8); output.WriteInt32(OriginalVariableNodeId); } if (SlotName.Length != 0) { output.WriteRawTag(18); output.WriteString(SlotName); } if (SlotVariableNodeId != 0) { output.WriteRawTag(24); output.WriteInt32(SlotVariableNodeId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (OriginalVariableNodeId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(OriginalVariableNodeId); } if (SlotName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SlotName); } if (SlotVariableNodeId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(SlotVariableNodeId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SlotVariableReference other) { if (other == null) { return; } if (other.OriginalVariableNodeId != 0) { OriginalVariableNodeId = other.OriginalVariableNodeId; } if (other.SlotName.Length != 0) { SlotName = other.SlotName; } if (other.SlotVariableNodeId != 0) { SlotVariableNodeId = other.SlotVariableNodeId; } _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 8: { OriginalVariableNodeId = input.ReadInt32(); break; } case 18: { SlotName = input.ReadString(); break; } case 24: { SlotVariableNodeId = input.ReadInt32(); break; } } } } } } #endregion } } #endregion } #endregion } #endregion Designer generated code