|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825 |
- // <auto-generated>
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: tensorflow/core/framework/cost_graph.proto
- // </auto-generated>
- #pragma warning disable 1591, 0612, 3021, 8981
- #region Designer generated code
-
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbr = global::Google.Protobuf.Reflection;
- using scg = global::System.Collections.Generic;
- namespace Tensorflow {
-
- /// <summary>Holder for reflection information generated from tensorflow/core/framework/cost_graph.proto</summary>
- public static partial class CostGraphReflection {
-
- #region Descriptor
- /// <summary>File descriptor for tensorflow/core/framework/cost_graph.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static CostGraphReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cip0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL2Nvc3RfZ3JhcGgucHJvdG8S",
- "CnRlbnNvcmZsb3caLHRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvdGVuc29y",
- "X3NoYXBlLnByb3RvGiV0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL3R5cGVz",
- "LnByb3RvIsoGCgxDb3N0R3JhcGhEZWYSKwoEbm9kZRgBIAMoCzIdLnRlbnNv",
- "cmZsb3cuQ29zdEdyYXBoRGVmLk5vZGUSNQoEY29zdBgCIAMoCzInLnRlbnNv",
- "cmZsb3cuQ29zdEdyYXBoRGVmLkFnZ3JlZ2F0ZWRDb3N0GqIFCgROb2RlEgwK",
- "BG5hbWUYASABKAkSDgoGZGV2aWNlGAIgASgJEgoKAmlkGAMgASgFEjsKCmlu",
- "cHV0X2luZm8YBCADKAsyJy50ZW5zb3JmbG93LkNvc3RHcmFwaERlZi5Ob2Rl",
- "LklucHV0SW5mbxI9CgtvdXRwdXRfaW5mbxgFIAMoCzIoLnRlbnNvcmZsb3cu",
- "Q29zdEdyYXBoRGVmLk5vZGUuT3V0cHV0SW5mbxIdChV0ZW1wb3JhcnlfbWVt",
- "b3J5X3NpemUYBiABKAMSHgoWcGVyc2lzdGVudF9tZW1vcnlfc2l6ZRgMIAEo",
- "AxIhChVob3N0X3RlbXBfbWVtb3J5X3NpemUYCiABKANCAhgBEiMKF2Rldmlj",
- "ZV90ZW1wX21lbW9yeV9zaXplGAsgASgDQgIYARIpCh1kZXZpY2VfcGVyc2lz",
- "dGVudF9tZW1vcnlfc2l6ZRgQIAEoA0ICGAESFAoMY29tcHV0ZV9jb3N0GAkg",
- "ASgDEhQKDGNvbXB1dGVfdGltZRgOIAEoAxITCgttZW1vcnlfdGltZRgPIAEo",
- "AxIQCghpc19maW5hbBgHIAEoCBIVCg1jb250cm9sX2lucHV0GAggAygFEhIK",
- "CmluYWNjdXJhdGUYESABKAgaOwoJSW5wdXRJbmZvEhYKDnByZWNlZGluZ19u",
- "b2RlGAEgASgFEhYKDnByZWNlZGluZ19wb3J0GAIgASgFGoYBCgpPdXRwdXRJ",
- "bmZvEgwKBHNpemUYASABKAMSGAoQYWxpYXNfaW5wdXRfcG9ydBgCIAEoAxIr",
- "CgVzaGFwZRgDIAEoCzIcLnRlbnNvcmZsb3cuVGVuc29yU2hhcGVQcm90bxIj",
- "CgVkdHlwZRgEIAEoDjIULnRlbnNvcmZsb3cuRGF0YVR5cGUaMQoOQWdncmVn",
- "YXRlZENvc3QSDAoEY29zdBgBIAEoAhIRCglkaW1lbnNpb24YAiABKAlCgwEK",
- "GG9yZy50ZW5zb3JmbG93LmZyYW1ld29ya0IPQ29zdEdyYXBoUHJvdG9zUAFa",
- "UWdpdGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3JmbG93L3RlbnNvcmZsb3cv",
- "Z28vY29yZS9mcmFtZXdvcmsvY29zdF9ncmFwaF9nb19wcm90b/gBAWIGcHJv",
- "dG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Tensorflow.TensorShapeReflection.Descriptor, global::Tensorflow.TypesReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CostGraphDef), global::Tensorflow.CostGraphDef.Parser, new[]{ "Node", "Cost" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CostGraphDef.Types.Node), global::Tensorflow.CostGraphDef.Types.Node.Parser, new[]{ "Name", "Device", "Id", "InputInfo", "OutputInfo", "TemporaryMemorySize", "PersistentMemorySize", "HostTempMemorySize", "DeviceTempMemorySize", "DevicePersistentMemorySize", "ComputeCost", "ComputeTime", "MemoryTime", "IsFinal", "ControlInput", "Inaccurate" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CostGraphDef.Types.Node.Types.InputInfo), global::Tensorflow.CostGraphDef.Types.Node.Types.InputInfo.Parser, new[]{ "PrecedingNode", "PrecedingPort" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CostGraphDef.Types.Node.Types.OutputInfo), global::Tensorflow.CostGraphDef.Types.Node.Types.OutputInfo.Parser, new[]{ "Size", "AliasInputPort", "Shape", "Dtype" }, null, null, null, null)}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CostGraphDef.Types.AggregatedCost), global::Tensorflow.CostGraphDef.Types.AggregatedCost.Parser, new[]{ "Cost", "Dimension" }, null, null, null, null)})
- }));
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class CostGraphDef : pb::IMessage<CostGraphDef>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<CostGraphDef> _parser = new pb::MessageParser<CostGraphDef>(() => new CostGraphDef());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<CostGraphDef> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.CostGraphReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CostGraphDef() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CostGraphDef(CostGraphDef other) : this() {
- node_ = other.node_.Clone();
- cost_ = other.cost_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CostGraphDef Clone() {
- return new CostGraphDef(this);
- }
-
- /// <summary>Field number for the "node" field.</summary>
- public const int NodeFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Tensorflow.CostGraphDef.Types.Node> _repeated_node_codec
- = pb::FieldCodec.ForMessage(10, global::Tensorflow.CostGraphDef.Types.Node.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.Node> node_ = new pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.Node>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.Node> Node {
- get { return node_; }
- }
-
- /// <summary>Field number for the "cost" field.</summary>
- public const int CostFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Tensorflow.CostGraphDef.Types.AggregatedCost> _repeated_cost_codec
- = pb::FieldCodec.ForMessage(18, global::Tensorflow.CostGraphDef.Types.AggregatedCost.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.AggregatedCost> cost_ = new pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.AggregatedCost>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.AggregatedCost> Cost {
- get { return cost_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as CostGraphDef);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(CostGraphDef other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!node_.Equals(other.node_)) return false;
- if(!cost_.Equals(other.cost_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= node_.GetHashCode();
- hash ^= cost_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- node_.WriteTo(output, _repeated_node_codec);
- cost_.WriteTo(output, _repeated_cost_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- node_.WriteTo(ref output, _repeated_node_codec);
- cost_.WriteTo(ref output, _repeated_cost_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += node_.CalculateSize(_repeated_node_codec);
- size += cost_.CalculateSize(_repeated_cost_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(CostGraphDef other) {
- if (other == null) {
- return;
- }
- node_.Add(other.node_);
- cost_.Add(other.cost_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- node_.AddEntriesFrom(input, _repeated_node_codec);
- break;
- }
- case 18: {
- cost_.AddEntriesFrom(input, _repeated_cost_codec);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- node_.AddEntriesFrom(ref input, _repeated_node_codec);
- break;
- }
- case 18: {
- cost_.AddEntriesFrom(ref input, _repeated_cost_codec);
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// <summary>Container for nested types declared in the CostGraphDef message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- public sealed partial class Node : pb::IMessage<Node>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<Node> _parser = new pb::MessageParser<Node>(() => new Node());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<Node> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.CostGraphDef.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Node() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- 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 = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Node Clone() {
- return new Node(this);
- }
-
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- /// <summary>
- /// The name of the node. Names are globally unique.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "device" field.</summary>
- public const int DeviceFieldNumber = 2;
- private string device_ = "";
- /// <summary>
- /// The device of the node. Can be empty if the node is mapped to the
- /// default partition or partitioning hasn't been run yet.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Device {
- get { return device_; }
- set {
- device_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "id" field.</summary>
- public const int IdFieldNumber = 3;
- private int id_;
- /// <summary>
- /// The id of the node. Node ids are only unique inside a partition.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int Id {
- get { return id_; }
- set {
- id_ = value;
- }
- }
-
- /// <summary>Field number for the "input_info" field.</summary>
- public const int InputInfoFieldNumber = 4;
- private static readonly pb::FieldCodec<global::Tensorflow.CostGraphDef.Types.Node.Types.InputInfo> _repeated_inputInfo_codec
- = pb::FieldCodec.ForMessage(34, global::Tensorflow.CostGraphDef.Types.Node.Types.InputInfo.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.Node.Types.InputInfo> inputInfo_ = new pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.Node.Types.InputInfo>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.Node.Types.InputInfo> InputInfo {
- get { return inputInfo_; }
- }
-
- /// <summary>Field number for the "output_info" field.</summary>
- public const int OutputInfoFieldNumber = 5;
- private static readonly pb::FieldCodec<global::Tensorflow.CostGraphDef.Types.Node.Types.OutputInfo> _repeated_outputInfo_codec
- = pb::FieldCodec.ForMessage(42, global::Tensorflow.CostGraphDef.Types.Node.Types.OutputInfo.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.Node.Types.OutputInfo> outputInfo_ = new pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.Node.Types.OutputInfo>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.CostGraphDef.Types.Node.Types.OutputInfo> OutputInfo {
- get { return outputInfo_; }
- }
-
- /// <summary>Field number for the "temporary_memory_size" field.</summary>
- public const int TemporaryMemorySizeFieldNumber = 6;
- private long temporaryMemorySize_;
- /// <summary>
- /// Temporary memory used by this node.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long TemporaryMemorySize {
- get { return temporaryMemorySize_; }
- set {
- temporaryMemorySize_ = value;
- }
- }
-
- /// <summary>Field number for the "persistent_memory_size" field.</summary>
- public const int PersistentMemorySizeFieldNumber = 12;
- private long persistentMemorySize_;
- /// <summary>
- /// Persistent memory used by this node.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long PersistentMemorySize {
- get { return persistentMemorySize_; }
- set {
- persistentMemorySize_ = value;
- }
- }
-
- /// <summary>Field number for the "host_temp_memory_size" field.</summary>
- public const int HostTempMemorySizeFieldNumber = 10;
- private long hostTempMemorySize_;
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long HostTempMemorySize {
- get { return hostTempMemorySize_; }
- set {
- hostTempMemorySize_ = value;
- }
- }
-
- /// <summary>Field number for the "device_temp_memory_size" field.</summary>
- public const int DeviceTempMemorySizeFieldNumber = 11;
- private long deviceTempMemorySize_;
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long DeviceTempMemorySize {
- get { return deviceTempMemorySize_; }
- set {
- deviceTempMemorySize_ = value;
- }
- }
-
- /// <summary>Field number for the "device_persistent_memory_size" field.</summary>
- public const int DevicePersistentMemorySizeFieldNumber = 16;
- private long devicePersistentMemorySize_;
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long DevicePersistentMemorySize {
- get { return devicePersistentMemorySize_; }
- set {
- devicePersistentMemorySize_ = value;
- }
- }
-
- /// <summary>Field number for the "compute_cost" field.</summary>
- public const int ComputeCostFieldNumber = 9;
- private long computeCost_;
- /// <summary>
- /// Estimate of the computational cost of this node, in microseconds.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long ComputeCost {
- get { return computeCost_; }
- set {
- computeCost_ = value;
- }
- }
-
- /// <summary>Field number for the "compute_time" field.</summary>
- public const int ComputeTimeFieldNumber = 14;
- private long computeTime_;
- /// <summary>
- /// Analytical estimate of the computational cost of this node, in
- /// microseconds.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long ComputeTime {
- get { return computeTime_; }
- set {
- computeTime_ = value;
- }
- }
-
- /// <summary>Field number for the "memory_time" field.</summary>
- public const int MemoryTimeFieldNumber = 15;
- private long memoryTime_;
- /// <summary>
- /// Analytical estimate of the memory access cost of this node, in
- /// microseconds.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long MemoryTime {
- get { return memoryTime_; }
- set {
- memoryTime_ = value;
- }
- }
-
- /// <summary>Field number for the "is_final" field.</summary>
- public const int IsFinalFieldNumber = 7;
- private bool isFinal_;
- /// <summary>
- /// If true, the output is permanent: it can't be discarded, because this
- /// node is part of the "final output". Nodes may depend on final nodes.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool IsFinal {
- get { return isFinal_; }
- set {
- isFinal_ = value;
- }
- }
-
- /// <summary>Field number for the "control_input" field.</summary>
- public const int ControlInputFieldNumber = 8;
- private static readonly pb::FieldCodec<int> _repeated_controlInput_codec
- = pb::FieldCodec.ForInt32(66);
- private readonly pbc::RepeatedField<int> controlInput_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Ids of the control inputs for this node.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<int> ControlInput {
- get { return controlInput_; }
- }
-
- /// <summary>Field number for the "inaccurate" field.</summary>
- public const int InaccurateFieldNumber = 17;
- private bool inaccurate_;
- /// <summary>
- /// Are the costs inaccurate?
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Inaccurate {
- get { return inaccurate_; }
- set {
- inaccurate_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as Node);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(Node other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(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 Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (Device.Length != 0) hash ^= Device.GetHashCode();
- if (Id != 0) hash ^= Id.GetHashCode();
- hash ^= inputInfo_.GetHashCode();
- hash ^= outputInfo_.GetHashCode();
- if (TemporaryMemorySize != 0L) hash ^= TemporaryMemorySize.GetHashCode();
- if (PersistentMemorySize != 0L) hash ^= PersistentMemorySize.GetHashCode();
- if (HostTempMemorySize != 0L) hash ^= HostTempMemorySize.GetHashCode();
- if (DeviceTempMemorySize != 0L) hash ^= DeviceTempMemorySize.GetHashCode();
- if (DevicePersistentMemorySize != 0L) hash ^= DevicePersistentMemorySize.GetHashCode();
- if (ComputeCost != 0L) hash ^= ComputeCost.GetHashCode();
- if (ComputeTime != 0L) hash ^= ComputeTime.GetHashCode();
- if (MemoryTime != 0L) hash ^= MemoryTime.GetHashCode();
- if (IsFinal != false) hash ^= IsFinal.GetHashCode();
- hash ^= controlInput_.GetHashCode();
- if (Inaccurate != false) hash ^= Inaccurate.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (Device.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Device);
- }
- if (Id != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(Id);
- }
- inputInfo_.WriteTo(output, _repeated_inputInfo_codec);
- outputInfo_.WriteTo(output, _repeated_outputInfo_codec);
- if (TemporaryMemorySize != 0L) {
- output.WriteRawTag(48);
- output.WriteInt64(TemporaryMemorySize);
- }
- if (IsFinal != false) {
- output.WriteRawTag(56);
- output.WriteBool(IsFinal);
- }
- controlInput_.WriteTo(output, _repeated_controlInput_codec);
- if (ComputeCost != 0L) {
- output.WriteRawTag(72);
- output.WriteInt64(ComputeCost);
- }
- if (HostTempMemorySize != 0L) {
- output.WriteRawTag(80);
- output.WriteInt64(HostTempMemorySize);
- }
- if (DeviceTempMemorySize != 0L) {
- output.WriteRawTag(88);
- output.WriteInt64(DeviceTempMemorySize);
- }
- if (PersistentMemorySize != 0L) {
- output.WriteRawTag(96);
- output.WriteInt64(PersistentMemorySize);
- }
- if (ComputeTime != 0L) {
- output.WriteRawTag(112);
- output.WriteInt64(ComputeTime);
- }
- if (MemoryTime != 0L) {
- output.WriteRawTag(120);
- output.WriteInt64(MemoryTime);
- }
- if (DevicePersistentMemorySize != 0L) {
- output.WriteRawTag(128, 1);
- output.WriteInt64(DevicePersistentMemorySize);
- }
- if (Inaccurate != false) {
- output.WriteRawTag(136, 1);
- output.WriteBool(Inaccurate);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (Device.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Device);
- }
- if (Id != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(Id);
- }
- inputInfo_.WriteTo(ref output, _repeated_inputInfo_codec);
- outputInfo_.WriteTo(ref output, _repeated_outputInfo_codec);
- if (TemporaryMemorySize != 0L) {
- output.WriteRawTag(48);
- output.WriteInt64(TemporaryMemorySize);
- }
- if (IsFinal != false) {
- output.WriteRawTag(56);
- output.WriteBool(IsFinal);
- }
- controlInput_.WriteTo(ref output, _repeated_controlInput_codec);
- if (ComputeCost != 0L) {
- output.WriteRawTag(72);
- output.WriteInt64(ComputeCost);
- }
- if (HostTempMemorySize != 0L) {
- output.WriteRawTag(80);
- output.WriteInt64(HostTempMemorySize);
- }
- if (DeviceTempMemorySize != 0L) {
- output.WriteRawTag(88);
- output.WriteInt64(DeviceTempMemorySize);
- }
- if (PersistentMemorySize != 0L) {
- output.WriteRawTag(96);
- output.WriteInt64(PersistentMemorySize);
- }
- if (ComputeTime != 0L) {
- output.WriteRawTag(112);
- output.WriteInt64(ComputeTime);
- }
- if (MemoryTime != 0L) {
- output.WriteRawTag(120);
- output.WriteInt64(MemoryTime);
- }
- if (DevicePersistentMemorySize != 0L) {
- output.WriteRawTag(128, 1);
- output.WriteInt64(DevicePersistentMemorySize);
- }
- if (Inaccurate != false) {
- output.WriteRawTag(136, 1);
- output.WriteBool(Inaccurate);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (Device.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Device);
- }
- if (Id != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
- }
- size += inputInfo_.CalculateSize(_repeated_inputInfo_codec);
- size += outputInfo_.CalculateSize(_repeated_outputInfo_codec);
- if (TemporaryMemorySize != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(TemporaryMemorySize);
- }
- if (PersistentMemorySize != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(PersistentMemorySize);
- }
- if (HostTempMemorySize != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(HostTempMemorySize);
- }
- if (DeviceTempMemorySize != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(DeviceTempMemorySize);
- }
- if (DevicePersistentMemorySize != 0L) {
- size += 2 + pb::CodedOutputStream.ComputeInt64Size(DevicePersistentMemorySize);
- }
- if (ComputeCost != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(ComputeCost);
- }
- if (ComputeTime != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(ComputeTime);
- }
- if (MemoryTime != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(MemoryTime);
- }
- if (IsFinal != false) {
- size += 1 + 1;
- }
- size += controlInput_.CalculateSize(_repeated_controlInput_codec);
- if (Inaccurate != false) {
- size += 2 + 1;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(Node other) {
- if (other == null) {
- return;
- }
- 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(other.inputInfo_);
- outputInfo_.Add(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 != false) {
- IsFinal = other.IsFinal;
- }
- controlInput_.Add(other.controlInput_);
- if (other.Inaccurate != false) {
- Inaccurate = other.Inaccurate;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- Device = input.ReadString();
- break;
- }
- case 24: {
- Id = input.ReadInt32();
- break;
- }
- case 34: {
- inputInfo_.AddEntriesFrom(input, _repeated_inputInfo_codec);
- break;
- }
- case 42: {
- outputInfo_.AddEntriesFrom(input, _repeated_outputInfo_codec);
- break;
- }
- case 48: {
- TemporaryMemorySize = input.ReadInt64();
- break;
- }
- case 56: {
- IsFinal = input.ReadBool();
- break;
- }
- case 66:
- case 64: {
- controlInput_.AddEntriesFrom(input, _repeated_controlInput_codec);
- break;
- }
- case 72: {
- ComputeCost = input.ReadInt64();
- break;
- }
- case 80: {
- HostTempMemorySize = input.ReadInt64();
- break;
- }
- case 88: {
- DeviceTempMemorySize = input.ReadInt64();
- break;
- }
- case 96: {
- PersistentMemorySize = input.ReadInt64();
- break;
- }
- case 112: {
- ComputeTime = input.ReadInt64();
- break;
- }
- case 120: {
- MemoryTime = input.ReadInt64();
- break;
- }
- case 128: {
- DevicePersistentMemorySize = input.ReadInt64();
- break;
- }
- case 136: {
- Inaccurate = input.ReadBool();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- Device = input.ReadString();
- break;
- }
- case 24: {
- Id = input.ReadInt32();
- break;
- }
- case 34: {
- inputInfo_.AddEntriesFrom(ref input, _repeated_inputInfo_codec);
- break;
- }
- case 42: {
- outputInfo_.AddEntriesFrom(ref input, _repeated_outputInfo_codec);
- break;
- }
- case 48: {
- TemporaryMemorySize = input.ReadInt64();
- break;
- }
- case 56: {
- IsFinal = input.ReadBool();
- break;
- }
- case 66:
- case 64: {
- controlInput_.AddEntriesFrom(ref input, _repeated_controlInput_codec);
- break;
- }
- case 72: {
- ComputeCost = input.ReadInt64();
- break;
- }
- case 80: {
- HostTempMemorySize = input.ReadInt64();
- break;
- }
- case 88: {
- DeviceTempMemorySize = input.ReadInt64();
- break;
- }
- case 96: {
- PersistentMemorySize = input.ReadInt64();
- break;
- }
- case 112: {
- ComputeTime = input.ReadInt64();
- break;
- }
- case 120: {
- MemoryTime = input.ReadInt64();
- break;
- }
- case 128: {
- DevicePersistentMemorySize = input.ReadInt64();
- break;
- }
- case 136: {
- Inaccurate = input.ReadBool();
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// <summary>Container for nested types declared in the Node message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- /// <summary>
- /// Inputs of this node. They must be executed before this node can be
- /// executed. An input is a particular output of another node, specified
- /// by the node id and the output index.
- /// </summary>
- public sealed partial class InputInfo : pb::IMessage<InputInfo>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<InputInfo> _parser = new pb::MessageParser<InputInfo>(() => new InputInfo());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<InputInfo> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.CostGraphDef.Types.Node.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public InputInfo() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public InputInfo(InputInfo other) : this() {
- precedingNode_ = other.precedingNode_;
- precedingPort_ = other.precedingPort_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public InputInfo Clone() {
- return new InputInfo(this);
- }
-
- /// <summary>Field number for the "preceding_node" field.</summary>
- public const int PrecedingNodeFieldNumber = 1;
- private int precedingNode_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int PrecedingNode {
- get { return precedingNode_; }
- set {
- precedingNode_ = value;
- }
- }
-
- /// <summary>Field number for the "preceding_port" field.</summary>
- public const int PrecedingPortFieldNumber = 2;
- private int precedingPort_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int PrecedingPort {
- get { return precedingPort_; }
- set {
- precedingPort_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as InputInfo);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(InputInfo other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (PrecedingNode != other.PrecedingNode) return false;
- if (PrecedingPort != other.PrecedingPort) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (PrecedingNode != 0) hash ^= PrecedingNode.GetHashCode();
- if (PrecedingPort != 0) hash ^= PrecedingPort.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (PrecedingNode != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(PrecedingNode);
- }
- if (PrecedingPort != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(PrecedingPort);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (PrecedingNode != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(PrecedingNode);
- }
- if (PrecedingPort != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(PrecedingPort);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (PrecedingNode != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrecedingNode);
- }
- if (PrecedingPort != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrecedingPort);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(InputInfo other) {
- if (other == null) {
- return;
- }
- if (other.PrecedingNode != 0) {
- PrecedingNode = other.PrecedingNode;
- }
- if (other.PrecedingPort != 0) {
- PrecedingPort = other.PrecedingPort;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- PrecedingNode = input.ReadInt32();
- break;
- }
- case 16: {
- PrecedingPort = input.ReadInt32();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- PrecedingNode = input.ReadInt32();
- break;
- }
- case 16: {
- PrecedingPort = input.ReadInt32();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// Outputs of this node.
- /// </summary>
- public sealed partial class OutputInfo : pb::IMessage<OutputInfo>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<OutputInfo> _parser = new pb::MessageParser<OutputInfo>(() => new OutputInfo());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<OutputInfo> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.CostGraphDef.Types.Node.Descriptor.NestedTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OutputInfo() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OutputInfo(OutputInfo other) : this() {
- size_ = other.size_;
- aliasInputPort_ = other.aliasInputPort_;
- shape_ = other.shape_ != null ? other.shape_.Clone() : null;
- dtype_ = other.dtype_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OutputInfo Clone() {
- return new OutputInfo(this);
- }
-
- /// <summary>Field number for the "size" field.</summary>
- public const int SizeFieldNumber = 1;
- private long size_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long Size {
- get { return size_; }
- set {
- size_ = value;
- }
- }
-
- /// <summary>Field number for the "alias_input_port" field.</summary>
- public const int AliasInputPortFieldNumber = 2;
- private long aliasInputPort_;
- /// <summary>
- /// If >= 0, the output is an alias of an input. Note that an alias input
- /// may itself be an alias. The algorithm will therefore need to follow
- /// those pointers.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long AliasInputPort {
- get { return aliasInputPort_; }
- set {
- aliasInputPort_ = value;
- }
- }
-
- /// <summary>Field number for the "shape" field.</summary>
- public const int ShapeFieldNumber = 3;
- private global::Tensorflow.TensorShapeProto shape_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.TensorShapeProto Shape {
- get { return shape_; }
- set {
- shape_ = value;
- }
- }
-
- /// <summary>Field number for the "dtype" field.</summary>
- public const int DtypeFieldNumber = 4;
- private global::Tensorflow.DataType dtype_ = global::Tensorflow.DataType.DtInvalid;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.DataType Dtype {
- get { return dtype_; }
- set {
- dtype_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as OutputInfo);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(OutputInfo other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(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 Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Size != 0L) hash ^= Size.GetHashCode();
- if (AliasInputPort != 0L) hash ^= AliasInputPort.GetHashCode();
- if (shape_ != null) hash ^= Shape.GetHashCode();
- if (Dtype != global::Tensorflow.DataType.DtInvalid) hash ^= Dtype.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Size != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(Size);
- }
- if (AliasInputPort != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(AliasInputPort);
- }
- if (shape_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Shape);
- }
- if (Dtype != global::Tensorflow.DataType.DtInvalid) {
- output.WriteRawTag(32);
- output.WriteEnum((int) Dtype);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Size != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(Size);
- }
- if (AliasInputPort != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(AliasInputPort);
- }
- if (shape_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Shape);
- }
- if (Dtype != global::Tensorflow.DataType.DtInvalid) {
- output.WriteRawTag(32);
- output.WriteEnum((int) Dtype);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Size != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Size);
- }
- if (AliasInputPort != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(AliasInputPort);
- }
- if (shape_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shape);
- }
- if (Dtype != global::Tensorflow.DataType.DtInvalid) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Dtype);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- 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 global::Tensorflow.TensorShapeProto();
- }
- Shape.MergeFrom(other.Shape);
- }
- if (other.Dtype != global::Tensorflow.DataType.DtInvalid) {
- Dtype = other.Dtype;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Size = input.ReadInt64();
- break;
- }
- case 16: {
- AliasInputPort = input.ReadInt64();
- break;
- }
- case 26: {
- if (shape_ == null) {
- Shape = new global::Tensorflow.TensorShapeProto();
- }
- input.ReadMessage(Shape);
- break;
- }
- case 32: {
- Dtype = (global::Tensorflow.DataType) input.ReadEnum();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- Size = input.ReadInt64();
- break;
- }
- case 16: {
- AliasInputPort = input.ReadInt64();
- break;
- }
- case 26: {
- if (shape_ == null) {
- Shape = new global::Tensorflow.TensorShapeProto();
- }
- input.ReadMessage(Shape);
- break;
- }
- case 32: {
- Dtype = (global::Tensorflow.DataType) input.ReadEnum();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- }
- #endregion
-
- }
-
- /// <summary>
- /// Total cost of this graph, typically used for balancing decisions.
- /// </summary>
- public sealed partial class AggregatedCost : pb::IMessage<AggregatedCost>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<AggregatedCost> _parser = new pb::MessageParser<AggregatedCost>(() => new AggregatedCost());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<AggregatedCost> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.CostGraphDef.Descriptor.NestedTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AggregatedCost() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AggregatedCost(AggregatedCost other) : this() {
- cost_ = other.cost_;
- dimension_ = other.dimension_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AggregatedCost Clone() {
- return new AggregatedCost(this);
- }
-
- /// <summary>Field number for the "cost" field.</summary>
- public const int CostFieldNumber = 1;
- private float cost_;
- /// <summary>
- /// Aggregated cost value.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public float Cost {
- get { return cost_; }
- set {
- cost_ = value;
- }
- }
-
- /// <summary>Field number for the "dimension" field.</summary>
- public const int DimensionFieldNumber = 2;
- private string dimension_ = "";
- /// <summary>
- /// Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Dimension {
- get { return dimension_; }
- set {
- dimension_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as AggregatedCost);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AggregatedCost other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Cost, other.Cost)) return false;
- if (Dimension != other.Dimension) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Cost != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Cost);
- if (Dimension.Length != 0) hash ^= Dimension.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Cost != 0F) {
- output.WriteRawTag(13);
- output.WriteFloat(Cost);
- }
- if (Dimension.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Dimension);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Cost != 0F) {
- output.WriteRawTag(13);
- output.WriteFloat(Cost);
- }
- if (Dimension.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Dimension);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Cost != 0F) {
- size += 1 + 4;
- }
- if (Dimension.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Dimension);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AggregatedCost other) {
- if (other == null) {
- return;
- }
- if (other.Cost != 0F) {
- Cost = other.Cost;
- }
- if (other.Dimension.Length != 0) {
- Dimension = other.Dimension;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 13: {
- Cost = input.ReadFloat();
- break;
- }
- case 18: {
- Dimension = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 13: {
- Cost = input.ReadFloat();
- break;
- }
- case 18: {
- Dimension = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- }
- #endregion
-
- }
-
- #endregion
-
- }
-
- #endregion Designer generated code
|