#define TRACE using System; using System.Buffers; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Numerics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security; using System.Security.Cryptography; using System.Security.Permissions; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using Google.Protobuf; using Google.Protobuf.Collections; using Google.Protobuf.Reflection; using Google.Protobuf.WellKnownTypes; using ICSharpCode.SharpZipLib.Core; using ICSharpCode.SharpZipLib.GZip; using ICSharpCode.SharpZipLib.Tar; using Microsoft.CodeAnalysis; using SkiaSharp; using Tensorboard; using TorchSharp.Modules; using TorchSharp.PInvoke; using TorchSharp.Utils; using TorchSharp.Utils.tensorboard.Enums; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = "")] [assembly: AssemblyCompany("TorchSharp")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("0.106.0.0")] [assembly: AssemblyInformationalVersion("0.106.0")] [assembly: AssemblyProduct("TorchSharp")] [assembly: AssemblyTitle("TorchSharp")] [assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.106.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] internal sealed class IsUnmanagedAttribute : Attribute { } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace Tensorboard { public static class AllocationDescriptionReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static AllocationDescriptionReflection() { //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00b8: Expected O, but got Unknown //IL_00b8: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CjV0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vYWxsb2NhdGlvbl9kZXNjcmlw" + "dGlvbi5wcm90bxILdGVuc29yYm9hcmQiowEKFUFsbG9jYXRpb25EZXNjcmlw" + "dGlvbhIXCg9yZXF1ZXN0ZWRfYnl0ZXMYASABKAMSFwoPYWxsb2NhdGVkX2J5" + "dGVzGAIgASgDEhYKDmFsbG9jYXRvcl9uYW1lGAMgASgJEhUKDWFsbG9jYXRp" + "b25faWQYBCABKAMSHAoUaGFzX3NpbmdsZV9yZWZlcmVuY2UYBSABKAgSCwoD" + "cHRyGAYgASgEQpsBChhvcmcudGVuc29yZmxvdy5mcmFtZXdvcmtCG0FsbG9j" + "YXRpb25EZXNjcmlwdGlvblByb3Rvc1ABWl1naXRodWIuY29tL3RlbnNvcmZs" + "b3cvdGVuc29yZmxvdy90ZW5zb3JmbG93L2dvL2NvcmUvZnJhbWV3b3JrL2Fs" + "bG9jYXRpb25fZGVzY3JpcHRpb25fZ29fcHJvdG/4AQFiBnByb3RvMw=="), (FileDescriptor[])(object)new FileDescriptor[0], new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(AllocationDescription), (MessageParser)(object)AllocationDescription.Parser, new string[6] { "RequestedBytes", "AllocatedBytes", "AllocatorName", "AllocationId", "HasSingleReference", "Ptr" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class AllocationDescription : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new AllocationDescription())); private UnknownFieldSet _unknownFields; public const int RequestedBytesFieldNumber = 1; private long requestedBytes_; public const int AllocatedBytesFieldNumber = 2; private long allocatedBytes_; public const int AllocatorNameFieldNumber = 3; private string allocatorName_ = ""; public const int AllocationIdFieldNumber = 4; private long allocationId_; public const int HasSingleReferenceFieldNumber = 5; private bool hasSingleReference_; public const int PtrFieldNumber = 6; private ulong ptr_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => AllocationDescriptionReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public long RequestedBytes { get { return requestedBytes_; } set { requestedBytes_ = value; } } [DebuggerNonUserCode] public long AllocatedBytes { get { return allocatedBytes_; } set { allocatedBytes_ = value; } } [DebuggerNonUserCode] public string AllocatorName { get { return allocatorName_; } set { allocatorName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public long AllocationId { get { return allocationId_; } set { allocationId_ = value; } } [DebuggerNonUserCode] public bool HasSingleReference { get { return hasSingleReference_; } set { hasSingleReference_ = value; } } [DebuggerNonUserCode] public ulong Ptr { get { return ptr_; } set { ptr_ = value; } } [DebuggerNonUserCode] public AllocationDescription() { } [DebuggerNonUserCode] public AllocationDescription(AllocationDescription other) : this() { requestedBytes_ = other.requestedBytes_; allocatedBytes_ = other.allocatedBytes_; allocatorName_ = other.allocatorName_; allocationId_ = other.allocationId_; hasSingleReference_ = other.hasSingleReference_; ptr_ = other.ptr_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public AllocationDescription Clone() { return new AllocationDescription(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as AllocationDescription); } [DebuggerNonUserCode] public bool Equals(AllocationDescription other) { if (other == null) { return false; } if (other == this) { return true; } if (RequestedBytes != other.RequestedBytes) { return false; } if (AllocatedBytes != other.AllocatedBytes) { return false; } if (AllocatorName != other.AllocatorName) { return false; } if (AllocationId != other.AllocationId) { return false; } if (HasSingleReference != other.HasSingleReference) { return false; } if (Ptr != other.Ptr) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (RequestedBytes != 0L) { num ^= RequestedBytes.GetHashCode(); } if (AllocatedBytes != 0L) { num ^= AllocatedBytes.GetHashCode(); } if (AllocatorName.Length != 0) { num ^= AllocatorName.GetHashCode(); } if (AllocationId != 0L) { num ^= AllocationId.GetHashCode(); } if (HasSingleReference) { num ^= HasSingleReference.GetHashCode(); } if (Ptr != 0L) { num ^= Ptr.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (RequestedBytes != 0L) { output.WriteRawTag((byte)8); output.WriteInt64(RequestedBytes); } if (AllocatedBytes != 0L) { output.WriteRawTag((byte)16); output.WriteInt64(AllocatedBytes); } if (AllocatorName.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(AllocatorName); } if (AllocationId != 0L) { output.WriteRawTag((byte)32); output.WriteInt64(AllocationId); } if (HasSingleReference) { output.WriteRawTag((byte)40); output.WriteBool(HasSingleReference); } if (Ptr != 0L) { output.WriteRawTag((byte)48); output.WriteUInt64(Ptr); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (RequestedBytes != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(RequestedBytes); } if (AllocatedBytes != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(AllocatedBytes); } if (AllocatorName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(AllocatorName); } if (AllocationId != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(AllocationId); } if (HasSingleReference) { num += 2; } if (Ptr != 0L) { num += 1 + CodedOutputStream.ComputeUInt64Size(Ptr); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(AllocationDescription other) { if (other != null) { if (other.RequestedBytes != 0L) { RequestedBytes = other.RequestedBytes; } if (other.AllocatedBytes != 0L) { AllocatedBytes = other.AllocatedBytes; } if (other.AllocatorName.Length != 0) { AllocatorName = other.AllocatorName; } if (other.AllocationId != 0L) { AllocationId = other.AllocationId; } if (other.HasSingleReference) { HasSingleReference = other.HasSingleReference; } if (other.Ptr != 0L) { Ptr = other.Ptr; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: RequestedBytes = input.ReadInt64(); break; case 16u: AllocatedBytes = input.ReadInt64(); break; case 26u: AllocatorName = input.ReadString(); break; case 32u: AllocationId = input.ReadInt64(); break; case 40u: HasSingleReference = input.ReadBool(); break; case 48u: Ptr = input.ReadUInt64(); break; } } } } public static class ApiDefReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static ApiDefReflection() { //IL_01bf: Unknown result type (might be due to invalid IL or missing references) //IL_01c5: Expected O, but got Unknown //IL_01f8: Unknown result type (might be due to invalid IL or missing references) //IL_01fe: Expected O, but got Unknown //IL_0239: Unknown result type (might be due to invalid IL or missing references) //IL_023f: Expected O, but got Unknown //IL_023f: Unknown result type (might be due to invalid IL or missing references) //IL_0245: Expected O, but got Unknown //IL_0268: Unknown result type (might be due to invalid IL or missing references) //IL_026e: Expected O, but got Unknown //IL_026e: Unknown result type (might be due to invalid IL or missing references) //IL_0278: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CiZ0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vYXBpX2RlZi5wcm90bxILdGVu" + "c29yYm9hcmQaKXRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by9hdHRyX3ZhbHVl" + "LnByb3RvIucFCgZBcGlEZWYSFQoNZ3JhcGhfb3BfbmFtZRgBIAEoCRIbChNk" + "ZXByZWNhdGlvbl9tZXNzYWdlGAwgASgJEhsKE2RlcHJlY2F0aW9uX3ZlcnNp" + "b24YDSABKAUSMgoKdmlzaWJpbGl0eRgCIAEoDjIeLnRlbnNvcmJvYXJkLkFw" + "aURlZi5WaXNpYmlsaXR5Ei4KCGVuZHBvaW50GAMgAygLMhwudGVuc29yYm9h" + "cmQuQXBpRGVmLkVuZHBvaW50EicKBmluX2FyZxgEIAMoCzIXLnRlbnNvcmJv" + "YXJkLkFwaURlZi5BcmcSKAoHb3V0X2FyZxgFIAMoCzIXLnRlbnNvcmJvYXJk" + "LkFwaURlZi5BcmcSEQoJYXJnX29yZGVyGAsgAygJEiYKBGF0dHIYBiADKAsy" + "GC50ZW5zb3Jib2FyZC5BcGlEZWYuQXR0chIPCgdzdW1tYXJ5GAcgASgJEhMK" + "C2Rlc2NyaXB0aW9uGAggASgJEhoKEmRlc2NyaXB0aW9uX3ByZWZpeBgJIAEo" + "CRIaChJkZXNjcmlwdGlvbl9zdWZmaXgYCiABKAkaSQoIRW5kcG9pbnQSDAoE" + "bmFtZRgBIAEoCRISCgpkZXByZWNhdGVkGAMgASgIEhsKE2RlcHJlY2F0aW9u" + "X3ZlcnNpb24YBCABKAUaOwoDQXJnEgwKBG5hbWUYASABKAkSEQoJcmVuYW1l" + "X3RvGAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJGmsKBEF0dHISDAoEbmFt" + "ZRgBIAEoCRIRCglyZW5hbWVfdG8YAiABKAkSLQoNZGVmYXVsdF92YWx1ZRgD" + "IAEoCzIWLnRlbnNvcmJvYXJkLkF0dHJWYWx1ZRITCgtkZXNjcmlwdGlvbhgE" + "IAEoCSJHCgpWaXNpYmlsaXR5EhYKEkRFRkFVTFRfVklTSUJJTElUWRAAEgsK" + "B1ZJU0lCTEUQARIICgRTS0lQEAISCgoGSElEREVOEAMiKgoHQXBpRGVmcxIf" + "CgJvcBgBIAMoCzITLnRlbnNvcmJvYXJkLkFwaURlZkJ9ChhvcmcudGVuc29y" + "Zmxvdy5mcmFtZXdvcmtCDEFwaURlZlByb3Rvc1ABWk5naXRodWIuY29tL3Rl" + "bnNvcmZsb3cvdGVuc29yZmxvdy90ZW5zb3JmbG93L2dvL2NvcmUvZnJhbWV3" + "b3JrL2FwaV9kZWZfZ29fcHJvdG/4AQFiBnByb3RvMw=="), (FileDescriptor[])(object)new FileDescriptor[1] { AttrValueReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2] { new GeneratedClrTypeInfo(typeof(ApiDef), (MessageParser)(object)ApiDef.Parser, new string[13] { "GraphOpName", "DeprecationMessage", "DeprecationVersion", "Visibility", "Endpoint", "InArg", "OutArg", "ArgOrder", "Attr", "Summary", "Description", "DescriptionPrefix", "DescriptionSuffix" }, (string[])null, new Type[1] { typeof(ApiDef.Types.Visibility) }, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[3] { new GeneratedClrTypeInfo(typeof(ApiDef.Types.Endpoint), (MessageParser)(object)ApiDef.Types.Endpoint.Parser, new string[3] { "Name", "Deprecated", "DeprecationVersion" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(ApiDef.Types.Arg), (MessageParser)(object)ApiDef.Types.Arg.Parser, new string[3] { "Name", "RenameTo", "Description" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(ApiDef.Types.Attr), (MessageParser)(object)ApiDef.Types.Attr.Parser, new string[4] { "Name", "RenameTo", "DefaultValue", "Description" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }), new GeneratedClrTypeInfo(typeof(ApiDefs), (MessageParser)(object)ApiDefs.Parser, new string[1] { "Op" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class ApiDef : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public enum Visibility { [OriginalName("DEFAULT_VISIBILITY")] DefaultVisibility, [OriginalName("VISIBLE")] Visible, [OriginalName("SKIP")] Skip, [OriginalName("HIDDEN")] Hidden } public sealed class Endpoint : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new Endpoint())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int DeprecatedFieldNumber = 3; private bool deprecated_; public const int DeprecationVersionFieldNumber = 4; private int deprecationVersion_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ApiDef.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public bool Deprecated { get { return deprecated_; } set { deprecated_ = value; } } [DebuggerNonUserCode] public int DeprecationVersion { get { return deprecationVersion_; } set { deprecationVersion_ = value; } } [DebuggerNonUserCode] public Endpoint() { } [DebuggerNonUserCode] public Endpoint(Endpoint other) : this() { name_ = other.name_; deprecated_ = other.deprecated_; deprecationVersion_ = other.deprecationVersion_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public Endpoint Clone() { return new Endpoint(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as Endpoint); } [DebuggerNonUserCode] public bool Equals(Endpoint other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (Deprecated != other.Deprecated) { return false; } if (DeprecationVersion != other.DeprecationVersion) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (Deprecated) { num ^= Deprecated.GetHashCode(); } if (DeprecationVersion != 0) { num ^= DeprecationVersion.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (Deprecated) { output.WriteRawTag((byte)24); output.WriteBool(Deprecated); } if (DeprecationVersion != 0) { output.WriteRawTag((byte)32); output.WriteInt32(DeprecationVersion); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (Deprecated) { num += 2; } if (DeprecationVersion != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(DeprecationVersion); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(Endpoint other) { if (other != null) { if (other.Name.Length != 0) { Name = other.Name; } if (other.Deprecated) { Deprecated = other.Deprecated; } if (other.DeprecationVersion != 0) { DeprecationVersion = other.DeprecationVersion; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 24u: Deprecated = input.ReadBool(); break; case 32u: DeprecationVersion = input.ReadInt32(); break; } } } } public sealed class Arg : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new Arg())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int RenameToFieldNumber = 2; private string renameTo_ = ""; public const int DescriptionFieldNumber = 3; private string description_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ApiDef.Descriptor.NestedTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string RenameTo { get { return renameTo_; } set { renameTo_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string Description { get { return description_; } set { description_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public Arg() { } [DebuggerNonUserCode] public Arg(Arg other) : this() { name_ = other.name_; renameTo_ = other.renameTo_; description_ = other.description_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public Arg Clone() { return new Arg(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as Arg); } [DebuggerNonUserCode] public bool Equals(Arg other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (RenameTo != other.RenameTo) { return false; } if (Description != other.Description) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (RenameTo.Length != 0) { num ^= RenameTo.GetHashCode(); } if (Description.Length != 0) { num ^= Description.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (RenameTo.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(RenameTo); } if (Description.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(Description); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (RenameTo.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(RenameTo); } if (Description.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Description); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(Arg other) { if (other != null) { if (other.Name.Length != 0) { Name = other.Name; } if (other.RenameTo.Length != 0) { RenameTo = other.RenameTo; } if (other.Description.Length != 0) { Description = other.Description; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: RenameTo = input.ReadString(); break; case 26u: Description = input.ReadString(); break; } } } } public sealed class Attr : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new Attr())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int RenameToFieldNumber = 2; private string renameTo_ = ""; public const int DefaultValueFieldNumber = 3; private AttrValue defaultValue_; public const int DescriptionFieldNumber = 4; private string description_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ApiDef.Descriptor.NestedTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string RenameTo { get { return renameTo_; } set { renameTo_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public AttrValue DefaultValue { get { return defaultValue_; } set { defaultValue_ = value; } } [DebuggerNonUserCode] public string Description { get { return description_; } set { description_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public Attr() { } [DebuggerNonUserCode] public Attr(Attr other) : this() { name_ = other.name_; renameTo_ = other.renameTo_; defaultValue_ = ((other.defaultValue_ != null) ? other.defaultValue_.Clone() : null); description_ = other.description_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public Attr Clone() { return new Attr(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as Attr); } [DebuggerNonUserCode] public bool Equals(Attr other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (RenameTo != other.RenameTo) { return false; } if (!object.Equals(DefaultValue, other.DefaultValue)) { return false; } if (Description != other.Description) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (RenameTo.Length != 0) { num ^= RenameTo.GetHashCode(); } if (defaultValue_ != null) { num ^= DefaultValue.GetHashCode(); } if (Description.Length != 0) { num ^= Description.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (RenameTo.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(RenameTo); } if (defaultValue_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)DefaultValue); } if (Description.Length != 0) { output.WriteRawTag((byte)34); output.WriteString(Description); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (RenameTo.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(RenameTo); } if (defaultValue_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)DefaultValue); } if (Description.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Description); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(Attr other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.RenameTo.Length != 0) { RenameTo = other.RenameTo; } if (other.defaultValue_ != null) { if (defaultValue_ == null) { DefaultValue = new AttrValue(); } DefaultValue.MergeFrom(other.DefaultValue); } if (other.Description.Length != 0) { Description = other.Description; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: RenameTo = input.ReadString(); break; case 26u: if (defaultValue_ == null) { DefaultValue = new AttrValue(); } input.ReadMessage((IMessage)(object)DefaultValue); break; case 34u: Description = input.ReadString(); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new ApiDef())); private UnknownFieldSet _unknownFields; public const int GraphOpNameFieldNumber = 1; private string graphOpName_ = ""; public const int DeprecationMessageFieldNumber = 12; private string deprecationMessage_ = ""; public const int DeprecationVersionFieldNumber = 13; private int deprecationVersion_; public const int VisibilityFieldNumber = 2; private Types.Visibility visibility_; public const int EndpointFieldNumber = 3; private static readonly FieldCodec _repeated_endpoint_codec = FieldCodec.ForMessage(26u, Types.Endpoint.Parser); private readonly RepeatedField endpoint_ = new RepeatedField(); public const int InArgFieldNumber = 4; private static readonly FieldCodec _repeated_inArg_codec = FieldCodec.ForMessage(34u, Types.Arg.Parser); private readonly RepeatedField inArg_ = new RepeatedField(); public const int OutArgFieldNumber = 5; private static readonly FieldCodec _repeated_outArg_codec = FieldCodec.ForMessage(42u, Types.Arg.Parser); private readonly RepeatedField outArg_ = new RepeatedField(); public const int ArgOrderFieldNumber = 11; private static readonly FieldCodec _repeated_argOrder_codec = FieldCodec.ForString(90u); private readonly RepeatedField argOrder_ = new RepeatedField(); public const int AttrFieldNumber = 6; private static readonly FieldCodec _repeated_attr_codec = FieldCodec.ForMessage(50u, Types.Attr.Parser); private readonly RepeatedField attr_ = new RepeatedField(); public const int SummaryFieldNumber = 7; private string summary_ = ""; public const int DescriptionFieldNumber = 8; private string description_ = ""; public const int DescriptionPrefixFieldNumber = 9; private string descriptionPrefix_ = ""; public const int DescriptionSuffixFieldNumber = 10; private string descriptionSuffix_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ApiDefReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string GraphOpName { get { return graphOpName_; } set { graphOpName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string DeprecationMessage { get { return deprecationMessage_; } set { deprecationMessage_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public int DeprecationVersion { get { return deprecationVersion_; } set { deprecationVersion_ = value; } } [DebuggerNonUserCode] public Types.Visibility Visibility { get { return visibility_; } set { visibility_ = value; } } [DebuggerNonUserCode] public RepeatedField Endpoint => endpoint_; [DebuggerNonUserCode] public RepeatedField InArg => inArg_; [DebuggerNonUserCode] public RepeatedField OutArg => outArg_; [DebuggerNonUserCode] public RepeatedField ArgOrder => argOrder_; [DebuggerNonUserCode] public RepeatedField Attr => attr_; [DebuggerNonUserCode] public string Summary { get { return summary_; } set { summary_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string Description { get { return description_; } set { description_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string DescriptionPrefix { get { return descriptionPrefix_; } set { descriptionPrefix_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string DescriptionSuffix { get { return descriptionSuffix_; } set { descriptionSuffix_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public ApiDef() { } [DebuggerNonUserCode] public ApiDef(ApiDef other) : this() { graphOpName_ = other.graphOpName_; deprecationMessage_ = other.deprecationMessage_; deprecationVersion_ = other.deprecationVersion_; visibility_ = other.visibility_; endpoint_ = other.endpoint_.Clone(); inArg_ = other.inArg_.Clone(); outArg_ = other.outArg_.Clone(); argOrder_ = other.argOrder_.Clone(); attr_ = other.attr_.Clone(); summary_ = other.summary_; description_ = other.description_; descriptionPrefix_ = other.descriptionPrefix_; descriptionSuffix_ = other.descriptionSuffix_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ApiDef Clone() { return new ApiDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ApiDef); } [DebuggerNonUserCode] public bool Equals(ApiDef other) { if (other == null) { return false; } if (other == this) { return true; } if (GraphOpName != other.GraphOpName) { return false; } if (DeprecationMessage != other.DeprecationMessage) { return false; } if (DeprecationVersion != other.DeprecationVersion) { return false; } if (Visibility != other.Visibility) { return false; } if (!endpoint_.Equals(other.endpoint_)) { return false; } if (!inArg_.Equals(other.inArg_)) { return false; } if (!outArg_.Equals(other.outArg_)) { return false; } if (!argOrder_.Equals(other.argOrder_)) { return false; } if (!attr_.Equals(other.attr_)) { return false; } if (Summary != other.Summary) { return false; } if (Description != other.Description) { return false; } if (DescriptionPrefix != other.DescriptionPrefix) { return false; } if (DescriptionSuffix != other.DescriptionSuffix) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (GraphOpName.Length != 0) { num ^= GraphOpName.GetHashCode(); } if (DeprecationMessage.Length != 0) { num ^= DeprecationMessage.GetHashCode(); } if (DeprecationVersion != 0) { num ^= DeprecationVersion.GetHashCode(); } if (Visibility != Types.Visibility.DefaultVisibility) { num ^= Visibility.GetHashCode(); } num ^= ((object)endpoint_).GetHashCode(); num ^= ((object)inArg_).GetHashCode(); num ^= ((object)outArg_).GetHashCode(); num ^= ((object)argOrder_).GetHashCode(); num ^= ((object)attr_).GetHashCode(); if (Summary.Length != 0) { num ^= Summary.GetHashCode(); } if (Description.Length != 0) { num ^= Description.GetHashCode(); } if (DescriptionPrefix.Length != 0) { num ^= DescriptionPrefix.GetHashCode(); } if (DescriptionSuffix.Length != 0) { num ^= DescriptionSuffix.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (GraphOpName.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(GraphOpName); } if (Visibility != Types.Visibility.DefaultVisibility) { output.WriteRawTag((byte)16); output.WriteEnum((int)Visibility); } endpoint_.WriteTo(output, _repeated_endpoint_codec); inArg_.WriteTo(output, _repeated_inArg_codec); outArg_.WriteTo(output, _repeated_outArg_codec); attr_.WriteTo(output, _repeated_attr_codec); if (Summary.Length != 0) { output.WriteRawTag((byte)58); output.WriteString(Summary); } if (Description.Length != 0) { output.WriteRawTag((byte)66); output.WriteString(Description); } if (DescriptionPrefix.Length != 0) { output.WriteRawTag((byte)74); output.WriteString(DescriptionPrefix); } if (DescriptionSuffix.Length != 0) { output.WriteRawTag((byte)82); output.WriteString(DescriptionSuffix); } argOrder_.WriteTo(output, _repeated_argOrder_codec); if (DeprecationMessage.Length != 0) { output.WriteRawTag((byte)98); output.WriteString(DeprecationMessage); } if (DeprecationVersion != 0) { output.WriteRawTag((byte)104); output.WriteInt32(DeprecationVersion); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (GraphOpName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(GraphOpName); } if (DeprecationMessage.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(DeprecationMessage); } if (DeprecationVersion != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(DeprecationVersion); } if (Visibility != Types.Visibility.DefaultVisibility) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Visibility); } num += endpoint_.CalculateSize(_repeated_endpoint_codec); num += inArg_.CalculateSize(_repeated_inArg_codec); num += outArg_.CalculateSize(_repeated_outArg_codec); num += argOrder_.CalculateSize(_repeated_argOrder_codec); num += attr_.CalculateSize(_repeated_attr_codec); if (Summary.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Summary); } if (Description.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Description); } if (DescriptionPrefix.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(DescriptionPrefix); } if (DescriptionSuffix.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(DescriptionSuffix); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ApiDef other) { if (other != null) { if (other.GraphOpName.Length != 0) { GraphOpName = other.GraphOpName; } if (other.DeprecationMessage.Length != 0) { DeprecationMessage = other.DeprecationMessage; } if (other.DeprecationVersion != 0) { DeprecationVersion = other.DeprecationVersion; } if (other.Visibility != Types.Visibility.DefaultVisibility) { Visibility = other.Visibility; } endpoint_.Add((IEnumerable)other.endpoint_); inArg_.Add((IEnumerable)other.inArg_); outArg_.Add((IEnumerable)other.outArg_); argOrder_.Add((IEnumerable)other.argOrder_); attr_.Add((IEnumerable)other.attr_); if (other.Summary.Length != 0) { Summary = other.Summary; } if (other.Description.Length != 0) { Description = other.Description; } if (other.DescriptionPrefix.Length != 0) { DescriptionPrefix = other.DescriptionPrefix; } if (other.DescriptionSuffix.Length != 0) { DescriptionSuffix = other.DescriptionSuffix; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: GraphOpName = input.ReadString(); break; case 16u: Visibility = (Types.Visibility)input.ReadEnum(); break; case 26u: endpoint_.AddEntriesFrom(input, _repeated_endpoint_codec); break; case 34u: inArg_.AddEntriesFrom(input, _repeated_inArg_codec); break; case 42u: outArg_.AddEntriesFrom(input, _repeated_outArg_codec); break; case 50u: attr_.AddEntriesFrom(input, _repeated_attr_codec); break; case 58u: Summary = input.ReadString(); break; case 66u: Description = input.ReadString(); break; case 74u: DescriptionPrefix = input.ReadString(); break; case 82u: DescriptionSuffix = input.ReadString(); break; case 90u: argOrder_.AddEntriesFrom(input, _repeated_argOrder_codec); break; case 98u: DeprecationMessage = input.ReadString(); break; case 104u: DeprecationVersion = input.ReadInt32(); break; } } } } public sealed class ApiDefs : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new ApiDefs())); private UnknownFieldSet _unknownFields; public const int OpFieldNumber = 1; private static readonly FieldCodec _repeated_op_codec = FieldCodec.ForMessage(10u, ApiDef.Parser); private readonly RepeatedField op_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ApiDefReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Op => op_; [DebuggerNonUserCode] public ApiDefs() { } [DebuggerNonUserCode] public ApiDefs(ApiDefs other) : this() { op_ = other.op_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ApiDefs Clone() { return new ApiDefs(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ApiDefs); } [DebuggerNonUserCode] public bool Equals(ApiDefs other) { if (other == null) { return false; } if (other == this) { return true; } if (!op_.Equals(other.op_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)op_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { op_.WriteTo(output, _repeated_op_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += op_.CalculateSize(_repeated_op_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ApiDefs other) { if (other != null) { op_.Add((IEnumerable)other.op_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { op_.AddEntriesFrom(input, _repeated_op_codec); } } } } public static class AttrValueReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static AttrValueReflection() { //IL_01d7: Unknown result type (might be due to invalid IL or missing references) //IL_01dd: Expected O, but got Unknown //IL_01dd: Unknown result type (might be due to invalid IL or missing references) //IL_01e3: Expected O, but got Unknown //IL_0213: Unknown result type (might be due to invalid IL or missing references) //IL_0219: Expected O, but got Unknown //IL_0219: Unknown result type (might be due to invalid IL or missing references) //IL_0223: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("Cil0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vYXR0cl92YWx1ZS5wcm90bxIL" + "dGVuc29yYm9hcmQaJXRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by90ZW5zb3Iu" + "cHJvdG8aK3RlbnNvcmJvYXJkL2NvbXBhdC9wcm90by90ZW5zb3Jfc2hhcGUu" + "cHJvdG8aJHRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by90eXBlcy5wcm90byKv" + "BAoJQXR0clZhbHVlEgsKAXMYAiABKAxIABILCgFpGAMgASgDSAASCwoBZhgE" + "IAEoAkgAEgsKAWIYBSABKAhIABIlCgR0eXBlGAYgASgOMhUudGVuc29yYm9h" + "cmQuRGF0YVR5cGVIABIuCgVzaGFwZRgHIAEoCzIdLnRlbnNvcmJvYXJkLlRl" + "bnNvclNoYXBlUHJvdG9IABIqCgZ0ZW5zb3IYCCABKAsyGC50ZW5zb3Jib2Fy" + "ZC5UZW5zb3JQcm90b0gAEjAKBGxpc3QYASABKAsyIC50ZW5zb3Jib2FyZC5B" + "dHRyVmFsdWUuTGlzdFZhbHVlSAASKQoEZnVuYxgKIAEoCzIZLnRlbnNvcmJv" + "YXJkLk5hbWVBdHRyTGlzdEgAEhUKC3BsYWNlaG9sZGVyGAkgASgJSAAa7QEK" + "CUxpc3RWYWx1ZRIJCgFzGAIgAygMEg0KAWkYAyADKANCAhABEg0KAWYYBCAD" + "KAJCAhABEg0KAWIYBSADKAhCAhABEicKBHR5cGUYBiADKA4yFS50ZW5zb3Ji" + "b2FyZC5EYXRhVHlwZUICEAESLAoFc2hhcGUYByADKAsyHS50ZW5zb3Jib2Fy" + "ZC5UZW5zb3JTaGFwZVByb3RvEigKBnRlbnNvchgIIAMoCzIYLnRlbnNvcmJv" + "YXJkLlRlbnNvclByb3RvEicKBGZ1bmMYCSADKAsyGS50ZW5zb3Jib2FyZC5O" + "YW1lQXR0ckxpc3RCBwoFdmFsdWUilAEKDE5hbWVBdHRyTGlzdBIMCgRuYW1l" + "GAEgASgJEjEKBGF0dHIYAiADKAsyIy50ZW5zb3Jib2FyZC5OYW1lQXR0ckxp" + "c3QuQXR0ckVudHJ5GkMKCUF0dHJFbnRyeRILCgNrZXkYASABKAkSJQoFdmFs" + "dWUYAiABKAsyFi50ZW5zb3Jib2FyZC5BdHRyVmFsdWU6AjgBQoMBChhvcmcu" + "dGVuc29yZmxvdy5mcmFtZXdvcmtCD0F0dHJWYWx1ZVByb3Rvc1ABWlFnaXRo" + "dWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90ZW5zb3JmbG93L2dvL2Nv" + "cmUvZnJhbWV3b3JrL2F0dHJfdmFsdWVfZ29fcHJvdG/4AQFiBnByb3RvMw=="), (FileDescriptor[])(object)new FileDescriptor[3] { TensorReflection.Descriptor, TensorShapeReflection.Descriptor, TypesReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2] { new GeneratedClrTypeInfo(typeof(AttrValue), (MessageParser)(object)AttrValue.Parser, new string[10] { "S", "I", "F", "B", "Type", "Shape", "Tensor", "List", "Func", "Placeholder" }, new string[1] { "Value" }, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(AttrValue.Types.ListValue), (MessageParser)(object)AttrValue.Types.ListValue.Parser, new string[8] { "S", "I", "F", "B", "Type", "Shape", "Tensor", "Func" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }), new GeneratedClrTypeInfo(typeof(NameAttrList), (MessageParser)(object)NameAttrList.Parser, new string[2] { "Name", "Attr" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1]) })); } } public sealed class AttrValue : IMessage, IMessage, IEquatable, IDeepCloneable { public enum ValueOneofCase { None = 0, S = 2, I = 3, F = 4, B = 5, Type = 6, Shape = 7, Tensor = 8, List = 1, Func = 10, Placeholder = 9 } [DebuggerNonUserCode] public static class Types { public sealed class ListValue : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new ListValue())); private UnknownFieldSet _unknownFields; public const int SFieldNumber = 2; private static readonly FieldCodec _repeated_s_codec = FieldCodec.ForBytes(18u); private readonly RepeatedField s_ = new RepeatedField(); public const int IFieldNumber = 3; private static readonly FieldCodec _repeated_i_codec = FieldCodec.ForInt64(26u); private readonly RepeatedField i_ = new RepeatedField(); public const int FFieldNumber = 4; private static readonly FieldCodec _repeated_f_codec = FieldCodec.ForFloat(34u); private readonly RepeatedField f_ = new RepeatedField(); public const int BFieldNumber = 5; private static readonly FieldCodec _repeated_b_codec = FieldCodec.ForBool(42u); private readonly RepeatedField b_ = new RepeatedField(); public const int TypeFieldNumber = 6; private static readonly FieldCodec _repeated_type_codec = FieldCodec.ForEnum(50u, (Func)((DataType x) => (int)x), (Func)((int x) => (DataType)x)); private readonly RepeatedField type_ = new RepeatedField(); public const int ShapeFieldNumber = 7; private static readonly FieldCodec _repeated_shape_codec = FieldCodec.ForMessage(58u, TensorShapeProto.Parser); private readonly RepeatedField shape_ = new RepeatedField(); public const int TensorFieldNumber = 8; private static readonly FieldCodec _repeated_tensor_codec = FieldCodec.ForMessage(66u, TensorProto.Parser); private readonly RepeatedField tensor_ = new RepeatedField(); public const int FuncFieldNumber = 9; private static readonly FieldCodec _repeated_func_codec = FieldCodec.ForMessage(74u, NameAttrList.Parser); private readonly RepeatedField func_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => AttrValue.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField S => s_; [DebuggerNonUserCode] public RepeatedField I => i_; [DebuggerNonUserCode] public RepeatedField F => f_; [DebuggerNonUserCode] public RepeatedField B => b_; [DebuggerNonUserCode] public RepeatedField Type => type_; [DebuggerNonUserCode] public RepeatedField Shape => shape_; [DebuggerNonUserCode] public RepeatedField Tensor => tensor_; [DebuggerNonUserCode] public RepeatedField Func => func_; [DebuggerNonUserCode] public ListValue() { } [DebuggerNonUserCode] public ListValue(ListValue other) : this() { s_ = other.s_.Clone(); i_ = other.i_.Clone(); f_ = other.f_.Clone(); b_ = other.b_.Clone(); type_ = other.type_.Clone(); shape_ = other.shape_.Clone(); tensor_ = other.tensor_.Clone(); func_ = other.func_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ListValue Clone() { return new ListValue(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ListValue); } [DebuggerNonUserCode] public bool Equals(ListValue other) { if (other == null) { return false; } if (other == this) { return true; } if (!s_.Equals(other.s_)) { return false; } if (!i_.Equals(other.i_)) { return false; } if (!f_.Equals(other.f_)) { return false; } if (!b_.Equals(other.b_)) { return false; } if (!type_.Equals(other.type_)) { return false; } if (!shape_.Equals(other.shape_)) { return false; } if (!tensor_.Equals(other.tensor_)) { return false; } if (!func_.Equals(other.func_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)s_).GetHashCode(); num ^= ((object)i_).GetHashCode(); num ^= ((object)f_).GetHashCode(); num ^= ((object)b_).GetHashCode(); num ^= ((object)type_).GetHashCode(); num ^= ((object)shape_).GetHashCode(); num ^= ((object)tensor_).GetHashCode(); num ^= ((object)func_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { s_.WriteTo(output, _repeated_s_codec); i_.WriteTo(output, _repeated_i_codec); f_.WriteTo(output, _repeated_f_codec); b_.WriteTo(output, _repeated_b_codec); type_.WriteTo(output, _repeated_type_codec); shape_.WriteTo(output, _repeated_shape_codec); tensor_.WriteTo(output, _repeated_tensor_codec); func_.WriteTo(output, _repeated_func_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += s_.CalculateSize(_repeated_s_codec); num += i_.CalculateSize(_repeated_i_codec); num += f_.CalculateSize(_repeated_f_codec); num += b_.CalculateSize(_repeated_b_codec); num += type_.CalculateSize(_repeated_type_codec); num += shape_.CalculateSize(_repeated_shape_codec); num += tensor_.CalculateSize(_repeated_tensor_codec); num += func_.CalculateSize(_repeated_func_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ListValue other) { if (other != null) { s_.Add((IEnumerable)other.s_); i_.Add((IEnumerable)other.i_); f_.Add((IEnumerable)other.f_); b_.Add((IEnumerable)other.b_); type_.Add((IEnumerable)other.type_); shape_.Add((IEnumerable)other.shape_); tensor_.Add((IEnumerable)other.tensor_); func_.Add((IEnumerable)other.func_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 18u: s_.AddEntriesFrom(input, _repeated_s_codec); break; case 24u: case 26u: i_.AddEntriesFrom(input, _repeated_i_codec); break; case 34u: case 37u: f_.AddEntriesFrom(input, _repeated_f_codec); break; case 40u: case 42u: b_.AddEntriesFrom(input, _repeated_b_codec); break; case 48u: case 50u: type_.AddEntriesFrom(input, _repeated_type_codec); break; case 58u: shape_.AddEntriesFrom(input, _repeated_shape_codec); break; case 66u: tensor_.AddEntriesFrom(input, _repeated_tensor_codec); break; case 74u: func_.AddEntriesFrom(input, _repeated_func_codec); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new AttrValue())); private UnknownFieldSet _unknownFields; public const int SFieldNumber = 2; public const int IFieldNumber = 3; public const int FFieldNumber = 4; public const int BFieldNumber = 5; public const int TypeFieldNumber = 6; public const int ShapeFieldNumber = 7; public const int TensorFieldNumber = 8; public const int ListFieldNumber = 1; public const int FuncFieldNumber = 10; public const int PlaceholderFieldNumber = 9; private object value_; private ValueOneofCase valueCase_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => AttrValueReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public ByteString S { get { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Expected O, but got Unknown if (valueCase_ != ValueOneofCase.S) { return ByteString.Empty; } return (ByteString)value_; } set { value_ = ProtoPreconditions.CheckNotNull(value, "value"); valueCase_ = ValueOneofCase.S; } } [DebuggerNonUserCode] public long I { get { if (valueCase_ != ValueOneofCase.I) { return 0L; } return (long)value_; } set { value_ = value; valueCase_ = ValueOneofCase.I; } } [DebuggerNonUserCode] public float F { get { if (valueCase_ != ValueOneofCase.F) { return 0f; } return (float)value_; } set { value_ = value; valueCase_ = ValueOneofCase.F; } } [DebuggerNonUserCode] public bool B { get { if (valueCase_ != ValueOneofCase.B) { return false; } return (bool)value_; } set { value_ = value; valueCase_ = ValueOneofCase.B; } } [DebuggerNonUserCode] public DataType Type { get { if (valueCase_ != ValueOneofCase.Type) { return DataType.DtInvalid; } return (DataType)value_; } set { value_ = value; valueCase_ = ValueOneofCase.Type; } } [DebuggerNonUserCode] public TensorShapeProto Shape { get { if (valueCase_ != ValueOneofCase.Shape) { return null; } return (TensorShapeProto)value_; } set { value_ = value; valueCase_ = ((value != null) ? ValueOneofCase.Shape : ValueOneofCase.None); } } [DebuggerNonUserCode] public TensorProto Tensor { get { if (valueCase_ != ValueOneofCase.Tensor) { return null; } return (TensorProto)value_; } set { value_ = value; valueCase_ = ((value != null) ? ValueOneofCase.Tensor : ValueOneofCase.None); } } [DebuggerNonUserCode] public Types.ListValue List { get { if (valueCase_ != ValueOneofCase.List) { return null; } return (Types.ListValue)value_; } set { value_ = value; valueCase_ = ((value != null) ? ValueOneofCase.List : ValueOneofCase.None); } } [DebuggerNonUserCode] public NameAttrList Func { get { if (valueCase_ != ValueOneofCase.Func) { return null; } return (NameAttrList)value_; } set { value_ = value; valueCase_ = ((value != null) ? ValueOneofCase.Func : ValueOneofCase.None); } } [DebuggerNonUserCode] public string Placeholder { get { if (valueCase_ != ValueOneofCase.Placeholder) { return ""; } return (string)value_; } set { value_ = ProtoPreconditions.CheckNotNull(value, "value"); valueCase_ = ValueOneofCase.Placeholder; } } [DebuggerNonUserCode] public ValueOneofCase ValueCase => valueCase_; [DebuggerNonUserCode] public AttrValue() { } [DebuggerNonUserCode] public AttrValue(AttrValue other) : this() { switch (other.ValueCase) { case ValueOneofCase.S: S = other.S; break; case ValueOneofCase.I: I = other.I; break; case ValueOneofCase.F: F = other.F; break; case ValueOneofCase.B: B = other.B; break; case ValueOneofCase.Type: Type = other.Type; break; case ValueOneofCase.Shape: Shape = other.Shape.Clone(); break; case ValueOneofCase.Tensor: Tensor = other.Tensor.Clone(); break; case ValueOneofCase.List: List = other.List.Clone(); break; case ValueOneofCase.Func: Func = other.Func.Clone(); break; case ValueOneofCase.Placeholder: Placeholder = other.Placeholder; break; } _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public AttrValue Clone() { return new AttrValue(this); } [DebuggerNonUserCode] public void ClearValue() { valueCase_ = ValueOneofCase.None; value_ = null; } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as AttrValue); } [DebuggerNonUserCode] public bool Equals(AttrValue other) { if (other == null) { return false; } if (other == this) { return true; } if (S != other.S) { return false; } if (I != other.I) { return false; } if (!ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(F, other.F)) { return false; } if (B != other.B) { return false; } if (Type != other.Type) { return false; } if (!object.Equals(Shape, other.Shape)) { return false; } if (!object.Equals(Tensor, other.Tensor)) { return false; } if (!object.Equals(List, other.List)) { return false; } if (!object.Equals(Func, other.Func)) { return false; } if (Placeholder != other.Placeholder) { return false; } if (ValueCase != other.ValueCase) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (valueCase_ == ValueOneofCase.S) { num ^= ((object)S).GetHashCode(); } if (valueCase_ == ValueOneofCase.I) { num ^= I.GetHashCode(); } if (valueCase_ == ValueOneofCase.F) { num ^= ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(F); } if (valueCase_ == ValueOneofCase.B) { num ^= B.GetHashCode(); } if (valueCase_ == ValueOneofCase.Type) { num ^= Type.GetHashCode(); } if (valueCase_ == ValueOneofCase.Shape) { num ^= Shape.GetHashCode(); } if (valueCase_ == ValueOneofCase.Tensor) { num ^= Tensor.GetHashCode(); } if (valueCase_ == ValueOneofCase.List) { num ^= List.GetHashCode(); } if (valueCase_ == ValueOneofCase.Func) { num ^= Func.GetHashCode(); } if (valueCase_ == ValueOneofCase.Placeholder) { num ^= Placeholder.GetHashCode(); } num ^= (int)valueCase_; if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (valueCase_ == ValueOneofCase.List) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)List); } if (valueCase_ == ValueOneofCase.S) { output.WriteRawTag((byte)18); output.WriteBytes(S); } if (valueCase_ == ValueOneofCase.I) { output.WriteRawTag((byte)24); output.WriteInt64(I); } if (valueCase_ == ValueOneofCase.F) { output.WriteRawTag((byte)37); output.WriteFloat(F); } if (valueCase_ == ValueOneofCase.B) { output.WriteRawTag((byte)40); output.WriteBool(B); } if (valueCase_ == ValueOneofCase.Type) { output.WriteRawTag((byte)48); output.WriteEnum((int)Type); } if (valueCase_ == ValueOneofCase.Shape) { output.WriteRawTag((byte)58); output.WriteMessage((IMessage)(object)Shape); } if (valueCase_ == ValueOneofCase.Tensor) { output.WriteRawTag((byte)66); output.WriteMessage((IMessage)(object)Tensor); } if (valueCase_ == ValueOneofCase.Placeholder) { output.WriteRawTag((byte)74); output.WriteString(Placeholder); } if (valueCase_ == ValueOneofCase.Func) { output.WriteRawTag((byte)82); output.WriteMessage((IMessage)(object)Func); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (valueCase_ == ValueOneofCase.S) { num += 1 + CodedOutputStream.ComputeBytesSize(S); } if (valueCase_ == ValueOneofCase.I) { num += 1 + CodedOutputStream.ComputeInt64Size(I); } if (valueCase_ == ValueOneofCase.F) { num += 5; } if (valueCase_ == ValueOneofCase.B) { num += 2; } if (valueCase_ == ValueOneofCase.Type) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Type); } if (valueCase_ == ValueOneofCase.Shape) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Shape); } if (valueCase_ == ValueOneofCase.Tensor) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Tensor); } if (valueCase_ == ValueOneofCase.List) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)List); } if (valueCase_ == ValueOneofCase.Func) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Func); } if (valueCase_ == ValueOneofCase.Placeholder) { num += 1 + CodedOutputStream.ComputeStringSize(Placeholder); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(AttrValue other) { if (other == null) { return; } switch (other.ValueCase) { case ValueOneofCase.S: S = other.S; break; case ValueOneofCase.I: I = other.I; break; case ValueOneofCase.F: F = other.F; break; case ValueOneofCase.B: B = other.B; break; case ValueOneofCase.Type: Type = other.Type; break; case ValueOneofCase.Shape: if (Shape == null) { Shape = new TensorShapeProto(); } Shape.MergeFrom(other.Shape); break; case ValueOneofCase.Tensor: if (Tensor == null) { Tensor = new TensorProto(); } Tensor.MergeFrom(other.Tensor); break; case ValueOneofCase.List: if (List == null) { List = new Types.ListValue(); } List.MergeFrom(other.List); break; case ValueOneofCase.Func: if (Func == null) { Func = new NameAttrList(); } Func.MergeFrom(other.Func); break; case ValueOneofCase.Placeholder: Placeholder = other.Placeholder; break; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: { Types.ListValue listValue = new Types.ListValue(); if (valueCase_ == ValueOneofCase.List) { listValue.MergeFrom(List); } input.ReadMessage((IMessage)(object)listValue); List = listValue; break; } case 18u: S = input.ReadBytes(); break; case 24u: I = input.ReadInt64(); break; case 37u: F = input.ReadFloat(); break; case 40u: B = input.ReadBool(); break; case 48u: value_ = input.ReadEnum(); valueCase_ = ValueOneofCase.Type; break; case 58u: { TensorShapeProto tensorShapeProto = new TensorShapeProto(); if (valueCase_ == ValueOneofCase.Shape) { tensorShapeProto.MergeFrom(Shape); } input.ReadMessage((IMessage)(object)tensorShapeProto); Shape = tensorShapeProto; break; } case 66u: { TensorProto tensorProto = new TensorProto(); if (valueCase_ == ValueOneofCase.Tensor) { tensorProto.MergeFrom(Tensor); } input.ReadMessage((IMessage)(object)tensorProto); Tensor = tensorProto; break; } case 74u: Placeholder = input.ReadString(); break; case 82u: { NameAttrList nameAttrList = new NameAttrList(); if (valueCase_ == ValueOneofCase.Func) { nameAttrList.MergeFrom(Func); } input.ReadMessage((IMessage)(object)nameAttrList); Func = nameAttrList; break; } } } } } public sealed class NameAttrList : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new NameAttrList())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int AttrFieldNumber = 2; private static readonly Codec _map_attr_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, AttrValue.Parser), 18u); private readonly MapField attr_ = new MapField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => AttrValueReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public MapField Attr => attr_; [DebuggerNonUserCode] public NameAttrList() { } [DebuggerNonUserCode] public NameAttrList(NameAttrList other) : this() { name_ = other.name_; attr_ = other.attr_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public NameAttrList Clone() { return new NameAttrList(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as NameAttrList); } [DebuggerNonUserCode] public bool Equals(NameAttrList other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (!Attr.Equals(other.Attr)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } num ^= ((object)Attr).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } attr_.WriteTo(output, _map_attr_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } num += attr_.CalculateSize(_map_attr_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(NameAttrList other) { if (other != null) { if (other.Name.Length != 0) { Name = other.Name; } attr_.Add((IDictionary)other.attr_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: attr_.AddEntriesFrom(input, _map_attr_codec); break; } } } } public static class ClusterReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static ClusterReflection() { //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Expected O, but got Unknown //IL_00c0: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Expected O, but got Unknown //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00d0: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CiZ0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vY2x1c3Rlci5wcm90bxILdGVu" + "c29yYm9hcmQicwoGSm9iRGVmEgwKBG5hbWUYASABKAkSLQoFdGFza3MYAiAD" + "KAsyHi50ZW5zb3Jib2FyZC5Kb2JEZWYuVGFza3NFbnRyeRosCgpUYXNrc0Vu" + "dHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoCToCOAEiLgoKQ2x1c3Rl" + "ckRlZhIgCgNqb2IYASADKAsyEy50ZW5zb3Jib2FyZC5Kb2JEZWZChwEKGm9y" + "Zy50ZW5zb3JmbG93LmRpc3RydW50aW1lQg1DbHVzdGVyUHJvdG9zUAFaVWdp" + "dGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3JmbG93L3RlbnNvcmZsb3cvZ28v" + "Y29yZS9wcm90b2J1Zi9mb3JfY29yZV9wcm90b3NfZ29fcHJvdG/4AQFiBnBy" + "b3RvMw=="), (FileDescriptor[])(object)new FileDescriptor[0], new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2] { new GeneratedClrTypeInfo(typeof(JobDef), (MessageParser)(object)JobDef.Parser, new string[2] { "Name", "Tasks" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1]), new GeneratedClrTypeInfo(typeof(ClusterDef), (MessageParser)(object)ClusterDef.Parser, new string[1] { "Job" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class JobDef : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new JobDef())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int TasksFieldNumber = 2; private static readonly Codec _map_tasks_codec = new Codec(FieldCodec.ForInt32(8u, 0), FieldCodec.ForString(18u, ""), 18u); private readonly MapField tasks_ = new MapField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ClusterReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public MapField Tasks => tasks_; [DebuggerNonUserCode] public JobDef() { } [DebuggerNonUserCode] public JobDef(JobDef other) : this() { name_ = other.name_; tasks_ = other.tasks_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public JobDef Clone() { return new JobDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as JobDef); } [DebuggerNonUserCode] public bool Equals(JobDef other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (!Tasks.Equals(other.Tasks)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } num ^= ((object)Tasks).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } tasks_.WriteTo(output, _map_tasks_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } num += tasks_.CalculateSize(_map_tasks_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(JobDef other) { if (other != null) { if (other.Name.Length != 0) { Name = other.Name; } tasks_.Add((IDictionary)other.tasks_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: tasks_.AddEntriesFrom(input, _map_tasks_codec); break; } } } } public sealed class ClusterDef : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new ClusterDef())); private UnknownFieldSet _unknownFields; public const int JobFieldNumber = 1; private static readonly FieldCodec _repeated_job_codec = FieldCodec.ForMessage(10u, JobDef.Parser); private readonly RepeatedField job_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ClusterReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Job => job_; [DebuggerNonUserCode] public ClusterDef() { } [DebuggerNonUserCode] public ClusterDef(ClusterDef other) : this() { job_ = other.job_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ClusterDef Clone() { return new ClusterDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ClusterDef); } [DebuggerNonUserCode] public bool Equals(ClusterDef other) { if (other == null) { return false; } if (other == this) { return true; } if (!job_.Equals(other.job_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)job_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { job_.WriteTo(output, _repeated_job_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += job_.CalculateSize(_repeated_job_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ClusterDef other) { if (other != null) { job_.Add((IEnumerable)other.job_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { job_.AddEntriesFrom(input, _repeated_job_codec); } } } } public static class ConfigReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static ConfigReflection() { //IL_05f9: Unknown result type (might be due to invalid IL or missing references) //IL_05ff: Expected O, but got Unknown //IL_05ff: Unknown result type (might be due to invalid IL or missing references) //IL_0605: Expected O, but got Unknown //IL_0605: Unknown result type (might be due to invalid IL or missing references) //IL_060b: Expected O, but got Unknown //IL_067d: Unknown result type (might be due to invalid IL or missing references) //IL_0683: Expected O, but got Unknown //IL_06e7: Unknown result type (might be due to invalid IL or missing references) //IL_06ed: Expected O, but got Unknown //IL_0718: Unknown result type (might be due to invalid IL or missing references) //IL_071e: Expected O, but got Unknown //IL_0769: Unknown result type (might be due to invalid IL or missing references) //IL_076f: Expected O, but got Unknown //IL_079a: Unknown result type (might be due to invalid IL or missing references) //IL_07a0: Expected O, but got Unknown //IL_092a: Unknown result type (might be due to invalid IL or missing references) //IL_0930: Expected O, but got Unknown //IL_0930: Unknown result type (might be due to invalid IL or missing references) //IL_0936: Expected O, but got Unknown //IL_09fb: Unknown result type (might be due to invalid IL or missing references) //IL_0a01: Expected O, but got Unknown //IL_0a01: Unknown result type (might be due to invalid IL or missing references) //IL_0a07: Expected O, but got Unknown //IL_0a07: Unknown result type (might be due to invalid IL or missing references) //IL_0a0d: Expected O, but got Unknown //IL_0a80: Unknown result type (might be due to invalid IL or missing references) //IL_0a86: Expected O, but got Unknown //IL_0a86: Unknown result type (might be due to invalid IL or missing references) //IL_0a8c: Expected O, but got Unknown //IL_0ab8: Unknown result type (might be due to invalid IL or missing references) //IL_0abe: Expected O, but got Unknown //IL_0b1f: Unknown result type (might be due to invalid IL or missing references) //IL_0b25: Expected O, but got Unknown //IL_0b25: Unknown result type (might be due to invalid IL or missing references) //IL_0b2f: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CiV0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vY29uZmlnLnByb3RvEgt0ZW5z" + "b3Jib2FyZBopdGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL2Nvc3RfZ3JhcGgu" + "cHJvdG8aJHRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by9ncmFwaC5wcm90bxop" + "dGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL3N0ZXBfc3RhdHMucHJvdG8aJnRl" + "bnNvcmJvYXJkL2NvbXBhdC9wcm90by9jbHVzdGVyLnByb3RvGjJ0ZW5zb3Ji" + "b2FyZC9jb21wYXQvcHJvdG8vY29vcmRpbmF0aW9uX2NvbmZpZy5wcm90bxok" + "dGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL2RlYnVnLnByb3RvGi50ZW5zb3Ji" + "b2FyZC9jb21wYXQvcHJvdG8vcmV3cml0ZXJfY29uZmlnLnByb3RvIsEGCgpH" + "UFVPcHRpb25zEicKH3Blcl9wcm9jZXNzX2dwdV9tZW1vcnlfZnJhY3Rpb24Y" + "ASABKAESFAoMYWxsb3dfZ3Jvd3RoGAQgASgIEhYKDmFsbG9jYXRvcl90eXBl" + "GAIgASgJEh8KF2RlZmVycmVkX2RlbGV0aW9uX2J5dGVzGAMgASgDEhsKE3Zp" + "c2libGVfZGV2aWNlX2xpc3QYBSABKAkSIgoacG9sbGluZ19hY3RpdmVfZGVs" + "YXlfdXNlY3MYBiABKAUSJAoccG9sbGluZ19pbmFjdGl2ZV9kZWxheV9tc2Vj" + "cxgHIAEoBRIcChRmb3JjZV9ncHVfY29tcGF0aWJsZRgIIAEoCBI6CgxleHBl" + "cmltZW50YWwYCSABKAsyJC50ZW5zb3Jib2FyZC5HUFVPcHRpb25zLkV4cGVy" + "aW1lbnRhbBr5AwoMRXhwZXJpbWVudGFsEkwKD3ZpcnR1YWxfZGV2aWNlcxgB" + "IAMoCzIzLnRlbnNvcmJvYXJkLkdQVU9wdGlvbnMuRXhwZXJpbWVudGFsLlZp" + "cnR1YWxEZXZpY2VzEhoKEnVzZV91bmlmaWVkX21lbW9yeRgCIAEoCBIjChtu" + "dW1fZGV2X3RvX2Rldl9jb3B5X3N0cmVhbXMYAyABKAUSHQoVY29sbGVjdGl2" + "ZV9yaW5nX29yZGVyGAQgASgJEh0KFXRpbWVzdGFtcGVkX2FsbG9jYXRvchgF" + "IAEoCBIjChtrZXJuZWxfdHJhY2tlcl9tYXhfaW50ZXJ2YWwYByABKAUSIAoY" + "a2VybmVsX3RyYWNrZXJfbWF4X2J5dGVzGAggASgFEiIKGmtlcm5lbF90cmFj" + "a2VyX21heF9wZW5kaW5nGAkgASgFEicKH2ludGVybmFsX2ZyYWdtZW50YXRp" + "b25fZnJhY3Rpb24YCiABKAESHQoVdXNlX2N1ZGFfbWFsbG9jX2FzeW5jGAsg" + "ASgIEiwKJGRpc2FsbG93X3JldHJ5X29uX2FsbG9jYXRpb25fZmFpbHVyZRgM" + "IAEoCBo7Cg5WaXJ0dWFsRGV2aWNlcxIXCg9tZW1vcnlfbGltaXRfbWIYASAD" + "KAISEAoIcHJpb3JpdHkYAiADKAUinwMKEE9wdGltaXplck9wdGlvbnMSKwoj" + "ZG9fY29tbW9uX3N1YmV4cHJlc3Npb25fZWxpbWluYXRpb24YASABKAgSGwoT" + "ZG9fY29uc3RhbnRfZm9sZGluZxgCIAEoCBIkChxtYXhfZm9sZGVkX2NvbnN0" + "YW50X2luX2J5dGVzGAYgASgDEhwKFGRvX2Z1bmN0aW9uX2lubGluaW5nGAQg" + "ASgIEjYKCW9wdF9sZXZlbBgDIAEoDjIjLnRlbnNvcmJvYXJkLk9wdGltaXpl" + "ck9wdGlvbnMuTGV2ZWwSRgoQZ2xvYmFsX2ppdF9sZXZlbBgFIAEoDjIsLnRl" + "bnNvcmJvYXJkLk9wdGltaXplck9wdGlvbnMuR2xvYmFsSml0TGV2ZWwSFgoO" + "Y3B1X2dsb2JhbF9qaXQYByABKAgiIAoFTGV2ZWwSBgoCTDEQABIPCgJMMBD/" + "//////////8BIkMKDkdsb2JhbEppdExldmVsEgsKB0RFRkFVTFQQABIQCgNP" + "RkYQ////////////ARIICgRPTl8xEAESCAoET05fMhACIvACCgxHcmFwaE9w" + "dGlvbnMSHgoWZW5hYmxlX3JlY3Zfc2NoZWR1bGluZxgCIAEoCBI4ChFvcHRp" + "bWl6ZXJfb3B0aW9ucxgDIAEoCzIdLnRlbnNvcmJvYXJkLk9wdGltaXplck9w" + "dGlvbnMSGAoQYnVpbGRfY29zdF9tb2RlbBgEIAEoAxIeChZidWlsZF9jb3N0" + "X21vZGVsX2FmdGVyGAkgASgDEhQKDGluZmVyX3NoYXBlcxgFIAEoCBIaChJw" + "bGFjZV9wcnVuZWRfZ3JhcGgYBiABKAgSIAoYZW5hYmxlX2JmbG9hdDE2X3Nl" + "bmRyZWN2GAcgASgIEhUKDXRpbWVsaW5lX3N0ZXAYCCABKAUSNAoPcmV3cml0" + "ZV9vcHRpb25zGAogASgLMhsudGVuc29yYm9hcmQuUmV3cml0ZXJDb25maWdK" + "BAgBEAJSJXNraXBfY29tbW9uX3N1YmV4cHJlc3Npb25fZWxpbWluYXRpb24i" + "QQoVVGhyZWFkUG9vbE9wdGlvblByb3RvEhMKC251bV90aHJlYWRzGAEgASgF" + "EhMKC2dsb2JhbF9uYW1lGAIgASgJItUBCgpSUENPcHRpb25zEiQKHHVzZV9y" + "cGNfZm9yX2lucHJvY2Vzc19tYXN0ZXIYASABKAgSHQoVY29tcHJlc3Npb25f" + "YWxnb3JpdGhtGAIgASgJEhkKEWNvbXByZXNzaW9uX2xldmVsGAMgASgFEhoK" + "EmNhY2hlX3JwY19yZXNwb25zZRgEIAEoCBIqCiJkaXNhYmxlX3Nlc3Npb25f" + "Y29ubmVjdGlvbl9zaGFyaW5nGAUgASgIEh8KF251bV9jaGFubmVsc19wZXJf" + "dGFyZ2V0GAYgASgFIjAKD1Nlc3Npb25NZXRhZGF0YRIMCgRuYW1lGAEgASgJ" + "Eg8KB3ZlcnNpb24YAiABKAMiuA4KC0NvbmZpZ1Byb3RvEj8KDGRldmljZV9j" + "b3VudBgBIAMoCzIpLnRlbnNvcmJvYXJkLkNvbmZpZ1Byb3RvLkRldmljZUNv" + "dW50RW50cnkSJAocaW50cmFfb3BfcGFyYWxsZWxpc21fdGhyZWFkcxgCIAEo" + "BRIkChxpbnRlcl9vcF9wYXJhbGxlbGlzbV90aHJlYWRzGAUgASgFEh8KF3Vz" + "ZV9wZXJfc2Vzc2lvbl90aHJlYWRzGAkgASgIEkgKHHNlc3Npb25faW50ZXJf" + "b3BfdGhyZWFkX3Bvb2wYDCADKAsyIi50ZW5zb3Jib2FyZC5UaHJlYWRQb29s" + "T3B0aW9uUHJvdG8SGAoQcGxhY2VtZW50X3BlcmlvZBgDIAEoBRIWCg5kZXZp" + "Y2VfZmlsdGVycxgEIAMoCRIsCgtncHVfb3B0aW9ucxgGIAEoCzIXLnRlbnNv" + "cmJvYXJkLkdQVU9wdGlvbnMSHAoUYWxsb3dfc29mdF9wbGFjZW1lbnQYByAB" + "KAgSHAoUbG9nX2RldmljZV9wbGFjZW1lbnQYCCABKAgSMAoNZ3JhcGhfb3B0" + "aW9ucxgKIAEoCzIZLnRlbnNvcmJvYXJkLkdyYXBoT3B0aW9ucxIfChdvcGVy" + "YXRpb25fdGltZW91dF9pbl9tcxgLIAEoAxIsCgtycGNfb3B0aW9ucxgNIAEo" + "CzIXLnRlbnNvcmJvYXJkLlJQQ09wdGlvbnMSLAoLY2x1c3Rlcl9kZWYYDiAB" + "KAsyFy50ZW5zb3Jib2FyZC5DbHVzdGVyRGVmEh0KFWlzb2xhdGVfc2Vzc2lv" + "bl9zdGF0ZRgPIAEoCBIoCiBzaGFyZV9jbHVzdGVyX2RldmljZXNfaW5fc2Vz" + "c2lvbhgRIAEoCBI7CgxleHBlcmltZW50YWwYECABKAsyJS50ZW5zb3Jib2Fy" + "ZC5Db25maWdQcm90by5FeHBlcmltZW50YWwaMgoQRGV2aWNlQ291bnRFbnRy" + "eRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAU6AjgBGqsICgxFeHBlcmlt" + "ZW50YWwSHwoXY29sbGVjdGl2ZV9ncm91cF9sZWFkZXIYASABKAkSFQoNZXhl" + "Y3V0b3JfdHlwZRgDIAEoCRIaChJyZWN2X2J1Zl9tYXhfY2h1bmsYBCABKAUS" + "GQoRdXNlX251bWFfYWZmaW5pdHkYBSABKAgSNQotY29sbGVjdGl2ZV9kZXRl" + "cm1pbmlzdGljX3NlcXVlbnRpYWxfZXhlY3V0aW9uGAYgASgIEhcKD2NvbGxl" + "Y3RpdmVfbmNjbBgHIAEoCBI2Ci5zaGFyZV9zZXNzaW9uX3N0YXRlX2luX2Ns" + "dXN0ZXJzcGVjX3Byb3BhZ2F0aW9uGAggASgIEh8KF2Rpc2FibGVfdGhyZWFk" + "X3NwaW5uaW5nGAkgASgIEigKIHNoYXJlX2NsdXN0ZXJfZGV2aWNlc19pbl9z" + "ZXNzaW9uGAogASgIEjYKEHNlc3Npb25fbWV0YWRhdGEYCyABKAsyHC50ZW5z" + "b3Jib2FyZC5TZXNzaW9uTWV0YWRhdGESIQoZb3B0aW1pemVfZm9yX3N0YXRp" + "Y19ncmFwaBgMIAEoCBIaChJlbmFibGVfbWxpcl9icmlkZ2UYDSABKAgSVAoT" + "bWxpcl9icmlkZ2Vfcm9sbG91dBgRIAEoDjI3LnRlbnNvcmJvYXJkLkNvbmZp" + "Z1Byb3RvLkV4cGVyaW1lbnRhbC5NbGlyQnJpZGdlUm9sbG91dBImCh5lbmFi" + "bGVfbWxpcl9ncmFwaF9vcHRpbWl6YXRpb24YECABKAgSJwofZGlzYWJsZV9v" + "dXRwdXRfcGFydGl0aW9uX2dyYXBocxgOIAEoCBIjCht4bGFfZnVzaW9uX2F1" + "dG90dW5lcl90aHJlc2gYDyABKAMSEAoIdXNlX3RmcnQYEiABKAgSJwofZGlz" + "YWJsZV9mdW5jdGlvbmFsX29wc19sb3dlcmluZxgVIAEoCBInCh94bGFfcHJl" + "ZmVyX3NpbmdsZV9ncmFwaF9jbHVzdGVyGBYgASgIEkMKE2Nvb3JkaW5hdGlv" + "bl9jb25maWcYFyABKAsyJi50ZW5zb3Jib2FyZC5Db29yZGluYXRpb25TZXJ2" + "aWNlQ29uZmlnItoBChFNbGlyQnJpZGdlUm9sbG91dBIjCh9NTElSX0JSSURH" + "RV9ST0xMT1VUX1VOU1BFQ0lGSUVEEAASHwobTUxJUl9CUklER0VfUk9MTE9V" + "VF9FTkFCTEVEEAESIAocTUxJUl9CUklER0VfUk9MTE9VVF9ESVNBQkxFRBAC" + "EikKJU1MSVJfQlJJREdFX1JPTExPVVRfU0FGRV9NT0RFX0VOQUJMRUQQAxIy" + "Ci5NTElSX0JSSURHRV9ST0xMT1VUX1NBRkVfTU9ERV9GQUxMQkFDS19FTkFC" + "TEVEEARKBAgCEANKBAgTEBRKBAgUEBUi5QQKClJ1bk9wdGlvbnMSNwoLdHJh" + "Y2VfbGV2ZWwYASABKA4yIi50ZW5zb3Jib2FyZC5SdW5PcHRpb25zLlRyYWNl" + "TGV2ZWwSFQoNdGltZW91dF9pbl9tcxgCIAEoAxIcChRpbnRlcl9vcF90aHJl" + "YWRfcG9vbBgDIAEoBRIfChdvdXRwdXRfcGFydGl0aW9uX2dyYXBocxgFIAEo" + "CBIwCg1kZWJ1Z19vcHRpb25zGAYgASgLMhkudGVuc29yYm9hcmQuRGVidWdP" + "cHRpb25zEioKInJlcG9ydF90ZW5zb3JfYWxsb2NhdGlvbnNfdXBvbl9vb20Y" + "ByABKAgSOgoMZXhwZXJpbWVudGFsGAggASgLMiQudGVuc29yYm9hcmQuUnVu" + "T3B0aW9ucy5FeHBlcmltZW50YWwa0wEKDEV4cGVyaW1lbnRhbBIcChRjb2xs" + "ZWN0aXZlX2dyYXBoX2tleRgBIAEoAxIcChR1c2VfcnVuX2hhbmRsZXJfcG9v" + "bBgCIAEoCBJcChhydW5faGFuZGxlcl9wb29sX29wdGlvbnMYAyABKAsyOi50" + "ZW5zb3Jib2FyZC5SdW5PcHRpb25zLkV4cGVyaW1lbnRhbC5SdW5IYW5kbGVy" + "UG9vbE9wdGlvbnMaKQoVUnVuSGFuZGxlclBvb2xPcHRpb25zEhAKCHByaW9y" + "aXR5GAEgASgDIlIKClRyYWNlTGV2ZWwSDAoITk9fVFJBQ0UQABISCg5TT0ZU" + "V0FSRV9UUkFDRRABEhIKDkhBUkRXQVJFX1RSQUNFEAISDgoKRlVMTF9UUkFD" + "RRADSgQIBBAFIo4DCgtSdW5NZXRhZGF0YRIqCgpzdGVwX3N0YXRzGAEgASgL" + "MhYudGVuc29yYm9hcmQuU3RlcFN0YXRzEi0KCmNvc3RfZ3JhcGgYAiABKAsy" + "GS50ZW5zb3Jib2FyZC5Db3N0R3JhcGhEZWYSLwoQcGFydGl0aW9uX2dyYXBo" + "cxgDIAMoCzIVLnRlbnNvcmJvYXJkLkdyYXBoRGVmEkAKD2Z1bmN0aW9uX2dy" + "YXBocxgEIAMoCzInLnRlbnNvcmJvYXJkLlJ1bk1ldGFkYXRhLkZ1bmN0aW9u" + "R3JhcGhzGrABCg5GdW5jdGlvbkdyYXBocxIvChBwYXJ0aXRpb25fZ3JhcGhz" + "GAEgAygLMhUudGVuc29yYm9hcmQuR3JhcGhEZWYSNQoWcHJlX29wdGltaXph" + "dGlvbl9ncmFwaBgCIAEoCzIVLnRlbnNvcmJvYXJkLkdyYXBoRGVmEjYKF3Bv" + "c3Rfb3B0aW1pemF0aW9uX2dyYXBoGAMgASgLMhUudGVuc29yYm9hcmQuR3Jh" + "cGhEZWYiOgoQVGVuc29yQ29ubmVjdGlvbhITCgtmcm9tX3RlbnNvchgBIAEo" + "CRIRCgl0b190ZW5zb3IYAiABKAkitAMKD0NhbGxhYmxlT3B0aW9ucxIMCgRm" + "ZWVkGAEgAygJEg0KBWZldGNoGAIgAygJEg4KBnRhcmdldBgDIAMoCRIsCgty" + "dW5fb3B0aW9ucxgEIAEoCzIXLnRlbnNvcmJvYXJkLlJ1bk9wdGlvbnMSOAoR" + "dGVuc29yX2Nvbm5lY3Rpb24YBSADKAsyHS50ZW5zb3Jib2FyZC5UZW5zb3JD" + "b25uZWN0aW9uEkMKDGZlZWRfZGV2aWNlcxgGIAMoCzItLnRlbnNvcmJvYXJk" + "LkNhbGxhYmxlT3B0aW9ucy5GZWVkRGV2aWNlc0VudHJ5EkUKDWZldGNoX2Rl" + "dmljZXMYByADKAsyLi50ZW5zb3Jib2FyZC5DYWxsYWJsZU9wdGlvbnMuRmV0" + "Y2hEZXZpY2VzRW50cnkSFwoPZmV0Y2hfc2tpcF9zeW5jGAggASgIGjIKEEZl" + "ZWREZXZpY2VzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4" + "ARozChFGZXRjaERldmljZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY" + "AiABKAk6AjgBQoQBChhvcmcudGVuc29yZmxvdy5mcmFtZXdvcmtCDENvbmZp" + "Z1Byb3Rvc1ABWlVnaXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90" + "ZW5zb3JmbG93L2dvL2NvcmUvcHJvdG9idWYvZm9yX2NvcmVfcHJvdG9zX2dv" + "X3Byb3Rv+AEBYgZwcm90bzM="), (FileDescriptor[])(object)new FileDescriptor[7] { CostGraphReflection.Descriptor, GraphReflection.Descriptor, StepStatsReflection.Descriptor, ClusterReflection.Descriptor, CoordinationConfigReflection.Descriptor, DebugReflection.Descriptor, RewriterConfigReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[11] { new GeneratedClrTypeInfo(typeof(GPUOptions), (MessageParser)(object)GPUOptions.Parser, new string[9] { "PerProcessGpuMemoryFraction", "AllowGrowth", "AllocatorType", "DeferredDeletionBytes", "VisibleDeviceList", "PollingActiveDelayUsecs", "PollingInactiveDelayMsecs", "ForceGpuCompatible", "Experimental" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(GPUOptions.Types.Experimental), (MessageParser)(object)GPUOptions.Types.Experimental.Parser, new string[11] { "VirtualDevices", "UseUnifiedMemory", "NumDevToDevCopyStreams", "CollectiveRingOrder", "TimestampedAllocator", "KernelTrackerMaxInterval", "KernelTrackerMaxBytes", "KernelTrackerMaxPending", "InternalFragmentationFraction", "UseCudaMallocAsync", "DisallowRetryOnAllocationFailure" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(GPUOptions.Types.Experimental.Types.VirtualDevices), (MessageParser)(object)GPUOptions.Types.Experimental.Types.VirtualDevices.Parser, new string[2] { "MemoryLimitMb", "Priority" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }) }), new GeneratedClrTypeInfo(typeof(OptimizerOptions), (MessageParser)(object)OptimizerOptions.Parser, new string[7] { "DoCommonSubexpressionElimination", "DoConstantFolding", "MaxFoldedConstantInBytes", "DoFunctionInlining", "OptLevel", "GlobalJitLevel", "CpuGlobalJit" }, (string[])null, new Type[2] { typeof(OptimizerOptions.Types.Level), typeof(OptimizerOptions.Types.GlobalJitLevel) }, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(GraphOptions), (MessageParser)(object)GraphOptions.Parser, new string[9] { "EnableRecvScheduling", "OptimizerOptions", "BuildCostModel", "BuildCostModelAfter", "InferShapes", "PlacePrunedGraph", "EnableBfloat16Sendrecv", "TimelineStep", "RewriteOptions" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(ThreadPoolOptionProto), (MessageParser)(object)ThreadPoolOptionProto.Parser, new string[2] { "NumThreads", "GlobalName" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(RPCOptions), (MessageParser)(object)RPCOptions.Parser, new string[6] { "UseRpcForInprocessMaster", "CompressionAlgorithm", "CompressionLevel", "CacheRpcResponse", "DisableSessionConnectionSharing", "NumChannelsPerTarget" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(SessionMetadata), (MessageParser)(object)SessionMetadata.Parser, new string[2] { "Name", "Version" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(ConfigProto), (MessageParser)(object)ConfigProto.Parser, new string[17] { "DeviceCount", "IntraOpParallelismThreads", "InterOpParallelismThreads", "UsePerSessionThreads", "SessionInterOpThreadPool", "PlacementPeriod", "DeviceFilters", "GpuOptions", "AllowSoftPlacement", "LogDevicePlacement", "GraphOptions", "OperationTimeoutInMs", "RpcOptions", "ClusterDef", "IsolateSessionState", "ShareClusterDevicesInSession", "Experimental" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2] { default(GeneratedClrTypeInfo), new GeneratedClrTypeInfo(typeof(ConfigProto.Types.Experimental), (MessageParser)(object)ConfigProto.Types.Experimental.Parser, new string[20] { "CollectiveGroupLeader", "ExecutorType", "RecvBufMaxChunk", "UseNumaAffinity", "CollectiveDeterministicSequentialExecution", "CollectiveNccl", "ShareSessionStateInClusterspecPropagation", "DisableThreadSpinning", "ShareClusterDevicesInSession", "SessionMetadata", "OptimizeForStaticGraph", "EnableMlirBridge", "MlirBridgeRollout", "EnableMlirGraphOptimization", "DisableOutputPartitionGraphs", "XlaFusionAutotunerThresh", "UseTfrt", "DisableFunctionalOpsLowering", "XlaPreferSingleGraphCluster", "CoordinationConfig" }, (string[])null, new Type[1] { typeof(ConfigProto.Types.Experimental.Types.MlirBridgeRollout) }, (Extension[])null, (GeneratedClrTypeInfo[])null) }), new GeneratedClrTypeInfo(typeof(RunOptions), (MessageParser)(object)RunOptions.Parser, new string[7] { "TraceLevel", "TimeoutInMs", "InterOpThreadPool", "OutputPartitionGraphs", "DebugOptions", "ReportTensorAllocationsUponOom", "Experimental" }, (string[])null, new Type[1] { typeof(RunOptions.Types.TraceLevel) }, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(RunOptions.Types.Experimental), (MessageParser)(object)RunOptions.Types.Experimental.Parser, new string[3] { "CollectiveGraphKey", "UseRunHandlerPool", "RunHandlerPoolOptions" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(RunOptions.Types.Experimental.Types.RunHandlerPoolOptions), (MessageParser)(object)RunOptions.Types.Experimental.Types.RunHandlerPoolOptions.Parser, new string[1] { "Priority" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }) }), new GeneratedClrTypeInfo(typeof(RunMetadata), (MessageParser)(object)RunMetadata.Parser, new string[4] { "StepStats", "CostGraph", "PartitionGraphs", "FunctionGraphs" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(RunMetadata.Types.FunctionGraphs), (MessageParser)(object)RunMetadata.Types.FunctionGraphs.Parser, new string[3] { "PartitionGraphs", "PreOptimizationGraph", "PostOptimizationGraph" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }), new GeneratedClrTypeInfo(typeof(TensorConnection), (MessageParser)(object)TensorConnection.Parser, new string[2] { "FromTensor", "ToTensor" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(CallableOptions), (MessageParser)(object)CallableOptions.Parser, new string[8] { "Feed", "Fetch", "Target", "RunOptions", "TensorConnection", "FeedDevices", "FetchDevices", "FetchSkipSync" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2]) })); } } public sealed class GPUOptions : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class Experimental : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class VirtualDevices : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new VirtualDevices())); private UnknownFieldSet _unknownFields; public const int MemoryLimitMbFieldNumber = 1; private static readonly FieldCodec _repeated_memoryLimitMb_codec = FieldCodec.ForFloat(10u); private readonly RepeatedField memoryLimitMb_ = new RepeatedField(); public const int PriorityFieldNumber = 2; private static readonly FieldCodec _repeated_priority_codec = FieldCodec.ForInt32(18u); private readonly RepeatedField priority_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => Experimental.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField MemoryLimitMb => memoryLimitMb_; [DebuggerNonUserCode] public RepeatedField Priority => priority_; [DebuggerNonUserCode] public VirtualDevices() { } [DebuggerNonUserCode] public VirtualDevices(VirtualDevices other) : this() { memoryLimitMb_ = other.memoryLimitMb_.Clone(); priority_ = other.priority_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public VirtualDevices Clone() { return new VirtualDevices(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as VirtualDevices); } [DebuggerNonUserCode] public bool Equals(VirtualDevices other) { if (other == null) { return false; } if (other == this) { return true; } if (!memoryLimitMb_.Equals(other.memoryLimitMb_)) { return false; } if (!priority_.Equals(other.priority_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)memoryLimitMb_).GetHashCode(); num ^= ((object)priority_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { memoryLimitMb_.WriteTo(output, _repeated_memoryLimitMb_codec); priority_.WriteTo(output, _repeated_priority_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += memoryLimitMb_.CalculateSize(_repeated_memoryLimitMb_codec); num += priority_.CalculateSize(_repeated_priority_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(VirtualDevices other) { if (other != null) { memoryLimitMb_.Add((IEnumerable)other.memoryLimitMb_); priority_.Add((IEnumerable)other.priority_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: case 13u: memoryLimitMb_.AddEntriesFrom(input, _repeated_memoryLimitMb_codec); break; case 16u: case 18u: priority_.AddEntriesFrom(input, _repeated_priority_codec); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new Experimental())); private UnknownFieldSet _unknownFields; public const int VirtualDevicesFieldNumber = 1; private static readonly FieldCodec _repeated_virtualDevices_codec = FieldCodec.ForMessage(10u, Types.VirtualDevices.Parser); private readonly RepeatedField virtualDevices_ = new RepeatedField(); public const int UseUnifiedMemoryFieldNumber = 2; private bool useUnifiedMemory_; public const int NumDevToDevCopyStreamsFieldNumber = 3; private int numDevToDevCopyStreams_; public const int CollectiveRingOrderFieldNumber = 4; private string collectiveRingOrder_ = ""; public const int TimestampedAllocatorFieldNumber = 5; private bool timestampedAllocator_; public const int KernelTrackerMaxIntervalFieldNumber = 7; private int kernelTrackerMaxInterval_; public const int KernelTrackerMaxBytesFieldNumber = 8; private int kernelTrackerMaxBytes_; public const int KernelTrackerMaxPendingFieldNumber = 9; private int kernelTrackerMaxPending_; public const int InternalFragmentationFractionFieldNumber = 10; private double internalFragmentationFraction_; public const int UseCudaMallocAsyncFieldNumber = 11; private bool useCudaMallocAsync_; public const int DisallowRetryOnAllocationFailureFieldNumber = 12; private bool disallowRetryOnAllocationFailure_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => GPUOptions.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField VirtualDevices => virtualDevices_; [DebuggerNonUserCode] public bool UseUnifiedMemory { get { return useUnifiedMemory_; } set { useUnifiedMemory_ = value; } } [DebuggerNonUserCode] public int NumDevToDevCopyStreams { get { return numDevToDevCopyStreams_; } set { numDevToDevCopyStreams_ = value; } } [DebuggerNonUserCode] public string CollectiveRingOrder { get { return collectiveRingOrder_; } set { collectiveRingOrder_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public bool TimestampedAllocator { get { return timestampedAllocator_; } set { timestampedAllocator_ = value; } } [DebuggerNonUserCode] public int KernelTrackerMaxInterval { get { return kernelTrackerMaxInterval_; } set { kernelTrackerMaxInterval_ = value; } } [DebuggerNonUserCode] public int KernelTrackerMaxBytes { get { return kernelTrackerMaxBytes_; } set { kernelTrackerMaxBytes_ = value; } } [DebuggerNonUserCode] public int KernelTrackerMaxPending { get { return kernelTrackerMaxPending_; } set { kernelTrackerMaxPending_ = value; } } [DebuggerNonUserCode] public double InternalFragmentationFraction { get { return internalFragmentationFraction_; } set { internalFragmentationFraction_ = value; } } [DebuggerNonUserCode] public bool UseCudaMallocAsync { get { return useCudaMallocAsync_; } set { useCudaMallocAsync_ = value; } } [DebuggerNonUserCode] public bool DisallowRetryOnAllocationFailure { get { return disallowRetryOnAllocationFailure_; } set { disallowRetryOnAllocationFailure_ = value; } } [DebuggerNonUserCode] public Experimental() { } [DebuggerNonUserCode] public Experimental(Experimental other) : this() { virtualDevices_ = other.virtualDevices_.Clone(); useUnifiedMemory_ = other.useUnifiedMemory_; numDevToDevCopyStreams_ = other.numDevToDevCopyStreams_; collectiveRingOrder_ = other.collectiveRingOrder_; timestampedAllocator_ = other.timestampedAllocator_; kernelTrackerMaxInterval_ = other.kernelTrackerMaxInterval_; kernelTrackerMaxBytes_ = other.kernelTrackerMaxBytes_; kernelTrackerMaxPending_ = other.kernelTrackerMaxPending_; internalFragmentationFraction_ = other.internalFragmentationFraction_; useCudaMallocAsync_ = other.useCudaMallocAsync_; disallowRetryOnAllocationFailure_ = other.disallowRetryOnAllocationFailure_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public Experimental Clone() { return new Experimental(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as Experimental); } [DebuggerNonUserCode] public bool Equals(Experimental other) { if (other == null) { return false; } if (other == this) { return true; } if (!virtualDevices_.Equals(other.virtualDevices_)) { return false; } if (UseUnifiedMemory != other.UseUnifiedMemory) { return false; } if (NumDevToDevCopyStreams != other.NumDevToDevCopyStreams) { return false; } if (CollectiveRingOrder != other.CollectiveRingOrder) { return false; } if (TimestampedAllocator != other.TimestampedAllocator) { return false; } if (KernelTrackerMaxInterval != other.KernelTrackerMaxInterval) { return false; } if (KernelTrackerMaxBytes != other.KernelTrackerMaxBytes) { return false; } if (KernelTrackerMaxPending != other.KernelTrackerMaxPending) { return false; } if (!ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InternalFragmentationFraction, other.InternalFragmentationFraction)) { return false; } if (UseCudaMallocAsync != other.UseCudaMallocAsync) { return false; } if (DisallowRetryOnAllocationFailure != other.DisallowRetryOnAllocationFailure) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)virtualDevices_).GetHashCode(); if (UseUnifiedMemory) { num ^= UseUnifiedMemory.GetHashCode(); } if (NumDevToDevCopyStreams != 0) { num ^= NumDevToDevCopyStreams.GetHashCode(); } if (CollectiveRingOrder.Length != 0) { num ^= CollectiveRingOrder.GetHashCode(); } if (TimestampedAllocator) { num ^= TimestampedAllocator.GetHashCode(); } if (KernelTrackerMaxInterval != 0) { num ^= KernelTrackerMaxInterval.GetHashCode(); } if (KernelTrackerMaxBytes != 0) { num ^= KernelTrackerMaxBytes.GetHashCode(); } if (KernelTrackerMaxPending != 0) { num ^= KernelTrackerMaxPending.GetHashCode(); } if (InternalFragmentationFraction != 0.0) { num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InternalFragmentationFraction); } if (UseCudaMallocAsync) { num ^= UseCudaMallocAsync.GetHashCode(); } if (DisallowRetryOnAllocationFailure) { num ^= DisallowRetryOnAllocationFailure.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { virtualDevices_.WriteTo(output, _repeated_virtualDevices_codec); if (UseUnifiedMemory) { output.WriteRawTag((byte)16); output.WriteBool(UseUnifiedMemory); } if (NumDevToDevCopyStreams != 0) { output.WriteRawTag((byte)24); output.WriteInt32(NumDevToDevCopyStreams); } if (CollectiveRingOrder.Length != 0) { output.WriteRawTag((byte)34); output.WriteString(CollectiveRingOrder); } if (TimestampedAllocator) { output.WriteRawTag((byte)40); output.WriteBool(TimestampedAllocator); } if (KernelTrackerMaxInterval != 0) { output.WriteRawTag((byte)56); output.WriteInt32(KernelTrackerMaxInterval); } if (KernelTrackerMaxBytes != 0) { output.WriteRawTag((byte)64); output.WriteInt32(KernelTrackerMaxBytes); } if (KernelTrackerMaxPending != 0) { output.WriteRawTag((byte)72); output.WriteInt32(KernelTrackerMaxPending); } if (InternalFragmentationFraction != 0.0) { output.WriteRawTag((byte)81); output.WriteDouble(InternalFragmentationFraction); } if (UseCudaMallocAsync) { output.WriteRawTag((byte)88); output.WriteBool(UseCudaMallocAsync); } if (DisallowRetryOnAllocationFailure) { output.WriteRawTag((byte)96); output.WriteBool(DisallowRetryOnAllocationFailure); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += virtualDevices_.CalculateSize(_repeated_virtualDevices_codec); if (UseUnifiedMemory) { num += 2; } if (NumDevToDevCopyStreams != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(NumDevToDevCopyStreams); } if (CollectiveRingOrder.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(CollectiveRingOrder); } if (TimestampedAllocator) { num += 2; } if (KernelTrackerMaxInterval != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(KernelTrackerMaxInterval); } if (KernelTrackerMaxBytes != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(KernelTrackerMaxBytes); } if (KernelTrackerMaxPending != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(KernelTrackerMaxPending); } if (InternalFragmentationFraction != 0.0) { num += 9; } if (UseCudaMallocAsync) { num += 2; } if (DisallowRetryOnAllocationFailure) { num += 2; } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(Experimental other) { if (other != null) { virtualDevices_.Add((IEnumerable)other.virtualDevices_); if (other.UseUnifiedMemory) { UseUnifiedMemory = other.UseUnifiedMemory; } if (other.NumDevToDevCopyStreams != 0) { NumDevToDevCopyStreams = other.NumDevToDevCopyStreams; } if (other.CollectiveRingOrder.Length != 0) { CollectiveRingOrder = other.CollectiveRingOrder; } if (other.TimestampedAllocator) { TimestampedAllocator = other.TimestampedAllocator; } if (other.KernelTrackerMaxInterval != 0) { KernelTrackerMaxInterval = other.KernelTrackerMaxInterval; } if (other.KernelTrackerMaxBytes != 0) { KernelTrackerMaxBytes = other.KernelTrackerMaxBytes; } if (other.KernelTrackerMaxPending != 0) { KernelTrackerMaxPending = other.KernelTrackerMaxPending; } if (other.InternalFragmentationFraction != 0.0) { InternalFragmentationFraction = other.InternalFragmentationFraction; } if (other.UseCudaMallocAsync) { UseCudaMallocAsync = other.UseCudaMallocAsync; } if (other.DisallowRetryOnAllocationFailure) { DisallowRetryOnAllocationFailure = other.DisallowRetryOnAllocationFailure; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: virtualDevices_.AddEntriesFrom(input, _repeated_virtualDevices_codec); break; case 16u: UseUnifiedMemory = input.ReadBool(); break; case 24u: NumDevToDevCopyStreams = input.ReadInt32(); break; case 34u: CollectiveRingOrder = input.ReadString(); break; case 40u: TimestampedAllocator = input.ReadBool(); break; case 56u: KernelTrackerMaxInterval = input.ReadInt32(); break; case 64u: KernelTrackerMaxBytes = input.ReadInt32(); break; case 72u: KernelTrackerMaxPending = input.ReadInt32(); break; case 81u: InternalFragmentationFraction = input.ReadDouble(); break; case 88u: UseCudaMallocAsync = input.ReadBool(); break; case 96u: DisallowRetryOnAllocationFailure = input.ReadBool(); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new GPUOptions())); private UnknownFieldSet _unknownFields; public const int PerProcessGpuMemoryFractionFieldNumber = 1; private double perProcessGpuMemoryFraction_; public const int AllowGrowthFieldNumber = 4; private bool allowGrowth_; public const int AllocatorTypeFieldNumber = 2; private string allocatorType_ = ""; public const int DeferredDeletionBytesFieldNumber = 3; private long deferredDeletionBytes_; public const int VisibleDeviceListFieldNumber = 5; private string visibleDeviceList_ = ""; public const int PollingActiveDelayUsecsFieldNumber = 6; private int pollingActiveDelayUsecs_; public const int PollingInactiveDelayMsecsFieldNumber = 7; private int pollingInactiveDelayMsecs_; public const int ForceGpuCompatibleFieldNumber = 8; private bool forceGpuCompatible_; public const int ExperimentalFieldNumber = 9; private Types.Experimental experimental_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public double PerProcessGpuMemoryFraction { get { return perProcessGpuMemoryFraction_; } set { perProcessGpuMemoryFraction_ = value; } } [DebuggerNonUserCode] public bool AllowGrowth { get { return allowGrowth_; } set { allowGrowth_ = value; } } [DebuggerNonUserCode] public string AllocatorType { get { return allocatorType_; } set { allocatorType_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public long DeferredDeletionBytes { get { return deferredDeletionBytes_; } set { deferredDeletionBytes_ = value; } } [DebuggerNonUserCode] public string VisibleDeviceList { get { return visibleDeviceList_; } set { visibleDeviceList_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public int PollingActiveDelayUsecs { get { return pollingActiveDelayUsecs_; } set { pollingActiveDelayUsecs_ = value; } } [DebuggerNonUserCode] public int PollingInactiveDelayMsecs { get { return pollingInactiveDelayMsecs_; } set { pollingInactiveDelayMsecs_ = value; } } [DebuggerNonUserCode] public bool ForceGpuCompatible { get { return forceGpuCompatible_; } set { forceGpuCompatible_ = value; } } [DebuggerNonUserCode] public Types.Experimental Experimental { get { return experimental_; } set { experimental_ = value; } } [DebuggerNonUserCode] public GPUOptions() { } [DebuggerNonUserCode] public GPUOptions(GPUOptions other) : this() { perProcessGpuMemoryFraction_ = other.perProcessGpuMemoryFraction_; allowGrowth_ = other.allowGrowth_; allocatorType_ = other.allocatorType_; deferredDeletionBytes_ = other.deferredDeletionBytes_; visibleDeviceList_ = other.visibleDeviceList_; pollingActiveDelayUsecs_ = other.pollingActiveDelayUsecs_; pollingInactiveDelayMsecs_ = other.pollingInactiveDelayMsecs_; forceGpuCompatible_ = other.forceGpuCompatible_; experimental_ = ((other.experimental_ != null) ? other.experimental_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public GPUOptions Clone() { return new GPUOptions(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as GPUOptions); } [DebuggerNonUserCode] public bool Equals(GPUOptions other) { if (other == null) { return false; } if (other == this) { return true; } if (!ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(PerProcessGpuMemoryFraction, other.PerProcessGpuMemoryFraction)) { return false; } if (AllowGrowth != other.AllowGrowth) { return false; } if (AllocatorType != other.AllocatorType) { return false; } if (DeferredDeletionBytes != other.DeferredDeletionBytes) { return false; } if (VisibleDeviceList != other.VisibleDeviceList) { return false; } if (PollingActiveDelayUsecs != other.PollingActiveDelayUsecs) { return false; } if (PollingInactiveDelayMsecs != other.PollingInactiveDelayMsecs) { return false; } if (ForceGpuCompatible != other.ForceGpuCompatible) { return false; } if (!object.Equals(Experimental, other.Experimental)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (PerProcessGpuMemoryFraction != 0.0) { num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PerProcessGpuMemoryFraction); } if (AllowGrowth) { num ^= AllowGrowth.GetHashCode(); } if (AllocatorType.Length != 0) { num ^= AllocatorType.GetHashCode(); } if (DeferredDeletionBytes != 0L) { num ^= DeferredDeletionBytes.GetHashCode(); } if (VisibleDeviceList.Length != 0) { num ^= VisibleDeviceList.GetHashCode(); } if (PollingActiveDelayUsecs != 0) { num ^= PollingActiveDelayUsecs.GetHashCode(); } if (PollingInactiveDelayMsecs != 0) { num ^= PollingInactiveDelayMsecs.GetHashCode(); } if (ForceGpuCompatible) { num ^= ForceGpuCompatible.GetHashCode(); } if (experimental_ != null) { num ^= Experimental.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (PerProcessGpuMemoryFraction != 0.0) { output.WriteRawTag((byte)9); output.WriteDouble(PerProcessGpuMemoryFraction); } if (AllocatorType.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(AllocatorType); } if (DeferredDeletionBytes != 0L) { output.WriteRawTag((byte)24); output.WriteInt64(DeferredDeletionBytes); } if (AllowGrowth) { output.WriteRawTag((byte)32); output.WriteBool(AllowGrowth); } if (VisibleDeviceList.Length != 0) { output.WriteRawTag((byte)42); output.WriteString(VisibleDeviceList); } if (PollingActiveDelayUsecs != 0) { output.WriteRawTag((byte)48); output.WriteInt32(PollingActiveDelayUsecs); } if (PollingInactiveDelayMsecs != 0) { output.WriteRawTag((byte)56); output.WriteInt32(PollingInactiveDelayMsecs); } if (ForceGpuCompatible) { output.WriteRawTag((byte)64); output.WriteBool(ForceGpuCompatible); } if (experimental_ != null) { output.WriteRawTag((byte)74); output.WriteMessage((IMessage)(object)Experimental); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (PerProcessGpuMemoryFraction != 0.0) { num += 9; } if (AllowGrowth) { num += 2; } if (AllocatorType.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(AllocatorType); } if (DeferredDeletionBytes != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(DeferredDeletionBytes); } if (VisibleDeviceList.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(VisibleDeviceList); } if (PollingActiveDelayUsecs != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(PollingActiveDelayUsecs); } if (PollingInactiveDelayMsecs != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(PollingInactiveDelayMsecs); } if (ForceGpuCompatible) { num += 2; } if (experimental_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Experimental); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(GPUOptions other) { if (other == null) { return; } if (other.PerProcessGpuMemoryFraction != 0.0) { PerProcessGpuMemoryFraction = other.PerProcessGpuMemoryFraction; } if (other.AllowGrowth) { AllowGrowth = other.AllowGrowth; } if (other.AllocatorType.Length != 0) { AllocatorType = other.AllocatorType; } if (other.DeferredDeletionBytes != 0L) { DeferredDeletionBytes = other.DeferredDeletionBytes; } if (other.VisibleDeviceList.Length != 0) { VisibleDeviceList = other.VisibleDeviceList; } if (other.PollingActiveDelayUsecs != 0) { PollingActiveDelayUsecs = other.PollingActiveDelayUsecs; } if (other.PollingInactiveDelayMsecs != 0) { PollingInactiveDelayMsecs = other.PollingInactiveDelayMsecs; } if (other.ForceGpuCompatible) { ForceGpuCompatible = other.ForceGpuCompatible; } if (other.experimental_ != null) { if (experimental_ == null) { Experimental = new Types.Experimental(); } Experimental.MergeFrom(other.Experimental); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 9u: PerProcessGpuMemoryFraction = input.ReadDouble(); break; case 18u: AllocatorType = input.ReadString(); break; case 24u: DeferredDeletionBytes = input.ReadInt64(); break; case 32u: AllowGrowth = input.ReadBool(); break; case 42u: VisibleDeviceList = input.ReadString(); break; case 48u: PollingActiveDelayUsecs = input.ReadInt32(); break; case 56u: PollingInactiveDelayMsecs = input.ReadInt32(); break; case 64u: ForceGpuCompatible = input.ReadBool(); break; case 74u: if (experimental_ == null) { Experimental = new Types.Experimental(); } input.ReadMessage((IMessage)(object)Experimental); break; } } } } public sealed class OptimizerOptions : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public enum Level { [OriginalName("L1")] L1 = 0, [OriginalName("L0")] L0 = -1 } public enum GlobalJitLevel { [OriginalName("DEFAULT")] Default = 0, [OriginalName("OFF")] Off = -1, [OriginalName("ON_1")] On1 = 1, [OriginalName("ON_2")] On2 = 2 } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new OptimizerOptions())); private UnknownFieldSet _unknownFields; public const int DoCommonSubexpressionEliminationFieldNumber = 1; private bool doCommonSubexpressionElimination_; public const int DoConstantFoldingFieldNumber = 2; private bool doConstantFolding_; public const int MaxFoldedConstantInBytesFieldNumber = 6; private long maxFoldedConstantInBytes_; public const int DoFunctionInliningFieldNumber = 4; private bool doFunctionInlining_; public const int OptLevelFieldNumber = 3; private Types.Level optLevel_; public const int GlobalJitLevelFieldNumber = 5; private Types.GlobalJitLevel globalJitLevel_; public const int CpuGlobalJitFieldNumber = 7; private bool cpuGlobalJit_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public bool DoCommonSubexpressionElimination { get { return doCommonSubexpressionElimination_; } set { doCommonSubexpressionElimination_ = value; } } [DebuggerNonUserCode] public bool DoConstantFolding { get { return doConstantFolding_; } set { doConstantFolding_ = value; } } [DebuggerNonUserCode] public long MaxFoldedConstantInBytes { get { return maxFoldedConstantInBytes_; } set { maxFoldedConstantInBytes_ = value; } } [DebuggerNonUserCode] public bool DoFunctionInlining { get { return doFunctionInlining_; } set { doFunctionInlining_ = value; } } [DebuggerNonUserCode] public Types.Level OptLevel { get { return optLevel_; } set { optLevel_ = value; } } [DebuggerNonUserCode] public Types.GlobalJitLevel GlobalJitLevel { get { return globalJitLevel_; } set { globalJitLevel_ = value; } } [DebuggerNonUserCode] public bool CpuGlobalJit { get { return cpuGlobalJit_; } set { cpuGlobalJit_ = value; } } [DebuggerNonUserCode] public OptimizerOptions() { } [DebuggerNonUserCode] public OptimizerOptions(OptimizerOptions other) : this() { doCommonSubexpressionElimination_ = other.doCommonSubexpressionElimination_; doConstantFolding_ = other.doConstantFolding_; maxFoldedConstantInBytes_ = other.maxFoldedConstantInBytes_; doFunctionInlining_ = other.doFunctionInlining_; optLevel_ = other.optLevel_; globalJitLevel_ = other.globalJitLevel_; cpuGlobalJit_ = other.cpuGlobalJit_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public OptimizerOptions Clone() { return new OptimizerOptions(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as OptimizerOptions); } [DebuggerNonUserCode] public bool Equals(OptimizerOptions other) { if (other == null) { return false; } if (other == this) { return true; } if (DoCommonSubexpressionElimination != other.DoCommonSubexpressionElimination) { return false; } if (DoConstantFolding != other.DoConstantFolding) { return false; } if (MaxFoldedConstantInBytes != other.MaxFoldedConstantInBytes) { return false; } if (DoFunctionInlining != other.DoFunctionInlining) { return false; } if (OptLevel != other.OptLevel) { return false; } if (GlobalJitLevel != other.GlobalJitLevel) { return false; } if (CpuGlobalJit != other.CpuGlobalJit) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (DoCommonSubexpressionElimination) { num ^= DoCommonSubexpressionElimination.GetHashCode(); } if (DoConstantFolding) { num ^= DoConstantFolding.GetHashCode(); } if (MaxFoldedConstantInBytes != 0L) { num ^= MaxFoldedConstantInBytes.GetHashCode(); } if (DoFunctionInlining) { num ^= DoFunctionInlining.GetHashCode(); } if (OptLevel != Types.Level.L1) { num ^= OptLevel.GetHashCode(); } if (GlobalJitLevel != Types.GlobalJitLevel.Default) { num ^= GlobalJitLevel.GetHashCode(); } if (CpuGlobalJit) { num ^= CpuGlobalJit.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (DoCommonSubexpressionElimination) { output.WriteRawTag((byte)8); output.WriteBool(DoCommonSubexpressionElimination); } if (DoConstantFolding) { output.WriteRawTag((byte)16); output.WriteBool(DoConstantFolding); } if (OptLevel != Types.Level.L1) { output.WriteRawTag((byte)24); output.WriteEnum((int)OptLevel); } if (DoFunctionInlining) { output.WriteRawTag((byte)32); output.WriteBool(DoFunctionInlining); } if (GlobalJitLevel != Types.GlobalJitLevel.Default) { output.WriteRawTag((byte)40); output.WriteEnum((int)GlobalJitLevel); } if (MaxFoldedConstantInBytes != 0L) { output.WriteRawTag((byte)48); output.WriteInt64(MaxFoldedConstantInBytes); } if (CpuGlobalJit) { output.WriteRawTag((byte)56); output.WriteBool(CpuGlobalJit); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (DoCommonSubexpressionElimination) { num += 2; } if (DoConstantFolding) { num += 2; } if (MaxFoldedConstantInBytes != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(MaxFoldedConstantInBytes); } if (DoFunctionInlining) { num += 2; } if (OptLevel != Types.Level.L1) { num += 1 + CodedOutputStream.ComputeEnumSize((int)OptLevel); } if (GlobalJitLevel != Types.GlobalJitLevel.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)GlobalJitLevel); } if (CpuGlobalJit) { num += 2; } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(OptimizerOptions other) { if (other != null) { if (other.DoCommonSubexpressionElimination) { DoCommonSubexpressionElimination = other.DoCommonSubexpressionElimination; } if (other.DoConstantFolding) { DoConstantFolding = other.DoConstantFolding; } if (other.MaxFoldedConstantInBytes != 0L) { MaxFoldedConstantInBytes = other.MaxFoldedConstantInBytes; } if (other.DoFunctionInlining) { DoFunctionInlining = other.DoFunctionInlining; } if (other.OptLevel != Types.Level.L1) { OptLevel = other.OptLevel; } if (other.GlobalJitLevel != Types.GlobalJitLevel.Default) { GlobalJitLevel = other.GlobalJitLevel; } if (other.CpuGlobalJit) { CpuGlobalJit = other.CpuGlobalJit; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: DoCommonSubexpressionElimination = input.ReadBool(); break; case 16u: DoConstantFolding = input.ReadBool(); break; case 24u: OptLevel = (Types.Level)input.ReadEnum(); break; case 32u: DoFunctionInlining = input.ReadBool(); break; case 40u: GlobalJitLevel = (Types.GlobalJitLevel)input.ReadEnum(); break; case 48u: MaxFoldedConstantInBytes = input.ReadInt64(); break; case 56u: CpuGlobalJit = input.ReadBool(); break; } } } } public sealed class GraphOptions : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new GraphOptions())); private UnknownFieldSet _unknownFields; public const int EnableRecvSchedulingFieldNumber = 2; private bool enableRecvScheduling_; public const int OptimizerOptionsFieldNumber = 3; private OptimizerOptions optimizerOptions_; public const int BuildCostModelFieldNumber = 4; private long buildCostModel_; public const int BuildCostModelAfterFieldNumber = 9; private long buildCostModelAfter_; public const int InferShapesFieldNumber = 5; private bool inferShapes_; public const int PlacePrunedGraphFieldNumber = 6; private bool placePrunedGraph_; public const int EnableBfloat16SendrecvFieldNumber = 7; private bool enableBfloat16Sendrecv_; public const int TimelineStepFieldNumber = 8; private int timelineStep_; public const int RewriteOptionsFieldNumber = 10; private RewriterConfig rewriteOptions_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigReflection.Descriptor.MessageTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public bool EnableRecvScheduling { get { return enableRecvScheduling_; } set { enableRecvScheduling_ = value; } } [DebuggerNonUserCode] public OptimizerOptions OptimizerOptions { get { return optimizerOptions_; } set { optimizerOptions_ = value; } } [DebuggerNonUserCode] public long BuildCostModel { get { return buildCostModel_; } set { buildCostModel_ = value; } } [DebuggerNonUserCode] public long BuildCostModelAfter { get { return buildCostModelAfter_; } set { buildCostModelAfter_ = value; } } [DebuggerNonUserCode] public bool InferShapes { get { return inferShapes_; } set { inferShapes_ = value; } } [DebuggerNonUserCode] public bool PlacePrunedGraph { get { return placePrunedGraph_; } set { placePrunedGraph_ = value; } } [DebuggerNonUserCode] public bool EnableBfloat16Sendrecv { get { return enableBfloat16Sendrecv_; } set { enableBfloat16Sendrecv_ = value; } } [DebuggerNonUserCode] public int TimelineStep { get { return timelineStep_; } set { timelineStep_ = value; } } [DebuggerNonUserCode] public RewriterConfig RewriteOptions { get { return rewriteOptions_; } set { rewriteOptions_ = value; } } [DebuggerNonUserCode] public GraphOptions() { } [DebuggerNonUserCode] public GraphOptions(GraphOptions other) : this() { enableRecvScheduling_ = other.enableRecvScheduling_; optimizerOptions_ = ((other.optimizerOptions_ != null) ? other.optimizerOptions_.Clone() : null); buildCostModel_ = other.buildCostModel_; buildCostModelAfter_ = other.buildCostModelAfter_; inferShapes_ = other.inferShapes_; placePrunedGraph_ = other.placePrunedGraph_; enableBfloat16Sendrecv_ = other.enableBfloat16Sendrecv_; timelineStep_ = other.timelineStep_; rewriteOptions_ = ((other.rewriteOptions_ != null) ? other.rewriteOptions_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public GraphOptions Clone() { return new GraphOptions(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as GraphOptions); } [DebuggerNonUserCode] public bool Equals(GraphOptions other) { if (other == null) { return false; } if (other == this) { return true; } if (EnableRecvScheduling != other.EnableRecvScheduling) { return false; } if (!object.Equals(OptimizerOptions, other.OptimizerOptions)) { return false; } if (BuildCostModel != other.BuildCostModel) { return false; } if (BuildCostModelAfter != other.BuildCostModelAfter) { return false; } if (InferShapes != other.InferShapes) { return false; } if (PlacePrunedGraph != other.PlacePrunedGraph) { return false; } if (EnableBfloat16Sendrecv != other.EnableBfloat16Sendrecv) { return false; } if (TimelineStep != other.TimelineStep) { return false; } if (!object.Equals(RewriteOptions, other.RewriteOptions)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (EnableRecvScheduling) { num ^= EnableRecvScheduling.GetHashCode(); } if (optimizerOptions_ != null) { num ^= OptimizerOptions.GetHashCode(); } if (BuildCostModel != 0L) { num ^= BuildCostModel.GetHashCode(); } if (BuildCostModelAfter != 0L) { num ^= BuildCostModelAfter.GetHashCode(); } if (InferShapes) { num ^= InferShapes.GetHashCode(); } if (PlacePrunedGraph) { num ^= PlacePrunedGraph.GetHashCode(); } if (EnableBfloat16Sendrecv) { num ^= EnableBfloat16Sendrecv.GetHashCode(); } if (TimelineStep != 0) { num ^= TimelineStep.GetHashCode(); } if (rewriteOptions_ != null) { num ^= RewriteOptions.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (EnableRecvScheduling) { output.WriteRawTag((byte)16); output.WriteBool(EnableRecvScheduling); } if (optimizerOptions_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)OptimizerOptions); } if (BuildCostModel != 0L) { output.WriteRawTag((byte)32); output.WriteInt64(BuildCostModel); } if (InferShapes) { output.WriteRawTag((byte)40); output.WriteBool(InferShapes); } if (PlacePrunedGraph) { output.WriteRawTag((byte)48); output.WriteBool(PlacePrunedGraph); } if (EnableBfloat16Sendrecv) { output.WriteRawTag((byte)56); output.WriteBool(EnableBfloat16Sendrecv); } if (TimelineStep != 0) { output.WriteRawTag((byte)64); output.WriteInt32(TimelineStep); } if (BuildCostModelAfter != 0L) { output.WriteRawTag((byte)72); output.WriteInt64(BuildCostModelAfter); } if (rewriteOptions_ != null) { output.WriteRawTag((byte)82); output.WriteMessage((IMessage)(object)RewriteOptions); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (EnableRecvScheduling) { num += 2; } if (optimizerOptions_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)OptimizerOptions); } if (BuildCostModel != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(BuildCostModel); } if (BuildCostModelAfter != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(BuildCostModelAfter); } if (InferShapes) { num += 2; } if (PlacePrunedGraph) { num += 2; } if (EnableBfloat16Sendrecv) { num += 2; } if (TimelineStep != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(TimelineStep); } if (rewriteOptions_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)RewriteOptions); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(GraphOptions other) { if (other == null) { return; } if (other.EnableRecvScheduling) { EnableRecvScheduling = other.EnableRecvScheduling; } if (other.optimizerOptions_ != null) { if (optimizerOptions_ == null) { OptimizerOptions = new OptimizerOptions(); } OptimizerOptions.MergeFrom(other.OptimizerOptions); } if (other.BuildCostModel != 0L) { BuildCostModel = other.BuildCostModel; } if (other.BuildCostModelAfter != 0L) { BuildCostModelAfter = other.BuildCostModelAfter; } if (other.InferShapes) { InferShapes = other.InferShapes; } if (other.PlacePrunedGraph) { PlacePrunedGraph = other.PlacePrunedGraph; } if (other.EnableBfloat16Sendrecv) { EnableBfloat16Sendrecv = other.EnableBfloat16Sendrecv; } if (other.TimelineStep != 0) { TimelineStep = other.TimelineStep; } if (other.rewriteOptions_ != null) { if (rewriteOptions_ == null) { RewriteOptions = new RewriterConfig(); } RewriteOptions.MergeFrom(other.RewriteOptions); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 16u: EnableRecvScheduling = input.ReadBool(); break; case 26u: if (optimizerOptions_ == null) { OptimizerOptions = new OptimizerOptions(); } input.ReadMessage((IMessage)(object)OptimizerOptions); break; case 32u: BuildCostModel = input.ReadInt64(); break; case 40u: InferShapes = input.ReadBool(); break; case 48u: PlacePrunedGraph = input.ReadBool(); break; case 56u: EnableBfloat16Sendrecv = input.ReadBool(); break; case 64u: TimelineStep = input.ReadInt32(); break; case 72u: BuildCostModelAfter = input.ReadInt64(); break; case 82u: if (rewriteOptions_ == null) { RewriteOptions = new RewriterConfig(); } input.ReadMessage((IMessage)(object)RewriteOptions); break; } } } } public sealed class ThreadPoolOptionProto : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new ThreadPoolOptionProto())); private UnknownFieldSet _unknownFields; public const int NumThreadsFieldNumber = 1; private int numThreads_; public const int GlobalNameFieldNumber = 2; private string globalName_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigReflection.Descriptor.MessageTypes[3]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public int NumThreads { get { return numThreads_; } set { numThreads_ = value; } } [DebuggerNonUserCode] public string GlobalName { get { return globalName_; } set { globalName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public ThreadPoolOptionProto() { } [DebuggerNonUserCode] public ThreadPoolOptionProto(ThreadPoolOptionProto other) : this() { numThreads_ = other.numThreads_; globalName_ = other.globalName_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ThreadPoolOptionProto Clone() { return new ThreadPoolOptionProto(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ThreadPoolOptionProto); } [DebuggerNonUserCode] public bool Equals(ThreadPoolOptionProto other) { if (other == null) { return false; } if (other == this) { return true; } if (NumThreads != other.NumThreads) { return false; } if (GlobalName != other.GlobalName) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (NumThreads != 0) { num ^= NumThreads.GetHashCode(); } if (GlobalName.Length != 0) { num ^= GlobalName.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (NumThreads != 0) { output.WriteRawTag((byte)8); output.WriteInt32(NumThreads); } if (GlobalName.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(GlobalName); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (NumThreads != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(NumThreads); } if (GlobalName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(GlobalName); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ThreadPoolOptionProto other) { if (other != null) { if (other.NumThreads != 0) { NumThreads = other.NumThreads; } if (other.GlobalName.Length != 0) { GlobalName = other.GlobalName; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: NumThreads = input.ReadInt32(); break; case 18u: GlobalName = input.ReadString(); break; } } } } public sealed class RPCOptions : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new RPCOptions())); private UnknownFieldSet _unknownFields; public const int UseRpcForInprocessMasterFieldNumber = 1; private bool useRpcForInprocessMaster_; public const int CompressionAlgorithmFieldNumber = 2; private string compressionAlgorithm_ = ""; public const int CompressionLevelFieldNumber = 3; private int compressionLevel_; public const int CacheRpcResponseFieldNumber = 4; private bool cacheRpcResponse_; public const int DisableSessionConnectionSharingFieldNumber = 5; private bool disableSessionConnectionSharing_; public const int NumChannelsPerTargetFieldNumber = 6; private int numChannelsPerTarget_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigReflection.Descriptor.MessageTypes[4]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public bool UseRpcForInprocessMaster { get { return useRpcForInprocessMaster_; } set { useRpcForInprocessMaster_ = value; } } [DebuggerNonUserCode] public string CompressionAlgorithm { get { return compressionAlgorithm_; } set { compressionAlgorithm_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public int CompressionLevel { get { return compressionLevel_; } set { compressionLevel_ = value; } } [DebuggerNonUserCode] public bool CacheRpcResponse { get { return cacheRpcResponse_; } set { cacheRpcResponse_ = value; } } [DebuggerNonUserCode] public bool DisableSessionConnectionSharing { get { return disableSessionConnectionSharing_; } set { disableSessionConnectionSharing_ = value; } } [DebuggerNonUserCode] public int NumChannelsPerTarget { get { return numChannelsPerTarget_; } set { numChannelsPerTarget_ = value; } } [DebuggerNonUserCode] public RPCOptions() { } [DebuggerNonUserCode] public RPCOptions(RPCOptions other) : this() { useRpcForInprocessMaster_ = other.useRpcForInprocessMaster_; compressionAlgorithm_ = other.compressionAlgorithm_; compressionLevel_ = other.compressionLevel_; cacheRpcResponse_ = other.cacheRpcResponse_; disableSessionConnectionSharing_ = other.disableSessionConnectionSharing_; numChannelsPerTarget_ = other.numChannelsPerTarget_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public RPCOptions Clone() { return new RPCOptions(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as RPCOptions); } [DebuggerNonUserCode] public bool Equals(RPCOptions other) { if (other == null) { return false; } if (other == this) { return true; } if (UseRpcForInprocessMaster != other.UseRpcForInprocessMaster) { return false; } if (CompressionAlgorithm != other.CompressionAlgorithm) { return false; } if (CompressionLevel != other.CompressionLevel) { return false; } if (CacheRpcResponse != other.CacheRpcResponse) { return false; } if (DisableSessionConnectionSharing != other.DisableSessionConnectionSharing) { return false; } if (NumChannelsPerTarget != other.NumChannelsPerTarget) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (UseRpcForInprocessMaster) { num ^= UseRpcForInprocessMaster.GetHashCode(); } if (CompressionAlgorithm.Length != 0) { num ^= CompressionAlgorithm.GetHashCode(); } if (CompressionLevel != 0) { num ^= CompressionLevel.GetHashCode(); } if (CacheRpcResponse) { num ^= CacheRpcResponse.GetHashCode(); } if (DisableSessionConnectionSharing) { num ^= DisableSessionConnectionSharing.GetHashCode(); } if (NumChannelsPerTarget != 0) { num ^= NumChannelsPerTarget.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (UseRpcForInprocessMaster) { output.WriteRawTag((byte)8); output.WriteBool(UseRpcForInprocessMaster); } if (CompressionAlgorithm.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(CompressionAlgorithm); } if (CompressionLevel != 0) { output.WriteRawTag((byte)24); output.WriteInt32(CompressionLevel); } if (CacheRpcResponse) { output.WriteRawTag((byte)32); output.WriteBool(CacheRpcResponse); } if (DisableSessionConnectionSharing) { output.WriteRawTag((byte)40); output.WriteBool(DisableSessionConnectionSharing); } if (NumChannelsPerTarget != 0) { output.WriteRawTag((byte)48); output.WriteInt32(NumChannelsPerTarget); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (UseRpcForInprocessMaster) { num += 2; } if (CompressionAlgorithm.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(CompressionAlgorithm); } if (CompressionLevel != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(CompressionLevel); } if (CacheRpcResponse) { num += 2; } if (DisableSessionConnectionSharing) { num += 2; } if (NumChannelsPerTarget != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(NumChannelsPerTarget); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(RPCOptions other) { if (other != null) { if (other.UseRpcForInprocessMaster) { UseRpcForInprocessMaster = other.UseRpcForInprocessMaster; } if (other.CompressionAlgorithm.Length != 0) { CompressionAlgorithm = other.CompressionAlgorithm; } if (other.CompressionLevel != 0) { CompressionLevel = other.CompressionLevel; } if (other.CacheRpcResponse) { CacheRpcResponse = other.CacheRpcResponse; } if (other.DisableSessionConnectionSharing) { DisableSessionConnectionSharing = other.DisableSessionConnectionSharing; } if (other.NumChannelsPerTarget != 0) { NumChannelsPerTarget = other.NumChannelsPerTarget; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: UseRpcForInprocessMaster = input.ReadBool(); break; case 18u: CompressionAlgorithm = input.ReadString(); break; case 24u: CompressionLevel = input.ReadInt32(); break; case 32u: CacheRpcResponse = input.ReadBool(); break; case 40u: DisableSessionConnectionSharing = input.ReadBool(); break; case 48u: NumChannelsPerTarget = input.ReadInt32(); break; } } } } public sealed class SessionMetadata : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SessionMetadata())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int VersionFieldNumber = 2; private long version_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigReflection.Descriptor.MessageTypes[5]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public long Version { get { return version_; } set { version_ = value; } } [DebuggerNonUserCode] public SessionMetadata() { } [DebuggerNonUserCode] public SessionMetadata(SessionMetadata other) : this() { name_ = other.name_; version_ = other.version_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SessionMetadata Clone() { return new SessionMetadata(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SessionMetadata); } [DebuggerNonUserCode] public bool Equals(SessionMetadata other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (Version != other.Version) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (Version != 0L) { num ^= Version.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (Version != 0L) { output.WriteRawTag((byte)16); output.WriteInt64(Version); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (Version != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(Version); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SessionMetadata other) { if (other != null) { if (other.Name.Length != 0) { Name = other.Name; } if (other.Version != 0L) { Version = other.Version; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 16u: Version = input.ReadInt64(); break; } } } } public sealed class ConfigProto : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class Experimental : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public enum MlirBridgeRollout { [OriginalName("MLIR_BRIDGE_ROLLOUT_UNSPECIFIED")] Unspecified, [OriginalName("MLIR_BRIDGE_ROLLOUT_ENABLED")] Enabled, [OriginalName("MLIR_BRIDGE_ROLLOUT_DISABLED")] Disabled, [OriginalName("MLIR_BRIDGE_ROLLOUT_SAFE_MODE_ENABLED")] SafeModeEnabled, [OriginalName("MLIR_BRIDGE_ROLLOUT_SAFE_MODE_FALLBACK_ENABLED")] SafeModeFallbackEnabled } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new Experimental())); private UnknownFieldSet _unknownFields; public const int CollectiveGroupLeaderFieldNumber = 1; private string collectiveGroupLeader_ = ""; public const int ExecutorTypeFieldNumber = 3; private string executorType_ = ""; public const int RecvBufMaxChunkFieldNumber = 4; private int recvBufMaxChunk_; public const int UseNumaAffinityFieldNumber = 5; private bool useNumaAffinity_; public const int CollectiveDeterministicSequentialExecutionFieldNumber = 6; private bool collectiveDeterministicSequentialExecution_; public const int CollectiveNcclFieldNumber = 7; private bool collectiveNccl_; public const int ShareSessionStateInClusterspecPropagationFieldNumber = 8; private bool shareSessionStateInClusterspecPropagation_; public const int DisableThreadSpinningFieldNumber = 9; private bool disableThreadSpinning_; public const int ShareClusterDevicesInSessionFieldNumber = 10; private bool shareClusterDevicesInSession_; public const int SessionMetadataFieldNumber = 11; private SessionMetadata sessionMetadata_; public const int OptimizeForStaticGraphFieldNumber = 12; private bool optimizeForStaticGraph_; public const int EnableMlirBridgeFieldNumber = 13; private bool enableMlirBridge_; public const int MlirBridgeRolloutFieldNumber = 17; private Types.MlirBridgeRollout mlirBridgeRollout_; public const int EnableMlirGraphOptimizationFieldNumber = 16; private bool enableMlirGraphOptimization_; public const int DisableOutputPartitionGraphsFieldNumber = 14; private bool disableOutputPartitionGraphs_; public const int XlaFusionAutotunerThreshFieldNumber = 15; private long xlaFusionAutotunerThresh_; public const int UseTfrtFieldNumber = 18; private bool useTfrt_; public const int DisableFunctionalOpsLoweringFieldNumber = 21; private bool disableFunctionalOpsLowering_; public const int XlaPreferSingleGraphClusterFieldNumber = 22; private bool xlaPreferSingleGraphCluster_; public const int CoordinationConfigFieldNumber = 23; private CoordinationServiceConfig coordinationConfig_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigProto.Descriptor.NestedTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string CollectiveGroupLeader { get { return collectiveGroupLeader_; } set { collectiveGroupLeader_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string ExecutorType { get { return executorType_; } set { executorType_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public int RecvBufMaxChunk { get { return recvBufMaxChunk_; } set { recvBufMaxChunk_ = value; } } [DebuggerNonUserCode] public bool UseNumaAffinity { get { return useNumaAffinity_; } set { useNumaAffinity_ = value; } } [DebuggerNonUserCode] public bool CollectiveDeterministicSequentialExecution { get { return collectiveDeterministicSequentialExecution_; } set { collectiveDeterministicSequentialExecution_ = value; } } [DebuggerNonUserCode] public bool CollectiveNccl { get { return collectiveNccl_; } set { collectiveNccl_ = value; } } [DebuggerNonUserCode] public bool ShareSessionStateInClusterspecPropagation { get { return shareSessionStateInClusterspecPropagation_; } set { shareSessionStateInClusterspecPropagation_ = value; } } [DebuggerNonUserCode] public bool DisableThreadSpinning { get { return disableThreadSpinning_; } set { disableThreadSpinning_ = value; } } [DebuggerNonUserCode] public bool ShareClusterDevicesInSession { get { return shareClusterDevicesInSession_; } set { shareClusterDevicesInSession_ = value; } } [DebuggerNonUserCode] public SessionMetadata SessionMetadata { get { return sessionMetadata_; } set { sessionMetadata_ = value; } } [DebuggerNonUserCode] public bool OptimizeForStaticGraph { get { return optimizeForStaticGraph_; } set { optimizeForStaticGraph_ = value; } } [DebuggerNonUserCode] public bool EnableMlirBridge { get { return enableMlirBridge_; } set { enableMlirBridge_ = value; } } [DebuggerNonUserCode] public Types.MlirBridgeRollout MlirBridgeRollout { get { return mlirBridgeRollout_; } set { mlirBridgeRollout_ = value; } } [DebuggerNonUserCode] public bool EnableMlirGraphOptimization { get { return enableMlirGraphOptimization_; } set { enableMlirGraphOptimization_ = value; } } [DebuggerNonUserCode] public bool DisableOutputPartitionGraphs { get { return disableOutputPartitionGraphs_; } set { disableOutputPartitionGraphs_ = value; } } [DebuggerNonUserCode] public long XlaFusionAutotunerThresh { get { return xlaFusionAutotunerThresh_; } set { xlaFusionAutotunerThresh_ = value; } } [DebuggerNonUserCode] public bool UseTfrt { get { return useTfrt_; } set { useTfrt_ = value; } } [DebuggerNonUserCode] public bool DisableFunctionalOpsLowering { get { return disableFunctionalOpsLowering_; } set { disableFunctionalOpsLowering_ = value; } } [DebuggerNonUserCode] public bool XlaPreferSingleGraphCluster { get { return xlaPreferSingleGraphCluster_; } set { xlaPreferSingleGraphCluster_ = value; } } [DebuggerNonUserCode] public CoordinationServiceConfig CoordinationConfig { get { return coordinationConfig_; } set { coordinationConfig_ = value; } } [DebuggerNonUserCode] public Experimental() { } [DebuggerNonUserCode] public Experimental(Experimental other) : this() { collectiveGroupLeader_ = other.collectiveGroupLeader_; executorType_ = other.executorType_; recvBufMaxChunk_ = other.recvBufMaxChunk_; useNumaAffinity_ = other.useNumaAffinity_; collectiveDeterministicSequentialExecution_ = other.collectiveDeterministicSequentialExecution_; collectiveNccl_ = other.collectiveNccl_; shareSessionStateInClusterspecPropagation_ = other.shareSessionStateInClusterspecPropagation_; disableThreadSpinning_ = other.disableThreadSpinning_; shareClusterDevicesInSession_ = other.shareClusterDevicesInSession_; sessionMetadata_ = ((other.sessionMetadata_ != null) ? other.sessionMetadata_.Clone() : null); optimizeForStaticGraph_ = other.optimizeForStaticGraph_; enableMlirBridge_ = other.enableMlirBridge_; mlirBridgeRollout_ = other.mlirBridgeRollout_; enableMlirGraphOptimization_ = other.enableMlirGraphOptimization_; disableOutputPartitionGraphs_ = other.disableOutputPartitionGraphs_; xlaFusionAutotunerThresh_ = other.xlaFusionAutotunerThresh_; useTfrt_ = other.useTfrt_; disableFunctionalOpsLowering_ = other.disableFunctionalOpsLowering_; xlaPreferSingleGraphCluster_ = other.xlaPreferSingleGraphCluster_; coordinationConfig_ = ((other.coordinationConfig_ != null) ? other.coordinationConfig_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public Experimental Clone() { return new Experimental(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as Experimental); } [DebuggerNonUserCode] public bool Equals(Experimental other) { if (other == null) { return false; } if (other == this) { return true; } if (CollectiveGroupLeader != other.CollectiveGroupLeader) { return false; } if (ExecutorType != other.ExecutorType) { return false; } if (RecvBufMaxChunk != other.RecvBufMaxChunk) { return false; } if (UseNumaAffinity != other.UseNumaAffinity) { return false; } if (CollectiveDeterministicSequentialExecution != other.CollectiveDeterministicSequentialExecution) { return false; } if (CollectiveNccl != other.CollectiveNccl) { return false; } if (ShareSessionStateInClusterspecPropagation != other.ShareSessionStateInClusterspecPropagation) { return false; } if (DisableThreadSpinning != other.DisableThreadSpinning) { return false; } if (ShareClusterDevicesInSession != other.ShareClusterDevicesInSession) { return false; } if (!object.Equals(SessionMetadata, other.SessionMetadata)) { return false; } if (OptimizeForStaticGraph != other.OptimizeForStaticGraph) { return false; } if (EnableMlirBridge != other.EnableMlirBridge) { return false; } if (MlirBridgeRollout != other.MlirBridgeRollout) { return false; } if (EnableMlirGraphOptimization != other.EnableMlirGraphOptimization) { return false; } if (DisableOutputPartitionGraphs != other.DisableOutputPartitionGraphs) { return false; } if (XlaFusionAutotunerThresh != other.XlaFusionAutotunerThresh) { return false; } if (UseTfrt != other.UseTfrt) { return false; } if (DisableFunctionalOpsLowering != other.DisableFunctionalOpsLowering) { return false; } if (XlaPreferSingleGraphCluster != other.XlaPreferSingleGraphCluster) { return false; } if (!object.Equals(CoordinationConfig, other.CoordinationConfig)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (CollectiveGroupLeader.Length != 0) { num ^= CollectiveGroupLeader.GetHashCode(); } if (ExecutorType.Length != 0) { num ^= ExecutorType.GetHashCode(); } if (RecvBufMaxChunk != 0) { num ^= RecvBufMaxChunk.GetHashCode(); } if (UseNumaAffinity) { num ^= UseNumaAffinity.GetHashCode(); } if (CollectiveDeterministicSequentialExecution) { num ^= CollectiveDeterministicSequentialExecution.GetHashCode(); } if (CollectiveNccl) { num ^= CollectiveNccl.GetHashCode(); } if (ShareSessionStateInClusterspecPropagation) { num ^= ShareSessionStateInClusterspecPropagation.GetHashCode(); } if (DisableThreadSpinning) { num ^= DisableThreadSpinning.GetHashCode(); } if (ShareClusterDevicesInSession) { num ^= ShareClusterDevicesInSession.GetHashCode(); } if (sessionMetadata_ != null) { num ^= SessionMetadata.GetHashCode(); } if (OptimizeForStaticGraph) { num ^= OptimizeForStaticGraph.GetHashCode(); } if (EnableMlirBridge) { num ^= EnableMlirBridge.GetHashCode(); } if (MlirBridgeRollout != Types.MlirBridgeRollout.Unspecified) { num ^= MlirBridgeRollout.GetHashCode(); } if (EnableMlirGraphOptimization) { num ^= EnableMlirGraphOptimization.GetHashCode(); } if (DisableOutputPartitionGraphs) { num ^= DisableOutputPartitionGraphs.GetHashCode(); } if (XlaFusionAutotunerThresh != 0L) { num ^= XlaFusionAutotunerThresh.GetHashCode(); } if (UseTfrt) { num ^= UseTfrt.GetHashCode(); } if (DisableFunctionalOpsLowering) { num ^= DisableFunctionalOpsLowering.GetHashCode(); } if (XlaPreferSingleGraphCluster) { num ^= XlaPreferSingleGraphCluster.GetHashCode(); } if (coordinationConfig_ != null) { num ^= CoordinationConfig.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (CollectiveGroupLeader.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(CollectiveGroupLeader); } if (ExecutorType.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(ExecutorType); } if (RecvBufMaxChunk != 0) { output.WriteRawTag((byte)32); output.WriteInt32(RecvBufMaxChunk); } if (UseNumaAffinity) { output.WriteRawTag((byte)40); output.WriteBool(UseNumaAffinity); } if (CollectiveDeterministicSequentialExecution) { output.WriteRawTag((byte)48); output.WriteBool(CollectiveDeterministicSequentialExecution); } if (CollectiveNccl) { output.WriteRawTag((byte)56); output.WriteBool(CollectiveNccl); } if (ShareSessionStateInClusterspecPropagation) { output.WriteRawTag((byte)64); output.WriteBool(ShareSessionStateInClusterspecPropagation); } if (DisableThreadSpinning) { output.WriteRawTag((byte)72); output.WriteBool(DisableThreadSpinning); } if (ShareClusterDevicesInSession) { output.WriteRawTag((byte)80); output.WriteBool(ShareClusterDevicesInSession); } if (sessionMetadata_ != null) { output.WriteRawTag((byte)90); output.WriteMessage((IMessage)(object)SessionMetadata); } if (OptimizeForStaticGraph) { output.WriteRawTag((byte)96); output.WriteBool(OptimizeForStaticGraph); } if (EnableMlirBridge) { output.WriteRawTag((byte)104); output.WriteBool(EnableMlirBridge); } if (DisableOutputPartitionGraphs) { output.WriteRawTag((byte)112); output.WriteBool(DisableOutputPartitionGraphs); } if (XlaFusionAutotunerThresh != 0L) { output.WriteRawTag((byte)120); output.WriteInt64(XlaFusionAutotunerThresh); } if (EnableMlirGraphOptimization) { output.WriteRawTag((byte)128, (byte)1); output.WriteBool(EnableMlirGraphOptimization); } if (MlirBridgeRollout != Types.MlirBridgeRollout.Unspecified) { output.WriteRawTag((byte)136, (byte)1); output.WriteEnum((int)MlirBridgeRollout); } if (UseTfrt) { output.WriteRawTag((byte)144, (byte)1); output.WriteBool(UseTfrt); } if (DisableFunctionalOpsLowering) { output.WriteRawTag((byte)168, (byte)1); output.WriteBool(DisableFunctionalOpsLowering); } if (XlaPreferSingleGraphCluster) { output.WriteRawTag((byte)176, (byte)1); output.WriteBool(XlaPreferSingleGraphCluster); } if (coordinationConfig_ != null) { output.WriteRawTag((byte)186, (byte)1); output.WriteMessage((IMessage)(object)CoordinationConfig); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (CollectiveGroupLeader.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(CollectiveGroupLeader); } if (ExecutorType.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(ExecutorType); } if (RecvBufMaxChunk != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(RecvBufMaxChunk); } if (UseNumaAffinity) { num += 2; } if (CollectiveDeterministicSequentialExecution) { num += 2; } if (CollectiveNccl) { num += 2; } if (ShareSessionStateInClusterspecPropagation) { num += 2; } if (DisableThreadSpinning) { num += 2; } if (ShareClusterDevicesInSession) { num += 2; } if (sessionMetadata_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)SessionMetadata); } if (OptimizeForStaticGraph) { num += 2; } if (EnableMlirBridge) { num += 2; } if (MlirBridgeRollout != Types.MlirBridgeRollout.Unspecified) { num += 2 + CodedOutputStream.ComputeEnumSize((int)MlirBridgeRollout); } if (EnableMlirGraphOptimization) { num += 3; } if (DisableOutputPartitionGraphs) { num += 2; } if (XlaFusionAutotunerThresh != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(XlaFusionAutotunerThresh); } if (UseTfrt) { num += 3; } if (DisableFunctionalOpsLowering) { num += 3; } if (XlaPreferSingleGraphCluster) { num += 3; } if (coordinationConfig_ != null) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)CoordinationConfig); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(Experimental other) { if (other == null) { return; } if (other.CollectiveGroupLeader.Length != 0) { CollectiveGroupLeader = other.CollectiveGroupLeader; } if (other.ExecutorType.Length != 0) { ExecutorType = other.ExecutorType; } if (other.RecvBufMaxChunk != 0) { RecvBufMaxChunk = other.RecvBufMaxChunk; } if (other.UseNumaAffinity) { UseNumaAffinity = other.UseNumaAffinity; } if (other.CollectiveDeterministicSequentialExecution) { CollectiveDeterministicSequentialExecution = other.CollectiveDeterministicSequentialExecution; } if (other.CollectiveNccl) { CollectiveNccl = other.CollectiveNccl; } if (other.ShareSessionStateInClusterspecPropagation) { ShareSessionStateInClusterspecPropagation = other.ShareSessionStateInClusterspecPropagation; } if (other.DisableThreadSpinning) { DisableThreadSpinning = other.DisableThreadSpinning; } if (other.ShareClusterDevicesInSession) { ShareClusterDevicesInSession = other.ShareClusterDevicesInSession; } if (other.sessionMetadata_ != null) { if (sessionMetadata_ == null) { SessionMetadata = new SessionMetadata(); } SessionMetadata.MergeFrom(other.SessionMetadata); } if (other.OptimizeForStaticGraph) { OptimizeForStaticGraph = other.OptimizeForStaticGraph; } if (other.EnableMlirBridge) { EnableMlirBridge = other.EnableMlirBridge; } if (other.MlirBridgeRollout != Types.MlirBridgeRollout.Unspecified) { MlirBridgeRollout = other.MlirBridgeRollout; } if (other.EnableMlirGraphOptimization) { EnableMlirGraphOptimization = other.EnableMlirGraphOptimization; } if (other.DisableOutputPartitionGraphs) { DisableOutputPartitionGraphs = other.DisableOutputPartitionGraphs; } if (other.XlaFusionAutotunerThresh != 0L) { XlaFusionAutotunerThresh = other.XlaFusionAutotunerThresh; } if (other.UseTfrt) { UseTfrt = other.UseTfrt; } if (other.DisableFunctionalOpsLowering) { DisableFunctionalOpsLowering = other.DisableFunctionalOpsLowering; } if (other.XlaPreferSingleGraphCluster) { XlaPreferSingleGraphCluster = other.XlaPreferSingleGraphCluster; } if (other.coordinationConfig_ != null) { if (coordinationConfig_ == null) { CoordinationConfig = new CoordinationServiceConfig(); } CoordinationConfig.MergeFrom(other.CoordinationConfig); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: CollectiveGroupLeader = input.ReadString(); break; case 26u: ExecutorType = input.ReadString(); break; case 32u: RecvBufMaxChunk = input.ReadInt32(); break; case 40u: UseNumaAffinity = input.ReadBool(); break; case 48u: CollectiveDeterministicSequentialExecution = input.ReadBool(); break; case 56u: CollectiveNccl = input.ReadBool(); break; case 64u: ShareSessionStateInClusterspecPropagation = input.ReadBool(); break; case 72u: DisableThreadSpinning = input.ReadBool(); break; case 80u: ShareClusterDevicesInSession = input.ReadBool(); break; case 90u: if (sessionMetadata_ == null) { SessionMetadata = new SessionMetadata(); } input.ReadMessage((IMessage)(object)SessionMetadata); break; case 96u: OptimizeForStaticGraph = input.ReadBool(); break; case 104u: EnableMlirBridge = input.ReadBool(); break; case 112u: DisableOutputPartitionGraphs = input.ReadBool(); break; case 120u: XlaFusionAutotunerThresh = input.ReadInt64(); break; case 128u: EnableMlirGraphOptimization = input.ReadBool(); break; case 136u: MlirBridgeRollout = (Types.MlirBridgeRollout)input.ReadEnum(); break; case 144u: UseTfrt = input.ReadBool(); break; case 168u: DisableFunctionalOpsLowering = input.ReadBool(); break; case 176u: XlaPreferSingleGraphCluster = input.ReadBool(); break; case 186u: if (coordinationConfig_ == null) { CoordinationConfig = new CoordinationServiceConfig(); } input.ReadMessage((IMessage)(object)CoordinationConfig); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new ConfigProto())); private UnknownFieldSet _unknownFields; public const int DeviceCountFieldNumber = 1; private static readonly Codec _map_deviceCount_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForInt32(16u, 0), 10u); private readonly MapField deviceCount_ = new MapField(); public const int IntraOpParallelismThreadsFieldNumber = 2; private int intraOpParallelismThreads_; public const int InterOpParallelismThreadsFieldNumber = 5; private int interOpParallelismThreads_; public const int UsePerSessionThreadsFieldNumber = 9; private bool usePerSessionThreads_; public const int SessionInterOpThreadPoolFieldNumber = 12; private static readonly FieldCodec _repeated_sessionInterOpThreadPool_codec = FieldCodec.ForMessage(98u, ThreadPoolOptionProto.Parser); private readonly RepeatedField sessionInterOpThreadPool_ = new RepeatedField(); public const int PlacementPeriodFieldNumber = 3; private int placementPeriod_; public const int DeviceFiltersFieldNumber = 4; private static readonly FieldCodec _repeated_deviceFilters_codec = FieldCodec.ForString(34u); private readonly RepeatedField deviceFilters_ = new RepeatedField(); public const int GpuOptionsFieldNumber = 6; private GPUOptions gpuOptions_; public const int AllowSoftPlacementFieldNumber = 7; private bool allowSoftPlacement_; public const int LogDevicePlacementFieldNumber = 8; private bool logDevicePlacement_; public const int GraphOptionsFieldNumber = 10; private GraphOptions graphOptions_; public const int OperationTimeoutInMsFieldNumber = 11; private long operationTimeoutInMs_; public const int RpcOptionsFieldNumber = 13; private RPCOptions rpcOptions_; public const int ClusterDefFieldNumber = 14; private ClusterDef clusterDef_; public const int IsolateSessionStateFieldNumber = 15; private bool isolateSessionState_; public const int ShareClusterDevicesInSessionFieldNumber = 17; private bool shareClusterDevicesInSession_; public const int ExperimentalFieldNumber = 16; private Types.Experimental experimental_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigReflection.Descriptor.MessageTypes[6]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public MapField DeviceCount => deviceCount_; [DebuggerNonUserCode] public int IntraOpParallelismThreads { get { return intraOpParallelismThreads_; } set { intraOpParallelismThreads_ = value; } } [DebuggerNonUserCode] public int InterOpParallelismThreads { get { return interOpParallelismThreads_; } set { interOpParallelismThreads_ = value; } } [DebuggerNonUserCode] public bool UsePerSessionThreads { get { return usePerSessionThreads_; } set { usePerSessionThreads_ = value; } } [DebuggerNonUserCode] public RepeatedField SessionInterOpThreadPool => sessionInterOpThreadPool_; [DebuggerNonUserCode] public int PlacementPeriod { get { return placementPeriod_; } set { placementPeriod_ = value; } } [DebuggerNonUserCode] public RepeatedField DeviceFilters => deviceFilters_; [DebuggerNonUserCode] public GPUOptions GpuOptions { get { return gpuOptions_; } set { gpuOptions_ = value; } } [DebuggerNonUserCode] public bool AllowSoftPlacement { get { return allowSoftPlacement_; } set { allowSoftPlacement_ = value; } } [DebuggerNonUserCode] public bool LogDevicePlacement { get { return logDevicePlacement_; } set { logDevicePlacement_ = value; } } [DebuggerNonUserCode] public GraphOptions GraphOptions { get { return graphOptions_; } set { graphOptions_ = value; } } [DebuggerNonUserCode] public long OperationTimeoutInMs { get { return operationTimeoutInMs_; } set { operationTimeoutInMs_ = value; } } [DebuggerNonUserCode] public RPCOptions RpcOptions { get { return rpcOptions_; } set { rpcOptions_ = value; } } [DebuggerNonUserCode] public ClusterDef ClusterDef { get { return clusterDef_; } set { clusterDef_ = value; } } [DebuggerNonUserCode] public bool IsolateSessionState { get { return isolateSessionState_; } set { isolateSessionState_ = value; } } [DebuggerNonUserCode] public bool ShareClusterDevicesInSession { get { return shareClusterDevicesInSession_; } set { shareClusterDevicesInSession_ = value; } } [DebuggerNonUserCode] public Types.Experimental Experimental { get { return experimental_; } set { experimental_ = value; } } [DebuggerNonUserCode] public ConfigProto() { } [DebuggerNonUserCode] public ConfigProto(ConfigProto other) : this() { deviceCount_ = other.deviceCount_.Clone(); intraOpParallelismThreads_ = other.intraOpParallelismThreads_; interOpParallelismThreads_ = other.interOpParallelismThreads_; usePerSessionThreads_ = other.usePerSessionThreads_; sessionInterOpThreadPool_ = other.sessionInterOpThreadPool_.Clone(); placementPeriod_ = other.placementPeriod_; deviceFilters_ = other.deviceFilters_.Clone(); gpuOptions_ = ((other.gpuOptions_ != null) ? other.gpuOptions_.Clone() : null); allowSoftPlacement_ = other.allowSoftPlacement_; logDevicePlacement_ = other.logDevicePlacement_; graphOptions_ = ((other.graphOptions_ != null) ? other.graphOptions_.Clone() : null); operationTimeoutInMs_ = other.operationTimeoutInMs_; rpcOptions_ = ((other.rpcOptions_ != null) ? other.rpcOptions_.Clone() : null); clusterDef_ = ((other.clusterDef_ != null) ? other.clusterDef_.Clone() : null); isolateSessionState_ = other.isolateSessionState_; shareClusterDevicesInSession_ = other.shareClusterDevicesInSession_; experimental_ = ((other.experimental_ != null) ? other.experimental_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ConfigProto Clone() { return new ConfigProto(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ConfigProto); } [DebuggerNonUserCode] public bool Equals(ConfigProto other) { if (other == null) { return false; } if (other == this) { return true; } if (!DeviceCount.Equals(other.DeviceCount)) { return false; } if (IntraOpParallelismThreads != other.IntraOpParallelismThreads) { return false; } if (InterOpParallelismThreads != other.InterOpParallelismThreads) { return false; } if (UsePerSessionThreads != other.UsePerSessionThreads) { return false; } if (!sessionInterOpThreadPool_.Equals(other.sessionInterOpThreadPool_)) { return false; } if (PlacementPeriod != other.PlacementPeriod) { return false; } if (!deviceFilters_.Equals(other.deviceFilters_)) { return false; } if (!object.Equals(GpuOptions, other.GpuOptions)) { return false; } if (AllowSoftPlacement != other.AllowSoftPlacement) { return false; } if (LogDevicePlacement != other.LogDevicePlacement) { return false; } if (!object.Equals(GraphOptions, other.GraphOptions)) { return false; } if (OperationTimeoutInMs != other.OperationTimeoutInMs) { return false; } if (!object.Equals(RpcOptions, other.RpcOptions)) { return false; } if (!object.Equals(ClusterDef, other.ClusterDef)) { return false; } if (IsolateSessionState != other.IsolateSessionState) { return false; } if (ShareClusterDevicesInSession != other.ShareClusterDevicesInSession) { return false; } if (!object.Equals(Experimental, other.Experimental)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)DeviceCount).GetHashCode(); if (IntraOpParallelismThreads != 0) { num ^= IntraOpParallelismThreads.GetHashCode(); } if (InterOpParallelismThreads != 0) { num ^= InterOpParallelismThreads.GetHashCode(); } if (UsePerSessionThreads) { num ^= UsePerSessionThreads.GetHashCode(); } num ^= ((object)sessionInterOpThreadPool_).GetHashCode(); if (PlacementPeriod != 0) { num ^= PlacementPeriod.GetHashCode(); } num ^= ((object)deviceFilters_).GetHashCode(); if (gpuOptions_ != null) { num ^= GpuOptions.GetHashCode(); } if (AllowSoftPlacement) { num ^= AllowSoftPlacement.GetHashCode(); } if (LogDevicePlacement) { num ^= LogDevicePlacement.GetHashCode(); } if (graphOptions_ != null) { num ^= GraphOptions.GetHashCode(); } if (OperationTimeoutInMs != 0L) { num ^= OperationTimeoutInMs.GetHashCode(); } if (rpcOptions_ != null) { num ^= RpcOptions.GetHashCode(); } if (clusterDef_ != null) { num ^= ClusterDef.GetHashCode(); } if (IsolateSessionState) { num ^= IsolateSessionState.GetHashCode(); } if (ShareClusterDevicesInSession) { num ^= ShareClusterDevicesInSession.GetHashCode(); } if (experimental_ != null) { num ^= Experimental.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { deviceCount_.WriteTo(output, _map_deviceCount_codec); if (IntraOpParallelismThreads != 0) { output.WriteRawTag((byte)16); output.WriteInt32(IntraOpParallelismThreads); } if (PlacementPeriod != 0) { output.WriteRawTag((byte)24); output.WriteInt32(PlacementPeriod); } deviceFilters_.WriteTo(output, _repeated_deviceFilters_codec); if (InterOpParallelismThreads != 0) { output.WriteRawTag((byte)40); output.WriteInt32(InterOpParallelismThreads); } if (gpuOptions_ != null) { output.WriteRawTag((byte)50); output.WriteMessage((IMessage)(object)GpuOptions); } if (AllowSoftPlacement) { output.WriteRawTag((byte)56); output.WriteBool(AllowSoftPlacement); } if (LogDevicePlacement) { output.WriteRawTag((byte)64); output.WriteBool(LogDevicePlacement); } if (UsePerSessionThreads) { output.WriteRawTag((byte)72); output.WriteBool(UsePerSessionThreads); } if (graphOptions_ != null) { output.WriteRawTag((byte)82); output.WriteMessage((IMessage)(object)GraphOptions); } if (OperationTimeoutInMs != 0L) { output.WriteRawTag((byte)88); output.WriteInt64(OperationTimeoutInMs); } sessionInterOpThreadPool_.WriteTo(output, _repeated_sessionInterOpThreadPool_codec); if (rpcOptions_ != null) { output.WriteRawTag((byte)106); output.WriteMessage((IMessage)(object)RpcOptions); } if (clusterDef_ != null) { output.WriteRawTag((byte)114); output.WriteMessage((IMessage)(object)ClusterDef); } if (IsolateSessionState) { output.WriteRawTag((byte)120); output.WriteBool(IsolateSessionState); } if (experimental_ != null) { output.WriteRawTag((byte)130, (byte)1); output.WriteMessage((IMessage)(object)Experimental); } if (ShareClusterDevicesInSession) { output.WriteRawTag((byte)136, (byte)1); output.WriteBool(ShareClusterDevicesInSession); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += deviceCount_.CalculateSize(_map_deviceCount_codec); if (IntraOpParallelismThreads != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(IntraOpParallelismThreads); } if (InterOpParallelismThreads != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(InterOpParallelismThreads); } if (UsePerSessionThreads) { num += 2; } num += sessionInterOpThreadPool_.CalculateSize(_repeated_sessionInterOpThreadPool_codec); if (PlacementPeriod != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(PlacementPeriod); } num += deviceFilters_.CalculateSize(_repeated_deviceFilters_codec); if (gpuOptions_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)GpuOptions); } if (AllowSoftPlacement) { num += 2; } if (LogDevicePlacement) { num += 2; } if (graphOptions_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)GraphOptions); } if (OperationTimeoutInMs != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(OperationTimeoutInMs); } if (rpcOptions_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)RpcOptions); } if (clusterDef_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)ClusterDef); } if (IsolateSessionState) { num += 2; } if (ShareClusterDevicesInSession) { num += 3; } if (experimental_ != null) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Experimental); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ConfigProto other) { if (other == null) { return; } deviceCount_.Add((IDictionary)other.deviceCount_); if (other.IntraOpParallelismThreads != 0) { IntraOpParallelismThreads = other.IntraOpParallelismThreads; } if (other.InterOpParallelismThreads != 0) { InterOpParallelismThreads = other.InterOpParallelismThreads; } if (other.UsePerSessionThreads) { UsePerSessionThreads = other.UsePerSessionThreads; } sessionInterOpThreadPool_.Add((IEnumerable)other.sessionInterOpThreadPool_); if (other.PlacementPeriod != 0) { PlacementPeriod = other.PlacementPeriod; } deviceFilters_.Add((IEnumerable)other.deviceFilters_); if (other.gpuOptions_ != null) { if (gpuOptions_ == null) { GpuOptions = new GPUOptions(); } GpuOptions.MergeFrom(other.GpuOptions); } if (other.AllowSoftPlacement) { AllowSoftPlacement = other.AllowSoftPlacement; } if (other.LogDevicePlacement) { LogDevicePlacement = other.LogDevicePlacement; } if (other.graphOptions_ != null) { if (graphOptions_ == null) { GraphOptions = new GraphOptions(); } GraphOptions.MergeFrom(other.GraphOptions); } if (other.OperationTimeoutInMs != 0L) { OperationTimeoutInMs = other.OperationTimeoutInMs; } if (other.rpcOptions_ != null) { if (rpcOptions_ == null) { RpcOptions = new RPCOptions(); } RpcOptions.MergeFrom(other.RpcOptions); } if (other.clusterDef_ != null) { if (clusterDef_ == null) { ClusterDef = new ClusterDef(); } ClusterDef.MergeFrom(other.ClusterDef); } if (other.IsolateSessionState) { IsolateSessionState = other.IsolateSessionState; } if (other.ShareClusterDevicesInSession) { ShareClusterDevicesInSession = other.ShareClusterDevicesInSession; } if (other.experimental_ != null) { if (experimental_ == null) { Experimental = new Types.Experimental(); } Experimental.MergeFrom(other.Experimental); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: deviceCount_.AddEntriesFrom(input, _map_deviceCount_codec); break; case 16u: IntraOpParallelismThreads = input.ReadInt32(); break; case 24u: PlacementPeriod = input.ReadInt32(); break; case 34u: deviceFilters_.AddEntriesFrom(input, _repeated_deviceFilters_codec); break; case 40u: InterOpParallelismThreads = input.ReadInt32(); break; case 50u: if (gpuOptions_ == null) { GpuOptions = new GPUOptions(); } input.ReadMessage((IMessage)(object)GpuOptions); break; case 56u: AllowSoftPlacement = input.ReadBool(); break; case 64u: LogDevicePlacement = input.ReadBool(); break; case 72u: UsePerSessionThreads = input.ReadBool(); break; case 82u: if (graphOptions_ == null) { GraphOptions = new GraphOptions(); } input.ReadMessage((IMessage)(object)GraphOptions); break; case 88u: OperationTimeoutInMs = input.ReadInt64(); break; case 98u: sessionInterOpThreadPool_.AddEntriesFrom(input, _repeated_sessionInterOpThreadPool_codec); break; case 106u: if (rpcOptions_ == null) { RpcOptions = new RPCOptions(); } input.ReadMessage((IMessage)(object)RpcOptions); break; case 114u: if (clusterDef_ == null) { ClusterDef = new ClusterDef(); } input.ReadMessage((IMessage)(object)ClusterDef); break; case 120u: IsolateSessionState = input.ReadBool(); break; case 130u: if (experimental_ == null) { Experimental = new Types.Experimental(); } input.ReadMessage((IMessage)(object)Experimental); break; case 136u: ShareClusterDevicesInSession = input.ReadBool(); break; } } } } public sealed class RunOptions : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public enum TraceLevel { [OriginalName("NO_TRACE")] NoTrace, [OriginalName("SOFTWARE_TRACE")] SoftwareTrace, [OriginalName("HARDWARE_TRACE")] HardwareTrace, [OriginalName("FULL_TRACE")] FullTrace } public sealed class Experimental : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class RunHandlerPoolOptions : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new RunHandlerPoolOptions())); private UnknownFieldSet _unknownFields; public const int PriorityFieldNumber = 1; private long priority_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => Experimental.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public long Priority { get { return priority_; } set { priority_ = value; } } [DebuggerNonUserCode] public RunHandlerPoolOptions() { } [DebuggerNonUserCode] public RunHandlerPoolOptions(RunHandlerPoolOptions other) : this() { priority_ = other.priority_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public RunHandlerPoolOptions Clone() { return new RunHandlerPoolOptions(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as RunHandlerPoolOptions); } [DebuggerNonUserCode] public bool Equals(RunHandlerPoolOptions other) { if (other == null) { return false; } if (other == this) { return true; } if (Priority != other.Priority) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Priority != 0L) { num ^= Priority.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Priority != 0L) { output.WriteRawTag((byte)8); output.WriteInt64(Priority); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Priority != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(Priority); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(RunHandlerPoolOptions other) { if (other != null) { if (other.Priority != 0L) { Priority = other.Priority; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 8) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { Priority = input.ReadInt64(); } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new Experimental())); private UnknownFieldSet _unknownFields; public const int CollectiveGraphKeyFieldNumber = 1; private long collectiveGraphKey_; public const int UseRunHandlerPoolFieldNumber = 2; private bool useRunHandlerPool_; public const int RunHandlerPoolOptionsFieldNumber = 3; private Types.RunHandlerPoolOptions runHandlerPoolOptions_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => RunOptions.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public long CollectiveGraphKey { get { return collectiveGraphKey_; } set { collectiveGraphKey_ = value; } } [DebuggerNonUserCode] public bool UseRunHandlerPool { get { return useRunHandlerPool_; } set { useRunHandlerPool_ = value; } } [DebuggerNonUserCode] public Types.RunHandlerPoolOptions RunHandlerPoolOptions { get { return runHandlerPoolOptions_; } set { runHandlerPoolOptions_ = value; } } [DebuggerNonUserCode] public Experimental() { } [DebuggerNonUserCode] public Experimental(Experimental other) : this() { collectiveGraphKey_ = other.collectiveGraphKey_; useRunHandlerPool_ = other.useRunHandlerPool_; runHandlerPoolOptions_ = ((other.runHandlerPoolOptions_ != null) ? other.runHandlerPoolOptions_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public Experimental Clone() { return new Experimental(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as Experimental); } [DebuggerNonUserCode] public bool Equals(Experimental other) { if (other == null) { return false; } if (other == this) { return true; } if (CollectiveGraphKey != other.CollectiveGraphKey) { return false; } if (UseRunHandlerPool != other.UseRunHandlerPool) { return false; } if (!object.Equals(RunHandlerPoolOptions, other.RunHandlerPoolOptions)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (CollectiveGraphKey != 0L) { num ^= CollectiveGraphKey.GetHashCode(); } if (UseRunHandlerPool) { num ^= UseRunHandlerPool.GetHashCode(); } if (runHandlerPoolOptions_ != null) { num ^= RunHandlerPoolOptions.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (CollectiveGraphKey != 0L) { output.WriteRawTag((byte)8); output.WriteInt64(CollectiveGraphKey); } if (UseRunHandlerPool) { output.WriteRawTag((byte)16); output.WriteBool(UseRunHandlerPool); } if (runHandlerPoolOptions_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)RunHandlerPoolOptions); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (CollectiveGraphKey != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(CollectiveGraphKey); } if (UseRunHandlerPool) { num += 2; } if (runHandlerPoolOptions_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)RunHandlerPoolOptions); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(Experimental other) { if (other == null) { return; } if (other.CollectiveGraphKey != 0L) { CollectiveGraphKey = other.CollectiveGraphKey; } if (other.UseRunHandlerPool) { UseRunHandlerPool = other.UseRunHandlerPool; } if (other.runHandlerPoolOptions_ != null) { if (runHandlerPoolOptions_ == null) { RunHandlerPoolOptions = new Types.RunHandlerPoolOptions(); } RunHandlerPoolOptions.MergeFrom(other.RunHandlerPoolOptions); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: CollectiveGraphKey = input.ReadInt64(); break; case 16u: UseRunHandlerPool = input.ReadBool(); break; case 26u: if (runHandlerPoolOptions_ == null) { RunHandlerPoolOptions = new Types.RunHandlerPoolOptions(); } input.ReadMessage((IMessage)(object)RunHandlerPoolOptions); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new RunOptions())); private UnknownFieldSet _unknownFields; public const int TraceLevelFieldNumber = 1; private Types.TraceLevel traceLevel_; public const int TimeoutInMsFieldNumber = 2; private long timeoutInMs_; public const int InterOpThreadPoolFieldNumber = 3; private int interOpThreadPool_; public const int OutputPartitionGraphsFieldNumber = 5; private bool outputPartitionGraphs_; public const int DebugOptionsFieldNumber = 6; private DebugOptions debugOptions_; public const int ReportTensorAllocationsUponOomFieldNumber = 7; private bool reportTensorAllocationsUponOom_; public const int ExperimentalFieldNumber = 8; private Types.Experimental experimental_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigReflection.Descriptor.MessageTypes[7]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public Types.TraceLevel TraceLevel { get { return traceLevel_; } set { traceLevel_ = value; } } [DebuggerNonUserCode] public long TimeoutInMs { get { return timeoutInMs_; } set { timeoutInMs_ = value; } } [DebuggerNonUserCode] public int InterOpThreadPool { get { return interOpThreadPool_; } set { interOpThreadPool_ = value; } } [DebuggerNonUserCode] public bool OutputPartitionGraphs { get { return outputPartitionGraphs_; } set { outputPartitionGraphs_ = value; } } [DebuggerNonUserCode] public DebugOptions DebugOptions { get { return debugOptions_; } set { debugOptions_ = value; } } [DebuggerNonUserCode] public bool ReportTensorAllocationsUponOom { get { return reportTensorAllocationsUponOom_; } set { reportTensorAllocationsUponOom_ = value; } } [DebuggerNonUserCode] public Types.Experimental Experimental { get { return experimental_; } set { experimental_ = value; } } [DebuggerNonUserCode] public RunOptions() { } [DebuggerNonUserCode] public RunOptions(RunOptions other) : this() { traceLevel_ = other.traceLevel_; timeoutInMs_ = other.timeoutInMs_; interOpThreadPool_ = other.interOpThreadPool_; outputPartitionGraphs_ = other.outputPartitionGraphs_; debugOptions_ = ((other.debugOptions_ != null) ? other.debugOptions_.Clone() : null); reportTensorAllocationsUponOom_ = other.reportTensorAllocationsUponOom_; experimental_ = ((other.experimental_ != null) ? other.experimental_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public RunOptions Clone() { return new RunOptions(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as RunOptions); } [DebuggerNonUserCode] public bool Equals(RunOptions other) { if (other == null) { return false; } if (other == this) { return true; } if (TraceLevel != other.TraceLevel) { return false; } if (TimeoutInMs != other.TimeoutInMs) { return false; } if (InterOpThreadPool != other.InterOpThreadPool) { return false; } if (OutputPartitionGraphs != other.OutputPartitionGraphs) { return false; } if (!object.Equals(DebugOptions, other.DebugOptions)) { return false; } if (ReportTensorAllocationsUponOom != other.ReportTensorAllocationsUponOom) { return false; } if (!object.Equals(Experimental, other.Experimental)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (TraceLevel != Types.TraceLevel.NoTrace) { num ^= TraceLevel.GetHashCode(); } if (TimeoutInMs != 0L) { num ^= TimeoutInMs.GetHashCode(); } if (InterOpThreadPool != 0) { num ^= InterOpThreadPool.GetHashCode(); } if (OutputPartitionGraphs) { num ^= OutputPartitionGraphs.GetHashCode(); } if (debugOptions_ != null) { num ^= DebugOptions.GetHashCode(); } if (ReportTensorAllocationsUponOom) { num ^= ReportTensorAllocationsUponOom.GetHashCode(); } if (experimental_ != null) { num ^= Experimental.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (TraceLevel != Types.TraceLevel.NoTrace) { output.WriteRawTag((byte)8); output.WriteEnum((int)TraceLevel); } if (TimeoutInMs != 0L) { output.WriteRawTag((byte)16); output.WriteInt64(TimeoutInMs); } if (InterOpThreadPool != 0) { output.WriteRawTag((byte)24); output.WriteInt32(InterOpThreadPool); } if (OutputPartitionGraphs) { output.WriteRawTag((byte)40); output.WriteBool(OutputPartitionGraphs); } if (debugOptions_ != null) { output.WriteRawTag((byte)50); output.WriteMessage((IMessage)(object)DebugOptions); } if (ReportTensorAllocationsUponOom) { output.WriteRawTag((byte)56); output.WriteBool(ReportTensorAllocationsUponOom); } if (experimental_ != null) { output.WriteRawTag((byte)66); output.WriteMessage((IMessage)(object)Experimental); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (TraceLevel != Types.TraceLevel.NoTrace) { num += 1 + CodedOutputStream.ComputeEnumSize((int)TraceLevel); } if (TimeoutInMs != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(TimeoutInMs); } if (InterOpThreadPool != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(InterOpThreadPool); } if (OutputPartitionGraphs) { num += 2; } if (debugOptions_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)DebugOptions); } if (ReportTensorAllocationsUponOom) { num += 2; } if (experimental_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Experimental); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(RunOptions other) { if (other == null) { return; } if (other.TraceLevel != Types.TraceLevel.NoTrace) { TraceLevel = other.TraceLevel; } if (other.TimeoutInMs != 0L) { TimeoutInMs = other.TimeoutInMs; } if (other.InterOpThreadPool != 0) { InterOpThreadPool = other.InterOpThreadPool; } if (other.OutputPartitionGraphs) { OutputPartitionGraphs = other.OutputPartitionGraphs; } if (other.debugOptions_ != null) { if (debugOptions_ == null) { DebugOptions = new DebugOptions(); } DebugOptions.MergeFrom(other.DebugOptions); } if (other.ReportTensorAllocationsUponOom) { ReportTensorAllocationsUponOom = other.ReportTensorAllocationsUponOom; } if (other.experimental_ != null) { if (experimental_ == null) { Experimental = new Types.Experimental(); } Experimental.MergeFrom(other.Experimental); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: TraceLevel = (Types.TraceLevel)input.ReadEnum(); break; case 16u: TimeoutInMs = input.ReadInt64(); break; case 24u: InterOpThreadPool = input.ReadInt32(); break; case 40u: OutputPartitionGraphs = input.ReadBool(); break; case 50u: if (debugOptions_ == null) { DebugOptions = new DebugOptions(); } input.ReadMessage((IMessage)(object)DebugOptions); break; case 56u: ReportTensorAllocationsUponOom = input.ReadBool(); break; case 66u: if (experimental_ == null) { Experimental = new Types.Experimental(); } input.ReadMessage((IMessage)(object)Experimental); break; } } } } public sealed class RunMetadata : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class FunctionGraphs : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new FunctionGraphs())); private UnknownFieldSet _unknownFields; public const int PartitionGraphsFieldNumber = 1; private static readonly FieldCodec _repeated_partitionGraphs_codec = FieldCodec.ForMessage(10u, GraphDef.Parser); private readonly RepeatedField partitionGraphs_ = new RepeatedField(); public const int PreOptimizationGraphFieldNumber = 2; private GraphDef preOptimizationGraph_; public const int PostOptimizationGraphFieldNumber = 3; private GraphDef postOptimizationGraph_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => RunMetadata.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField PartitionGraphs => partitionGraphs_; [DebuggerNonUserCode] public GraphDef PreOptimizationGraph { get { return preOptimizationGraph_; } set { preOptimizationGraph_ = value; } } [DebuggerNonUserCode] public GraphDef PostOptimizationGraph { get { return postOptimizationGraph_; } set { postOptimizationGraph_ = value; } } [DebuggerNonUserCode] public FunctionGraphs() { } [DebuggerNonUserCode] public FunctionGraphs(FunctionGraphs other) : this() { partitionGraphs_ = other.partitionGraphs_.Clone(); preOptimizationGraph_ = ((other.preOptimizationGraph_ != null) ? other.preOptimizationGraph_.Clone() : null); postOptimizationGraph_ = ((other.postOptimizationGraph_ != null) ? other.postOptimizationGraph_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public FunctionGraphs Clone() { return new FunctionGraphs(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as FunctionGraphs); } [DebuggerNonUserCode] public bool Equals(FunctionGraphs other) { if (other == null) { return false; } if (other == this) { return true; } if (!partitionGraphs_.Equals(other.partitionGraphs_)) { return false; } if (!object.Equals(PreOptimizationGraph, other.PreOptimizationGraph)) { return false; } if (!object.Equals(PostOptimizationGraph, other.PostOptimizationGraph)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)partitionGraphs_).GetHashCode(); if (preOptimizationGraph_ != null) { num ^= PreOptimizationGraph.GetHashCode(); } if (postOptimizationGraph_ != null) { num ^= PostOptimizationGraph.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { partitionGraphs_.WriteTo(output, _repeated_partitionGraphs_codec); if (preOptimizationGraph_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)PreOptimizationGraph); } if (postOptimizationGraph_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)PostOptimizationGraph); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += partitionGraphs_.CalculateSize(_repeated_partitionGraphs_codec); if (preOptimizationGraph_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)PreOptimizationGraph); } if (postOptimizationGraph_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)PostOptimizationGraph); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(FunctionGraphs other) { if (other == null) { return; } partitionGraphs_.Add((IEnumerable)other.partitionGraphs_); if (other.preOptimizationGraph_ != null) { if (preOptimizationGraph_ == null) { PreOptimizationGraph = new GraphDef(); } PreOptimizationGraph.MergeFrom(other.PreOptimizationGraph); } if (other.postOptimizationGraph_ != null) { if (postOptimizationGraph_ == null) { PostOptimizationGraph = new GraphDef(); } PostOptimizationGraph.MergeFrom(other.PostOptimizationGraph); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: partitionGraphs_.AddEntriesFrom(input, _repeated_partitionGraphs_codec); break; case 18u: if (preOptimizationGraph_ == null) { PreOptimizationGraph = new GraphDef(); } input.ReadMessage((IMessage)(object)PreOptimizationGraph); break; case 26u: if (postOptimizationGraph_ == null) { PostOptimizationGraph = new GraphDef(); } input.ReadMessage((IMessage)(object)PostOptimizationGraph); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new RunMetadata())); private UnknownFieldSet _unknownFields; public const int StepStatsFieldNumber = 1; private StepStats stepStats_; public const int CostGraphFieldNumber = 2; private CostGraphDef costGraph_; public const int PartitionGraphsFieldNumber = 3; private static readonly FieldCodec _repeated_partitionGraphs_codec = FieldCodec.ForMessage(26u, GraphDef.Parser); private readonly RepeatedField partitionGraphs_ = new RepeatedField(); public const int FunctionGraphsFieldNumber = 4; private static readonly FieldCodec _repeated_functionGraphs_codec = FieldCodec.ForMessage(34u, Types.FunctionGraphs.Parser); private readonly RepeatedField functionGraphs_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigReflection.Descriptor.MessageTypes[8]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public StepStats StepStats { get { return stepStats_; } set { stepStats_ = value; } } [DebuggerNonUserCode] public CostGraphDef CostGraph { get { return costGraph_; } set { costGraph_ = value; } } [DebuggerNonUserCode] public RepeatedField PartitionGraphs => partitionGraphs_; [DebuggerNonUserCode] public RepeatedField FunctionGraphs => functionGraphs_; [DebuggerNonUserCode] public RunMetadata() { } [DebuggerNonUserCode] public RunMetadata(RunMetadata other) : this() { stepStats_ = ((other.stepStats_ != null) ? other.stepStats_.Clone() : null); costGraph_ = ((other.costGraph_ != null) ? other.costGraph_.Clone() : null); partitionGraphs_ = other.partitionGraphs_.Clone(); functionGraphs_ = other.functionGraphs_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public RunMetadata Clone() { return new RunMetadata(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as RunMetadata); } [DebuggerNonUserCode] public bool Equals(RunMetadata other) { if (other == null) { return false; } if (other == this) { return true; } if (!object.Equals(StepStats, other.StepStats)) { return false; } if (!object.Equals(CostGraph, other.CostGraph)) { return false; } if (!partitionGraphs_.Equals(other.partitionGraphs_)) { return false; } if (!functionGraphs_.Equals(other.functionGraphs_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (stepStats_ != null) { num ^= StepStats.GetHashCode(); } if (costGraph_ != null) { num ^= CostGraph.GetHashCode(); } num ^= ((object)partitionGraphs_).GetHashCode(); num ^= ((object)functionGraphs_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (stepStats_ != null) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)StepStats); } if (costGraph_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)CostGraph); } partitionGraphs_.WriteTo(output, _repeated_partitionGraphs_codec); functionGraphs_.WriteTo(output, _repeated_functionGraphs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (stepStats_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)StepStats); } if (costGraph_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)CostGraph); } num += partitionGraphs_.CalculateSize(_repeated_partitionGraphs_codec); num += functionGraphs_.CalculateSize(_repeated_functionGraphs_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(RunMetadata other) { if (other == null) { return; } if (other.stepStats_ != null) { if (stepStats_ == null) { StepStats = new StepStats(); } StepStats.MergeFrom(other.StepStats); } if (other.costGraph_ != null) { if (costGraph_ == null) { CostGraph = new CostGraphDef(); } CostGraph.MergeFrom(other.CostGraph); } partitionGraphs_.Add((IEnumerable)other.partitionGraphs_); functionGraphs_.Add((IEnumerable)other.functionGraphs_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: if (stepStats_ == null) { StepStats = new StepStats(); } input.ReadMessage((IMessage)(object)StepStats); break; case 18u: if (costGraph_ == null) { CostGraph = new CostGraphDef(); } input.ReadMessage((IMessage)(object)CostGraph); break; case 26u: partitionGraphs_.AddEntriesFrom(input, _repeated_partitionGraphs_codec); break; case 34u: functionGraphs_.AddEntriesFrom(input, _repeated_functionGraphs_codec); break; } } } } public sealed class TensorConnection : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new TensorConnection())); private UnknownFieldSet _unknownFields; public const int FromTensorFieldNumber = 1; private string fromTensor_ = ""; public const int ToTensorFieldNumber = 2; private string toTensor_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigReflection.Descriptor.MessageTypes[9]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string FromTensor { get { return fromTensor_; } set { fromTensor_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string ToTensor { get { return toTensor_; } set { toTensor_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public TensorConnection() { } [DebuggerNonUserCode] public TensorConnection(TensorConnection other) : this() { fromTensor_ = other.fromTensor_; toTensor_ = other.toTensor_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public TensorConnection Clone() { return new TensorConnection(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as TensorConnection); } [DebuggerNonUserCode] public bool Equals(TensorConnection other) { if (other == null) { return false; } if (other == this) { return true; } if (FromTensor != other.FromTensor) { return false; } if (ToTensor != other.ToTensor) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (FromTensor.Length != 0) { num ^= FromTensor.GetHashCode(); } if (ToTensor.Length != 0) { num ^= ToTensor.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (FromTensor.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(FromTensor); } if (ToTensor.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(ToTensor); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (FromTensor.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(FromTensor); } if (ToTensor.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(ToTensor); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(TensorConnection other) { if (other != null) { if (other.FromTensor.Length != 0) { FromTensor = other.FromTensor; } if (other.ToTensor.Length != 0) { ToTensor = other.ToTensor; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: FromTensor = input.ReadString(); break; case 18u: ToTensor = input.ReadString(); break; } } } } public sealed class CallableOptions : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new CallableOptions())); private UnknownFieldSet _unknownFields; public const int FeedFieldNumber = 1; private static readonly FieldCodec _repeated_feed_codec = FieldCodec.ForString(10u); private readonly RepeatedField feed_ = new RepeatedField(); public const int FetchFieldNumber = 2; private static readonly FieldCodec _repeated_fetch_codec = FieldCodec.ForString(18u); private readonly RepeatedField fetch_ = new RepeatedField(); public const int TargetFieldNumber = 3; private static readonly FieldCodec _repeated_target_codec = FieldCodec.ForString(26u); private readonly RepeatedField target_ = new RepeatedField(); public const int RunOptionsFieldNumber = 4; private RunOptions runOptions_; public const int TensorConnectionFieldNumber = 5; private static readonly FieldCodec _repeated_tensorConnection_codec = FieldCodec.ForMessage(42u, Tensorboard.TensorConnection.Parser); private readonly RepeatedField tensorConnection_ = new RepeatedField(); public const int FeedDevicesFieldNumber = 6; private static readonly Codec _map_feedDevices_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForString(18u, ""), 50u); private readonly MapField feedDevices_ = new MapField(); public const int FetchDevicesFieldNumber = 7; private static readonly Codec _map_fetchDevices_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForString(18u, ""), 58u); private readonly MapField fetchDevices_ = new MapField(); public const int FetchSkipSyncFieldNumber = 8; private bool fetchSkipSync_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ConfigReflection.Descriptor.MessageTypes[10]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Feed => feed_; [DebuggerNonUserCode] public RepeatedField Fetch => fetch_; [DebuggerNonUserCode] public RepeatedField Target => target_; [DebuggerNonUserCode] public RunOptions RunOptions { get { return runOptions_; } set { runOptions_ = value; } } [DebuggerNonUserCode] public RepeatedField TensorConnection => tensorConnection_; [DebuggerNonUserCode] public MapField FeedDevices => feedDevices_; [DebuggerNonUserCode] public MapField FetchDevices => fetchDevices_; [DebuggerNonUserCode] public bool FetchSkipSync { get { return fetchSkipSync_; } set { fetchSkipSync_ = value; } } [DebuggerNonUserCode] public CallableOptions() { } [DebuggerNonUserCode] public CallableOptions(CallableOptions other) : this() { feed_ = other.feed_.Clone(); fetch_ = other.fetch_.Clone(); target_ = other.target_.Clone(); runOptions_ = ((other.runOptions_ != null) ? other.runOptions_.Clone() : null); tensorConnection_ = other.tensorConnection_.Clone(); feedDevices_ = other.feedDevices_.Clone(); fetchDevices_ = other.fetchDevices_.Clone(); fetchSkipSync_ = other.fetchSkipSync_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public CallableOptions Clone() { return new CallableOptions(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as CallableOptions); } [DebuggerNonUserCode] public bool Equals(CallableOptions other) { if (other == null) { return false; } if (other == this) { return true; } if (!feed_.Equals(other.feed_)) { return false; } if (!fetch_.Equals(other.fetch_)) { return false; } if (!target_.Equals(other.target_)) { return false; } if (!object.Equals(RunOptions, other.RunOptions)) { return false; } if (!tensorConnection_.Equals(other.tensorConnection_)) { return false; } if (!FeedDevices.Equals(other.FeedDevices)) { return false; } if (!FetchDevices.Equals(other.FetchDevices)) { return false; } if (FetchSkipSync != other.FetchSkipSync) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)feed_).GetHashCode(); num ^= ((object)fetch_).GetHashCode(); num ^= ((object)target_).GetHashCode(); if (runOptions_ != null) { num ^= RunOptions.GetHashCode(); } num ^= ((object)tensorConnection_).GetHashCode(); num ^= ((object)FeedDevices).GetHashCode(); num ^= ((object)FetchDevices).GetHashCode(); if (FetchSkipSync) { num ^= FetchSkipSync.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { feed_.WriteTo(output, _repeated_feed_codec); fetch_.WriteTo(output, _repeated_fetch_codec); target_.WriteTo(output, _repeated_target_codec); if (runOptions_ != null) { output.WriteRawTag((byte)34); output.WriteMessage((IMessage)(object)RunOptions); } tensorConnection_.WriteTo(output, _repeated_tensorConnection_codec); feedDevices_.WriteTo(output, _map_feedDevices_codec); fetchDevices_.WriteTo(output, _map_fetchDevices_codec); if (FetchSkipSync) { output.WriteRawTag((byte)64); output.WriteBool(FetchSkipSync); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += feed_.CalculateSize(_repeated_feed_codec); num += fetch_.CalculateSize(_repeated_fetch_codec); num += target_.CalculateSize(_repeated_target_codec); if (runOptions_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)RunOptions); } num += tensorConnection_.CalculateSize(_repeated_tensorConnection_codec); num += feedDevices_.CalculateSize(_map_feedDevices_codec); num += fetchDevices_.CalculateSize(_map_fetchDevices_codec); if (FetchSkipSync) { num += 2; } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(CallableOptions other) { if (other == null) { return; } feed_.Add((IEnumerable)other.feed_); fetch_.Add((IEnumerable)other.fetch_); target_.Add((IEnumerable)other.target_); if (other.runOptions_ != null) { if (runOptions_ == null) { RunOptions = new RunOptions(); } RunOptions.MergeFrom(other.RunOptions); } tensorConnection_.Add((IEnumerable)other.tensorConnection_); feedDevices_.Add((IDictionary)other.feedDevices_); fetchDevices_.Add((IDictionary)other.fetchDevices_); if (other.FetchSkipSync) { FetchSkipSync = other.FetchSkipSync; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: feed_.AddEntriesFrom(input, _repeated_feed_codec); break; case 18u: fetch_.AddEntriesFrom(input, _repeated_fetch_codec); break; case 26u: target_.AddEntriesFrom(input, _repeated_target_codec); break; case 34u: if (runOptions_ == null) { RunOptions = new RunOptions(); } input.ReadMessage((IMessage)(object)RunOptions); break; case 42u: tensorConnection_.AddEntriesFrom(input, _repeated_tensorConnection_codec); break; case 50u: feedDevices_.AddEntriesFrom(input, _map_feedDevices_codec); break; case 58u: fetchDevices_.AddEntriesFrom(input, _map_fetchDevices_codec); break; case 64u: FetchSkipSync = input.ReadBool(); break; } } } } public static class CoordinationConfigReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static CoordinationConfigReflection() { //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: Expected O, but got Unknown //IL_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CjJ0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vY29vcmRpbmF0aW9uX2NvbmZp" + "Zy5wcm90bxILdGVuc29yYm9hcmQinQIKGUNvb3JkaW5hdGlvblNlcnZpY2VD" + "b25maWcSFAoMc2VydmljZV90eXBlGAEgASgJEhYKDnNlcnZpY2VfbGVhZGVy" + "GAIgASgJEhsKE2VuYWJsZV9oZWFsdGhfY2hlY2sYAyABKAgSJgoeY2x1c3Rl" + "cl9yZWdpc3Rlcl90aW1lb3V0X2luX21zGAQgASgDEh8KF2hlYXJ0YmVhdF90" + "aW1lb3V0X2luX21zGAUgASgDEhgKEGNvb3JkaW5hdGVkX2pvYnMYBiADKAkS" + "Jgoec2h1dGRvd25fYmFycmllcl90aW1lb3V0X2luX21zGAcgASgDEioKImFn" + "ZW50X2Rlc3RydWN0aW9uX3dpdGhvdXRfc2h1dGRvd24YCCABKAhCV1pVZ2l0" + "aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmZsb3cvdGVuc29yZmxvdy9nby9j" + "b3JlL3Byb3RvYnVmL2Zvcl9jb3JlX3Byb3Rvc19nb19wcm90b2IGcHJvdG8z"), (FileDescriptor[])(object)new FileDescriptor[0], new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(CoordinationServiceConfig), (MessageParser)(object)CoordinationServiceConfig.Parser, new string[8] { "ServiceType", "ServiceLeader", "EnableHealthCheck", "ClusterRegisterTimeoutInMs", "HeartbeatTimeoutInMs", "CoordinatedJobs", "ShutdownBarrierTimeoutInMs", "AgentDestructionWithoutShutdown" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class CoordinationServiceConfig : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new CoordinationServiceConfig())); private UnknownFieldSet _unknownFields; public const int ServiceTypeFieldNumber = 1; private string serviceType_ = ""; public const int ServiceLeaderFieldNumber = 2; private string serviceLeader_ = ""; public const int EnableHealthCheckFieldNumber = 3; private bool enableHealthCheck_; public const int ClusterRegisterTimeoutInMsFieldNumber = 4; private long clusterRegisterTimeoutInMs_; public const int HeartbeatTimeoutInMsFieldNumber = 5; private long heartbeatTimeoutInMs_; public const int CoordinatedJobsFieldNumber = 6; private static readonly FieldCodec _repeated_coordinatedJobs_codec = FieldCodec.ForString(50u); private readonly RepeatedField coordinatedJobs_ = new RepeatedField(); public const int ShutdownBarrierTimeoutInMsFieldNumber = 7; private long shutdownBarrierTimeoutInMs_; public const int AgentDestructionWithoutShutdownFieldNumber = 8; private bool agentDestructionWithoutShutdown_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CoordinationConfigReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string ServiceType { get { return serviceType_; } set { serviceType_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string ServiceLeader { get { return serviceLeader_; } set { serviceLeader_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public bool EnableHealthCheck { get { return enableHealthCheck_; } set { enableHealthCheck_ = value; } } [DebuggerNonUserCode] public long ClusterRegisterTimeoutInMs { get { return clusterRegisterTimeoutInMs_; } set { clusterRegisterTimeoutInMs_ = value; } } [DebuggerNonUserCode] public long HeartbeatTimeoutInMs { get { return heartbeatTimeoutInMs_; } set { heartbeatTimeoutInMs_ = value; } } [DebuggerNonUserCode] public RepeatedField CoordinatedJobs => coordinatedJobs_; [DebuggerNonUserCode] public long ShutdownBarrierTimeoutInMs { get { return shutdownBarrierTimeoutInMs_; } set { shutdownBarrierTimeoutInMs_ = value; } } [DebuggerNonUserCode] public bool AgentDestructionWithoutShutdown { get { return agentDestructionWithoutShutdown_; } set { agentDestructionWithoutShutdown_ = value; } } [DebuggerNonUserCode] public CoordinationServiceConfig() { } [DebuggerNonUserCode] public CoordinationServiceConfig(CoordinationServiceConfig other) : this() { serviceType_ = other.serviceType_; serviceLeader_ = other.serviceLeader_; enableHealthCheck_ = other.enableHealthCheck_; clusterRegisterTimeoutInMs_ = other.clusterRegisterTimeoutInMs_; heartbeatTimeoutInMs_ = other.heartbeatTimeoutInMs_; coordinatedJobs_ = other.coordinatedJobs_.Clone(); shutdownBarrierTimeoutInMs_ = other.shutdownBarrierTimeoutInMs_; agentDestructionWithoutShutdown_ = other.agentDestructionWithoutShutdown_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public CoordinationServiceConfig Clone() { return new CoordinationServiceConfig(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as CoordinationServiceConfig); } [DebuggerNonUserCode] public bool Equals(CoordinationServiceConfig other) { if (other == null) { return false; } if (other == this) { return true; } if (ServiceType != other.ServiceType) { return false; } if (ServiceLeader != other.ServiceLeader) { return false; } if (EnableHealthCheck != other.EnableHealthCheck) { return false; } if (ClusterRegisterTimeoutInMs != other.ClusterRegisterTimeoutInMs) { return false; } if (HeartbeatTimeoutInMs != other.HeartbeatTimeoutInMs) { return false; } if (!coordinatedJobs_.Equals(other.coordinatedJobs_)) { return false; } if (ShutdownBarrierTimeoutInMs != other.ShutdownBarrierTimeoutInMs) { return false; } if (AgentDestructionWithoutShutdown != other.AgentDestructionWithoutShutdown) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (ServiceType.Length != 0) { num ^= ServiceType.GetHashCode(); } if (ServiceLeader.Length != 0) { num ^= ServiceLeader.GetHashCode(); } if (EnableHealthCheck) { num ^= EnableHealthCheck.GetHashCode(); } if (ClusterRegisterTimeoutInMs != 0L) { num ^= ClusterRegisterTimeoutInMs.GetHashCode(); } if (HeartbeatTimeoutInMs != 0L) { num ^= HeartbeatTimeoutInMs.GetHashCode(); } num ^= ((object)coordinatedJobs_).GetHashCode(); if (ShutdownBarrierTimeoutInMs != 0L) { num ^= ShutdownBarrierTimeoutInMs.GetHashCode(); } if (AgentDestructionWithoutShutdown) { num ^= AgentDestructionWithoutShutdown.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (ServiceType.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(ServiceType); } if (ServiceLeader.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(ServiceLeader); } if (EnableHealthCheck) { output.WriteRawTag((byte)24); output.WriteBool(EnableHealthCheck); } if (ClusterRegisterTimeoutInMs != 0L) { output.WriteRawTag((byte)32); output.WriteInt64(ClusterRegisterTimeoutInMs); } if (HeartbeatTimeoutInMs != 0L) { output.WriteRawTag((byte)40); output.WriteInt64(HeartbeatTimeoutInMs); } coordinatedJobs_.WriteTo(output, _repeated_coordinatedJobs_codec); if (ShutdownBarrierTimeoutInMs != 0L) { output.WriteRawTag((byte)56); output.WriteInt64(ShutdownBarrierTimeoutInMs); } if (AgentDestructionWithoutShutdown) { output.WriteRawTag((byte)64); output.WriteBool(AgentDestructionWithoutShutdown); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (ServiceType.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(ServiceType); } if (ServiceLeader.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(ServiceLeader); } if (EnableHealthCheck) { num += 2; } if (ClusterRegisterTimeoutInMs != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(ClusterRegisterTimeoutInMs); } if (HeartbeatTimeoutInMs != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(HeartbeatTimeoutInMs); } num += coordinatedJobs_.CalculateSize(_repeated_coordinatedJobs_codec); if (ShutdownBarrierTimeoutInMs != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(ShutdownBarrierTimeoutInMs); } if (AgentDestructionWithoutShutdown) { num += 2; } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(CoordinationServiceConfig other) { if (other != null) { if (other.ServiceType.Length != 0) { ServiceType = other.ServiceType; } if (other.ServiceLeader.Length != 0) { ServiceLeader = other.ServiceLeader; } if (other.EnableHealthCheck) { EnableHealthCheck = other.EnableHealthCheck; } if (other.ClusterRegisterTimeoutInMs != 0L) { ClusterRegisterTimeoutInMs = other.ClusterRegisterTimeoutInMs; } if (other.HeartbeatTimeoutInMs != 0L) { HeartbeatTimeoutInMs = other.HeartbeatTimeoutInMs; } coordinatedJobs_.Add((IEnumerable)other.coordinatedJobs_); if (other.ShutdownBarrierTimeoutInMs != 0L) { ShutdownBarrierTimeoutInMs = other.ShutdownBarrierTimeoutInMs; } if (other.AgentDestructionWithoutShutdown) { AgentDestructionWithoutShutdown = other.AgentDestructionWithoutShutdown; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: ServiceType = input.ReadString(); break; case 18u: ServiceLeader = input.ReadString(); break; case 24u: EnableHealthCheck = input.ReadBool(); break; case 32u: ClusterRegisterTimeoutInMs = input.ReadInt64(); break; case 40u: HeartbeatTimeoutInMs = input.ReadInt64(); break; case 50u: coordinatedJobs_.AddEntriesFrom(input, _repeated_coordinatedJobs_codec); break; case 56u: ShutdownBarrierTimeoutInMs = input.ReadInt64(); break; case 64u: AgentDestructionWithoutShutdown = input.ReadBool(); break; } } } } public static class CostGraphReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static CostGraphReflection() { //IL_0213: Unknown result type (might be due to invalid IL or missing references) //IL_0219: Expected O, but got Unknown //IL_0254: Unknown result type (might be due to invalid IL or missing references) //IL_025a: Expected O, but got Unknown //IL_025a: Unknown result type (might be due to invalid IL or missing references) //IL_0260: Expected O, but got Unknown //IL_028b: Unknown result type (might be due to invalid IL or missing references) //IL_0291: Expected O, but got Unknown //IL_0291: Unknown result type (might be due to invalid IL or missing references) //IL_0297: Expected O, but got Unknown //IL_0297: Unknown result type (might be due to invalid IL or missing references) //IL_02a1: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("Cil0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vY29zdF9ncmFwaC5wcm90bxIL" + "dGVuc29yYm9hcmQaK3RlbnNvcmJvYXJkL2NvbXBhdC9wcm90by90ZW5zb3Jf" + "c2hhcGUucHJvdG8aJHRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by90eXBlcy5w" + "cm90byLQBgoMQ29zdEdyYXBoRGVmEiwKBG5vZGUYASADKAsyHi50ZW5zb3Ji" + "b2FyZC5Db3N0R3JhcGhEZWYuTm9kZRI2CgRjb3N0GAIgAygLMigudGVuc29y" + "Ym9hcmQuQ29zdEdyYXBoRGVmLkFnZ3JlZ2F0ZWRDb3N0GqYFCgROb2RlEgwK" + "BG5hbWUYASABKAkSDgoGZGV2aWNlGAIgASgJEgoKAmlkGAMgASgFEjwKCmlu" + "cHV0X2luZm8YBCADKAsyKC50ZW5zb3Jib2FyZC5Db3N0R3JhcGhEZWYuTm9k" + "ZS5JbnB1dEluZm8SPgoLb3V0cHV0X2luZm8YBSADKAsyKS50ZW5zb3Jib2Fy" + "ZC5Db3N0R3JhcGhEZWYuTm9kZS5PdXRwdXRJbmZvEh0KFXRlbXBvcmFyeV9t" + "ZW1vcnlfc2l6ZRgGIAEoAxIeChZwZXJzaXN0ZW50X21lbW9yeV9zaXplGAwg" + "ASgDEiEKFWhvc3RfdGVtcF9tZW1vcnlfc2l6ZRgKIAEoA0ICGAESIwoXZGV2" + "aWNlX3RlbXBfbWVtb3J5X3NpemUYCyABKANCAhgBEikKHWRldmljZV9wZXJz" + "aXN0ZW50X21lbW9yeV9zaXplGBAgASgDQgIYARIUCgxjb21wdXRlX2Nvc3QY" + "CSABKAMSFAoMY29tcHV0ZV90aW1lGA4gASgDEhMKC21lbW9yeV90aW1lGA8g" + "ASgDEhAKCGlzX2ZpbmFsGAcgASgIEhUKDWNvbnRyb2xfaW5wdXQYCCADKAUS" + "EgoKaW5hY2N1cmF0ZRgRIAEoCBo7CglJbnB1dEluZm8SFgoOcHJlY2VkaW5n" + "X25vZGUYASABKAUSFgoOcHJlY2VkaW5nX3BvcnQYAiABKAUaiAEKCk91dHB1" + "dEluZm8SDAoEc2l6ZRgBIAEoAxIYChBhbGlhc19pbnB1dF9wb3J0GAIgASgD" + "EiwKBXNoYXBlGAMgASgLMh0udGVuc29yYm9hcmQuVGVuc29yU2hhcGVQcm90" + "bxIkCgVkdHlwZRgEIAEoDjIVLnRlbnNvcmJvYXJkLkRhdGFUeXBlGjEKDkFn" + "Z3JlZ2F0ZWRDb3N0EgwKBGNvc3QYASABKAISEQoJZGltZW5zaW9uGAIgASgJ" + "QoMBChhvcmcudGVuc29yZmxvdy5mcmFtZXdvcmtCD0Nvc3RHcmFwaFByb3Rv" + "c1ABWlFnaXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90ZW5zb3Jm" + "bG93L2dvL2NvcmUvZnJhbWV3b3JrL2Nvc3RfZ3JhcGhfZ29fcHJvdG/4AQFi" + "BnByb3RvMw=="), (FileDescriptor[])(object)new FileDescriptor[2] { TensorShapeReflection.Descriptor, TypesReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(CostGraphDef), (MessageParser)(object)CostGraphDef.Parser, new string[2] { "Node", "Cost" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2] { new GeneratedClrTypeInfo(typeof(CostGraphDef.Types.Node), (MessageParser)(object)CostGraphDef.Types.Node.Parser, new string[16] { "Name", "Device", "Id", "InputInfo", "OutputInfo", "TemporaryMemorySize", "PersistentMemorySize", "HostTempMemorySize", "DeviceTempMemorySize", "DevicePersistentMemorySize", "ComputeCost", "ComputeTime", "MemoryTime", "IsFinal", "ControlInput", "Inaccurate" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2] { new GeneratedClrTypeInfo(typeof(CostGraphDef.Types.Node.Types.InputInfo), (MessageParser)(object)CostGraphDef.Types.Node.Types.InputInfo.Parser, new string[2] { "PrecedingNode", "PrecedingPort" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(CostGraphDef.Types.Node.Types.OutputInfo), (MessageParser)(object)CostGraphDef.Types.Node.Types.OutputInfo.Parser, new string[4] { "Size", "AliasInputPort", "Shape", "Dtype" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }), new GeneratedClrTypeInfo(typeof(CostGraphDef.Types.AggregatedCost), (MessageParser)(object)CostGraphDef.Types.AggregatedCost.Parser, new string[2] { "Cost", "Dimension" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }) })); } } public sealed class CostGraphDef : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class Node : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class InputInfo : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new InputInfo())); private UnknownFieldSet _unknownFields; public const int PrecedingNodeFieldNumber = 1; private int precedingNode_; public const int PrecedingPortFieldNumber = 2; private int precedingPort_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => Node.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public int PrecedingNode { get { return precedingNode_; } set { precedingNode_ = value; } } [DebuggerNonUserCode] public int PrecedingPort { get { return precedingPort_; } set { precedingPort_ = value; } } [DebuggerNonUserCode] public InputInfo() { } [DebuggerNonUserCode] public InputInfo(InputInfo other) : this() { precedingNode_ = other.precedingNode_; precedingPort_ = other.precedingPort_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public InputInfo Clone() { return new InputInfo(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as InputInfo); } [DebuggerNonUserCode] public bool Equals(InputInfo other) { if (other == null) { return false; } if (other == this) { return true; } if (PrecedingNode != other.PrecedingNode) { return false; } if (PrecedingPort != other.PrecedingPort) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (PrecedingNode != 0) { num ^= PrecedingNode.GetHashCode(); } if (PrecedingPort != 0) { num ^= PrecedingPort.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (PrecedingNode != 0) { output.WriteRawTag((byte)8); output.WriteInt32(PrecedingNode); } if (PrecedingPort != 0) { output.WriteRawTag((byte)16); output.WriteInt32(PrecedingPort); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (PrecedingNode != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(PrecedingNode); } if (PrecedingPort != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(PrecedingPort); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(InputInfo other) { if (other != null) { if (other.PrecedingNode != 0) { PrecedingNode = other.PrecedingNode; } if (other.PrecedingPort != 0) { PrecedingPort = other.PrecedingPort; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: PrecedingNode = input.ReadInt32(); break; case 16u: PrecedingPort = input.ReadInt32(); break; } } } } public sealed class OutputInfo : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new OutputInfo())); private UnknownFieldSet _unknownFields; public const int SizeFieldNumber = 1; private long size_; public const int AliasInputPortFieldNumber = 2; private long aliasInputPort_; public const int ShapeFieldNumber = 3; private TensorShapeProto shape_; public const int DtypeFieldNumber = 4; private DataType dtype_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => Node.Descriptor.NestedTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public long Size { get { return size_; } set { size_ = value; } } [DebuggerNonUserCode] public long AliasInputPort { get { return aliasInputPort_; } set { aliasInputPort_ = value; } } [DebuggerNonUserCode] public TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } [DebuggerNonUserCode] public DataType Dtype { get { return dtype_; } set { dtype_ = value; } } [DebuggerNonUserCode] public OutputInfo() { } [DebuggerNonUserCode] public OutputInfo(OutputInfo other) : this() { size_ = other.size_; aliasInputPort_ = other.aliasInputPort_; shape_ = ((other.shape_ != null) ? other.shape_.Clone() : null); dtype_ = other.dtype_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public OutputInfo Clone() { return new OutputInfo(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as OutputInfo); } [DebuggerNonUserCode] public bool Equals(OutputInfo other) { if (other == null) { return false; } if (other == this) { return true; } if (Size != other.Size) { return false; } if (AliasInputPort != other.AliasInputPort) { return false; } if (!object.Equals(Shape, other.Shape)) { return false; } if (Dtype != other.Dtype) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Size != 0L) { num ^= Size.GetHashCode(); } if (AliasInputPort != 0L) { num ^= AliasInputPort.GetHashCode(); } if (shape_ != null) { num ^= Shape.GetHashCode(); } if (Dtype != DataType.DtInvalid) { num ^= Dtype.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Size != 0L) { output.WriteRawTag((byte)8); output.WriteInt64(Size); } if (AliasInputPort != 0L) { output.WriteRawTag((byte)16); output.WriteInt64(AliasInputPort); } if (shape_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)Shape); } if (Dtype != DataType.DtInvalid) { output.WriteRawTag((byte)32); output.WriteEnum((int)Dtype); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Size != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(Size); } if (AliasInputPort != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(AliasInputPort); } if (shape_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Shape); } if (Dtype != DataType.DtInvalid) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Dtype); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(OutputInfo other) { if (other == null) { return; } if (other.Size != 0L) { Size = other.Size; } if (other.AliasInputPort != 0L) { AliasInputPort = other.AliasInputPort; } if (other.shape_ != null) { if (shape_ == null) { Shape = new TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.Dtype != DataType.DtInvalid) { Dtype = other.Dtype; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: Size = input.ReadInt64(); break; case 16u: AliasInputPort = input.ReadInt64(); break; case 26u: if (shape_ == null) { Shape = new TensorShapeProto(); } input.ReadMessage((IMessage)(object)Shape); break; case 32u: Dtype = (DataType)input.ReadEnum(); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new Node())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int DeviceFieldNumber = 2; private string device_ = ""; public const int IdFieldNumber = 3; private int id_; public const int InputInfoFieldNumber = 4; private static readonly FieldCodec _repeated_inputInfo_codec = FieldCodec.ForMessage(34u, Types.InputInfo.Parser); private readonly RepeatedField inputInfo_ = new RepeatedField(); public const int OutputInfoFieldNumber = 5; private static readonly FieldCodec _repeated_outputInfo_codec = FieldCodec.ForMessage(42u, Types.OutputInfo.Parser); private readonly RepeatedField outputInfo_ = new RepeatedField(); public const int TemporaryMemorySizeFieldNumber = 6; private long temporaryMemorySize_; public const int PersistentMemorySizeFieldNumber = 12; private long persistentMemorySize_; public const int HostTempMemorySizeFieldNumber = 10; private long hostTempMemorySize_; public const int DeviceTempMemorySizeFieldNumber = 11; private long deviceTempMemorySize_; public const int DevicePersistentMemorySizeFieldNumber = 16; private long devicePersistentMemorySize_; public const int ComputeCostFieldNumber = 9; private long computeCost_; public const int ComputeTimeFieldNumber = 14; private long computeTime_; public const int MemoryTimeFieldNumber = 15; private long memoryTime_; public const int IsFinalFieldNumber = 7; private bool isFinal_; public const int ControlInputFieldNumber = 8; private static readonly FieldCodec _repeated_controlInput_codec = FieldCodec.ForInt32(66u); private readonly RepeatedField controlInput_ = new RepeatedField(); public const int InaccurateFieldNumber = 17; private bool inaccurate_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CostGraphDef.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string Device { get { return device_; } set { device_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public int Id { get { return id_; } set { id_ = value; } } [DebuggerNonUserCode] public RepeatedField InputInfo => inputInfo_; [DebuggerNonUserCode] public RepeatedField OutputInfo => outputInfo_; [DebuggerNonUserCode] public long TemporaryMemorySize { get { return temporaryMemorySize_; } set { temporaryMemorySize_ = value; } } [DebuggerNonUserCode] public long PersistentMemorySize { get { return persistentMemorySize_; } set { persistentMemorySize_ = value; } } [Obsolete] [DebuggerNonUserCode] public long HostTempMemorySize { get { return hostTempMemorySize_; } set { hostTempMemorySize_ = value; } } [Obsolete] [DebuggerNonUserCode] public long DeviceTempMemorySize { get { return deviceTempMemorySize_; } set { deviceTempMemorySize_ = value; } } [Obsolete] [DebuggerNonUserCode] public long DevicePersistentMemorySize { get { return devicePersistentMemorySize_; } set { devicePersistentMemorySize_ = value; } } [DebuggerNonUserCode] public long ComputeCost { get { return computeCost_; } set { computeCost_ = value; } } [DebuggerNonUserCode] public long ComputeTime { get { return computeTime_; } set { computeTime_ = value; } } [DebuggerNonUserCode] public long MemoryTime { get { return memoryTime_; } set { memoryTime_ = value; } } [DebuggerNonUserCode] public bool IsFinal { get { return isFinal_; } set { isFinal_ = value; } } [DebuggerNonUserCode] public RepeatedField ControlInput => controlInput_; [DebuggerNonUserCode] public bool Inaccurate { get { return inaccurate_; } set { inaccurate_ = value; } } [DebuggerNonUserCode] public Node() { } [DebuggerNonUserCode] public Node(Node other) : this() { name_ = other.name_; device_ = other.device_; id_ = other.id_; inputInfo_ = other.inputInfo_.Clone(); outputInfo_ = other.outputInfo_.Clone(); temporaryMemorySize_ = other.temporaryMemorySize_; persistentMemorySize_ = other.persistentMemorySize_; hostTempMemorySize_ = other.hostTempMemorySize_; deviceTempMemorySize_ = other.deviceTempMemorySize_; devicePersistentMemorySize_ = other.devicePersistentMemorySize_; computeCost_ = other.computeCost_; computeTime_ = other.computeTime_; memoryTime_ = other.memoryTime_; isFinal_ = other.isFinal_; controlInput_ = other.controlInput_.Clone(); inaccurate_ = other.inaccurate_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public Node Clone() { return new Node(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as Node); } [DebuggerNonUserCode] public bool Equals(Node other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (Device != other.Device) { return false; } if (Id != other.Id) { return false; } if (!inputInfo_.Equals(other.inputInfo_)) { return false; } if (!outputInfo_.Equals(other.outputInfo_)) { return false; } if (TemporaryMemorySize != other.TemporaryMemorySize) { return false; } if (PersistentMemorySize != other.PersistentMemorySize) { return false; } if (HostTempMemorySize != other.HostTempMemorySize) { return false; } if (DeviceTempMemorySize != other.DeviceTempMemorySize) { return false; } if (DevicePersistentMemorySize != other.DevicePersistentMemorySize) { return false; } if (ComputeCost != other.ComputeCost) { return false; } if (ComputeTime != other.ComputeTime) { return false; } if (MemoryTime != other.MemoryTime) { return false; } if (IsFinal != other.IsFinal) { return false; } if (!controlInput_.Equals(other.controlInput_)) { return false; } if (Inaccurate != other.Inaccurate) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (Device.Length != 0) { num ^= Device.GetHashCode(); } if (Id != 0) { num ^= Id.GetHashCode(); } num ^= ((object)inputInfo_).GetHashCode(); num ^= ((object)outputInfo_).GetHashCode(); if (TemporaryMemorySize != 0L) { num ^= TemporaryMemorySize.GetHashCode(); } if (PersistentMemorySize != 0L) { num ^= PersistentMemorySize.GetHashCode(); } if (HostTempMemorySize != 0L) { num ^= HostTempMemorySize.GetHashCode(); } if (DeviceTempMemorySize != 0L) { num ^= DeviceTempMemorySize.GetHashCode(); } if (DevicePersistentMemorySize != 0L) { num ^= DevicePersistentMemorySize.GetHashCode(); } if (ComputeCost != 0L) { num ^= ComputeCost.GetHashCode(); } if (ComputeTime != 0L) { num ^= ComputeTime.GetHashCode(); } if (MemoryTime != 0L) { num ^= MemoryTime.GetHashCode(); } if (IsFinal) { num ^= IsFinal.GetHashCode(); } num ^= ((object)controlInput_).GetHashCode(); if (Inaccurate) { num ^= Inaccurate.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (Device.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(Device); } if (Id != 0) { output.WriteRawTag((byte)24); output.WriteInt32(Id); } inputInfo_.WriteTo(output, _repeated_inputInfo_codec); outputInfo_.WriteTo(output, _repeated_outputInfo_codec); if (TemporaryMemorySize != 0L) { output.WriteRawTag((byte)48); output.WriteInt64(TemporaryMemorySize); } if (IsFinal) { output.WriteRawTag((byte)56); output.WriteBool(IsFinal); } controlInput_.WriteTo(output, _repeated_controlInput_codec); if (ComputeCost != 0L) { output.WriteRawTag((byte)72); output.WriteInt64(ComputeCost); } if (HostTempMemorySize != 0L) { output.WriteRawTag((byte)80); output.WriteInt64(HostTempMemorySize); } if (DeviceTempMemorySize != 0L) { output.WriteRawTag((byte)88); output.WriteInt64(DeviceTempMemorySize); } if (PersistentMemorySize != 0L) { output.WriteRawTag((byte)96); output.WriteInt64(PersistentMemorySize); } if (ComputeTime != 0L) { output.WriteRawTag((byte)112); output.WriteInt64(ComputeTime); } if (MemoryTime != 0L) { output.WriteRawTag((byte)120); output.WriteInt64(MemoryTime); } if (DevicePersistentMemorySize != 0L) { output.WriteRawTag((byte)128, (byte)1); output.WriteInt64(DevicePersistentMemorySize); } if (Inaccurate) { output.WriteRawTag((byte)136, (byte)1); output.WriteBool(Inaccurate); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (Device.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Device); } if (Id != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Id); } num += inputInfo_.CalculateSize(_repeated_inputInfo_codec); num += outputInfo_.CalculateSize(_repeated_outputInfo_codec); if (TemporaryMemorySize != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(TemporaryMemorySize); } if (PersistentMemorySize != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(PersistentMemorySize); } if (HostTempMemorySize != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(HostTempMemorySize); } if (DeviceTempMemorySize != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(DeviceTempMemorySize); } if (DevicePersistentMemorySize != 0L) { num += 2 + CodedOutputStream.ComputeInt64Size(DevicePersistentMemorySize); } if (ComputeCost != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(ComputeCost); } if (ComputeTime != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(ComputeTime); } if (MemoryTime != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(MemoryTime); } if (IsFinal) { num += 2; } num += controlInput_.CalculateSize(_repeated_controlInput_codec); if (Inaccurate) { num += 3; } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(Node other) { if (other != null) { if (other.Name.Length != 0) { Name = other.Name; } if (other.Device.Length != 0) { Device = other.Device; } if (other.Id != 0) { Id = other.Id; } inputInfo_.Add((IEnumerable)other.inputInfo_); outputInfo_.Add((IEnumerable)other.outputInfo_); if (other.TemporaryMemorySize != 0L) { TemporaryMemorySize = other.TemporaryMemorySize; } if (other.PersistentMemorySize != 0L) { PersistentMemorySize = other.PersistentMemorySize; } if (other.HostTempMemorySize != 0L) { HostTempMemorySize = other.HostTempMemorySize; } if (other.DeviceTempMemorySize != 0L) { DeviceTempMemorySize = other.DeviceTempMemorySize; } if (other.DevicePersistentMemorySize != 0L) { DevicePersistentMemorySize = other.DevicePersistentMemorySize; } if (other.ComputeCost != 0L) { ComputeCost = other.ComputeCost; } if (other.ComputeTime != 0L) { ComputeTime = other.ComputeTime; } if (other.MemoryTime != 0L) { MemoryTime = other.MemoryTime; } if (other.IsFinal) { IsFinal = other.IsFinal; } controlInput_.Add((IEnumerable)other.controlInput_); if (other.Inaccurate) { Inaccurate = other.Inaccurate; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: Device = input.ReadString(); break; case 24u: Id = input.ReadInt32(); break; case 34u: inputInfo_.AddEntriesFrom(input, _repeated_inputInfo_codec); break; case 42u: outputInfo_.AddEntriesFrom(input, _repeated_outputInfo_codec); break; case 48u: TemporaryMemorySize = input.ReadInt64(); break; case 56u: IsFinal = input.ReadBool(); break; case 64u: case 66u: controlInput_.AddEntriesFrom(input, _repeated_controlInput_codec); break; case 72u: ComputeCost = input.ReadInt64(); break; case 80u: HostTempMemorySize = input.ReadInt64(); break; case 88u: DeviceTempMemorySize = input.ReadInt64(); break; case 96u: PersistentMemorySize = input.ReadInt64(); break; case 112u: ComputeTime = input.ReadInt64(); break; case 120u: MemoryTime = input.ReadInt64(); break; case 128u: DevicePersistentMemorySize = input.ReadInt64(); break; case 136u: Inaccurate = input.ReadBool(); break; } } } } public sealed class AggregatedCost : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new AggregatedCost())); private UnknownFieldSet _unknownFields; public const int CostFieldNumber = 1; private float cost_; public const int DimensionFieldNumber = 2; private string dimension_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CostGraphDef.Descriptor.NestedTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public float Cost { get { return cost_; } set { cost_ = value; } } [DebuggerNonUserCode] public string Dimension { get { return dimension_; } set { dimension_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public AggregatedCost() { } [DebuggerNonUserCode] public AggregatedCost(AggregatedCost other) : this() { cost_ = other.cost_; dimension_ = other.dimension_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public AggregatedCost Clone() { return new AggregatedCost(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as AggregatedCost); } [DebuggerNonUserCode] public bool Equals(AggregatedCost other) { if (other == null) { return false; } if (other == this) { return true; } if (!ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Cost, other.Cost)) { return false; } if (Dimension != other.Dimension) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Cost != 0f) { num ^= ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Cost); } if (Dimension.Length != 0) { num ^= Dimension.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Cost != 0f) { output.WriteRawTag((byte)13); output.WriteFloat(Cost); } if (Dimension.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(Dimension); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Cost != 0f) { num += 5; } if (Dimension.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Dimension); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(AggregatedCost other) { if (other != null) { if (other.Cost != 0f) { Cost = other.Cost; } if (other.Dimension.Length != 0) { Dimension = other.Dimension; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13u: Cost = input.ReadFloat(); break; case 18u: Dimension = input.ReadString(); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new CostGraphDef())); private UnknownFieldSet _unknownFields; public const int NodeFieldNumber = 1; private static readonly FieldCodec _repeated_node_codec = FieldCodec.ForMessage(10u, Types.Node.Parser); private readonly RepeatedField node_ = new RepeatedField(); public const int CostFieldNumber = 2; private static readonly FieldCodec _repeated_cost_codec = FieldCodec.ForMessage(18u, Types.AggregatedCost.Parser); private readonly RepeatedField cost_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CostGraphReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Node => node_; [DebuggerNonUserCode] public RepeatedField Cost => cost_; [DebuggerNonUserCode] public CostGraphDef() { } [DebuggerNonUserCode] public CostGraphDef(CostGraphDef other) : this() { node_ = other.node_.Clone(); cost_ = other.cost_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public CostGraphDef Clone() { return new CostGraphDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as CostGraphDef); } [DebuggerNonUserCode] public bool Equals(CostGraphDef other) { if (other == null) { return false; } if (other == this) { return true; } if (!node_.Equals(other.node_)) { return false; } if (!cost_.Equals(other.cost_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)node_).GetHashCode(); num ^= ((object)cost_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { node_.WriteTo(output, _repeated_node_codec); cost_.WriteTo(output, _repeated_cost_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += node_.CalculateSize(_repeated_node_codec); num += cost_.CalculateSize(_repeated_cost_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(CostGraphDef other) { if (other != null) { node_.Add((IEnumerable)other.node_); cost_.Add((IEnumerable)other.cost_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: node_.AddEntriesFrom(input, _repeated_node_codec); break; case 18u: cost_.AddEntriesFrom(input, _repeated_cost_codec); break; } } } } public static class CppShapeInferenceReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static CppShapeInferenceReflection() { //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0142: Expected O, but got Unknown //IL_016d: Unknown result type (might be due to invalid IL or missing references) //IL_0173: Expected O, but got Unknown //IL_0173: Unknown result type (might be due to invalid IL or missing references) //IL_0179: Expected O, but got Unknown //IL_01a4: Unknown result type (might be due to invalid IL or missing references) //IL_01aa: Expected O, but got Unknown //IL_01aa: Unknown result type (might be due to invalid IL or missing references) //IL_01b4: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CjJ0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vY3BwX3NoYXBlX2luZmVyZW5j" + "ZS5wcm90bxILdGVuc29yYm9hcmQaKHRlbnNvcmJvYXJkL2NvbXBhdC9wcm90" + "by9mdWxsX3R5cGUucHJvdG8aK3RlbnNvcmJvYXJkL2NvbXBhdC9wcm90by90" + "ZW5zb3Jfc2hhcGUucHJvdG8aJHRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by90" + "eXBlcy5wcm90byKhAwoXQ3BwU2hhcGVJbmZlcmVuY2VSZXN1bHQSLAoFc2hh" + "cGUYASABKAsyHS50ZW5zb3Jib2FyZC5UZW5zb3JTaGFwZVByb3RvEkQKC2hh" + "bmRsZV9kYXRhGAQgASgLMi8udGVuc29yYm9hcmQuQ3BwU2hhcGVJbmZlcmVu" + "Y2VSZXN1bHQuSGFuZGxlRGF0YRqWAQoSSGFuZGxlU2hhcGVBbmRUeXBlEiwK" + "BXNoYXBlGAEgASgLMh0udGVuc29yYm9hcmQuVGVuc29yU2hhcGVQcm90bxIk" + "CgVkdHlwZRgCIAEoDjIVLnRlbnNvcmJvYXJkLkRhdGFUeXBlEiYKBHR5cGUY" + "BCABKAsyGC50ZW5zb3Jib2FyZC5GdWxsVHlwZURlZkoECAMQBBptCgpIYW5k" + "bGVEYXRhEg4KBmlzX3NldBgBIAEoCBJPCg5zaGFwZV9hbmRfdHlwZRgCIAMo" + "CzI3LnRlbnNvcmJvYXJkLkNwcFNoYXBlSW5mZXJlbmNlUmVzdWx0LkhhbmRs" + "ZVNoYXBlQW5kVHlwZUoECAIQA0oECAMQBCJlCh1DcHBTaGFwZUluZmVyZW5j" + "ZUlucHV0c05lZWRlZBIcChRpbnB1dF90ZW5zb3JzX25lZWRlZBgBIAMoBRIm" + "Ch5pbnB1dF90ZW5zb3JzX2FzX3NoYXBlc19uZWVkZWQYAiADKAVCYVpcZ2l0" + "aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmZsb3cvdGVuc29yZmxvdy9nby9w" + "eXRob24vZnJhbWV3b3JrL2NwcF9zaGFwZV9pbmZlcmVuY2VfZ29fcHJvdG/4" + "AQFiBnByb3RvMw=="), (FileDescriptor[])(object)new FileDescriptor[3] { FullTypeReflection.Descriptor, TensorShapeReflection.Descriptor, TypesReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2] { new GeneratedClrTypeInfo(typeof(CppShapeInferenceResult), (MessageParser)(object)CppShapeInferenceResult.Parser, new string[2] { "Shape", "HandleData" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2] { new GeneratedClrTypeInfo(typeof(CppShapeInferenceResult.Types.HandleShapeAndType), (MessageParser)(object)CppShapeInferenceResult.Types.HandleShapeAndType.Parser, new string[3] { "Shape", "Dtype", "Type" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(CppShapeInferenceResult.Types.HandleData), (MessageParser)(object)CppShapeInferenceResult.Types.HandleData.Parser, new string[2] { "IsSet", "ShapeAndType" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }), new GeneratedClrTypeInfo(typeof(CppShapeInferenceInputsNeeded), (MessageParser)(object)CppShapeInferenceInputsNeeded.Parser, new string[2] { "InputTensorsNeeded", "InputTensorsAsShapesNeeded" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class CppShapeInferenceResult : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class HandleShapeAndType : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new HandleShapeAndType())); private UnknownFieldSet _unknownFields; public const int ShapeFieldNumber = 1; private TensorShapeProto shape_; public const int DtypeFieldNumber = 2; private DataType dtype_; public const int TypeFieldNumber = 4; private FullTypeDef type_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CppShapeInferenceResult.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } [DebuggerNonUserCode] public DataType Dtype { get { return dtype_; } set { dtype_ = value; } } [DebuggerNonUserCode] public FullTypeDef Type { get { return type_; } set { type_ = value; } } [DebuggerNonUserCode] public HandleShapeAndType() { } [DebuggerNonUserCode] public HandleShapeAndType(HandleShapeAndType other) : this() { shape_ = ((other.shape_ != null) ? other.shape_.Clone() : null); dtype_ = other.dtype_; type_ = ((other.type_ != null) ? other.type_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public HandleShapeAndType Clone() { return new HandleShapeAndType(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as HandleShapeAndType); } [DebuggerNonUserCode] public bool Equals(HandleShapeAndType other) { if (other == null) { return false; } if (other == this) { return true; } if (!object.Equals(Shape, other.Shape)) { return false; } if (Dtype != other.Dtype) { return false; } if (!object.Equals(Type, other.Type)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (shape_ != null) { num ^= Shape.GetHashCode(); } if (Dtype != DataType.DtInvalid) { num ^= Dtype.GetHashCode(); } if (type_ != null) { num ^= Type.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (shape_ != null) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)Shape); } if (Dtype != DataType.DtInvalid) { output.WriteRawTag((byte)16); output.WriteEnum((int)Dtype); } if (type_ != null) { output.WriteRawTag((byte)34); output.WriteMessage((IMessage)(object)Type); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (shape_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Shape); } if (Dtype != DataType.DtInvalid) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Dtype); } if (type_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Type); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(HandleShapeAndType other) { if (other == null) { return; } if (other.shape_ != null) { if (shape_ == null) { Shape = new TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.Dtype != DataType.DtInvalid) { Dtype = other.Dtype; } if (other.type_ != null) { if (type_ == null) { Type = new FullTypeDef(); } Type.MergeFrom(other.Type); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: if (shape_ == null) { Shape = new TensorShapeProto(); } input.ReadMessage((IMessage)(object)Shape); break; case 16u: Dtype = (DataType)input.ReadEnum(); break; case 34u: if (type_ == null) { Type = new FullTypeDef(); } input.ReadMessage((IMessage)(object)Type); break; } } } } public sealed class HandleData : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new HandleData())); private UnknownFieldSet _unknownFields; public const int IsSetFieldNumber = 1; private bool isSet_; public const int ShapeAndTypeFieldNumber = 2; private static readonly FieldCodec _repeated_shapeAndType_codec = FieldCodec.ForMessage(18u, HandleShapeAndType.Parser); private readonly RepeatedField shapeAndType_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CppShapeInferenceResult.Descriptor.NestedTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public bool IsSet { get { return isSet_; } set { isSet_ = value; } } [DebuggerNonUserCode] public RepeatedField ShapeAndType => shapeAndType_; [DebuggerNonUserCode] public HandleData() { } [DebuggerNonUserCode] public HandleData(HandleData other) : this() { isSet_ = other.isSet_; shapeAndType_ = other.shapeAndType_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public HandleData Clone() { return new HandleData(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as HandleData); } [DebuggerNonUserCode] public bool Equals(HandleData other) { if (other == null) { return false; } if (other == this) { return true; } if (IsSet != other.IsSet) { return false; } if (!shapeAndType_.Equals(other.shapeAndType_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (IsSet) { num ^= IsSet.GetHashCode(); } num ^= ((object)shapeAndType_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (IsSet) { output.WriteRawTag((byte)8); output.WriteBool(IsSet); } shapeAndType_.WriteTo(output, _repeated_shapeAndType_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (IsSet) { num += 2; } num += shapeAndType_.CalculateSize(_repeated_shapeAndType_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(HandleData other) { if (other != null) { if (other.IsSet) { IsSet = other.IsSet; } shapeAndType_.Add((IEnumerable)other.shapeAndType_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: IsSet = input.ReadBool(); break; case 18u: shapeAndType_.AddEntriesFrom(input, _repeated_shapeAndType_codec); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new CppShapeInferenceResult())); private UnknownFieldSet _unknownFields; public const int ShapeFieldNumber = 1; private TensorShapeProto shape_; public const int HandleDataFieldNumber = 4; private Types.HandleData handleData_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CppShapeInferenceReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } [DebuggerNonUserCode] public Types.HandleData HandleData { get { return handleData_; } set { handleData_ = value; } } [DebuggerNonUserCode] public CppShapeInferenceResult() { } [DebuggerNonUserCode] public CppShapeInferenceResult(CppShapeInferenceResult other) : this() { shape_ = ((other.shape_ != null) ? other.shape_.Clone() : null); handleData_ = ((other.handleData_ != null) ? other.handleData_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public CppShapeInferenceResult Clone() { return new CppShapeInferenceResult(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as CppShapeInferenceResult); } [DebuggerNonUserCode] public bool Equals(CppShapeInferenceResult other) { if (other == null) { return false; } if (other == this) { return true; } if (!object.Equals(Shape, other.Shape)) { return false; } if (!object.Equals(HandleData, other.HandleData)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (shape_ != null) { num ^= Shape.GetHashCode(); } if (handleData_ != null) { num ^= HandleData.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (shape_ != null) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)Shape); } if (handleData_ != null) { output.WriteRawTag((byte)34); output.WriteMessage((IMessage)(object)HandleData); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (shape_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Shape); } if (handleData_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)HandleData); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(CppShapeInferenceResult other) { if (other == null) { return; } if (other.shape_ != null) { if (shape_ == null) { Shape = new TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.handleData_ != null) { if (handleData_ == null) { HandleData = new Types.HandleData(); } HandleData.MergeFrom(other.HandleData); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: if (shape_ == null) { Shape = new TensorShapeProto(); } input.ReadMessage((IMessage)(object)Shape); break; case 34u: if (handleData_ == null) { HandleData = new Types.HandleData(); } input.ReadMessage((IMessage)(object)HandleData); break; } } } } public sealed class CppShapeInferenceInputsNeeded : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new CppShapeInferenceInputsNeeded())); private UnknownFieldSet _unknownFields; public const int InputTensorsNeededFieldNumber = 1; private static readonly FieldCodec _repeated_inputTensorsNeeded_codec = FieldCodec.ForInt32(10u); private readonly RepeatedField inputTensorsNeeded_ = new RepeatedField(); public const int InputTensorsAsShapesNeededFieldNumber = 2; private static readonly FieldCodec _repeated_inputTensorsAsShapesNeeded_codec = FieldCodec.ForInt32(18u); private readonly RepeatedField inputTensorsAsShapesNeeded_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CppShapeInferenceReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField InputTensorsNeeded => inputTensorsNeeded_; [DebuggerNonUserCode] public RepeatedField InputTensorsAsShapesNeeded => inputTensorsAsShapesNeeded_; [DebuggerNonUserCode] public CppShapeInferenceInputsNeeded() { } [DebuggerNonUserCode] public CppShapeInferenceInputsNeeded(CppShapeInferenceInputsNeeded other) : this() { inputTensorsNeeded_ = other.inputTensorsNeeded_.Clone(); inputTensorsAsShapesNeeded_ = other.inputTensorsAsShapesNeeded_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public CppShapeInferenceInputsNeeded Clone() { return new CppShapeInferenceInputsNeeded(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as CppShapeInferenceInputsNeeded); } [DebuggerNonUserCode] public bool Equals(CppShapeInferenceInputsNeeded other) { if (other == null) { return false; } if (other == this) { return true; } if (!inputTensorsNeeded_.Equals(other.inputTensorsNeeded_)) { return false; } if (!inputTensorsAsShapesNeeded_.Equals(other.inputTensorsAsShapesNeeded_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)inputTensorsNeeded_).GetHashCode(); num ^= ((object)inputTensorsAsShapesNeeded_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { inputTensorsNeeded_.WriteTo(output, _repeated_inputTensorsNeeded_codec); inputTensorsAsShapesNeeded_.WriteTo(output, _repeated_inputTensorsAsShapesNeeded_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += inputTensorsNeeded_.CalculateSize(_repeated_inputTensorsNeeded_codec); num += inputTensorsAsShapesNeeded_.CalculateSize(_repeated_inputTensorsAsShapesNeeded_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(CppShapeInferenceInputsNeeded other) { if (other != null) { inputTensorsNeeded_.Add((IEnumerable)other.inputTensorsNeeded_); inputTensorsAsShapesNeeded_.Add((IEnumerable)other.inputTensorsAsShapesNeeded_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: case 10u: inputTensorsNeeded_.AddEntriesFrom(input, _repeated_inputTensorsNeeded_codec); break; case 16u: case 18u: inputTensorsAsShapesNeeded_.AddEntriesFrom(input, _repeated_inputTensorsAsShapesNeeded_codec); break; } } } } public static class DebugReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static DebugReflection() { //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Expected O, but got Unknown //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Expected O, but got Unknown //IL_0162: Unknown result type (might be due to invalid IL or missing references) //IL_0168: Expected O, but got Unknown //IL_018b: Unknown result type (might be due to invalid IL or missing references) //IL_0191: Expected O, but got Unknown //IL_0191: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CiR0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vZGVidWcucHJvdG8SC3RlbnNv" + "cmJvYXJkIo4BChBEZWJ1Z1RlbnNvcldhdGNoEhEKCW5vZGVfbmFtZRgBIAEo" + "CRITCgtvdXRwdXRfc2xvdBgCIAEoBRIRCglkZWJ1Z19vcHMYAyADKAkSEgoK" + "ZGVidWdfdXJscxgEIAMoCRIrCiN0b2xlcmF0ZV9kZWJ1Z19vcF9jcmVhdGlv" + "bl9mYWlsdXJlcxgFIAEoCCKCAQoMRGVidWdPcHRpb25zEj4KF2RlYnVnX3Rl" + "bnNvcl93YXRjaF9vcHRzGAQgAygLMh0udGVuc29yYm9hcmQuRGVidWdUZW5z" + "b3JXYXRjaBITCgtnbG9iYWxfc3RlcBgKIAEoAxIdChVyZXNldF9kaXNrX2J5" + "dGVfdXNhZ2UYCyABKAgiagoSRGVidWdnZWRTb3VyY2VGaWxlEgwKBGhvc3QY" + "ASABKAkSEQoJZmlsZV9wYXRoGAIgASgJEhUKDWxhc3RfbW9kaWZpZWQYAyAB" + "KAMSDQoFYnl0ZXMYBCABKAMSDQoFbGluZXMYBSADKAkiTAoTRGVidWdnZWRT" + "b3VyY2VGaWxlcxI1Cgxzb3VyY2VfZmlsZXMYASADKAsyHy50ZW5zb3Jib2Fy" + "ZC5EZWJ1Z2dlZFNvdXJjZUZpbGVCgwEKGG9yZy50ZW5zb3JmbG93LmZyYW1l" + "d29ya0ILRGVidWdQcm90b3NQAVpVZ2l0aHViLmNvbS90ZW5zb3JmbG93L3Rl" + "bnNvcmZsb3cvdGVuc29yZmxvdy9nby9jb3JlL3Byb3RvYnVmL2Zvcl9jb3Jl" + "X3Byb3Rvc19nb19wcm90b/gBAWIGcHJvdG8z"), (FileDescriptor[])(object)new FileDescriptor[0], new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[4] { new GeneratedClrTypeInfo(typeof(DebugTensorWatch), (MessageParser)(object)DebugTensorWatch.Parser, new string[5] { "NodeName", "OutputSlot", "DebugOps", "DebugUrls", "TolerateDebugOpCreationFailures" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(DebugOptions), (MessageParser)(object)DebugOptions.Parser, new string[3] { "DebugTensorWatchOpts", "GlobalStep", "ResetDiskByteUsage" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(DebuggedSourceFile), (MessageParser)(object)DebuggedSourceFile.Parser, new string[5] { "Host", "FilePath", "LastModified", "Bytes", "Lines" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(DebuggedSourceFiles), (MessageParser)(object)DebuggedSourceFiles.Parser, new string[1] { "SourceFiles" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class DebugTensorWatch : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new DebugTensorWatch())); private UnknownFieldSet _unknownFields; public const int NodeNameFieldNumber = 1; private string nodeName_ = ""; public const int OutputSlotFieldNumber = 2; private int outputSlot_; public const int DebugOpsFieldNumber = 3; private static readonly FieldCodec _repeated_debugOps_codec = FieldCodec.ForString(26u); private readonly RepeatedField debugOps_ = new RepeatedField(); public const int DebugUrlsFieldNumber = 4; private static readonly FieldCodec _repeated_debugUrls_codec = FieldCodec.ForString(34u); private readonly RepeatedField debugUrls_ = new RepeatedField(); public const int TolerateDebugOpCreationFailuresFieldNumber = 5; private bool tolerateDebugOpCreationFailures_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => DebugReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string NodeName { get { return nodeName_; } set { nodeName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public int OutputSlot { get { return outputSlot_; } set { outputSlot_ = value; } } [DebuggerNonUserCode] public RepeatedField DebugOps => debugOps_; [DebuggerNonUserCode] public RepeatedField DebugUrls => debugUrls_; [DebuggerNonUserCode] public bool TolerateDebugOpCreationFailures { get { return tolerateDebugOpCreationFailures_; } set { tolerateDebugOpCreationFailures_ = value; } } [DebuggerNonUserCode] public DebugTensorWatch() { } [DebuggerNonUserCode] public DebugTensorWatch(DebugTensorWatch other) : this() { nodeName_ = other.nodeName_; outputSlot_ = other.outputSlot_; debugOps_ = other.debugOps_.Clone(); debugUrls_ = other.debugUrls_.Clone(); tolerateDebugOpCreationFailures_ = other.tolerateDebugOpCreationFailures_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public DebugTensorWatch Clone() { return new DebugTensorWatch(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as DebugTensorWatch); } [DebuggerNonUserCode] public bool Equals(DebugTensorWatch other) { if (other == null) { return false; } if (other == this) { return true; } if (NodeName != other.NodeName) { return false; } if (OutputSlot != other.OutputSlot) { return false; } if (!debugOps_.Equals(other.debugOps_)) { return false; } if (!debugUrls_.Equals(other.debugUrls_)) { return false; } if (TolerateDebugOpCreationFailures != other.TolerateDebugOpCreationFailures) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (NodeName.Length != 0) { num ^= NodeName.GetHashCode(); } if (OutputSlot != 0) { num ^= OutputSlot.GetHashCode(); } num ^= ((object)debugOps_).GetHashCode(); num ^= ((object)debugUrls_).GetHashCode(); if (TolerateDebugOpCreationFailures) { num ^= TolerateDebugOpCreationFailures.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (NodeName.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(NodeName); } if (OutputSlot != 0) { output.WriteRawTag((byte)16); output.WriteInt32(OutputSlot); } debugOps_.WriteTo(output, _repeated_debugOps_codec); debugUrls_.WriteTo(output, _repeated_debugUrls_codec); if (TolerateDebugOpCreationFailures) { output.WriteRawTag((byte)40); output.WriteBool(TolerateDebugOpCreationFailures); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (NodeName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(NodeName); } if (OutputSlot != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(OutputSlot); } num += debugOps_.CalculateSize(_repeated_debugOps_codec); num += debugUrls_.CalculateSize(_repeated_debugUrls_codec); if (TolerateDebugOpCreationFailures) { num += 2; } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(DebugTensorWatch other) { if (other != null) { if (other.NodeName.Length != 0) { NodeName = other.NodeName; } if (other.OutputSlot != 0) { OutputSlot = other.OutputSlot; } debugOps_.Add((IEnumerable)other.debugOps_); debugUrls_.Add((IEnumerable)other.debugUrls_); if (other.TolerateDebugOpCreationFailures) { TolerateDebugOpCreationFailures = other.TolerateDebugOpCreationFailures; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: NodeName = input.ReadString(); break; case 16u: OutputSlot = input.ReadInt32(); break; case 26u: debugOps_.AddEntriesFrom(input, _repeated_debugOps_codec); break; case 34u: debugUrls_.AddEntriesFrom(input, _repeated_debugUrls_codec); break; case 40u: TolerateDebugOpCreationFailures = input.ReadBool(); break; } } } } public sealed class DebugOptions : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new DebugOptions())); private UnknownFieldSet _unknownFields; public const int DebugTensorWatchOptsFieldNumber = 4; private static readonly FieldCodec _repeated_debugTensorWatchOpts_codec = FieldCodec.ForMessage(34u, DebugTensorWatch.Parser); private readonly RepeatedField debugTensorWatchOpts_ = new RepeatedField(); public const int GlobalStepFieldNumber = 10; private long globalStep_; public const int ResetDiskByteUsageFieldNumber = 11; private bool resetDiskByteUsage_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => DebugReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField DebugTensorWatchOpts => debugTensorWatchOpts_; [DebuggerNonUserCode] public long GlobalStep { get { return globalStep_; } set { globalStep_ = value; } } [DebuggerNonUserCode] public bool ResetDiskByteUsage { get { return resetDiskByteUsage_; } set { resetDiskByteUsage_ = value; } } [DebuggerNonUserCode] public DebugOptions() { } [DebuggerNonUserCode] public DebugOptions(DebugOptions other) : this() { debugTensorWatchOpts_ = other.debugTensorWatchOpts_.Clone(); globalStep_ = other.globalStep_; resetDiskByteUsage_ = other.resetDiskByteUsage_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public DebugOptions Clone() { return new DebugOptions(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as DebugOptions); } [DebuggerNonUserCode] public bool Equals(DebugOptions other) { if (other == null) { return false; } if (other == this) { return true; } if (!debugTensorWatchOpts_.Equals(other.debugTensorWatchOpts_)) { return false; } if (GlobalStep != other.GlobalStep) { return false; } if (ResetDiskByteUsage != other.ResetDiskByteUsage) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)debugTensorWatchOpts_).GetHashCode(); if (GlobalStep != 0L) { num ^= GlobalStep.GetHashCode(); } if (ResetDiskByteUsage) { num ^= ResetDiskByteUsage.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { debugTensorWatchOpts_.WriteTo(output, _repeated_debugTensorWatchOpts_codec); if (GlobalStep != 0L) { output.WriteRawTag((byte)80); output.WriteInt64(GlobalStep); } if (ResetDiskByteUsage) { output.WriteRawTag((byte)88); output.WriteBool(ResetDiskByteUsage); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += debugTensorWatchOpts_.CalculateSize(_repeated_debugTensorWatchOpts_codec); if (GlobalStep != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(GlobalStep); } if (ResetDiskByteUsage) { num += 2; } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(DebugOptions other) { if (other != null) { debugTensorWatchOpts_.Add((IEnumerable)other.debugTensorWatchOpts_); if (other.GlobalStep != 0L) { GlobalStep = other.GlobalStep; } if (other.ResetDiskByteUsage) { ResetDiskByteUsage = other.ResetDiskByteUsage; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 34u: debugTensorWatchOpts_.AddEntriesFrom(input, _repeated_debugTensorWatchOpts_codec); break; case 80u: GlobalStep = input.ReadInt64(); break; case 88u: ResetDiskByteUsage = input.ReadBool(); break; } } } } public sealed class DebuggedSourceFile : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new DebuggedSourceFile())); private UnknownFieldSet _unknownFields; public const int HostFieldNumber = 1; private string host_ = ""; public const int FilePathFieldNumber = 2; private string filePath_ = ""; public const int LastModifiedFieldNumber = 3; private long lastModified_; public const int BytesFieldNumber = 4; private long bytes_; public const int LinesFieldNumber = 5; private static readonly FieldCodec _repeated_lines_codec = FieldCodec.ForString(42u); private readonly RepeatedField lines_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => DebugReflection.Descriptor.MessageTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Host { get { return host_; } set { host_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string FilePath { get { return filePath_; } set { filePath_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public long LastModified { get { return lastModified_; } set { lastModified_ = value; } } [DebuggerNonUserCode] public long Bytes { get { return bytes_; } set { bytes_ = value; } } [DebuggerNonUserCode] public RepeatedField Lines => lines_; [DebuggerNonUserCode] public DebuggedSourceFile() { } [DebuggerNonUserCode] public DebuggedSourceFile(DebuggedSourceFile other) : this() { host_ = other.host_; filePath_ = other.filePath_; lastModified_ = other.lastModified_; bytes_ = other.bytes_; lines_ = other.lines_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public DebuggedSourceFile Clone() { return new DebuggedSourceFile(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as DebuggedSourceFile); } [DebuggerNonUserCode] public bool Equals(DebuggedSourceFile other) { if (other == null) { return false; } if (other == this) { return true; } if (Host != other.Host) { return false; } if (FilePath != other.FilePath) { return false; } if (LastModified != other.LastModified) { return false; } if (Bytes != other.Bytes) { return false; } if (!lines_.Equals(other.lines_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Host.Length != 0) { num ^= Host.GetHashCode(); } if (FilePath.Length != 0) { num ^= FilePath.GetHashCode(); } if (LastModified != 0L) { num ^= LastModified.GetHashCode(); } if (Bytes != 0L) { num ^= Bytes.GetHashCode(); } num ^= ((object)lines_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Host.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Host); } if (FilePath.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(FilePath); } if (LastModified != 0L) { output.WriteRawTag((byte)24); output.WriteInt64(LastModified); } if (Bytes != 0L) { output.WriteRawTag((byte)32); output.WriteInt64(Bytes); } lines_.WriteTo(output, _repeated_lines_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Host.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Host); } if (FilePath.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(FilePath); } if (LastModified != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(LastModified); } if (Bytes != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(Bytes); } num += lines_.CalculateSize(_repeated_lines_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(DebuggedSourceFile other) { if (other != null) { if (other.Host.Length != 0) { Host = other.Host; } if (other.FilePath.Length != 0) { FilePath = other.FilePath; } if (other.LastModified != 0L) { LastModified = other.LastModified; } if (other.Bytes != 0L) { Bytes = other.Bytes; } lines_.Add((IEnumerable)other.lines_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Host = input.ReadString(); break; case 18u: FilePath = input.ReadString(); break; case 24u: LastModified = input.ReadInt64(); break; case 32u: Bytes = input.ReadInt64(); break; case 42u: lines_.AddEntriesFrom(input, _repeated_lines_codec); break; } } } } public sealed class DebuggedSourceFiles : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new DebuggedSourceFiles())); private UnknownFieldSet _unknownFields; public const int SourceFilesFieldNumber = 1; private static readonly FieldCodec _repeated_sourceFiles_codec = FieldCodec.ForMessage(10u, DebuggedSourceFile.Parser); private readonly RepeatedField sourceFiles_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => DebugReflection.Descriptor.MessageTypes[3]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField SourceFiles => sourceFiles_; [DebuggerNonUserCode] public DebuggedSourceFiles() { } [DebuggerNonUserCode] public DebuggedSourceFiles(DebuggedSourceFiles other) : this() { sourceFiles_ = other.sourceFiles_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public DebuggedSourceFiles Clone() { return new DebuggedSourceFiles(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as DebuggedSourceFiles); } [DebuggerNonUserCode] public bool Equals(DebuggedSourceFiles other) { if (other == null) { return false; } if (other == this) { return true; } if (!sourceFiles_.Equals(other.sourceFiles_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)sourceFiles_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { sourceFiles_.WriteTo(output, _repeated_sourceFiles_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += sourceFiles_.CalculateSize(_repeated_sourceFiles_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(DebuggedSourceFiles other) { if (other != null) { sourceFiles_.Add((IEnumerable)other.sourceFiles_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { sourceFiles_.AddEntriesFrom(input, _repeated_sourceFiles_codec); } } } } public static class EventReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static EventReflection() { //IL_01e9: Unknown result type (might be due to invalid IL or missing references) //IL_01ef: Expected O, but got Unknown //IL_022c: Unknown result type (might be due to invalid IL or missing references) //IL_0232: Expected O, but got Unknown //IL_0277: Unknown result type (might be due to invalid IL or missing references) //IL_027d: Expected O, but got Unknown //IL_02a8: Unknown result type (might be due to invalid IL or missing references) //IL_02ae: Expected O, but got Unknown //IL_02d1: Unknown result type (might be due to invalid IL or missing references) //IL_02d7: Expected O, but got Unknown //IL_02fa: Unknown result type (might be due to invalid IL or missing references) //IL_0300: Expected O, but got Unknown //IL_0333: Unknown result type (might be due to invalid IL or missing references) //IL_0339: Expected O, but got Unknown //IL_036c: Unknown result type (might be due to invalid IL or missing references) //IL_0372: Expected O, but got Unknown //IL_0372: Unknown result type (might be due to invalid IL or missing references) //IL_037c: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CiR0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vZXZlbnQucHJvdG8SC3RlbnNv" + "cmJvYXJkGiZ0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vc3VtbWFyeS5wcm90" + "byLDAgoFRXZlbnQSEQoJd2FsbF90aW1lGAEgASgBEgwKBHN0ZXAYAiABKAMS" + "FgoMZmlsZV92ZXJzaW9uGAMgASgJSAASEwoJZ3JhcGhfZGVmGAQgASgMSAAS" + "JwoHc3VtbWFyeRgFIAEoCzIULnRlbnNvcmJvYXJkLlN1bW1hcnlIABIyCgts" + "b2dfbWVzc2FnZRgGIAEoCzIXLnRlbnNvcmJvYXJkLkxvZ01lc3NhZ2VCAhgB" + "SAASLgoLc2Vzc2lvbl9sb2cYByABKAsyFy50ZW5zb3Jib2FyZC5TZXNzaW9u" + "TG9nSAASPQoTdGFnZ2VkX3J1bl9tZXRhZGF0YRgIIAEoCzIeLnRlbnNvcmJv" + "YXJkLlRhZ2dlZFJ1bk1ldGFkYXRhSAASGAoObWV0YV9ncmFwaF9kZWYYCSAB" + "KAxIAEIGCgR3aGF0IqIBCgpMb2dNZXNzYWdlEiwKBWxldmVsGAEgASgOMh0u" + "dGVuc29yYm9hcmQuTG9nTWVzc2FnZS5MZXZlbBIPCgdtZXNzYWdlGAIgASgJ" + "IlEKBUxldmVsEgsKB1VOS05PV04QABINCglERUJVR0dJTkcQChIICgRJTkZP" + "EBQSCAoEV0FSThAeEgkKBUVSUk9SECgSCQoFRkFUQUwQMhoCGAE6AhgBIrcB" + "CgpTZXNzaW9uTG9nEjUKBnN0YXR1cxgBIAEoDjIlLnRlbnNvcmJvYXJkLlNl" + "c3Npb25Mb2cuU2Vzc2lvblN0YXR1cxIXCg9jaGVja3BvaW50X3BhdGgYAiAB" + "KAkSCwoDbXNnGAMgASgJIkwKDVNlc3Npb25TdGF0dXMSFgoSU1RBVFVTX1VO" + "U1BFQ0lGSUVEEAASCQoFU1RBUlQQARIICgRTVE9QEAISDgoKQ0hFQ0tQT0lO" + "VBADIjYKEVRhZ2dlZFJ1bk1ldGFkYXRhEgsKA3RhZxgBIAEoCRIUCgxydW5f" + "bWV0YWRhdGEYAiABKAwiJAoOV2F0Y2hkb2dDb25maWcSEgoKdGltZW91dF9t" + "cxgBIAEoAyImChFSZXF1ZXN0ZWRFeGl0Q29kZRIRCglleGl0X2NvZGUYASAB" + "KAUiuQEKFldvcmtlckhlYXJ0YmVhdFJlcXVlc3QSNgoNc2h1dGRvd25fbW9k" + "ZRgBIAEoDjIfLnRlbnNvcmJvYXJkLldvcmtlclNodXRkb3duTW9kZRI0Cg93" + "YXRjaGRvZ19jb25maWcYAiABKAsyGy50ZW5zb3Jib2FyZC5XYXRjaGRvZ0Nv" + "bmZpZxIxCglleGl0X2NvZGUYAyABKAsyHi50ZW5zb3Jib2FyZC5SZXF1ZXN0" + "ZWRFeGl0Q29kZSKFAQoXV29ya2VySGVhcnRiZWF0UmVzcG9uc2USMAoNaGVh" + "bHRoX3N0YXR1cxgBIAEoDjIZLnRlbnNvcmJvYXJkLldvcmtlckhlYWx0aBIm" + "Cgp3b3JrZXJfbG9nGAIgAygLMhIudGVuc29yYm9hcmQuRXZlbnQSEAoIaG9z" + "dG5hbWUYAyABKAkqWwoMV29ya2VySGVhbHRoEgYKAk9LEAASHAoYUkVDRUlW" + "RURfU0hVVERPV05fU0lHTkFMEAESEgoOSU5URVJOQUxfRVJST1IQAhIRCg1T" + "SFVUVElOR19ET1dOEAMqawoSV29ya2VyU2h1dGRvd25Nb2RlEgsKB0RFRkFV" + "TFQQABISCg5OT1RfQ09ORklHVVJFRBABEhgKFFdBSVRfRk9SX0NPT1JESU5B" + "VE9SEAISGgoWU0hVVERPV05fQUZURVJfVElNRU9VVBADQnAKE29yZy50ZW5z" + "b3JmbG93LnV0aWxCC0V2ZW50UHJvdG9zUAFaR2dpdGh1Yi5jb20vdGVuc29y" + "Zmxvdy90ZW5zb3JmbG93L3RlbnNvcmZsb3cvZ28vY29yZS91dGlsL2V2ZW50" + "X2dvX3Byb3Rv+AEBYgZwcm90bzM="), (FileDescriptor[])(object)new FileDescriptor[1] { SummaryReflection.Descriptor }, new GeneratedClrTypeInfo(new Type[2] { typeof(WorkerHealth), typeof(WorkerShutdownMode) }, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[8] { new GeneratedClrTypeInfo(typeof(Event), (MessageParser)(object)Event.Parser, new string[9] { "WallTime", "Step", "FileVersion", "GraphDef", "Summary", "LogMessage", "SessionLog", "TaggedRunMetadata", "MetaGraphDef" }, new string[1] { "What" }, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(LogMessage), (MessageParser)(object)LogMessage.Parser, new string[2] { "Level", "Message" }, (string[])null, new Type[1] { typeof(LogMessage.Types.Level) }, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(SessionLog), (MessageParser)(object)SessionLog.Parser, new string[3] { "Status", "CheckpointPath", "Msg" }, (string[])null, new Type[1] { typeof(SessionLog.Types.SessionStatus) }, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(TaggedRunMetadata), (MessageParser)(object)TaggedRunMetadata.Parser, new string[2] { "Tag", "RunMetadata" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(WatchdogConfig), (MessageParser)(object)WatchdogConfig.Parser, new string[1] { "TimeoutMs" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(RequestedExitCode), (MessageParser)(object)RequestedExitCode.Parser, new string[1] { "ExitCode" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(WorkerHeartbeatRequest), (MessageParser)(object)WorkerHeartbeatRequest.Parser, new string[3] { "ShutdownMode", "WatchdogConfig", "ExitCode" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(WorkerHeartbeatResponse), (MessageParser)(object)WorkerHeartbeatResponse.Parser, new string[3] { "HealthStatus", "WorkerLog", "Hostname" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public enum WorkerHealth { [OriginalName("OK")] Ok, [OriginalName("RECEIVED_SHUTDOWN_SIGNAL")] ReceivedShutdownSignal, [OriginalName("INTERNAL_ERROR")] InternalError, [OriginalName("SHUTTING_DOWN")] ShuttingDown } public enum WorkerShutdownMode { [OriginalName("DEFAULT")] Default, [OriginalName("NOT_CONFIGURED")] NotConfigured, [OriginalName("WAIT_FOR_COORDINATOR")] WaitForCoordinator, [OriginalName("SHUTDOWN_AFTER_TIMEOUT")] ShutdownAfterTimeout } public sealed class Event : IMessage, IMessage, IEquatable, IDeepCloneable { public enum WhatOneofCase { None = 0, FileVersion = 3, GraphDef = 4, Summary = 5, LogMessage = 6, SessionLog = 7, TaggedRunMetadata = 8, MetaGraphDef = 9 } private static readonly MessageParser _parser = new MessageParser((Func)(() => new Event())); private UnknownFieldSet _unknownFields; public const int WallTimeFieldNumber = 1; private double wallTime_; public const int StepFieldNumber = 2; private long step_; public const int FileVersionFieldNumber = 3; public const int GraphDefFieldNumber = 4; public const int SummaryFieldNumber = 5; public const int LogMessageFieldNumber = 6; public const int SessionLogFieldNumber = 7; public const int TaggedRunMetadataFieldNumber = 8; public const int MetaGraphDefFieldNumber = 9; private object what_; private WhatOneofCase whatCase_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => EventReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public double WallTime { get { return wallTime_; } set { wallTime_ = value; } } [DebuggerNonUserCode] public long Step { get { return step_; } set { step_ = value; } } [DebuggerNonUserCode] public string FileVersion { get { if (whatCase_ != WhatOneofCase.FileVersion) { return ""; } return (string)what_; } set { what_ = ProtoPreconditions.CheckNotNull(value, "value"); whatCase_ = WhatOneofCase.FileVersion; } } [DebuggerNonUserCode] public ByteString GraphDef { get { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Expected O, but got Unknown if (whatCase_ != WhatOneofCase.GraphDef) { return ByteString.Empty; } return (ByteString)what_; } set { what_ = ProtoPreconditions.CheckNotNull(value, "value"); whatCase_ = WhatOneofCase.GraphDef; } } [DebuggerNonUserCode] public Summary Summary { get { if (whatCase_ != WhatOneofCase.Summary) { return null; } return (Summary)what_; } set { what_ = value; whatCase_ = ((value != null) ? WhatOneofCase.Summary : WhatOneofCase.None); } } [Obsolete] [DebuggerNonUserCode] public LogMessage LogMessage { get { if (whatCase_ != WhatOneofCase.LogMessage) { return null; } return (LogMessage)what_; } set { what_ = value; whatCase_ = ((value != null) ? WhatOneofCase.LogMessage : WhatOneofCase.None); } } [DebuggerNonUserCode] public SessionLog SessionLog { get { if (whatCase_ != WhatOneofCase.SessionLog) { return null; } return (SessionLog)what_; } set { what_ = value; whatCase_ = ((value != null) ? WhatOneofCase.SessionLog : WhatOneofCase.None); } } [DebuggerNonUserCode] public TaggedRunMetadata TaggedRunMetadata { get { if (whatCase_ != WhatOneofCase.TaggedRunMetadata) { return null; } return (TaggedRunMetadata)what_; } set { what_ = value; whatCase_ = ((value != null) ? WhatOneofCase.TaggedRunMetadata : WhatOneofCase.None); } } [DebuggerNonUserCode] public ByteString MetaGraphDef { get { //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown if (whatCase_ != WhatOneofCase.MetaGraphDef) { return ByteString.Empty; } return (ByteString)what_; } set { what_ = ProtoPreconditions.CheckNotNull(value, "value"); whatCase_ = WhatOneofCase.MetaGraphDef; } } [DebuggerNonUserCode] public WhatOneofCase WhatCase => whatCase_; [DebuggerNonUserCode] public Event() { } [DebuggerNonUserCode] public Event(Event other) : this() { wallTime_ = other.wallTime_; step_ = other.step_; switch (other.WhatCase) { case WhatOneofCase.FileVersion: FileVersion = other.FileVersion; break; case WhatOneofCase.GraphDef: GraphDef = other.GraphDef; break; case WhatOneofCase.Summary: Summary = other.Summary.Clone(); break; case WhatOneofCase.LogMessage: LogMessage = other.LogMessage.Clone(); break; case WhatOneofCase.SessionLog: SessionLog = other.SessionLog.Clone(); break; case WhatOneofCase.TaggedRunMetadata: TaggedRunMetadata = other.TaggedRunMetadata.Clone(); break; case WhatOneofCase.MetaGraphDef: MetaGraphDef = other.MetaGraphDef; break; } _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public Event Clone() { return new Event(this); } [DebuggerNonUserCode] public void ClearWhat() { whatCase_ = WhatOneofCase.None; what_ = null; } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as Event); } [DebuggerNonUserCode] public bool Equals(Event other) { if (other == null) { return false; } if (other == this) { return true; } if (!ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(WallTime, other.WallTime)) { return false; } if (Step != other.Step) { return false; } if (FileVersion != other.FileVersion) { return false; } if (GraphDef != other.GraphDef) { return false; } if (!object.Equals(Summary, other.Summary)) { return false; } if (!object.Equals(LogMessage, other.LogMessage)) { return false; } if (!object.Equals(SessionLog, other.SessionLog)) { return false; } if (!object.Equals(TaggedRunMetadata, other.TaggedRunMetadata)) { return false; } if (MetaGraphDef != other.MetaGraphDef) { return false; } if (WhatCase != other.WhatCase) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (WallTime != 0.0) { num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(WallTime); } if (Step != 0L) { num ^= Step.GetHashCode(); } if (whatCase_ == WhatOneofCase.FileVersion) { num ^= FileVersion.GetHashCode(); } if (whatCase_ == WhatOneofCase.GraphDef) { num ^= ((object)GraphDef).GetHashCode(); } if (whatCase_ == WhatOneofCase.Summary) { num ^= Summary.GetHashCode(); } if (whatCase_ == WhatOneofCase.LogMessage) { num ^= LogMessage.GetHashCode(); } if (whatCase_ == WhatOneofCase.SessionLog) { num ^= SessionLog.GetHashCode(); } if (whatCase_ == WhatOneofCase.TaggedRunMetadata) { num ^= TaggedRunMetadata.GetHashCode(); } if (whatCase_ == WhatOneofCase.MetaGraphDef) { num ^= ((object)MetaGraphDef).GetHashCode(); } num ^= (int)whatCase_; if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (WallTime != 0.0) { output.WriteRawTag((byte)9); output.WriteDouble(WallTime); } if (Step != 0L) { output.WriteRawTag((byte)16); output.WriteInt64(Step); } if (whatCase_ == WhatOneofCase.FileVersion) { output.WriteRawTag((byte)26); output.WriteString(FileVersion); } if (whatCase_ == WhatOneofCase.GraphDef) { output.WriteRawTag((byte)34); output.WriteBytes(GraphDef); } if (whatCase_ == WhatOneofCase.Summary) { output.WriteRawTag((byte)42); output.WriteMessage((IMessage)(object)Summary); } if (whatCase_ == WhatOneofCase.LogMessage) { output.WriteRawTag((byte)50); output.WriteMessage((IMessage)(object)LogMessage); } if (whatCase_ == WhatOneofCase.SessionLog) { output.WriteRawTag((byte)58); output.WriteMessage((IMessage)(object)SessionLog); } if (whatCase_ == WhatOneofCase.TaggedRunMetadata) { output.WriteRawTag((byte)66); output.WriteMessage((IMessage)(object)TaggedRunMetadata); } if (whatCase_ == WhatOneofCase.MetaGraphDef) { output.WriteRawTag((byte)74); output.WriteBytes(MetaGraphDef); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (WallTime != 0.0) { num += 9; } if (Step != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(Step); } if (whatCase_ == WhatOneofCase.FileVersion) { num += 1 + CodedOutputStream.ComputeStringSize(FileVersion); } if (whatCase_ == WhatOneofCase.GraphDef) { num += 1 + CodedOutputStream.ComputeBytesSize(GraphDef); } if (whatCase_ == WhatOneofCase.Summary) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Summary); } if (whatCase_ == WhatOneofCase.LogMessage) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)LogMessage); } if (whatCase_ == WhatOneofCase.SessionLog) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)SessionLog); } if (whatCase_ == WhatOneofCase.TaggedRunMetadata) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)TaggedRunMetadata); } if (whatCase_ == WhatOneofCase.MetaGraphDef) { num += 1 + CodedOutputStream.ComputeBytesSize(MetaGraphDef); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(Event other) { if (other == null) { return; } if (other.WallTime != 0.0) { WallTime = other.WallTime; } if (other.Step != 0L) { Step = other.Step; } switch (other.WhatCase) { case WhatOneofCase.FileVersion: FileVersion = other.FileVersion; break; case WhatOneofCase.GraphDef: GraphDef = other.GraphDef; break; case WhatOneofCase.Summary: if (Summary == null) { Summary = new Summary(); } Summary.MergeFrom(other.Summary); break; case WhatOneofCase.LogMessage: if (LogMessage == null) { LogMessage = new LogMessage(); } LogMessage.MergeFrom(other.LogMessage); break; case WhatOneofCase.SessionLog: if (SessionLog == null) { SessionLog = new SessionLog(); } SessionLog.MergeFrom(other.SessionLog); break; case WhatOneofCase.TaggedRunMetadata: if (TaggedRunMetadata == null) { TaggedRunMetadata = new TaggedRunMetadata(); } TaggedRunMetadata.MergeFrom(other.TaggedRunMetadata); break; case WhatOneofCase.MetaGraphDef: MetaGraphDef = other.MetaGraphDef; break; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 9u: WallTime = input.ReadDouble(); break; case 16u: Step = input.ReadInt64(); break; case 26u: FileVersion = input.ReadString(); break; case 34u: GraphDef = input.ReadBytes(); break; case 42u: { Summary summary = new Summary(); if (whatCase_ == WhatOneofCase.Summary) { summary.MergeFrom(Summary); } input.ReadMessage((IMessage)(object)summary); Summary = summary; break; } case 50u: { LogMessage logMessage = new LogMessage(); if (whatCase_ == WhatOneofCase.LogMessage) { logMessage.MergeFrom(LogMessage); } input.ReadMessage((IMessage)(object)logMessage); LogMessage = logMessage; break; } case 58u: { SessionLog sessionLog = new SessionLog(); if (whatCase_ == WhatOneofCase.SessionLog) { sessionLog.MergeFrom(SessionLog); } input.ReadMessage((IMessage)(object)sessionLog); SessionLog = sessionLog; break; } case 66u: { TaggedRunMetadata taggedRunMetadata = new TaggedRunMetadata(); if (whatCase_ == WhatOneofCase.TaggedRunMetadata) { taggedRunMetadata.MergeFrom(TaggedRunMetadata); } input.ReadMessage((IMessage)(object)taggedRunMetadata); TaggedRunMetadata = taggedRunMetadata; break; } case 74u: MetaGraphDef = input.ReadBytes(); break; } } } } [Obsolete] public sealed class LogMessage : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public enum Level { [OriginalName("UNKNOWN")] Unknown = 0, [OriginalName("DEBUGGING")] Debugging = 10, [OriginalName("INFO")] Info = 20, [OriginalName("WARN")] Warn = 30, [OriginalName("ERROR")] Error = 40, [OriginalName("FATAL")] Fatal = 50 } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new LogMessage())); private UnknownFieldSet _unknownFields; public const int LevelFieldNumber = 1; private Types.Level level_; public const int MessageFieldNumber = 2; private string message_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => EventReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public Types.Level Level { get { return level_; } set { level_ = value; } } [DebuggerNonUserCode] public string Message { get { return message_; } set { message_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public LogMessage() { } [DebuggerNonUserCode] public LogMessage(LogMessage other) : this() { level_ = other.level_; message_ = other.message_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public LogMessage Clone() { return new LogMessage(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as LogMessage); } [DebuggerNonUserCode] public bool Equals(LogMessage other) { if (other == null) { return false; } if (other == this) { return true; } if (Level != other.Level) { return false; } if (Message != other.Message) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Level != Types.Level.Unknown) { num ^= Level.GetHashCode(); } if (Message.Length != 0) { num ^= Message.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Level != Types.Level.Unknown) { output.WriteRawTag((byte)8); output.WriteEnum((int)Level); } if (Message.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(Message); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Level != Types.Level.Unknown) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Level); } if (Message.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(LogMessage other) { if (other != null) { if (other.Level != Types.Level.Unknown) { Level = other.Level; } if (other.Message.Length != 0) { Message = other.Message; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: Level = (Types.Level)input.ReadEnum(); break; case 18u: Message = input.ReadString(); break; } } } } public sealed class SessionLog : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public enum SessionStatus { [OriginalName("STATUS_UNSPECIFIED")] StatusUnspecified, [OriginalName("START")] Start, [OriginalName("STOP")] Stop, [OriginalName("CHECKPOINT")] Checkpoint } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new SessionLog())); private UnknownFieldSet _unknownFields; public const int StatusFieldNumber = 1; private Types.SessionStatus status_; public const int CheckpointPathFieldNumber = 2; private string checkpointPath_ = ""; public const int MsgFieldNumber = 3; private string msg_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => EventReflection.Descriptor.MessageTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public Types.SessionStatus Status { get { return status_; } set { status_ = value; } } [DebuggerNonUserCode] public string CheckpointPath { get { return checkpointPath_; } set { checkpointPath_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string Msg { get { return msg_; } set { msg_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public SessionLog() { } [DebuggerNonUserCode] public SessionLog(SessionLog other) : this() { status_ = other.status_; checkpointPath_ = other.checkpointPath_; msg_ = other.msg_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SessionLog Clone() { return new SessionLog(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SessionLog); } [DebuggerNonUserCode] public bool Equals(SessionLog other) { if (other == null) { return false; } if (other == this) { return true; } if (Status != other.Status) { return false; } if (CheckpointPath != other.CheckpointPath) { return false; } if (Msg != other.Msg) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Status != Types.SessionStatus.StatusUnspecified) { num ^= Status.GetHashCode(); } if (CheckpointPath.Length != 0) { num ^= CheckpointPath.GetHashCode(); } if (Msg.Length != 0) { num ^= Msg.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Status != Types.SessionStatus.StatusUnspecified) { output.WriteRawTag((byte)8); output.WriteEnum((int)Status); } if (CheckpointPath.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(CheckpointPath); } if (Msg.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(Msg); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Status != Types.SessionStatus.StatusUnspecified) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Status); } if (CheckpointPath.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(CheckpointPath); } if (Msg.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Msg); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SessionLog other) { if (other != null) { if (other.Status != Types.SessionStatus.StatusUnspecified) { Status = other.Status; } if (other.CheckpointPath.Length != 0) { CheckpointPath = other.CheckpointPath; } if (other.Msg.Length != 0) { Msg = other.Msg; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: Status = (Types.SessionStatus)input.ReadEnum(); break; case 18u: CheckpointPath = input.ReadString(); break; case 26u: Msg = input.ReadString(); break; } } } } public sealed class TaggedRunMetadata : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new TaggedRunMetadata())); private UnknownFieldSet _unknownFields; public const int TagFieldNumber = 1; private string tag_ = ""; public const int RunMetadataFieldNumber = 2; private ByteString runMetadata_ = ByteString.Empty; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => EventReflection.Descriptor.MessageTypes[3]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Tag { get { return tag_; } set { tag_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public ByteString RunMetadata { get { return runMetadata_; } set { runMetadata_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public TaggedRunMetadata() { } [DebuggerNonUserCode] public TaggedRunMetadata(TaggedRunMetadata other) : this() { tag_ = other.tag_; runMetadata_ = other.runMetadata_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public TaggedRunMetadata Clone() { return new TaggedRunMetadata(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as TaggedRunMetadata); } [DebuggerNonUserCode] public bool Equals(TaggedRunMetadata other) { if (other == null) { return false; } if (other == this) { return true; } if (Tag != other.Tag) { return false; } if (RunMetadata != other.RunMetadata) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Tag.Length != 0) { num ^= Tag.GetHashCode(); } if (RunMetadata.Length != 0) { num ^= ((object)RunMetadata).GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Tag.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Tag); } if (RunMetadata.Length != 0) { output.WriteRawTag((byte)18); output.WriteBytes(RunMetadata); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Tag.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Tag); } if (RunMetadata.Length != 0) { num += 1 + CodedOutputStream.ComputeBytesSize(RunMetadata); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(TaggedRunMetadata other) { if (other != null) { if (other.Tag.Length != 0) { Tag = other.Tag; } if (other.RunMetadata.Length != 0) { RunMetadata = other.RunMetadata; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Tag = input.ReadString(); break; case 18u: RunMetadata = input.ReadBytes(); break; } } } } public sealed class WatchdogConfig : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new WatchdogConfig())); private UnknownFieldSet _unknownFields; public const int TimeoutMsFieldNumber = 1; private long timeoutMs_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => EventReflection.Descriptor.MessageTypes[4]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public long TimeoutMs { get { return timeoutMs_; } set { timeoutMs_ = value; } } [DebuggerNonUserCode] public WatchdogConfig() { } [DebuggerNonUserCode] public WatchdogConfig(WatchdogConfig other) : this() { timeoutMs_ = other.timeoutMs_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public WatchdogConfig Clone() { return new WatchdogConfig(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as WatchdogConfig); } [DebuggerNonUserCode] public bool Equals(WatchdogConfig other) { if (other == null) { return false; } if (other == this) { return true; } if (TimeoutMs != other.TimeoutMs) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (TimeoutMs != 0L) { num ^= TimeoutMs.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (TimeoutMs != 0L) { output.WriteRawTag((byte)8); output.WriteInt64(TimeoutMs); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (TimeoutMs != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(TimeoutMs); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(WatchdogConfig other) { if (other != null) { if (other.TimeoutMs != 0L) { TimeoutMs = other.TimeoutMs; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 8) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { TimeoutMs = input.ReadInt64(); } } } } public sealed class RequestedExitCode : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new RequestedExitCode())); private UnknownFieldSet _unknownFields; public const int ExitCodeFieldNumber = 1; private int exitCode_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => EventReflection.Descriptor.MessageTypes[5]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public int ExitCode { get { return exitCode_; } set { exitCode_ = value; } } [DebuggerNonUserCode] public RequestedExitCode() { } [DebuggerNonUserCode] public RequestedExitCode(RequestedExitCode other) : this() { exitCode_ = other.exitCode_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public RequestedExitCode Clone() { return new RequestedExitCode(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as RequestedExitCode); } [DebuggerNonUserCode] public bool Equals(RequestedExitCode other) { if (other == null) { return false; } if (other == this) { return true; } if (ExitCode != other.ExitCode) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (ExitCode != 0) { num ^= ExitCode.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (ExitCode != 0) { output.WriteRawTag((byte)8); output.WriteInt32(ExitCode); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (ExitCode != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(ExitCode); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(RequestedExitCode other) { if (other != null) { if (other.ExitCode != 0) { ExitCode = other.ExitCode; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 8) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { ExitCode = input.ReadInt32(); } } } } public sealed class WorkerHeartbeatRequest : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new WorkerHeartbeatRequest())); private UnknownFieldSet _unknownFields; public const int ShutdownModeFieldNumber = 1; private WorkerShutdownMode shutdownMode_; public const int WatchdogConfigFieldNumber = 2; private WatchdogConfig watchdogConfig_; public const int ExitCodeFieldNumber = 3; private RequestedExitCode exitCode_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => EventReflection.Descriptor.MessageTypes[6]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public WorkerShutdownMode ShutdownMode { get { return shutdownMode_; } set { shutdownMode_ = value; } } [DebuggerNonUserCode] public WatchdogConfig WatchdogConfig { get { return watchdogConfig_; } set { watchdogConfig_ = value; } } [DebuggerNonUserCode] public RequestedExitCode ExitCode { get { return exitCode_; } set { exitCode_ = value; } } [DebuggerNonUserCode] public WorkerHeartbeatRequest() { } [DebuggerNonUserCode] public WorkerHeartbeatRequest(WorkerHeartbeatRequest other) : this() { shutdownMode_ = other.shutdownMode_; watchdogConfig_ = ((other.watchdogConfig_ != null) ? other.watchdogConfig_.Clone() : null); exitCode_ = ((other.exitCode_ != null) ? other.exitCode_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public WorkerHeartbeatRequest Clone() { return new WorkerHeartbeatRequest(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as WorkerHeartbeatRequest); } [DebuggerNonUserCode] public bool Equals(WorkerHeartbeatRequest other) { if (other == null) { return false; } if (other == this) { return true; } if (ShutdownMode != other.ShutdownMode) { return false; } if (!object.Equals(WatchdogConfig, other.WatchdogConfig)) { return false; } if (!object.Equals(ExitCode, other.ExitCode)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (ShutdownMode != WorkerShutdownMode.Default) { num ^= ShutdownMode.GetHashCode(); } if (watchdogConfig_ != null) { num ^= WatchdogConfig.GetHashCode(); } if (exitCode_ != null) { num ^= ExitCode.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (ShutdownMode != WorkerShutdownMode.Default) { output.WriteRawTag((byte)8); output.WriteEnum((int)ShutdownMode); } if (watchdogConfig_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)WatchdogConfig); } if (exitCode_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)ExitCode); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (ShutdownMode != WorkerShutdownMode.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)ShutdownMode); } if (watchdogConfig_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)WatchdogConfig); } if (exitCode_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)ExitCode); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(WorkerHeartbeatRequest other) { if (other == null) { return; } if (other.ShutdownMode != WorkerShutdownMode.Default) { ShutdownMode = other.ShutdownMode; } if (other.watchdogConfig_ != null) { if (watchdogConfig_ == null) { WatchdogConfig = new WatchdogConfig(); } WatchdogConfig.MergeFrom(other.WatchdogConfig); } if (other.exitCode_ != null) { if (exitCode_ == null) { ExitCode = new RequestedExitCode(); } ExitCode.MergeFrom(other.ExitCode); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: ShutdownMode = (WorkerShutdownMode)input.ReadEnum(); break; case 18u: if (watchdogConfig_ == null) { WatchdogConfig = new WatchdogConfig(); } input.ReadMessage((IMessage)(object)WatchdogConfig); break; case 26u: if (exitCode_ == null) { ExitCode = new RequestedExitCode(); } input.ReadMessage((IMessage)(object)ExitCode); break; } } } } public sealed class WorkerHeartbeatResponse : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new WorkerHeartbeatResponse())); private UnknownFieldSet _unknownFields; public const int HealthStatusFieldNumber = 1; private WorkerHealth healthStatus_; public const int WorkerLogFieldNumber = 2; private static readonly FieldCodec _repeated_workerLog_codec = FieldCodec.ForMessage(18u, Event.Parser); private readonly RepeatedField workerLog_ = new RepeatedField(); public const int HostnameFieldNumber = 3; private string hostname_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => EventReflection.Descriptor.MessageTypes[7]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public WorkerHealth HealthStatus { get { return healthStatus_; } set { healthStatus_ = value; } } [DebuggerNonUserCode] public RepeatedField WorkerLog => workerLog_; [DebuggerNonUserCode] public string Hostname { get { return hostname_; } set { hostname_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public WorkerHeartbeatResponse() { } [DebuggerNonUserCode] public WorkerHeartbeatResponse(WorkerHeartbeatResponse other) : this() { healthStatus_ = other.healthStatus_; workerLog_ = other.workerLog_.Clone(); hostname_ = other.hostname_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public WorkerHeartbeatResponse Clone() { return new WorkerHeartbeatResponse(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as WorkerHeartbeatResponse); } [DebuggerNonUserCode] public bool Equals(WorkerHeartbeatResponse other) { if (other == null) { return false; } if (other == this) { return true; } if (HealthStatus != other.HealthStatus) { return false; } if (!workerLog_.Equals(other.workerLog_)) { return false; } if (Hostname != other.Hostname) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (HealthStatus != WorkerHealth.Ok) { num ^= HealthStatus.GetHashCode(); } num ^= ((object)workerLog_).GetHashCode(); if (Hostname.Length != 0) { num ^= Hostname.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (HealthStatus != WorkerHealth.Ok) { output.WriteRawTag((byte)8); output.WriteEnum((int)HealthStatus); } workerLog_.WriteTo(output, _repeated_workerLog_codec); if (Hostname.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(Hostname); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (HealthStatus != WorkerHealth.Ok) { num += 1 + CodedOutputStream.ComputeEnumSize((int)HealthStatus); } num += workerLog_.CalculateSize(_repeated_workerLog_codec); if (Hostname.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Hostname); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(WorkerHeartbeatResponse other) { if (other != null) { if (other.HealthStatus != WorkerHealth.Ok) { HealthStatus = other.HealthStatus; } workerLog_.Add((IEnumerable)other.workerLog_); if (other.Hostname.Length != 0) { Hostname = other.Hostname; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: HealthStatus = (WorkerHealth)input.ReadEnum(); break; case 18u: workerLog_.AddEntriesFrom(input, _repeated_workerLog_codec); break; case 26u: Hostname = input.ReadString(); break; } } } } public static class FullTypeReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static FullTypeReflection() { //IL_0124: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Expected O, but got Unknown //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("Cih0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vZnVsbF90eXBlLnByb3RvEgt0" + "ZW5zb3Jib2FyZCKBAQoLRnVsbFR5cGVEZWYSKAoHdHlwZV9pZBgBIAEoDjIX" + "LnRlbnNvcmJvYXJkLkZ1bGxUeXBlSWQSJgoEYXJncxgCIAMoCzIYLnRlbnNv" + "cmJvYXJkLkZ1bGxUeXBlRGVmEgsKAXMYAyABKAlIABILCgFpGAQgASgDSABC" + "BgoEYXR0ciqeBAoKRnVsbFR5cGVJZBINCglURlRfVU5TRVQQABILCgdURlRf" + "VkFSEAESCwoHVEZUX0FOWRACEg8KC1RGVF9QUk9EVUNUEAMSDQoJVEZUX05B" + "TUVEEAQSEAoMVEZUX0ZPUl9FQUNIEBQSEAoMVEZUX0NBTExBQkxFEGQSDwoK" + "VEZUX1RFTlNPUhDoBxIOCglURlRfQVJSQVkQ6QcSEQoMVEZUX09QVElPTkFM" + "EOoHEhAKC1RGVF9MSVRFUkFMEOsHEg0KCFRGVF9CT09MEMgBEg4KCVRGVF9V" + "SU5UOBDJARIPCgpURlRfVUlOVDE2EMoBEg8KClRGVF9VSU5UMzIQywESDwoK" + "VEZUX1VJTlQ2NBDMARINCghURlRfSU5UOBDNARIOCglURlRfSU5UMTYQzgES" + "DgoJVEZUX0lOVDMyEM8BEg4KCVRGVF9JTlQ2NBDQARINCghURlRfSEFMRhDR" + "ARIOCglURlRfRkxPQVQQ0gESDwoKVEZUX0RPVUJMRRDTARIRCgxURlRfQkZM" + "T0FUMTYQ1wESEgoNVEZUX0NPTVBMRVg2NBDUARITCg5URlRfQ09NUExFWDEy" + "OBDVARIPCgpURlRfU1RSSU5HENYBEhAKC1RGVF9EQVRBU0VUEPZOEg8KClRG" + "VF9SQUdHRUQQ904SEwoOVEZUX01VVEVYX0xPQ0sQ2k8SFwoSVEZUX0xFR0FD" + "WV9WQVJJQU5UENtPQoEBChhvcmcudGVuc29yZmxvdy5mcmFtZXdvcmtCDkZ1" + "bGxUeXBlUHJvdG9zUAFaUGdpdGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3Jm" + "bG93L3RlbnNvcmZsb3cvZ28vY29yZS9mcmFtZXdvcmsvZnVsbF90eXBlX2dv" + "X3Byb3Rv+AEBYgZwcm90bzM="), (FileDescriptor[])(object)new FileDescriptor[0], new GeneratedClrTypeInfo(new Type[1] { typeof(FullTypeId) }, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(FullTypeDef), (MessageParser)(object)FullTypeDef.Parser, new string[4] { "TypeId", "Args", "S", "I" }, new string[1] { "Attr" }, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public enum FullTypeId { [OriginalName("TFT_UNSET")] TftUnset = 0, [OriginalName("TFT_VAR")] TftVar = 1, [OriginalName("TFT_ANY")] TftAny = 2, [OriginalName("TFT_PRODUCT")] TftProduct = 3, [OriginalName("TFT_NAMED")] TftNamed = 4, [OriginalName("TFT_FOR_EACH")] TftForEach = 20, [OriginalName("TFT_CALLABLE")] TftCallable = 100, [OriginalName("TFT_TENSOR")] TftTensor = 1000, [OriginalName("TFT_ARRAY")] TftArray = 1001, [OriginalName("TFT_OPTIONAL")] TftOptional = 1002, [OriginalName("TFT_LITERAL")] TftLiteral = 1003, [OriginalName("TFT_BOOL")] TftBool = 200, [OriginalName("TFT_UINT8")] TftUint8 = 201, [OriginalName("TFT_UINT16")] TftUint16 = 202, [OriginalName("TFT_UINT32")] TftUint32 = 203, [OriginalName("TFT_UINT64")] TftUint64 = 204, [OriginalName("TFT_INT8")] TftInt8 = 205, [OriginalName("TFT_INT16")] TftInt16 = 206, [OriginalName("TFT_INT32")] TftInt32 = 207, [OriginalName("TFT_INT64")] TftInt64 = 208, [OriginalName("TFT_HALF")] TftHalf = 209, [OriginalName("TFT_FLOAT")] TftFloat = 210, [OriginalName("TFT_DOUBLE")] TftDouble = 211, [OriginalName("TFT_BFLOAT16")] TftBfloat16 = 215, [OriginalName("TFT_COMPLEX64")] TftComplex64 = 212, [OriginalName("TFT_COMPLEX128")] TftComplex128 = 213, [OriginalName("TFT_STRING")] TftString = 214, [OriginalName("TFT_DATASET")] TftDataset = 10102, [OriginalName("TFT_RAGGED")] TftRagged = 10103, [OriginalName("TFT_MUTEX_LOCK")] TftMutexLock = 10202, [OriginalName("TFT_LEGACY_VARIANT")] TftLegacyVariant = 10203 } public sealed class FullTypeDef : IMessage, IMessage, IEquatable, IDeepCloneable { public enum AttrOneofCase { None = 0, S = 3, I = 4 } private static readonly MessageParser _parser = new MessageParser((Func)(() => new FullTypeDef())); private UnknownFieldSet _unknownFields; public const int TypeIdFieldNumber = 1; private FullTypeId typeId_; public const int ArgsFieldNumber = 2; private static readonly FieldCodec _repeated_args_codec = FieldCodec.ForMessage(18u, Parser); private readonly RepeatedField args_ = new RepeatedField(); public const int SFieldNumber = 3; public const int IFieldNumber = 4; private object attr_; private AttrOneofCase attrCase_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => FullTypeReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public FullTypeId TypeId { get { return typeId_; } set { typeId_ = value; } } [DebuggerNonUserCode] public RepeatedField Args => args_; [DebuggerNonUserCode] public string S { get { if (attrCase_ != AttrOneofCase.S) { return ""; } return (string)attr_; } set { attr_ = ProtoPreconditions.CheckNotNull(value, "value"); attrCase_ = AttrOneofCase.S; } } [DebuggerNonUserCode] public long I { get { if (attrCase_ != AttrOneofCase.I) { return 0L; } return (long)attr_; } set { attr_ = value; attrCase_ = AttrOneofCase.I; } } [DebuggerNonUserCode] public AttrOneofCase AttrCase => attrCase_; [DebuggerNonUserCode] public FullTypeDef() { } [DebuggerNonUserCode] public FullTypeDef(FullTypeDef other) : this() { typeId_ = other.typeId_; args_ = other.args_.Clone(); switch (other.AttrCase) { case AttrOneofCase.S: S = other.S; break; case AttrOneofCase.I: I = other.I; break; } _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public FullTypeDef Clone() { return new FullTypeDef(this); } [DebuggerNonUserCode] public void ClearAttr() { attrCase_ = AttrOneofCase.None; attr_ = null; } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as FullTypeDef); } [DebuggerNonUserCode] public bool Equals(FullTypeDef other) { if (other == null) { return false; } if (other == this) { return true; } if (TypeId != other.TypeId) { return false; } if (!args_.Equals(other.args_)) { return false; } if (S != other.S) { return false; } if (I != other.I) { return false; } if (AttrCase != other.AttrCase) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (TypeId != FullTypeId.TftUnset) { num ^= TypeId.GetHashCode(); } num ^= ((object)args_).GetHashCode(); if (attrCase_ == AttrOneofCase.S) { num ^= S.GetHashCode(); } if (attrCase_ == AttrOneofCase.I) { num ^= I.GetHashCode(); } num ^= (int)attrCase_; if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (TypeId != FullTypeId.TftUnset) { output.WriteRawTag((byte)8); output.WriteEnum((int)TypeId); } args_.WriteTo(output, _repeated_args_codec); if (attrCase_ == AttrOneofCase.S) { output.WriteRawTag((byte)26); output.WriteString(S); } if (attrCase_ == AttrOneofCase.I) { output.WriteRawTag((byte)32); output.WriteInt64(I); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (TypeId != FullTypeId.TftUnset) { num += 1 + CodedOutputStream.ComputeEnumSize((int)TypeId); } num += args_.CalculateSize(_repeated_args_codec); if (attrCase_ == AttrOneofCase.S) { num += 1 + CodedOutputStream.ComputeStringSize(S); } if (attrCase_ == AttrOneofCase.I) { num += 1 + CodedOutputStream.ComputeInt64Size(I); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(FullTypeDef other) { if (other != null) { if (other.TypeId != FullTypeId.TftUnset) { TypeId = other.TypeId; } args_.Add((IEnumerable)other.args_); switch (other.AttrCase) { case AttrOneofCase.S: S = other.S; break; case AttrOneofCase.I: I = other.I; break; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: TypeId = (FullTypeId)input.ReadEnum(); break; case 18u: args_.AddEntriesFrom(input, _repeated_args_codec); break; case 26u: S = input.ReadString(); break; case 32u: I = input.ReadInt64(); break; } } } } public static class FunctionReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static FunctionReflection() { //IL_018a: Unknown result type (might be due to invalid IL or missing references) //IL_0190: Expected O, but got Unknown //IL_0210: Unknown result type (might be due to invalid IL or missing references) //IL_0216: Expected O, but got Unknown //IL_0216: Unknown result type (might be due to invalid IL or missing references) //IL_021c: Expected O, but got Unknown //IL_0247: Unknown result type (might be due to invalid IL or missing references) //IL_024d: Expected O, but got Unknown //IL_0278: Unknown result type (might be due to invalid IL or missing references) //IL_027e: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("Cid0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vZnVuY3Rpb24ucHJvdG8SC3Rl" + "bnNvcmJvYXJkGil0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vYXR0cl92YWx1" + "ZS5wcm90bxondGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL25vZGVfZGVmLnBy" + "b3RvGiV0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vb3BfZGVmLnByb3RvIqsB" + "ChJGdW5jdGlvbkRlZkxpYnJhcnkSKgoIZnVuY3Rpb24YASADKAsyGC50ZW5z" + "b3Jib2FyZC5GdW5jdGlvbkRlZhIqCghncmFkaWVudBgCIAMoCzIYLnRlbnNv" + "cmJvYXJkLkdyYWRpZW50RGVmEj0KFHJlZ2lzdGVyZWRfZ3JhZGllbnRzGAMg" + "AygLMh8udGVuc29yYm9hcmQuUmVnaXN0ZXJlZEdyYWRpZW50Is8GCgtGdW5j" + "dGlvbkRlZhIlCglzaWduYXR1cmUYASABKAsyEi50ZW5zb3Jib2FyZC5PcERl" + "ZhIwCgRhdHRyGAUgAygLMiIudGVuc29yYm9hcmQuRnVuY3Rpb25EZWYuQXR0" + "ckVudHJ5EjcKCGFyZ19hdHRyGAcgAygLMiUudGVuc29yYm9hcmQuRnVuY3Rp" + "b25EZWYuQXJnQXR0ckVudHJ5ElEKFnJlc291cmNlX2FyZ191bmlxdWVfaWQY" + "CCADKAsyMS50ZW5zb3Jib2FyZC5GdW5jdGlvbkRlZi5SZXNvdXJjZUFyZ1Vu" + "aXF1ZUlkRW50cnkSJgoIbm9kZV9kZWYYAyADKAsyFC50ZW5zb3Jib2FyZC5O" + "b2RlRGVmEi4KA3JldBgEIAMoCzIhLnRlbnNvcmJvYXJkLkZ1bmN0aW9uRGVm" + "LlJldEVudHJ5Ej0KC2NvbnRyb2xfcmV0GAYgAygLMigudGVuc29yYm9hcmQu" + "RnVuY3Rpb25EZWYuQ29udHJvbFJldEVudHJ5GkMKCUF0dHJFbnRyeRILCgNr" + "ZXkYASABKAkSJQoFdmFsdWUYAiABKAsyFi50ZW5zb3Jib2FyZC5BdHRyVmFs" + "dWU6AjgBGooBCghBcmdBdHRycxI5CgRhdHRyGAEgAygLMisudGVuc29yYm9h" + "cmQuRnVuY3Rpb25EZWYuQXJnQXR0cnMuQXR0ckVudHJ5GkMKCUF0dHJFbnRy" + "eRILCgNrZXkYASABKAkSJQoFdmFsdWUYAiABKAsyFi50ZW5zb3Jib2FyZC5B" + "dHRyVmFsdWU6AjgBGlEKDEFyZ0F0dHJFbnRyeRILCgNrZXkYASABKA0SMAoF" + "dmFsdWUYAiABKAsyIS50ZW5zb3Jib2FyZC5GdW5jdGlvbkRlZi5BcmdBdHRy" + "czoCOAEaOgoYUmVzb3VyY2VBcmdVbmlxdWVJZEVudHJ5EgsKA2tleRgBIAEo" + "DRINCgV2YWx1ZRgCIAEoDToCOAEaKgoIUmV0RW50cnkSCwoDa2V5GAEgASgJ" + "Eg0KBXZhbHVlGAIgASgJOgI4ARoxCg9Db250cm9sUmV0RW50cnkSCwoDa2V5" + "GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUoECAIQAyI7CgtHcmFkaWVudERl" + "ZhIVCg1mdW5jdGlvbl9uYW1lGAEgASgJEhUKDWdyYWRpZW50X2Z1bmMYAiAB" + "KAkiRwoSUmVnaXN0ZXJlZEdyYWRpZW50EhUKDWdyYWRpZW50X2Z1bmMYASAB" + "KAkSGgoScmVnaXN0ZXJlZF9vcF90eXBlGAIgASgJQoABChhvcmcudGVuc29y" + "Zmxvdy5mcmFtZXdvcmtCDkZ1bmN0aW9uUHJvdG9zUAFaT2dpdGh1Yi5jb20v" + "dGVuc29yZmxvdy90ZW5zb3JmbG93L3RlbnNvcmZsb3cvZ28vY29yZS9mcmFt" + "ZXdvcmsvZnVuY3Rpb25fZ29fcHJvdG/4AQFiBnByb3RvMw=="), (FileDescriptor[])(object)new FileDescriptor[3] { AttrValueReflection.Descriptor, NodeDefReflection.Descriptor, OpDefReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[4] { new GeneratedClrTypeInfo(typeof(FunctionDefLibrary), (MessageParser)(object)FunctionDefLibrary.Parser, new string[3] { "Function", "Gradient", "RegisteredGradients" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(FunctionDef), (MessageParser)(object)FunctionDef.Parser, new string[7] { "Signature", "Attr", "ArgAttr", "ResourceArgUniqueId", "NodeDef", "Ret", "ControlRet" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[6] { default(GeneratedClrTypeInfo), new GeneratedClrTypeInfo(typeof(FunctionDef.Types.ArgAttrs), (MessageParser)(object)FunctionDef.Types.ArgAttrs.Parser, new string[1] { "Attr" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1]), default(GeneratedClrTypeInfo), default(GeneratedClrTypeInfo), default(GeneratedClrTypeInfo), default(GeneratedClrTypeInfo) }), new GeneratedClrTypeInfo(typeof(GradientDef), (MessageParser)(object)GradientDef.Parser, new string[2] { "FunctionName", "GradientFunc" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(RegisteredGradient), (MessageParser)(object)RegisteredGradient.Parser, new string[2] { "GradientFunc", "RegisteredOpType" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class FunctionDefLibrary : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new FunctionDefLibrary())); private UnknownFieldSet _unknownFields; public const int FunctionFieldNumber = 1; private static readonly FieldCodec _repeated_function_codec = FieldCodec.ForMessage(10u, FunctionDef.Parser); private readonly RepeatedField function_ = new RepeatedField(); public const int GradientFieldNumber = 2; private static readonly FieldCodec _repeated_gradient_codec = FieldCodec.ForMessage(18u, GradientDef.Parser); private readonly RepeatedField gradient_ = new RepeatedField(); public const int RegisteredGradientsFieldNumber = 3; private static readonly FieldCodec _repeated_registeredGradients_codec = FieldCodec.ForMessage(26u, RegisteredGradient.Parser); private readonly RepeatedField registeredGradients_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => FunctionReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Function => function_; [DebuggerNonUserCode] public RepeatedField Gradient => gradient_; [DebuggerNonUserCode] public RepeatedField RegisteredGradients => registeredGradients_; [DebuggerNonUserCode] public FunctionDefLibrary() { } [DebuggerNonUserCode] public FunctionDefLibrary(FunctionDefLibrary other) : this() { function_ = other.function_.Clone(); gradient_ = other.gradient_.Clone(); registeredGradients_ = other.registeredGradients_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public FunctionDefLibrary Clone() { return new FunctionDefLibrary(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as FunctionDefLibrary); } [DebuggerNonUserCode] public bool Equals(FunctionDefLibrary other) { if (other == null) { return false; } if (other == this) { return true; } if (!function_.Equals(other.function_)) { return false; } if (!gradient_.Equals(other.gradient_)) { return false; } if (!registeredGradients_.Equals(other.registeredGradients_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)function_).GetHashCode(); num ^= ((object)gradient_).GetHashCode(); num ^= ((object)registeredGradients_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { function_.WriteTo(output, _repeated_function_codec); gradient_.WriteTo(output, _repeated_gradient_codec); registeredGradients_.WriteTo(output, _repeated_registeredGradients_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += function_.CalculateSize(_repeated_function_codec); num += gradient_.CalculateSize(_repeated_gradient_codec); num += registeredGradients_.CalculateSize(_repeated_registeredGradients_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(FunctionDefLibrary other) { if (other != null) { function_.Add((IEnumerable)other.function_); gradient_.Add((IEnumerable)other.gradient_); registeredGradients_.Add((IEnumerable)other.registeredGradients_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: function_.AddEntriesFrom(input, _repeated_function_codec); break; case 18u: gradient_.AddEntriesFrom(input, _repeated_gradient_codec); break; case 26u: registeredGradients_.AddEntriesFrom(input, _repeated_registeredGradients_codec); break; } } } } public sealed class FunctionDef : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class ArgAttrs : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new ArgAttrs())); private UnknownFieldSet _unknownFields; public const int AttrFieldNumber = 1; private static readonly Codec _map_attr_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, AttrValue.Parser), 10u); private readonly MapField attr_ = new MapField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => FunctionDef.Descriptor.NestedTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public MapField Attr => attr_; [DebuggerNonUserCode] public ArgAttrs() { } [DebuggerNonUserCode] public ArgAttrs(ArgAttrs other) : this() { attr_ = other.attr_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ArgAttrs Clone() { return new ArgAttrs(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ArgAttrs); } [DebuggerNonUserCode] public bool Equals(ArgAttrs other) { if (other == null) { return false; } if (other == this) { return true; } if (!Attr.Equals(other.Attr)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)Attr).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { attr_.WriteTo(output, _map_attr_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += attr_.CalculateSize(_map_attr_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ArgAttrs other) { if (other != null) { attr_.Add((IDictionary)other.attr_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { attr_.AddEntriesFrom(input, _map_attr_codec); } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new FunctionDef())); private UnknownFieldSet _unknownFields; public const int SignatureFieldNumber = 1; private OpDef signature_; public const int AttrFieldNumber = 5; private static readonly Codec _map_attr_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, AttrValue.Parser), 42u); private readonly MapField attr_ = new MapField(); public const int ArgAttrFieldNumber = 7; private static readonly Codec _map_argAttr_codec = new Codec(FieldCodec.ForUInt32(8u, 0u), FieldCodec.ForMessage(18u, Types.ArgAttrs.Parser), 58u); private readonly MapField argAttr_ = new MapField(); public const int ResourceArgUniqueIdFieldNumber = 8; private static readonly Codec _map_resourceArgUniqueId_codec = new Codec(FieldCodec.ForUInt32(8u, 0u), FieldCodec.ForUInt32(16u, 0u), 66u); private readonly MapField resourceArgUniqueId_ = new MapField(); public const int NodeDefFieldNumber = 3; private static readonly FieldCodec _repeated_nodeDef_codec = FieldCodec.ForMessage(26u, Tensorboard.NodeDef.Parser); private readonly RepeatedField nodeDef_ = new RepeatedField(); public const int RetFieldNumber = 4; private static readonly Codec _map_ret_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForString(18u, ""), 34u); private readonly MapField ret_ = new MapField(); public const int ControlRetFieldNumber = 6; private static readonly Codec _map_controlRet_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForString(18u, ""), 50u); private readonly MapField controlRet_ = new MapField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => FunctionReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public OpDef Signature { get { return signature_; } set { signature_ = value; } } [DebuggerNonUserCode] public MapField Attr => attr_; [DebuggerNonUserCode] public MapField ArgAttr => argAttr_; [DebuggerNonUserCode] public MapField ResourceArgUniqueId => resourceArgUniqueId_; [DebuggerNonUserCode] public RepeatedField NodeDef => nodeDef_; [DebuggerNonUserCode] public MapField Ret => ret_; [DebuggerNonUserCode] public MapField ControlRet => controlRet_; [DebuggerNonUserCode] public FunctionDef() { } [DebuggerNonUserCode] public FunctionDef(FunctionDef other) : this() { signature_ = ((other.signature_ != null) ? other.signature_.Clone() : null); attr_ = other.attr_.Clone(); argAttr_ = other.argAttr_.Clone(); resourceArgUniqueId_ = other.resourceArgUniqueId_.Clone(); nodeDef_ = other.nodeDef_.Clone(); ret_ = other.ret_.Clone(); controlRet_ = other.controlRet_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public FunctionDef Clone() { return new FunctionDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as FunctionDef); } [DebuggerNonUserCode] public bool Equals(FunctionDef other) { if (other == null) { return false; } if (other == this) { return true; } if (!object.Equals(Signature, other.Signature)) { return false; } if (!Attr.Equals(other.Attr)) { return false; } if (!ArgAttr.Equals(other.ArgAttr)) { return false; } if (!ResourceArgUniqueId.Equals(other.ResourceArgUniqueId)) { return false; } if (!nodeDef_.Equals(other.nodeDef_)) { return false; } if (!Ret.Equals(other.Ret)) { return false; } if (!ControlRet.Equals(other.ControlRet)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (signature_ != null) { num ^= Signature.GetHashCode(); } num ^= ((object)Attr).GetHashCode(); num ^= ((object)ArgAttr).GetHashCode(); num ^= ((object)ResourceArgUniqueId).GetHashCode(); num ^= ((object)nodeDef_).GetHashCode(); num ^= ((object)Ret).GetHashCode(); num ^= ((object)ControlRet).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (signature_ != null) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)Signature); } nodeDef_.WriteTo(output, _repeated_nodeDef_codec); ret_.WriteTo(output, _map_ret_codec); attr_.WriteTo(output, _map_attr_codec); controlRet_.WriteTo(output, _map_controlRet_codec); argAttr_.WriteTo(output, _map_argAttr_codec); resourceArgUniqueId_.WriteTo(output, _map_resourceArgUniqueId_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (signature_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Signature); } num += attr_.CalculateSize(_map_attr_codec); num += argAttr_.CalculateSize(_map_argAttr_codec); num += resourceArgUniqueId_.CalculateSize(_map_resourceArgUniqueId_codec); num += nodeDef_.CalculateSize(_repeated_nodeDef_codec); num += ret_.CalculateSize(_map_ret_codec); num += controlRet_.CalculateSize(_map_controlRet_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(FunctionDef other) { if (other == null) { return; } if (other.signature_ != null) { if (signature_ == null) { Signature = new OpDef(); } Signature.MergeFrom(other.Signature); } attr_.Add((IDictionary)other.attr_); argAttr_.Add((IDictionary)other.argAttr_); resourceArgUniqueId_.Add((IDictionary)other.resourceArgUniqueId_); nodeDef_.Add((IEnumerable)other.nodeDef_); ret_.Add((IDictionary)other.ret_); controlRet_.Add((IDictionary)other.controlRet_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: if (signature_ == null) { Signature = new OpDef(); } input.ReadMessage((IMessage)(object)Signature); break; case 26u: nodeDef_.AddEntriesFrom(input, _repeated_nodeDef_codec); break; case 34u: ret_.AddEntriesFrom(input, _map_ret_codec); break; case 42u: attr_.AddEntriesFrom(input, _map_attr_codec); break; case 50u: controlRet_.AddEntriesFrom(input, _map_controlRet_codec); break; case 58u: argAttr_.AddEntriesFrom(input, _map_argAttr_codec); break; case 66u: resourceArgUniqueId_.AddEntriesFrom(input, _map_resourceArgUniqueId_codec); break; } } } } public sealed class GradientDef : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new GradientDef())); private UnknownFieldSet _unknownFields; public const int FunctionNameFieldNumber = 1; private string functionName_ = ""; public const int GradientFuncFieldNumber = 2; private string gradientFunc_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => FunctionReflection.Descriptor.MessageTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string FunctionName { get { return functionName_; } set { functionName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string GradientFunc { get { return gradientFunc_; } set { gradientFunc_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public GradientDef() { } [DebuggerNonUserCode] public GradientDef(GradientDef other) : this() { functionName_ = other.functionName_; gradientFunc_ = other.gradientFunc_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public GradientDef Clone() { return new GradientDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as GradientDef); } [DebuggerNonUserCode] public bool Equals(GradientDef other) { if (other == null) { return false; } if (other == this) { return true; } if (FunctionName != other.FunctionName) { return false; } if (GradientFunc != other.GradientFunc) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (FunctionName.Length != 0) { num ^= FunctionName.GetHashCode(); } if (GradientFunc.Length != 0) { num ^= GradientFunc.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (FunctionName.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(FunctionName); } if (GradientFunc.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(GradientFunc); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (FunctionName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(FunctionName); } if (GradientFunc.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(GradientFunc); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(GradientDef other) { if (other != null) { if (other.FunctionName.Length != 0) { FunctionName = other.FunctionName; } if (other.GradientFunc.Length != 0) { GradientFunc = other.GradientFunc; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: FunctionName = input.ReadString(); break; case 18u: GradientFunc = input.ReadString(); break; } } } } public sealed class RegisteredGradient : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new RegisteredGradient())); private UnknownFieldSet _unknownFields; public const int GradientFuncFieldNumber = 1; private string gradientFunc_ = ""; public const int RegisteredOpTypeFieldNumber = 2; private string registeredOpType_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => FunctionReflection.Descriptor.MessageTypes[3]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string GradientFunc { get { return gradientFunc_; } set { gradientFunc_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string RegisteredOpType { get { return registeredOpType_; } set { registeredOpType_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public RegisteredGradient() { } [DebuggerNonUserCode] public RegisteredGradient(RegisteredGradient other) : this() { gradientFunc_ = other.gradientFunc_; registeredOpType_ = other.registeredOpType_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public RegisteredGradient Clone() { return new RegisteredGradient(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as RegisteredGradient); } [DebuggerNonUserCode] public bool Equals(RegisteredGradient other) { if (other == null) { return false; } if (other == this) { return true; } if (GradientFunc != other.GradientFunc) { return false; } if (RegisteredOpType != other.RegisteredOpType) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (GradientFunc.Length != 0) { num ^= GradientFunc.GetHashCode(); } if (RegisteredOpType.Length != 0) { num ^= RegisteredOpType.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (GradientFunc.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(GradientFunc); } if (RegisteredOpType.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(RegisteredOpType); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (GradientFunc.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(GradientFunc); } if (RegisteredOpType.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(RegisteredOpType); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(RegisteredGradient other) { if (other != null) { if (other.GradientFunc.Length != 0) { GradientFunc = other.GradientFunc; } if (other.RegisteredOpType.Length != 0) { RegisteredOpType = other.RegisteredOpType; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: GradientFunc = input.ReadString(); break; case 18u: RegisteredOpType = input.ReadString(); break; } } } } public static class GraphReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static GraphReflection() { //IL_00cc: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Expected O, but got Unknown //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CiR0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vZ3JhcGgucHJvdG8SC3RlbnNv" + "cmJvYXJkGid0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vZnVuY3Rpb24ucHJv" + "dG8aJ3RlbnNvcmJvYXJkL2NvbXBhdC9wcm90by9ub2RlX2RlZi5wcm90bxon" + "dGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL3ZlcnNpb25zLnByb3RvIqABCghH" + "cmFwaERlZhIiCgRub2RlGAEgAygLMhQudGVuc29yYm9hcmQuTm9kZURlZhIp" + "Cgh2ZXJzaW9ucxgEIAEoCzIXLnRlbnNvcmJvYXJkLlZlcnNpb25EZWYSEwoH" + "dmVyc2lvbhgDIAEoBUICGAESMAoHbGlicmFyeRgCIAEoCzIfLnRlbnNvcmJv" + "YXJkLkZ1bmN0aW9uRGVmTGlicmFyeUJ6ChhvcmcudGVuc29yZmxvdy5mcmFt" + "ZXdvcmtCC0dyYXBoUHJvdG9zUAFaTGdpdGh1Yi5jb20vdGVuc29yZmxvdy90" + "ZW5zb3JmbG93L3RlbnNvcmZsb3cvZ28vY29yZS9mcmFtZXdvcmsvZ3JhcGhf" + "Z29fcHJvdG/4AQFiBnByb3RvMw=="), (FileDescriptor[])(object)new FileDescriptor[3] { FunctionReflection.Descriptor, NodeDefReflection.Descriptor, VersionsReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(GraphDef), (MessageParser)(object)GraphDef.Parser, new string[4] { "Node", "Versions", "Version", "Library" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class GraphDef : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new GraphDef())); private UnknownFieldSet _unknownFields; public const int NodeFieldNumber = 1; private static readonly FieldCodec _repeated_node_codec = FieldCodec.ForMessage(10u, NodeDef.Parser); private readonly RepeatedField node_ = new RepeatedField(); public const int VersionsFieldNumber = 4; private VersionDef versions_; public const int VersionFieldNumber = 3; private int version_; public const int LibraryFieldNumber = 2; private FunctionDefLibrary library_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => GraphReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Node => node_; [DebuggerNonUserCode] public VersionDef Versions { get { return versions_; } set { versions_ = value; } } [Obsolete] [DebuggerNonUserCode] public int Version { get { return version_; } set { version_ = value; } } [DebuggerNonUserCode] public FunctionDefLibrary Library { get { return library_; } set { library_ = value; } } [DebuggerNonUserCode] public GraphDef() { } [DebuggerNonUserCode] public GraphDef(GraphDef other) : this() { node_ = other.node_.Clone(); versions_ = ((other.versions_ != null) ? other.versions_.Clone() : null); version_ = other.version_; library_ = ((other.library_ != null) ? other.library_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public GraphDef Clone() { return new GraphDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as GraphDef); } [DebuggerNonUserCode] public bool Equals(GraphDef other) { if (other == null) { return false; } if (other == this) { return true; } if (!node_.Equals(other.node_)) { return false; } if (!object.Equals(Versions, other.Versions)) { return false; } if (Version != other.Version) { return false; } if (!object.Equals(Library, other.Library)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)node_).GetHashCode(); if (versions_ != null) { num ^= Versions.GetHashCode(); } if (Version != 0) { num ^= Version.GetHashCode(); } if (library_ != null) { num ^= Library.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { node_.WriteTo(output, _repeated_node_codec); if (library_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)Library); } if (Version != 0) { output.WriteRawTag((byte)24); output.WriteInt32(Version); } if (versions_ != null) { output.WriteRawTag((byte)34); output.WriteMessage((IMessage)(object)Versions); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += node_.CalculateSize(_repeated_node_codec); if (versions_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Versions); } if (Version != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Version); } if (library_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Library); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(GraphDef other) { if (other == null) { return; } node_.Add((IEnumerable)other.node_); if (other.versions_ != null) { if (versions_ == null) { Versions = new VersionDef(); } Versions.MergeFrom(other.Versions); } if (other.Version != 0) { Version = other.Version; } if (other.library_ != null) { if (library_ == null) { Library = new FunctionDefLibrary(); } Library.MergeFrom(other.Library); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: node_.AddEntriesFrom(input, _repeated_node_codec); break; case 18u: if (library_ == null) { Library = new FunctionDefLibrary(); } input.ReadMessage((IMessage)(object)Library); break; case 24u: Version = input.ReadInt32(); break; case 34u: if (versions_ == null) { Versions = new VersionDef(); } input.ReadMessage((IMessage)(object)Versions); break; } } } } public static class MetaGraphReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static MetaGraphReflection() { //IL_0345: Unknown result type (might be due to invalid IL or missing references) //IL_034b: Expected O, but got Unknown //IL_034b: Unknown result type (might be due to invalid IL or missing references) //IL_0351: Expected O, but got Unknown //IL_03c9: Unknown result type (might be due to invalid IL or missing references) //IL_03cf: Expected O, but got Unknown //IL_03f2: Unknown result type (might be due to invalid IL or missing references) //IL_03f8: Expected O, but got Unknown //IL_041b: Unknown result type (might be due to invalid IL or missing references) //IL_0421: Expected O, but got Unknown //IL_0444: Unknown result type (might be due to invalid IL or missing references) //IL_044a: Expected O, but got Unknown //IL_046d: Unknown result type (might be due to invalid IL or missing references) //IL_0473: Expected O, but got Unknown //IL_0473: Unknown result type (might be due to invalid IL or missing references) //IL_0479: Expected O, but got Unknown //IL_0501: Unknown result type (might be due to invalid IL or missing references) //IL_0507: Expected O, but got Unknown //IL_0532: Unknown result type (might be due to invalid IL or missing references) //IL_0538: Expected O, but got Unknown //IL_0538: Unknown result type (might be due to invalid IL or missing references) //IL_053e: Expected O, but got Unknown //IL_0576: Unknown result type (might be due to invalid IL or missing references) //IL_057c: Expected O, but got Unknown //IL_05a7: Unknown result type (might be due to invalid IL or missing references) //IL_05ad: Expected O, but got Unknown //IL_05ad: Unknown result type (might be due to invalid IL or missing references) //IL_05b7: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("Cil0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vbWV0YV9ncmFwaC5wcm90bxIL" + "dGVuc29yYm9hcmQaGWdvb2dsZS9wcm90b2J1Zi9hbnkucHJvdG8aJHRlbnNv" + "cmJvYXJkL2NvbXBhdC9wcm90by9ncmFwaC5wcm90bxoldGVuc29yYm9hcmQv" + "Y29tcGF0L3Byb3RvL29wX2RlZi5wcm90bxordGVuc29yYm9hcmQvY29tcGF0" + "L3Byb3RvL3RlbnNvcl9zaGFwZS5wcm90bxokdGVuc29yYm9hcmQvY29tcGF0" + "L3Byb3RvL3R5cGVzLnByb3RvGjF0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8v" + "c2F2ZWRfb2JqZWN0X2dyYXBoLnByb3RvGiR0ZW5zb3Jib2FyZC9jb21wYXQv" + "cHJvdG8vc2F2ZXIucHJvdG8aJXRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by9z" + "dHJ1Y3QucHJvdG8iswcKDE1ldGFHcmFwaERlZhI8Cg1tZXRhX2luZm9fZGVm" + "GAEgASgLMiUudGVuc29yYm9hcmQuTWV0YUdyYXBoRGVmLk1ldGFJbmZvRGVm" + "EigKCWdyYXBoX2RlZhgCIAEoCzIVLnRlbnNvcmJvYXJkLkdyYXBoRGVmEigK" + "CXNhdmVyX2RlZhgDIAEoCzIVLnRlbnNvcmJvYXJkLlNhdmVyRGVmEkQKDmNv" + "bGxlY3Rpb25fZGVmGAQgAygLMiwudGVuc29yYm9hcmQuTWV0YUdyYXBoRGVm" + "LkNvbGxlY3Rpb25EZWZFbnRyeRJCCg1zaWduYXR1cmVfZGVmGAUgAygLMisu" + "dGVuc29yYm9hcmQuTWV0YUdyYXBoRGVmLlNpZ25hdHVyZURlZkVudHJ5EjEK" + "DmFzc2V0X2ZpbGVfZGVmGAYgAygLMhkudGVuc29yYm9hcmQuQXNzZXRGaWxl" + "RGVmEjcKEG9iamVjdF9ncmFwaF9kZWYYByABKAsyHS50ZW5zb3Jib2FyZC5T" + "YXZlZE9iamVjdEdyYXBoGvgCCgtNZXRhSW5mb0RlZhIaChJtZXRhX2dyYXBo" + "X3ZlcnNpb24YASABKAkSLQoQc3RyaXBwZWRfb3BfbGlzdBgCIAEoCzITLnRl" + "bnNvcmJvYXJkLk9wTGlzdBImCghhbnlfaW5mbxgDIAEoCzIULmdvb2dsZS5w" + "cm90b2J1Zi5BbnkSDAoEdGFncxgEIAMoCRIaChJ0ZW5zb3JmbG93X3ZlcnNp" + "b24YBSABKAkSHgoWdGVuc29yZmxvd19naXRfdmVyc2lvbhgGIAEoCRIeChZz" + "dHJpcHBlZF9kZWZhdWx0X2F0dHJzGAcgASgIElQKEGZ1bmN0aW9uX2FsaWFz" + "ZXMYCCADKAsyOi50ZW5zb3Jib2FyZC5NZXRhR3JhcGhEZWYuTWV0YUluZm9E" + "ZWYuRnVuY3Rpb25BbGlhc2VzRW50cnkaNgoURnVuY3Rpb25BbGlhc2VzRW50" + "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARpQChJDb2xsZWN0" + "aW9uRGVmRW50cnkSCwoDa2V5GAEgASgJEikKBXZhbHVlGAIgASgLMhoudGVu" + "c29yYm9hcmQuQ29sbGVjdGlvbkRlZjoCOAEaTgoRU2lnbmF0dXJlRGVmRW50" + "cnkSCwoDa2V5GAEgASgJEigKBXZhbHVlGAIgASgLMhkudGVuc29yYm9hcmQu" + "U2lnbmF0dXJlRGVmOgI4ASLkAwoNQ29sbGVjdGlvbkRlZhI4Cglub2RlX2xp" + "c3QYASABKAsyIy50ZW5zb3Jib2FyZC5Db2xsZWN0aW9uRGVmLk5vZGVMaXN0" + "SAASOgoKYnl0ZXNfbGlzdBgCIAEoCzIkLnRlbnNvcmJvYXJkLkNvbGxlY3Rp" + "b25EZWYuQnl0ZXNMaXN0SAASOgoKaW50NjRfbGlzdBgDIAEoCzIkLnRlbnNv" + "cmJvYXJkLkNvbGxlY3Rpb25EZWYuSW50NjRMaXN0SAASOgoKZmxvYXRfbGlz" + "dBgEIAEoCzIkLnRlbnNvcmJvYXJkLkNvbGxlY3Rpb25EZWYuRmxvYXRMaXN0" + "SAASNgoIYW55X2xpc3QYBSABKAsyIi50ZW5zb3Jib2FyZC5Db2xsZWN0aW9u" + "RGVmLkFueUxpc3RIABoZCghOb2RlTGlzdBINCgV2YWx1ZRgBIAMoCRoaCglC" + "eXRlc0xpc3QSDQoFdmFsdWUYASADKAwaHgoJSW50NjRMaXN0EhEKBXZhbHVl" + "GAEgAygDQgIQARoeCglGbG9hdExpc3QSEQoFdmFsdWUYASADKAJCAhABGi4K" + "B0FueUxpc3QSIwoFdmFsdWUYASADKAsyFC5nb29nbGUucHJvdG9idWYuQW55" + "QgYKBGtpbmQi1wMKClRlbnNvckluZm8SDgoEbmFtZRgBIAEoCUgAEjcKCmNv" + "b19zcGFyc2UYBCABKAsyIS50ZW5zb3Jib2FyZC5UZW5zb3JJbmZvLkNvb1Nw" + "YXJzZUgAEkMKEGNvbXBvc2l0ZV90ZW5zb3IYBSABKAsyJy50ZW5zb3Jib2Fy" + "ZC5UZW5zb3JJbmZvLkNvbXBvc2l0ZVRlbnNvckgAEiQKBWR0eXBlGAIgASgO" + "MhUudGVuc29yYm9hcmQuRGF0YVR5cGUSMwoMdGVuc29yX3NoYXBlGAMgASgL" + "Mh0udGVuc29yYm9hcmQuVGVuc29yU2hhcGVQcm90bxplCglDb29TcGFyc2US" + "GgoSdmFsdWVzX3RlbnNvcl9uYW1lGAEgASgJEhsKE2luZGljZXNfdGVuc29y" + "X25hbWUYAiABKAkSHwoXZGVuc2Vfc2hhcGVfdGVuc29yX25hbWUYAyABKAka" + "bQoPQ29tcG9zaXRlVGVuc29yEi0KCXR5cGVfc3BlYxgBIAEoCzIaLnRlbnNv" + "cmJvYXJkLlR5cGVTcGVjUHJvdG8SKwoKY29tcG9uZW50cxgCIAMoCzIXLnRl" + "bnNvcmJvYXJkLlRlbnNvckluZm9CCgoIZW5jb2RpbmcipAIKDFNpZ25hdHVy" + "ZURlZhI1CgZpbnB1dHMYASADKAsyJS50ZW5zb3Jib2FyZC5TaWduYXR1cmVE" + "ZWYuSW5wdXRzRW50cnkSNwoHb3V0cHV0cxgCIAMoCzImLnRlbnNvcmJvYXJk" + "LlNpZ25hdHVyZURlZi5PdXRwdXRzRW50cnkSEwoLbWV0aG9kX25hbWUYAyAB" + "KAkaRgoLSW5wdXRzRW50cnkSCwoDa2V5GAEgASgJEiYKBXZhbHVlGAIgASgL" + "MhcudGVuc29yYm9hcmQuVGVuc29ySW5mbzoCOAEaRwoMT3V0cHV0c0VudHJ5" + "EgsKA2tleRgBIAEoCRImCgV2YWx1ZRgCIAEoCzIXLnRlbnNvcmJvYXJkLlRl" + "bnNvckluZm86AjgBIk4KDEFzc2V0RmlsZURlZhIsCgt0ZW5zb3JfaW5mbxgB" + "IAEoCzIXLnRlbnNvcmJvYXJkLlRlbnNvckluZm8SEAoIZmlsZW5hbWUYAiAB" + "KAlChwEKGG9yZy50ZW5zb3JmbG93LmZyYW1ld29ya0IPTWV0YUdyYXBoUHJv" + "dG9zUAFaVWdpdGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3JmbG93L3RlbnNv" + "cmZsb3cvZ28vY29yZS9wcm90b2J1Zi9mb3JfY29yZV9wcm90b3NfZ29fcHJv" + "dG/4AQFiBnByb3RvMw=="), (FileDescriptor[])(object)new FileDescriptor[8] { AnyReflection.Descriptor, GraphReflection.Descriptor, OpDefReflection.Descriptor, TensorShapeReflection.Descriptor, TypesReflection.Descriptor, SavedObjectGraphReflection.Descriptor, SaverReflection.Descriptor, StructReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[5] { new GeneratedClrTypeInfo(typeof(MetaGraphDef), (MessageParser)(object)MetaGraphDef.Parser, new string[7] { "MetaInfoDef", "GraphDef", "SaverDef", "CollectionDef", "SignatureDef", "AssetFileDef", "ObjectGraphDef" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[3] { new GeneratedClrTypeInfo(typeof(MetaGraphDef.Types.MetaInfoDef), (MessageParser)(object)MetaGraphDef.Types.MetaInfoDef.Parser, new string[8] { "MetaGraphVersion", "StrippedOpList", "AnyInfo", "Tags", "TensorflowVersion", "TensorflowGitVersion", "StrippedDefaultAttrs", "FunctionAliases" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1]), default(GeneratedClrTypeInfo), default(GeneratedClrTypeInfo) }), new GeneratedClrTypeInfo(typeof(CollectionDef), (MessageParser)(object)CollectionDef.Parser, new string[5] { "NodeList", "BytesList", "Int64List", "FloatList", "AnyList" }, new string[1] { "Kind" }, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[5] { new GeneratedClrTypeInfo(typeof(CollectionDef.Types.NodeList), (MessageParser)(object)CollectionDef.Types.NodeList.Parser, new string[1] { "Value" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(CollectionDef.Types.BytesList), (MessageParser)(object)CollectionDef.Types.BytesList.Parser, new string[1] { "Value" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(CollectionDef.Types.Int64List), (MessageParser)(object)CollectionDef.Types.Int64List.Parser, new string[1] { "Value" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(CollectionDef.Types.FloatList), (MessageParser)(object)CollectionDef.Types.FloatList.Parser, new string[1] { "Value" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(CollectionDef.Types.AnyList), (MessageParser)(object)CollectionDef.Types.AnyList.Parser, new string[1] { "Value" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }), new GeneratedClrTypeInfo(typeof(TensorInfo), (MessageParser)(object)TensorInfo.Parser, new string[5] { "Name", "CooSparse", "CompositeTensor", "Dtype", "TensorShape" }, new string[1] { "Encoding" }, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2] { new GeneratedClrTypeInfo(typeof(TensorInfo.Types.CooSparse), (MessageParser)(object)TensorInfo.Types.CooSparse.Parser, new string[3] { "ValuesTensorName", "IndicesTensorName", "DenseShapeTensorName" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(TensorInfo.Types.CompositeTensor), (MessageParser)(object)TensorInfo.Types.CompositeTensor.Parser, new string[2] { "TypeSpec", "Components" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }), new GeneratedClrTypeInfo(typeof(SignatureDef), (MessageParser)(object)SignatureDef.Parser, new string[3] { "Inputs", "Outputs", "MethodName" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2]), new GeneratedClrTypeInfo(typeof(AssetFileDef), (MessageParser)(object)AssetFileDef.Parser, new string[2] { "TensorInfo", "Filename" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class MetaGraphDef : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class MetaInfoDef : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new MetaInfoDef())); private UnknownFieldSet _unknownFields; public const int MetaGraphVersionFieldNumber = 1; private string metaGraphVersion_ = ""; public const int StrippedOpListFieldNumber = 2; private OpList strippedOpList_; public const int AnyInfoFieldNumber = 3; private Any anyInfo_; public const int TagsFieldNumber = 4; private static readonly FieldCodec _repeated_tags_codec = FieldCodec.ForString(34u); private readonly RepeatedField tags_ = new RepeatedField(); public const int TensorflowVersionFieldNumber = 5; private string tensorflowVersion_ = ""; public const int TensorflowGitVersionFieldNumber = 6; private string tensorflowGitVersion_ = ""; public const int StrippedDefaultAttrsFieldNumber = 7; private bool strippedDefaultAttrs_; public const int FunctionAliasesFieldNumber = 8; private static readonly Codec _map_functionAliases_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForString(18u, ""), 66u); private readonly MapField functionAliases_ = new MapField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => MetaGraphDef.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string MetaGraphVersion { get { return metaGraphVersion_; } set { metaGraphVersion_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public OpList StrippedOpList { get { return strippedOpList_; } set { strippedOpList_ = value; } } [DebuggerNonUserCode] public Any AnyInfo { get { return anyInfo_; } set { anyInfo_ = value; } } [DebuggerNonUserCode] public RepeatedField Tags => tags_; [DebuggerNonUserCode] public string TensorflowVersion { get { return tensorflowVersion_; } set { tensorflowVersion_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string TensorflowGitVersion { get { return tensorflowGitVersion_; } set { tensorflowGitVersion_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public bool StrippedDefaultAttrs { get { return strippedDefaultAttrs_; } set { strippedDefaultAttrs_ = value; } } [DebuggerNonUserCode] public MapField FunctionAliases => functionAliases_; [DebuggerNonUserCode] public MetaInfoDef() { } [DebuggerNonUserCode] public MetaInfoDef(MetaInfoDef other) : this() { metaGraphVersion_ = other.metaGraphVersion_; strippedOpList_ = ((other.strippedOpList_ != null) ? other.strippedOpList_.Clone() : null); anyInfo_ = ((other.anyInfo_ != null) ? other.anyInfo_.Clone() : null); tags_ = other.tags_.Clone(); tensorflowVersion_ = other.tensorflowVersion_; tensorflowGitVersion_ = other.tensorflowGitVersion_; strippedDefaultAttrs_ = other.strippedDefaultAttrs_; functionAliases_ = other.functionAliases_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public MetaInfoDef Clone() { return new MetaInfoDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as MetaInfoDef); } [DebuggerNonUserCode] public bool Equals(MetaInfoDef other) { if (other == null) { return false; } if (other == this) { return true; } if (MetaGraphVersion != other.MetaGraphVersion) { return false; } if (!object.Equals(StrippedOpList, other.StrippedOpList)) { return false; } if (!object.Equals(AnyInfo, other.AnyInfo)) { return false; } if (!tags_.Equals(other.tags_)) { return false; } if (TensorflowVersion != other.TensorflowVersion) { return false; } if (TensorflowGitVersion != other.TensorflowGitVersion) { return false; } if (StrippedDefaultAttrs != other.StrippedDefaultAttrs) { return false; } if (!FunctionAliases.Equals(other.FunctionAliases)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (MetaGraphVersion.Length != 0) { num ^= MetaGraphVersion.GetHashCode(); } if (strippedOpList_ != null) { num ^= StrippedOpList.GetHashCode(); } if (anyInfo_ != null) { num ^= ((object)AnyInfo).GetHashCode(); } num ^= ((object)tags_).GetHashCode(); if (TensorflowVersion.Length != 0) { num ^= TensorflowVersion.GetHashCode(); } if (TensorflowGitVersion.Length != 0) { num ^= TensorflowGitVersion.GetHashCode(); } if (StrippedDefaultAttrs) { num ^= StrippedDefaultAttrs.GetHashCode(); } num ^= ((object)FunctionAliases).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (MetaGraphVersion.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(MetaGraphVersion); } if (strippedOpList_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)StrippedOpList); } if (anyInfo_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)AnyInfo); } tags_.WriteTo(output, _repeated_tags_codec); if (TensorflowVersion.Length != 0) { output.WriteRawTag((byte)42); output.WriteString(TensorflowVersion); } if (TensorflowGitVersion.Length != 0) { output.WriteRawTag((byte)50); output.WriteString(TensorflowGitVersion); } if (StrippedDefaultAttrs) { output.WriteRawTag((byte)56); output.WriteBool(StrippedDefaultAttrs); } functionAliases_.WriteTo(output, _map_functionAliases_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (MetaGraphVersion.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(MetaGraphVersion); } if (strippedOpList_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)StrippedOpList); } if (anyInfo_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)AnyInfo); } num += tags_.CalculateSize(_repeated_tags_codec); if (TensorflowVersion.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(TensorflowVersion); } if (TensorflowGitVersion.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(TensorflowGitVersion); } if (StrippedDefaultAttrs) { num += 2; } num += functionAliases_.CalculateSize(_map_functionAliases_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(MetaInfoDef other) { //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown if (other == null) { return; } if (other.MetaGraphVersion.Length != 0) { MetaGraphVersion = other.MetaGraphVersion; } if (other.strippedOpList_ != null) { if (strippedOpList_ == null) { StrippedOpList = new OpList(); } StrippedOpList.MergeFrom(other.StrippedOpList); } if (other.anyInfo_ != null) { if (anyInfo_ == null) { AnyInfo = new Any(); } AnyInfo.MergeFrom(other.AnyInfo); } tags_.Add((IEnumerable)other.tags_); if (other.TensorflowVersion.Length != 0) { TensorflowVersion = other.TensorflowVersion; } if (other.TensorflowGitVersion.Length != 0) { TensorflowGitVersion = other.TensorflowGitVersion; } if (other.StrippedDefaultAttrs) { StrippedDefaultAttrs = other.StrippedDefaultAttrs; } functionAliases_.Add((IDictionary)other.functionAliases_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { //IL_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Expected O, but got Unknown uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: MetaGraphVersion = input.ReadString(); break; case 18u: if (strippedOpList_ == null) { StrippedOpList = new OpList(); } input.ReadMessage((IMessage)(object)StrippedOpList); break; case 26u: if (anyInfo_ == null) { AnyInfo = new Any(); } input.ReadMessage((IMessage)(object)AnyInfo); break; case 34u: tags_.AddEntriesFrom(input, _repeated_tags_codec); break; case 42u: TensorflowVersion = input.ReadString(); break; case 50u: TensorflowGitVersion = input.ReadString(); break; case 56u: StrippedDefaultAttrs = input.ReadBool(); break; case 66u: functionAliases_.AddEntriesFrom(input, _map_functionAliases_codec); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new MetaGraphDef())); private UnknownFieldSet _unknownFields; public const int MetaInfoDefFieldNumber = 1; private Types.MetaInfoDef metaInfoDef_; public const int GraphDefFieldNumber = 2; private GraphDef graphDef_; public const int SaverDefFieldNumber = 3; private SaverDef saverDef_; public const int CollectionDefFieldNumber = 4; private static readonly Codec _map_collectionDef_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, Tensorboard.CollectionDef.Parser), 34u); private readonly MapField collectionDef_ = new MapField(); public const int SignatureDefFieldNumber = 5; private static readonly Codec _map_signatureDef_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, Tensorboard.SignatureDef.Parser), 42u); private readonly MapField signatureDef_ = new MapField(); public const int AssetFileDefFieldNumber = 6; private static readonly FieldCodec _repeated_assetFileDef_codec = FieldCodec.ForMessage(50u, Tensorboard.AssetFileDef.Parser); private readonly RepeatedField assetFileDef_ = new RepeatedField(); public const int ObjectGraphDefFieldNumber = 7; private SavedObjectGraph objectGraphDef_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => MetaGraphReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public Types.MetaInfoDef MetaInfoDef { get { return metaInfoDef_; } set { metaInfoDef_ = value; } } [DebuggerNonUserCode] public GraphDef GraphDef { get { return graphDef_; } set { graphDef_ = value; } } [DebuggerNonUserCode] public SaverDef SaverDef { get { return saverDef_; } set { saverDef_ = value; } } [DebuggerNonUserCode] public MapField CollectionDef => collectionDef_; [DebuggerNonUserCode] public MapField SignatureDef => signatureDef_; [DebuggerNonUserCode] public RepeatedField AssetFileDef => assetFileDef_; [DebuggerNonUserCode] public SavedObjectGraph ObjectGraphDef { get { return objectGraphDef_; } set { objectGraphDef_ = value; } } [DebuggerNonUserCode] public MetaGraphDef() { } [DebuggerNonUserCode] public MetaGraphDef(MetaGraphDef other) : this() { metaInfoDef_ = ((other.metaInfoDef_ != null) ? other.metaInfoDef_.Clone() : null); graphDef_ = ((other.graphDef_ != null) ? other.graphDef_.Clone() : null); saverDef_ = ((other.saverDef_ != null) ? other.saverDef_.Clone() : null); collectionDef_ = other.collectionDef_.Clone(); signatureDef_ = other.signatureDef_.Clone(); assetFileDef_ = other.assetFileDef_.Clone(); objectGraphDef_ = ((other.objectGraphDef_ != null) ? other.objectGraphDef_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public MetaGraphDef Clone() { return new MetaGraphDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as MetaGraphDef); } [DebuggerNonUserCode] public bool Equals(MetaGraphDef other) { if (other == null) { return false; } if (other == this) { return true; } if (!object.Equals(MetaInfoDef, other.MetaInfoDef)) { return false; } if (!object.Equals(GraphDef, other.GraphDef)) { return false; } if (!object.Equals(SaverDef, other.SaverDef)) { return false; } if (!CollectionDef.Equals(other.CollectionDef)) { return false; } if (!SignatureDef.Equals(other.SignatureDef)) { return false; } if (!assetFileDef_.Equals(other.assetFileDef_)) { return false; } if (!object.Equals(ObjectGraphDef, other.ObjectGraphDef)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (metaInfoDef_ != null) { num ^= MetaInfoDef.GetHashCode(); } if (graphDef_ != null) { num ^= GraphDef.GetHashCode(); } if (saverDef_ != null) { num ^= SaverDef.GetHashCode(); } num ^= ((object)CollectionDef).GetHashCode(); num ^= ((object)SignatureDef).GetHashCode(); num ^= ((object)assetFileDef_).GetHashCode(); if (objectGraphDef_ != null) { num ^= ObjectGraphDef.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (metaInfoDef_ != null) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)MetaInfoDef); } if (graphDef_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)GraphDef); } if (saverDef_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)SaverDef); } collectionDef_.WriteTo(output, _map_collectionDef_codec); signatureDef_.WriteTo(output, _map_signatureDef_codec); assetFileDef_.WriteTo(output, _repeated_assetFileDef_codec); if (objectGraphDef_ != null) { output.WriteRawTag((byte)58); output.WriteMessage((IMessage)(object)ObjectGraphDef); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (metaInfoDef_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)MetaInfoDef); } if (graphDef_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)GraphDef); } if (saverDef_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)SaverDef); } num += collectionDef_.CalculateSize(_map_collectionDef_codec); num += signatureDef_.CalculateSize(_map_signatureDef_codec); num += assetFileDef_.CalculateSize(_repeated_assetFileDef_codec); if (objectGraphDef_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)ObjectGraphDef); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(MetaGraphDef other) { if (other == null) { return; } if (other.metaInfoDef_ != null) { if (metaInfoDef_ == null) { MetaInfoDef = new Types.MetaInfoDef(); } MetaInfoDef.MergeFrom(other.MetaInfoDef); } if (other.graphDef_ != null) { if (graphDef_ == null) { GraphDef = new GraphDef(); } GraphDef.MergeFrom(other.GraphDef); } if (other.saverDef_ != null) { if (saverDef_ == null) { SaverDef = new SaverDef(); } SaverDef.MergeFrom(other.SaverDef); } collectionDef_.Add((IDictionary)other.collectionDef_); signatureDef_.Add((IDictionary)other.signatureDef_); assetFileDef_.Add((IEnumerable)other.assetFileDef_); if (other.objectGraphDef_ != null) { if (objectGraphDef_ == null) { ObjectGraphDef = new SavedObjectGraph(); } ObjectGraphDef.MergeFrom(other.ObjectGraphDef); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: if (metaInfoDef_ == null) { MetaInfoDef = new Types.MetaInfoDef(); } input.ReadMessage((IMessage)(object)MetaInfoDef); break; case 18u: if (graphDef_ == null) { GraphDef = new GraphDef(); } input.ReadMessage((IMessage)(object)GraphDef); break; case 26u: if (saverDef_ == null) { SaverDef = new SaverDef(); } input.ReadMessage((IMessage)(object)SaverDef); break; case 34u: collectionDef_.AddEntriesFrom(input, _map_collectionDef_codec); break; case 42u: signatureDef_.AddEntriesFrom(input, _map_signatureDef_codec); break; case 50u: assetFileDef_.AddEntriesFrom(input, _repeated_assetFileDef_codec); break; case 58u: if (objectGraphDef_ == null) { ObjectGraphDef = new SavedObjectGraph(); } input.ReadMessage((IMessage)(object)ObjectGraphDef); break; } } } } public sealed class CollectionDef : IMessage, IMessage, IEquatable, IDeepCloneable { public enum KindOneofCase { None, NodeList, BytesList, Int64List, FloatList, AnyList } [DebuggerNonUserCode] public static class Types { public sealed class NodeList : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new NodeList())); private UnknownFieldSet _unknownFields; public const int ValueFieldNumber = 1; private static readonly FieldCodec _repeated_value_codec = FieldCodec.ForString(10u); private readonly RepeatedField value_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CollectionDef.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Value => value_; [DebuggerNonUserCode] public NodeList() { } [DebuggerNonUserCode] public NodeList(NodeList other) : this() { value_ = other.value_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public NodeList Clone() { return new NodeList(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as NodeList); } [DebuggerNonUserCode] public bool Equals(NodeList other) { if (other == null) { return false; } if (other == this) { return true; } if (!value_.Equals(other.value_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)value_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { value_.WriteTo(output, _repeated_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += value_.CalculateSize(_repeated_value_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(NodeList other) { if (other != null) { value_.Add((IEnumerable)other.value_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { value_.AddEntriesFrom(input, _repeated_value_codec); } } } } public sealed class BytesList : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new BytesList())); private UnknownFieldSet _unknownFields; public const int ValueFieldNumber = 1; private static readonly FieldCodec _repeated_value_codec = FieldCodec.ForBytes(10u); private readonly RepeatedField value_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CollectionDef.Descriptor.NestedTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Value => value_; [DebuggerNonUserCode] public BytesList() { } [DebuggerNonUserCode] public BytesList(BytesList other) : this() { value_ = other.value_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public BytesList Clone() { return new BytesList(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as BytesList); } [DebuggerNonUserCode] public bool Equals(BytesList other) { if (other == null) { return false; } if (other == this) { return true; } if (!value_.Equals(other.value_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)value_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { value_.WriteTo(output, _repeated_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += value_.CalculateSize(_repeated_value_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(BytesList other) { if (other != null) { value_.Add((IEnumerable)other.value_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { value_.AddEntriesFrom(input, _repeated_value_codec); } } } } public sealed class Int64List : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new Int64List())); private UnknownFieldSet _unknownFields; public const int ValueFieldNumber = 1; private static readonly FieldCodec _repeated_value_codec = FieldCodec.ForInt64(10u); private readonly RepeatedField value_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CollectionDef.Descriptor.NestedTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Value => value_; [DebuggerNonUserCode] public Int64List() { } [DebuggerNonUserCode] public Int64List(Int64List other) : this() { value_ = other.value_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public Int64List Clone() { return new Int64List(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as Int64List); } [DebuggerNonUserCode] public bool Equals(Int64List other) { if (other == null) { return false; } if (other == this) { return true; } if (!value_.Equals(other.value_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)value_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { value_.WriteTo(output, _repeated_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += value_.CalculateSize(_repeated_value_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(Int64List other) { if (other != null) { value_.Add((IEnumerable)other.value_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 8 && num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { value_.AddEntriesFrom(input, _repeated_value_codec); } } } } public sealed class FloatList : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new FloatList())); private UnknownFieldSet _unknownFields; public const int ValueFieldNumber = 1; private static readonly FieldCodec _repeated_value_codec = FieldCodec.ForFloat(10u); private readonly RepeatedField value_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CollectionDef.Descriptor.NestedTypes[3]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Value => value_; [DebuggerNonUserCode] public FloatList() { } [DebuggerNonUserCode] public FloatList(FloatList other) : this() { value_ = other.value_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public FloatList Clone() { return new FloatList(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as FloatList); } [DebuggerNonUserCode] public bool Equals(FloatList other) { if (other == null) { return false; } if (other == this) { return true; } if (!value_.Equals(other.value_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)value_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { value_.WriteTo(output, _repeated_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += value_.CalculateSize(_repeated_value_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(FloatList other) { if (other != null) { value_.Add((IEnumerable)other.value_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10 && num != 13) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { value_.AddEntriesFrom(input, _repeated_value_codec); } } } } public sealed class AnyList : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new AnyList())); private UnknownFieldSet _unknownFields; public const int ValueFieldNumber = 1; private static readonly FieldCodec _repeated_value_codec = FieldCodec.ForMessage(10u, Any.Parser); private readonly RepeatedField value_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => CollectionDef.Descriptor.NestedTypes[4]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Value => value_; [DebuggerNonUserCode] public AnyList() { } [DebuggerNonUserCode] public AnyList(AnyList other) : this() { value_ = other.value_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public AnyList Clone() { return new AnyList(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as AnyList); } [DebuggerNonUserCode] public bool Equals(AnyList other) { if (other == null) { return false; } if (other == this) { return true; } if (!value_.Equals(other.value_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)value_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { value_.WriteTo(output, _repeated_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += value_.CalculateSize(_repeated_value_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(AnyList other) { if (other != null) { value_.Add((IEnumerable)other.value_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { value_.AddEntriesFrom(input, _repeated_value_codec); } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new CollectionDef())); private UnknownFieldSet _unknownFields; public const int NodeListFieldNumber = 1; public const int BytesListFieldNumber = 2; public const int Int64ListFieldNumber = 3; public const int FloatListFieldNumber = 4; public const int AnyListFieldNumber = 5; private object kind_; private KindOneofCase kindCase_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => MetaGraphReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public Types.NodeList NodeList { get { if (kindCase_ != KindOneofCase.NodeList) { return null; } return (Types.NodeList)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.NodeList : KindOneofCase.None); } } [DebuggerNonUserCode] public Types.BytesList BytesList { get { if (kindCase_ != KindOneofCase.BytesList) { return null; } return (Types.BytesList)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.BytesList : KindOneofCase.None); } } [DebuggerNonUserCode] public Types.Int64List Int64List { get { if (kindCase_ != KindOneofCase.Int64List) { return null; } return (Types.Int64List)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.Int64List : KindOneofCase.None); } } [DebuggerNonUserCode] public Types.FloatList FloatList { get { if (kindCase_ != KindOneofCase.FloatList) { return null; } return (Types.FloatList)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.FloatList : KindOneofCase.None); } } [DebuggerNonUserCode] public Types.AnyList AnyList { get { if (kindCase_ != KindOneofCase.AnyList) { return null; } return (Types.AnyList)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.AnyList : KindOneofCase.None); } } [DebuggerNonUserCode] public KindOneofCase KindCase => kindCase_; [DebuggerNonUserCode] public CollectionDef() { } [DebuggerNonUserCode] public CollectionDef(CollectionDef other) : this() { switch (other.KindCase) { case KindOneofCase.NodeList: NodeList = other.NodeList.Clone(); break; case KindOneofCase.BytesList: BytesList = other.BytesList.Clone(); break; case KindOneofCase.Int64List: Int64List = other.Int64List.Clone(); break; case KindOneofCase.FloatList: FloatList = other.FloatList.Clone(); break; case KindOneofCase.AnyList: AnyList = other.AnyList.Clone(); break; } _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public CollectionDef Clone() { return new CollectionDef(this); } [DebuggerNonUserCode] public void ClearKind() { kindCase_ = KindOneofCase.None; kind_ = null; } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as CollectionDef); } [DebuggerNonUserCode] public bool Equals(CollectionDef other) { if (other == null) { return false; } if (other == this) { return true; } if (!object.Equals(NodeList, other.NodeList)) { return false; } if (!object.Equals(BytesList, other.BytesList)) { return false; } if (!object.Equals(Int64List, other.Int64List)) { return false; } if (!object.Equals(FloatList, other.FloatList)) { return false; } if (!object.Equals(AnyList, other.AnyList)) { return false; } if (KindCase != other.KindCase) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (kindCase_ == KindOneofCase.NodeList) { num ^= NodeList.GetHashCode(); } if (kindCase_ == KindOneofCase.BytesList) { num ^= BytesList.GetHashCode(); } if (kindCase_ == KindOneofCase.Int64List) { num ^= Int64List.GetHashCode(); } if (kindCase_ == KindOneofCase.FloatList) { num ^= FloatList.GetHashCode(); } if (kindCase_ == KindOneofCase.AnyList) { num ^= AnyList.GetHashCode(); } num ^= (int)kindCase_; if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (kindCase_ == KindOneofCase.NodeList) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)NodeList); } if (kindCase_ == KindOneofCase.BytesList) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)BytesList); } if (kindCase_ == KindOneofCase.Int64List) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)Int64List); } if (kindCase_ == KindOneofCase.FloatList) { output.WriteRawTag((byte)34); output.WriteMessage((IMessage)(object)FloatList); } if (kindCase_ == KindOneofCase.AnyList) { output.WriteRawTag((byte)42); output.WriteMessage((IMessage)(object)AnyList); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (kindCase_ == KindOneofCase.NodeList) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)NodeList); } if (kindCase_ == KindOneofCase.BytesList) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)BytesList); } if (kindCase_ == KindOneofCase.Int64List) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Int64List); } if (kindCase_ == KindOneofCase.FloatList) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)FloatList); } if (kindCase_ == KindOneofCase.AnyList) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)AnyList); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(CollectionDef other) { if (other == null) { return; } switch (other.KindCase) { case KindOneofCase.NodeList: if (NodeList == null) { NodeList = new Types.NodeList(); } NodeList.MergeFrom(other.NodeList); break; case KindOneofCase.BytesList: if (BytesList == null) { BytesList = new Types.BytesList(); } BytesList.MergeFrom(other.BytesList); break; case KindOneofCase.Int64List: if (Int64List == null) { Int64List = new Types.Int64List(); } Int64List.MergeFrom(other.Int64List); break; case KindOneofCase.FloatList: if (FloatList == null) { FloatList = new Types.FloatList(); } FloatList.MergeFrom(other.FloatList); break; case KindOneofCase.AnyList: if (AnyList == null) { AnyList = new Types.AnyList(); } AnyList.MergeFrom(other.AnyList); break; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: { Types.NodeList nodeList = new Types.NodeList(); if (kindCase_ == KindOneofCase.NodeList) { nodeList.MergeFrom(NodeList); } input.ReadMessage((IMessage)(object)nodeList); NodeList = nodeList; break; } case 18u: { Types.BytesList bytesList = new Types.BytesList(); if (kindCase_ == KindOneofCase.BytesList) { bytesList.MergeFrom(BytesList); } input.ReadMessage((IMessage)(object)bytesList); BytesList = bytesList; break; } case 26u: { Types.Int64List int64List = new Types.Int64List(); if (kindCase_ == KindOneofCase.Int64List) { int64List.MergeFrom(Int64List); } input.ReadMessage((IMessage)(object)int64List); Int64List = int64List; break; } case 34u: { Types.FloatList floatList = new Types.FloatList(); if (kindCase_ == KindOneofCase.FloatList) { floatList.MergeFrom(FloatList); } input.ReadMessage((IMessage)(object)floatList); FloatList = floatList; break; } case 42u: { Types.AnyList anyList = new Types.AnyList(); if (kindCase_ == KindOneofCase.AnyList) { anyList.MergeFrom(AnyList); } input.ReadMessage((IMessage)(object)anyList); AnyList = anyList; break; } } } } } public sealed class TensorInfo : IMessage, IMessage, IEquatable, IDeepCloneable { public enum EncodingOneofCase { None = 0, Name = 1, CooSparse = 4, CompositeTensor = 5 } [DebuggerNonUserCode] public static class Types { public sealed class CooSparse : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new CooSparse())); private UnknownFieldSet _unknownFields; public const int ValuesTensorNameFieldNumber = 1; private string valuesTensorName_ = ""; public const int IndicesTensorNameFieldNumber = 2; private string indicesTensorName_ = ""; public const int DenseShapeTensorNameFieldNumber = 3; private string denseShapeTensorName_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => TensorInfo.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string ValuesTensorName { get { return valuesTensorName_; } set { valuesTensorName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string IndicesTensorName { get { return indicesTensorName_; } set { indicesTensorName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string DenseShapeTensorName { get { return denseShapeTensorName_; } set { denseShapeTensorName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public CooSparse() { } [DebuggerNonUserCode] public CooSparse(CooSparse other) : this() { valuesTensorName_ = other.valuesTensorName_; indicesTensorName_ = other.indicesTensorName_; denseShapeTensorName_ = other.denseShapeTensorName_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public CooSparse Clone() { return new CooSparse(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as CooSparse); } [DebuggerNonUserCode] public bool Equals(CooSparse other) { if (other == null) { return false; } if (other == this) { return true; } if (ValuesTensorName != other.ValuesTensorName) { return false; } if (IndicesTensorName != other.IndicesTensorName) { return false; } if (DenseShapeTensorName != other.DenseShapeTensorName) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (ValuesTensorName.Length != 0) { num ^= ValuesTensorName.GetHashCode(); } if (IndicesTensorName.Length != 0) { num ^= IndicesTensorName.GetHashCode(); } if (DenseShapeTensorName.Length != 0) { num ^= DenseShapeTensorName.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (ValuesTensorName.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(ValuesTensorName); } if (IndicesTensorName.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(IndicesTensorName); } if (DenseShapeTensorName.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(DenseShapeTensorName); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (ValuesTensorName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(ValuesTensorName); } if (IndicesTensorName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(IndicesTensorName); } if (DenseShapeTensorName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(DenseShapeTensorName); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(CooSparse other) { if (other != null) { if (other.ValuesTensorName.Length != 0) { ValuesTensorName = other.ValuesTensorName; } if (other.IndicesTensorName.Length != 0) { IndicesTensorName = other.IndicesTensorName; } if (other.DenseShapeTensorName.Length != 0) { DenseShapeTensorName = other.DenseShapeTensorName; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: ValuesTensorName = input.ReadString(); break; case 18u: IndicesTensorName = input.ReadString(); break; case 26u: DenseShapeTensorName = input.ReadString(); break; } } } } public sealed class CompositeTensor : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new CompositeTensor())); private UnknownFieldSet _unknownFields; public const int TypeSpecFieldNumber = 1; private TypeSpecProto typeSpec_; public const int ComponentsFieldNumber = 2; private static readonly FieldCodec _repeated_components_codec = FieldCodec.ForMessage(18u, TensorInfo.Parser); private readonly RepeatedField components_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => TensorInfo.Descriptor.NestedTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public TypeSpecProto TypeSpec { get { return typeSpec_; } set { typeSpec_ = value; } } [DebuggerNonUserCode] public RepeatedField Components => components_; [DebuggerNonUserCode] public CompositeTensor() { } [DebuggerNonUserCode] public CompositeTensor(CompositeTensor other) : this() { typeSpec_ = ((other.typeSpec_ != null) ? other.typeSpec_.Clone() : null); components_ = other.components_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public CompositeTensor Clone() { return new CompositeTensor(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as CompositeTensor); } [DebuggerNonUserCode] public bool Equals(CompositeTensor other) { if (other == null) { return false; } if (other == this) { return true; } if (!object.Equals(TypeSpec, other.TypeSpec)) { return false; } if (!components_.Equals(other.components_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (typeSpec_ != null) { num ^= TypeSpec.GetHashCode(); } num ^= ((object)components_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (typeSpec_ != null) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)TypeSpec); } components_.WriteTo(output, _repeated_components_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (typeSpec_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)TypeSpec); } num += components_.CalculateSize(_repeated_components_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(CompositeTensor other) { if (other == null) { return; } if (other.typeSpec_ != null) { if (typeSpec_ == null) { TypeSpec = new TypeSpecProto(); } TypeSpec.MergeFrom(other.TypeSpec); } components_.Add((IEnumerable)other.components_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: if (typeSpec_ == null) { TypeSpec = new TypeSpecProto(); } input.ReadMessage((IMessage)(object)TypeSpec); break; case 18u: components_.AddEntriesFrom(input, _repeated_components_codec); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new TensorInfo())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; public const int CooSparseFieldNumber = 4; public const int CompositeTensorFieldNumber = 5; public const int DtypeFieldNumber = 2; private DataType dtype_; public const int TensorShapeFieldNumber = 3; private TensorShapeProto tensorShape_; private object encoding_; private EncodingOneofCase encodingCase_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => MetaGraphReflection.Descriptor.MessageTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { if (encodingCase_ != EncodingOneofCase.Name) { return ""; } return (string)encoding_; } set { encoding_ = ProtoPreconditions.CheckNotNull(value, "value"); encodingCase_ = EncodingOneofCase.Name; } } [DebuggerNonUserCode] public Types.CooSparse CooSparse { get { if (encodingCase_ != EncodingOneofCase.CooSparse) { return null; } return (Types.CooSparse)encoding_; } set { encoding_ = value; encodingCase_ = ((value != null) ? EncodingOneofCase.CooSparse : EncodingOneofCase.None); } } [DebuggerNonUserCode] public Types.CompositeTensor CompositeTensor { get { if (encodingCase_ != EncodingOneofCase.CompositeTensor) { return null; } return (Types.CompositeTensor)encoding_; } set { encoding_ = value; encodingCase_ = ((value != null) ? EncodingOneofCase.CompositeTensor : EncodingOneofCase.None); } } [DebuggerNonUserCode] public DataType Dtype { get { return dtype_; } set { dtype_ = value; } } [DebuggerNonUserCode] public TensorShapeProto TensorShape { get { return tensorShape_; } set { tensorShape_ = value; } } [DebuggerNonUserCode] public EncodingOneofCase EncodingCase => encodingCase_; [DebuggerNonUserCode] public TensorInfo() { } [DebuggerNonUserCode] public TensorInfo(TensorInfo other) : this() { dtype_ = other.dtype_; tensorShape_ = ((other.tensorShape_ != null) ? other.tensorShape_.Clone() : null); switch (other.EncodingCase) { case EncodingOneofCase.Name: Name = other.Name; break; case EncodingOneofCase.CooSparse: CooSparse = other.CooSparse.Clone(); break; case EncodingOneofCase.CompositeTensor: CompositeTensor = other.CompositeTensor.Clone(); break; } _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public TensorInfo Clone() { return new TensorInfo(this); } [DebuggerNonUserCode] public void ClearEncoding() { encodingCase_ = EncodingOneofCase.None; encoding_ = null; } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as TensorInfo); } [DebuggerNonUserCode] public bool Equals(TensorInfo other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (!object.Equals(CooSparse, other.CooSparse)) { return false; } if (!object.Equals(CompositeTensor, other.CompositeTensor)) { return false; } if (Dtype != other.Dtype) { return false; } if (!object.Equals(TensorShape, other.TensorShape)) { return false; } if (EncodingCase != other.EncodingCase) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (encodingCase_ == EncodingOneofCase.Name) { num ^= Name.GetHashCode(); } if (encodingCase_ == EncodingOneofCase.CooSparse) { num ^= CooSparse.GetHashCode(); } if (encodingCase_ == EncodingOneofCase.CompositeTensor) { num ^= CompositeTensor.GetHashCode(); } if (Dtype != DataType.DtInvalid) { num ^= Dtype.GetHashCode(); } if (tensorShape_ != null) { num ^= TensorShape.GetHashCode(); } num ^= (int)encodingCase_; if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (encodingCase_ == EncodingOneofCase.Name) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (Dtype != DataType.DtInvalid) { output.WriteRawTag((byte)16); output.WriteEnum((int)Dtype); } if (tensorShape_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)TensorShape); } if (encodingCase_ == EncodingOneofCase.CooSparse) { output.WriteRawTag((byte)34); output.WriteMessage((IMessage)(object)CooSparse); } if (encodingCase_ == EncodingOneofCase.CompositeTensor) { output.WriteRawTag((byte)42); output.WriteMessage((IMessage)(object)CompositeTensor); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (encodingCase_ == EncodingOneofCase.Name) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (encodingCase_ == EncodingOneofCase.CooSparse) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)CooSparse); } if (encodingCase_ == EncodingOneofCase.CompositeTensor) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)CompositeTensor); } if (Dtype != DataType.DtInvalid) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Dtype); } if (tensorShape_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)TensorShape); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(TensorInfo other) { if (other == null) { return; } if (other.Dtype != DataType.DtInvalid) { Dtype = other.Dtype; } if (other.tensorShape_ != null) { if (tensorShape_ == null) { TensorShape = new TensorShapeProto(); } TensorShape.MergeFrom(other.TensorShape); } switch (other.EncodingCase) { case EncodingOneofCase.Name: Name = other.Name; break; case EncodingOneofCase.CooSparse: if (CooSparse == null) { CooSparse = new Types.CooSparse(); } CooSparse.MergeFrom(other.CooSparse); break; case EncodingOneofCase.CompositeTensor: if (CompositeTensor == null) { CompositeTensor = new Types.CompositeTensor(); } CompositeTensor.MergeFrom(other.CompositeTensor); break; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 16u: Dtype = (DataType)input.ReadEnum(); break; case 26u: if (tensorShape_ == null) { TensorShape = new TensorShapeProto(); } input.ReadMessage((IMessage)(object)TensorShape); break; case 34u: { Types.CooSparse cooSparse = new Types.CooSparse(); if (encodingCase_ == EncodingOneofCase.CooSparse) { cooSparse.MergeFrom(CooSparse); } input.ReadMessage((IMessage)(object)cooSparse); CooSparse = cooSparse; break; } case 42u: { Types.CompositeTensor compositeTensor = new Types.CompositeTensor(); if (encodingCase_ == EncodingOneofCase.CompositeTensor) { compositeTensor.MergeFrom(CompositeTensor); } input.ReadMessage((IMessage)(object)compositeTensor); CompositeTensor = compositeTensor; break; } } } } } public sealed class SignatureDef : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SignatureDef())); private UnknownFieldSet _unknownFields; public const int InputsFieldNumber = 1; private static readonly Codec _map_inputs_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, TensorInfo.Parser), 10u); private readonly MapField inputs_ = new MapField(); public const int OutputsFieldNumber = 2; private static readonly Codec _map_outputs_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, TensorInfo.Parser), 18u); private readonly MapField outputs_ = new MapField(); public const int MethodNameFieldNumber = 3; private string methodName_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => MetaGraphReflection.Descriptor.MessageTypes[3]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public MapField Inputs => inputs_; [DebuggerNonUserCode] public MapField Outputs => outputs_; [DebuggerNonUserCode] public string MethodName { get { return methodName_; } set { methodName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public SignatureDef() { } [DebuggerNonUserCode] public SignatureDef(SignatureDef other) : this() { inputs_ = other.inputs_.Clone(); outputs_ = other.outputs_.Clone(); methodName_ = other.methodName_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SignatureDef Clone() { return new SignatureDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SignatureDef); } [DebuggerNonUserCode] public bool Equals(SignatureDef other) { if (other == null) { return false; } if (other == this) { return true; } if (!Inputs.Equals(other.Inputs)) { return false; } if (!Outputs.Equals(other.Outputs)) { return false; } if (MethodName != other.MethodName) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)Inputs).GetHashCode(); num ^= ((object)Outputs).GetHashCode(); if (MethodName.Length != 0) { num ^= MethodName.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { inputs_.WriteTo(output, _map_inputs_codec); outputs_.WriteTo(output, _map_outputs_codec); if (MethodName.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(MethodName); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += inputs_.CalculateSize(_map_inputs_codec); num += outputs_.CalculateSize(_map_outputs_codec); if (MethodName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(MethodName); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SignatureDef other) { if (other != null) { inputs_.Add((IDictionary)other.inputs_); outputs_.Add((IDictionary)other.outputs_); if (other.MethodName.Length != 0) { MethodName = other.MethodName; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: inputs_.AddEntriesFrom(input, _map_inputs_codec); break; case 18u: outputs_.AddEntriesFrom(input, _map_outputs_codec); break; case 26u: MethodName = input.ReadString(); break; } } } } public sealed class AssetFileDef : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new AssetFileDef())); private UnknownFieldSet _unknownFields; public const int TensorInfoFieldNumber = 1; private TensorInfo tensorInfo_; public const int FilenameFieldNumber = 2; private string filename_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => MetaGraphReflection.Descriptor.MessageTypes[4]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public TensorInfo TensorInfo { get { return tensorInfo_; } set { tensorInfo_ = value; } } [DebuggerNonUserCode] public string Filename { get { return filename_; } set { filename_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public AssetFileDef() { } [DebuggerNonUserCode] public AssetFileDef(AssetFileDef other) : this() { tensorInfo_ = ((other.tensorInfo_ != null) ? other.tensorInfo_.Clone() : null); filename_ = other.filename_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public AssetFileDef Clone() { return new AssetFileDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as AssetFileDef); } [DebuggerNonUserCode] public bool Equals(AssetFileDef other) { if (other == null) { return false; } if (other == this) { return true; } if (!object.Equals(TensorInfo, other.TensorInfo)) { return false; } if (Filename != other.Filename) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (tensorInfo_ != null) { num ^= TensorInfo.GetHashCode(); } if (Filename.Length != 0) { num ^= Filename.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (tensorInfo_ != null) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)TensorInfo); } if (Filename.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(Filename); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (tensorInfo_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)TensorInfo); } if (Filename.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Filename); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(AssetFileDef other) { if (other == null) { return; } if (other.tensorInfo_ != null) { if (tensorInfo_ == null) { TensorInfo = new TensorInfo(); } TensorInfo.MergeFrom(other.TensorInfo); } if (other.Filename.Length != 0) { Filename = other.Filename; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: if (tensorInfo_ == null) { TensorInfo = new TensorInfo(); } input.ReadMessage((IMessage)(object)TensorInfo); break; case 18u: Filename = input.ReadString(); break; } } } } public static class NodeDefReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static NodeDefReflection() { //IL_0130: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Expected O, but got Unknown //IL_0136: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Expected O, but got Unknown //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("Cid0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vbm9kZV9kZWYucHJvdG8SC3Rl" + "bnNvcmJvYXJkGil0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vYXR0cl92YWx1" + "ZS5wcm90bxoodGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL2Z1bGxfdHlwZS5w" + "cm90byKKAwoHTm9kZURlZhIMCgRuYW1lGAEgASgJEgoKAm9wGAIgASgJEg0K" + "BWlucHV0GAMgAygJEg4KBmRldmljZRgEIAEoCRIsCgRhdHRyGAUgAygLMh4u" + "dGVuc29yYm9hcmQuTm9kZURlZi5BdHRyRW50cnkSSwoXZXhwZXJpbWVudGFs" + "X2RlYnVnX2luZm8YBiABKAsyKi50ZW5zb3Jib2FyZC5Ob2RlRGVmLkV4cGVy" + "aW1lbnRhbERlYnVnSW5mbxIzChFleHBlcmltZW50YWxfdHlwZRgHIAEoCzIY" + "LnRlbnNvcmJvYXJkLkZ1bGxUeXBlRGVmGkMKCUF0dHJFbnRyeRILCgNrZXkY" + "ASABKAkSJQoFdmFsdWUYAiABKAsyFi50ZW5zb3Jib2FyZC5BdHRyVmFsdWU6" + "AjgBGlEKFUV4cGVyaW1lbnRhbERlYnVnSW5mbxIbChNvcmlnaW5hbF9ub2Rl" + "X25hbWVzGAEgAygJEhsKE29yaWdpbmFsX2Z1bmNfbmFtZXMYAiADKAlCewoY" + "b3JnLnRlbnNvcmZsb3cuZnJhbWV3b3JrQglOb2RlUHJvdG9QAVpPZ2l0aHVi" + "LmNvbS90ZW5zb3JmbG93L3RlbnNvcmZsb3cvdGVuc29yZmxvdy9nby9jb3Jl" + "L2ZyYW1ld29yay9ub2RlX2RlZl9nb19wcm90b/gBAWIGcHJvdG8z"), (FileDescriptor[])(object)new FileDescriptor[2] { AttrValueReflection.Descriptor, FullTypeReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(NodeDef), (MessageParser)(object)NodeDef.Parser, new string[7] { "Name", "Op", "Input", "Device", "Attr", "ExperimentalDebugInfo", "ExperimentalType" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2] { default(GeneratedClrTypeInfo), new GeneratedClrTypeInfo(typeof(NodeDef.Types.ExperimentalDebugInfo), (MessageParser)(object)NodeDef.Types.ExperimentalDebugInfo.Parser, new string[2] { "OriginalNodeNames", "OriginalFuncNames" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }) })); } } public sealed class NodeDef : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class ExperimentalDebugInfo : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new ExperimentalDebugInfo())); private UnknownFieldSet _unknownFields; public const int OriginalNodeNamesFieldNumber = 1; private static readonly FieldCodec _repeated_originalNodeNames_codec = FieldCodec.ForString(10u); private readonly RepeatedField originalNodeNames_ = new RepeatedField(); public const int OriginalFuncNamesFieldNumber = 2; private static readonly FieldCodec _repeated_originalFuncNames_codec = FieldCodec.ForString(18u); private readonly RepeatedField originalFuncNames_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => NodeDef.Descriptor.NestedTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField OriginalNodeNames => originalNodeNames_; [DebuggerNonUserCode] public RepeatedField OriginalFuncNames => originalFuncNames_; [DebuggerNonUserCode] public ExperimentalDebugInfo() { } [DebuggerNonUserCode] public ExperimentalDebugInfo(ExperimentalDebugInfo other) : this() { originalNodeNames_ = other.originalNodeNames_.Clone(); originalFuncNames_ = other.originalFuncNames_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ExperimentalDebugInfo Clone() { return new ExperimentalDebugInfo(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ExperimentalDebugInfo); } [DebuggerNonUserCode] public bool Equals(ExperimentalDebugInfo other) { if (other == null) { return false; } if (other == this) { return true; } if (!originalNodeNames_.Equals(other.originalNodeNames_)) { return false; } if (!originalFuncNames_.Equals(other.originalFuncNames_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)originalNodeNames_).GetHashCode(); num ^= ((object)originalFuncNames_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { originalNodeNames_.WriteTo(output, _repeated_originalNodeNames_codec); originalFuncNames_.WriteTo(output, _repeated_originalFuncNames_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += originalNodeNames_.CalculateSize(_repeated_originalNodeNames_codec); num += originalFuncNames_.CalculateSize(_repeated_originalFuncNames_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ExperimentalDebugInfo other) { if (other != null) { originalNodeNames_.Add((IEnumerable)other.originalNodeNames_); originalFuncNames_.Add((IEnumerable)other.originalFuncNames_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: originalNodeNames_.AddEntriesFrom(input, _repeated_originalNodeNames_codec); break; case 18u: originalFuncNames_.AddEntriesFrom(input, _repeated_originalFuncNames_codec); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new NodeDef())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int OpFieldNumber = 2; private string op_ = ""; public const int InputFieldNumber = 3; private static readonly FieldCodec _repeated_input_codec = FieldCodec.ForString(26u); private readonly RepeatedField input_ = new RepeatedField(); public const int DeviceFieldNumber = 4; private string device_ = ""; public const int AttrFieldNumber = 5; private static readonly Codec _map_attr_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, AttrValue.Parser), 42u); private readonly MapField attr_ = new MapField(); public const int ExperimentalDebugInfoFieldNumber = 6; private Types.ExperimentalDebugInfo experimentalDebugInfo_; public const int ExperimentalTypeFieldNumber = 7; private FullTypeDef experimentalType_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => NodeDefReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string Op { get { return op_; } set { op_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public RepeatedField Input => input_; [DebuggerNonUserCode] public string Device { get { return device_; } set { device_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public MapField Attr => attr_; [DebuggerNonUserCode] public Types.ExperimentalDebugInfo ExperimentalDebugInfo { get { return experimentalDebugInfo_; } set { experimentalDebugInfo_ = value; } } [DebuggerNonUserCode] public FullTypeDef ExperimentalType { get { return experimentalType_; } set { experimentalType_ = value; } } [DebuggerNonUserCode] public NodeDef() { } [DebuggerNonUserCode] public NodeDef(NodeDef other) : this() { name_ = other.name_; op_ = other.op_; input_ = other.input_.Clone(); device_ = other.device_; attr_ = other.attr_.Clone(); experimentalDebugInfo_ = ((other.experimentalDebugInfo_ != null) ? other.experimentalDebugInfo_.Clone() : null); experimentalType_ = ((other.experimentalType_ != null) ? other.experimentalType_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public NodeDef Clone() { return new NodeDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as NodeDef); } [DebuggerNonUserCode] public bool Equals(NodeDef other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (Op != other.Op) { return false; } if (!input_.Equals(other.input_)) { return false; } if (Device != other.Device) { return false; } if (!Attr.Equals(other.Attr)) { return false; } if (!object.Equals(ExperimentalDebugInfo, other.ExperimentalDebugInfo)) { return false; } if (!object.Equals(ExperimentalType, other.ExperimentalType)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (Op.Length != 0) { num ^= Op.GetHashCode(); } num ^= ((object)input_).GetHashCode(); if (Device.Length != 0) { num ^= Device.GetHashCode(); } num ^= ((object)Attr).GetHashCode(); if (experimentalDebugInfo_ != null) { num ^= ExperimentalDebugInfo.GetHashCode(); } if (experimentalType_ != null) { num ^= ExperimentalType.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (Op.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(Op); } input_.WriteTo(output, _repeated_input_codec); if (Device.Length != 0) { output.WriteRawTag((byte)34); output.WriteString(Device); } attr_.WriteTo(output, _map_attr_codec); if (experimentalDebugInfo_ != null) { output.WriteRawTag((byte)50); output.WriteMessage((IMessage)(object)ExperimentalDebugInfo); } if (experimentalType_ != null) { output.WriteRawTag((byte)58); output.WriteMessage((IMessage)(object)ExperimentalType); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (Op.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Op); } num += input_.CalculateSize(_repeated_input_codec); if (Device.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Device); } num += attr_.CalculateSize(_map_attr_codec); if (experimentalDebugInfo_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)ExperimentalDebugInfo); } if (experimentalType_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)ExperimentalType); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(NodeDef other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Op.Length != 0) { Op = other.Op; } input_.Add((IEnumerable)other.input_); if (other.Device.Length != 0) { Device = other.Device; } attr_.Add((IDictionary)other.attr_); if (other.experimentalDebugInfo_ != null) { if (experimentalDebugInfo_ == null) { ExperimentalDebugInfo = new Types.ExperimentalDebugInfo(); } ExperimentalDebugInfo.MergeFrom(other.ExperimentalDebugInfo); } if (other.experimentalType_ != null) { if (experimentalType_ == null) { ExperimentalType = new FullTypeDef(); } ExperimentalType.MergeFrom(other.ExperimentalType); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: Op = input.ReadString(); break; case 26u: input_.AddEntriesFrom(input, _repeated_input_codec); break; case 34u: Device = input.ReadString(); break; case 42u: attr_.AddEntriesFrom(input, _map_attr_codec); break; case 50u: if (experimentalDebugInfo_ == null) { ExperimentalDebugInfo = new Types.ExperimentalDebugInfo(); } input.ReadMessage((IMessage)(object)ExperimentalDebugInfo); break; case 58u: if (experimentalType_ == null) { ExperimentalType = new FullTypeDef(); } input.ReadMessage((IMessage)(object)ExperimentalType); break; } } } } public static class OpDefReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static OpDefReflection() { //IL_0235: Unknown result type (might be due to invalid IL or missing references) //IL_023b: Expected O, but got Unknown //IL_028e: Unknown result type (might be due to invalid IL or missing references) //IL_0294: Expected O, but got Unknown //IL_0294: Unknown result type (might be due to invalid IL or missing references) //IL_029a: Expected O, but got Unknown //IL_02c5: Unknown result type (might be due to invalid IL or missing references) //IL_02cb: Expected O, but got Unknown //IL_02ee: Unknown result type (might be due to invalid IL or missing references) //IL_02f4: Expected O, but got Unknown //IL_02f4: Unknown result type (might be due to invalid IL or missing references) //IL_02fe: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CiV0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vb3BfZGVmLnByb3RvEgt0ZW5z" + "b3Jib2FyZBopdGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL2F0dHJfdmFsdWUu" + "cHJvdG8aKHRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by9mdWxsX3R5cGUucHJv" + "dG8aLnRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by9yZXNvdXJjZV9oYW5kbGUu" + "cHJvdG8aJHRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by90eXBlcy5wcm90byL8" + "BgoFT3BEZWYSDAoEbmFtZRgBIAEoCRIsCglpbnB1dF9hcmcYAiADKAsyGS50" + "ZW5zb3Jib2FyZC5PcERlZi5BcmdEZWYSLQoKb3V0cHV0X2FyZxgDIAMoCzIZ" + "LnRlbnNvcmJvYXJkLk9wRGVmLkFyZ0RlZhIWCg5jb250cm9sX291dHB1dBgU" + "IAMoCRIoCgRhdHRyGAQgAygLMhoudGVuc29yYm9hcmQuT3BEZWYuQXR0ckRl" + "ZhIvCgtkZXByZWNhdGlvbhgIIAEoCzIaLnRlbnNvcmJvYXJkLk9wRGVwcmVj" + "YXRpb24SDwoHc3VtbWFyeRgFIAEoCRITCgtkZXNjcmlwdGlvbhgGIAEoCRIW" + "Cg5pc19jb21tdXRhdGl2ZRgSIAEoCBIUCgxpc19hZ2dyZWdhdGUYECABKAgS" + "EwoLaXNfc3RhdGVmdWwYESABKAgSIgoaYWxsb3dzX3VuaW5pdGlhbGl6ZWRf" + "aW5wdXQYEyABKAgSJAocaXNfZGlzdHJpYnV0ZWRfY29tbXVuaWNhdGlvbhgV" + "IAEoCBqfAgoGQXJnRGVmEgwKBG5hbWUYASABKAkSEwoLZGVzY3JpcHRpb24Y" + "AiABKAkSIwoEdHlwZRgDIAEoDjIVLnRlbnNvcmJvYXJkLkRhdGFUeXBlEhEK" + "CXR5cGVfYXR0chgEIAEoCRITCgtudW1iZXJfYXR0chgFIAEoCRIWCg50eXBl" + "X2xpc3RfYXR0chgGIAEoCRJDCgtoYW5kbGVfZGF0YRgHIAMoCzIuLnRlbnNv" + "cmJvYXJkLlJlc291cmNlSGFuZGxlUHJvdG8uRHR5cGVBbmRTaGFwZRIOCgZp" + "c19yZWYYECABKAgSOAoWZXhwZXJpbWVudGFsX2Z1bGxfdHlwZRgRIAEoCzIY" + "LnRlbnNvcmJvYXJkLkZ1bGxUeXBlRGVmGr8BCgdBdHRyRGVmEgwKBG5hbWUY" + "ASABKAkSDAoEdHlwZRgCIAEoCRItCg1kZWZhdWx0X3ZhbHVlGAMgASgLMhYu" + "dGVuc29yYm9hcmQuQXR0clZhbHVlEhMKC2Rlc2NyaXB0aW9uGAQgASgJEhMK" + "C2hhc19taW5pbXVtGAUgASgIEg8KB21pbmltdW0YBiABKAMSLgoOYWxsb3dl" + "ZF92YWx1ZXMYByABKAsyFi50ZW5zb3Jib2FyZC5BdHRyVmFsdWUiNQoNT3BE" + "ZXByZWNhdGlvbhIPCgd2ZXJzaW9uGAEgASgFEhMKC2V4cGxhbmF0aW9uGAIg" + "ASgJIigKBk9wTGlzdBIeCgJvcBgBIAMoCzISLnRlbnNvcmJvYXJkLk9wRGVm" + "QnsKGG9yZy50ZW5zb3JmbG93LmZyYW1ld29ya0ILT3BEZWZQcm90b3NQAVpN" + "Z2l0aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmZsb3cvdGVuc29yZmxvdy9n" + "by9jb3JlL2ZyYW1ld29yay9vcF9kZWZfZ29fcHJvdG/4AQFiBnByb3RvMw=="), (FileDescriptor[])(object)new FileDescriptor[4] { AttrValueReflection.Descriptor, FullTypeReflection.Descriptor, ResourceHandleReflection.Descriptor, TypesReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[3] { new GeneratedClrTypeInfo(typeof(OpDef), (MessageParser)(object)OpDef.Parser, new string[13] { "Name", "InputArg", "OutputArg", "ControlOutput", "Attr", "Deprecation", "Summary", "Description", "IsCommutative", "IsAggregate", "IsStateful", "AllowsUninitializedInput", "IsDistributedCommunication" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[2] { new GeneratedClrTypeInfo(typeof(OpDef.Types.ArgDef), (MessageParser)(object)OpDef.Types.ArgDef.Parser, new string[9] { "Name", "Description", "Type", "TypeAttr", "NumberAttr", "TypeListAttr", "HandleData", "IsRef", "ExperimentalFullType" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(OpDef.Types.AttrDef), (MessageParser)(object)OpDef.Types.AttrDef.Parser, new string[7] { "Name", "Type", "DefaultValue", "Description", "HasMinimum", "Minimum", "AllowedValues" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }), new GeneratedClrTypeInfo(typeof(OpDeprecation), (MessageParser)(object)OpDeprecation.Parser, new string[2] { "Version", "Explanation" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(OpList), (MessageParser)(object)OpList.Parser, new string[1] { "Op" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class OpDef : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class ArgDef : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new ArgDef())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int DescriptionFieldNumber = 2; private string description_ = ""; public const int TypeFieldNumber = 3; private DataType type_; public const int TypeAttrFieldNumber = 4; private string typeAttr_ = ""; public const int NumberAttrFieldNumber = 5; private string numberAttr_ = ""; public const int TypeListAttrFieldNumber = 6; private string typeListAttr_ = ""; public const int HandleDataFieldNumber = 7; private static readonly FieldCodec _repeated_handleData_codec = FieldCodec.ForMessage(58u, ResourceHandleProto.Types.DtypeAndShape.Parser); private readonly RepeatedField handleData_ = new RepeatedField(); public const int IsRefFieldNumber = 16; private bool isRef_; public const int ExperimentalFullTypeFieldNumber = 17; private FullTypeDef experimentalFullType_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => OpDef.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string Description { get { return description_; } set { description_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public DataType Type { get { return type_; } set { type_ = value; } } [DebuggerNonUserCode] public string TypeAttr { get { return typeAttr_; } set { typeAttr_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string NumberAttr { get { return numberAttr_; } set { numberAttr_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string TypeListAttr { get { return typeListAttr_; } set { typeListAttr_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public RepeatedField HandleData => handleData_; [DebuggerNonUserCode] public bool IsRef { get { return isRef_; } set { isRef_ = value; } } [DebuggerNonUserCode] public FullTypeDef ExperimentalFullType { get { return experimentalFullType_; } set { experimentalFullType_ = value; } } [DebuggerNonUserCode] public ArgDef() { } [DebuggerNonUserCode] public ArgDef(ArgDef other) : this() { name_ = other.name_; description_ = other.description_; type_ = other.type_; typeAttr_ = other.typeAttr_; numberAttr_ = other.numberAttr_; typeListAttr_ = other.typeListAttr_; handleData_ = other.handleData_.Clone(); isRef_ = other.isRef_; experimentalFullType_ = ((other.experimentalFullType_ != null) ? other.experimentalFullType_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ArgDef Clone() { return new ArgDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ArgDef); } [DebuggerNonUserCode] public bool Equals(ArgDef other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (Description != other.Description) { return false; } if (Type != other.Type) { return false; } if (TypeAttr != other.TypeAttr) { return false; } if (NumberAttr != other.NumberAttr) { return false; } if (TypeListAttr != other.TypeListAttr) { return false; } if (!handleData_.Equals(other.handleData_)) { return false; } if (IsRef != other.IsRef) { return false; } if (!object.Equals(ExperimentalFullType, other.ExperimentalFullType)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (Description.Length != 0) { num ^= Description.GetHashCode(); } if (Type != DataType.DtInvalid) { num ^= Type.GetHashCode(); } if (TypeAttr.Length != 0) { num ^= TypeAttr.GetHashCode(); } if (NumberAttr.Length != 0) { num ^= NumberAttr.GetHashCode(); } if (TypeListAttr.Length != 0) { num ^= TypeListAttr.GetHashCode(); } num ^= ((object)handleData_).GetHashCode(); if (IsRef) { num ^= IsRef.GetHashCode(); } if (experimentalFullType_ != null) { num ^= ExperimentalFullType.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (Description.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(Description); } if (Type != DataType.DtInvalid) { output.WriteRawTag((byte)24); output.WriteEnum((int)Type); } if (TypeAttr.Length != 0) { output.WriteRawTag((byte)34); output.WriteString(TypeAttr); } if (NumberAttr.Length != 0) { output.WriteRawTag((byte)42); output.WriteString(NumberAttr); } if (TypeListAttr.Length != 0) { output.WriteRawTag((byte)50); output.WriteString(TypeListAttr); } handleData_.WriteTo(output, _repeated_handleData_codec); if (IsRef) { output.WriteRawTag((byte)128, (byte)1); output.WriteBool(IsRef); } if (experimentalFullType_ != null) { output.WriteRawTag((byte)138, (byte)1); output.WriteMessage((IMessage)(object)ExperimentalFullType); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (Description.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Description); } if (Type != DataType.DtInvalid) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Type); } if (TypeAttr.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(TypeAttr); } if (NumberAttr.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(NumberAttr); } if (TypeListAttr.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(TypeListAttr); } num += handleData_.CalculateSize(_repeated_handleData_codec); if (IsRef) { num += 3; } if (experimentalFullType_ != null) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)ExperimentalFullType); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ArgDef other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Description.Length != 0) { Description = other.Description; } if (other.Type != DataType.DtInvalid) { Type = other.Type; } if (other.TypeAttr.Length != 0) { TypeAttr = other.TypeAttr; } if (other.NumberAttr.Length != 0) { NumberAttr = other.NumberAttr; } if (other.TypeListAttr.Length != 0) { TypeListAttr = other.TypeListAttr; } handleData_.Add((IEnumerable)other.handleData_); if (other.IsRef) { IsRef = other.IsRef; } if (other.experimentalFullType_ != null) { if (experimentalFullType_ == null) { ExperimentalFullType = new FullTypeDef(); } ExperimentalFullType.MergeFrom(other.ExperimentalFullType); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: Description = input.ReadString(); break; case 24u: Type = (DataType)input.ReadEnum(); break; case 34u: TypeAttr = input.ReadString(); break; case 42u: NumberAttr = input.ReadString(); break; case 50u: TypeListAttr = input.ReadString(); break; case 58u: handleData_.AddEntriesFrom(input, _repeated_handleData_codec); break; case 128u: IsRef = input.ReadBool(); break; case 138u: if (experimentalFullType_ == null) { ExperimentalFullType = new FullTypeDef(); } input.ReadMessage((IMessage)(object)ExperimentalFullType); break; } } } } public sealed class AttrDef : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new AttrDef())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int TypeFieldNumber = 2; private string type_ = ""; public const int DefaultValueFieldNumber = 3; private AttrValue defaultValue_; public const int DescriptionFieldNumber = 4; private string description_ = ""; public const int HasMinimumFieldNumber = 5; private bool hasMinimum_; public const int MinimumFieldNumber = 6; private long minimum_; public const int AllowedValuesFieldNumber = 7; private AttrValue allowedValues_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => OpDef.Descriptor.NestedTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string Type { get { return type_; } set { type_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public AttrValue DefaultValue { get { return defaultValue_; } set { defaultValue_ = value; } } [DebuggerNonUserCode] public string Description { get { return description_; } set { description_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public bool HasMinimum { get { return hasMinimum_; } set { hasMinimum_ = value; } } [DebuggerNonUserCode] public long Minimum { get { return minimum_; } set { minimum_ = value; } } [DebuggerNonUserCode] public AttrValue AllowedValues { get { return allowedValues_; } set { allowedValues_ = value; } } [DebuggerNonUserCode] public AttrDef() { } [DebuggerNonUserCode] public AttrDef(AttrDef other) : this() { name_ = other.name_; type_ = other.type_; defaultValue_ = ((other.defaultValue_ != null) ? other.defaultValue_.Clone() : null); description_ = other.description_; hasMinimum_ = other.hasMinimum_; minimum_ = other.minimum_; allowedValues_ = ((other.allowedValues_ != null) ? other.allowedValues_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public AttrDef Clone() { return new AttrDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as AttrDef); } [DebuggerNonUserCode] public bool Equals(AttrDef other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (Type != other.Type) { return false; } if (!object.Equals(DefaultValue, other.DefaultValue)) { return false; } if (Description != other.Description) { return false; } if (HasMinimum != other.HasMinimum) { return false; } if (Minimum != other.Minimum) { return false; } if (!object.Equals(AllowedValues, other.AllowedValues)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (Type.Length != 0) { num ^= Type.GetHashCode(); } if (defaultValue_ != null) { num ^= DefaultValue.GetHashCode(); } if (Description.Length != 0) { num ^= Description.GetHashCode(); } if (HasMinimum) { num ^= HasMinimum.GetHashCode(); } if (Minimum != 0L) { num ^= Minimum.GetHashCode(); } if (allowedValues_ != null) { num ^= AllowedValues.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (Type.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(Type); } if (defaultValue_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)DefaultValue); } if (Description.Length != 0) { output.WriteRawTag((byte)34); output.WriteString(Description); } if (HasMinimum) { output.WriteRawTag((byte)40); output.WriteBool(HasMinimum); } if (Minimum != 0L) { output.WriteRawTag((byte)48); output.WriteInt64(Minimum); } if (allowedValues_ != null) { output.WriteRawTag((byte)58); output.WriteMessage((IMessage)(object)AllowedValues); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (Type.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Type); } if (defaultValue_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)DefaultValue); } if (Description.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Description); } if (HasMinimum) { num += 2; } if (Minimum != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(Minimum); } if (allowedValues_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)AllowedValues); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(AttrDef other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Type.Length != 0) { Type = other.Type; } if (other.defaultValue_ != null) { if (defaultValue_ == null) { DefaultValue = new AttrValue(); } DefaultValue.MergeFrom(other.DefaultValue); } if (other.Description.Length != 0) { Description = other.Description; } if (other.HasMinimum) { HasMinimum = other.HasMinimum; } if (other.Minimum != 0L) { Minimum = other.Minimum; } if (other.allowedValues_ != null) { if (allowedValues_ == null) { AllowedValues = new AttrValue(); } AllowedValues.MergeFrom(other.AllowedValues); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: Type = input.ReadString(); break; case 26u: if (defaultValue_ == null) { DefaultValue = new AttrValue(); } input.ReadMessage((IMessage)(object)DefaultValue); break; case 34u: Description = input.ReadString(); break; case 40u: HasMinimum = input.ReadBool(); break; case 48u: Minimum = input.ReadInt64(); break; case 58u: if (allowedValues_ == null) { AllowedValues = new AttrValue(); } input.ReadMessage((IMessage)(object)AllowedValues); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new OpDef())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int InputArgFieldNumber = 2; private static readonly FieldCodec _repeated_inputArg_codec = FieldCodec.ForMessage(18u, Types.ArgDef.Parser); private readonly RepeatedField inputArg_ = new RepeatedField(); public const int OutputArgFieldNumber = 3; private static readonly FieldCodec _repeated_outputArg_codec = FieldCodec.ForMessage(26u, Types.ArgDef.Parser); private readonly RepeatedField outputArg_ = new RepeatedField(); public const int ControlOutputFieldNumber = 20; private static readonly FieldCodec _repeated_controlOutput_codec = FieldCodec.ForString(162u); private readonly RepeatedField controlOutput_ = new RepeatedField(); public const int AttrFieldNumber = 4; private static readonly FieldCodec _repeated_attr_codec = FieldCodec.ForMessage(34u, Types.AttrDef.Parser); private readonly RepeatedField attr_ = new RepeatedField(); public const int DeprecationFieldNumber = 8; private OpDeprecation deprecation_; public const int SummaryFieldNumber = 5; private string summary_ = ""; public const int DescriptionFieldNumber = 6; private string description_ = ""; public const int IsCommutativeFieldNumber = 18; private bool isCommutative_; public const int IsAggregateFieldNumber = 16; private bool isAggregate_; public const int IsStatefulFieldNumber = 17; private bool isStateful_; public const int AllowsUninitializedInputFieldNumber = 19; private bool allowsUninitializedInput_; public const int IsDistributedCommunicationFieldNumber = 21; private bool isDistributedCommunication_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => OpDefReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public RepeatedField InputArg => inputArg_; [DebuggerNonUserCode] public RepeatedField OutputArg => outputArg_; [DebuggerNonUserCode] public RepeatedField ControlOutput => controlOutput_; [DebuggerNonUserCode] public RepeatedField Attr => attr_; [DebuggerNonUserCode] public OpDeprecation Deprecation { get { return deprecation_; } set { deprecation_ = value; } } [DebuggerNonUserCode] public string Summary { get { return summary_; } set { summary_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string Description { get { return description_; } set { description_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public bool IsCommutative { get { return isCommutative_; } set { isCommutative_ = value; } } [DebuggerNonUserCode] public bool IsAggregate { get { return isAggregate_; } set { isAggregate_ = value; } } [DebuggerNonUserCode] public bool IsStateful { get { return isStateful_; } set { isStateful_ = value; } } [DebuggerNonUserCode] public bool AllowsUninitializedInput { get { return allowsUninitializedInput_; } set { allowsUninitializedInput_ = value; } } [DebuggerNonUserCode] public bool IsDistributedCommunication { get { return isDistributedCommunication_; } set { isDistributedCommunication_ = value; } } [DebuggerNonUserCode] public OpDef() { } [DebuggerNonUserCode] public OpDef(OpDef other) : this() { name_ = other.name_; inputArg_ = other.inputArg_.Clone(); outputArg_ = other.outputArg_.Clone(); controlOutput_ = other.controlOutput_.Clone(); attr_ = other.attr_.Clone(); deprecation_ = ((other.deprecation_ != null) ? other.deprecation_.Clone() : null); summary_ = other.summary_; description_ = other.description_; isCommutative_ = other.isCommutative_; isAggregate_ = other.isAggregate_; isStateful_ = other.isStateful_; allowsUninitializedInput_ = other.allowsUninitializedInput_; isDistributedCommunication_ = other.isDistributedCommunication_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public OpDef Clone() { return new OpDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as OpDef); } [DebuggerNonUserCode] public bool Equals(OpDef other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (!inputArg_.Equals(other.inputArg_)) { return false; } if (!outputArg_.Equals(other.outputArg_)) { return false; } if (!controlOutput_.Equals(other.controlOutput_)) { return false; } if (!attr_.Equals(other.attr_)) { return false; } if (!object.Equals(Deprecation, other.Deprecation)) { return false; } if (Summary != other.Summary) { return false; } if (Description != other.Description) { return false; } if (IsCommutative != other.IsCommutative) { return false; } if (IsAggregate != other.IsAggregate) { return false; } if (IsStateful != other.IsStateful) { return false; } if (AllowsUninitializedInput != other.AllowsUninitializedInput) { return false; } if (IsDistributedCommunication != other.IsDistributedCommunication) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } num ^= ((object)inputArg_).GetHashCode(); num ^= ((object)outputArg_).GetHashCode(); num ^= ((object)controlOutput_).GetHashCode(); num ^= ((object)attr_).GetHashCode(); if (deprecation_ != null) { num ^= Deprecation.GetHashCode(); } if (Summary.Length != 0) { num ^= Summary.GetHashCode(); } if (Description.Length != 0) { num ^= Description.GetHashCode(); } if (IsCommutative) { num ^= IsCommutative.GetHashCode(); } if (IsAggregate) { num ^= IsAggregate.GetHashCode(); } if (IsStateful) { num ^= IsStateful.GetHashCode(); } if (AllowsUninitializedInput) { num ^= AllowsUninitializedInput.GetHashCode(); } if (IsDistributedCommunication) { num ^= IsDistributedCommunication.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } inputArg_.WriteTo(output, _repeated_inputArg_codec); outputArg_.WriteTo(output, _repeated_outputArg_codec); attr_.WriteTo(output, _repeated_attr_codec); if (Summary.Length != 0) { output.WriteRawTag((byte)42); output.WriteString(Summary); } if (Description.Length != 0) { output.WriteRawTag((byte)50); output.WriteString(Description); } if (deprecation_ != null) { output.WriteRawTag((byte)66); output.WriteMessage((IMessage)(object)Deprecation); } if (IsAggregate) { output.WriteRawTag((byte)128, (byte)1); output.WriteBool(IsAggregate); } if (IsStateful) { output.WriteRawTag((byte)136, (byte)1); output.WriteBool(IsStateful); } if (IsCommutative) { output.WriteRawTag((byte)144, (byte)1); output.WriteBool(IsCommutative); } if (AllowsUninitializedInput) { output.WriteRawTag((byte)152, (byte)1); output.WriteBool(AllowsUninitializedInput); } controlOutput_.WriteTo(output, _repeated_controlOutput_codec); if (IsDistributedCommunication) { output.WriteRawTag((byte)168, (byte)1); output.WriteBool(IsDistributedCommunication); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } num += inputArg_.CalculateSize(_repeated_inputArg_codec); num += outputArg_.CalculateSize(_repeated_outputArg_codec); num += controlOutput_.CalculateSize(_repeated_controlOutput_codec); num += attr_.CalculateSize(_repeated_attr_codec); if (deprecation_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Deprecation); } if (Summary.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Summary); } if (Description.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Description); } if (IsCommutative) { num += 3; } if (IsAggregate) { num += 3; } if (IsStateful) { num += 3; } if (AllowsUninitializedInput) { num += 3; } if (IsDistributedCommunication) { num += 3; } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(OpDef other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } inputArg_.Add((IEnumerable)other.inputArg_); outputArg_.Add((IEnumerable)other.outputArg_); controlOutput_.Add((IEnumerable)other.controlOutput_); attr_.Add((IEnumerable)other.attr_); if (other.deprecation_ != null) { if (deprecation_ == null) { Deprecation = new OpDeprecation(); } Deprecation.MergeFrom(other.Deprecation); } if (other.Summary.Length != 0) { Summary = other.Summary; } if (other.Description.Length != 0) { Description = other.Description; } if (other.IsCommutative) { IsCommutative = other.IsCommutative; } if (other.IsAggregate) { IsAggregate = other.IsAggregate; } if (other.IsStateful) { IsStateful = other.IsStateful; } if (other.AllowsUninitializedInput) { AllowsUninitializedInput = other.AllowsUninitializedInput; } if (other.IsDistributedCommunication) { IsDistributedCommunication = other.IsDistributedCommunication; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: inputArg_.AddEntriesFrom(input, _repeated_inputArg_codec); break; case 26u: outputArg_.AddEntriesFrom(input, _repeated_outputArg_codec); break; case 34u: attr_.AddEntriesFrom(input, _repeated_attr_codec); break; case 42u: Summary = input.ReadString(); break; case 50u: Description = input.ReadString(); break; case 66u: if (deprecation_ == null) { Deprecation = new OpDeprecation(); } input.ReadMessage((IMessage)(object)Deprecation); break; case 128u: IsAggregate = input.ReadBool(); break; case 136u: IsStateful = input.ReadBool(); break; case 144u: IsCommutative = input.ReadBool(); break; case 152u: AllowsUninitializedInput = input.ReadBool(); break; case 162u: controlOutput_.AddEntriesFrom(input, _repeated_controlOutput_codec); break; case 168u: IsDistributedCommunication = input.ReadBool(); break; } } } } public sealed class OpDeprecation : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new OpDeprecation())); private UnknownFieldSet _unknownFields; public const int VersionFieldNumber = 1; private int version_; public const int ExplanationFieldNumber = 2; private string explanation_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => OpDefReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public int Version { get { return version_; } set { version_ = value; } } [DebuggerNonUserCode] public string Explanation { get { return explanation_; } set { explanation_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public OpDeprecation() { } [DebuggerNonUserCode] public OpDeprecation(OpDeprecation other) : this() { version_ = other.version_; explanation_ = other.explanation_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public OpDeprecation Clone() { return new OpDeprecation(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as OpDeprecation); } [DebuggerNonUserCode] public bool Equals(OpDeprecation other) { if (other == null) { return false; } if (other == this) { return true; } if (Version != other.Version) { return false; } if (Explanation != other.Explanation) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Version != 0) { num ^= Version.GetHashCode(); } if (Explanation.Length != 0) { num ^= Explanation.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Version != 0) { output.WriteRawTag((byte)8); output.WriteInt32(Version); } if (Explanation.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(Explanation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Version != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Version); } if (Explanation.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Explanation); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(OpDeprecation other) { if (other != null) { if (other.Version != 0) { Version = other.Version; } if (other.Explanation.Length != 0) { Explanation = other.Explanation; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: Version = input.ReadInt32(); break; case 18u: Explanation = input.ReadString(); break; } } } } public sealed class OpList : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new OpList())); private UnknownFieldSet _unknownFields; public const int OpFieldNumber = 1; private static readonly FieldCodec _repeated_op_codec = FieldCodec.ForMessage(10u, OpDef.Parser); private readonly RepeatedField op_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => OpDefReflection.Descriptor.MessageTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Op => op_; [DebuggerNonUserCode] public OpList() { } [DebuggerNonUserCode] public OpList(OpList other) : this() { op_ = other.op_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public OpList Clone() { return new OpList(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as OpList); } [DebuggerNonUserCode] public bool Equals(OpList other) { if (other == null) { return false; } if (other == this) { return true; } if (!op_.Equals(other.op_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)op_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { op_.WriteTo(output, _repeated_op_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += op_.CalculateSize(_repeated_op_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(OpList other) { if (other != null) { op_.Add((IEnumerable)other.op_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { op_.AddEntriesFrom(input, _repeated_op_codec); } } } } public static class ResourceHandleReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static ResourceHandleReflection() { //IL_011f: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012b: Expected O, but got Unknown //IL_012b: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("Ci50ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vcmVzb3VyY2VfaGFuZGxlLnBy" + "b3RvEgt0ZW5zb3Jib2FyZBordGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL3Rl" + "bnNvcl9zaGFwZS5wcm90bxokdGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL3R5" + "cGVzLnByb3RvIqgCChNSZXNvdXJjZUhhbmRsZVByb3RvEg4KBmRldmljZRgB" + "IAEoCRIRCgljb250YWluZXIYAiABKAkSDAoEbmFtZRgDIAEoCRIRCgloYXNo" + "X2NvZGUYBCABKAQSFwoPbWF5YmVfdHlwZV9uYW1lGAUgASgJEkkKEWR0eXBl" + "c19hbmRfc2hhcGVzGAYgAygLMi4udGVuc29yYm9hcmQuUmVzb3VyY2VIYW5k" + "bGVQcm90by5EdHlwZUFuZFNoYXBlGmMKDUR0eXBlQW5kU2hhcGUSJAoFZHR5" + "cGUYASABKA4yFS50ZW5zb3Jib2FyZC5EYXRhVHlwZRIsCgVzaGFwZRgCIAEo" + "CzIdLnRlbnNvcmJvYXJkLlRlbnNvclNoYXBlUHJvdG9KBAgHEAhChwEKGG9y" + "Zy50ZW5zb3JmbG93LmZyYW1ld29ya0IOUmVzb3VyY2VIYW5kbGVQAVpWZ2l0" + "aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmZsb3cvdGVuc29yZmxvdy9nby9j" + "b3JlL2ZyYW1ld29yay9yZXNvdXJjZV9oYW5kbGVfZ29fcHJvdG/4AQFiBnBy" + "b3RvMw=="), (FileDescriptor[])(object)new FileDescriptor[2] { TensorShapeReflection.Descriptor, TypesReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(ResourceHandleProto), (MessageParser)(object)ResourceHandleProto.Parser, new string[6] { "Device", "Container", "Name", "HashCode", "MaybeTypeName", "DtypesAndShapes" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(ResourceHandleProto.Types.DtypeAndShape), (MessageParser)(object)ResourceHandleProto.Types.DtypeAndShape.Parser, new string[2] { "Dtype", "Shape" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }) })); } } public sealed class ResourceHandleProto : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class DtypeAndShape : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new DtypeAndShape())); private UnknownFieldSet _unknownFields; public const int DtypeFieldNumber = 1; private DataType dtype_; public const int ShapeFieldNumber = 2; private TensorShapeProto shape_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ResourceHandleProto.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public DataType Dtype { get { return dtype_; } set { dtype_ = value; } } [DebuggerNonUserCode] public TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } [DebuggerNonUserCode] public DtypeAndShape() { } [DebuggerNonUserCode] public DtypeAndShape(DtypeAndShape other) : this() { dtype_ = other.dtype_; shape_ = ((other.shape_ != null) ? other.shape_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public DtypeAndShape Clone() { return new DtypeAndShape(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as DtypeAndShape); } [DebuggerNonUserCode] public bool Equals(DtypeAndShape other) { if (other == null) { return false; } if (other == this) { return true; } if (Dtype != other.Dtype) { return false; } if (!object.Equals(Shape, other.Shape)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Dtype != DataType.DtInvalid) { num ^= Dtype.GetHashCode(); } if (shape_ != null) { num ^= Shape.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Dtype != DataType.DtInvalid) { output.WriteRawTag((byte)8); output.WriteEnum((int)Dtype); } if (shape_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)Shape); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Dtype != DataType.DtInvalid) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Dtype); } if (shape_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Shape); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(DtypeAndShape other) { if (other == null) { return; } if (other.Dtype != DataType.DtInvalid) { Dtype = other.Dtype; } if (other.shape_ != null) { if (shape_ == null) { Shape = new TensorShapeProto(); } Shape.MergeFrom(other.Shape); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: Dtype = (DataType)input.ReadEnum(); break; case 18u: if (shape_ == null) { Shape = new TensorShapeProto(); } input.ReadMessage((IMessage)(object)Shape); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new ResourceHandleProto())); private UnknownFieldSet _unknownFields; public const int DeviceFieldNumber = 1; private string device_ = ""; public const int ContainerFieldNumber = 2; private string container_ = ""; public const int NameFieldNumber = 3; private string name_ = ""; public const int HashCodeFieldNumber = 4; private ulong hashCode_; public const int MaybeTypeNameFieldNumber = 5; private string maybeTypeName_ = ""; public const int DtypesAndShapesFieldNumber = 6; private static readonly FieldCodec _repeated_dtypesAndShapes_codec = FieldCodec.ForMessage(50u, Types.DtypeAndShape.Parser); private readonly RepeatedField dtypesAndShapes_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => ResourceHandleReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Device { get { return device_; } set { device_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string Container { get { return container_; } set { container_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public ulong HashCode { get { return hashCode_; } set { hashCode_ = value; } } [DebuggerNonUserCode] public string MaybeTypeName { get { return maybeTypeName_; } set { maybeTypeName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public RepeatedField DtypesAndShapes => dtypesAndShapes_; [DebuggerNonUserCode] public ResourceHandleProto() { } [DebuggerNonUserCode] public ResourceHandleProto(ResourceHandleProto other) : this() { device_ = other.device_; container_ = other.container_; name_ = other.name_; hashCode_ = other.hashCode_; maybeTypeName_ = other.maybeTypeName_; dtypesAndShapes_ = other.dtypesAndShapes_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ResourceHandleProto Clone() { return new ResourceHandleProto(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ResourceHandleProto); } [DebuggerNonUserCode] public bool Equals(ResourceHandleProto other) { if (other == null) { return false; } if (other == this) { return true; } if (Device != other.Device) { return false; } if (Container != other.Container) { return false; } if (Name != other.Name) { return false; } if (HashCode != other.HashCode) { return false; } if (MaybeTypeName != other.MaybeTypeName) { return false; } if (!dtypesAndShapes_.Equals(other.dtypesAndShapes_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Device.Length != 0) { num ^= Device.GetHashCode(); } if (Container.Length != 0) { num ^= Container.GetHashCode(); } if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (HashCode != 0L) { num ^= HashCode.GetHashCode(); } if (MaybeTypeName.Length != 0) { num ^= MaybeTypeName.GetHashCode(); } num ^= ((object)dtypesAndShapes_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Device.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Device); } if (Container.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(Container); } if (Name.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(Name); } if (HashCode != 0L) { output.WriteRawTag((byte)32); output.WriteUInt64(HashCode); } if (MaybeTypeName.Length != 0) { output.WriteRawTag((byte)42); output.WriteString(MaybeTypeName); } dtypesAndShapes_.WriteTo(output, _repeated_dtypesAndShapes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Device.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Device); } if (Container.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Container); } if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (HashCode != 0L) { num += 1 + CodedOutputStream.ComputeUInt64Size(HashCode); } if (MaybeTypeName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(MaybeTypeName); } num += dtypesAndShapes_.CalculateSize(_repeated_dtypesAndShapes_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ResourceHandleProto other) { if (other != null) { if (other.Device.Length != 0) { Device = other.Device; } if (other.Container.Length != 0) { Container = other.Container; } if (other.Name.Length != 0) { Name = other.Name; } if (other.HashCode != 0L) { HashCode = other.HashCode; } if (other.MaybeTypeName.Length != 0) { MaybeTypeName = other.MaybeTypeName; } dtypesAndShapes_.Add((IEnumerable)other.dtypesAndShapes_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Device = input.ReadString(); break; case 18u: Container = input.ReadString(); break; case 26u: Name = input.ReadString(); break; case 32u: HashCode = input.ReadUInt64(); break; case 42u: MaybeTypeName = input.ReadString(); break; case 50u: dtypesAndShapes_.AddEntriesFrom(input, _repeated_dtypesAndShapes_codec); break; } } } } public static class RewriterConfigReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static RewriterConfigReflection() { //IL_02be: Unknown result type (might be due to invalid IL or missing references) //IL_02c4: Expected O, but got Unknown //IL_02e7: Unknown result type (might be due to invalid IL or missing references) //IL_02ed: Expected O, but got Unknown //IL_04a0: Unknown result type (might be due to invalid IL or missing references) //IL_04a6: Expected O, but got Unknown //IL_04a6: Unknown result type (might be due to invalid IL or missing references) //IL_04ac: Expected O, but got Unknown //IL_04ac: Unknown result type (might be due to invalid IL or missing references) //IL_04b6: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("Ci50ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vcmV3cml0ZXJfY29uZmlnLnBy" + "b3RvEgt0ZW5zb3Jib2FyZBopdGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL2F0" + "dHJfdmFsdWUucHJvdG8aLnRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by92ZXJp" + "Zmllcl9jb25maWcucHJvdG8iOwoTQXV0b1BhcmFsbGVsT3B0aW9ucxIOCgZl" + "bmFibGUYASABKAgSFAoMbnVtX3JlcGxpY2FzGAIgASgFIisKFlNjb3BlZEFs" + "bG9jYXRvck9wdGlvbnMSEQoJZW5hYmxlX29wGAEgAygJIu8UCg5SZXdyaXRl" + "ckNvbmZpZxJEChVjcHVfbGF5b3V0X2NvbnZlcnNpb24YMiABKA4yJS50ZW5z" + "b3Jib2FyZC5SZXdyaXRlckNvbmZpZy5DcHVMYXlvdXQSPAoQbGF5b3V0X29w" + "dGltaXplchgBIAEoDjIiLnRlbnNvcmJvYXJkLlJld3JpdGVyQ29uZmlnLlRv" + "Z2dsZRI8ChBjb25zdGFudF9mb2xkaW5nGAMgASgOMiIudGVuc29yYm9hcmQu" + "UmV3cml0ZXJDb25maWcuVG9nZ2xlEj4KEnNoYXBlX29wdGltaXphdGlvbhgN" + "IAEoDjIiLnRlbnNvcmJvYXJkLlJld3JpdGVyQ29uZmlnLlRvZ2dsZRI1Cgly" + "ZW1hcHBpbmcYDiABKA4yIi50ZW5zb3Jib2FyZC5SZXdyaXRlckNvbmZpZy5U" + "b2dnbGUSRwobY29tbW9uX3N1YmdyYXBoX2VsaW1pbmF0aW9uGBggASgOMiIu" + "dGVuc29yYm9hcmQuUmV3cml0ZXJDb25maWcuVG9nZ2xlEkMKF2FyaXRobWV0" + "aWNfb3B0aW1pemF0aW9uGAcgASgOMiIudGVuc29yYm9hcmQuUmV3cml0ZXJD" + "b25maWcuVG9nZ2xlEkMKF2RlcGVuZGVuY3lfb3B0aW1pemF0aW9uGAggASgO" + "MiIudGVuc29yYm9hcmQuUmV3cml0ZXJDb25maWcuVG9nZ2xlEj0KEWxvb3Bf" + "b3B0aW1pemF0aW9uGAkgASgOMiIudGVuc29yYm9hcmQuUmV3cml0ZXJDb25m" + "aWcuVG9nZ2xlEkEKFWZ1bmN0aW9uX29wdGltaXphdGlvbhgKIAEoDjIiLnRl" + "bnNvcmJvYXJkLlJld3JpdGVyQ29uZmlnLlRvZ2dsZRI6Cg5kZWJ1Z19zdHJp" + "cHBlchgLIAEoDjIiLnRlbnNvcmJvYXJkLlJld3JpdGVyQ29uZmlnLlRvZ2ds" + "ZRIdChVkaXNhYmxlX21vZGVsX3BydW5pbmcYAiABKAgSSQodc2NvcGVkX2Fs" + "bG9jYXRvcl9vcHRpbWl6YXRpb24YDyABKA4yIi50ZW5zb3Jib2FyZC5SZXdy" + "aXRlckNvbmZpZy5Ub2dnbGUSRAoYcGluX3RvX2hvc3Rfb3B0aW1pemF0aW9u" + "GBIgASgOMiIudGVuc29yYm9hcmQuUmV3cml0ZXJDb25maWcuVG9nZ2xlEkMK" + "F2ltcGxlbWVudGF0aW9uX3NlbGVjdG9yGBYgASgOMiIudGVuc29yYm9hcmQu" + "UmV3cml0ZXJDb25maWcuVG9nZ2xlEkAKFGF1dG9fbWl4ZWRfcHJlY2lzaW9u" + "GBcgASgOMiIudGVuc29yYm9hcmQuUmV3cml0ZXJDb25maWcuVG9nZ2xlEkQK" + "GGF1dG9fbWl4ZWRfcHJlY2lzaW9uX21rbBgZIAEoDjIiLnRlbnNvcmJvYXJk" + "LlJld3JpdGVyQ29uZmlnLlRvZ2dsZRJEChhhdXRvX21peGVkX3ByZWNpc2lv" + "bl9jcHUYHSABKA4yIi50ZW5zb3Jib2FyZC5SZXdyaXRlckNvbmZpZy5Ub2dn" + "bGUSHgoWZGlzYWJsZV9tZXRhX29wdGltaXplchgTIAEoCBJBChV1c2VfcGx1" + "Z2luX29wdGltaXplcnMYHCABKA4yIi50ZW5zb3Jib2FyZC5SZXdyaXRlckNv" + "bmZpZy5Ub2dnbGUSUAoZbWV0YV9vcHRpbWl6ZXJfaXRlcmF0aW9ucxgMIAEo" + "DjItLnRlbnNvcmJvYXJkLlJld3JpdGVyQ29uZmlnLk51bUl0ZXJhdGlvbnNU" + "eXBlEhcKD21pbl9ncmFwaF9ub2RlcxgRIAEoBRI7CjNleHBlcmltZW50YWxf" + "ZGlzYWJsZV9jb21wcmVzc2VkX3RlbnNvcl9vcHRpbWl6YXRpb24YGiABKAgS" + "OwozZXhwZXJpbWVudGFsX2Rpc2FibGVfZm9sZGluZ19xdWFudGl6YXRpb25f" + "ZW11bGF0aW9uGBsgASgIEkMKE21lbW9yeV9vcHRpbWl6YXRpb24YBCABKA4y" + "Ji50ZW5zb3Jib2FyZC5SZXdyaXRlckNvbmZpZy5NZW1PcHRUeXBlEi8KJ21l" + "bW9yeV9vcHRpbWl6ZXJfdGFyZ2V0X25vZGVfbmFtZV9zY29wZRgGIAEoCRIh" + "ChltZXRhX29wdGltaXplcl90aW1lb3V0X21zGBQgASgDEjcKDWF1dG9fcGFy" + "YWxsZWwYBSABKAsyIC50ZW5zb3Jib2FyZC5BdXRvUGFyYWxsZWxPcHRpb25z" + "EiAKGGZhaWxfb25fb3B0aW1pemVyX2Vycm9ycxgVIAEoCBJCChVzY29wZWRf" + "YWxsb2NhdG9yX29wdHMYECABKAsyIy50ZW5zb3Jib2FyZC5TY29wZWRBbGxv" + "Y2F0b3JPcHRpb25zEhIKCm9wdGltaXplcnMYZCADKAkSTAoRY3VzdG9tX29w" + "dGltaXplcnMYyAEgAygLMjAudGVuc29yYm9hcmQuUmV3cml0ZXJDb25maWcu" + "Q3VzdG9tR3JhcGhPcHRpbWl6ZXISRQofaW50ZXJfb3B0aW1pemVyX3Zlcmlm" + "aWVyX2NvbmZpZxisAiABKAsyGy50ZW5zb3Jib2FyZC5WZXJpZmllckNvbmZp" + "ZxJHCiFwb3N0X29wdGltaXphdGlvbl92ZXJpZmllcl9jb25maWcYrQIgASgL" + "MhsudGVuc29yYm9hcmQuVmVyaWZpZXJDb25maWcazAEKFEN1c3RvbUdyYXBo" + "T3B0aW1pemVyEgwKBG5hbWUYASABKAkSWQoNcGFyYW1ldGVyX21hcBgCIAMo" + "CzJCLnRlbnNvcmJvYXJkLlJld3JpdGVyQ29uZmlnLkN1c3RvbUdyYXBoT3B0" + "aW1pemVyLlBhcmFtZXRlck1hcEVudHJ5GksKEVBhcmFtZXRlck1hcEVudHJ5" + "EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLnRlbnNvcmJvYXJkLkF0" + "dHJWYWx1ZToCOAEiZAoGVG9nZ2xlEgsKB0RFRkFVTFQQABIGCgJPThABEgcK" + "A09GRhACEg4KCkFHR1JFU1NJVkUQAxIVChFFWFBFUklNRU5UQUxfTUxJUhAE" + "EhUKEUVYUEVSSU1FTlRBTF9CT1RIEAUiSQoJQ3B1TGF5b3V0EhgKFE5PX0NP" + "TlZFUlNJT05fT05fQ1BVEAASEAoMTkNIV19UT19OSFdDEAESEAoMTkhXQ19U" + "T19OQ0hXEAIiPAoRTnVtSXRlcmF0aW9uc1R5cGUSFQoRREVGQVVMVF9OVU1f" + "SVRFUlMQABIHCgNPTkUQARIHCgNUV08QAiKfAQoKTWVtT3B0VHlwZRITCg9E" + "RUZBVUxUX01FTV9PUFQQABIOCgpOT19NRU1fT1BUEAESCgoGTUFOVUFMEAIS" + "FwoTU1dBUFBJTkdfSEVVUklTVElDUxAEEhwKGFJFQ09NUFVUQVRJT05fSEVV" + "UklTVElDUxAFEhkKFVNDSEVEVUxJTkdfSEVVUklTVElDUxAGEg4KCkhFVVJJ" + "U1RJQ1MQA0KMAQoYb3JnLnRlbnNvcmZsb3cuZnJhbWV3b3JrQhRSZXdyaXRl" + "ckNvbmZpZ1Byb3Rvc1ABWlVnaXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29y" + "Zmxvdy90ZW5zb3JmbG93L2dvL2NvcmUvcHJvdG9idWYvZm9yX2NvcmVfcHJv" + "dG9zX2dvX3Byb3Rv+AEBYgZwcm90bzM="), (FileDescriptor[])(object)new FileDescriptor[2] { AttrValueReflection.Descriptor, VerifierConfigReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[3] { new GeneratedClrTypeInfo(typeof(AutoParallelOptions), (MessageParser)(object)AutoParallelOptions.Parser, new string[2] { "Enable", "NumReplicas" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(ScopedAllocatorOptions), (MessageParser)(object)ScopedAllocatorOptions.Parser, new string[1] { "EnableOp" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(RewriterConfig), (MessageParser)(object)RewriterConfig.Parser, new string[34] { "CpuLayoutConversion", "LayoutOptimizer", "ConstantFolding", "ShapeOptimization", "Remapping", "CommonSubgraphElimination", "ArithmeticOptimization", "DependencyOptimization", "LoopOptimization", "FunctionOptimization", "DebugStripper", "DisableModelPruning", "ScopedAllocatorOptimization", "PinToHostOptimization", "ImplementationSelector", "AutoMixedPrecision", "AutoMixedPrecisionMkl", "AutoMixedPrecisionCpu", "DisableMetaOptimizer", "UsePluginOptimizers", "MetaOptimizerIterations", "MinGraphNodes", "ExperimentalDisableCompressedTensorOptimization", "ExperimentalDisableFoldingQuantizationEmulation", "MemoryOptimization", "MemoryOptimizerTargetNodeNameScope", "MetaOptimizerTimeoutMs", "AutoParallel", "FailOnOptimizerErrors", "ScopedAllocatorOpts", "Optimizers", "CustomOptimizers", "InterOptimizerVerifierConfig", "PostOptimizationVerifierConfig" }, (string[])null, new Type[4] { typeof(RewriterConfig.Types.Toggle), typeof(RewriterConfig.Types.CpuLayout), typeof(RewriterConfig.Types.NumIterationsType), typeof(RewriterConfig.Types.MemOptType) }, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(RewriterConfig.Types.CustomGraphOptimizer), (MessageParser)(object)RewriterConfig.Types.CustomGraphOptimizer.Parser, new string[2] { "Name", "ParameterMap" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1]) }) })); } } public sealed class AutoParallelOptions : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new AutoParallelOptions())); private UnknownFieldSet _unknownFields; public const int EnableFieldNumber = 1; private bool enable_; public const int NumReplicasFieldNumber = 2; private int numReplicas_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => RewriterConfigReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public bool Enable { get { return enable_; } set { enable_ = value; } } [DebuggerNonUserCode] public int NumReplicas { get { return numReplicas_; } set { numReplicas_ = value; } } [DebuggerNonUserCode] public AutoParallelOptions() { } [DebuggerNonUserCode] public AutoParallelOptions(AutoParallelOptions other) : this() { enable_ = other.enable_; numReplicas_ = other.numReplicas_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public AutoParallelOptions Clone() { return new AutoParallelOptions(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as AutoParallelOptions); } [DebuggerNonUserCode] public bool Equals(AutoParallelOptions other) { if (other == null) { return false; } if (other == this) { return true; } if (Enable != other.Enable) { return false; } if (NumReplicas != other.NumReplicas) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Enable) { num ^= Enable.GetHashCode(); } if (NumReplicas != 0) { num ^= NumReplicas.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Enable) { output.WriteRawTag((byte)8); output.WriteBool(Enable); } if (NumReplicas != 0) { output.WriteRawTag((byte)16); output.WriteInt32(NumReplicas); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Enable) { num += 2; } if (NumReplicas != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(NumReplicas); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(AutoParallelOptions other) { if (other != null) { if (other.Enable) { Enable = other.Enable; } if (other.NumReplicas != 0) { NumReplicas = other.NumReplicas; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: Enable = input.ReadBool(); break; case 16u: NumReplicas = input.ReadInt32(); break; } } } } public sealed class ScopedAllocatorOptions : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new ScopedAllocatorOptions())); private UnknownFieldSet _unknownFields; public const int EnableOpFieldNumber = 1; private static readonly FieldCodec _repeated_enableOp_codec = FieldCodec.ForString(10u); private readonly RepeatedField enableOp_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => RewriterConfigReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField EnableOp => enableOp_; [DebuggerNonUserCode] public ScopedAllocatorOptions() { } [DebuggerNonUserCode] public ScopedAllocatorOptions(ScopedAllocatorOptions other) : this() { enableOp_ = other.enableOp_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ScopedAllocatorOptions Clone() { return new ScopedAllocatorOptions(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ScopedAllocatorOptions); } [DebuggerNonUserCode] public bool Equals(ScopedAllocatorOptions other) { if (other == null) { return false; } if (other == this) { return true; } if (!enableOp_.Equals(other.enableOp_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)enableOp_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { enableOp_.WriteTo(output, _repeated_enableOp_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += enableOp_.CalculateSize(_repeated_enableOp_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ScopedAllocatorOptions other) { if (other != null) { enableOp_.Add((IEnumerable)other.enableOp_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { enableOp_.AddEntriesFrom(input, _repeated_enableOp_codec); } } } } public sealed class RewriterConfig : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public enum Toggle { [OriginalName("DEFAULT")] Default, [OriginalName("ON")] On, [OriginalName("OFF")] Off, [OriginalName("AGGRESSIVE")] Aggressive, [OriginalName("EXPERIMENTAL_MLIR")] ExperimentalMlir, [OriginalName("EXPERIMENTAL_BOTH")] ExperimentalBoth } public enum CpuLayout { [OriginalName("NO_CONVERSION_ON_CPU")] NoConversionOnCpu, [OriginalName("NCHW_TO_NHWC")] NchwToNhwc, [OriginalName("NHWC_TO_NCHW")] NhwcToNchw } public enum NumIterationsType { [OriginalName("DEFAULT_NUM_ITERS")] DefaultNumIters, [OriginalName("ONE")] One, [OriginalName("TWO")] Two } public enum MemOptType { [OriginalName("DEFAULT_MEM_OPT")] DefaultMemOpt = 0, [OriginalName("NO_MEM_OPT")] NoMemOpt = 1, [OriginalName("MANUAL")] Manual = 2, [OriginalName("SWAPPING_HEURISTICS")] SwappingHeuristics = 4, [OriginalName("RECOMPUTATION_HEURISTICS")] RecomputationHeuristics = 5, [OriginalName("SCHEDULING_HEURISTICS")] SchedulingHeuristics = 6, [OriginalName("HEURISTICS")] Heuristics = 3 } public sealed class CustomGraphOptimizer : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new CustomGraphOptimizer())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int ParameterMapFieldNumber = 2; private static readonly Codec _map_parameterMap_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, AttrValue.Parser), 18u); private readonly MapField parameterMap_ = new MapField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => RewriterConfig.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public MapField ParameterMap => parameterMap_; [DebuggerNonUserCode] public CustomGraphOptimizer() { } [DebuggerNonUserCode] public CustomGraphOptimizer(CustomGraphOptimizer other) : this() { name_ = other.name_; parameterMap_ = other.parameterMap_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public CustomGraphOptimizer Clone() { return new CustomGraphOptimizer(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as CustomGraphOptimizer); } [DebuggerNonUserCode] public bool Equals(CustomGraphOptimizer other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (!ParameterMap.Equals(other.ParameterMap)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } num ^= ((object)ParameterMap).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } parameterMap_.WriteTo(output, _map_parameterMap_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } num += parameterMap_.CalculateSize(_map_parameterMap_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(CustomGraphOptimizer other) { if (other != null) { if (other.Name.Length != 0) { Name = other.Name; } parameterMap_.Add((IDictionary)other.parameterMap_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: parameterMap_.AddEntriesFrom(input, _map_parameterMap_codec); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new RewriterConfig())); private UnknownFieldSet _unknownFields; public const int CpuLayoutConversionFieldNumber = 50; private Types.CpuLayout cpuLayoutConversion_; public const int LayoutOptimizerFieldNumber = 1; private Types.Toggle layoutOptimizer_; public const int ConstantFoldingFieldNumber = 3; private Types.Toggle constantFolding_; public const int ShapeOptimizationFieldNumber = 13; private Types.Toggle shapeOptimization_; public const int RemappingFieldNumber = 14; private Types.Toggle remapping_; public const int CommonSubgraphEliminationFieldNumber = 24; private Types.Toggle commonSubgraphElimination_; public const int ArithmeticOptimizationFieldNumber = 7; private Types.Toggle arithmeticOptimization_; public const int DependencyOptimizationFieldNumber = 8; private Types.Toggle dependencyOptimization_; public const int LoopOptimizationFieldNumber = 9; private Types.Toggle loopOptimization_; public const int FunctionOptimizationFieldNumber = 10; private Types.Toggle functionOptimization_; public const int DebugStripperFieldNumber = 11; private Types.Toggle debugStripper_; public const int DisableModelPruningFieldNumber = 2; private bool disableModelPruning_; public const int ScopedAllocatorOptimizationFieldNumber = 15; private Types.Toggle scopedAllocatorOptimization_; public const int PinToHostOptimizationFieldNumber = 18; private Types.Toggle pinToHostOptimization_; public const int ImplementationSelectorFieldNumber = 22; private Types.Toggle implementationSelector_; public const int AutoMixedPrecisionFieldNumber = 23; private Types.Toggle autoMixedPrecision_; public const int AutoMixedPrecisionMklFieldNumber = 25; private Types.Toggle autoMixedPrecisionMkl_; public const int AutoMixedPrecisionCpuFieldNumber = 29; private Types.Toggle autoMixedPrecisionCpu_; public const int DisableMetaOptimizerFieldNumber = 19; private bool disableMetaOptimizer_; public const int UsePluginOptimizersFieldNumber = 28; private Types.Toggle usePluginOptimizers_; public const int MetaOptimizerIterationsFieldNumber = 12; private Types.NumIterationsType metaOptimizerIterations_; public const int MinGraphNodesFieldNumber = 17; private int minGraphNodes_; public const int ExperimentalDisableCompressedTensorOptimizationFieldNumber = 26; private bool experimentalDisableCompressedTensorOptimization_; public const int ExperimentalDisableFoldingQuantizationEmulationFieldNumber = 27; private bool experimentalDisableFoldingQuantizationEmulation_; public const int MemoryOptimizationFieldNumber = 4; private Types.MemOptType memoryOptimization_; public const int MemoryOptimizerTargetNodeNameScopeFieldNumber = 6; private string memoryOptimizerTargetNodeNameScope_ = ""; public const int MetaOptimizerTimeoutMsFieldNumber = 20; private long metaOptimizerTimeoutMs_; public const int AutoParallelFieldNumber = 5; private AutoParallelOptions autoParallel_; public const int FailOnOptimizerErrorsFieldNumber = 21; private bool failOnOptimizerErrors_; public const int ScopedAllocatorOptsFieldNumber = 16; private ScopedAllocatorOptions scopedAllocatorOpts_; public const int OptimizersFieldNumber = 100; private static readonly FieldCodec _repeated_optimizers_codec = FieldCodec.ForString(802u); private readonly RepeatedField optimizers_ = new RepeatedField(); public const int CustomOptimizersFieldNumber = 200; private static readonly FieldCodec _repeated_customOptimizers_codec = FieldCodec.ForMessage(1602u, Types.CustomGraphOptimizer.Parser); private readonly RepeatedField customOptimizers_ = new RepeatedField(); public const int InterOptimizerVerifierConfigFieldNumber = 300; private VerifierConfig interOptimizerVerifierConfig_; public const int PostOptimizationVerifierConfigFieldNumber = 301; private VerifierConfig postOptimizationVerifierConfig_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => RewriterConfigReflection.Descriptor.MessageTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public Types.CpuLayout CpuLayoutConversion { get { return cpuLayoutConversion_; } set { cpuLayoutConversion_ = value; } } [DebuggerNonUserCode] public Types.Toggle LayoutOptimizer { get { return layoutOptimizer_; } set { layoutOptimizer_ = value; } } [DebuggerNonUserCode] public Types.Toggle ConstantFolding { get { return constantFolding_; } set { constantFolding_ = value; } } [DebuggerNonUserCode] public Types.Toggle ShapeOptimization { get { return shapeOptimization_; } set { shapeOptimization_ = value; } } [DebuggerNonUserCode] public Types.Toggle Remapping { get { return remapping_; } set { remapping_ = value; } } [DebuggerNonUserCode] public Types.Toggle CommonSubgraphElimination { get { return commonSubgraphElimination_; } set { commonSubgraphElimination_ = value; } } [DebuggerNonUserCode] public Types.Toggle ArithmeticOptimization { get { return arithmeticOptimization_; } set { arithmeticOptimization_ = value; } } [DebuggerNonUserCode] public Types.Toggle DependencyOptimization { get { return dependencyOptimization_; } set { dependencyOptimization_ = value; } } [DebuggerNonUserCode] public Types.Toggle LoopOptimization { get { return loopOptimization_; } set { loopOptimization_ = value; } } [DebuggerNonUserCode] public Types.Toggle FunctionOptimization { get { return functionOptimization_; } set { functionOptimization_ = value; } } [DebuggerNonUserCode] public Types.Toggle DebugStripper { get { return debugStripper_; } set { debugStripper_ = value; } } [DebuggerNonUserCode] public bool DisableModelPruning { get { return disableModelPruning_; } set { disableModelPruning_ = value; } } [DebuggerNonUserCode] public Types.Toggle ScopedAllocatorOptimization { get { return scopedAllocatorOptimization_; } set { scopedAllocatorOptimization_ = value; } } [DebuggerNonUserCode] public Types.Toggle PinToHostOptimization { get { return pinToHostOptimization_; } set { pinToHostOptimization_ = value; } } [DebuggerNonUserCode] public Types.Toggle ImplementationSelector { get { return implementationSelector_; } set { implementationSelector_ = value; } } [DebuggerNonUserCode] public Types.Toggle AutoMixedPrecision { get { return autoMixedPrecision_; } set { autoMixedPrecision_ = value; } } [DebuggerNonUserCode] public Types.Toggle AutoMixedPrecisionMkl { get { return autoMixedPrecisionMkl_; } set { autoMixedPrecisionMkl_ = value; } } [DebuggerNonUserCode] public Types.Toggle AutoMixedPrecisionCpu { get { return autoMixedPrecisionCpu_; } set { autoMixedPrecisionCpu_ = value; } } [DebuggerNonUserCode] public bool DisableMetaOptimizer { get { return disableMetaOptimizer_; } set { disableMetaOptimizer_ = value; } } [DebuggerNonUserCode] public Types.Toggle UsePluginOptimizers { get { return usePluginOptimizers_; } set { usePluginOptimizers_ = value; } } [DebuggerNonUserCode] public Types.NumIterationsType MetaOptimizerIterations { get { return metaOptimizerIterations_; } set { metaOptimizerIterations_ = value; } } [DebuggerNonUserCode] public int MinGraphNodes { get { return minGraphNodes_; } set { minGraphNodes_ = value; } } [DebuggerNonUserCode] public bool ExperimentalDisableCompressedTensorOptimization { get { return experimentalDisableCompressedTensorOptimization_; } set { experimentalDisableCompressedTensorOptimization_ = value; } } [DebuggerNonUserCode] public bool ExperimentalDisableFoldingQuantizationEmulation { get { return experimentalDisableFoldingQuantizationEmulation_; } set { experimentalDisableFoldingQuantizationEmulation_ = value; } } [DebuggerNonUserCode] public Types.MemOptType MemoryOptimization { get { return memoryOptimization_; } set { memoryOptimization_ = value; } } [DebuggerNonUserCode] public string MemoryOptimizerTargetNodeNameScope { get { return memoryOptimizerTargetNodeNameScope_; } set { memoryOptimizerTargetNodeNameScope_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public long MetaOptimizerTimeoutMs { get { return metaOptimizerTimeoutMs_; } set { metaOptimizerTimeoutMs_ = value; } } [DebuggerNonUserCode] public AutoParallelOptions AutoParallel { get { return autoParallel_; } set { autoParallel_ = value; } } [DebuggerNonUserCode] public bool FailOnOptimizerErrors { get { return failOnOptimizerErrors_; } set { failOnOptimizerErrors_ = value; } } [DebuggerNonUserCode] public ScopedAllocatorOptions ScopedAllocatorOpts { get { return scopedAllocatorOpts_; } set { scopedAllocatorOpts_ = value; } } [DebuggerNonUserCode] public RepeatedField Optimizers => optimizers_; [DebuggerNonUserCode] public RepeatedField CustomOptimizers => customOptimizers_; [DebuggerNonUserCode] public VerifierConfig InterOptimizerVerifierConfig { get { return interOptimizerVerifierConfig_; } set { interOptimizerVerifierConfig_ = value; } } [DebuggerNonUserCode] public VerifierConfig PostOptimizationVerifierConfig { get { return postOptimizationVerifierConfig_; } set { postOptimizationVerifierConfig_ = value; } } [DebuggerNonUserCode] public RewriterConfig() { } [DebuggerNonUserCode] public RewriterConfig(RewriterConfig other) : this() { cpuLayoutConversion_ = other.cpuLayoutConversion_; layoutOptimizer_ = other.layoutOptimizer_; constantFolding_ = other.constantFolding_; shapeOptimization_ = other.shapeOptimization_; remapping_ = other.remapping_; commonSubgraphElimination_ = other.commonSubgraphElimination_; arithmeticOptimization_ = other.arithmeticOptimization_; dependencyOptimization_ = other.dependencyOptimization_; loopOptimization_ = other.loopOptimization_; functionOptimization_ = other.functionOptimization_; debugStripper_ = other.debugStripper_; disableModelPruning_ = other.disableModelPruning_; scopedAllocatorOptimization_ = other.scopedAllocatorOptimization_; pinToHostOptimization_ = other.pinToHostOptimization_; implementationSelector_ = other.implementationSelector_; autoMixedPrecision_ = other.autoMixedPrecision_; autoMixedPrecisionMkl_ = other.autoMixedPrecisionMkl_; autoMixedPrecisionCpu_ = other.autoMixedPrecisionCpu_; disableMetaOptimizer_ = other.disableMetaOptimizer_; usePluginOptimizers_ = other.usePluginOptimizers_; metaOptimizerIterations_ = other.metaOptimizerIterations_; minGraphNodes_ = other.minGraphNodes_; experimentalDisableCompressedTensorOptimization_ = other.experimentalDisableCompressedTensorOptimization_; experimentalDisableFoldingQuantizationEmulation_ = other.experimentalDisableFoldingQuantizationEmulation_; memoryOptimization_ = other.memoryOptimization_; memoryOptimizerTargetNodeNameScope_ = other.memoryOptimizerTargetNodeNameScope_; metaOptimizerTimeoutMs_ = other.metaOptimizerTimeoutMs_; autoParallel_ = ((other.autoParallel_ != null) ? other.autoParallel_.Clone() : null); failOnOptimizerErrors_ = other.failOnOptimizerErrors_; scopedAllocatorOpts_ = ((other.scopedAllocatorOpts_ != null) ? other.scopedAllocatorOpts_.Clone() : null); optimizers_ = other.optimizers_.Clone(); customOptimizers_ = other.customOptimizers_.Clone(); interOptimizerVerifierConfig_ = ((other.interOptimizerVerifierConfig_ != null) ? other.interOptimizerVerifierConfig_.Clone() : null); postOptimizationVerifierConfig_ = ((other.postOptimizationVerifierConfig_ != null) ? other.postOptimizationVerifierConfig_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public RewriterConfig Clone() { return new RewriterConfig(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as RewriterConfig); } [DebuggerNonUserCode] public bool Equals(RewriterConfig other) { if (other == null) { return false; } if (other == this) { return true; } if (CpuLayoutConversion != other.CpuLayoutConversion) { return false; } if (LayoutOptimizer != other.LayoutOptimizer) { return false; } if (ConstantFolding != other.ConstantFolding) { return false; } if (ShapeOptimization != other.ShapeOptimization) { return false; } if (Remapping != other.Remapping) { return false; } if (CommonSubgraphElimination != other.CommonSubgraphElimination) { return false; } if (ArithmeticOptimization != other.ArithmeticOptimization) { return false; } if (DependencyOptimization != other.DependencyOptimization) { return false; } if (LoopOptimization != other.LoopOptimization) { return false; } if (FunctionOptimization != other.FunctionOptimization) { return false; } if (DebugStripper != other.DebugStripper) { return false; } if (DisableModelPruning != other.DisableModelPruning) { return false; } if (ScopedAllocatorOptimization != other.ScopedAllocatorOptimization) { return false; } if (PinToHostOptimization != other.PinToHostOptimization) { return false; } if (ImplementationSelector != other.ImplementationSelector) { return false; } if (AutoMixedPrecision != other.AutoMixedPrecision) { return false; } if (AutoMixedPrecisionMkl != other.AutoMixedPrecisionMkl) { return false; } if (AutoMixedPrecisionCpu != other.AutoMixedPrecisionCpu) { return false; } if (DisableMetaOptimizer != other.DisableMetaOptimizer) { return false; } if (UsePluginOptimizers != other.UsePluginOptimizers) { return false; } if (MetaOptimizerIterations != other.MetaOptimizerIterations) { return false; } if (MinGraphNodes != other.MinGraphNodes) { return false; } if (ExperimentalDisableCompressedTensorOptimization != other.ExperimentalDisableCompressedTensorOptimization) { return false; } if (ExperimentalDisableFoldingQuantizationEmulation != other.ExperimentalDisableFoldingQuantizationEmulation) { return false; } if (MemoryOptimization != other.MemoryOptimization) { return false; } if (MemoryOptimizerTargetNodeNameScope != other.MemoryOptimizerTargetNodeNameScope) { return false; } if (MetaOptimizerTimeoutMs != other.MetaOptimizerTimeoutMs) { return false; } if (!object.Equals(AutoParallel, other.AutoParallel)) { return false; } if (FailOnOptimizerErrors != other.FailOnOptimizerErrors) { return false; } if (!object.Equals(ScopedAllocatorOpts, other.ScopedAllocatorOpts)) { return false; } if (!optimizers_.Equals(other.optimizers_)) { return false; } if (!customOptimizers_.Equals(other.customOptimizers_)) { return false; } if (!object.Equals(InterOptimizerVerifierConfig, other.InterOptimizerVerifierConfig)) { return false; } if (!object.Equals(PostOptimizationVerifierConfig, other.PostOptimizationVerifierConfig)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (CpuLayoutConversion != Types.CpuLayout.NoConversionOnCpu) { num ^= CpuLayoutConversion.GetHashCode(); } if (LayoutOptimizer != Types.Toggle.Default) { num ^= LayoutOptimizer.GetHashCode(); } if (ConstantFolding != Types.Toggle.Default) { num ^= ConstantFolding.GetHashCode(); } if (ShapeOptimization != Types.Toggle.Default) { num ^= ShapeOptimization.GetHashCode(); } if (Remapping != Types.Toggle.Default) { num ^= Remapping.GetHashCode(); } if (CommonSubgraphElimination != Types.Toggle.Default) { num ^= CommonSubgraphElimination.GetHashCode(); } if (ArithmeticOptimization != Types.Toggle.Default) { num ^= ArithmeticOptimization.GetHashCode(); } if (DependencyOptimization != Types.Toggle.Default) { num ^= DependencyOptimization.GetHashCode(); } if (LoopOptimization != Types.Toggle.Default) { num ^= LoopOptimization.GetHashCode(); } if (FunctionOptimization != Types.Toggle.Default) { num ^= FunctionOptimization.GetHashCode(); } if (DebugStripper != Types.Toggle.Default) { num ^= DebugStripper.GetHashCode(); } if (DisableModelPruning) { num ^= DisableModelPruning.GetHashCode(); } if (ScopedAllocatorOptimization != Types.Toggle.Default) { num ^= ScopedAllocatorOptimization.GetHashCode(); } if (PinToHostOptimization != Types.Toggle.Default) { num ^= PinToHostOptimization.GetHashCode(); } if (ImplementationSelector != Types.Toggle.Default) { num ^= ImplementationSelector.GetHashCode(); } if (AutoMixedPrecision != Types.Toggle.Default) { num ^= AutoMixedPrecision.GetHashCode(); } if (AutoMixedPrecisionMkl != Types.Toggle.Default) { num ^= AutoMixedPrecisionMkl.GetHashCode(); } if (AutoMixedPrecisionCpu != Types.Toggle.Default) { num ^= AutoMixedPrecisionCpu.GetHashCode(); } if (DisableMetaOptimizer) { num ^= DisableMetaOptimizer.GetHashCode(); } if (UsePluginOptimizers != Types.Toggle.Default) { num ^= UsePluginOptimizers.GetHashCode(); } if (MetaOptimizerIterations != Types.NumIterationsType.DefaultNumIters) { num ^= MetaOptimizerIterations.GetHashCode(); } if (MinGraphNodes != 0) { num ^= MinGraphNodes.GetHashCode(); } if (ExperimentalDisableCompressedTensorOptimization) { num ^= ExperimentalDisableCompressedTensorOptimization.GetHashCode(); } if (ExperimentalDisableFoldingQuantizationEmulation) { num ^= ExperimentalDisableFoldingQuantizationEmulation.GetHashCode(); } if (MemoryOptimization != Types.MemOptType.DefaultMemOpt) { num ^= MemoryOptimization.GetHashCode(); } if (MemoryOptimizerTargetNodeNameScope.Length != 0) { num ^= MemoryOptimizerTargetNodeNameScope.GetHashCode(); } if (MetaOptimizerTimeoutMs != 0L) { num ^= MetaOptimizerTimeoutMs.GetHashCode(); } if (autoParallel_ != null) { num ^= AutoParallel.GetHashCode(); } if (FailOnOptimizerErrors) { num ^= FailOnOptimizerErrors.GetHashCode(); } if (scopedAllocatorOpts_ != null) { num ^= ScopedAllocatorOpts.GetHashCode(); } num ^= ((object)optimizers_).GetHashCode(); num ^= ((object)customOptimizers_).GetHashCode(); if (interOptimizerVerifierConfig_ != null) { num ^= InterOptimizerVerifierConfig.GetHashCode(); } if (postOptimizationVerifierConfig_ != null) { num ^= PostOptimizationVerifierConfig.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (LayoutOptimizer != Types.Toggle.Default) { output.WriteRawTag((byte)8); output.WriteEnum((int)LayoutOptimizer); } if (DisableModelPruning) { output.WriteRawTag((byte)16); output.WriteBool(DisableModelPruning); } if (ConstantFolding != Types.Toggle.Default) { output.WriteRawTag((byte)24); output.WriteEnum((int)ConstantFolding); } if (MemoryOptimization != Types.MemOptType.DefaultMemOpt) { output.WriteRawTag((byte)32); output.WriteEnum((int)MemoryOptimization); } if (autoParallel_ != null) { output.WriteRawTag((byte)42); output.WriteMessage((IMessage)(object)AutoParallel); } if (MemoryOptimizerTargetNodeNameScope.Length != 0) { output.WriteRawTag((byte)50); output.WriteString(MemoryOptimizerTargetNodeNameScope); } if (ArithmeticOptimization != Types.Toggle.Default) { output.WriteRawTag((byte)56); output.WriteEnum((int)ArithmeticOptimization); } if (DependencyOptimization != Types.Toggle.Default) { output.WriteRawTag((byte)64); output.WriteEnum((int)DependencyOptimization); } if (LoopOptimization != Types.Toggle.Default) { output.WriteRawTag((byte)72); output.WriteEnum((int)LoopOptimization); } if (FunctionOptimization != Types.Toggle.Default) { output.WriteRawTag((byte)80); output.WriteEnum((int)FunctionOptimization); } if (DebugStripper != Types.Toggle.Default) { output.WriteRawTag((byte)88); output.WriteEnum((int)DebugStripper); } if (MetaOptimizerIterations != Types.NumIterationsType.DefaultNumIters) { output.WriteRawTag((byte)96); output.WriteEnum((int)MetaOptimizerIterations); } if (ShapeOptimization != Types.Toggle.Default) { output.WriteRawTag((byte)104); output.WriteEnum((int)ShapeOptimization); } if (Remapping != Types.Toggle.Default) { output.WriteRawTag((byte)112); output.WriteEnum((int)Remapping); } if (ScopedAllocatorOptimization != Types.Toggle.Default) { output.WriteRawTag((byte)120); output.WriteEnum((int)ScopedAllocatorOptimization); } if (scopedAllocatorOpts_ != null) { output.WriteRawTag((byte)130, (byte)1); output.WriteMessage((IMessage)(object)ScopedAllocatorOpts); } if (MinGraphNodes != 0) { output.WriteRawTag((byte)136, (byte)1); output.WriteInt32(MinGraphNodes); } if (PinToHostOptimization != Types.Toggle.Default) { output.WriteRawTag((byte)144, (byte)1); output.WriteEnum((int)PinToHostOptimization); } if (DisableMetaOptimizer) { output.WriteRawTag((byte)152, (byte)1); output.WriteBool(DisableMetaOptimizer); } if (MetaOptimizerTimeoutMs != 0L) { output.WriteRawTag((byte)160, (byte)1); output.WriteInt64(MetaOptimizerTimeoutMs); } if (FailOnOptimizerErrors) { output.WriteRawTag((byte)168, (byte)1); output.WriteBool(FailOnOptimizerErrors); } if (ImplementationSelector != Types.Toggle.Default) { output.WriteRawTag((byte)176, (byte)1); output.WriteEnum((int)ImplementationSelector); } if (AutoMixedPrecision != Types.Toggle.Default) { output.WriteRawTag((byte)184, (byte)1); output.WriteEnum((int)AutoMixedPrecision); } if (CommonSubgraphElimination != Types.Toggle.Default) { output.WriteRawTag((byte)192, (byte)1); output.WriteEnum((int)CommonSubgraphElimination); } if (AutoMixedPrecisionMkl != Types.Toggle.Default) { output.WriteRawTag((byte)200, (byte)1); output.WriteEnum((int)AutoMixedPrecisionMkl); } if (ExperimentalDisableCompressedTensorOptimization) { output.WriteRawTag((byte)208, (byte)1); output.WriteBool(ExperimentalDisableCompressedTensorOptimization); } if (ExperimentalDisableFoldingQuantizationEmulation) { output.WriteRawTag((byte)216, (byte)1); output.WriteBool(ExperimentalDisableFoldingQuantizationEmulation); } if (UsePluginOptimizers != Types.Toggle.Default) { output.WriteRawTag((byte)224, (byte)1); output.WriteEnum((int)UsePluginOptimizers); } if (AutoMixedPrecisionCpu != Types.Toggle.Default) { output.WriteRawTag((byte)232, (byte)1); output.WriteEnum((int)AutoMixedPrecisionCpu); } if (CpuLayoutConversion != Types.CpuLayout.NoConversionOnCpu) { output.WriteRawTag((byte)144, (byte)3); output.WriteEnum((int)CpuLayoutConversion); } optimizers_.WriteTo(output, _repeated_optimizers_codec); customOptimizers_.WriteTo(output, _repeated_customOptimizers_codec); if (interOptimizerVerifierConfig_ != null) { output.WriteRawTag((byte)226, (byte)18); output.WriteMessage((IMessage)(object)InterOptimizerVerifierConfig); } if (postOptimizationVerifierConfig_ != null) { output.WriteRawTag((byte)234, (byte)18); output.WriteMessage((IMessage)(object)PostOptimizationVerifierConfig); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (CpuLayoutConversion != Types.CpuLayout.NoConversionOnCpu) { num += 2 + CodedOutputStream.ComputeEnumSize((int)CpuLayoutConversion); } if (LayoutOptimizer != Types.Toggle.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)LayoutOptimizer); } if (ConstantFolding != Types.Toggle.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)ConstantFolding); } if (ShapeOptimization != Types.Toggle.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)ShapeOptimization); } if (Remapping != Types.Toggle.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Remapping); } if (CommonSubgraphElimination != Types.Toggle.Default) { num += 2 + CodedOutputStream.ComputeEnumSize((int)CommonSubgraphElimination); } if (ArithmeticOptimization != Types.Toggle.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)ArithmeticOptimization); } if (DependencyOptimization != Types.Toggle.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)DependencyOptimization); } if (LoopOptimization != Types.Toggle.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)LoopOptimization); } if (FunctionOptimization != Types.Toggle.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)FunctionOptimization); } if (DebugStripper != Types.Toggle.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)DebugStripper); } if (DisableModelPruning) { num += 2; } if (ScopedAllocatorOptimization != Types.Toggle.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)ScopedAllocatorOptimization); } if (PinToHostOptimization != Types.Toggle.Default) { num += 2 + CodedOutputStream.ComputeEnumSize((int)PinToHostOptimization); } if (ImplementationSelector != Types.Toggle.Default) { num += 2 + CodedOutputStream.ComputeEnumSize((int)ImplementationSelector); } if (AutoMixedPrecision != Types.Toggle.Default) { num += 2 + CodedOutputStream.ComputeEnumSize((int)AutoMixedPrecision); } if (AutoMixedPrecisionMkl != Types.Toggle.Default) { num += 2 + CodedOutputStream.ComputeEnumSize((int)AutoMixedPrecisionMkl); } if (AutoMixedPrecisionCpu != Types.Toggle.Default) { num += 2 + CodedOutputStream.ComputeEnumSize((int)AutoMixedPrecisionCpu); } if (DisableMetaOptimizer) { num += 3; } if (UsePluginOptimizers != Types.Toggle.Default) { num += 2 + CodedOutputStream.ComputeEnumSize((int)UsePluginOptimizers); } if (MetaOptimizerIterations != Types.NumIterationsType.DefaultNumIters) { num += 1 + CodedOutputStream.ComputeEnumSize((int)MetaOptimizerIterations); } if (MinGraphNodes != 0) { num += 2 + CodedOutputStream.ComputeInt32Size(MinGraphNodes); } if (ExperimentalDisableCompressedTensorOptimization) { num += 3; } if (ExperimentalDisableFoldingQuantizationEmulation) { num += 3; } if (MemoryOptimization != Types.MemOptType.DefaultMemOpt) { num += 1 + CodedOutputStream.ComputeEnumSize((int)MemoryOptimization); } if (MemoryOptimizerTargetNodeNameScope.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(MemoryOptimizerTargetNodeNameScope); } if (MetaOptimizerTimeoutMs != 0L) { num += 2 + CodedOutputStream.ComputeInt64Size(MetaOptimizerTimeoutMs); } if (autoParallel_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)AutoParallel); } if (FailOnOptimizerErrors) { num += 3; } if (scopedAllocatorOpts_ != null) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)ScopedAllocatorOpts); } num += optimizers_.CalculateSize(_repeated_optimizers_codec); num += customOptimizers_.CalculateSize(_repeated_customOptimizers_codec); if (interOptimizerVerifierConfig_ != null) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)InterOptimizerVerifierConfig); } if (postOptimizationVerifierConfig_ != null) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)PostOptimizationVerifierConfig); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(RewriterConfig other) { if (other == null) { return; } if (other.CpuLayoutConversion != Types.CpuLayout.NoConversionOnCpu) { CpuLayoutConversion = other.CpuLayoutConversion; } if (other.LayoutOptimizer != Types.Toggle.Default) { LayoutOptimizer = other.LayoutOptimizer; } if (other.ConstantFolding != Types.Toggle.Default) { ConstantFolding = other.ConstantFolding; } if (other.ShapeOptimization != Types.Toggle.Default) { ShapeOptimization = other.ShapeOptimization; } if (other.Remapping != Types.Toggle.Default) { Remapping = other.Remapping; } if (other.CommonSubgraphElimination != Types.Toggle.Default) { CommonSubgraphElimination = other.CommonSubgraphElimination; } if (other.ArithmeticOptimization != Types.Toggle.Default) { ArithmeticOptimization = other.ArithmeticOptimization; } if (other.DependencyOptimization != Types.Toggle.Default) { DependencyOptimization = other.DependencyOptimization; } if (other.LoopOptimization != Types.Toggle.Default) { LoopOptimization = other.LoopOptimization; } if (other.FunctionOptimization != Types.Toggle.Default) { FunctionOptimization = other.FunctionOptimization; } if (other.DebugStripper != Types.Toggle.Default) { DebugStripper = other.DebugStripper; } if (other.DisableModelPruning) { DisableModelPruning = other.DisableModelPruning; } if (other.ScopedAllocatorOptimization != Types.Toggle.Default) { ScopedAllocatorOptimization = other.ScopedAllocatorOptimization; } if (other.PinToHostOptimization != Types.Toggle.Default) { PinToHostOptimization = other.PinToHostOptimization; } if (other.ImplementationSelector != Types.Toggle.Default) { ImplementationSelector = other.ImplementationSelector; } if (other.AutoMixedPrecision != Types.Toggle.Default) { AutoMixedPrecision = other.AutoMixedPrecision; } if (other.AutoMixedPrecisionMkl != Types.Toggle.Default) { AutoMixedPrecisionMkl = other.AutoMixedPrecisionMkl; } if (other.AutoMixedPrecisionCpu != Types.Toggle.Default) { AutoMixedPrecisionCpu = other.AutoMixedPrecisionCpu; } if (other.DisableMetaOptimizer) { DisableMetaOptimizer = other.DisableMetaOptimizer; } if (other.UsePluginOptimizers != Types.Toggle.Default) { UsePluginOptimizers = other.UsePluginOptimizers; } if (other.MetaOptimizerIterations != Types.NumIterationsType.DefaultNumIters) { MetaOptimizerIterations = other.MetaOptimizerIterations; } if (other.MinGraphNodes != 0) { MinGraphNodes = other.MinGraphNodes; } if (other.ExperimentalDisableCompressedTensorOptimization) { ExperimentalDisableCompressedTensorOptimization = other.ExperimentalDisableCompressedTensorOptimization; } if (other.ExperimentalDisableFoldingQuantizationEmulation) { ExperimentalDisableFoldingQuantizationEmulation = other.ExperimentalDisableFoldingQuantizationEmulation; } if (other.MemoryOptimization != Types.MemOptType.DefaultMemOpt) { MemoryOptimization = other.MemoryOptimization; } if (other.MemoryOptimizerTargetNodeNameScope.Length != 0) { MemoryOptimizerTargetNodeNameScope = other.MemoryOptimizerTargetNodeNameScope; } if (other.MetaOptimizerTimeoutMs != 0L) { MetaOptimizerTimeoutMs = other.MetaOptimizerTimeoutMs; } if (other.autoParallel_ != null) { if (autoParallel_ == null) { AutoParallel = new AutoParallelOptions(); } AutoParallel.MergeFrom(other.AutoParallel); } if (other.FailOnOptimizerErrors) { FailOnOptimizerErrors = other.FailOnOptimizerErrors; } if (other.scopedAllocatorOpts_ != null) { if (scopedAllocatorOpts_ == null) { ScopedAllocatorOpts = new ScopedAllocatorOptions(); } ScopedAllocatorOpts.MergeFrom(other.ScopedAllocatorOpts); } optimizers_.Add((IEnumerable)other.optimizers_); customOptimizers_.Add((IEnumerable)other.customOptimizers_); if (other.interOptimizerVerifierConfig_ != null) { if (interOptimizerVerifierConfig_ == null) { InterOptimizerVerifierConfig = new VerifierConfig(); } InterOptimizerVerifierConfig.MergeFrom(other.InterOptimizerVerifierConfig); } if (other.postOptimizationVerifierConfig_ != null) { if (postOptimizationVerifierConfig_ == null) { PostOptimizationVerifierConfig = new VerifierConfig(); } PostOptimizationVerifierConfig.MergeFrom(other.PostOptimizationVerifierConfig); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: LayoutOptimizer = (Types.Toggle)input.ReadEnum(); break; case 16u: DisableModelPruning = input.ReadBool(); break; case 24u: ConstantFolding = (Types.Toggle)input.ReadEnum(); break; case 32u: MemoryOptimization = (Types.MemOptType)input.ReadEnum(); break; case 42u: if (autoParallel_ == null) { AutoParallel = new AutoParallelOptions(); } input.ReadMessage((IMessage)(object)AutoParallel); break; case 50u: MemoryOptimizerTargetNodeNameScope = input.ReadString(); break; case 56u: ArithmeticOptimization = (Types.Toggle)input.ReadEnum(); break; case 64u: DependencyOptimization = (Types.Toggle)input.ReadEnum(); break; case 72u: LoopOptimization = (Types.Toggle)input.ReadEnum(); break; case 80u: FunctionOptimization = (Types.Toggle)input.ReadEnum(); break; case 88u: DebugStripper = (Types.Toggle)input.ReadEnum(); break; case 96u: MetaOptimizerIterations = (Types.NumIterationsType)input.ReadEnum(); break; case 104u: ShapeOptimization = (Types.Toggle)input.ReadEnum(); break; case 112u: Remapping = (Types.Toggle)input.ReadEnum(); break; case 120u: ScopedAllocatorOptimization = (Types.Toggle)input.ReadEnum(); break; case 130u: if (scopedAllocatorOpts_ == null) { ScopedAllocatorOpts = new ScopedAllocatorOptions(); } input.ReadMessage((IMessage)(object)ScopedAllocatorOpts); break; case 136u: MinGraphNodes = input.ReadInt32(); break; case 144u: PinToHostOptimization = (Types.Toggle)input.ReadEnum(); break; case 152u: DisableMetaOptimizer = input.ReadBool(); break; case 160u: MetaOptimizerTimeoutMs = input.ReadInt64(); break; case 168u: FailOnOptimizerErrors = input.ReadBool(); break; case 176u: ImplementationSelector = (Types.Toggle)input.ReadEnum(); break; case 184u: AutoMixedPrecision = (Types.Toggle)input.ReadEnum(); break; case 192u: CommonSubgraphElimination = (Types.Toggle)input.ReadEnum(); break; case 200u: AutoMixedPrecisionMkl = (Types.Toggle)input.ReadEnum(); break; case 208u: ExperimentalDisableCompressedTensorOptimization = input.ReadBool(); break; case 216u: ExperimentalDisableFoldingQuantizationEmulation = input.ReadBool(); break; case 224u: UsePluginOptimizers = (Types.Toggle)input.ReadEnum(); break; case 232u: AutoMixedPrecisionCpu = (Types.Toggle)input.ReadEnum(); break; case 400u: CpuLayoutConversion = (Types.CpuLayout)input.ReadEnum(); break; case 802u: optimizers_.AddEntriesFrom(input, _repeated_optimizers_codec); break; case 1602u: customOptimizers_.AddEntriesFrom(input, _repeated_customOptimizers_codec); break; case 2402u: if (interOptimizerVerifierConfig_ == null) { InterOptimizerVerifierConfig = new VerifierConfig(); } input.ReadMessage((IMessage)(object)InterOptimizerVerifierConfig); break; case 2410u: if (postOptimizationVerifierConfig_ == null) { PostOptimizationVerifierConfig = new VerifierConfig(); } input.ReadMessage((IMessage)(object)PostOptimizationVerifierConfig); break; } } } } public static class SavedObjectGraphReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static SavedObjectGraphReflection() { //IL_02ec: Unknown result type (might be due to invalid IL or missing references) //IL_02f2: Expected O, but got Unknown //IL_039e: Unknown result type (might be due to invalid IL or missing references) //IL_03a4: Expected O, but got Unknown //IL_03d7: Unknown result type (might be due to invalid IL or missing references) //IL_03dd: Expected O, but got Unknown //IL_0400: Unknown result type (might be due to invalid IL or missing references) //IL_0406: Expected O, but got Unknown //IL_0431: Unknown result type (might be due to invalid IL or missing references) //IL_0437: Expected O, but got Unknown //IL_0462: Unknown result type (might be due to invalid IL or missing references) //IL_0468: Expected O, but got Unknown //IL_049b: Unknown result type (might be due to invalid IL or missing references) //IL_04a1: Expected O, but got Unknown //IL_04dc: Unknown result type (might be due to invalid IL or missing references) //IL_04e2: Expected O, but got Unknown //IL_0505: Unknown result type (might be due to invalid IL or missing references) //IL_050b: Expected O, but got Unknown //IL_0567: Unknown result type (might be due to invalid IL or missing references) //IL_056d: Expected O, but got Unknown //IL_05bb: Unknown result type (might be due to invalid IL or missing references) //IL_05c1: Expected O, but got Unknown //IL_05e5: Unknown result type (might be due to invalid IL or missing references) //IL_05eb: Expected O, but got Unknown //IL_0617: Unknown result type (might be due to invalid IL or missing references) //IL_061d: Expected O, but got Unknown //IL_061d: Unknown result type (might be due to invalid IL or missing references) //IL_0627: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CjF0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vc2F2ZWRfb2JqZWN0X2dyYXBo" + "LnByb3RvEgt0ZW5zb3Jib2FyZBoZZ29vZ2xlL3Byb3RvYnVmL2FueS5wcm90" + "bxordGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL3RlbnNvcl9zaGFwZS5wcm90" + "bxokdGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL3R5cGVzLnByb3RvGid0ZW5z" + "b3Jib2FyZC9jb21wYXQvcHJvdG8vdmFyaWFibGUucHJvdG8aJ3RlbnNvcmJv" + "YXJkL2NvbXBhdC9wcm90by92ZXJzaW9ucy5wcm90bxoldGVuc29yYm9hcmQv" + "Y29tcGF0L3Byb3RvL3N0cnVjdC5wcm90bxo1dGVuc29yYm9hcmQvY29tcGF0" + "L3Byb3RvL3RyYWNrYWJsZV9vYmplY3RfZ3JhcGgucHJvdG8i6wEKEFNhdmVk" + "T2JqZWN0R3JhcGgSJwoFbm9kZXMYASADKAsyGC50ZW5zb3Jib2FyZC5TYXZl" + "ZE9iamVjdBJQChJjb25jcmV0ZV9mdW5jdGlvbnMYAiADKAsyNC50ZW5zb3Ji" + "b2FyZC5TYXZlZE9iamVjdEdyYXBoLkNvbmNyZXRlRnVuY3Rpb25zRW50cnka" + "XAoWQ29uY3JldGVGdW5jdGlvbnNFbnRyeRILCgNrZXkYASABKAkSMQoFdmFs" + "dWUYAiABKAsyIi50ZW5zb3Jib2FyZC5TYXZlZENvbmNyZXRlRnVuY3Rpb246" + "AjgBIt0HCgtTYXZlZE9iamVjdBJTCghjaGlsZHJlbhgBIAMoCzJBLnRlbnNv" + "cmJvYXJkLlRyYWNrYWJsZU9iamVjdEdyYXBoLlRyYWNrYWJsZU9iamVjdC5P" + "YmplY3RSZWZlcmVuY2USVwoMZGVwZW5kZW5jaWVzGA8gAygLMkEudGVuc29y" + "Ym9hcmQuVHJhY2thYmxlT2JqZWN0R3JhcGguVHJhY2thYmxlT2JqZWN0Lk9i" + "amVjdFJlZmVyZW5jZRJfCg5zbG90X3ZhcmlhYmxlcxgDIAMoCzJHLnRlbnNv" + "cmJvYXJkLlRyYWNrYWJsZU9iamVjdEdyYXBoLlRyYWNrYWJsZU9iamVjdC5T" + "bG90VmFyaWFibGVSZWZlcmVuY2USMwoLdXNlcl9vYmplY3QYBCABKAsyHC50" + "ZW5zb3Jib2FyZC5TYXZlZFVzZXJPYmplY3RIABIoCgVhc3NldBgFIAEoCzIX" + "LnRlbnNvcmJvYXJkLlNhdmVkQXNzZXRIABIuCghmdW5jdGlvbhgGIAEoCzIa" + "LnRlbnNvcmJvYXJkLlNhdmVkRnVuY3Rpb25IABIuCgh2YXJpYWJsZRgHIAEo" + "CzIaLnRlbnNvcmJvYXJkLlNhdmVkVmFyaWFibGVIABJIChZiYXJlX2NvbmNy" + "ZXRlX2Z1bmN0aW9uGAggASgLMiYudGVuc29yYm9hcmQuU2F2ZWRCYXJlQ29u" + "Y3JldGVGdW5jdGlvbkgAEi4KCGNvbnN0YW50GAkgASgLMhoudGVuc29yYm9h" + "cmQuU2F2ZWRDb25zdGFudEgAEi4KCHJlc291cmNlGAogASgLMhoudGVuc29y" + "Ym9hcmQuU2F2ZWRSZXNvdXJjZUgAEjYKD2NhcHR1cmVkX3RlbnNvchgMIAEo" + "CzIbLnRlbnNvcmJvYXJkLkNhcHR1cmVkVGVuc29ySAASRwoQc2F2ZWFibGVf" + "b2JqZWN0cxgLIAMoCzItLnRlbnNvcmJvYXJkLlNhdmVkT2JqZWN0LlNhdmVh" + "YmxlT2JqZWN0c0VudHJ5EhcKD3JlZ2lzdGVyZWRfbmFtZRgNIAEoCRIzChVz" + "ZXJpYWxpemVkX3VzZXJfcHJvdG8YDiABKAsyFC5nb29nbGUucHJvdG9idWYu" + "QW55EhgKEHJlZ2lzdGVyZWRfc2F2ZXIYECABKAkaUwoUU2F2ZWFibGVPYmpl" + "Y3RzRW50cnkSCwoDa2V5GAEgASgJEioKBXZhbHVlGAIgASgLMhsudGVuc29y" + "Ym9hcmQuU2F2ZWFibGVPYmplY3Q6AjgBQgYKBGtpbmRKBAgCEANSCmF0dHJp" + "YnV0ZXMiZQoPU2F2ZWRVc2VyT2JqZWN0EhIKCmlkZW50aWZpZXIYASABKAkS" + "KAoHdmVyc2lvbhgCIAEoCzIXLnRlbnNvcmJvYXJkLlZlcnNpb25EZWYSFAoI" + "bWV0YWRhdGEYAyABKAlCAhgBIioKClNhdmVkQXNzZXQSHAoUYXNzZXRfZmls" + "ZV9kZWZfaW5kZXgYASABKAUiXQoNU2F2ZWRGdW5jdGlvbhIaChJjb25jcmV0" + "ZV9mdW5jdGlvbnMYASADKAkSMAoNZnVuY3Rpb25fc3BlYxgCIAEoCzIZLnRl" + "bnNvcmJvYXJkLkZ1bmN0aW9uU3BlYyI5Cg5DYXB0dXJlZFRlbnNvchIMCgRu" + "YW1lGAEgASgJEhkKEWNvbmNyZXRlX2Z1bmN0aW9uGAIgASgJIqoBChVTYXZl" + "ZENvbmNyZXRlRnVuY3Rpb24SFAoMYm91bmRfaW5wdXRzGAIgAygFEkMKHWNh" + "bm9uaWNhbGl6ZWRfaW5wdXRfc2lnbmF0dXJlGAMgASgLMhwudGVuc29yYm9h" + "cmQuU3RydWN0dXJlZFZhbHVlEjYKEG91dHB1dF9zaWduYXR1cmUYBCABKAsy" + "HC50ZW5zb3Jib2FyZC5TdHJ1Y3R1cmVkVmFsdWUirgEKGVNhdmVkQmFyZUNv" + "bmNyZXRlRnVuY3Rpb24SHgoWY29uY3JldGVfZnVuY3Rpb25fbmFtZRgBIAEo" + "CRIZChFhcmd1bWVudF9rZXl3b3JkcxgCIAMoCRIkChxhbGxvd2VkX3Bvc2l0" + "aW9uYWxfYXJndW1lbnRzGAMgASgDEjAKDWZ1bmN0aW9uX3NwZWMYBCABKAsy" + "GS50ZW5zb3Jib2FyZC5GdW5jdGlvblNwZWMiIgoNU2F2ZWRDb25zdGFudBIR" + "CglvcGVyYXRpb24YASABKAki3AIKDVNhdmVkVmFyaWFibGUSJAoFZHR5cGUY" + "ASABKA4yFS50ZW5zb3Jib2FyZC5EYXRhVHlwZRIsCgVzaGFwZRgCIAEoCzId" + "LnRlbnNvcmJvYXJkLlRlbnNvclNoYXBlUHJvdG8SEQoJdHJhaW5hYmxlGAMg" + "ASgIEj0KD3N5bmNocm9uaXphdGlvbhgEIAEoDjIkLnRlbnNvcmJvYXJkLlZh" + "cmlhYmxlU3luY2hyb25pemF0aW9uEjUKC2FnZ3JlZ2F0aW9uGAUgASgOMiAu" + "dGVuc29yYm9hcmQuVmFyaWFibGVBZ2dyZWdhdGlvbhIMCgRuYW1lGAYgASgJ" + "Eg4KBmRldmljZRgHIAEoCRJQCixleHBlcmltZW50YWxfZGlzdHJpYnV0ZWRf" + "dmFyaWFibGVfY29tcG9uZW50cxgIIAMoCzIaLnRlbnNvcmJvYXJkLlNhdmVk" + "VmFyaWFibGUi/gEKDEZ1bmN0aW9uU3BlYxIxCgtmdWxsYXJnc3BlYxgBIAEo" + "CzIcLnRlbnNvcmJvYXJkLlN0cnVjdHVyZWRWYWx1ZRIRCglpc19tZXRob2QY" + "AiABKAgSNQoPaW5wdXRfc2lnbmF0dXJlGAUgASgLMhwudGVuc29yYm9hcmQu" + "U3RydWN0dXJlZFZhbHVlEjkKC2ppdF9jb21waWxlGAYgASgOMiQudGVuc29y" + "Ym9hcmQuRnVuY3Rpb25TcGVjLkppdENvbXBpbGUiKgoKSml0Q29tcGlsZRIL" + "CgdERUZBVUxUEAASBgoCT04QARIHCgNPRkYQAkoECAMQBEoECAQQBSIfCg1T" + "YXZlZFJlc291cmNlEg4KBmRldmljZRgBIAEoCSJBCg5TYXZlYWJsZU9iamVj" + "dBIVCg1zYXZlX2Z1bmN0aW9uGAIgASgFEhgKEHJlc3RvcmVfZnVuY3Rpb24Y" + "AyABKAVCWlpVZ2l0aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmZsb3cvdGVu" + "c29yZmxvdy9nby9jb3JlL3Byb3RvYnVmL2Zvcl9jb3JlX3Byb3Rvc19nb19w" + "cm90b/gBAWIGcHJvdG8z"), (FileDescriptor[])(object)new FileDescriptor[7] { AnyReflection.Descriptor, TensorShapeReflection.Descriptor, TypesReflection.Descriptor, VariableReflection.Descriptor, VersionsReflection.Descriptor, StructReflection.Descriptor, TrackableObjectGraphReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[13] { new GeneratedClrTypeInfo(typeof(SavedObjectGraph), (MessageParser)(object)SavedObjectGraph.Parser, new string[2] { "Nodes", "ConcreteFunctions" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1]), new GeneratedClrTypeInfo(typeof(SavedObject), (MessageParser)(object)SavedObject.Parser, new string[15] { "Children", "Dependencies", "SlotVariables", "UserObject", "Asset", "Function", "Variable", "BareConcreteFunction", "Constant", "Resource", "CapturedTensor", "SaveableObjects", "RegisteredName", "SerializedUserProto", "RegisteredSaver" }, new string[1] { "Kind" }, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1]), new GeneratedClrTypeInfo(typeof(SavedUserObject), (MessageParser)(object)SavedUserObject.Parser, new string[3] { "Identifier", "Version", "Metadata" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(SavedAsset), (MessageParser)(object)SavedAsset.Parser, new string[1] { "AssetFileDefIndex" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(SavedFunction), (MessageParser)(object)SavedFunction.Parser, new string[2] { "ConcreteFunctions", "FunctionSpec" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(CapturedTensor), (MessageParser)(object)CapturedTensor.Parser, new string[2] { "Name", "ConcreteFunction" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(SavedConcreteFunction), (MessageParser)(object)SavedConcreteFunction.Parser, new string[3] { "BoundInputs", "CanonicalizedInputSignature", "OutputSignature" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(SavedBareConcreteFunction), (MessageParser)(object)SavedBareConcreteFunction.Parser, new string[4] { "ConcreteFunctionName", "ArgumentKeywords", "AllowedPositionalArguments", "FunctionSpec" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(SavedConstant), (MessageParser)(object)SavedConstant.Parser, new string[1] { "Operation" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(SavedVariable), (MessageParser)(object)SavedVariable.Parser, new string[8] { "Dtype", "Shape", "Trainable", "Synchronization", "Aggregation", "Name", "Device", "ExperimentalDistributedVariableComponents" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(FunctionSpec), (MessageParser)(object)FunctionSpec.Parser, new string[4] { "Fullargspec", "IsMethod", "InputSignature", "JitCompile" }, (string[])null, new Type[1] { typeof(FunctionSpec.Types.JitCompile) }, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(SavedResource), (MessageParser)(object)SavedResource.Parser, new string[1] { "Device" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(SaveableObject), (MessageParser)(object)SaveableObject.Parser, new string[2] { "SaveFunction", "RestoreFunction" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class SavedObjectGraph : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SavedObjectGraph())); private UnknownFieldSet _unknownFields; public const int NodesFieldNumber = 1; private static readonly FieldCodec _repeated_nodes_codec = FieldCodec.ForMessage(10u, SavedObject.Parser); private readonly RepeatedField nodes_ = new RepeatedField(); public const int ConcreteFunctionsFieldNumber = 2; private static readonly Codec _map_concreteFunctions_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, SavedConcreteFunction.Parser), 18u); private readonly MapField concreteFunctions_ = new MapField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Nodes => nodes_; [DebuggerNonUserCode] public MapField ConcreteFunctions => concreteFunctions_; [DebuggerNonUserCode] public SavedObjectGraph() { } [DebuggerNonUserCode] public SavedObjectGraph(SavedObjectGraph other) : this() { nodes_ = other.nodes_.Clone(); concreteFunctions_ = other.concreteFunctions_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SavedObjectGraph Clone() { return new SavedObjectGraph(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SavedObjectGraph); } [DebuggerNonUserCode] public bool Equals(SavedObjectGraph other) { if (other == null) { return false; } if (other == this) { return true; } if (!nodes_.Equals(other.nodes_)) { return false; } if (!ConcreteFunctions.Equals(other.ConcreteFunctions)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)nodes_).GetHashCode(); num ^= ((object)ConcreteFunctions).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { nodes_.WriteTo(output, _repeated_nodes_codec); concreteFunctions_.WriteTo(output, _map_concreteFunctions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += nodes_.CalculateSize(_repeated_nodes_codec); num += concreteFunctions_.CalculateSize(_map_concreteFunctions_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SavedObjectGraph other) { if (other != null) { nodes_.Add((IEnumerable)other.nodes_); concreteFunctions_.Add((IDictionary)other.concreteFunctions_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: nodes_.AddEntriesFrom(input, _repeated_nodes_codec); break; case 18u: concreteFunctions_.AddEntriesFrom(input, _map_concreteFunctions_codec); break; } } } } public sealed class SavedObject : IMessage, IMessage, IEquatable, IDeepCloneable { public enum KindOneofCase { None = 0, UserObject = 4, Asset = 5, Function = 6, Variable = 7, BareConcreteFunction = 8, Constant = 9, Resource = 10, CapturedTensor = 12 } private static readonly MessageParser _parser = new MessageParser((Func)(() => new SavedObject())); private UnknownFieldSet _unknownFields; public const int ChildrenFieldNumber = 1; private static readonly FieldCodec _repeated_children_codec = FieldCodec.ForMessage(10u, TrackableObjectGraph.Types.TrackableObject.Types.ObjectReference.Parser); private readonly RepeatedField children_ = new RepeatedField(); public const int DependenciesFieldNumber = 15; private static readonly FieldCodec _repeated_dependencies_codec = FieldCodec.ForMessage(122u, TrackableObjectGraph.Types.TrackableObject.Types.ObjectReference.Parser); private readonly RepeatedField dependencies_ = new RepeatedField(); public const int SlotVariablesFieldNumber = 3; private static readonly FieldCodec _repeated_slotVariables_codec = FieldCodec.ForMessage(26u, TrackableObjectGraph.Types.TrackableObject.Types.SlotVariableReference.Parser); private readonly RepeatedField slotVariables_ = new RepeatedField(); public const int UserObjectFieldNumber = 4; public const int AssetFieldNumber = 5; public const int FunctionFieldNumber = 6; public const int VariableFieldNumber = 7; public const int BareConcreteFunctionFieldNumber = 8; public const int ConstantFieldNumber = 9; public const int ResourceFieldNumber = 10; public const int CapturedTensorFieldNumber = 12; public const int SaveableObjectsFieldNumber = 11; private static readonly Codec _map_saveableObjects_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, SaveableObject.Parser), 90u); private readonly MapField saveableObjects_ = new MapField(); public const int RegisteredNameFieldNumber = 13; private string registeredName_ = ""; public const int SerializedUserProtoFieldNumber = 14; private Any serializedUserProto_; public const int RegisteredSaverFieldNumber = 16; private string registeredSaver_ = ""; private object kind_; private KindOneofCase kindCase_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Children => children_; [DebuggerNonUserCode] public RepeatedField Dependencies => dependencies_; [DebuggerNonUserCode] public RepeatedField SlotVariables => slotVariables_; [DebuggerNonUserCode] public SavedUserObject UserObject { get { if (kindCase_ != KindOneofCase.UserObject) { return null; } return (SavedUserObject)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.UserObject : KindOneofCase.None); } } [DebuggerNonUserCode] public SavedAsset Asset { get { if (kindCase_ != KindOneofCase.Asset) { return null; } return (SavedAsset)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.Asset : KindOneofCase.None); } } [DebuggerNonUserCode] public SavedFunction Function { get { if (kindCase_ != KindOneofCase.Function) { return null; } return (SavedFunction)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.Function : KindOneofCase.None); } } [DebuggerNonUserCode] public SavedVariable Variable { get { if (kindCase_ != KindOneofCase.Variable) { return null; } return (SavedVariable)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.Variable : KindOneofCase.None); } } [DebuggerNonUserCode] public SavedBareConcreteFunction BareConcreteFunction { get { if (kindCase_ != KindOneofCase.BareConcreteFunction) { return null; } return (SavedBareConcreteFunction)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.BareConcreteFunction : KindOneofCase.None); } } [DebuggerNonUserCode] public SavedConstant Constant { get { if (kindCase_ != KindOneofCase.Constant) { return null; } return (SavedConstant)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.Constant : KindOneofCase.None); } } [DebuggerNonUserCode] public SavedResource Resource { get { if (kindCase_ != KindOneofCase.Resource) { return null; } return (SavedResource)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.Resource : KindOneofCase.None); } } [DebuggerNonUserCode] public CapturedTensor CapturedTensor { get { if (kindCase_ != KindOneofCase.CapturedTensor) { return null; } return (CapturedTensor)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.CapturedTensor : KindOneofCase.None); } } [DebuggerNonUserCode] public MapField SaveableObjects => saveableObjects_; [DebuggerNonUserCode] public string RegisteredName { get { return registeredName_; } set { registeredName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public Any SerializedUserProto { get { return serializedUserProto_; } set { serializedUserProto_ = value; } } [DebuggerNonUserCode] public string RegisteredSaver { get { return registeredSaver_; } set { registeredSaver_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public KindOneofCase KindCase => kindCase_; [DebuggerNonUserCode] public SavedObject() { } [DebuggerNonUserCode] public SavedObject(SavedObject other) : this() { children_ = other.children_.Clone(); dependencies_ = other.dependencies_.Clone(); slotVariables_ = other.slotVariables_.Clone(); saveableObjects_ = other.saveableObjects_.Clone(); registeredName_ = other.registeredName_; serializedUserProto_ = ((other.serializedUserProto_ != null) ? other.serializedUserProto_.Clone() : null); registeredSaver_ = other.registeredSaver_; switch (other.KindCase) { case KindOneofCase.UserObject: UserObject = other.UserObject.Clone(); break; case KindOneofCase.Asset: Asset = other.Asset.Clone(); break; case KindOneofCase.Function: Function = other.Function.Clone(); break; case KindOneofCase.Variable: Variable = other.Variable.Clone(); break; case KindOneofCase.BareConcreteFunction: BareConcreteFunction = other.BareConcreteFunction.Clone(); break; case KindOneofCase.Constant: Constant = other.Constant.Clone(); break; case KindOneofCase.Resource: Resource = other.Resource.Clone(); break; case KindOneofCase.CapturedTensor: CapturedTensor = other.CapturedTensor.Clone(); break; } _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SavedObject Clone() { return new SavedObject(this); } [DebuggerNonUserCode] public void ClearKind() { kindCase_ = KindOneofCase.None; kind_ = null; } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SavedObject); } [DebuggerNonUserCode] public bool Equals(SavedObject other) { if (other == null) { return false; } if (other == this) { return true; } if (!children_.Equals(other.children_)) { return false; } if (!dependencies_.Equals(other.dependencies_)) { return false; } if (!slotVariables_.Equals(other.slotVariables_)) { return false; } if (!object.Equals(UserObject, other.UserObject)) { return false; } if (!object.Equals(Asset, other.Asset)) { return false; } if (!object.Equals(Function, other.Function)) { return false; } if (!object.Equals(Variable, other.Variable)) { return false; } if (!object.Equals(BareConcreteFunction, other.BareConcreteFunction)) { return false; } if (!object.Equals(Constant, other.Constant)) { return false; } if (!object.Equals(Resource, other.Resource)) { return false; } if (!object.Equals(CapturedTensor, other.CapturedTensor)) { return false; } if (!SaveableObjects.Equals(other.SaveableObjects)) { return false; } if (RegisteredName != other.RegisteredName) { return false; } if (!object.Equals(SerializedUserProto, other.SerializedUserProto)) { return false; } if (RegisteredSaver != other.RegisteredSaver) { return false; } if (KindCase != other.KindCase) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)children_).GetHashCode(); num ^= ((object)dependencies_).GetHashCode(); num ^= ((object)slotVariables_).GetHashCode(); if (kindCase_ == KindOneofCase.UserObject) { num ^= UserObject.GetHashCode(); } if (kindCase_ == KindOneofCase.Asset) { num ^= Asset.GetHashCode(); } if (kindCase_ == KindOneofCase.Function) { num ^= Function.GetHashCode(); } if (kindCase_ == KindOneofCase.Variable) { num ^= Variable.GetHashCode(); } if (kindCase_ == KindOneofCase.BareConcreteFunction) { num ^= BareConcreteFunction.GetHashCode(); } if (kindCase_ == KindOneofCase.Constant) { num ^= Constant.GetHashCode(); } if (kindCase_ == KindOneofCase.Resource) { num ^= Resource.GetHashCode(); } if (kindCase_ == KindOneofCase.CapturedTensor) { num ^= CapturedTensor.GetHashCode(); } num ^= ((object)SaveableObjects).GetHashCode(); if (RegisteredName.Length != 0) { num ^= RegisteredName.GetHashCode(); } if (serializedUserProto_ != null) { num ^= ((object)SerializedUserProto).GetHashCode(); } if (RegisteredSaver.Length != 0) { num ^= RegisteredSaver.GetHashCode(); } num ^= (int)kindCase_; if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { children_.WriteTo(output, _repeated_children_codec); slotVariables_.WriteTo(output, _repeated_slotVariables_codec); if (kindCase_ == KindOneofCase.UserObject) { output.WriteRawTag((byte)34); output.WriteMessage((IMessage)(object)UserObject); } if (kindCase_ == KindOneofCase.Asset) { output.WriteRawTag((byte)42); output.WriteMessage((IMessage)(object)Asset); } if (kindCase_ == KindOneofCase.Function) { output.WriteRawTag((byte)50); output.WriteMessage((IMessage)(object)Function); } if (kindCase_ == KindOneofCase.Variable) { output.WriteRawTag((byte)58); output.WriteMessage((IMessage)(object)Variable); } if (kindCase_ == KindOneofCase.BareConcreteFunction) { output.WriteRawTag((byte)66); output.WriteMessage((IMessage)(object)BareConcreteFunction); } if (kindCase_ == KindOneofCase.Constant) { output.WriteRawTag((byte)74); output.WriteMessage((IMessage)(object)Constant); } if (kindCase_ == KindOneofCase.Resource) { output.WriteRawTag((byte)82); output.WriteMessage((IMessage)(object)Resource); } saveableObjects_.WriteTo(output, _map_saveableObjects_codec); if (kindCase_ == KindOneofCase.CapturedTensor) { output.WriteRawTag((byte)98); output.WriteMessage((IMessage)(object)CapturedTensor); } if (RegisteredName.Length != 0) { output.WriteRawTag((byte)106); output.WriteString(RegisteredName); } if (serializedUserProto_ != null) { output.WriteRawTag((byte)114); output.WriteMessage((IMessage)(object)SerializedUserProto); } dependencies_.WriteTo(output, _repeated_dependencies_codec); if (RegisteredSaver.Length != 0) { output.WriteRawTag((byte)130, (byte)1); output.WriteString(RegisteredSaver); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += children_.CalculateSize(_repeated_children_codec); num += dependencies_.CalculateSize(_repeated_dependencies_codec); num += slotVariables_.CalculateSize(_repeated_slotVariables_codec); if (kindCase_ == KindOneofCase.UserObject) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)UserObject); } if (kindCase_ == KindOneofCase.Asset) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Asset); } if (kindCase_ == KindOneofCase.Function) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Function); } if (kindCase_ == KindOneofCase.Variable) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Variable); } if (kindCase_ == KindOneofCase.BareConcreteFunction) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)BareConcreteFunction); } if (kindCase_ == KindOneofCase.Constant) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Constant); } if (kindCase_ == KindOneofCase.Resource) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Resource); } if (kindCase_ == KindOneofCase.CapturedTensor) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)CapturedTensor); } num += saveableObjects_.CalculateSize(_map_saveableObjects_codec); if (RegisteredName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(RegisteredName); } if (serializedUserProto_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)SerializedUserProto); } if (RegisteredSaver.Length != 0) { num += 2 + CodedOutputStream.ComputeStringSize(RegisteredSaver); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SavedObject other) { //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Expected O, but got Unknown if (other == null) { return; } children_.Add((IEnumerable)other.children_); dependencies_.Add((IEnumerable)other.dependencies_); slotVariables_.Add((IEnumerable)other.slotVariables_); saveableObjects_.Add((IDictionary)other.saveableObjects_); if (other.RegisteredName.Length != 0) { RegisteredName = other.RegisteredName; } if (other.serializedUserProto_ != null) { if (serializedUserProto_ == null) { SerializedUserProto = new Any(); } SerializedUserProto.MergeFrom(other.SerializedUserProto); } if (other.RegisteredSaver.Length != 0) { RegisteredSaver = other.RegisteredSaver; } switch (other.KindCase) { case KindOneofCase.UserObject: if (UserObject == null) { UserObject = new SavedUserObject(); } UserObject.MergeFrom(other.UserObject); break; case KindOneofCase.Asset: if (Asset == null) { Asset = new SavedAsset(); } Asset.MergeFrom(other.Asset); break; case KindOneofCase.Function: if (Function == null) { Function = new SavedFunction(); } Function.MergeFrom(other.Function); break; case KindOneofCase.Variable: if (Variable == null) { Variable = new SavedVariable(); } Variable.MergeFrom(other.Variable); break; case KindOneofCase.BareConcreteFunction: if (BareConcreteFunction == null) { BareConcreteFunction = new SavedBareConcreteFunction(); } BareConcreteFunction.MergeFrom(other.BareConcreteFunction); break; case KindOneofCase.Constant: if (Constant == null) { Constant = new SavedConstant(); } Constant.MergeFrom(other.Constant); break; case KindOneofCase.Resource: if (Resource == null) { Resource = new SavedResource(); } Resource.MergeFrom(other.Resource); break; case KindOneofCase.CapturedTensor: if (CapturedTensor == null) { CapturedTensor = new CapturedTensor(); } CapturedTensor.MergeFrom(other.CapturedTensor); break; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { //IL_029e: Unknown result type (might be due to invalid IL or missing references) //IL_02a8: Expected O, but got Unknown uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: children_.AddEntriesFrom(input, _repeated_children_codec); break; case 26u: slotVariables_.AddEntriesFrom(input, _repeated_slotVariables_codec); break; case 34u: { SavedUserObject savedUserObject = new SavedUserObject(); if (kindCase_ == KindOneofCase.UserObject) { savedUserObject.MergeFrom(UserObject); } input.ReadMessage((IMessage)(object)savedUserObject); UserObject = savedUserObject; break; } case 42u: { SavedAsset savedAsset = new SavedAsset(); if (kindCase_ == KindOneofCase.Asset) { savedAsset.MergeFrom(Asset); } input.ReadMessage((IMessage)(object)savedAsset); Asset = savedAsset; break; } case 50u: { SavedFunction savedFunction = new SavedFunction(); if (kindCase_ == KindOneofCase.Function) { savedFunction.MergeFrom(Function); } input.ReadMessage((IMessage)(object)savedFunction); Function = savedFunction; break; } case 58u: { SavedVariable savedVariable = new SavedVariable(); if (kindCase_ == KindOneofCase.Variable) { savedVariable.MergeFrom(Variable); } input.ReadMessage((IMessage)(object)savedVariable); Variable = savedVariable; break; } case 66u: { SavedBareConcreteFunction savedBareConcreteFunction = new SavedBareConcreteFunction(); if (kindCase_ == KindOneofCase.BareConcreteFunction) { savedBareConcreteFunction.MergeFrom(BareConcreteFunction); } input.ReadMessage((IMessage)(object)savedBareConcreteFunction); BareConcreteFunction = savedBareConcreteFunction; break; } case 74u: { SavedConstant savedConstant = new SavedConstant(); if (kindCase_ == KindOneofCase.Constant) { savedConstant.MergeFrom(Constant); } input.ReadMessage((IMessage)(object)savedConstant); Constant = savedConstant; break; } case 82u: { SavedResource savedResource = new SavedResource(); if (kindCase_ == KindOneofCase.Resource) { savedResource.MergeFrom(Resource); } input.ReadMessage((IMessage)(object)savedResource); Resource = savedResource; break; } case 90u: saveableObjects_.AddEntriesFrom(input, _map_saveableObjects_codec); break; case 98u: { CapturedTensor capturedTensor = new CapturedTensor(); if (kindCase_ == KindOneofCase.CapturedTensor) { capturedTensor.MergeFrom(CapturedTensor); } input.ReadMessage((IMessage)(object)capturedTensor); CapturedTensor = capturedTensor; break; } case 106u: RegisteredName = input.ReadString(); break; case 114u: if (serializedUserProto_ == null) { SerializedUserProto = new Any(); } input.ReadMessage((IMessage)(object)SerializedUserProto); break; case 122u: dependencies_.AddEntriesFrom(input, _repeated_dependencies_codec); break; case 130u: RegisteredSaver = input.ReadString(); break; } } } } public sealed class SavedUserObject : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SavedUserObject())); private UnknownFieldSet _unknownFields; public const int IdentifierFieldNumber = 1; private string identifier_ = ""; public const int VersionFieldNumber = 2; private VersionDef version_; public const int MetadataFieldNumber = 3; private string metadata_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Identifier { get { return identifier_; } set { identifier_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public VersionDef Version { get { return version_; } set { version_ = value; } } [Obsolete] [DebuggerNonUserCode] public string Metadata { get { return metadata_; } set { metadata_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public SavedUserObject() { } [DebuggerNonUserCode] public SavedUserObject(SavedUserObject other) : this() { identifier_ = other.identifier_; version_ = ((other.version_ != null) ? other.version_.Clone() : null); metadata_ = other.metadata_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SavedUserObject Clone() { return new SavedUserObject(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SavedUserObject); } [DebuggerNonUserCode] public bool Equals(SavedUserObject other) { if (other == null) { return false; } if (other == this) { return true; } if (Identifier != other.Identifier) { return false; } if (!object.Equals(Version, other.Version)) { return false; } if (Metadata != other.Metadata) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Identifier.Length != 0) { num ^= Identifier.GetHashCode(); } if (version_ != null) { num ^= Version.GetHashCode(); } if (Metadata.Length != 0) { num ^= Metadata.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Identifier.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Identifier); } if (version_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)Version); } if (Metadata.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Identifier.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Identifier); } if (version_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Version); } if (Metadata.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Metadata); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SavedUserObject other) { if (other == null) { return; } if (other.Identifier.Length != 0) { Identifier = other.Identifier; } if (other.version_ != null) { if (version_ == null) { Version = new VersionDef(); } Version.MergeFrom(other.Version); } if (other.Metadata.Length != 0) { Metadata = other.Metadata; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Identifier = input.ReadString(); break; case 18u: if (version_ == null) { Version = new VersionDef(); } input.ReadMessage((IMessage)(object)Version); break; case 26u: Metadata = input.ReadString(); break; } } } } public sealed class SavedAsset : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SavedAsset())); private UnknownFieldSet _unknownFields; public const int AssetFileDefIndexFieldNumber = 1; private int assetFileDefIndex_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[3]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public int AssetFileDefIndex { get { return assetFileDefIndex_; } set { assetFileDefIndex_ = value; } } [DebuggerNonUserCode] public SavedAsset() { } [DebuggerNonUserCode] public SavedAsset(SavedAsset other) : this() { assetFileDefIndex_ = other.assetFileDefIndex_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SavedAsset Clone() { return new SavedAsset(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SavedAsset); } [DebuggerNonUserCode] public bool Equals(SavedAsset other) { if (other == null) { return false; } if (other == this) { return true; } if (AssetFileDefIndex != other.AssetFileDefIndex) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (AssetFileDefIndex != 0) { num ^= AssetFileDefIndex.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (AssetFileDefIndex != 0) { output.WriteRawTag((byte)8); output.WriteInt32(AssetFileDefIndex); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (AssetFileDefIndex != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(AssetFileDefIndex); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SavedAsset other) { if (other != null) { if (other.AssetFileDefIndex != 0) { AssetFileDefIndex = other.AssetFileDefIndex; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 8) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { AssetFileDefIndex = input.ReadInt32(); } } } } public sealed class SavedFunction : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SavedFunction())); private UnknownFieldSet _unknownFields; public const int ConcreteFunctionsFieldNumber = 1; private static readonly FieldCodec _repeated_concreteFunctions_codec = FieldCodec.ForString(10u); private readonly RepeatedField concreteFunctions_ = new RepeatedField(); public const int FunctionSpecFieldNumber = 2; private FunctionSpec functionSpec_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[4]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField ConcreteFunctions => concreteFunctions_; [DebuggerNonUserCode] public FunctionSpec FunctionSpec { get { return functionSpec_; } set { functionSpec_ = value; } } [DebuggerNonUserCode] public SavedFunction() { } [DebuggerNonUserCode] public SavedFunction(SavedFunction other) : this() { concreteFunctions_ = other.concreteFunctions_.Clone(); functionSpec_ = ((other.functionSpec_ != null) ? other.functionSpec_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SavedFunction Clone() { return new SavedFunction(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SavedFunction); } [DebuggerNonUserCode] public bool Equals(SavedFunction other) { if (other == null) { return false; } if (other == this) { return true; } if (!concreteFunctions_.Equals(other.concreteFunctions_)) { return false; } if (!object.Equals(FunctionSpec, other.FunctionSpec)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)concreteFunctions_).GetHashCode(); if (functionSpec_ != null) { num ^= FunctionSpec.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { concreteFunctions_.WriteTo(output, _repeated_concreteFunctions_codec); if (functionSpec_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)FunctionSpec); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += concreteFunctions_.CalculateSize(_repeated_concreteFunctions_codec); if (functionSpec_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)FunctionSpec); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SavedFunction other) { if (other == null) { return; } concreteFunctions_.Add((IEnumerable)other.concreteFunctions_); if (other.functionSpec_ != null) { if (functionSpec_ == null) { FunctionSpec = new FunctionSpec(); } FunctionSpec.MergeFrom(other.FunctionSpec); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: concreteFunctions_.AddEntriesFrom(input, _repeated_concreteFunctions_codec); break; case 18u: if (functionSpec_ == null) { FunctionSpec = new FunctionSpec(); } input.ReadMessage((IMessage)(object)FunctionSpec); break; } } } } public sealed class CapturedTensor : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new CapturedTensor())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int ConcreteFunctionFieldNumber = 2; private string concreteFunction_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[5]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string ConcreteFunction { get { return concreteFunction_; } set { concreteFunction_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public CapturedTensor() { } [DebuggerNonUserCode] public CapturedTensor(CapturedTensor other) : this() { name_ = other.name_; concreteFunction_ = other.concreteFunction_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public CapturedTensor Clone() { return new CapturedTensor(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as CapturedTensor); } [DebuggerNonUserCode] public bool Equals(CapturedTensor other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (ConcreteFunction != other.ConcreteFunction) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (ConcreteFunction.Length != 0) { num ^= ConcreteFunction.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (ConcreteFunction.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(ConcreteFunction); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (ConcreteFunction.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(ConcreteFunction); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(CapturedTensor other) { if (other != null) { if (other.Name.Length != 0) { Name = other.Name; } if (other.ConcreteFunction.Length != 0) { ConcreteFunction = other.ConcreteFunction; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: ConcreteFunction = input.ReadString(); break; } } } } public sealed class SavedConcreteFunction : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SavedConcreteFunction())); private UnknownFieldSet _unknownFields; public const int BoundInputsFieldNumber = 2; private static readonly FieldCodec _repeated_boundInputs_codec = FieldCodec.ForInt32(18u); private readonly RepeatedField boundInputs_ = new RepeatedField(); public const int CanonicalizedInputSignatureFieldNumber = 3; private StructuredValue canonicalizedInputSignature_; public const int OutputSignatureFieldNumber = 4; private StructuredValue outputSignature_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[6]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField BoundInputs => boundInputs_; [DebuggerNonUserCode] public StructuredValue CanonicalizedInputSignature { get { return canonicalizedInputSignature_; } set { canonicalizedInputSignature_ = value; } } [DebuggerNonUserCode] public StructuredValue OutputSignature { get { return outputSignature_; } set { outputSignature_ = value; } } [DebuggerNonUserCode] public SavedConcreteFunction() { } [DebuggerNonUserCode] public SavedConcreteFunction(SavedConcreteFunction other) : this() { boundInputs_ = other.boundInputs_.Clone(); canonicalizedInputSignature_ = ((other.canonicalizedInputSignature_ != null) ? other.canonicalizedInputSignature_.Clone() : null); outputSignature_ = ((other.outputSignature_ != null) ? other.outputSignature_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SavedConcreteFunction Clone() { return new SavedConcreteFunction(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SavedConcreteFunction); } [DebuggerNonUserCode] public bool Equals(SavedConcreteFunction other) { if (other == null) { return false; } if (other == this) { return true; } if (!boundInputs_.Equals(other.boundInputs_)) { return false; } if (!object.Equals(CanonicalizedInputSignature, other.CanonicalizedInputSignature)) { return false; } if (!object.Equals(OutputSignature, other.OutputSignature)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)boundInputs_).GetHashCode(); if (canonicalizedInputSignature_ != null) { num ^= CanonicalizedInputSignature.GetHashCode(); } if (outputSignature_ != null) { num ^= OutputSignature.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { boundInputs_.WriteTo(output, _repeated_boundInputs_codec); if (canonicalizedInputSignature_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)CanonicalizedInputSignature); } if (outputSignature_ != null) { output.WriteRawTag((byte)34); output.WriteMessage((IMessage)(object)OutputSignature); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += boundInputs_.CalculateSize(_repeated_boundInputs_codec); if (canonicalizedInputSignature_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)CanonicalizedInputSignature); } if (outputSignature_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)OutputSignature); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SavedConcreteFunction other) { if (other == null) { return; } boundInputs_.Add((IEnumerable)other.boundInputs_); if (other.canonicalizedInputSignature_ != null) { if (canonicalizedInputSignature_ == null) { CanonicalizedInputSignature = new StructuredValue(); } CanonicalizedInputSignature.MergeFrom(other.CanonicalizedInputSignature); } if (other.outputSignature_ != null) { if (outputSignature_ == null) { OutputSignature = new StructuredValue(); } OutputSignature.MergeFrom(other.OutputSignature); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 16u: case 18u: boundInputs_.AddEntriesFrom(input, _repeated_boundInputs_codec); break; case 26u: if (canonicalizedInputSignature_ == null) { CanonicalizedInputSignature = new StructuredValue(); } input.ReadMessage((IMessage)(object)CanonicalizedInputSignature); break; case 34u: if (outputSignature_ == null) { OutputSignature = new StructuredValue(); } input.ReadMessage((IMessage)(object)OutputSignature); break; } } } } public sealed class SavedBareConcreteFunction : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SavedBareConcreteFunction())); private UnknownFieldSet _unknownFields; public const int ConcreteFunctionNameFieldNumber = 1; private string concreteFunctionName_ = ""; public const int ArgumentKeywordsFieldNumber = 2; private static readonly FieldCodec _repeated_argumentKeywords_codec = FieldCodec.ForString(18u); private readonly RepeatedField argumentKeywords_ = new RepeatedField(); public const int AllowedPositionalArgumentsFieldNumber = 3; private long allowedPositionalArguments_; public const int FunctionSpecFieldNumber = 4; private FunctionSpec functionSpec_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[7]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string ConcreteFunctionName { get { return concreteFunctionName_; } set { concreteFunctionName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public RepeatedField ArgumentKeywords => argumentKeywords_; [DebuggerNonUserCode] public long AllowedPositionalArguments { get { return allowedPositionalArguments_; } set { allowedPositionalArguments_ = value; } } [DebuggerNonUserCode] public FunctionSpec FunctionSpec { get { return functionSpec_; } set { functionSpec_ = value; } } [DebuggerNonUserCode] public SavedBareConcreteFunction() { } [DebuggerNonUserCode] public SavedBareConcreteFunction(SavedBareConcreteFunction other) : this() { concreteFunctionName_ = other.concreteFunctionName_; argumentKeywords_ = other.argumentKeywords_.Clone(); allowedPositionalArguments_ = other.allowedPositionalArguments_; functionSpec_ = ((other.functionSpec_ != null) ? other.functionSpec_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SavedBareConcreteFunction Clone() { return new SavedBareConcreteFunction(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SavedBareConcreteFunction); } [DebuggerNonUserCode] public bool Equals(SavedBareConcreteFunction other) { if (other == null) { return false; } if (other == this) { return true; } if (ConcreteFunctionName != other.ConcreteFunctionName) { return false; } if (!argumentKeywords_.Equals(other.argumentKeywords_)) { return false; } if (AllowedPositionalArguments != other.AllowedPositionalArguments) { return false; } if (!object.Equals(FunctionSpec, other.FunctionSpec)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (ConcreteFunctionName.Length != 0) { num ^= ConcreteFunctionName.GetHashCode(); } num ^= ((object)argumentKeywords_).GetHashCode(); if (AllowedPositionalArguments != 0L) { num ^= AllowedPositionalArguments.GetHashCode(); } if (functionSpec_ != null) { num ^= FunctionSpec.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (ConcreteFunctionName.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(ConcreteFunctionName); } argumentKeywords_.WriteTo(output, _repeated_argumentKeywords_codec); if (AllowedPositionalArguments != 0L) { output.WriteRawTag((byte)24); output.WriteInt64(AllowedPositionalArguments); } if (functionSpec_ != null) { output.WriteRawTag((byte)34); output.WriteMessage((IMessage)(object)FunctionSpec); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (ConcreteFunctionName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(ConcreteFunctionName); } num += argumentKeywords_.CalculateSize(_repeated_argumentKeywords_codec); if (AllowedPositionalArguments != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(AllowedPositionalArguments); } if (functionSpec_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)FunctionSpec); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SavedBareConcreteFunction other) { if (other == null) { return; } if (other.ConcreteFunctionName.Length != 0) { ConcreteFunctionName = other.ConcreteFunctionName; } argumentKeywords_.Add((IEnumerable)other.argumentKeywords_); if (other.AllowedPositionalArguments != 0L) { AllowedPositionalArguments = other.AllowedPositionalArguments; } if (other.functionSpec_ != null) { if (functionSpec_ == null) { FunctionSpec = new FunctionSpec(); } FunctionSpec.MergeFrom(other.FunctionSpec); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: ConcreteFunctionName = input.ReadString(); break; case 18u: argumentKeywords_.AddEntriesFrom(input, _repeated_argumentKeywords_codec); break; case 24u: AllowedPositionalArguments = input.ReadInt64(); break; case 34u: if (functionSpec_ == null) { FunctionSpec = new FunctionSpec(); } input.ReadMessage((IMessage)(object)FunctionSpec); break; } } } } public sealed class SavedConstant : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SavedConstant())); private UnknownFieldSet _unknownFields; public const int OperationFieldNumber = 1; private string operation_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[8]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Operation { get { return operation_; } set { operation_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public SavedConstant() { } [DebuggerNonUserCode] public SavedConstant(SavedConstant other) : this() { operation_ = other.operation_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SavedConstant Clone() { return new SavedConstant(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SavedConstant); } [DebuggerNonUserCode] public bool Equals(SavedConstant other) { if (other == null) { return false; } if (other == this) { return true; } if (Operation != other.Operation) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Operation.Length != 0) { num ^= Operation.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Operation.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Operation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Operation.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Operation); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SavedConstant other) { if (other != null) { if (other.Operation.Length != 0) { Operation = other.Operation; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { Operation = input.ReadString(); } } } } public sealed class SavedVariable : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SavedVariable())); private UnknownFieldSet _unknownFields; public const int DtypeFieldNumber = 1; private DataType dtype_; public const int ShapeFieldNumber = 2; private TensorShapeProto shape_; public const int TrainableFieldNumber = 3; private bool trainable_; public const int SynchronizationFieldNumber = 4; private VariableSynchronization synchronization_; public const int AggregationFieldNumber = 5; private VariableAggregation aggregation_; public const int NameFieldNumber = 6; private string name_ = ""; public const int DeviceFieldNumber = 7; private string device_ = ""; public const int ExperimentalDistributedVariableComponentsFieldNumber = 8; private static readonly FieldCodec _repeated_experimentalDistributedVariableComponents_codec = FieldCodec.ForMessage(66u, Parser); private readonly RepeatedField experimentalDistributedVariableComponents_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[9]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public DataType Dtype { get { return dtype_; } set { dtype_ = value; } } [DebuggerNonUserCode] public TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } [DebuggerNonUserCode] public bool Trainable { get { return trainable_; } set { trainable_ = value; } } [DebuggerNonUserCode] public VariableSynchronization Synchronization { get { return synchronization_; } set { synchronization_ = value; } } [DebuggerNonUserCode] public VariableAggregation Aggregation { get { return aggregation_; } set { aggregation_ = value; } } [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string Device { get { return device_; } set { device_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public RepeatedField ExperimentalDistributedVariableComponents => experimentalDistributedVariableComponents_; [DebuggerNonUserCode] public SavedVariable() { } [DebuggerNonUserCode] public SavedVariable(SavedVariable other) : this() { dtype_ = other.dtype_; shape_ = ((other.shape_ != null) ? other.shape_.Clone() : null); trainable_ = other.trainable_; synchronization_ = other.synchronization_; aggregation_ = other.aggregation_; name_ = other.name_; device_ = other.device_; experimentalDistributedVariableComponents_ = other.experimentalDistributedVariableComponents_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SavedVariable Clone() { return new SavedVariable(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SavedVariable); } [DebuggerNonUserCode] public bool Equals(SavedVariable other) { if (other == null) { return false; } if (other == this) { return true; } if (Dtype != other.Dtype) { return false; } if (!object.Equals(Shape, other.Shape)) { return false; } if (Trainable != other.Trainable) { return false; } if (Synchronization != other.Synchronization) { return false; } if (Aggregation != other.Aggregation) { return false; } if (Name != other.Name) { return false; } if (Device != other.Device) { return false; } if (!experimentalDistributedVariableComponents_.Equals(other.experimentalDistributedVariableComponents_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Dtype != DataType.DtInvalid) { num ^= Dtype.GetHashCode(); } if (shape_ != null) { num ^= Shape.GetHashCode(); } if (Trainable) { num ^= Trainable.GetHashCode(); } if (Synchronization != VariableSynchronization.Auto) { num ^= Synchronization.GetHashCode(); } if (Aggregation != VariableAggregation.None) { num ^= Aggregation.GetHashCode(); } if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (Device.Length != 0) { num ^= Device.GetHashCode(); } num ^= ((object)experimentalDistributedVariableComponents_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Dtype != DataType.DtInvalid) { output.WriteRawTag((byte)8); output.WriteEnum((int)Dtype); } if (shape_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)Shape); } if (Trainable) { output.WriteRawTag((byte)24); output.WriteBool(Trainable); } if (Synchronization != VariableSynchronization.Auto) { output.WriteRawTag((byte)32); output.WriteEnum((int)Synchronization); } if (Aggregation != VariableAggregation.None) { output.WriteRawTag((byte)40); output.WriteEnum((int)Aggregation); } if (Name.Length != 0) { output.WriteRawTag((byte)50); output.WriteString(Name); } if (Device.Length != 0) { output.WriteRawTag((byte)58); output.WriteString(Device); } experimentalDistributedVariableComponents_.WriteTo(output, _repeated_experimentalDistributedVariableComponents_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Dtype != DataType.DtInvalid) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Dtype); } if (shape_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Shape); } if (Trainable) { num += 2; } if (Synchronization != VariableSynchronization.Auto) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Synchronization); } if (Aggregation != VariableAggregation.None) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Aggregation); } if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (Device.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Device); } num += experimentalDistributedVariableComponents_.CalculateSize(_repeated_experimentalDistributedVariableComponents_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SavedVariable other) { if (other == null) { return; } if (other.Dtype != DataType.DtInvalid) { Dtype = other.Dtype; } if (other.shape_ != null) { if (shape_ == null) { Shape = new TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.Trainable) { Trainable = other.Trainable; } if (other.Synchronization != VariableSynchronization.Auto) { Synchronization = other.Synchronization; } if (other.Aggregation != VariableAggregation.None) { Aggregation = other.Aggregation; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Device.Length != 0) { Device = other.Device; } experimentalDistributedVariableComponents_.Add((IEnumerable)other.experimentalDistributedVariableComponents_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: Dtype = (DataType)input.ReadEnum(); break; case 18u: if (shape_ == null) { Shape = new TensorShapeProto(); } input.ReadMessage((IMessage)(object)Shape); break; case 24u: Trainable = input.ReadBool(); break; case 32u: Synchronization = (VariableSynchronization)input.ReadEnum(); break; case 40u: Aggregation = (VariableAggregation)input.ReadEnum(); break; case 50u: Name = input.ReadString(); break; case 58u: Device = input.ReadString(); break; case 66u: experimentalDistributedVariableComponents_.AddEntriesFrom(input, _repeated_experimentalDistributedVariableComponents_codec); break; } } } } public sealed class FunctionSpec : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public enum JitCompile { [OriginalName("DEFAULT")] Default, [OriginalName("ON")] On, [OriginalName("OFF")] Off } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new FunctionSpec())); private UnknownFieldSet _unknownFields; public const int FullargspecFieldNumber = 1; private StructuredValue fullargspec_; public const int IsMethodFieldNumber = 2; private bool isMethod_; public const int InputSignatureFieldNumber = 5; private StructuredValue inputSignature_; public const int JitCompileFieldNumber = 6; private Types.JitCompile jitCompile_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[10]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public StructuredValue Fullargspec { get { return fullargspec_; } set { fullargspec_ = value; } } [DebuggerNonUserCode] public bool IsMethod { get { return isMethod_; } set { isMethod_ = value; } } [DebuggerNonUserCode] public StructuredValue InputSignature { get { return inputSignature_; } set { inputSignature_ = value; } } [DebuggerNonUserCode] public Types.JitCompile JitCompile { get { return jitCompile_; } set { jitCompile_ = value; } } [DebuggerNonUserCode] public FunctionSpec() { } [DebuggerNonUserCode] public FunctionSpec(FunctionSpec other) : this() { fullargspec_ = ((other.fullargspec_ != null) ? other.fullargspec_.Clone() : null); isMethod_ = other.isMethod_; inputSignature_ = ((other.inputSignature_ != null) ? other.inputSignature_.Clone() : null); jitCompile_ = other.jitCompile_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public FunctionSpec Clone() { return new FunctionSpec(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as FunctionSpec); } [DebuggerNonUserCode] public bool Equals(FunctionSpec other) { if (other == null) { return false; } if (other == this) { return true; } if (!object.Equals(Fullargspec, other.Fullargspec)) { return false; } if (IsMethod != other.IsMethod) { return false; } if (!object.Equals(InputSignature, other.InputSignature)) { return false; } if (JitCompile != other.JitCompile) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (fullargspec_ != null) { num ^= Fullargspec.GetHashCode(); } if (IsMethod) { num ^= IsMethod.GetHashCode(); } if (inputSignature_ != null) { num ^= InputSignature.GetHashCode(); } if (JitCompile != Types.JitCompile.Default) { num ^= JitCompile.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (fullargspec_ != null) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)Fullargspec); } if (IsMethod) { output.WriteRawTag((byte)16); output.WriteBool(IsMethod); } if (inputSignature_ != null) { output.WriteRawTag((byte)42); output.WriteMessage((IMessage)(object)InputSignature); } if (JitCompile != Types.JitCompile.Default) { output.WriteRawTag((byte)48); output.WriteEnum((int)JitCompile); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (fullargspec_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Fullargspec); } if (IsMethod) { num += 2; } if (inputSignature_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)InputSignature); } if (JitCompile != Types.JitCompile.Default) { num += 1 + CodedOutputStream.ComputeEnumSize((int)JitCompile); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(FunctionSpec other) { if (other == null) { return; } if (other.fullargspec_ != null) { if (fullargspec_ == null) { Fullargspec = new StructuredValue(); } Fullargspec.MergeFrom(other.Fullargspec); } if (other.IsMethod) { IsMethod = other.IsMethod; } if (other.inputSignature_ != null) { if (inputSignature_ == null) { InputSignature = new StructuredValue(); } InputSignature.MergeFrom(other.InputSignature); } if (other.JitCompile != Types.JitCompile.Default) { JitCompile = other.JitCompile; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: if (fullargspec_ == null) { Fullargspec = new StructuredValue(); } input.ReadMessage((IMessage)(object)Fullargspec); break; case 16u: IsMethod = input.ReadBool(); break; case 42u: if (inputSignature_ == null) { InputSignature = new StructuredValue(); } input.ReadMessage((IMessage)(object)InputSignature); break; case 48u: JitCompile = (Types.JitCompile)input.ReadEnum(); break; } } } } public sealed class SavedResource : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SavedResource())); private UnknownFieldSet _unknownFields; public const int DeviceFieldNumber = 1; private string device_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[11]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Device { get { return device_; } set { device_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public SavedResource() { } [DebuggerNonUserCode] public SavedResource(SavedResource other) : this() { device_ = other.device_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SavedResource Clone() { return new SavedResource(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SavedResource); } [DebuggerNonUserCode] public bool Equals(SavedResource other) { if (other == null) { return false; } if (other == this) { return true; } if (Device != other.Device) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Device.Length != 0) { num ^= Device.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Device.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Device); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Device.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Device); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SavedResource other) { if (other != null) { if (other.Device.Length != 0) { Device = other.Device; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { Device = input.ReadString(); } } } } public sealed class SaveableObject : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SaveableObject())); private UnknownFieldSet _unknownFields; public const int SaveFunctionFieldNumber = 2; private int saveFunction_; public const int RestoreFunctionFieldNumber = 3; private int restoreFunction_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SavedObjectGraphReflection.Descriptor.MessageTypes[12]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public int SaveFunction { get { return saveFunction_; } set { saveFunction_ = value; } } [DebuggerNonUserCode] public int RestoreFunction { get { return restoreFunction_; } set { restoreFunction_ = value; } } [DebuggerNonUserCode] public SaveableObject() { } [DebuggerNonUserCode] public SaveableObject(SaveableObject other) : this() { saveFunction_ = other.saveFunction_; restoreFunction_ = other.restoreFunction_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SaveableObject Clone() { return new SaveableObject(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SaveableObject); } [DebuggerNonUserCode] public bool Equals(SaveableObject other) { if (other == null) { return false; } if (other == this) { return true; } if (SaveFunction != other.SaveFunction) { return false; } if (RestoreFunction != other.RestoreFunction) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (SaveFunction != 0) { num ^= SaveFunction.GetHashCode(); } if (RestoreFunction != 0) { num ^= RestoreFunction.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (SaveFunction != 0) { output.WriteRawTag((byte)16); output.WriteInt32(SaveFunction); } if (RestoreFunction != 0) { output.WriteRawTag((byte)24); output.WriteInt32(RestoreFunction); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (SaveFunction != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(SaveFunction); } if (RestoreFunction != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(RestoreFunction); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SaveableObject other) { if (other != null) { if (other.SaveFunction != 0) { SaveFunction = other.SaveFunction; } if (other.RestoreFunction != 0) { RestoreFunction = other.RestoreFunction; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 16u: SaveFunction = input.ReadInt32(); break; case 24u: RestoreFunction = input.ReadInt32(); break; } } } } public static class SaverReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static SaverReflection() { //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Expected O, but got Unknown //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00ee: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CiR0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vc2F2ZXIucHJvdG8SC3RlbnNv" + "cmJvYXJkIp8CCghTYXZlckRlZhIcChRmaWxlbmFtZV90ZW5zb3JfbmFtZRgB" + "IAEoCRIYChBzYXZlX3RlbnNvcl9uYW1lGAIgASgJEhcKD3Jlc3RvcmVfb3Bf" + "bmFtZRgDIAEoCRITCgttYXhfdG9fa2VlcBgEIAEoBRIPCgdzaGFyZGVkGAUg" + "ASgIEiUKHWtlZXBfY2hlY2twb2ludF9ldmVyeV9uX2hvdXJzGAYgASgCEj4K" + "B3ZlcnNpb24YByABKA4yLS50ZW5zb3Jib2FyZC5TYXZlckRlZi5DaGVja3Bv" + "aW50Rm9ybWF0VmVyc2lvbiI1ChdDaGVja3BvaW50Rm9ybWF0VmVyc2lvbhIK" + "CgZMRUdBQ1kQABIGCgJWMRABEgYKAlYyEAJCfgoTb3JnLnRlbnNvcmZsb3cu" + "dXRpbEILU2F2ZXJQcm90b3NQAVpVZ2l0aHViLmNvbS90ZW5zb3JmbG93L3Rl" + "bnNvcmZsb3cvdGVuc29yZmxvdy9nby9jb3JlL3Byb3RvYnVmL2Zvcl9jb3Jl" + "X3Byb3Rvc19nb19wcm90b/gBAWIGcHJvdG8z"), (FileDescriptor[])(object)new FileDescriptor[0], new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(SaverDef), (MessageParser)(object)SaverDef.Parser, new string[7] { "FilenameTensorName", "SaveTensorName", "RestoreOpName", "MaxToKeep", "Sharded", "KeepCheckpointEveryNHours", "Version" }, (string[])null, new Type[1] { typeof(SaverDef.Types.CheckpointFormatVersion) }, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class SaverDef : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public enum CheckpointFormatVersion { [OriginalName("LEGACY")] Legacy, [OriginalName("V1")] V1, [OriginalName("V2")] V2 } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new SaverDef())); private UnknownFieldSet _unknownFields; public const int FilenameTensorNameFieldNumber = 1; private string filenameTensorName_ = ""; public const int SaveTensorNameFieldNumber = 2; private string saveTensorName_ = ""; public const int RestoreOpNameFieldNumber = 3; private string restoreOpName_ = ""; public const int MaxToKeepFieldNumber = 4; private int maxToKeep_; public const int ShardedFieldNumber = 5; private bool sharded_; public const int KeepCheckpointEveryNHoursFieldNumber = 6; private float keepCheckpointEveryNHours_; public const int VersionFieldNumber = 7; private Types.CheckpointFormatVersion version_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SaverReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string FilenameTensorName { get { return filenameTensorName_; } set { filenameTensorName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string SaveTensorName { get { return saveTensorName_; } set { saveTensorName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string RestoreOpName { get { return restoreOpName_; } set { restoreOpName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public int MaxToKeep { get { return maxToKeep_; } set { maxToKeep_ = value; } } [DebuggerNonUserCode] public bool Sharded { get { return sharded_; } set { sharded_ = value; } } [DebuggerNonUserCode] public float KeepCheckpointEveryNHours { get { return keepCheckpointEveryNHours_; } set { keepCheckpointEveryNHours_ = value; } } [DebuggerNonUserCode] public Types.CheckpointFormatVersion Version { get { return version_; } set { version_ = value; } } [DebuggerNonUserCode] public SaverDef() { } [DebuggerNonUserCode] public SaverDef(SaverDef other) : this() { filenameTensorName_ = other.filenameTensorName_; saveTensorName_ = other.saveTensorName_; restoreOpName_ = other.restoreOpName_; maxToKeep_ = other.maxToKeep_; sharded_ = other.sharded_; keepCheckpointEveryNHours_ = other.keepCheckpointEveryNHours_; version_ = other.version_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SaverDef Clone() { return new SaverDef(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SaverDef); } [DebuggerNonUserCode] public bool Equals(SaverDef other) { if (other == null) { return false; } if (other == this) { return true; } if (FilenameTensorName != other.FilenameTensorName) { return false; } if (SaveTensorName != other.SaveTensorName) { return false; } if (RestoreOpName != other.RestoreOpName) { return false; } if (MaxToKeep != other.MaxToKeep) { return false; } if (Sharded != other.Sharded) { return false; } if (!ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(KeepCheckpointEveryNHours, other.KeepCheckpointEveryNHours)) { return false; } if (Version != other.Version) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (FilenameTensorName.Length != 0) { num ^= FilenameTensorName.GetHashCode(); } if (SaveTensorName.Length != 0) { num ^= SaveTensorName.GetHashCode(); } if (RestoreOpName.Length != 0) { num ^= RestoreOpName.GetHashCode(); } if (MaxToKeep != 0) { num ^= MaxToKeep.GetHashCode(); } if (Sharded) { num ^= Sharded.GetHashCode(); } if (KeepCheckpointEveryNHours != 0f) { num ^= ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(KeepCheckpointEveryNHours); } if (Version != Types.CheckpointFormatVersion.Legacy) { num ^= Version.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (FilenameTensorName.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(FilenameTensorName); } if (SaveTensorName.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(SaveTensorName); } if (RestoreOpName.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(RestoreOpName); } if (MaxToKeep != 0) { output.WriteRawTag((byte)32); output.WriteInt32(MaxToKeep); } if (Sharded) { output.WriteRawTag((byte)40); output.WriteBool(Sharded); } if (KeepCheckpointEveryNHours != 0f) { output.WriteRawTag((byte)53); output.WriteFloat(KeepCheckpointEveryNHours); } if (Version != Types.CheckpointFormatVersion.Legacy) { output.WriteRawTag((byte)56); output.WriteEnum((int)Version); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (FilenameTensorName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(FilenameTensorName); } if (SaveTensorName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(SaveTensorName); } if (RestoreOpName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(RestoreOpName); } if (MaxToKeep != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(MaxToKeep); } if (Sharded) { num += 2; } if (KeepCheckpointEveryNHours != 0f) { num += 5; } if (Version != Types.CheckpointFormatVersion.Legacy) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Version); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SaverDef other) { if (other != null) { if (other.FilenameTensorName.Length != 0) { FilenameTensorName = other.FilenameTensorName; } if (other.SaveTensorName.Length != 0) { SaveTensorName = other.SaveTensorName; } if (other.RestoreOpName.Length != 0) { RestoreOpName = other.RestoreOpName; } if (other.MaxToKeep != 0) { MaxToKeep = other.MaxToKeep; } if (other.Sharded) { Sharded = other.Sharded; } if (other.KeepCheckpointEveryNHours != 0f) { KeepCheckpointEveryNHours = other.KeepCheckpointEveryNHours; } if (other.Version != Types.CheckpointFormatVersion.Legacy) { Version = other.Version; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: FilenameTensorName = input.ReadString(); break; case 18u: SaveTensorName = input.ReadString(); break; case 26u: RestoreOpName = input.ReadString(); break; case 32u: MaxToKeep = input.ReadInt32(); break; case 40u: Sharded = input.ReadBool(); break; case 53u: KeepCheckpointEveryNHours = input.ReadFloat(); break; case 56u: Version = (Types.CheckpointFormatVersion)input.ReadEnum(); break; } } } } public static class StepStatsReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static StepStatsReflection() { //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Expected O, but got Unknown //IL_01f8: Unknown result type (might be due to invalid IL or missing references) //IL_01fe: Expected O, but got Unknown //IL_0229: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Expected O, but got Unknown //IL_027a: Unknown result type (might be due to invalid IL or missing references) //IL_0280: Expected O, but got Unknown //IL_032c: Unknown result type (might be due to invalid IL or missing references) //IL_0332: Expected O, but got Unknown //IL_036a: Unknown result type (might be due to invalid IL or missing references) //IL_0370: Expected O, but got Unknown //IL_0393: Unknown result type (might be due to invalid IL or missing references) //IL_0399: Expected O, but got Unknown //IL_0399: Unknown result type (might be due to invalid IL or missing references) //IL_03a3: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("Cil0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vc3RlcF9zdGF0cy5wcm90bxIL" + "dGVuc29yYm9hcmQaNXRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by9hbGxvY2F0" + "aW9uX2Rlc2NyaXB0aW9uLnByb3RvGjF0ZW5zb3Jib2FyZC9jb21wYXQvcHJv" + "dG8vdGVuc29yX2Rlc2NyaXB0aW9uLnByb3RvIj0KEEFsbG9jYXRpb25SZWNv" + "cmQSFAoMYWxsb2NfbWljcm9zGAEgASgDEhMKC2FsbG9jX2J5dGVzGAIgASgD" + "IsUBChNBbGxvY2F0b3JNZW1vcnlVc2VkEhYKDmFsbG9jYXRvcl9uYW1lGAEg" + "ASgJEhMKC3RvdGFsX2J5dGVzGAIgASgDEhIKCnBlYWtfYnl0ZXMYAyABKAMS" + "EgoKbGl2ZV9ieXRlcxgEIAEoAxI5ChJhbGxvY2F0aW9uX3JlY29yZHMYBiAD" + "KAsyHS50ZW5zb3Jib2FyZC5BbGxvY2F0aW9uUmVjb3JkEh4KFmFsbG9jYXRv" + "cl9ieXRlc19pbl91c2UYBSABKAMiVgoKTm9kZU91dHB1dBIMCgRzbG90GAEg" + "ASgFEjoKEnRlbnNvcl9kZXNjcmlwdGlvbhgDIAEoCzIeLnRlbnNvcmJvYXJk" + "LlRlbnNvckRlc2NyaXB0aW9uIuwBCgtNZW1vcnlTdGF0cxIYChB0ZW1wX21l" + "bW9yeV9zaXplGAEgASgDEh4KFnBlcnNpc3RlbnRfbWVtb3J5X3NpemUYAyAB" + "KAMSIwobcGVyc2lzdGVudF90ZW5zb3JfYWxsb2NfaWRzGAUgAygDEiMKF2Rl" + "dmljZV90ZW1wX21lbW9yeV9zaXplGAIgASgDQgIYARIpCh1kZXZpY2VfcGVy" + "c2lzdGVudF9tZW1vcnlfc2l6ZRgEIAEoA0ICGAESLgoiZGV2aWNlX3BlcnNp" + "c3RlbnRfdGVuc29yX2FsbG9jX2lkcxgGIAMoA0ICGAEiogQKDU5vZGVFeGVj" + "U3RhdHMSEQoJbm9kZV9uYW1lGAEgASgJEhgKEGFsbF9zdGFydF9taWNyb3MY" + "AiABKAMSGwoTb3Bfc3RhcnRfcmVsX21pY3JvcxgDIAEoAxIZChFvcF9lbmRf" + "cmVsX21pY3JvcxgEIAEoAxIaChJhbGxfZW5kX3JlbF9taWNyb3MYBSABKAMS" + "MAoGbWVtb3J5GAYgAygLMiAudGVuc29yYm9hcmQuQWxsb2NhdG9yTWVtb3J5" + "VXNlZBInCgZvdXRwdXQYByADKAsyFy50ZW5zb3Jib2FyZC5Ob2RlT3V0cHV0" + "EhYKDnRpbWVsaW5lX2xhYmVsGAggASgJEhgKEHNjaGVkdWxlZF9taWNyb3MY" + "CSABKAMSEQoJdGhyZWFkX2lkGAogASgNEj0KEXJlZmVyZW5jZWRfdGVuc29y" + "GAsgAygLMiIudGVuc29yYm9hcmQuQWxsb2NhdGlvbkRlc2NyaXB0aW9uEi4K" + "DG1lbW9yeV9zdGF0cxgMIAEoCzIYLnRlbnNvcmJvYXJkLk1lbW9yeVN0YXRz" + "EhcKD2FsbF9zdGFydF9uYW5vcxgNIAEoAxIaChJvcF9zdGFydF9yZWxfbmFu" + "b3MYDiABKAMSGAoQb3BfZW5kX3JlbF9uYW5vcxgPIAEoAxIZChFhbGxfZW5k" + "X3JlbF9uYW5vcxgQIAEoAxIXCg9zY2hlZHVsZWRfbmFub3MYESABKAMiygEK" + "D0RldmljZVN0ZXBTdGF0cxIOCgZkZXZpY2UYASABKAkSLgoKbm9kZV9zdGF0" + "cxgCIAMoCzIaLnRlbnNvcmJvYXJkLk5vZGVFeGVjU3RhdHMSQwoMdGhyZWFk" + "X25hbWVzGAMgAygLMi0udGVuc29yYm9hcmQuRGV2aWNlU3RlcFN0YXRzLlRo" + "cmVhZE5hbWVzRW50cnkaMgoQVGhyZWFkTmFtZXNFbnRyeRILCgNrZXkYASAB" + "KA0SDQoFdmFsdWUYAiABKAk6AjgBIjwKCVN0ZXBTdGF0cxIvCglkZXZfc3Rh" + "dHMYASADKAsyHC50ZW5zb3Jib2FyZC5EZXZpY2VTdGVwU3RhdHNCgwEKGG9y" + "Zy50ZW5zb3JmbG93LmZyYW1ld29ya0IPU3RlcFN0YXRzUHJvdG9zUAFaUWdp" + "dGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3JmbG93L3RlbnNvcmZsb3cvZ28v" + "Y29yZS9mcmFtZXdvcmsvc3RlcF9zdGF0c19nb19wcm90b/gBAWIGcHJvdG8z"), (FileDescriptor[])(object)new FileDescriptor[2] { AllocationDescriptionReflection.Descriptor, TensorDescriptionReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[7] { new GeneratedClrTypeInfo(typeof(AllocationRecord), (MessageParser)(object)AllocationRecord.Parser, new string[2] { "AllocMicros", "AllocBytes" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(AllocatorMemoryUsed), (MessageParser)(object)AllocatorMemoryUsed.Parser, new string[6] { "AllocatorName", "TotalBytes", "PeakBytes", "LiveBytes", "AllocationRecords", "AllocatorBytesInUse" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(NodeOutput), (MessageParser)(object)NodeOutput.Parser, new string[2] { "Slot", "TensorDescription" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(MemoryStats), (MessageParser)(object)MemoryStats.Parser, new string[6] { "TempMemorySize", "PersistentMemorySize", "PersistentTensorAllocIds", "DeviceTempMemorySize", "DevicePersistentMemorySize", "DevicePersistentTensorAllocIds" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(NodeExecStats), (MessageParser)(object)NodeExecStats.Parser, new string[17] { "NodeName", "AllStartMicros", "OpStartRelMicros", "OpEndRelMicros", "AllEndRelMicros", "Memory", "Output", "TimelineLabel", "ScheduledMicros", "ThreadId", "ReferencedTensor", "MemoryStats", "AllStartNanos", "OpStartRelNanos", "OpEndRelNanos", "AllEndRelNanos", "ScheduledNanos" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(DeviceStepStats), (MessageParser)(object)DeviceStepStats.Parser, new string[3] { "Device", "NodeStats", "ThreadNames" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1]), new GeneratedClrTypeInfo(typeof(StepStats), (MessageParser)(object)StepStats.Parser, new string[1] { "DevStats" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class AllocationRecord : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new AllocationRecord())); private UnknownFieldSet _unknownFields; public const int AllocMicrosFieldNumber = 1; private long allocMicros_; public const int AllocBytesFieldNumber = 2; private long allocBytes_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StepStatsReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public long AllocMicros { get { return allocMicros_; } set { allocMicros_ = value; } } [DebuggerNonUserCode] public long AllocBytes { get { return allocBytes_; } set { allocBytes_ = value; } } [DebuggerNonUserCode] public AllocationRecord() { } [DebuggerNonUserCode] public AllocationRecord(AllocationRecord other) : this() { allocMicros_ = other.allocMicros_; allocBytes_ = other.allocBytes_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public AllocationRecord Clone() { return new AllocationRecord(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as AllocationRecord); } [DebuggerNonUserCode] public bool Equals(AllocationRecord other) { if (other == null) { return false; } if (other == this) { return true; } if (AllocMicros != other.AllocMicros) { return false; } if (AllocBytes != other.AllocBytes) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (AllocMicros != 0L) { num ^= AllocMicros.GetHashCode(); } if (AllocBytes != 0L) { num ^= AllocBytes.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (AllocMicros != 0L) { output.WriteRawTag((byte)8); output.WriteInt64(AllocMicros); } if (AllocBytes != 0L) { output.WriteRawTag((byte)16); output.WriteInt64(AllocBytes); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (AllocMicros != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(AllocMicros); } if (AllocBytes != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(AllocBytes); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(AllocationRecord other) { if (other != null) { if (other.AllocMicros != 0L) { AllocMicros = other.AllocMicros; } if (other.AllocBytes != 0L) { AllocBytes = other.AllocBytes; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: AllocMicros = input.ReadInt64(); break; case 16u: AllocBytes = input.ReadInt64(); break; } } } } public sealed class AllocatorMemoryUsed : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new AllocatorMemoryUsed())); private UnknownFieldSet _unknownFields; public const int AllocatorNameFieldNumber = 1; private string allocatorName_ = ""; public const int TotalBytesFieldNumber = 2; private long totalBytes_; public const int PeakBytesFieldNumber = 3; private long peakBytes_; public const int LiveBytesFieldNumber = 4; private long liveBytes_; public const int AllocationRecordsFieldNumber = 6; private static readonly FieldCodec _repeated_allocationRecords_codec = FieldCodec.ForMessage(50u, AllocationRecord.Parser); private readonly RepeatedField allocationRecords_ = new RepeatedField(); public const int AllocatorBytesInUseFieldNumber = 5; private long allocatorBytesInUse_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StepStatsReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string AllocatorName { get { return allocatorName_; } set { allocatorName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public long TotalBytes { get { return totalBytes_; } set { totalBytes_ = value; } } [DebuggerNonUserCode] public long PeakBytes { get { return peakBytes_; } set { peakBytes_ = value; } } [DebuggerNonUserCode] public long LiveBytes { get { return liveBytes_; } set { liveBytes_ = value; } } [DebuggerNonUserCode] public RepeatedField AllocationRecords => allocationRecords_; [DebuggerNonUserCode] public long AllocatorBytesInUse { get { return allocatorBytesInUse_; } set { allocatorBytesInUse_ = value; } } [DebuggerNonUserCode] public AllocatorMemoryUsed() { } [DebuggerNonUserCode] public AllocatorMemoryUsed(AllocatorMemoryUsed other) : this() { allocatorName_ = other.allocatorName_; totalBytes_ = other.totalBytes_; peakBytes_ = other.peakBytes_; liveBytes_ = other.liveBytes_; allocationRecords_ = other.allocationRecords_.Clone(); allocatorBytesInUse_ = other.allocatorBytesInUse_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public AllocatorMemoryUsed Clone() { return new AllocatorMemoryUsed(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as AllocatorMemoryUsed); } [DebuggerNonUserCode] public bool Equals(AllocatorMemoryUsed other) { if (other == null) { return false; } if (other == this) { return true; } if (AllocatorName != other.AllocatorName) { return false; } if (TotalBytes != other.TotalBytes) { return false; } if (PeakBytes != other.PeakBytes) { return false; } if (LiveBytes != other.LiveBytes) { return false; } if (!allocationRecords_.Equals(other.allocationRecords_)) { return false; } if (AllocatorBytesInUse != other.AllocatorBytesInUse) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (AllocatorName.Length != 0) { num ^= AllocatorName.GetHashCode(); } if (TotalBytes != 0L) { num ^= TotalBytes.GetHashCode(); } if (PeakBytes != 0L) { num ^= PeakBytes.GetHashCode(); } if (LiveBytes != 0L) { num ^= LiveBytes.GetHashCode(); } num ^= ((object)allocationRecords_).GetHashCode(); if (AllocatorBytesInUse != 0L) { num ^= AllocatorBytesInUse.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (AllocatorName.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(AllocatorName); } if (TotalBytes != 0L) { output.WriteRawTag((byte)16); output.WriteInt64(TotalBytes); } if (PeakBytes != 0L) { output.WriteRawTag((byte)24); output.WriteInt64(PeakBytes); } if (LiveBytes != 0L) { output.WriteRawTag((byte)32); output.WriteInt64(LiveBytes); } if (AllocatorBytesInUse != 0L) { output.WriteRawTag((byte)40); output.WriteInt64(AllocatorBytesInUse); } allocationRecords_.WriteTo(output, _repeated_allocationRecords_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (AllocatorName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(AllocatorName); } if (TotalBytes != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(TotalBytes); } if (PeakBytes != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(PeakBytes); } if (LiveBytes != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(LiveBytes); } num += allocationRecords_.CalculateSize(_repeated_allocationRecords_codec); if (AllocatorBytesInUse != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(AllocatorBytesInUse); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(AllocatorMemoryUsed other) { if (other != null) { if (other.AllocatorName.Length != 0) { AllocatorName = other.AllocatorName; } if (other.TotalBytes != 0L) { TotalBytes = other.TotalBytes; } if (other.PeakBytes != 0L) { PeakBytes = other.PeakBytes; } if (other.LiveBytes != 0L) { LiveBytes = other.LiveBytes; } allocationRecords_.Add((IEnumerable)other.allocationRecords_); if (other.AllocatorBytesInUse != 0L) { AllocatorBytesInUse = other.AllocatorBytesInUse; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: AllocatorName = input.ReadString(); break; case 16u: TotalBytes = input.ReadInt64(); break; case 24u: PeakBytes = input.ReadInt64(); break; case 32u: LiveBytes = input.ReadInt64(); break; case 40u: AllocatorBytesInUse = input.ReadInt64(); break; case 50u: allocationRecords_.AddEntriesFrom(input, _repeated_allocationRecords_codec); break; } } } } public sealed class NodeOutput : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new NodeOutput())); private UnknownFieldSet _unknownFields; public const int SlotFieldNumber = 1; private int slot_; public const int TensorDescriptionFieldNumber = 3; private TensorDescription tensorDescription_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StepStatsReflection.Descriptor.MessageTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public int Slot { get { return slot_; } set { slot_ = value; } } [DebuggerNonUserCode] public TensorDescription TensorDescription { get { return tensorDescription_; } set { tensorDescription_ = value; } } [DebuggerNonUserCode] public NodeOutput() { } [DebuggerNonUserCode] public NodeOutput(NodeOutput other) : this() { slot_ = other.slot_; tensorDescription_ = ((other.tensorDescription_ != null) ? other.tensorDescription_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public NodeOutput Clone() { return new NodeOutput(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as NodeOutput); } [DebuggerNonUserCode] public bool Equals(NodeOutput other) { if (other == null) { return false; } if (other == this) { return true; } if (Slot != other.Slot) { return false; } if (!object.Equals(TensorDescription, other.TensorDescription)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Slot != 0) { num ^= Slot.GetHashCode(); } if (tensorDescription_ != null) { num ^= TensorDescription.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Slot != 0) { output.WriteRawTag((byte)8); output.WriteInt32(Slot); } if (tensorDescription_ != null) { output.WriteRawTag((byte)26); output.WriteMessage((IMessage)(object)TensorDescription); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Slot != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Slot); } if (tensorDescription_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)TensorDescription); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(NodeOutput other) { if (other == null) { return; } if (other.Slot != 0) { Slot = other.Slot; } if (other.tensorDescription_ != null) { if (tensorDescription_ == null) { TensorDescription = new TensorDescription(); } TensorDescription.MergeFrom(other.TensorDescription); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: Slot = input.ReadInt32(); break; case 26u: if (tensorDescription_ == null) { TensorDescription = new TensorDescription(); } input.ReadMessage((IMessage)(object)TensorDescription); break; } } } } public sealed class MemoryStats : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new MemoryStats())); private UnknownFieldSet _unknownFields; public const int TempMemorySizeFieldNumber = 1; private long tempMemorySize_; public const int PersistentMemorySizeFieldNumber = 3; private long persistentMemorySize_; public const int PersistentTensorAllocIdsFieldNumber = 5; private static readonly FieldCodec _repeated_persistentTensorAllocIds_codec = FieldCodec.ForInt64(42u); private readonly RepeatedField persistentTensorAllocIds_ = new RepeatedField(); public const int DeviceTempMemorySizeFieldNumber = 2; private long deviceTempMemorySize_; public const int DevicePersistentMemorySizeFieldNumber = 4; private long devicePersistentMemorySize_; public const int DevicePersistentTensorAllocIdsFieldNumber = 6; private static readonly FieldCodec _repeated_devicePersistentTensorAllocIds_codec = FieldCodec.ForInt64(50u); private readonly RepeatedField devicePersistentTensorAllocIds_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StepStatsReflection.Descriptor.MessageTypes[3]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public long TempMemorySize { get { return tempMemorySize_; } set { tempMemorySize_ = value; } } [DebuggerNonUserCode] public long PersistentMemorySize { get { return persistentMemorySize_; } set { persistentMemorySize_ = value; } } [DebuggerNonUserCode] public RepeatedField PersistentTensorAllocIds => persistentTensorAllocIds_; [Obsolete] [DebuggerNonUserCode] public long DeviceTempMemorySize { get { return deviceTempMemorySize_; } set { deviceTempMemorySize_ = value; } } [Obsolete] [DebuggerNonUserCode] public long DevicePersistentMemorySize { get { return devicePersistentMemorySize_; } set { devicePersistentMemorySize_ = value; } } [Obsolete] [DebuggerNonUserCode] public RepeatedField DevicePersistentTensorAllocIds => devicePersistentTensorAllocIds_; [DebuggerNonUserCode] public MemoryStats() { } [DebuggerNonUserCode] public MemoryStats(MemoryStats other) : this() { tempMemorySize_ = other.tempMemorySize_; persistentMemorySize_ = other.persistentMemorySize_; persistentTensorAllocIds_ = other.persistentTensorAllocIds_.Clone(); deviceTempMemorySize_ = other.deviceTempMemorySize_; devicePersistentMemorySize_ = other.devicePersistentMemorySize_; devicePersistentTensorAllocIds_ = other.devicePersistentTensorAllocIds_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public MemoryStats Clone() { return new MemoryStats(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as MemoryStats); } [DebuggerNonUserCode] public bool Equals(MemoryStats other) { if (other == null) { return false; } if (other == this) { return true; } if (TempMemorySize != other.TempMemorySize) { return false; } if (PersistentMemorySize != other.PersistentMemorySize) { return false; } if (!persistentTensorAllocIds_.Equals(other.persistentTensorAllocIds_)) { return false; } if (DeviceTempMemorySize != other.DeviceTempMemorySize) { return false; } if (DevicePersistentMemorySize != other.DevicePersistentMemorySize) { return false; } if (!devicePersistentTensorAllocIds_.Equals(other.devicePersistentTensorAllocIds_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (TempMemorySize != 0L) { num ^= TempMemorySize.GetHashCode(); } if (PersistentMemorySize != 0L) { num ^= PersistentMemorySize.GetHashCode(); } num ^= ((object)persistentTensorAllocIds_).GetHashCode(); if (DeviceTempMemorySize != 0L) { num ^= DeviceTempMemorySize.GetHashCode(); } if (DevicePersistentMemorySize != 0L) { num ^= DevicePersistentMemorySize.GetHashCode(); } num ^= ((object)devicePersistentTensorAllocIds_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (TempMemorySize != 0L) { output.WriteRawTag((byte)8); output.WriteInt64(TempMemorySize); } if (DeviceTempMemorySize != 0L) { output.WriteRawTag((byte)16); output.WriteInt64(DeviceTempMemorySize); } if (PersistentMemorySize != 0L) { output.WriteRawTag((byte)24); output.WriteInt64(PersistentMemorySize); } if (DevicePersistentMemorySize != 0L) { output.WriteRawTag((byte)32); output.WriteInt64(DevicePersistentMemorySize); } persistentTensorAllocIds_.WriteTo(output, _repeated_persistentTensorAllocIds_codec); devicePersistentTensorAllocIds_.WriteTo(output, _repeated_devicePersistentTensorAllocIds_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (TempMemorySize != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(TempMemorySize); } if (PersistentMemorySize != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(PersistentMemorySize); } num += persistentTensorAllocIds_.CalculateSize(_repeated_persistentTensorAllocIds_codec); if (DeviceTempMemorySize != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(DeviceTempMemorySize); } if (DevicePersistentMemorySize != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(DevicePersistentMemorySize); } num += devicePersistentTensorAllocIds_.CalculateSize(_repeated_devicePersistentTensorAllocIds_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(MemoryStats other) { if (other != null) { if (other.TempMemorySize != 0L) { TempMemorySize = other.TempMemorySize; } if (other.PersistentMemorySize != 0L) { PersistentMemorySize = other.PersistentMemorySize; } persistentTensorAllocIds_.Add((IEnumerable)other.persistentTensorAllocIds_); if (other.DeviceTempMemorySize != 0L) { DeviceTempMemorySize = other.DeviceTempMemorySize; } if (other.DevicePersistentMemorySize != 0L) { DevicePersistentMemorySize = other.DevicePersistentMemorySize; } devicePersistentTensorAllocIds_.Add((IEnumerable)other.devicePersistentTensorAllocIds_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: TempMemorySize = input.ReadInt64(); break; case 16u: DeviceTempMemorySize = input.ReadInt64(); break; case 24u: PersistentMemorySize = input.ReadInt64(); break; case 32u: DevicePersistentMemorySize = input.ReadInt64(); break; case 40u: case 42u: persistentTensorAllocIds_.AddEntriesFrom(input, _repeated_persistentTensorAllocIds_codec); break; case 48u: case 50u: devicePersistentTensorAllocIds_.AddEntriesFrom(input, _repeated_devicePersistentTensorAllocIds_codec); break; } } } } public sealed class NodeExecStats : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new NodeExecStats())); private UnknownFieldSet _unknownFields; public const int NodeNameFieldNumber = 1; private string nodeName_ = ""; public const int AllStartMicrosFieldNumber = 2; private long allStartMicros_; public const int OpStartRelMicrosFieldNumber = 3; private long opStartRelMicros_; public const int OpEndRelMicrosFieldNumber = 4; private long opEndRelMicros_; public const int AllEndRelMicrosFieldNumber = 5; private long allEndRelMicros_; public const int MemoryFieldNumber = 6; private static readonly FieldCodec _repeated_memory_codec = FieldCodec.ForMessage(50u, AllocatorMemoryUsed.Parser); private readonly RepeatedField memory_ = new RepeatedField(); public const int OutputFieldNumber = 7; private static readonly FieldCodec _repeated_output_codec = FieldCodec.ForMessage(58u, NodeOutput.Parser); private readonly RepeatedField output_ = new RepeatedField(); public const int TimelineLabelFieldNumber = 8; private string timelineLabel_ = ""; public const int ScheduledMicrosFieldNumber = 9; private long scheduledMicros_; public const int ThreadIdFieldNumber = 10; private uint threadId_; public const int ReferencedTensorFieldNumber = 11; private static readonly FieldCodec _repeated_referencedTensor_codec = FieldCodec.ForMessage(90u, AllocationDescription.Parser); private readonly RepeatedField referencedTensor_ = new RepeatedField(); public const int MemoryStatsFieldNumber = 12; private MemoryStats memoryStats_; public const int AllStartNanosFieldNumber = 13; private long allStartNanos_; public const int OpStartRelNanosFieldNumber = 14; private long opStartRelNanos_; public const int OpEndRelNanosFieldNumber = 15; private long opEndRelNanos_; public const int AllEndRelNanosFieldNumber = 16; private long allEndRelNanos_; public const int ScheduledNanosFieldNumber = 17; private long scheduledNanos_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StepStatsReflection.Descriptor.MessageTypes[4]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string NodeName { get { return nodeName_; } set { nodeName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public long AllStartMicros { get { return allStartMicros_; } set { allStartMicros_ = value; } } [DebuggerNonUserCode] public long OpStartRelMicros { get { return opStartRelMicros_; } set { opStartRelMicros_ = value; } } [DebuggerNonUserCode] public long OpEndRelMicros { get { return opEndRelMicros_; } set { opEndRelMicros_ = value; } } [DebuggerNonUserCode] public long AllEndRelMicros { get { return allEndRelMicros_; } set { allEndRelMicros_ = value; } } [DebuggerNonUserCode] public RepeatedField Memory => memory_; [DebuggerNonUserCode] public RepeatedField Output => output_; [DebuggerNonUserCode] public string TimelineLabel { get { return timelineLabel_; } set { timelineLabel_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public long ScheduledMicros { get { return scheduledMicros_; } set { scheduledMicros_ = value; } } [DebuggerNonUserCode] public uint ThreadId { get { return threadId_; } set { threadId_ = value; } } [DebuggerNonUserCode] public RepeatedField ReferencedTensor => referencedTensor_; [DebuggerNonUserCode] public MemoryStats MemoryStats { get { return memoryStats_; } set { memoryStats_ = value; } } [DebuggerNonUserCode] public long AllStartNanos { get { return allStartNanos_; } set { allStartNanos_ = value; } } [DebuggerNonUserCode] public long OpStartRelNanos { get { return opStartRelNanos_; } set { opStartRelNanos_ = value; } } [DebuggerNonUserCode] public long OpEndRelNanos { get { return opEndRelNanos_; } set { opEndRelNanos_ = value; } } [DebuggerNonUserCode] public long AllEndRelNanos { get { return allEndRelNanos_; } set { allEndRelNanos_ = value; } } [DebuggerNonUserCode] public long ScheduledNanos { get { return scheduledNanos_; } set { scheduledNanos_ = value; } } [DebuggerNonUserCode] public NodeExecStats() { } [DebuggerNonUserCode] public NodeExecStats(NodeExecStats other) : this() { nodeName_ = other.nodeName_; allStartMicros_ = other.allStartMicros_; opStartRelMicros_ = other.opStartRelMicros_; opEndRelMicros_ = other.opEndRelMicros_; allEndRelMicros_ = other.allEndRelMicros_; memory_ = other.memory_.Clone(); output_ = other.output_.Clone(); timelineLabel_ = other.timelineLabel_; scheduledMicros_ = other.scheduledMicros_; threadId_ = other.threadId_; referencedTensor_ = other.referencedTensor_.Clone(); memoryStats_ = ((other.memoryStats_ != null) ? other.memoryStats_.Clone() : null); allStartNanos_ = other.allStartNanos_; opStartRelNanos_ = other.opStartRelNanos_; opEndRelNanos_ = other.opEndRelNanos_; allEndRelNanos_ = other.allEndRelNanos_; scheduledNanos_ = other.scheduledNanos_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public NodeExecStats Clone() { return new NodeExecStats(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as NodeExecStats); } [DebuggerNonUserCode] public bool Equals(NodeExecStats other) { if (other == null) { return false; } if (other == this) { return true; } if (NodeName != other.NodeName) { return false; } if (AllStartMicros != other.AllStartMicros) { return false; } if (OpStartRelMicros != other.OpStartRelMicros) { return false; } if (OpEndRelMicros != other.OpEndRelMicros) { return false; } if (AllEndRelMicros != other.AllEndRelMicros) { return false; } if (!memory_.Equals(other.memory_)) { return false; } if (!output_.Equals(other.output_)) { return false; } if (TimelineLabel != other.TimelineLabel) { return false; } if (ScheduledMicros != other.ScheduledMicros) { return false; } if (ThreadId != other.ThreadId) { return false; } if (!referencedTensor_.Equals(other.referencedTensor_)) { return false; } if (!object.Equals(MemoryStats, other.MemoryStats)) { return false; } if (AllStartNanos != other.AllStartNanos) { return false; } if (OpStartRelNanos != other.OpStartRelNanos) { return false; } if (OpEndRelNanos != other.OpEndRelNanos) { return false; } if (AllEndRelNanos != other.AllEndRelNanos) { return false; } if (ScheduledNanos != other.ScheduledNanos) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (NodeName.Length != 0) { num ^= NodeName.GetHashCode(); } if (AllStartMicros != 0L) { num ^= AllStartMicros.GetHashCode(); } if (OpStartRelMicros != 0L) { num ^= OpStartRelMicros.GetHashCode(); } if (OpEndRelMicros != 0L) { num ^= OpEndRelMicros.GetHashCode(); } if (AllEndRelMicros != 0L) { num ^= AllEndRelMicros.GetHashCode(); } num ^= ((object)memory_).GetHashCode(); num ^= ((object)output_).GetHashCode(); if (TimelineLabel.Length != 0) { num ^= TimelineLabel.GetHashCode(); } if (ScheduledMicros != 0L) { num ^= ScheduledMicros.GetHashCode(); } if (ThreadId != 0) { num ^= ThreadId.GetHashCode(); } num ^= ((object)referencedTensor_).GetHashCode(); if (memoryStats_ != null) { num ^= MemoryStats.GetHashCode(); } if (AllStartNanos != 0L) { num ^= AllStartNanos.GetHashCode(); } if (OpStartRelNanos != 0L) { num ^= OpStartRelNanos.GetHashCode(); } if (OpEndRelNanos != 0L) { num ^= OpEndRelNanos.GetHashCode(); } if (AllEndRelNanos != 0L) { num ^= AllEndRelNanos.GetHashCode(); } if (ScheduledNanos != 0L) { num ^= ScheduledNanos.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (NodeName.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(NodeName); } if (AllStartMicros != 0L) { output.WriteRawTag((byte)16); output.WriteInt64(AllStartMicros); } if (OpStartRelMicros != 0L) { output.WriteRawTag((byte)24); output.WriteInt64(OpStartRelMicros); } if (OpEndRelMicros != 0L) { output.WriteRawTag((byte)32); output.WriteInt64(OpEndRelMicros); } if (AllEndRelMicros != 0L) { output.WriteRawTag((byte)40); output.WriteInt64(AllEndRelMicros); } memory_.WriteTo(output, _repeated_memory_codec); output_.WriteTo(output, _repeated_output_codec); if (TimelineLabel.Length != 0) { output.WriteRawTag((byte)66); output.WriteString(TimelineLabel); } if (ScheduledMicros != 0L) { output.WriteRawTag((byte)72); output.WriteInt64(ScheduledMicros); } if (ThreadId != 0) { output.WriteRawTag((byte)80); output.WriteUInt32(ThreadId); } referencedTensor_.WriteTo(output, _repeated_referencedTensor_codec); if (memoryStats_ != null) { output.WriteRawTag((byte)98); output.WriteMessage((IMessage)(object)MemoryStats); } if (AllStartNanos != 0L) { output.WriteRawTag((byte)104); output.WriteInt64(AllStartNanos); } if (OpStartRelNanos != 0L) { output.WriteRawTag((byte)112); output.WriteInt64(OpStartRelNanos); } if (OpEndRelNanos != 0L) { output.WriteRawTag((byte)120); output.WriteInt64(OpEndRelNanos); } if (AllEndRelNanos != 0L) { output.WriteRawTag((byte)128, (byte)1); output.WriteInt64(AllEndRelNanos); } if (ScheduledNanos != 0L) { output.WriteRawTag((byte)136, (byte)1); output.WriteInt64(ScheduledNanos); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (NodeName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(NodeName); } if (AllStartMicros != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(AllStartMicros); } if (OpStartRelMicros != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(OpStartRelMicros); } if (OpEndRelMicros != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(OpEndRelMicros); } if (AllEndRelMicros != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(AllEndRelMicros); } num += memory_.CalculateSize(_repeated_memory_codec); num += output_.CalculateSize(_repeated_output_codec); if (TimelineLabel.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(TimelineLabel); } if (ScheduledMicros != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(ScheduledMicros); } if (ThreadId != 0) { num += 1 + CodedOutputStream.ComputeUInt32Size(ThreadId); } num += referencedTensor_.CalculateSize(_repeated_referencedTensor_codec); if (memoryStats_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)MemoryStats); } if (AllStartNanos != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(AllStartNanos); } if (OpStartRelNanos != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(OpStartRelNanos); } if (OpEndRelNanos != 0L) { num += 1 + CodedOutputStream.ComputeInt64Size(OpEndRelNanos); } if (AllEndRelNanos != 0L) { num += 2 + CodedOutputStream.ComputeInt64Size(AllEndRelNanos); } if (ScheduledNanos != 0L) { num += 2 + CodedOutputStream.ComputeInt64Size(ScheduledNanos); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(NodeExecStats other) { if (other == null) { return; } if (other.NodeName.Length != 0) { NodeName = other.NodeName; } if (other.AllStartMicros != 0L) { AllStartMicros = other.AllStartMicros; } if (other.OpStartRelMicros != 0L) { OpStartRelMicros = other.OpStartRelMicros; } if (other.OpEndRelMicros != 0L) { OpEndRelMicros = other.OpEndRelMicros; } if (other.AllEndRelMicros != 0L) { AllEndRelMicros = other.AllEndRelMicros; } memory_.Add((IEnumerable)other.memory_); output_.Add((IEnumerable)other.output_); if (other.TimelineLabel.Length != 0) { TimelineLabel = other.TimelineLabel; } if (other.ScheduledMicros != 0L) { ScheduledMicros = other.ScheduledMicros; } if (other.ThreadId != 0) { ThreadId = other.ThreadId; } referencedTensor_.Add((IEnumerable)other.referencedTensor_); if (other.memoryStats_ != null) { if (memoryStats_ == null) { MemoryStats = new MemoryStats(); } MemoryStats.MergeFrom(other.MemoryStats); } if (other.AllStartNanos != 0L) { AllStartNanos = other.AllStartNanos; } if (other.OpStartRelNanos != 0L) { OpStartRelNanos = other.OpStartRelNanos; } if (other.OpEndRelNanos != 0L) { OpEndRelNanos = other.OpEndRelNanos; } if (other.AllEndRelNanos != 0L) { AllEndRelNanos = other.AllEndRelNanos; } if (other.ScheduledNanos != 0L) { ScheduledNanos = other.ScheduledNanos; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: NodeName = input.ReadString(); break; case 16u: AllStartMicros = input.ReadInt64(); break; case 24u: OpStartRelMicros = input.ReadInt64(); break; case 32u: OpEndRelMicros = input.ReadInt64(); break; case 40u: AllEndRelMicros = input.ReadInt64(); break; case 50u: memory_.AddEntriesFrom(input, _repeated_memory_codec); break; case 58u: output_.AddEntriesFrom(input, _repeated_output_codec); break; case 66u: TimelineLabel = input.ReadString(); break; case 72u: ScheduledMicros = input.ReadInt64(); break; case 80u: ThreadId = input.ReadUInt32(); break; case 90u: referencedTensor_.AddEntriesFrom(input, _repeated_referencedTensor_codec); break; case 98u: if (memoryStats_ == null) { MemoryStats = new MemoryStats(); } input.ReadMessage((IMessage)(object)MemoryStats); break; case 104u: AllStartNanos = input.ReadInt64(); break; case 112u: OpStartRelNanos = input.ReadInt64(); break; case 120u: OpEndRelNanos = input.ReadInt64(); break; case 128u: AllEndRelNanos = input.ReadInt64(); break; case 136u: ScheduledNanos = input.ReadInt64(); break; } } } } public sealed class DeviceStepStats : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new DeviceStepStats())); private UnknownFieldSet _unknownFields; public const int DeviceFieldNumber = 1; private string device_ = ""; public const int NodeStatsFieldNumber = 2; private static readonly FieldCodec _repeated_nodeStats_codec = FieldCodec.ForMessage(18u, NodeExecStats.Parser); private readonly RepeatedField nodeStats_ = new RepeatedField(); public const int ThreadNamesFieldNumber = 3; private static readonly Codec _map_threadNames_codec = new Codec(FieldCodec.ForUInt32(8u, 0u), FieldCodec.ForString(18u, ""), 26u); private readonly MapField threadNames_ = new MapField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StepStatsReflection.Descriptor.MessageTypes[5]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Device { get { return device_; } set { device_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public RepeatedField NodeStats => nodeStats_; [DebuggerNonUserCode] public MapField ThreadNames => threadNames_; [DebuggerNonUserCode] public DeviceStepStats() { } [DebuggerNonUserCode] public DeviceStepStats(DeviceStepStats other) : this() { device_ = other.device_; nodeStats_ = other.nodeStats_.Clone(); threadNames_ = other.threadNames_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public DeviceStepStats Clone() { return new DeviceStepStats(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as DeviceStepStats); } [DebuggerNonUserCode] public bool Equals(DeviceStepStats other) { if (other == null) { return false; } if (other == this) { return true; } if (Device != other.Device) { return false; } if (!nodeStats_.Equals(other.nodeStats_)) { return false; } if (!ThreadNames.Equals(other.ThreadNames)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Device.Length != 0) { num ^= Device.GetHashCode(); } num ^= ((object)nodeStats_).GetHashCode(); num ^= ((object)ThreadNames).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Device.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Device); } nodeStats_.WriteTo(output, _repeated_nodeStats_codec); threadNames_.WriteTo(output, _map_threadNames_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Device.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Device); } num += nodeStats_.CalculateSize(_repeated_nodeStats_codec); num += threadNames_.CalculateSize(_map_threadNames_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(DeviceStepStats other) { if (other != null) { if (other.Device.Length != 0) { Device = other.Device; } nodeStats_.Add((IEnumerable)other.nodeStats_); threadNames_.Add((IDictionary)other.threadNames_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Device = input.ReadString(); break; case 18u: nodeStats_.AddEntriesFrom(input, _repeated_nodeStats_codec); break; case 26u: threadNames_.AddEntriesFrom(input, _map_threadNames_codec); break; } } } } public sealed class StepStats : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new StepStats())); private UnknownFieldSet _unknownFields; public const int DevStatsFieldNumber = 1; private static readonly FieldCodec _repeated_devStats_codec = FieldCodec.ForMessage(10u, DeviceStepStats.Parser); private readonly RepeatedField devStats_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StepStatsReflection.Descriptor.MessageTypes[6]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField DevStats => devStats_; [DebuggerNonUserCode] public StepStats() { } [DebuggerNonUserCode] public StepStats(StepStats other) : this() { devStats_ = other.devStats_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public StepStats Clone() { return new StepStats(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as StepStats); } [DebuggerNonUserCode] public bool Equals(StepStats other) { if (other == null) { return false; } if (other == this) { return true; } if (!devStats_.Equals(other.devStats_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)devStats_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { devStats_.WriteTo(output, _repeated_devStats_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += devStats_.CalculateSize(_repeated_devStats_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(StepStats other) { if (other != null) { devStats_.Add((IEnumerable)other.devStats_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { devStats_.AddEntriesFrom(input, _repeated_devStats_codec); } } } } public static class StructReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static StructReflection() { //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_028c: Expected O, but got Unknown //IL_02a2: Unknown result type (might be due to invalid IL or missing references) //IL_02a8: Expected O, but got Unknown //IL_02cb: Unknown result type (might be due to invalid IL or missing references) //IL_02d1: Expected O, but got Unknown //IL_02f4: Unknown result type (might be due to invalid IL or missing references) //IL_02fa: Expected O, but got Unknown //IL_0322: Unknown result type (might be due to invalid IL or missing references) //IL_0328: Expected O, but got Unknown //IL_0353: Unknown result type (might be due to invalid IL or missing references) //IL_0359: Expected O, but got Unknown //IL_0384: Unknown result type (might be due to invalid IL or missing references) //IL_038a: Expected O, but got Unknown //IL_03bd: Unknown result type (might be due to invalid IL or missing references) //IL_03c3: Expected O, but got Unknown //IL_0406: Unknown result type (might be due to invalid IL or missing references) //IL_040c: Expected O, but got Unknown //IL_045a: Unknown result type (might be due to invalid IL or missing references) //IL_0460: Expected O, but got Unknown //IL_0460: Unknown result type (might be due to invalid IL or missing references) //IL_046a: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CiV0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vc3RydWN0LnByb3RvEgt0ZW5z" + "b3Jib2FyZBoldGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL3RlbnNvci5wcm90" + "bxordGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL3RlbnNvcl9zaGFwZS5wcm90" + "bxokdGVuc29yYm9hcmQvY29tcGF0L3Byb3RvL3R5cGVzLnByb3RvIpoFCg9T" + "dHJ1Y3R1cmVkVmFsdWUSLAoKbm9uZV92YWx1ZRgBIAEoCzIWLnRlbnNvcmJv" + "YXJkLk5vbmVWYWx1ZUgAEhcKDWZsb2F0NjRfdmFsdWUYCyABKAFIABIVCgtp" + "bnQ2NF92YWx1ZRgMIAEoEkgAEhYKDHN0cmluZ192YWx1ZRgNIAEoCUgAEhQK" + "CmJvb2xfdmFsdWUYDiABKAhIABI7ChJ0ZW5zb3Jfc2hhcGVfdmFsdWUYHyAB" + "KAsyHS50ZW5zb3Jib2FyZC5UZW5zb3JTaGFwZVByb3RvSAASMwoSdGVuc29y" + "X2R0eXBlX3ZhbHVlGCAgASgOMhUudGVuc29yYm9hcmQuRGF0YVR5cGVIABI5" + "ChF0ZW5zb3Jfc3BlY192YWx1ZRghIAEoCzIcLnRlbnNvcmJvYXJkLlRlbnNv" + "clNwZWNQcm90b0gAEjUKD3R5cGVfc3BlY192YWx1ZRgiIAEoCzIaLnRlbnNv" + "cmJvYXJkLlR5cGVTcGVjUHJvdG9IABJIChlib3VuZGVkX3RlbnNvcl9zcGVj" + "X3ZhbHVlGCMgASgLMiMudGVuc29yYm9hcmQuQm91bmRlZFRlbnNvclNwZWNQ" + "cm90b0gAEiwKCmxpc3RfdmFsdWUYMyABKAsyFi50ZW5zb3Jib2FyZC5MaXN0" + "VmFsdWVIABIuCgt0dXBsZV92YWx1ZRg0IAEoCzIXLnRlbnNvcmJvYXJkLlR1" + "cGxlVmFsdWVIABIsCgpkaWN0X3ZhbHVlGDUgASgLMhYudGVuc29yYm9hcmQu" + "RGljdFZhbHVlSAASOQoRbmFtZWRfdHVwbGVfdmFsdWUYNiABKAsyHC50ZW5z" + "b3Jib2FyZC5OYW1lZFR1cGxlVmFsdWVIAEIGCgRraW5kIgsKCU5vbmVWYWx1" + "ZSI5CglMaXN0VmFsdWUSLAoGdmFsdWVzGAEgAygLMhwudGVuc29yYm9hcmQu" + "U3RydWN0dXJlZFZhbHVlIjoKClR1cGxlVmFsdWUSLAoGdmFsdWVzGAEgAygL" + "MhwudGVuc29yYm9hcmQuU3RydWN0dXJlZFZhbHVlIowBCglEaWN0VmFsdWUS" + "MgoGZmllbGRzGAEgAygLMiIudGVuc29yYm9hcmQuRGljdFZhbHVlLkZpZWxk" + "c0VudHJ5GksKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIrCgV2YWx1ZRgC" + "IAEoCzIcLnRlbnNvcmJvYXJkLlN0cnVjdHVyZWRWYWx1ZToCOAEiRQoJUGFp" + "clZhbHVlEgsKA2tleRgBIAEoCRIrCgV2YWx1ZRgCIAEoCzIcLnRlbnNvcmJv" + "YXJkLlN0cnVjdHVyZWRWYWx1ZSJHCg9OYW1lZFR1cGxlVmFsdWUSDAoEbmFt" + "ZRgBIAEoCRImCgZ2YWx1ZXMYAiADKAsyFi50ZW5zb3Jib2FyZC5QYWlyVmFs" + "dWUicwoPVGVuc29yU3BlY1Byb3RvEgwKBG5hbWUYASABKAkSLAoFc2hhcGUY" + "AiABKAsyHS50ZW5zb3Jib2FyZC5UZW5zb3JTaGFwZVByb3RvEiQKBWR0eXBl" + "GAMgASgOMhUudGVuc29yYm9hcmQuRGF0YVR5cGUi0AEKFkJvdW5kZWRUZW5z" + "b3JTcGVjUHJvdG8SDAoEbmFtZRgBIAEoCRIsCgVzaGFwZRgCIAEoCzIdLnRl" + "bnNvcmJvYXJkLlRlbnNvclNoYXBlUHJvdG8SJAoFZHR5cGUYAyABKA4yFS50" + "ZW5zb3Jib2FyZC5EYXRhVHlwZRIpCgdtaW5pbXVtGAQgASgLMhgudGVuc29y" + "Ym9hcmQuVGVuc29yUHJvdG8SKQoHbWF4aW11bRgFIAEoCzIYLnRlbnNvcmJv" + "YXJkLlRlbnNvclByb3RvIvoDCg1UeXBlU3BlY1Byb3RvEkEKD3R5cGVfc3Bl" + "Y19jbGFzcxgBIAEoDjIoLnRlbnNvcmJvYXJkLlR5cGVTcGVjUHJvdG8uVHlw" + "ZVNwZWNDbGFzcxIwCgp0eXBlX3N0YXRlGAIgASgLMhwudGVuc29yYm9hcmQu" + "U3RydWN0dXJlZFZhbHVlEhwKFHR5cGVfc3BlY19jbGFzc19uYW1lGAMgASgJ" + "EhsKE251bV9mbGF0X2NvbXBvbmVudHMYBCABKAUiuAIKDVR5cGVTcGVjQ2xh" + "c3MSCwoHVU5LTk9XThAAEhYKElNQQVJTRV9URU5TT1JfU1BFQxABEhcKE0lO" + "REVYRURfU0xJQ0VTX1NQRUMQAhIWChJSQUdHRURfVEVOU09SX1NQRUMQAxIV" + "ChFURU5TT1JfQVJSQVlfU1BFQxAEEhUKEURBVEFfREFUQVNFVF9TUEVDEAUS" + "FgoSREFUQV9JVEVSQVRPUl9TUEVDEAYSEQoNT1BUSU9OQUxfU1BFQxAHEhQK" + "EFBFUl9SRVBMSUNBX1NQRUMQCBIRCg1WQVJJQUJMRV9TUEVDEAkSFgoSUk9X" + "X1BBUlRJVElPTl9TUEVDEAoSGAoUUkVHSVNURVJFRF9UWVBFX1NQRUMQDBIX" + "ChNFWFRFTlNJT05fVFlQRV9TUEVDEA0iBAgLEAtCV1pVZ2l0aHViLmNvbS90" + "ZW5zb3JmbG93L3RlbnNvcmZsb3cvdGVuc29yZmxvdy9nby9jb3JlL3Byb3Rv" + "YnVmL2Zvcl9jb3JlX3Byb3Rvc19nb19wcm90b2IGcHJvdG8z"), (FileDescriptor[])(object)new FileDescriptor[3] { TensorReflection.Descriptor, TensorShapeReflection.Descriptor, TypesReflection.Descriptor }, new GeneratedClrTypeInfo((Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[10] { new GeneratedClrTypeInfo(typeof(StructuredValue), (MessageParser)(object)StructuredValue.Parser, new string[14] { "NoneValue", "Float64Value", "Int64Value", "StringValue", "BoolValue", "TensorShapeValue", "TensorDtypeValue", "TensorSpecValue", "TypeSpecValue", "BoundedTensorSpecValue", "ListValue", "TupleValue", "DictValue", "NamedTupleValue" }, new string[1] { "Kind" }, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(NoneValue), (MessageParser)(object)NoneValue.Parser, (string[])null, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(ListValue), (MessageParser)(object)ListValue.Parser, new string[1] { "Values" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(TupleValue), (MessageParser)(object)TupleValue.Parser, new string[1] { "Values" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(DictValue), (MessageParser)(object)DictValue.Parser, new string[1] { "Fields" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1]), new GeneratedClrTypeInfo(typeof(PairValue), (MessageParser)(object)PairValue.Parser, new string[2] { "Key", "Value" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(NamedTupleValue), (MessageParser)(object)NamedTupleValue.Parser, new string[2] { "Name", "Values" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(TensorSpecProto), (MessageParser)(object)TensorSpecProto.Parser, new string[3] { "Name", "Shape", "Dtype" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(BoundedTensorSpecProto), (MessageParser)(object)BoundedTensorSpecProto.Parser, new string[5] { "Name", "Shape", "Dtype", "Minimum", "Maximum" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(TypeSpecProto), (MessageParser)(object)TypeSpecProto.Parser, new string[4] { "TypeSpecClass", "TypeState", "TypeSpecClassName", "NumFlatComponents" }, (string[])null, new Type[1] { typeof(TypeSpecProto.Types.TypeSpecClass) }, (Extension[])null, (GeneratedClrTypeInfo[])null) })); } } public sealed class StructuredValue : IMessage, IMessage, IEquatable, IDeepCloneable { public enum KindOneofCase { None = 0, NoneValue = 1, Float64Value = 11, Int64Value = 12, StringValue = 13, BoolValue = 14, TensorShapeValue = 31, TensorDtypeValue = 32, TensorSpecValue = 33, TypeSpecValue = 34, BoundedTensorSpecValue = 35, ListValue = 51, TupleValue = 52, DictValue = 53, NamedTupleValue = 54 } private static readonly MessageParser _parser = new MessageParser((Func)(() => new StructuredValue())); private UnknownFieldSet _unknownFields; public const int NoneValueFieldNumber = 1; public const int Float64ValueFieldNumber = 11; public const int Int64ValueFieldNumber = 12; public const int StringValueFieldNumber = 13; public const int BoolValueFieldNumber = 14; public const int TensorShapeValueFieldNumber = 31; public const int TensorDtypeValueFieldNumber = 32; public const int TensorSpecValueFieldNumber = 33; public const int TypeSpecValueFieldNumber = 34; public const int BoundedTensorSpecValueFieldNumber = 35; public const int ListValueFieldNumber = 51; public const int TupleValueFieldNumber = 52; public const int DictValueFieldNumber = 53; public const int NamedTupleValueFieldNumber = 54; private object kind_; private KindOneofCase kindCase_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StructReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public NoneValue NoneValue { get { if (kindCase_ != KindOneofCase.NoneValue) { return null; } return (NoneValue)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.NoneValue : KindOneofCase.None); } } [DebuggerNonUserCode] public double Float64Value { get { if (kindCase_ != KindOneofCase.Float64Value) { return 0.0; } return (double)kind_; } set { kind_ = value; kindCase_ = KindOneofCase.Float64Value; } } [DebuggerNonUserCode] public long Int64Value { get { if (kindCase_ != KindOneofCase.Int64Value) { return 0L; } return (long)kind_; } set { kind_ = value; kindCase_ = KindOneofCase.Int64Value; } } [DebuggerNonUserCode] public string StringValue { get { if (kindCase_ != KindOneofCase.StringValue) { return ""; } return (string)kind_; } set { kind_ = ProtoPreconditions.CheckNotNull(value, "value"); kindCase_ = KindOneofCase.StringValue; } } [DebuggerNonUserCode] public bool BoolValue { get { if (kindCase_ != KindOneofCase.BoolValue) { return false; } return (bool)kind_; } set { kind_ = value; kindCase_ = KindOneofCase.BoolValue; } } [DebuggerNonUserCode] public TensorShapeProto TensorShapeValue { get { if (kindCase_ != KindOneofCase.TensorShapeValue) { return null; } return (TensorShapeProto)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.TensorShapeValue : KindOneofCase.None); } } [DebuggerNonUserCode] public DataType TensorDtypeValue { get { if (kindCase_ != KindOneofCase.TensorDtypeValue) { return DataType.DtInvalid; } return (DataType)kind_; } set { kind_ = value; kindCase_ = KindOneofCase.TensorDtypeValue; } } [DebuggerNonUserCode] public TensorSpecProto TensorSpecValue { get { if (kindCase_ != KindOneofCase.TensorSpecValue) { return null; } return (TensorSpecProto)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.TensorSpecValue : KindOneofCase.None); } } [DebuggerNonUserCode] public TypeSpecProto TypeSpecValue { get { if (kindCase_ != KindOneofCase.TypeSpecValue) { return null; } return (TypeSpecProto)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.TypeSpecValue : KindOneofCase.None); } } [DebuggerNonUserCode] public BoundedTensorSpecProto BoundedTensorSpecValue { get { if (kindCase_ != KindOneofCase.BoundedTensorSpecValue) { return null; } return (BoundedTensorSpecProto)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.BoundedTensorSpecValue : KindOneofCase.None); } } [DebuggerNonUserCode] public ListValue ListValue { get { if (kindCase_ != KindOneofCase.ListValue) { return null; } return (ListValue)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.ListValue : KindOneofCase.None); } } [DebuggerNonUserCode] public TupleValue TupleValue { get { if (kindCase_ != KindOneofCase.TupleValue) { return null; } return (TupleValue)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.TupleValue : KindOneofCase.None); } } [DebuggerNonUserCode] public DictValue DictValue { get { if (kindCase_ != KindOneofCase.DictValue) { return null; } return (DictValue)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.DictValue : KindOneofCase.None); } } [DebuggerNonUserCode] public NamedTupleValue NamedTupleValue { get { if (kindCase_ != KindOneofCase.NamedTupleValue) { return null; } return (NamedTupleValue)kind_; } set { kind_ = value; kindCase_ = ((value != null) ? KindOneofCase.NamedTupleValue : KindOneofCase.None); } } [DebuggerNonUserCode] public KindOneofCase KindCase => kindCase_; [DebuggerNonUserCode] public StructuredValue() { } [DebuggerNonUserCode] public StructuredValue(StructuredValue other) : this() { switch (other.KindCase) { case KindOneofCase.NoneValue: NoneValue = other.NoneValue.Clone(); break; case KindOneofCase.Float64Value: Float64Value = other.Float64Value; break; case KindOneofCase.Int64Value: Int64Value = other.Int64Value; break; case KindOneofCase.StringValue: StringValue = other.StringValue; break; case KindOneofCase.BoolValue: BoolValue = other.BoolValue; break; case KindOneofCase.TensorShapeValue: TensorShapeValue = other.TensorShapeValue.Clone(); break; case KindOneofCase.TensorDtypeValue: TensorDtypeValue = other.TensorDtypeValue; break; case KindOneofCase.TensorSpecValue: TensorSpecValue = other.TensorSpecValue.Clone(); break; case KindOneofCase.TypeSpecValue: TypeSpecValue = other.TypeSpecValue.Clone(); break; case KindOneofCase.BoundedTensorSpecValue: BoundedTensorSpecValue = other.BoundedTensorSpecValue.Clone(); break; case KindOneofCase.ListValue: ListValue = other.ListValue.Clone(); break; case KindOneofCase.TupleValue: TupleValue = other.TupleValue.Clone(); break; case KindOneofCase.DictValue: DictValue = other.DictValue.Clone(); break; case KindOneofCase.NamedTupleValue: NamedTupleValue = other.NamedTupleValue.Clone(); break; } _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public StructuredValue Clone() { return new StructuredValue(this); } [DebuggerNonUserCode] public void ClearKind() { kindCase_ = KindOneofCase.None; kind_ = null; } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as StructuredValue); } [DebuggerNonUserCode] public bool Equals(StructuredValue other) { if (other == null) { return false; } if (other == this) { return true; } if (!object.Equals(NoneValue, other.NoneValue)) { return false; } if (!ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Float64Value, other.Float64Value)) { return false; } if (Int64Value != other.Int64Value) { return false; } if (StringValue != other.StringValue) { return false; } if (BoolValue != other.BoolValue) { return false; } if (!object.Equals(TensorShapeValue, other.TensorShapeValue)) { return false; } if (TensorDtypeValue != other.TensorDtypeValue) { return false; } if (!object.Equals(TensorSpecValue, other.TensorSpecValue)) { return false; } if (!object.Equals(TypeSpecValue, other.TypeSpecValue)) { return false; } if (!object.Equals(BoundedTensorSpecValue, other.BoundedTensorSpecValue)) { return false; } if (!object.Equals(ListValue, other.ListValue)) { return false; } if (!object.Equals(TupleValue, other.TupleValue)) { return false; } if (!object.Equals(DictValue, other.DictValue)) { return false; } if (!object.Equals(NamedTupleValue, other.NamedTupleValue)) { return false; } if (KindCase != other.KindCase) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (kindCase_ == KindOneofCase.NoneValue) { num ^= NoneValue.GetHashCode(); } if (kindCase_ == KindOneofCase.Float64Value) { num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Float64Value); } if (kindCase_ == KindOneofCase.Int64Value) { num ^= Int64Value.GetHashCode(); } if (kindCase_ == KindOneofCase.StringValue) { num ^= StringValue.GetHashCode(); } if (kindCase_ == KindOneofCase.BoolValue) { num ^= BoolValue.GetHashCode(); } if (kindCase_ == KindOneofCase.TensorShapeValue) { num ^= TensorShapeValue.GetHashCode(); } if (kindCase_ == KindOneofCase.TensorDtypeValue) { num ^= TensorDtypeValue.GetHashCode(); } if (kindCase_ == KindOneofCase.TensorSpecValue) { num ^= TensorSpecValue.GetHashCode(); } if (kindCase_ == KindOneofCase.TypeSpecValue) { num ^= TypeSpecValue.GetHashCode(); } if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) { num ^= BoundedTensorSpecValue.GetHashCode(); } if (kindCase_ == KindOneofCase.ListValue) { num ^= ListValue.GetHashCode(); } if (kindCase_ == KindOneofCase.TupleValue) { num ^= TupleValue.GetHashCode(); } if (kindCase_ == KindOneofCase.DictValue) { num ^= DictValue.GetHashCode(); } if (kindCase_ == KindOneofCase.NamedTupleValue) { num ^= NamedTupleValue.GetHashCode(); } num ^= (int)kindCase_; if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (kindCase_ == KindOneofCase.NoneValue) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)NoneValue); } if (kindCase_ == KindOneofCase.Float64Value) { output.WriteRawTag((byte)89); output.WriteDouble(Float64Value); } if (kindCase_ == KindOneofCase.Int64Value) { output.WriteRawTag((byte)96); output.WriteSInt64(Int64Value); } if (kindCase_ == KindOneofCase.StringValue) { output.WriteRawTag((byte)106); output.WriteString(StringValue); } if (kindCase_ == KindOneofCase.BoolValue) { output.WriteRawTag((byte)112); output.WriteBool(BoolValue); } if (kindCase_ == KindOneofCase.TensorShapeValue) { output.WriteRawTag((byte)250, (byte)1); output.WriteMessage((IMessage)(object)TensorShapeValue); } if (kindCase_ == KindOneofCase.TensorDtypeValue) { output.WriteRawTag((byte)128, (byte)2); output.WriteEnum((int)TensorDtypeValue); } if (kindCase_ == KindOneofCase.TensorSpecValue) { output.WriteRawTag((byte)138, (byte)2); output.WriteMessage((IMessage)(object)TensorSpecValue); } if (kindCase_ == KindOneofCase.TypeSpecValue) { output.WriteRawTag((byte)146, (byte)2); output.WriteMessage((IMessage)(object)TypeSpecValue); } if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) { output.WriteRawTag((byte)154, (byte)2); output.WriteMessage((IMessage)(object)BoundedTensorSpecValue); } if (kindCase_ == KindOneofCase.ListValue) { output.WriteRawTag((byte)154, (byte)3); output.WriteMessage((IMessage)(object)ListValue); } if (kindCase_ == KindOneofCase.TupleValue) { output.WriteRawTag((byte)162, (byte)3); output.WriteMessage((IMessage)(object)TupleValue); } if (kindCase_ == KindOneofCase.DictValue) { output.WriteRawTag((byte)170, (byte)3); output.WriteMessage((IMessage)(object)DictValue); } if (kindCase_ == KindOneofCase.NamedTupleValue) { output.WriteRawTag((byte)178, (byte)3); output.WriteMessage((IMessage)(object)NamedTupleValue); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (kindCase_ == KindOneofCase.NoneValue) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)NoneValue); } if (kindCase_ == KindOneofCase.Float64Value) { num += 9; } if (kindCase_ == KindOneofCase.Int64Value) { num += 1 + CodedOutputStream.ComputeSInt64Size(Int64Value); } if (kindCase_ == KindOneofCase.StringValue) { num += 1 + CodedOutputStream.ComputeStringSize(StringValue); } if (kindCase_ == KindOneofCase.BoolValue) { num += 2; } if (kindCase_ == KindOneofCase.TensorShapeValue) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)TensorShapeValue); } if (kindCase_ == KindOneofCase.TensorDtypeValue) { num += 2 + CodedOutputStream.ComputeEnumSize((int)TensorDtypeValue); } if (kindCase_ == KindOneofCase.TensorSpecValue) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)TensorSpecValue); } if (kindCase_ == KindOneofCase.TypeSpecValue) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)TypeSpecValue); } if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)BoundedTensorSpecValue); } if (kindCase_ == KindOneofCase.ListValue) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)ListValue); } if (kindCase_ == KindOneofCase.TupleValue) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)TupleValue); } if (kindCase_ == KindOneofCase.DictValue) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)DictValue); } if (kindCase_ == KindOneofCase.NamedTupleValue) { num += 2 + CodedOutputStream.ComputeMessageSize((IMessage)(object)NamedTupleValue); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(StructuredValue other) { if (other == null) { return; } switch (other.KindCase) { case KindOneofCase.NoneValue: if (NoneValue == null) { NoneValue = new NoneValue(); } NoneValue.MergeFrom(other.NoneValue); break; case KindOneofCase.Float64Value: Float64Value = other.Float64Value; break; case KindOneofCase.Int64Value: Int64Value = other.Int64Value; break; case KindOneofCase.StringValue: StringValue = other.StringValue; break; case KindOneofCase.BoolValue: BoolValue = other.BoolValue; break; case KindOneofCase.TensorShapeValue: if (TensorShapeValue == null) { TensorShapeValue = new TensorShapeProto(); } TensorShapeValue.MergeFrom(other.TensorShapeValue); break; case KindOneofCase.TensorDtypeValue: TensorDtypeValue = other.TensorDtypeValue; break; case KindOneofCase.TensorSpecValue: if (TensorSpecValue == null) { TensorSpecValue = new TensorSpecProto(); } TensorSpecValue.MergeFrom(other.TensorSpecValue); break; case KindOneofCase.TypeSpecValue: if (TypeSpecValue == null) { TypeSpecValue = new TypeSpecProto(); } TypeSpecValue.MergeFrom(other.TypeSpecValue); break; case KindOneofCase.BoundedTensorSpecValue: if (BoundedTensorSpecValue == null) { BoundedTensorSpecValue = new BoundedTensorSpecProto(); } BoundedTensorSpecValue.MergeFrom(other.BoundedTensorSpecValue); break; case KindOneofCase.ListValue: if (ListValue == null) { ListValue = new ListValue(); } ListValue.MergeFrom(other.ListValue); break; case KindOneofCase.TupleValue: if (TupleValue == null) { TupleValue = new TupleValue(); } TupleValue.MergeFrom(other.TupleValue); break; case KindOneofCase.DictValue: if (DictValue == null) { DictValue = new DictValue(); } DictValue.MergeFrom(other.DictValue); break; case KindOneofCase.NamedTupleValue: if (NamedTupleValue == null) { NamedTupleValue = new NamedTupleValue(); } NamedTupleValue.MergeFrom(other.NamedTupleValue); break; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: { NoneValue noneValue = new NoneValue(); if (kindCase_ == KindOneofCase.NoneValue) { noneValue.MergeFrom(NoneValue); } input.ReadMessage((IMessage)(object)noneValue); NoneValue = noneValue; break; } case 89u: Float64Value = input.ReadDouble(); break; case 96u: Int64Value = input.ReadSInt64(); break; case 106u: StringValue = input.ReadString(); break; case 112u: BoolValue = input.ReadBool(); break; case 250u: { TensorShapeProto tensorShapeProto = new TensorShapeProto(); if (kindCase_ == KindOneofCase.TensorShapeValue) { tensorShapeProto.MergeFrom(TensorShapeValue); } input.ReadMessage((IMessage)(object)tensorShapeProto); TensorShapeValue = tensorShapeProto; break; } case 256u: kind_ = input.ReadEnum(); kindCase_ = KindOneofCase.TensorDtypeValue; break; case 266u: { TensorSpecProto tensorSpecProto = new TensorSpecProto(); if (kindCase_ == KindOneofCase.TensorSpecValue) { tensorSpecProto.MergeFrom(TensorSpecValue); } input.ReadMessage((IMessage)(object)tensorSpecProto); TensorSpecValue = tensorSpecProto; break; } case 274u: { TypeSpecProto typeSpecProto = new TypeSpecProto(); if (kindCase_ == KindOneofCase.TypeSpecValue) { typeSpecProto.MergeFrom(TypeSpecValue); } input.ReadMessage((IMessage)(object)typeSpecProto); TypeSpecValue = typeSpecProto; break; } case 282u: { BoundedTensorSpecProto boundedTensorSpecProto = new BoundedTensorSpecProto(); if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) { boundedTensorSpecProto.MergeFrom(BoundedTensorSpecValue); } input.ReadMessage((IMessage)(object)boundedTensorSpecProto); BoundedTensorSpecValue = boundedTensorSpecProto; break; } case 410u: { ListValue listValue = new ListValue(); if (kindCase_ == KindOneofCase.ListValue) { listValue.MergeFrom(ListValue); } input.ReadMessage((IMessage)(object)listValue); ListValue = listValue; break; } case 418u: { TupleValue tupleValue = new TupleValue(); if (kindCase_ == KindOneofCase.TupleValue) { tupleValue.MergeFrom(TupleValue); } input.ReadMessage((IMessage)(object)tupleValue); TupleValue = tupleValue; break; } case 426u: { DictValue dictValue = new DictValue(); if (kindCase_ == KindOneofCase.DictValue) { dictValue.MergeFrom(DictValue); } input.ReadMessage((IMessage)(object)dictValue); DictValue = dictValue; break; } case 434u: { NamedTupleValue namedTupleValue = new NamedTupleValue(); if (kindCase_ == KindOneofCase.NamedTupleValue) { namedTupleValue.MergeFrom(NamedTupleValue); } input.ReadMessage((IMessage)(object)namedTupleValue); NamedTupleValue = namedTupleValue; break; } } } } } public sealed class NoneValue : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new NoneValue())); private UnknownFieldSet _unknownFields; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StructReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public NoneValue() { } [DebuggerNonUserCode] public NoneValue(NoneValue other) : this() { _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public NoneValue Clone() { return new NoneValue(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as NoneValue); } [DebuggerNonUserCode] public bool Equals(NoneValue other) { if (other == null) { return false; } if (other == this) { return true; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(NoneValue other) { if (other != null) { _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { while (input.ReadTag() != 0) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } } } public sealed class ListValue : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new ListValue())); private UnknownFieldSet _unknownFields; public const int ValuesFieldNumber = 1; private static readonly FieldCodec _repeated_values_codec = FieldCodec.ForMessage(10u, StructuredValue.Parser); private readonly RepeatedField values_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StructReflection.Descriptor.MessageTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Values => values_; [DebuggerNonUserCode] public ListValue() { } [DebuggerNonUserCode] public ListValue(ListValue other) : this() { values_ = other.values_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public ListValue Clone() { return new ListValue(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as ListValue); } [DebuggerNonUserCode] public bool Equals(ListValue other) { if (other == null) { return false; } if (other == this) { return true; } if (!values_.Equals(other.values_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)values_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { values_.WriteTo(output, _repeated_values_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += values_.CalculateSize(_repeated_values_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(ListValue other) { if (other != null) { values_.Add((IEnumerable)other.values_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { values_.AddEntriesFrom(input, _repeated_values_codec); } } } } public sealed class TupleValue : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new TupleValue())); private UnknownFieldSet _unknownFields; public const int ValuesFieldNumber = 1; private static readonly FieldCodec _repeated_values_codec = FieldCodec.ForMessage(10u, StructuredValue.Parser); private readonly RepeatedField values_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StructReflection.Descriptor.MessageTypes[3]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public RepeatedField Values => values_; [DebuggerNonUserCode] public TupleValue() { } [DebuggerNonUserCode] public TupleValue(TupleValue other) : this() { values_ = other.values_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public TupleValue Clone() { return new TupleValue(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as TupleValue); } [DebuggerNonUserCode] public bool Equals(TupleValue other) { if (other == null) { return false; } if (other == this) { return true; } if (!values_.Equals(other.values_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)values_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { values_.WriteTo(output, _repeated_values_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += values_.CalculateSize(_repeated_values_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(TupleValue other) { if (other != null) { values_.Add((IEnumerable)other.values_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { values_.AddEntriesFrom(input, _repeated_values_codec); } } } } public sealed class DictValue : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new DictValue())); private UnknownFieldSet _unknownFields; public const int FieldsFieldNumber = 1; private static readonly Codec _map_fields_codec = new Codec(FieldCodec.ForString(10u, ""), FieldCodec.ForMessage(18u, StructuredValue.Parser), 10u); private readonly MapField fields_ = new MapField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StructReflection.Descriptor.MessageTypes[4]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public MapField Fields => fields_; [DebuggerNonUserCode] public DictValue() { } [DebuggerNonUserCode] public DictValue(DictValue other) : this() { fields_ = other.fields_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public DictValue Clone() { return new DictValue(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as DictValue); } [DebuggerNonUserCode] public bool Equals(DictValue other) { if (other == null) { return false; } if (other == this) { return true; } if (!Fields.Equals(other.Fields)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= ((object)Fields).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { fields_.WriteTo(output, _map_fields_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += fields_.CalculateSize(_map_fields_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(DictValue other) { if (other != null) { fields_.Add((IDictionary)other.fields_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { fields_.AddEntriesFrom(input, _map_fields_codec); } } } } public sealed class PairValue : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new PairValue())); private UnknownFieldSet _unknownFields; public const int KeyFieldNumber = 1; private string key_ = ""; public const int ValueFieldNumber = 2; private StructuredValue value_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StructReflection.Descriptor.MessageTypes[5]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Key { get { return key_; } set { key_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public StructuredValue Value { get { return value_; } set { value_ = value; } } [DebuggerNonUserCode] public PairValue() { } [DebuggerNonUserCode] public PairValue(PairValue other) : this() { key_ = other.key_; value_ = ((other.value_ != null) ? other.value_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public PairValue Clone() { return new PairValue(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as PairValue); } [DebuggerNonUserCode] public bool Equals(PairValue other) { if (other == null) { return false; } if (other == this) { return true; } if (Key != other.Key) { return false; } if (!object.Equals(Value, other.Value)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Key.Length != 0) { num ^= Key.GetHashCode(); } if (value_ != null) { num ^= Value.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Key.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Key); } if (value_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)Value); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Key.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Key); } if (value_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Value); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(PairValue other) { if (other == null) { return; } if (other.Key.Length != 0) { Key = other.Key; } if (other.value_ != null) { if (value_ == null) { Value = new StructuredValue(); } Value.MergeFrom(other.Value); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Key = input.ReadString(); break; case 18u: if (value_ == null) { Value = new StructuredValue(); } input.ReadMessage((IMessage)(object)Value); break; } } } } public sealed class NamedTupleValue : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new NamedTupleValue())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int ValuesFieldNumber = 2; private static readonly FieldCodec _repeated_values_codec = FieldCodec.ForMessage(18u, PairValue.Parser); private readonly RepeatedField values_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StructReflection.Descriptor.MessageTypes[6]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public RepeatedField Values => values_; [DebuggerNonUserCode] public NamedTupleValue() { } [DebuggerNonUserCode] public NamedTupleValue(NamedTupleValue other) : this() { name_ = other.name_; values_ = other.values_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public NamedTupleValue Clone() { return new NamedTupleValue(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as NamedTupleValue); } [DebuggerNonUserCode] public bool Equals(NamedTupleValue other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (!values_.Equals(other.values_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } num ^= ((object)values_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } values_.WriteTo(output, _repeated_values_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } num += values_.CalculateSize(_repeated_values_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(NamedTupleValue other) { if (other != null) { if (other.Name.Length != 0) { Name = other.Name; } values_.Add((IEnumerable)other.values_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: values_.AddEntriesFrom(input, _repeated_values_codec); break; } } } } public sealed class TensorSpecProto : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new TensorSpecProto())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int ShapeFieldNumber = 2; private TensorShapeProto shape_; public const int DtypeFieldNumber = 3; private DataType dtype_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StructReflection.Descriptor.MessageTypes[7]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } [DebuggerNonUserCode] public DataType Dtype { get { return dtype_; } set { dtype_ = value; } } [DebuggerNonUserCode] public TensorSpecProto() { } [DebuggerNonUserCode] public TensorSpecProto(TensorSpecProto other) : this() { name_ = other.name_; shape_ = ((other.shape_ != null) ? other.shape_.Clone() : null); dtype_ = other.dtype_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public TensorSpecProto Clone() { return new TensorSpecProto(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as TensorSpecProto); } [DebuggerNonUserCode] public bool Equals(TensorSpecProto other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (!object.Equals(Shape, other.Shape)) { return false; } if (Dtype != other.Dtype) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (shape_ != null) { num ^= Shape.GetHashCode(); } if (Dtype != DataType.DtInvalid) { num ^= Dtype.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (shape_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)Shape); } if (Dtype != DataType.DtInvalid) { output.WriteRawTag((byte)24); output.WriteEnum((int)Dtype); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (shape_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Shape); } if (Dtype != DataType.DtInvalid) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Dtype); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(TensorSpecProto other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.shape_ != null) { if (shape_ == null) { Shape = new TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.Dtype != DataType.DtInvalid) { Dtype = other.Dtype; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: if (shape_ == null) { Shape = new TensorShapeProto(); } input.ReadMessage((IMessage)(object)Shape); break; case 24u: Dtype = (DataType)input.ReadEnum(); break; } } } } public sealed class BoundedTensorSpecProto : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new BoundedTensorSpecProto())); private UnknownFieldSet _unknownFields; public const int NameFieldNumber = 1; private string name_ = ""; public const int ShapeFieldNumber = 2; private TensorShapeProto shape_; public const int DtypeFieldNumber = 3; private DataType dtype_; public const int MinimumFieldNumber = 4; private TensorProto minimum_; public const int MaximumFieldNumber = 5; private TensorProto maximum_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StructReflection.Descriptor.MessageTypes[8]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string Name { get { return name_; } set { name_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } [DebuggerNonUserCode] public DataType Dtype { get { return dtype_; } set { dtype_ = value; } } [DebuggerNonUserCode] public TensorProto Minimum { get { return minimum_; } set { minimum_ = value; } } [DebuggerNonUserCode] public TensorProto Maximum { get { return maximum_; } set { maximum_ = value; } } [DebuggerNonUserCode] public BoundedTensorSpecProto() { } [DebuggerNonUserCode] public BoundedTensorSpecProto(BoundedTensorSpecProto other) : this() { name_ = other.name_; shape_ = ((other.shape_ != null) ? other.shape_.Clone() : null); dtype_ = other.dtype_; minimum_ = ((other.minimum_ != null) ? other.minimum_.Clone() : null); maximum_ = ((other.maximum_ != null) ? other.maximum_.Clone() : null); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public BoundedTensorSpecProto Clone() { return new BoundedTensorSpecProto(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as BoundedTensorSpecProto); } [DebuggerNonUserCode] public bool Equals(BoundedTensorSpecProto other) { if (other == null) { return false; } if (other == this) { return true; } if (Name != other.Name) { return false; } if (!object.Equals(Shape, other.Shape)) { return false; } if (Dtype != other.Dtype) { return false; } if (!object.Equals(Minimum, other.Minimum)) { return false; } if (!object.Equals(Maximum, other.Maximum)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Name.Length != 0) { num ^= Name.GetHashCode(); } if (shape_ != null) { num ^= Shape.GetHashCode(); } if (Dtype != DataType.DtInvalid) { num ^= Dtype.GetHashCode(); } if (minimum_ != null) { num ^= Minimum.GetHashCode(); } if (maximum_ != null) { num ^= Maximum.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Name.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(Name); } if (shape_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)Shape); } if (Dtype != DataType.DtInvalid) { output.WriteRawTag((byte)24); output.WriteEnum((int)Dtype); } if (minimum_ != null) { output.WriteRawTag((byte)34); output.WriteMessage((IMessage)(object)Minimum); } if (maximum_ != null) { output.WriteRawTag((byte)42); output.WriteMessage((IMessage)(object)Maximum); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (shape_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Shape); } if (Dtype != DataType.DtInvalid) { num += 1 + CodedOutputStream.ComputeEnumSize((int)Dtype); } if (minimum_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Minimum); } if (maximum_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)Maximum); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(BoundedTensorSpecProto other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.shape_ != null) { if (shape_ == null) { Shape = new TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.Dtype != DataType.DtInvalid) { Dtype = other.Dtype; } if (other.minimum_ != null) { if (minimum_ == null) { Minimum = new TensorProto(); } Minimum.MergeFrom(other.Minimum); } if (other.maximum_ != null) { if (maximum_ == null) { Maximum = new TensorProto(); } Maximum.MergeFrom(other.Maximum); } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: Name = input.ReadString(); break; case 18u: if (shape_ == null) { Shape = new TensorShapeProto(); } input.ReadMessage((IMessage)(object)Shape); break; case 24u: Dtype = (DataType)input.ReadEnum(); break; case 34u: if (minimum_ == null) { Minimum = new TensorProto(); } input.ReadMessage((IMessage)(object)Minimum); break; case 42u: if (maximum_ == null) { Maximum = new TensorProto(); } input.ReadMessage((IMessage)(object)Maximum); break; } } } } public sealed class TypeSpecProto : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public enum TypeSpecClass { [OriginalName("UNKNOWN")] Unknown = 0, [OriginalName("SPARSE_TENSOR_SPEC")] SparseTensorSpec = 1, [OriginalName("INDEXED_SLICES_SPEC")] IndexedSlicesSpec = 2, [OriginalName("RAGGED_TENSOR_SPEC")] RaggedTensorSpec = 3, [OriginalName("TENSOR_ARRAY_SPEC")] TensorArraySpec = 4, [OriginalName("DATA_DATASET_SPEC")] DataDatasetSpec = 5, [OriginalName("DATA_ITERATOR_SPEC")] DataIteratorSpec = 6, [OriginalName("OPTIONAL_SPEC")] OptionalSpec = 7, [OriginalName("PER_REPLICA_SPEC")] PerReplicaSpec = 8, [OriginalName("VARIABLE_SPEC")] VariableSpec = 9, [OriginalName("ROW_PARTITION_SPEC")] RowPartitionSpec = 10, [OriginalName("REGISTERED_TYPE_SPEC")] RegisteredTypeSpec = 12, [OriginalName("EXTENSION_TYPE_SPEC")] ExtensionTypeSpec = 13 } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new TypeSpecProto())); private UnknownFieldSet _unknownFields; public const int TypeSpecClassFieldNumber = 1; private Types.TypeSpecClass typeSpecClass_; public const int TypeStateFieldNumber = 2; private StructuredValue typeState_; public const int TypeSpecClassNameFieldNumber = 3; private string typeSpecClassName_ = ""; public const int NumFlatComponentsFieldNumber = 4; private int numFlatComponents_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => StructReflection.Descriptor.MessageTypes[9]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public Types.TypeSpecClass TypeSpecClass { get { return typeSpecClass_; } set { typeSpecClass_ = value; } } [DebuggerNonUserCode] public StructuredValue TypeState { get { return typeState_; } set { typeState_ = value; } } [DebuggerNonUserCode] public string TypeSpecClassName { get { return typeSpecClassName_; } set { typeSpecClassName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public int NumFlatComponents { get { return numFlatComponents_; } set { numFlatComponents_ = value; } } [DebuggerNonUserCode] public TypeSpecProto() { } [DebuggerNonUserCode] public TypeSpecProto(TypeSpecProto other) : this() { typeSpecClass_ = other.typeSpecClass_; typeState_ = ((other.typeState_ != null) ? other.typeState_.Clone() : null); typeSpecClassName_ = other.typeSpecClassName_; numFlatComponents_ = other.numFlatComponents_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public TypeSpecProto Clone() { return new TypeSpecProto(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as TypeSpecProto); } [DebuggerNonUserCode] public bool Equals(TypeSpecProto other) { if (other == null) { return false; } if (other == this) { return true; } if (TypeSpecClass != other.TypeSpecClass) { return false; } if (!object.Equals(TypeState, other.TypeState)) { return false; } if (TypeSpecClassName != other.TypeSpecClassName) { return false; } if (NumFlatComponents != other.NumFlatComponents) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (TypeSpecClass != Types.TypeSpecClass.Unknown) { num ^= TypeSpecClass.GetHashCode(); } if (typeState_ != null) { num ^= TypeState.GetHashCode(); } if (TypeSpecClassName.Length != 0) { num ^= TypeSpecClassName.GetHashCode(); } if (NumFlatComponents != 0) { num ^= NumFlatComponents.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (TypeSpecClass != Types.TypeSpecClass.Unknown) { output.WriteRawTag((byte)8); output.WriteEnum((int)TypeSpecClass); } if (typeState_ != null) { output.WriteRawTag((byte)18); output.WriteMessage((IMessage)(object)TypeState); } if (TypeSpecClassName.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(TypeSpecClassName); } if (NumFlatComponents != 0) { output.WriteRawTag((byte)32); output.WriteInt32(NumFlatComponents); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (TypeSpecClass != Types.TypeSpecClass.Unknown) { num += 1 + CodedOutputStream.ComputeEnumSize((int)TypeSpecClass); } if (typeState_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)TypeState); } if (TypeSpecClassName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(TypeSpecClassName); } if (NumFlatComponents != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(NumFlatComponents); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(TypeSpecProto other) { if (other == null) { return; } if (other.TypeSpecClass != Types.TypeSpecClass.Unknown) { TypeSpecClass = other.TypeSpecClass; } if (other.typeState_ != null) { if (typeState_ == null) { TypeState = new StructuredValue(); } TypeState.MergeFrom(other.TypeState); } if (other.TypeSpecClassName.Length != 0) { TypeSpecClassName = other.TypeSpecClassName; } if (other.NumFlatComponents != 0) { NumFlatComponents = other.NumFlatComponents; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: TypeSpecClass = (Types.TypeSpecClass)input.ReadEnum(); break; case 18u: if (typeState_ == null) { TypeState = new StructuredValue(); } input.ReadMessage((IMessage)(object)TypeState); break; case 26u: TypeSpecClassName = input.ReadString(); break; case 32u: NumFlatComponents = input.ReadInt32(); break; } } } } public static class SummaryReflection { private static FileDescriptor descriptor; public static FileDescriptor Descriptor => descriptor; static SummaryReflection() { //IL_016a: Unknown result type (might be due to invalid IL or missing references) //IL_0170: Expected O, but got Unknown //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_01c9: Expected O, but got Unknown //IL_0234: Unknown result type (might be due to invalid IL or missing references) //IL_023a: Expected O, but got Unknown //IL_023a: Unknown result type (might be due to invalid IL or missing references) //IL_0240: Expected O, but got Unknown //IL_02a3: Unknown result type (might be due to invalid IL or missing references) //IL_02a9: Expected O, but got Unknown //IL_02ec: Unknown result type (might be due to invalid IL or missing references) //IL_02f2: Expected O, but got Unknown //IL_0363: Unknown result type (might be due to invalid IL or missing references) //IL_0369: Expected O, but got Unknown //IL_0369: Unknown result type (might be due to invalid IL or missing references) //IL_036f: Expected O, but got Unknown //IL_036f: Unknown result type (might be due to invalid IL or missing references) //IL_0379: Expected O, but got Unknown descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CiZ0ZW5zb3Jib2FyZC9jb21wYXQvcHJvdG8vc3VtbWFyeS5wcm90bxILdGVu" + "c29yYm9hcmQaJXRlbnNvcmJvYXJkL2NvbXBhdC9wcm90by90ZW5zb3IucHJv" + "dG8iJwoSU3VtbWFyeURlc2NyaXB0aW9uEhEKCXR5cGVfaGludBgBIAEoCSKH" + "AQoOSGlzdG9ncmFtUHJvdG8SCwoDbWluGAEgASgBEgsKA21heBgCIAEoARIL" + "CgNudW0YAyABKAESCwoDc3VtGAQgASgBEhMKC3N1bV9zcXVhcmVzGAUgASgB" + "EhgKDGJ1Y2tldF9saW1pdBgGIAMoAUICEAESEgoGYnVja2V0GAcgAygBQgIQ" + "ASLiAQoPU3VtbWFyeU1ldGFkYXRhEjwKC3BsdWdpbl9kYXRhGAEgASgLMicu" + "dGVuc29yYm9hcmQuU3VtbWFyeU1ldGFkYXRhLlBsdWdpbkRhdGESFAoMZGlz" + "cGxheV9uYW1lGAIgASgJEhsKE3N1bW1hcnlfZGVzY3JpcHRpb24YAyABKAkS" + "KgoKZGF0YV9jbGFzcxgEIAEoDjIWLnRlbnNvcmJvYXJkLkRhdGFDbGFzcxoy" + "CgpQbHVnaW5EYXRhEhMKC3BsdWdpbl9uYW1lGAEgASgJEg8KB2NvbnRlbnQY" + "AiABKAwi5AQKB1N1bW1hcnkSKQoFdmFsdWUYASADKAsyGi50ZW5zb3Jib2Fy" + "ZC5TdW1tYXJ5LlZhbHVlGlgKBUltYWdlEg4KBmhlaWdodBgBIAEoBRINCgV3" + "aWR0aBgCIAEoBRISCgpjb2xvcnNwYWNlGAMgASgFEhwKFGVuY29kZWRfaW1h" + "Z2Vfc3RyaW5nGAQgASgMGn0KBUF1ZGlvEhMKC3NhbXBsZV9yYXRlGAEgASgC" + "EhQKDG51bV9jaGFubmVscxgCIAEoAxIVCg1sZW5ndGhfZnJhbWVzGAMgASgD" + "EhwKFGVuY29kZWRfYXVkaW9fc3RyaW5nGAQgASgMEhQKDGNvbnRlbnRfdHlw" + "ZRgFIAEoCRrUAgoFVmFsdWUSEQoJbm9kZV9uYW1lGAcgASgJEgsKA3RhZxgB" + "IAEoCRIuCghtZXRhZGF0YRgJIAEoCzIcLnRlbnNvcmJvYXJkLlN1bW1hcnlN" + "ZXRhZGF0YRIWCgxzaW1wbGVfdmFsdWUYAiABKAJIABImChxvYnNvbGV0ZV9v" + "bGRfc3R5bGVfaGlzdG9ncmFtGAMgASgMSAASKwoFaW1hZ2UYBCABKAsyGi50" + "ZW5zb3Jib2FyZC5TdW1tYXJ5LkltYWdlSAASLAoFaGlzdG8YBSABKAsyGy50" + "ZW5zb3Jib2FyZC5IaXN0b2dyYW1Qcm90b0gAEisKBWF1ZGlvGAYgASgLMhou" + "dGVuc29yYm9hcmQuU3VtbWFyeS5BdWRpb0gAEioKBnRlbnNvchgIIAEoCzIY" + "LnRlbnNvcmJvYXJkLlRlbnNvclByb3RvSABCBwoFdmFsdWUqbwoJRGF0YUNs" + "YXNzEhYKEkRBVEFfQ0xBU1NfVU5LTk9XThAAEhUKEURBVEFfQ0xBU1NfU0NB" + "TEFSEAESFQoRREFUQV9DTEFTU19URU5TT1IQAhIcChhEQVRBX0NMQVNTX0JM" + "T0JfU0VRVUVOQ0UQA0J+ChhvcmcudGVuc29yZmxvdy5mcmFtZXdvcmtCDVN1" + "bW1hcnlQcm90b3NQAVpOZ2l0aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmZs" + "b3cvdGVuc29yZmxvdy9nby9jb3JlL2ZyYW1ld29yay9zdW1tYXJ5X2dvX3By" + "b3Rv+AEBYgZwcm90bzM="), (FileDescriptor[])(object)new FileDescriptor[1] { TensorReflection.Descriptor }, new GeneratedClrTypeInfo(new Type[1] { typeof(DataClass) }, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[4] { new GeneratedClrTypeInfo(typeof(SummaryDescription), (MessageParser)(object)SummaryDescription.Parser, new string[1] { "TypeHint" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(HistogramProto), (MessageParser)(object)HistogramProto.Parser, new string[7] { "Min", "Max", "Num", "Sum", "SumSquares", "BucketLimit", "Bucket" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(SummaryMetadata), (MessageParser)(object)SummaryMetadata.Parser, new string[4] { "PluginData", "DisplayName", "SummaryDescription", "DataClass" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[1] { new GeneratedClrTypeInfo(typeof(SummaryMetadata.Types.PluginData), (MessageParser)(object)SummaryMetadata.Types.PluginData.Parser, new string[2] { "PluginName", "Content" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }), new GeneratedClrTypeInfo(typeof(Summary), (MessageParser)(object)Summary.Parser, new string[1] { "Value" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])(object)new GeneratedClrTypeInfo[3] { new GeneratedClrTypeInfo(typeof(Summary.Types.Image), (MessageParser)(object)Summary.Types.Image.Parser, new string[4] { "Height", "Width", "Colorspace", "EncodedImageString" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(Summary.Types.Audio), (MessageParser)(object)Summary.Types.Audio.Parser, new string[5] { "SampleRate", "NumChannels", "LengthFrames", "EncodedAudioString", "ContentType" }, (string[])null, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null), new GeneratedClrTypeInfo(typeof(Summary.Types.Value), (MessageParser)(object)Summary.Types.Value.Parser, new string[9] { "NodeName", "Tag", "Metadata", "SimpleValue", "ObsoleteOldStyleHistogram", "Image", "Histo", "Audio", "Tensor" }, new string[1] { "Value" }, (Type[])null, (Extension[])null, (GeneratedClrTypeInfo[])null) }) })); } } public enum DataClass { [OriginalName("DATA_CLASS_UNKNOWN")] Unknown, [OriginalName("DATA_CLASS_SCALAR")] Scalar, [OriginalName("DATA_CLASS_TENSOR")] Tensor, [OriginalName("DATA_CLASS_BLOB_SEQUENCE")] BlobSequence } public sealed class SummaryDescription : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new SummaryDescription())); private UnknownFieldSet _unknownFields; public const int TypeHintFieldNumber = 1; private string typeHint_ = ""; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SummaryReflection.Descriptor.MessageTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string TypeHint { get { return typeHint_; } set { typeHint_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public SummaryDescription() { } [DebuggerNonUserCode] public SummaryDescription(SummaryDescription other) : this() { typeHint_ = other.typeHint_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SummaryDescription Clone() { return new SummaryDescription(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SummaryDescription); } [DebuggerNonUserCode] public bool Equals(SummaryDescription other) { if (other == null) { return false; } if (other == this) { return true; } if (TypeHint != other.TypeHint) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (TypeHint.Length != 0) { num ^= TypeHint.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (TypeHint.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(TypeHint); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (TypeHint.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(TypeHint); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SummaryDescription other) { if (other != null) { if (other.TypeHint.Length != 0) { TypeHint = other.TypeHint; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { if (num != 10) { _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); } else { TypeHint = input.ReadString(); } } } } public sealed class HistogramProto : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new HistogramProto())); private UnknownFieldSet _unknownFields; public const int MinFieldNumber = 1; private double min_; public const int MaxFieldNumber = 2; private double max_; public const int NumFieldNumber = 3; private double num_; public const int SumFieldNumber = 4; private double sum_; public const int SumSquaresFieldNumber = 5; private double sumSquares_; public const int BucketLimitFieldNumber = 6; private static readonly FieldCodec _repeated_bucketLimit_codec = FieldCodec.ForDouble(50u); private readonly RepeatedField bucketLimit_ = new RepeatedField(); public const int BucketFieldNumber = 7; private static readonly FieldCodec _repeated_bucket_codec = FieldCodec.ForDouble(58u); private readonly RepeatedField bucket_ = new RepeatedField(); [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SummaryReflection.Descriptor.MessageTypes[1]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public double Min { get { return min_; } set { min_ = value; } } [DebuggerNonUserCode] public double Max { get { return max_; } set { max_ = value; } } [DebuggerNonUserCode] public double Num { get { return num_; } set { num_ = value; } } [DebuggerNonUserCode] public double Sum { get { return sum_; } set { sum_ = value; } } [DebuggerNonUserCode] public double SumSquares { get { return sumSquares_; } set { sumSquares_ = value; } } [DebuggerNonUserCode] public RepeatedField BucketLimit => bucketLimit_; [DebuggerNonUserCode] public RepeatedField Bucket => bucket_; [DebuggerNonUserCode] public HistogramProto() { } [DebuggerNonUserCode] public HistogramProto(HistogramProto other) : this() { min_ = other.min_; max_ = other.max_; num_ = other.num_; sum_ = other.sum_; sumSquares_ = other.sumSquares_; bucketLimit_ = other.bucketLimit_.Clone(); bucket_ = other.bucket_.Clone(); _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public HistogramProto Clone() { return new HistogramProto(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as HistogramProto); } [DebuggerNonUserCode] public bool Equals(HistogramProto other) { if (other == null) { return false; } if (other == this) { return true; } if (!ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Min, other.Min)) { return false; } if (!ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Max, other.Max)) { return false; } if (!ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Num, other.Num)) { return false; } if (!ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) { return false; } if (!ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SumSquares, other.SumSquares)) { return false; } if (!bucketLimit_.Equals(other.bucketLimit_)) { return false; } if (!bucket_.Equals(other.bucket_)) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Min != 0.0) { num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Min); } if (Max != 0.0) { num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Max); } if (Num != 0.0) { num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Num); } if (Sum != 0.0) { num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Sum); } if (SumSquares != 0.0) { num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SumSquares); } num ^= ((object)bucketLimit_).GetHashCode(); num ^= ((object)bucket_).GetHashCode(); if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Min != 0.0) { output.WriteRawTag((byte)9); output.WriteDouble(Min); } if (Max != 0.0) { output.WriteRawTag((byte)17); output.WriteDouble(Max); } if (Num != 0.0) { output.WriteRawTag((byte)25); output.WriteDouble(Num); } if (Sum != 0.0) { output.WriteRawTag((byte)33); output.WriteDouble(Sum); } if (SumSquares != 0.0) { output.WriteRawTag((byte)41); output.WriteDouble(SumSquares); } bucketLimit_.WriteTo(output, _repeated_bucketLimit_codec); bucket_.WriteTo(output, _repeated_bucket_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Min != 0.0) { num += 9; } if (Max != 0.0) { num += 9; } if (Num != 0.0) { num += 9; } if (Sum != 0.0) { num += 9; } if (SumSquares != 0.0) { num += 9; } num += bucketLimit_.CalculateSize(_repeated_bucketLimit_codec); num += bucket_.CalculateSize(_repeated_bucket_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(HistogramProto other) { if (other != null) { if (other.Min != 0.0) { Min = other.Min; } if (other.Max != 0.0) { Max = other.Max; } if (other.Num != 0.0) { Num = other.Num; } if (other.Sum != 0.0) { Sum = other.Sum; } if (other.SumSquares != 0.0) { SumSquares = other.SumSquares; } bucketLimit_.Add((IEnumerable)other.bucketLimit_); bucket_.Add((IEnumerable)other.bucket_); _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 9u: Min = input.ReadDouble(); break; case 17u: Max = input.ReadDouble(); break; case 25u: Num = input.ReadDouble(); break; case 33u: Sum = input.ReadDouble(); break; case 41u: SumSquares = input.ReadDouble(); break; case 49u: case 50u: bucketLimit_.AddEntriesFrom(input, _repeated_bucketLimit_codec); break; case 57u: case 58u: bucket_.AddEntriesFrom(input, _repeated_bucket_codec); break; } } } } public sealed class SummaryMetadata : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class PluginData : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new PluginData())); private UnknownFieldSet _unknownFields; public const int PluginNameFieldNumber = 1; private string pluginName_ = ""; public const int ContentFieldNumber = 2; private ByteString content_ = ByteString.Empty; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SummaryMetadata.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public string PluginName { get { return pluginName_; } set { pluginName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public ByteString Content { get { return content_; } set { content_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public PluginData() { } [DebuggerNonUserCode] public PluginData(PluginData other) : this() { pluginName_ = other.pluginName_; content_ = other.content_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public PluginData Clone() { return new PluginData(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as PluginData); } [DebuggerNonUserCode] public bool Equals(PluginData other) { if (other == null) { return false; } if (other == this) { return true; } if (PluginName != other.PluginName) { return false; } if (Content != other.Content) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (PluginName.Length != 0) { num ^= PluginName.GetHashCode(); } if (Content.Length != 0) { num ^= ((object)Content).GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (PluginName.Length != 0) { output.WriteRawTag((byte)10); output.WriteString(PluginName); } if (Content.Length != 0) { output.WriteRawTag((byte)18); output.WriteBytes(Content); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (PluginName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(PluginName); } if (Content.Length != 0) { num += 1 + CodedOutputStream.ComputeBytesSize(Content); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(PluginData other) { if (other != null) { if (other.PluginName.Length != 0) { PluginName = other.PluginName; } if (other.Content.Length != 0) { Content = other.Content; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: PluginName = input.ReadString(); break; case 18u: Content = input.ReadBytes(); break; } } } } } private static readonly MessageParser _parser = new MessageParser((Func)(() => new SummaryMetadata())); private UnknownFieldSet _unknownFields; public const int PluginDataFieldNumber = 1; private Types.PluginData pluginData_; public const int DisplayNameFieldNumber = 2; private string displayName_ = ""; public const int SummaryDescriptionFieldNumber = 3; private string summaryDescription_ = ""; public const int DataClassFieldNumber = 4; private DataClass dataClass_; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => SummaryReflection.Descriptor.MessageTypes[2]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public Types.PluginData PluginData { get { return pluginData_; } set { pluginData_ = value; } } [DebuggerNonUserCode] public string DisplayName { get { return displayName_; } set { displayName_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public string SummaryDescription { get { return summaryDescription_; } set { summaryDescription_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public DataClass DataClass { get { return dataClass_; } set { dataClass_ = value; } } [DebuggerNonUserCode] public SummaryMetadata() { } [DebuggerNonUserCode] public SummaryMetadata(SummaryMetadata other) : this() { pluginData_ = ((other.pluginData_ != null) ? other.pluginData_.Clone() : null); displayName_ = other.displayName_; summaryDescription_ = other.summaryDescription_; dataClass_ = other.dataClass_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public SummaryMetadata Clone() { return new SummaryMetadata(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as SummaryMetadata); } [DebuggerNonUserCode] public bool Equals(SummaryMetadata other) { if (other == null) { return false; } if (other == this) { return true; } if (!object.Equals(PluginData, other.PluginData)) { return false; } if (DisplayName != other.DisplayName) { return false; } if (SummaryDescription != other.SummaryDescription) { return false; } if (DataClass != other.DataClass) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (pluginData_ != null) { num ^= PluginData.GetHashCode(); } if (DisplayName.Length != 0) { num ^= DisplayName.GetHashCode(); } if (SummaryDescription.Length != 0) { num ^= SummaryDescription.GetHashCode(); } if (DataClass != DataClass.Unknown) { num ^= DataClass.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (pluginData_ != null) { output.WriteRawTag((byte)10); output.WriteMessage((IMessage)(object)PluginData); } if (DisplayName.Length != 0) { output.WriteRawTag((byte)18); output.WriteString(DisplayName); } if (SummaryDescription.Length != 0) { output.WriteRawTag((byte)26); output.WriteString(SummaryDescription); } if (DataClass != DataClass.Unknown) { output.WriteRawTag((byte)32); output.WriteEnum((int)DataClass); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (pluginData_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize((IMessage)(object)PluginData); } if (DisplayName.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(DisplayName); } if (SummaryDescription.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(SummaryDescription); } if (DataClass != DataClass.Unknown) { num += 1 + CodedOutputStream.ComputeEnumSize((int)DataClass); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(SummaryMetadata other) { if (other == null) { return; } if (other.pluginData_ != null) { if (pluginData_ == null) { PluginData = new Types.PluginData(); } PluginData.MergeFrom(other.PluginData); } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } if (other.SummaryDescription.Length != 0) { SummaryDescription = other.SummaryDescription; } if (other.DataClass != DataClass.Unknown) { DataClass = other.DataClass; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10u: if (pluginData_ == null) { PluginData = new Types.PluginData(); } input.ReadMessage((IMessage)(object)PluginData); break; case 18u: DisplayName = input.ReadString(); break; case 26u: SummaryDescription = input.ReadString(); break; case 32u: DataClass = (DataClass)input.ReadEnum(); break; } } } } public sealed class Summary : IMessage, IMessage, IEquatable, IDeepCloneable { [DebuggerNonUserCode] public static class Types { public sealed class Image : IMessage, IMessage, IEquatable, IDeepCloneable { private static readonly MessageParser _parser = new MessageParser((Func)(() => new Image())); private UnknownFieldSet _unknownFields; public const int HeightFieldNumber = 1; private int height_; public const int WidthFieldNumber = 2; private int width_; public const int ColorspaceFieldNumber = 3; private int colorspace_; public const int EncodedImageStringFieldNumber = 4; private ByteString encodedImageString_ = ByteString.Empty; [DebuggerNonUserCode] public static MessageParser Parser => _parser; [DebuggerNonUserCode] public static MessageDescriptor Descriptor => Summary.Descriptor.NestedTypes[0]; [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor => Descriptor; [DebuggerNonUserCode] public int Height { get { return height_; } set { height_ = value; } } [DebuggerNonUserCode] public int Width { get { return width_; } set { width_ = value; } } [DebuggerNonUserCode] public int Colorspace { get { return colorspace_; } set { colorspace_ = value; } } [DebuggerNonUserCode] public ByteString EncodedImageString { get { return encodedImageString_; } set { encodedImageString_ = ProtoPreconditions.CheckNotNull(value, "value"); } } [DebuggerNonUserCode] public Image() { } [DebuggerNonUserCode] public Image(Image other) : this() { height_ = other.height_; width_ = other.width_; colorspace_ = other.colorspace_; encodedImageString_ = other.encodedImageString_; _unknownFields = UnknownFieldSet.Clone(other._unknownFields); } [DebuggerNonUserCode] public Image Clone() { return new Image(this); } [DebuggerNonUserCode] public override bool Equals(object other) { return Equals(other as Image); } [DebuggerNonUserCode] public bool Equals(Image other) { if (other == null) { return false; } if (other == this) { return true; } if (Height != other.Height) { return false; } if (Width != other.Width) { return false; } if (Colorspace != other.Colorspace) { return false; } if (EncodedImageString != other.EncodedImageString) { return false; } return object.Equals(_unknownFields, other._unknownFields); } [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (Height != 0) { num ^= Height.GetHashCode(); } if (Width != 0) { num ^= Width.GetHashCode(); } if (Colorspace != 0) { num ^= Colorspace.GetHashCode(); } if (EncodedImageString.Length != 0) { num ^= ((object)EncodedImageString).GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return num; } [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString((IMessage)(object)this); } [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (Height != 0) { output.WriteRawTag((byte)8); output.WriteInt32(Height); } if (Width != 0) { output.WriteRawTag((byte)16); output.WriteInt32(Width); } if (Colorspace != 0) { output.WriteRawTag((byte)24); output.WriteInt32(Colorspace); } if (EncodedImageString.Length != 0) { output.WriteRawTag((byte)34); output.WriteBytes(EncodedImageString); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (Height != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Height); } if (Width != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Width); } if (Colorspace != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Colorspace); } if (EncodedImageString.Length != 0) { num += 1 + CodedOutputStream.ComputeBytesSize(EncodedImageString); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return num; } [DebuggerNonUserCode] public void MergeFrom(Image other) { if (other != null) { if (other.Height != 0) { Height = other.Height; } if (other.Width != 0) { Width = other.Width; } if (other.Colorspace != 0) { Colorspace = other.Colorspace; } if (other.EncodedImageString.Length != 0) { EncodedImageString = other.EncodedImageString; } _unknownFields = UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } } [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: Height = input.ReadInt32(); break; case 16u: Width = input.ReadInt32(); break; case 24u: Colorspace = input.ReadInt32(); break; case 34u: EncodedImageString = input.ReadBytes(); break; } } } } public sealed class Audio : IMessage