You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Event.cs 90 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: tensorflow/core/util/event.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021, 8981
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Tensorflow {
  12. /// <summary>Holder for reflection information generated from tensorflow/core/util/event.proto</summary>
  13. public static partial class EventReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for tensorflow/core/util/event.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static EventReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "CiB0ZW5zb3JmbG93L2NvcmUvdXRpbC9ldmVudC5wcm90bxIKdGVuc29yZmxv",
  24. "dxondGVuc29yZmxvdy9jb3JlL2ZyYW1ld29yay9zdW1tYXJ5LnByb3RvIr8C",
  25. "CgVFdmVudBIRCgl3YWxsX3RpbWUYASABKAESDAoEc3RlcBgCIAEoAxIWCgxm",
  26. "aWxlX3ZlcnNpb24YAyABKAlIABITCglncmFwaF9kZWYYBCABKAxIABImCgdz",
  27. "dW1tYXJ5GAUgASgLMhMudGVuc29yZmxvdy5TdW1tYXJ5SAASMQoLbG9nX21l",
  28. "c3NhZ2UYBiABKAsyFi50ZW5zb3JmbG93LkxvZ01lc3NhZ2VCAhgBSAASLQoL",
  29. "c2Vzc2lvbl9sb2cYByABKAsyFi50ZW5zb3JmbG93LlNlc3Npb25Mb2dIABI8",
  30. "ChN0YWdnZWRfcnVuX21ldGFkYXRhGAggASgLMh0udGVuc29yZmxvdy5UYWdn",
  31. "ZWRSdW5NZXRhZGF0YUgAEhgKDm1ldGFfZ3JhcGhfZGVmGAkgASgMSABCBgoE",
  32. "d2hhdCKhAQoKTG9nTWVzc2FnZRIrCgVsZXZlbBgBIAEoDjIcLnRlbnNvcmZs",
  33. "b3cuTG9nTWVzc2FnZS5MZXZlbBIPCgdtZXNzYWdlGAIgASgJIlEKBUxldmVs",
  34. "EgsKB1VOS05PV04QABINCglERUJVR0dJTkcQChIICgRJTkZPEBQSCAoEV0FS",
  35. "ThAeEgkKBUVSUk9SECgSCQoFRkFUQUwQMhoCGAE6AhgBIrYBCgpTZXNzaW9u",
  36. "TG9nEjQKBnN0YXR1cxgBIAEoDjIkLnRlbnNvcmZsb3cuU2Vzc2lvbkxvZy5T",
  37. "ZXNzaW9uU3RhdHVzEhcKD2NoZWNrcG9pbnRfcGF0aBgCIAEoCRILCgNtc2cY",
  38. "AyABKAkiTAoNU2Vzc2lvblN0YXR1cxIWChJTVEFUVVNfVU5TUEVDSUZJRUQQ",
  39. "ABIJCgVTVEFSVBABEggKBFNUT1AQAhIOCgpDSEVDS1BPSU5UEAMiNgoRVGFn",
  40. "Z2VkUnVuTWV0YWRhdGESCwoDdGFnGAEgASgJEhQKDHJ1bl9tZXRhZGF0YRgC",
  41. "IAEoDCIkCg5XYXRjaGRvZ0NvbmZpZxISCgp0aW1lb3V0X21zGAEgASgDIiYK",
  42. "EVJlcXVlc3RlZEV4aXRDb2RlEhEKCWV4aXRfY29kZRgBIAEoBSK2AQoWV29y",
  43. "a2VySGVhcnRiZWF0UmVxdWVzdBI1Cg1zaHV0ZG93bl9tb2RlGAEgASgOMh4u",
  44. "dGVuc29yZmxvdy5Xb3JrZXJTaHV0ZG93bk1vZGUSMwoPd2F0Y2hkb2dfY29u",
  45. "ZmlnGAIgASgLMhoudGVuc29yZmxvdy5XYXRjaGRvZ0NvbmZpZxIwCglleGl0",
  46. "X2NvZGUYAyABKAsyHS50ZW5zb3JmbG93LlJlcXVlc3RlZEV4aXRDb2RlIoMB",
  47. "ChdXb3JrZXJIZWFydGJlYXRSZXNwb25zZRIvCg1oZWFsdGhfc3RhdHVzGAEg",
  48. "ASgOMhgudGVuc29yZmxvdy5Xb3JrZXJIZWFsdGgSJQoKd29ya2VyX2xvZxgC",
  49. "IAMoCzIRLnRlbnNvcmZsb3cuRXZlbnQSEAoIaG9zdG5hbWUYAyABKAkqWwoM",
  50. "V29ya2VySGVhbHRoEgYKAk9LEAASHAoYUkVDRUlWRURfU0hVVERPV05fU0lH",
  51. "TkFMEAESEgoOSU5URVJOQUxfRVJST1IQAhIRCg1TSFVUVElOR19ET1dOEAMq",
  52. "awoSV29ya2VyU2h1dGRvd25Nb2RlEgsKB0RFRkFVTFQQABISCg5OT1RfQ09O",
  53. "RklHVVJFRBABEhgKFFdBSVRfRk9SX0NPT1JESU5BVE9SEAISGgoWU0hVVERP",
  54. "V05fQUZURVJfVElNRU9VVBADQnAKE29yZy50ZW5zb3JmbG93LnV0aWxCC0V2",
  55. "ZW50UHJvdG9zUAFaR2dpdGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3JmbG93",
  56. "L3RlbnNvcmZsb3cvZ28vY29yZS91dGlsL2V2ZW50X2dvX3Byb3Rv+AEBYgZw",
  57. "cm90bzM="));
  58. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  59. new pbr::FileDescriptor[] { global::Tensorflow.SummaryReflection.Descriptor, },
  60. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tensorflow.WorkerHealth), typeof(global::Tensorflow.WorkerShutdownMode), }, null, new pbr::GeneratedClrTypeInfo[] {
  61. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Event), global::Tensorflow.Event.Parser, new[]{ "WallTime", "Step", "FileVersion", "GraphDef", "Summary", "LogMessage", "SessionLog", "TaggedRunMetadata", "MetaGraphDef" }, new[]{ "What" }, null, null, null),
  62. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.LogMessage), global::Tensorflow.LogMessage.Parser, new[]{ "Level", "Message" }, null, new[]{ typeof(global::Tensorflow.LogMessage.Types.Level) }, null, null),
  63. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SessionLog), global::Tensorflow.SessionLog.Parser, new[]{ "Status", "CheckpointPath", "Msg" }, null, new[]{ typeof(global::Tensorflow.SessionLog.Types.SessionStatus) }, null, null),
  64. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TaggedRunMetadata), global::Tensorflow.TaggedRunMetadata.Parser, new[]{ "Tag", "RunMetadata" }, null, null, null, null),
  65. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.WatchdogConfig), global::Tensorflow.WatchdogConfig.Parser, new[]{ "TimeoutMs" }, null, null, null, null),
  66. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RequestedExitCode), global::Tensorflow.RequestedExitCode.Parser, new[]{ "ExitCode" }, null, null, null, null),
  67. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.WorkerHeartbeatRequest), global::Tensorflow.WorkerHeartbeatRequest.Parser, new[]{ "ShutdownMode", "WatchdogConfig", "ExitCode" }, null, null, null, null),
  68. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.WorkerHeartbeatResponse), global::Tensorflow.WorkerHeartbeatResponse.Parser, new[]{ "HealthStatus", "WorkerLog", "Hostname" }, null, null, null, null)
  69. }));
  70. }
  71. #endregion
  72. }
  73. #region Enums
  74. /// <summary>
  75. /// Current health status of a worker.
  76. /// </summary>
  77. public enum WorkerHealth {
  78. /// <summary>
  79. /// By default a worker is healthy.
  80. /// </summary>
  81. [pbr::OriginalName("OK")] Ok = 0,
  82. [pbr::OriginalName("RECEIVED_SHUTDOWN_SIGNAL")] ReceivedShutdownSignal = 1,
  83. [pbr::OriginalName("INTERNAL_ERROR")] InternalError = 2,
  84. /// <summary>
  85. /// Worker has been instructed to shutdown after a timeout.
  86. /// </summary>
  87. [pbr::OriginalName("SHUTTING_DOWN")] ShuttingDown = 3,
  88. }
  89. /// <summary>
  90. /// Indicates the behavior of the worker when an internal error or shutdown
  91. /// signal is received.
  92. /// </summary>
  93. public enum WorkerShutdownMode {
  94. [pbr::OriginalName("DEFAULT")] Default = 0,
  95. [pbr::OriginalName("NOT_CONFIGURED")] NotConfigured = 1,
  96. [pbr::OriginalName("WAIT_FOR_COORDINATOR")] WaitForCoordinator = 2,
  97. [pbr::OriginalName("SHUTDOWN_AFTER_TIMEOUT")] ShutdownAfterTimeout = 3,
  98. }
  99. #endregion
  100. #region Messages
  101. /// <summary>
  102. /// Protocol buffer representing an event that happened during
  103. /// the execution of a Brain model.
  104. /// </summary>
  105. public sealed partial class Event : pb::IMessage<Event>
  106. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  107. , pb::IBufferMessage
  108. #endif
  109. {
  110. private static readonly pb::MessageParser<Event> _parser = new pb::MessageParser<Event>(() => new Event());
  111. private pb::UnknownFieldSet _unknownFields;
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  113. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  114. public static pb::MessageParser<Event> Parser { get { return _parser; } }
  115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  116. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  117. public static pbr::MessageDescriptor Descriptor {
  118. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[0]; }
  119. }
  120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  121. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  122. pbr::MessageDescriptor pb::IMessage.Descriptor {
  123. get { return Descriptor; }
  124. }
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  126. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  127. public Event() {
  128. OnConstruction();
  129. }
  130. partial void OnConstruction();
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  132. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  133. public Event(Event other) : this() {
  134. wallTime_ = other.wallTime_;
  135. step_ = other.step_;
  136. switch (other.WhatCase) {
  137. case WhatOneofCase.FileVersion:
  138. FileVersion = other.FileVersion;
  139. break;
  140. case WhatOneofCase.GraphDef:
  141. GraphDef = other.GraphDef;
  142. break;
  143. case WhatOneofCase.Summary:
  144. Summary = other.Summary.Clone();
  145. break;
  146. case WhatOneofCase.LogMessage:
  147. LogMessage = other.LogMessage.Clone();
  148. break;
  149. case WhatOneofCase.SessionLog:
  150. SessionLog = other.SessionLog.Clone();
  151. break;
  152. case WhatOneofCase.TaggedRunMetadata:
  153. TaggedRunMetadata = other.TaggedRunMetadata.Clone();
  154. break;
  155. case WhatOneofCase.MetaGraphDef:
  156. MetaGraphDef = other.MetaGraphDef;
  157. break;
  158. }
  159. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  160. }
  161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  162. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  163. public Event Clone() {
  164. return new Event(this);
  165. }
  166. /// <summary>Field number for the "wall_time" field.</summary>
  167. public const int WallTimeFieldNumber = 1;
  168. private double wallTime_;
  169. /// <summary>
  170. /// Timestamp of the event.
  171. /// </summary>
  172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  173. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  174. public double WallTime {
  175. get { return wallTime_; }
  176. set {
  177. wallTime_ = value;
  178. }
  179. }
  180. /// <summary>Field number for the "step" field.</summary>
  181. public const int StepFieldNumber = 2;
  182. private long step_;
  183. /// <summary>
  184. /// Global step of the event.
  185. /// </summary>
  186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  187. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  188. public long Step {
  189. get { return step_; }
  190. set {
  191. step_ = value;
  192. }
  193. }
  194. /// <summary>Field number for the "file_version" field.</summary>
  195. public const int FileVersionFieldNumber = 3;
  196. /// <summary>
  197. /// An event file was started, with the specified version.
  198. /// This is use to identify the contents of the record IO files
  199. /// easily. Current version is "brain.Event:2". All versions
  200. /// start with "brain.Event:".
  201. /// </summary>
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  203. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  204. public string FileVersion {
  205. get { return whatCase_ == WhatOneofCase.FileVersion ? (string) what_ : ""; }
  206. set {
  207. what_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  208. whatCase_ = WhatOneofCase.FileVersion;
  209. }
  210. }
  211. /// <summary>Field number for the "graph_def" field.</summary>
  212. public const int GraphDefFieldNumber = 4;
  213. /// <summary>
  214. /// An encoded version of a GraphDef.
  215. /// </summary>
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  217. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  218. public pb::ByteString GraphDef {
  219. get { return whatCase_ == WhatOneofCase.GraphDef ? (pb::ByteString) what_ : pb::ByteString.Empty; }
  220. set {
  221. what_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  222. whatCase_ = WhatOneofCase.GraphDef;
  223. }
  224. }
  225. /// <summary>Field number for the "summary" field.</summary>
  226. public const int SummaryFieldNumber = 5;
  227. /// <summary>
  228. /// A summary was generated.
  229. /// </summary>
  230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  231. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  232. public global::Tensorflow.Summary Summary {
  233. get { return whatCase_ == WhatOneofCase.Summary ? (global::Tensorflow.Summary) what_ : null; }
  234. set {
  235. what_ = value;
  236. whatCase_ = value == null ? WhatOneofCase.None : WhatOneofCase.Summary;
  237. }
  238. }
  239. /// <summary>Field number for the "log_message" field.</summary>
  240. public const int LogMessageFieldNumber = 6;
  241. /// <summary>
  242. /// The user output a log message. This was theoretically used by the defunct
  243. /// tensorboard_logging module, which has since been removed; this field is
  244. /// now deprecated and should not be used.
  245. /// </summary>
  246. [global::System.ObsoleteAttribute]
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  248. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  249. public global::Tensorflow.LogMessage LogMessage {
  250. get { return whatCase_ == WhatOneofCase.LogMessage ? (global::Tensorflow.LogMessage) what_ : null; }
  251. set {
  252. what_ = value;
  253. whatCase_ = value == null ? WhatOneofCase.None : WhatOneofCase.LogMessage;
  254. }
  255. }
  256. /// <summary>Field number for the "session_log" field.</summary>
  257. public const int SessionLogFieldNumber = 7;
  258. /// <summary>
  259. /// The state of the session which can be used for restarting after crashes.
  260. /// </summary>
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  262. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  263. public global::Tensorflow.SessionLog SessionLog {
  264. get { return whatCase_ == WhatOneofCase.SessionLog ? (global::Tensorflow.SessionLog) what_ : null; }
  265. set {
  266. what_ = value;
  267. whatCase_ = value == null ? WhatOneofCase.None : WhatOneofCase.SessionLog;
  268. }
  269. }
  270. /// <summary>Field number for the "tagged_run_metadata" field.</summary>
  271. public const int TaggedRunMetadataFieldNumber = 8;
  272. /// <summary>
  273. /// The metadata returned by running a session.run() call.
  274. /// </summary>
  275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  276. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  277. public global::Tensorflow.TaggedRunMetadata TaggedRunMetadata {
  278. get { return whatCase_ == WhatOneofCase.TaggedRunMetadata ? (global::Tensorflow.TaggedRunMetadata) what_ : null; }
  279. set {
  280. what_ = value;
  281. whatCase_ = value == null ? WhatOneofCase.None : WhatOneofCase.TaggedRunMetadata;
  282. }
  283. }
  284. /// <summary>Field number for the "meta_graph_def" field.</summary>
  285. public const int MetaGraphDefFieldNumber = 9;
  286. /// <summary>
  287. /// An encoded version of a MetaGraphDef.
  288. /// </summary>
  289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  290. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  291. public pb::ByteString MetaGraphDef {
  292. get { return whatCase_ == WhatOneofCase.MetaGraphDef ? (pb::ByteString) what_ : pb::ByteString.Empty; }
  293. set {
  294. what_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  295. whatCase_ = WhatOneofCase.MetaGraphDef;
  296. }
  297. }
  298. private object what_;
  299. /// <summary>Enum of possible cases for the "what" oneof.</summary>
  300. public enum WhatOneofCase {
  301. None = 0,
  302. FileVersion = 3,
  303. GraphDef = 4,
  304. Summary = 5,
  305. LogMessage = 6,
  306. SessionLog = 7,
  307. TaggedRunMetadata = 8,
  308. MetaGraphDef = 9,
  309. }
  310. private WhatOneofCase whatCase_ = WhatOneofCase.None;
  311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  312. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  313. public WhatOneofCase WhatCase {
  314. get { return whatCase_; }
  315. }
  316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  317. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  318. public void ClearWhat() {
  319. whatCase_ = WhatOneofCase.None;
  320. what_ = null;
  321. }
  322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  323. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  324. public override bool Equals(object other) {
  325. return Equals(other as Event);
  326. }
  327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  328. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  329. public bool Equals(Event other) {
  330. if (ReferenceEquals(other, null)) {
  331. return false;
  332. }
  333. if (ReferenceEquals(other, this)) {
  334. return true;
  335. }
  336. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(WallTime, other.WallTime)) return false;
  337. if (Step != other.Step) return false;
  338. if (FileVersion != other.FileVersion) return false;
  339. if (GraphDef != other.GraphDef) return false;
  340. if (!object.Equals(Summary, other.Summary)) return false;
  341. if (!object.Equals(LogMessage, other.LogMessage)) return false;
  342. if (!object.Equals(SessionLog, other.SessionLog)) return false;
  343. if (!object.Equals(TaggedRunMetadata, other.TaggedRunMetadata)) return false;
  344. if (MetaGraphDef != other.MetaGraphDef) return false;
  345. if (WhatCase != other.WhatCase) return false;
  346. return Equals(_unknownFields, other._unknownFields);
  347. }
  348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  349. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  350. public override int GetHashCode() {
  351. int hash = 1;
  352. if (WallTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(WallTime);
  353. if (Step != 0L) hash ^= Step.GetHashCode();
  354. if (whatCase_ == WhatOneofCase.FileVersion) hash ^= FileVersion.GetHashCode();
  355. if (whatCase_ == WhatOneofCase.GraphDef) hash ^= GraphDef.GetHashCode();
  356. if (whatCase_ == WhatOneofCase.Summary) hash ^= Summary.GetHashCode();
  357. if (whatCase_ == WhatOneofCase.LogMessage) hash ^= LogMessage.GetHashCode();
  358. if (whatCase_ == WhatOneofCase.SessionLog) hash ^= SessionLog.GetHashCode();
  359. if (whatCase_ == WhatOneofCase.TaggedRunMetadata) hash ^= TaggedRunMetadata.GetHashCode();
  360. if (whatCase_ == WhatOneofCase.MetaGraphDef) hash ^= MetaGraphDef.GetHashCode();
  361. hash ^= (int) whatCase_;
  362. if (_unknownFields != null) {
  363. hash ^= _unknownFields.GetHashCode();
  364. }
  365. return hash;
  366. }
  367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  368. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  369. public override string ToString() {
  370. return pb::JsonFormatter.ToDiagnosticString(this);
  371. }
  372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  373. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  374. public void WriteTo(pb::CodedOutputStream output) {
  375. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  376. output.WriteRawMessage(this);
  377. #else
  378. if (WallTime != 0D) {
  379. output.WriteRawTag(9);
  380. output.WriteDouble(WallTime);
  381. }
  382. if (Step != 0L) {
  383. output.WriteRawTag(16);
  384. output.WriteInt64(Step);
  385. }
  386. if (whatCase_ == WhatOneofCase.FileVersion) {
  387. output.WriteRawTag(26);
  388. output.WriteString(FileVersion);
  389. }
  390. if (whatCase_ == WhatOneofCase.GraphDef) {
  391. output.WriteRawTag(34);
  392. output.WriteBytes(GraphDef);
  393. }
  394. if (whatCase_ == WhatOneofCase.Summary) {
  395. output.WriteRawTag(42);
  396. output.WriteMessage(Summary);
  397. }
  398. if (whatCase_ == WhatOneofCase.LogMessage) {
  399. output.WriteRawTag(50);
  400. output.WriteMessage(LogMessage);
  401. }
  402. if (whatCase_ == WhatOneofCase.SessionLog) {
  403. output.WriteRawTag(58);
  404. output.WriteMessage(SessionLog);
  405. }
  406. if (whatCase_ == WhatOneofCase.TaggedRunMetadata) {
  407. output.WriteRawTag(66);
  408. output.WriteMessage(TaggedRunMetadata);
  409. }
  410. if (whatCase_ == WhatOneofCase.MetaGraphDef) {
  411. output.WriteRawTag(74);
  412. output.WriteBytes(MetaGraphDef);
  413. }
  414. if (_unknownFields != null) {
  415. _unknownFields.WriteTo(output);
  416. }
  417. #endif
  418. }
  419. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  421. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  422. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  423. if (WallTime != 0D) {
  424. output.WriteRawTag(9);
  425. output.WriteDouble(WallTime);
  426. }
  427. if (Step != 0L) {
  428. output.WriteRawTag(16);
  429. output.WriteInt64(Step);
  430. }
  431. if (whatCase_ == WhatOneofCase.FileVersion) {
  432. output.WriteRawTag(26);
  433. output.WriteString(FileVersion);
  434. }
  435. if (whatCase_ == WhatOneofCase.GraphDef) {
  436. output.WriteRawTag(34);
  437. output.WriteBytes(GraphDef);
  438. }
  439. if (whatCase_ == WhatOneofCase.Summary) {
  440. output.WriteRawTag(42);
  441. output.WriteMessage(Summary);
  442. }
  443. if (whatCase_ == WhatOneofCase.LogMessage) {
  444. output.WriteRawTag(50);
  445. output.WriteMessage(LogMessage);
  446. }
  447. if (whatCase_ == WhatOneofCase.SessionLog) {
  448. output.WriteRawTag(58);
  449. output.WriteMessage(SessionLog);
  450. }
  451. if (whatCase_ == WhatOneofCase.TaggedRunMetadata) {
  452. output.WriteRawTag(66);
  453. output.WriteMessage(TaggedRunMetadata);
  454. }
  455. if (whatCase_ == WhatOneofCase.MetaGraphDef) {
  456. output.WriteRawTag(74);
  457. output.WriteBytes(MetaGraphDef);
  458. }
  459. if (_unknownFields != null) {
  460. _unknownFields.WriteTo(ref output);
  461. }
  462. }
  463. #endif
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  465. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  466. public int CalculateSize() {
  467. int size = 0;
  468. if (WallTime != 0D) {
  469. size += 1 + 8;
  470. }
  471. if (Step != 0L) {
  472. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Step);
  473. }
  474. if (whatCase_ == WhatOneofCase.FileVersion) {
  475. size += 1 + pb::CodedOutputStream.ComputeStringSize(FileVersion);
  476. }
  477. if (whatCase_ == WhatOneofCase.GraphDef) {
  478. size += 1 + pb::CodedOutputStream.ComputeBytesSize(GraphDef);
  479. }
  480. if (whatCase_ == WhatOneofCase.Summary) {
  481. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Summary);
  482. }
  483. if (whatCase_ == WhatOneofCase.LogMessage) {
  484. size += 1 + pb::CodedOutputStream.ComputeMessageSize(LogMessage);
  485. }
  486. if (whatCase_ == WhatOneofCase.SessionLog) {
  487. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SessionLog);
  488. }
  489. if (whatCase_ == WhatOneofCase.TaggedRunMetadata) {
  490. size += 1 + pb::CodedOutputStream.ComputeMessageSize(TaggedRunMetadata);
  491. }
  492. if (whatCase_ == WhatOneofCase.MetaGraphDef) {
  493. size += 1 + pb::CodedOutputStream.ComputeBytesSize(MetaGraphDef);
  494. }
  495. if (_unknownFields != null) {
  496. size += _unknownFields.CalculateSize();
  497. }
  498. return size;
  499. }
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  501. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  502. public void MergeFrom(Event other) {
  503. if (other == null) {
  504. return;
  505. }
  506. if (other.WallTime != 0D) {
  507. WallTime = other.WallTime;
  508. }
  509. if (other.Step != 0L) {
  510. Step = other.Step;
  511. }
  512. switch (other.WhatCase) {
  513. case WhatOneofCase.FileVersion:
  514. FileVersion = other.FileVersion;
  515. break;
  516. case WhatOneofCase.GraphDef:
  517. GraphDef = other.GraphDef;
  518. break;
  519. case WhatOneofCase.Summary:
  520. if (Summary == null) {
  521. Summary = new global::Tensorflow.Summary();
  522. }
  523. Summary.MergeFrom(other.Summary);
  524. break;
  525. case WhatOneofCase.LogMessage:
  526. if (LogMessage == null) {
  527. LogMessage = new global::Tensorflow.LogMessage();
  528. }
  529. LogMessage.MergeFrom(other.LogMessage);
  530. break;
  531. case WhatOneofCase.SessionLog:
  532. if (SessionLog == null) {
  533. SessionLog = new global::Tensorflow.SessionLog();
  534. }
  535. SessionLog.MergeFrom(other.SessionLog);
  536. break;
  537. case WhatOneofCase.TaggedRunMetadata:
  538. if (TaggedRunMetadata == null) {
  539. TaggedRunMetadata = new global::Tensorflow.TaggedRunMetadata();
  540. }
  541. TaggedRunMetadata.MergeFrom(other.TaggedRunMetadata);
  542. break;
  543. case WhatOneofCase.MetaGraphDef:
  544. MetaGraphDef = other.MetaGraphDef;
  545. break;
  546. }
  547. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  548. }
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  550. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  551. public void MergeFrom(pb::CodedInputStream input) {
  552. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  553. input.ReadRawMessage(this);
  554. #else
  555. uint tag;
  556. while ((tag = input.ReadTag()) != 0) {
  557. switch(tag) {
  558. default:
  559. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  560. break;
  561. case 9: {
  562. WallTime = input.ReadDouble();
  563. break;
  564. }
  565. case 16: {
  566. Step = input.ReadInt64();
  567. break;
  568. }
  569. case 26: {
  570. FileVersion = input.ReadString();
  571. break;
  572. }
  573. case 34: {
  574. GraphDef = input.ReadBytes();
  575. break;
  576. }
  577. case 42: {
  578. global::Tensorflow.Summary subBuilder = new global::Tensorflow.Summary();
  579. if (whatCase_ == WhatOneofCase.Summary) {
  580. subBuilder.MergeFrom(Summary);
  581. }
  582. input.ReadMessage(subBuilder);
  583. Summary = subBuilder;
  584. break;
  585. }
  586. case 50: {
  587. global::Tensorflow.LogMessage subBuilder = new global::Tensorflow.LogMessage();
  588. if (whatCase_ == WhatOneofCase.LogMessage) {
  589. subBuilder.MergeFrom(LogMessage);
  590. }
  591. input.ReadMessage(subBuilder);
  592. LogMessage = subBuilder;
  593. break;
  594. }
  595. case 58: {
  596. global::Tensorflow.SessionLog subBuilder = new global::Tensorflow.SessionLog();
  597. if (whatCase_ == WhatOneofCase.SessionLog) {
  598. subBuilder.MergeFrom(SessionLog);
  599. }
  600. input.ReadMessage(subBuilder);
  601. SessionLog = subBuilder;
  602. break;
  603. }
  604. case 66: {
  605. global::Tensorflow.TaggedRunMetadata subBuilder = new global::Tensorflow.TaggedRunMetadata();
  606. if (whatCase_ == WhatOneofCase.TaggedRunMetadata) {
  607. subBuilder.MergeFrom(TaggedRunMetadata);
  608. }
  609. input.ReadMessage(subBuilder);
  610. TaggedRunMetadata = subBuilder;
  611. break;
  612. }
  613. case 74: {
  614. MetaGraphDef = input.ReadBytes();
  615. break;
  616. }
  617. }
  618. }
  619. #endif
  620. }
  621. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  623. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  624. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  625. uint tag;
  626. while ((tag = input.ReadTag()) != 0) {
  627. switch(tag) {
  628. default:
  629. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  630. break;
  631. case 9: {
  632. WallTime = input.ReadDouble();
  633. break;
  634. }
  635. case 16: {
  636. Step = input.ReadInt64();
  637. break;
  638. }
  639. case 26: {
  640. FileVersion = input.ReadString();
  641. break;
  642. }
  643. case 34: {
  644. GraphDef = input.ReadBytes();
  645. break;
  646. }
  647. case 42: {
  648. global::Tensorflow.Summary subBuilder = new global::Tensorflow.Summary();
  649. if (whatCase_ == WhatOneofCase.Summary) {
  650. subBuilder.MergeFrom(Summary);
  651. }
  652. input.ReadMessage(subBuilder);
  653. Summary = subBuilder;
  654. break;
  655. }
  656. case 50: {
  657. global::Tensorflow.LogMessage subBuilder = new global::Tensorflow.LogMessage();
  658. if (whatCase_ == WhatOneofCase.LogMessage) {
  659. subBuilder.MergeFrom(LogMessage);
  660. }
  661. input.ReadMessage(subBuilder);
  662. LogMessage = subBuilder;
  663. break;
  664. }
  665. case 58: {
  666. global::Tensorflow.SessionLog subBuilder = new global::Tensorflow.SessionLog();
  667. if (whatCase_ == WhatOneofCase.SessionLog) {
  668. subBuilder.MergeFrom(SessionLog);
  669. }
  670. input.ReadMessage(subBuilder);
  671. SessionLog = subBuilder;
  672. break;
  673. }
  674. case 66: {
  675. global::Tensorflow.TaggedRunMetadata subBuilder = new global::Tensorflow.TaggedRunMetadata();
  676. if (whatCase_ == WhatOneofCase.TaggedRunMetadata) {
  677. subBuilder.MergeFrom(TaggedRunMetadata);
  678. }
  679. input.ReadMessage(subBuilder);
  680. TaggedRunMetadata = subBuilder;
  681. break;
  682. }
  683. case 74: {
  684. MetaGraphDef = input.ReadBytes();
  685. break;
  686. }
  687. }
  688. }
  689. }
  690. #endif
  691. }
  692. /// <summary>
  693. /// Protocol buffer used for logging messages to the events file.
  694. ///
  695. /// This was theoretically used by the defunct tensorboard_logging module, which
  696. /// has been removed; this message is now deprecated and should not be used.
  697. /// </summary>
  698. [global::System.ObsoleteAttribute]
  699. public sealed partial class LogMessage : pb::IMessage<LogMessage>
  700. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  701. , pb::IBufferMessage
  702. #endif
  703. {
  704. private static readonly pb::MessageParser<LogMessage> _parser = new pb::MessageParser<LogMessage>(() => new LogMessage());
  705. private pb::UnknownFieldSet _unknownFields;
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  707. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  708. public static pb::MessageParser<LogMessage> Parser { get { return _parser; } }
  709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  710. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  711. public static pbr::MessageDescriptor Descriptor {
  712. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[1]; }
  713. }
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  715. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  716. pbr::MessageDescriptor pb::IMessage.Descriptor {
  717. get { return Descriptor; }
  718. }
  719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  720. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  721. public LogMessage() {
  722. OnConstruction();
  723. }
  724. partial void OnConstruction();
  725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  726. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  727. public LogMessage(LogMessage other) : this() {
  728. level_ = other.level_;
  729. message_ = other.message_;
  730. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  731. }
  732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  733. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  734. public LogMessage Clone() {
  735. return new LogMessage(this);
  736. }
  737. /// <summary>Field number for the "level" field.</summary>
  738. public const int LevelFieldNumber = 1;
  739. private global::Tensorflow.LogMessage.Types.Level level_ = global::Tensorflow.LogMessage.Types.Level.Unknown;
  740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  741. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  742. public global::Tensorflow.LogMessage.Types.Level Level {
  743. get { return level_; }
  744. set {
  745. level_ = value;
  746. }
  747. }
  748. /// <summary>Field number for the "message" field.</summary>
  749. public const int MessageFieldNumber = 2;
  750. private string message_ = "";
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  752. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  753. public string Message {
  754. get { return message_; }
  755. set {
  756. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  757. }
  758. }
  759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  760. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  761. public override bool Equals(object other) {
  762. return Equals(other as LogMessage);
  763. }
  764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  765. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  766. public bool Equals(LogMessage other) {
  767. if (ReferenceEquals(other, null)) {
  768. return false;
  769. }
  770. if (ReferenceEquals(other, this)) {
  771. return true;
  772. }
  773. if (Level != other.Level) return false;
  774. if (Message != other.Message) return false;
  775. return Equals(_unknownFields, other._unknownFields);
  776. }
  777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  778. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  779. public override int GetHashCode() {
  780. int hash = 1;
  781. if (Level != global::Tensorflow.LogMessage.Types.Level.Unknown) hash ^= Level.GetHashCode();
  782. if (Message.Length != 0) hash ^= Message.GetHashCode();
  783. if (_unknownFields != null) {
  784. hash ^= _unknownFields.GetHashCode();
  785. }
  786. return hash;
  787. }
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  789. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  790. public override string ToString() {
  791. return pb::JsonFormatter.ToDiagnosticString(this);
  792. }
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  794. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  795. public void WriteTo(pb::CodedOutputStream output) {
  796. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  797. output.WriteRawMessage(this);
  798. #else
  799. if (Level != global::Tensorflow.LogMessage.Types.Level.Unknown) {
  800. output.WriteRawTag(8);
  801. output.WriteEnum((int) Level);
  802. }
  803. if (Message.Length != 0) {
  804. output.WriteRawTag(18);
  805. output.WriteString(Message);
  806. }
  807. if (_unknownFields != null) {
  808. _unknownFields.WriteTo(output);
  809. }
  810. #endif
  811. }
  812. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  814. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  815. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  816. if (Level != global::Tensorflow.LogMessage.Types.Level.Unknown) {
  817. output.WriteRawTag(8);
  818. output.WriteEnum((int) Level);
  819. }
  820. if (Message.Length != 0) {
  821. output.WriteRawTag(18);
  822. output.WriteString(Message);
  823. }
  824. if (_unknownFields != null) {
  825. _unknownFields.WriteTo(ref output);
  826. }
  827. }
  828. #endif
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  830. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  831. public int CalculateSize() {
  832. int size = 0;
  833. if (Level != global::Tensorflow.LogMessage.Types.Level.Unknown) {
  834. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level);
  835. }
  836. if (Message.Length != 0) {
  837. size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
  838. }
  839. if (_unknownFields != null) {
  840. size += _unknownFields.CalculateSize();
  841. }
  842. return size;
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  845. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  846. public void MergeFrom(LogMessage other) {
  847. if (other == null) {
  848. return;
  849. }
  850. if (other.Level != global::Tensorflow.LogMessage.Types.Level.Unknown) {
  851. Level = other.Level;
  852. }
  853. if (other.Message.Length != 0) {
  854. Message = other.Message;
  855. }
  856. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  859. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  860. public void MergeFrom(pb::CodedInputStream input) {
  861. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  862. input.ReadRawMessage(this);
  863. #else
  864. uint tag;
  865. while ((tag = input.ReadTag()) != 0) {
  866. switch(tag) {
  867. default:
  868. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  869. break;
  870. case 8: {
  871. Level = (global::Tensorflow.LogMessage.Types.Level) input.ReadEnum();
  872. break;
  873. }
  874. case 18: {
  875. Message = input.ReadString();
  876. break;
  877. }
  878. }
  879. }
  880. #endif
  881. }
  882. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  884. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  885. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  886. uint tag;
  887. while ((tag = input.ReadTag()) != 0) {
  888. switch(tag) {
  889. default:
  890. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  891. break;
  892. case 8: {
  893. Level = (global::Tensorflow.LogMessage.Types.Level) input.ReadEnum();
  894. break;
  895. }
  896. case 18: {
  897. Message = input.ReadString();
  898. break;
  899. }
  900. }
  901. }
  902. }
  903. #endif
  904. #region Nested types
  905. /// <summary>Container for nested types declared in the LogMessage message type.</summary>
  906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  907. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  908. public static partial class Types {
  909. public enum Level {
  910. [pbr::OriginalName("UNKNOWN")] Unknown = 0,
  911. /// <summary>
  912. /// Note: The logging level 10 cannot be named DEBUG. Some software
  913. /// projects compile their C/C++ code with -DDEBUG in debug builds. So the
  914. /// C++ code generated from this file should not have an identifier named
  915. /// DEBUG.
  916. /// </summary>
  917. [pbr::OriginalName("DEBUGGING")] Debugging = 10,
  918. [pbr::OriginalName("INFO")] Info = 20,
  919. [pbr::OriginalName("WARN")] Warn = 30,
  920. [pbr::OriginalName("ERROR")] Error = 40,
  921. [pbr::OriginalName("FATAL")] Fatal = 50,
  922. }
  923. }
  924. #endregion
  925. }
  926. /// <summary>
  927. /// Protocol buffer used for logging session state.
  928. /// </summary>
  929. public sealed partial class SessionLog : pb::IMessage<SessionLog>
  930. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  931. , pb::IBufferMessage
  932. #endif
  933. {
  934. private static readonly pb::MessageParser<SessionLog> _parser = new pb::MessageParser<SessionLog>(() => new SessionLog());
  935. private pb::UnknownFieldSet _unknownFields;
  936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  937. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  938. public static pb::MessageParser<SessionLog> Parser { get { return _parser; } }
  939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  940. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  941. public static pbr::MessageDescriptor Descriptor {
  942. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[2]; }
  943. }
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  945. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  946. pbr::MessageDescriptor pb::IMessage.Descriptor {
  947. get { return Descriptor; }
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  950. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  951. public SessionLog() {
  952. OnConstruction();
  953. }
  954. partial void OnConstruction();
  955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  956. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  957. public SessionLog(SessionLog other) : this() {
  958. status_ = other.status_;
  959. checkpointPath_ = other.checkpointPath_;
  960. msg_ = other.msg_;
  961. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  962. }
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  964. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  965. public SessionLog Clone() {
  966. return new SessionLog(this);
  967. }
  968. /// <summary>Field number for the "status" field.</summary>
  969. public const int StatusFieldNumber = 1;
  970. private global::Tensorflow.SessionLog.Types.SessionStatus status_ = global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified;
  971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  972. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  973. public global::Tensorflow.SessionLog.Types.SessionStatus Status {
  974. get { return status_; }
  975. set {
  976. status_ = value;
  977. }
  978. }
  979. /// <summary>Field number for the "checkpoint_path" field.</summary>
  980. public const int CheckpointPathFieldNumber = 2;
  981. private string checkpointPath_ = "";
  982. /// <summary>
  983. /// This checkpoint_path contains both the path and filename.
  984. /// </summary>
  985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  986. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  987. public string CheckpointPath {
  988. get { return checkpointPath_; }
  989. set {
  990. checkpointPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  991. }
  992. }
  993. /// <summary>Field number for the "msg" field.</summary>
  994. public const int MsgFieldNumber = 3;
  995. private string msg_ = "";
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  997. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  998. public string Msg {
  999. get { return msg_; }
  1000. set {
  1001. msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1002. }
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1005. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1006. public override bool Equals(object other) {
  1007. return Equals(other as SessionLog);
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1010. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1011. public bool Equals(SessionLog other) {
  1012. if (ReferenceEquals(other, null)) {
  1013. return false;
  1014. }
  1015. if (ReferenceEquals(other, this)) {
  1016. return true;
  1017. }
  1018. if (Status != other.Status) return false;
  1019. if (CheckpointPath != other.CheckpointPath) return false;
  1020. if (Msg != other.Msg) return false;
  1021. return Equals(_unknownFields, other._unknownFields);
  1022. }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1024. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1025. public override int GetHashCode() {
  1026. int hash = 1;
  1027. if (Status != global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified) hash ^= Status.GetHashCode();
  1028. if (CheckpointPath.Length != 0) hash ^= CheckpointPath.GetHashCode();
  1029. if (Msg.Length != 0) hash ^= Msg.GetHashCode();
  1030. if (_unknownFields != null) {
  1031. hash ^= _unknownFields.GetHashCode();
  1032. }
  1033. return hash;
  1034. }
  1035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1036. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1037. public override string ToString() {
  1038. return pb::JsonFormatter.ToDiagnosticString(this);
  1039. }
  1040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1041. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1042. public void WriteTo(pb::CodedOutputStream output) {
  1043. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1044. output.WriteRawMessage(this);
  1045. #else
  1046. if (Status != global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified) {
  1047. output.WriteRawTag(8);
  1048. output.WriteEnum((int) Status);
  1049. }
  1050. if (CheckpointPath.Length != 0) {
  1051. output.WriteRawTag(18);
  1052. output.WriteString(CheckpointPath);
  1053. }
  1054. if (Msg.Length != 0) {
  1055. output.WriteRawTag(26);
  1056. output.WriteString(Msg);
  1057. }
  1058. if (_unknownFields != null) {
  1059. _unknownFields.WriteTo(output);
  1060. }
  1061. #endif
  1062. }
  1063. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1065. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1066. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1067. if (Status != global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified) {
  1068. output.WriteRawTag(8);
  1069. output.WriteEnum((int) Status);
  1070. }
  1071. if (CheckpointPath.Length != 0) {
  1072. output.WriteRawTag(18);
  1073. output.WriteString(CheckpointPath);
  1074. }
  1075. if (Msg.Length != 0) {
  1076. output.WriteRawTag(26);
  1077. output.WriteString(Msg);
  1078. }
  1079. if (_unknownFields != null) {
  1080. _unknownFields.WriteTo(ref output);
  1081. }
  1082. }
  1083. #endif
  1084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1085. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1086. public int CalculateSize() {
  1087. int size = 0;
  1088. if (Status != global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified) {
  1089. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
  1090. }
  1091. if (CheckpointPath.Length != 0) {
  1092. size += 1 + pb::CodedOutputStream.ComputeStringSize(CheckpointPath);
  1093. }
  1094. if (Msg.Length != 0) {
  1095. size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg);
  1096. }
  1097. if (_unknownFields != null) {
  1098. size += _unknownFields.CalculateSize();
  1099. }
  1100. return size;
  1101. }
  1102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1103. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1104. public void MergeFrom(SessionLog other) {
  1105. if (other == null) {
  1106. return;
  1107. }
  1108. if (other.Status != global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified) {
  1109. Status = other.Status;
  1110. }
  1111. if (other.CheckpointPath.Length != 0) {
  1112. CheckpointPath = other.CheckpointPath;
  1113. }
  1114. if (other.Msg.Length != 0) {
  1115. Msg = other.Msg;
  1116. }
  1117. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1118. }
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1120. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1121. public void MergeFrom(pb::CodedInputStream input) {
  1122. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1123. input.ReadRawMessage(this);
  1124. #else
  1125. uint tag;
  1126. while ((tag = input.ReadTag()) != 0) {
  1127. switch(tag) {
  1128. default:
  1129. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1130. break;
  1131. case 8: {
  1132. Status = (global::Tensorflow.SessionLog.Types.SessionStatus) input.ReadEnum();
  1133. break;
  1134. }
  1135. case 18: {
  1136. CheckpointPath = input.ReadString();
  1137. break;
  1138. }
  1139. case 26: {
  1140. Msg = input.ReadString();
  1141. break;
  1142. }
  1143. }
  1144. }
  1145. #endif
  1146. }
  1147. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1149. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1150. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1151. uint tag;
  1152. while ((tag = input.ReadTag()) != 0) {
  1153. switch(tag) {
  1154. default:
  1155. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1156. break;
  1157. case 8: {
  1158. Status = (global::Tensorflow.SessionLog.Types.SessionStatus) input.ReadEnum();
  1159. break;
  1160. }
  1161. case 18: {
  1162. CheckpointPath = input.ReadString();
  1163. break;
  1164. }
  1165. case 26: {
  1166. Msg = input.ReadString();
  1167. break;
  1168. }
  1169. }
  1170. }
  1171. }
  1172. #endif
  1173. #region Nested types
  1174. /// <summary>Container for nested types declared in the SessionLog message type.</summary>
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1176. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1177. public static partial class Types {
  1178. public enum SessionStatus {
  1179. [pbr::OriginalName("STATUS_UNSPECIFIED")] StatusUnspecified = 0,
  1180. [pbr::OriginalName("START")] Start = 1,
  1181. [pbr::OriginalName("STOP")] Stop = 2,
  1182. [pbr::OriginalName("CHECKPOINT")] Checkpoint = 3,
  1183. }
  1184. }
  1185. #endregion
  1186. }
  1187. /// <summary>
  1188. /// For logging the metadata output for a single session.run() call.
  1189. /// </summary>
  1190. public sealed partial class TaggedRunMetadata : pb::IMessage<TaggedRunMetadata>
  1191. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1192. , pb::IBufferMessage
  1193. #endif
  1194. {
  1195. private static readonly pb::MessageParser<TaggedRunMetadata> _parser = new pb::MessageParser<TaggedRunMetadata>(() => new TaggedRunMetadata());
  1196. private pb::UnknownFieldSet _unknownFields;
  1197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1198. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1199. public static pb::MessageParser<TaggedRunMetadata> Parser { get { return _parser; } }
  1200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1201. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1202. public static pbr::MessageDescriptor Descriptor {
  1203. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[3]; }
  1204. }
  1205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1206. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1207. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1208. get { return Descriptor; }
  1209. }
  1210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1211. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1212. public TaggedRunMetadata() {
  1213. OnConstruction();
  1214. }
  1215. partial void OnConstruction();
  1216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1217. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1218. public TaggedRunMetadata(TaggedRunMetadata other) : this() {
  1219. tag_ = other.tag_;
  1220. runMetadata_ = other.runMetadata_;
  1221. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1222. }
  1223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1224. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1225. public TaggedRunMetadata Clone() {
  1226. return new TaggedRunMetadata(this);
  1227. }
  1228. /// <summary>Field number for the "tag" field.</summary>
  1229. public const int TagFieldNumber = 1;
  1230. private string tag_ = "";
  1231. /// <summary>
  1232. /// Tag name associated with this metadata.
  1233. /// </summary>
  1234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1235. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1236. public string Tag {
  1237. get { return tag_; }
  1238. set {
  1239. tag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1240. }
  1241. }
  1242. /// <summary>Field number for the "run_metadata" field.</summary>
  1243. public const int RunMetadataFieldNumber = 2;
  1244. private pb::ByteString runMetadata_ = pb::ByteString.Empty;
  1245. /// <summary>
  1246. /// Byte-encoded version of the `RunMetadata` proto in order to allow lazy
  1247. /// deserialization.
  1248. /// </summary>
  1249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1250. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1251. public pb::ByteString RunMetadata {
  1252. get { return runMetadata_; }
  1253. set {
  1254. runMetadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1255. }
  1256. }
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1258. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1259. public override bool Equals(object other) {
  1260. return Equals(other as TaggedRunMetadata);
  1261. }
  1262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1263. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1264. public bool Equals(TaggedRunMetadata other) {
  1265. if (ReferenceEquals(other, null)) {
  1266. return false;
  1267. }
  1268. if (ReferenceEquals(other, this)) {
  1269. return true;
  1270. }
  1271. if (Tag != other.Tag) return false;
  1272. if (RunMetadata != other.RunMetadata) return false;
  1273. return Equals(_unknownFields, other._unknownFields);
  1274. }
  1275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1276. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1277. public override int GetHashCode() {
  1278. int hash = 1;
  1279. if (Tag.Length != 0) hash ^= Tag.GetHashCode();
  1280. if (RunMetadata.Length != 0) hash ^= RunMetadata.GetHashCode();
  1281. if (_unknownFields != null) {
  1282. hash ^= _unknownFields.GetHashCode();
  1283. }
  1284. return hash;
  1285. }
  1286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1287. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1288. public override string ToString() {
  1289. return pb::JsonFormatter.ToDiagnosticString(this);
  1290. }
  1291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1292. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1293. public void WriteTo(pb::CodedOutputStream output) {
  1294. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1295. output.WriteRawMessage(this);
  1296. #else
  1297. if (Tag.Length != 0) {
  1298. output.WriteRawTag(10);
  1299. output.WriteString(Tag);
  1300. }
  1301. if (RunMetadata.Length != 0) {
  1302. output.WriteRawTag(18);
  1303. output.WriteBytes(RunMetadata);
  1304. }
  1305. if (_unknownFields != null) {
  1306. _unknownFields.WriteTo(output);
  1307. }
  1308. #endif
  1309. }
  1310. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1312. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1313. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1314. if (Tag.Length != 0) {
  1315. output.WriteRawTag(10);
  1316. output.WriteString(Tag);
  1317. }
  1318. if (RunMetadata.Length != 0) {
  1319. output.WriteRawTag(18);
  1320. output.WriteBytes(RunMetadata);
  1321. }
  1322. if (_unknownFields != null) {
  1323. _unknownFields.WriteTo(ref output);
  1324. }
  1325. }
  1326. #endif
  1327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1328. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1329. public int CalculateSize() {
  1330. int size = 0;
  1331. if (Tag.Length != 0) {
  1332. size += 1 + pb::CodedOutputStream.ComputeStringSize(Tag);
  1333. }
  1334. if (RunMetadata.Length != 0) {
  1335. size += 1 + pb::CodedOutputStream.ComputeBytesSize(RunMetadata);
  1336. }
  1337. if (_unknownFields != null) {
  1338. size += _unknownFields.CalculateSize();
  1339. }
  1340. return size;
  1341. }
  1342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1343. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1344. public void MergeFrom(TaggedRunMetadata other) {
  1345. if (other == null) {
  1346. return;
  1347. }
  1348. if (other.Tag.Length != 0) {
  1349. Tag = other.Tag;
  1350. }
  1351. if (other.RunMetadata.Length != 0) {
  1352. RunMetadata = other.RunMetadata;
  1353. }
  1354. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1355. }
  1356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1357. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1358. public void MergeFrom(pb::CodedInputStream input) {
  1359. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1360. input.ReadRawMessage(this);
  1361. #else
  1362. uint tag;
  1363. while ((tag = input.ReadTag()) != 0) {
  1364. switch(tag) {
  1365. default:
  1366. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1367. break;
  1368. case 10: {
  1369. Tag = input.ReadString();
  1370. break;
  1371. }
  1372. case 18: {
  1373. RunMetadata = input.ReadBytes();
  1374. break;
  1375. }
  1376. }
  1377. }
  1378. #endif
  1379. }
  1380. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1382. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1383. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1384. uint tag;
  1385. while ((tag = input.ReadTag()) != 0) {
  1386. switch(tag) {
  1387. default:
  1388. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1389. break;
  1390. case 10: {
  1391. Tag = input.ReadString();
  1392. break;
  1393. }
  1394. case 18: {
  1395. RunMetadata = input.ReadBytes();
  1396. break;
  1397. }
  1398. }
  1399. }
  1400. }
  1401. #endif
  1402. }
  1403. public sealed partial class WatchdogConfig : pb::IMessage<WatchdogConfig>
  1404. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1405. , pb::IBufferMessage
  1406. #endif
  1407. {
  1408. private static readonly pb::MessageParser<WatchdogConfig> _parser = new pb::MessageParser<WatchdogConfig>(() => new WatchdogConfig());
  1409. private pb::UnknownFieldSet _unknownFields;
  1410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1411. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1412. public static pb::MessageParser<WatchdogConfig> Parser { get { return _parser; } }
  1413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1414. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1415. public static pbr::MessageDescriptor Descriptor {
  1416. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[4]; }
  1417. }
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1419. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1420. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1421. get { return Descriptor; }
  1422. }
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1424. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1425. public WatchdogConfig() {
  1426. OnConstruction();
  1427. }
  1428. partial void OnConstruction();
  1429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1430. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1431. public WatchdogConfig(WatchdogConfig other) : this() {
  1432. timeoutMs_ = other.timeoutMs_;
  1433. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1434. }
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1436. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1437. public WatchdogConfig Clone() {
  1438. return new WatchdogConfig(this);
  1439. }
  1440. /// <summary>Field number for the "timeout_ms" field.</summary>
  1441. public const int TimeoutMsFieldNumber = 1;
  1442. private long timeoutMs_;
  1443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1444. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1445. public long TimeoutMs {
  1446. get { return timeoutMs_; }
  1447. set {
  1448. timeoutMs_ = value;
  1449. }
  1450. }
  1451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1452. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1453. public override bool Equals(object other) {
  1454. return Equals(other as WatchdogConfig);
  1455. }
  1456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1457. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1458. public bool Equals(WatchdogConfig other) {
  1459. if (ReferenceEquals(other, null)) {
  1460. return false;
  1461. }
  1462. if (ReferenceEquals(other, this)) {
  1463. return true;
  1464. }
  1465. if (TimeoutMs != other.TimeoutMs) return false;
  1466. return Equals(_unknownFields, other._unknownFields);
  1467. }
  1468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1469. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1470. public override int GetHashCode() {
  1471. int hash = 1;
  1472. if (TimeoutMs != 0L) hash ^= TimeoutMs.GetHashCode();
  1473. if (_unknownFields != null) {
  1474. hash ^= _unknownFields.GetHashCode();
  1475. }
  1476. return hash;
  1477. }
  1478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1479. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1480. public override string ToString() {
  1481. return pb::JsonFormatter.ToDiagnosticString(this);
  1482. }
  1483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1484. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1485. public void WriteTo(pb::CodedOutputStream output) {
  1486. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1487. output.WriteRawMessage(this);
  1488. #else
  1489. if (TimeoutMs != 0L) {
  1490. output.WriteRawTag(8);
  1491. output.WriteInt64(TimeoutMs);
  1492. }
  1493. if (_unknownFields != null) {
  1494. _unknownFields.WriteTo(output);
  1495. }
  1496. #endif
  1497. }
  1498. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1500. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1501. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1502. if (TimeoutMs != 0L) {
  1503. output.WriteRawTag(8);
  1504. output.WriteInt64(TimeoutMs);
  1505. }
  1506. if (_unknownFields != null) {
  1507. _unknownFields.WriteTo(ref output);
  1508. }
  1509. }
  1510. #endif
  1511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1512. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1513. public int CalculateSize() {
  1514. int size = 0;
  1515. if (TimeoutMs != 0L) {
  1516. size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeoutMs);
  1517. }
  1518. if (_unknownFields != null) {
  1519. size += _unknownFields.CalculateSize();
  1520. }
  1521. return size;
  1522. }
  1523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1524. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1525. public void MergeFrom(WatchdogConfig other) {
  1526. if (other == null) {
  1527. return;
  1528. }
  1529. if (other.TimeoutMs != 0L) {
  1530. TimeoutMs = other.TimeoutMs;
  1531. }
  1532. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1535. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1536. public void MergeFrom(pb::CodedInputStream input) {
  1537. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1538. input.ReadRawMessage(this);
  1539. #else
  1540. uint tag;
  1541. while ((tag = input.ReadTag()) != 0) {
  1542. switch(tag) {
  1543. default:
  1544. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1545. break;
  1546. case 8: {
  1547. TimeoutMs = input.ReadInt64();
  1548. break;
  1549. }
  1550. }
  1551. }
  1552. #endif
  1553. }
  1554. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1556. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1557. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1558. uint tag;
  1559. while ((tag = input.ReadTag()) != 0) {
  1560. switch(tag) {
  1561. default:
  1562. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1563. break;
  1564. case 8: {
  1565. TimeoutMs = input.ReadInt64();
  1566. break;
  1567. }
  1568. }
  1569. }
  1570. }
  1571. #endif
  1572. }
  1573. public sealed partial class RequestedExitCode : pb::IMessage<RequestedExitCode>
  1574. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1575. , pb::IBufferMessage
  1576. #endif
  1577. {
  1578. private static readonly pb::MessageParser<RequestedExitCode> _parser = new pb::MessageParser<RequestedExitCode>(() => new RequestedExitCode());
  1579. private pb::UnknownFieldSet _unknownFields;
  1580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1581. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1582. public static pb::MessageParser<RequestedExitCode> Parser { get { return _parser; } }
  1583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1584. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1585. public static pbr::MessageDescriptor Descriptor {
  1586. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[5]; }
  1587. }
  1588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1589. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1590. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1591. get { return Descriptor; }
  1592. }
  1593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1594. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1595. public RequestedExitCode() {
  1596. OnConstruction();
  1597. }
  1598. partial void OnConstruction();
  1599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1600. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1601. public RequestedExitCode(RequestedExitCode other) : this() {
  1602. exitCode_ = other.exitCode_;
  1603. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1606. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1607. public RequestedExitCode Clone() {
  1608. return new RequestedExitCode(this);
  1609. }
  1610. /// <summary>Field number for the "exit_code" field.</summary>
  1611. public const int ExitCodeFieldNumber = 1;
  1612. private int exitCode_;
  1613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1614. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1615. public int ExitCode {
  1616. get { return exitCode_; }
  1617. set {
  1618. exitCode_ = value;
  1619. }
  1620. }
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1622. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1623. public override bool Equals(object other) {
  1624. return Equals(other as RequestedExitCode);
  1625. }
  1626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1627. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1628. public bool Equals(RequestedExitCode other) {
  1629. if (ReferenceEquals(other, null)) {
  1630. return false;
  1631. }
  1632. if (ReferenceEquals(other, this)) {
  1633. return true;
  1634. }
  1635. if (ExitCode != other.ExitCode) return false;
  1636. return Equals(_unknownFields, other._unknownFields);
  1637. }
  1638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1639. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1640. public override int GetHashCode() {
  1641. int hash = 1;
  1642. if (ExitCode != 0) hash ^= ExitCode.GetHashCode();
  1643. if (_unknownFields != null) {
  1644. hash ^= _unknownFields.GetHashCode();
  1645. }
  1646. return hash;
  1647. }
  1648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1649. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1650. public override string ToString() {
  1651. return pb::JsonFormatter.ToDiagnosticString(this);
  1652. }
  1653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1654. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1655. public void WriteTo(pb::CodedOutputStream output) {
  1656. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1657. output.WriteRawMessage(this);
  1658. #else
  1659. if (ExitCode != 0) {
  1660. output.WriteRawTag(8);
  1661. output.WriteInt32(ExitCode);
  1662. }
  1663. if (_unknownFields != null) {
  1664. _unknownFields.WriteTo(output);
  1665. }
  1666. #endif
  1667. }
  1668. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1670. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1671. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1672. if (ExitCode != 0) {
  1673. output.WriteRawTag(8);
  1674. output.WriteInt32(ExitCode);
  1675. }
  1676. if (_unknownFields != null) {
  1677. _unknownFields.WriteTo(ref output);
  1678. }
  1679. }
  1680. #endif
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1682. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1683. public int CalculateSize() {
  1684. int size = 0;
  1685. if (ExitCode != 0) {
  1686. size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExitCode);
  1687. }
  1688. if (_unknownFields != null) {
  1689. size += _unknownFields.CalculateSize();
  1690. }
  1691. return size;
  1692. }
  1693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1694. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1695. public void MergeFrom(RequestedExitCode other) {
  1696. if (other == null) {
  1697. return;
  1698. }
  1699. if (other.ExitCode != 0) {
  1700. ExitCode = other.ExitCode;
  1701. }
  1702. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1703. }
  1704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1705. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1706. public void MergeFrom(pb::CodedInputStream input) {
  1707. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1708. input.ReadRawMessage(this);
  1709. #else
  1710. uint tag;
  1711. while ((tag = input.ReadTag()) != 0) {
  1712. switch(tag) {
  1713. default:
  1714. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1715. break;
  1716. case 8: {
  1717. ExitCode = input.ReadInt32();
  1718. break;
  1719. }
  1720. }
  1721. }
  1722. #endif
  1723. }
  1724. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1726. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1727. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1728. uint tag;
  1729. while ((tag = input.ReadTag()) != 0) {
  1730. switch(tag) {
  1731. default:
  1732. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1733. break;
  1734. case 8: {
  1735. ExitCode = input.ReadInt32();
  1736. break;
  1737. }
  1738. }
  1739. }
  1740. }
  1741. #endif
  1742. }
  1743. public sealed partial class WorkerHeartbeatRequest : pb::IMessage<WorkerHeartbeatRequest>
  1744. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1745. , pb::IBufferMessage
  1746. #endif
  1747. {
  1748. private static readonly pb::MessageParser<WorkerHeartbeatRequest> _parser = new pb::MessageParser<WorkerHeartbeatRequest>(() => new WorkerHeartbeatRequest());
  1749. private pb::UnknownFieldSet _unknownFields;
  1750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1751. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1752. public static pb::MessageParser<WorkerHeartbeatRequest> Parser { get { return _parser; } }
  1753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1754. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1755. public static pbr::MessageDescriptor Descriptor {
  1756. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[6]; }
  1757. }
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1759. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1760. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1761. get { return Descriptor; }
  1762. }
  1763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1764. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1765. public WorkerHeartbeatRequest() {
  1766. OnConstruction();
  1767. }
  1768. partial void OnConstruction();
  1769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1770. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1771. public WorkerHeartbeatRequest(WorkerHeartbeatRequest other) : this() {
  1772. shutdownMode_ = other.shutdownMode_;
  1773. watchdogConfig_ = other.watchdogConfig_ != null ? other.watchdogConfig_.Clone() : null;
  1774. exitCode_ = other.exitCode_ != null ? other.exitCode_.Clone() : null;
  1775. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1778. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1779. public WorkerHeartbeatRequest Clone() {
  1780. return new WorkerHeartbeatRequest(this);
  1781. }
  1782. /// <summary>Field number for the "shutdown_mode" field.</summary>
  1783. public const int ShutdownModeFieldNumber = 1;
  1784. private global::Tensorflow.WorkerShutdownMode shutdownMode_ = global::Tensorflow.WorkerShutdownMode.Default;
  1785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1786. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1787. public global::Tensorflow.WorkerShutdownMode ShutdownMode {
  1788. get { return shutdownMode_; }
  1789. set {
  1790. shutdownMode_ = value;
  1791. }
  1792. }
  1793. /// <summary>Field number for the "watchdog_config" field.</summary>
  1794. public const int WatchdogConfigFieldNumber = 2;
  1795. private global::Tensorflow.WatchdogConfig watchdogConfig_;
  1796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1797. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1798. public global::Tensorflow.WatchdogConfig WatchdogConfig {
  1799. get { return watchdogConfig_; }
  1800. set {
  1801. watchdogConfig_ = value;
  1802. }
  1803. }
  1804. /// <summary>Field number for the "exit_code" field.</summary>
  1805. public const int ExitCodeFieldNumber = 3;
  1806. private global::Tensorflow.RequestedExitCode exitCode_;
  1807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1808. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1809. public global::Tensorflow.RequestedExitCode ExitCode {
  1810. get { return exitCode_; }
  1811. set {
  1812. exitCode_ = value;
  1813. }
  1814. }
  1815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1816. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1817. public override bool Equals(object other) {
  1818. return Equals(other as WorkerHeartbeatRequest);
  1819. }
  1820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1821. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1822. public bool Equals(WorkerHeartbeatRequest other) {
  1823. if (ReferenceEquals(other, null)) {
  1824. return false;
  1825. }
  1826. if (ReferenceEquals(other, this)) {
  1827. return true;
  1828. }
  1829. if (ShutdownMode != other.ShutdownMode) return false;
  1830. if (!object.Equals(WatchdogConfig, other.WatchdogConfig)) return false;
  1831. if (!object.Equals(ExitCode, other.ExitCode)) return false;
  1832. return Equals(_unknownFields, other._unknownFields);
  1833. }
  1834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1835. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1836. public override int GetHashCode() {
  1837. int hash = 1;
  1838. if (ShutdownMode != global::Tensorflow.WorkerShutdownMode.Default) hash ^= ShutdownMode.GetHashCode();
  1839. if (watchdogConfig_ != null) hash ^= WatchdogConfig.GetHashCode();
  1840. if (exitCode_ != null) hash ^= ExitCode.GetHashCode();
  1841. if (_unknownFields != null) {
  1842. hash ^= _unknownFields.GetHashCode();
  1843. }
  1844. return hash;
  1845. }
  1846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1847. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1848. public override string ToString() {
  1849. return pb::JsonFormatter.ToDiagnosticString(this);
  1850. }
  1851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1852. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1853. public void WriteTo(pb::CodedOutputStream output) {
  1854. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1855. output.WriteRawMessage(this);
  1856. #else
  1857. if (ShutdownMode != global::Tensorflow.WorkerShutdownMode.Default) {
  1858. output.WriteRawTag(8);
  1859. output.WriteEnum((int) ShutdownMode);
  1860. }
  1861. if (watchdogConfig_ != null) {
  1862. output.WriteRawTag(18);
  1863. output.WriteMessage(WatchdogConfig);
  1864. }
  1865. if (exitCode_ != null) {
  1866. output.WriteRawTag(26);
  1867. output.WriteMessage(ExitCode);
  1868. }
  1869. if (_unknownFields != null) {
  1870. _unknownFields.WriteTo(output);
  1871. }
  1872. #endif
  1873. }
  1874. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1876. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1877. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1878. if (ShutdownMode != global::Tensorflow.WorkerShutdownMode.Default) {
  1879. output.WriteRawTag(8);
  1880. output.WriteEnum((int) ShutdownMode);
  1881. }
  1882. if (watchdogConfig_ != null) {
  1883. output.WriteRawTag(18);
  1884. output.WriteMessage(WatchdogConfig);
  1885. }
  1886. if (exitCode_ != null) {
  1887. output.WriteRawTag(26);
  1888. output.WriteMessage(ExitCode);
  1889. }
  1890. if (_unknownFields != null) {
  1891. _unknownFields.WriteTo(ref output);
  1892. }
  1893. }
  1894. #endif
  1895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1896. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1897. public int CalculateSize() {
  1898. int size = 0;
  1899. if (ShutdownMode != global::Tensorflow.WorkerShutdownMode.Default) {
  1900. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ShutdownMode);
  1901. }
  1902. if (watchdogConfig_ != null) {
  1903. size += 1 + pb::CodedOutputStream.ComputeMessageSize(WatchdogConfig);
  1904. }
  1905. if (exitCode_ != null) {
  1906. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExitCode);
  1907. }
  1908. if (_unknownFields != null) {
  1909. size += _unknownFields.CalculateSize();
  1910. }
  1911. return size;
  1912. }
  1913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1914. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1915. public void MergeFrom(WorkerHeartbeatRequest other) {
  1916. if (other == null) {
  1917. return;
  1918. }
  1919. if (other.ShutdownMode != global::Tensorflow.WorkerShutdownMode.Default) {
  1920. ShutdownMode = other.ShutdownMode;
  1921. }
  1922. if (other.watchdogConfig_ != null) {
  1923. if (watchdogConfig_ == null) {
  1924. WatchdogConfig = new global::Tensorflow.WatchdogConfig();
  1925. }
  1926. WatchdogConfig.MergeFrom(other.WatchdogConfig);
  1927. }
  1928. if (other.exitCode_ != null) {
  1929. if (exitCode_ == null) {
  1930. ExitCode = new global::Tensorflow.RequestedExitCode();
  1931. }
  1932. ExitCode.MergeFrom(other.ExitCode);
  1933. }
  1934. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1935. }
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1937. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1938. public void MergeFrom(pb::CodedInputStream input) {
  1939. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1940. input.ReadRawMessage(this);
  1941. #else
  1942. uint tag;
  1943. while ((tag = input.ReadTag()) != 0) {
  1944. switch(tag) {
  1945. default:
  1946. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1947. break;
  1948. case 8: {
  1949. ShutdownMode = (global::Tensorflow.WorkerShutdownMode) input.ReadEnum();
  1950. break;
  1951. }
  1952. case 18: {
  1953. if (watchdogConfig_ == null) {
  1954. WatchdogConfig = new global::Tensorflow.WatchdogConfig();
  1955. }
  1956. input.ReadMessage(WatchdogConfig);
  1957. break;
  1958. }
  1959. case 26: {
  1960. if (exitCode_ == null) {
  1961. ExitCode = new global::Tensorflow.RequestedExitCode();
  1962. }
  1963. input.ReadMessage(ExitCode);
  1964. break;
  1965. }
  1966. }
  1967. }
  1968. #endif
  1969. }
  1970. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1972. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1973. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1974. uint tag;
  1975. while ((tag = input.ReadTag()) != 0) {
  1976. switch(tag) {
  1977. default:
  1978. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1979. break;
  1980. case 8: {
  1981. ShutdownMode = (global::Tensorflow.WorkerShutdownMode) input.ReadEnum();
  1982. break;
  1983. }
  1984. case 18: {
  1985. if (watchdogConfig_ == null) {
  1986. WatchdogConfig = new global::Tensorflow.WatchdogConfig();
  1987. }
  1988. input.ReadMessage(WatchdogConfig);
  1989. break;
  1990. }
  1991. case 26: {
  1992. if (exitCode_ == null) {
  1993. ExitCode = new global::Tensorflow.RequestedExitCode();
  1994. }
  1995. input.ReadMessage(ExitCode);
  1996. break;
  1997. }
  1998. }
  1999. }
  2000. }
  2001. #endif
  2002. }
  2003. public sealed partial class WorkerHeartbeatResponse : pb::IMessage<WorkerHeartbeatResponse>
  2004. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2005. , pb::IBufferMessage
  2006. #endif
  2007. {
  2008. private static readonly pb::MessageParser<WorkerHeartbeatResponse> _parser = new pb::MessageParser<WorkerHeartbeatResponse>(() => new WorkerHeartbeatResponse());
  2009. private pb::UnknownFieldSet _unknownFields;
  2010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2011. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2012. public static pb::MessageParser<WorkerHeartbeatResponse> Parser { get { return _parser; } }
  2013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2014. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2015. public static pbr::MessageDescriptor Descriptor {
  2016. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[7]; }
  2017. }
  2018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2019. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2020. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2021. get { return Descriptor; }
  2022. }
  2023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2024. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2025. public WorkerHeartbeatResponse() {
  2026. OnConstruction();
  2027. }
  2028. partial void OnConstruction();
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2030. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2031. public WorkerHeartbeatResponse(WorkerHeartbeatResponse other) : this() {
  2032. healthStatus_ = other.healthStatus_;
  2033. workerLog_ = other.workerLog_.Clone();
  2034. hostname_ = other.hostname_;
  2035. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2036. }
  2037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2038. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2039. public WorkerHeartbeatResponse Clone() {
  2040. return new WorkerHeartbeatResponse(this);
  2041. }
  2042. /// <summary>Field number for the "health_status" field.</summary>
  2043. public const int HealthStatusFieldNumber = 1;
  2044. private global::Tensorflow.WorkerHealth healthStatus_ = global::Tensorflow.WorkerHealth.Ok;
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2046. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2047. public global::Tensorflow.WorkerHealth HealthStatus {
  2048. get { return healthStatus_; }
  2049. set {
  2050. healthStatus_ = value;
  2051. }
  2052. }
  2053. /// <summary>Field number for the "worker_log" field.</summary>
  2054. public const int WorkerLogFieldNumber = 2;
  2055. private static readonly pb::FieldCodec<global::Tensorflow.Event> _repeated_workerLog_codec
  2056. = pb::FieldCodec.ForMessage(18, global::Tensorflow.Event.Parser);
  2057. private readonly pbc::RepeatedField<global::Tensorflow.Event> workerLog_ = new pbc::RepeatedField<global::Tensorflow.Event>();
  2058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2059. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2060. public pbc::RepeatedField<global::Tensorflow.Event> WorkerLog {
  2061. get { return workerLog_; }
  2062. }
  2063. /// <summary>Field number for the "hostname" field.</summary>
  2064. public const int HostnameFieldNumber = 3;
  2065. private string hostname_ = "";
  2066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2067. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2068. public string Hostname {
  2069. get { return hostname_; }
  2070. set {
  2071. hostname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2072. }
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2075. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2076. public override bool Equals(object other) {
  2077. return Equals(other as WorkerHeartbeatResponse);
  2078. }
  2079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2080. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2081. public bool Equals(WorkerHeartbeatResponse other) {
  2082. if (ReferenceEquals(other, null)) {
  2083. return false;
  2084. }
  2085. if (ReferenceEquals(other, this)) {
  2086. return true;
  2087. }
  2088. if (HealthStatus != other.HealthStatus) return false;
  2089. if(!workerLog_.Equals(other.workerLog_)) return false;
  2090. if (Hostname != other.Hostname) return false;
  2091. return Equals(_unknownFields, other._unknownFields);
  2092. }
  2093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2094. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2095. public override int GetHashCode() {
  2096. int hash = 1;
  2097. if (HealthStatus != global::Tensorflow.WorkerHealth.Ok) hash ^= HealthStatus.GetHashCode();
  2098. hash ^= workerLog_.GetHashCode();
  2099. if (Hostname.Length != 0) hash ^= Hostname.GetHashCode();
  2100. if (_unknownFields != null) {
  2101. hash ^= _unknownFields.GetHashCode();
  2102. }
  2103. return hash;
  2104. }
  2105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2106. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2107. public override string ToString() {
  2108. return pb::JsonFormatter.ToDiagnosticString(this);
  2109. }
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2111. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2112. public void WriteTo(pb::CodedOutputStream output) {
  2113. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2114. output.WriteRawMessage(this);
  2115. #else
  2116. if (HealthStatus != global::Tensorflow.WorkerHealth.Ok) {
  2117. output.WriteRawTag(8);
  2118. output.WriteEnum((int) HealthStatus);
  2119. }
  2120. workerLog_.WriteTo(output, _repeated_workerLog_codec);
  2121. if (Hostname.Length != 0) {
  2122. output.WriteRawTag(26);
  2123. output.WriteString(Hostname);
  2124. }
  2125. if (_unknownFields != null) {
  2126. _unknownFields.WriteTo(output);
  2127. }
  2128. #endif
  2129. }
  2130. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2132. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2133. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2134. if (HealthStatus != global::Tensorflow.WorkerHealth.Ok) {
  2135. output.WriteRawTag(8);
  2136. output.WriteEnum((int) HealthStatus);
  2137. }
  2138. workerLog_.WriteTo(ref output, _repeated_workerLog_codec);
  2139. if (Hostname.Length != 0) {
  2140. output.WriteRawTag(26);
  2141. output.WriteString(Hostname);
  2142. }
  2143. if (_unknownFields != null) {
  2144. _unknownFields.WriteTo(ref output);
  2145. }
  2146. }
  2147. #endif
  2148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2149. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2150. public int CalculateSize() {
  2151. int size = 0;
  2152. if (HealthStatus != global::Tensorflow.WorkerHealth.Ok) {
  2153. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HealthStatus);
  2154. }
  2155. size += workerLog_.CalculateSize(_repeated_workerLog_codec);
  2156. if (Hostname.Length != 0) {
  2157. size += 1 + pb::CodedOutputStream.ComputeStringSize(Hostname);
  2158. }
  2159. if (_unknownFields != null) {
  2160. size += _unknownFields.CalculateSize();
  2161. }
  2162. return size;
  2163. }
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2165. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2166. public void MergeFrom(WorkerHeartbeatResponse other) {
  2167. if (other == null) {
  2168. return;
  2169. }
  2170. if (other.HealthStatus != global::Tensorflow.WorkerHealth.Ok) {
  2171. HealthStatus = other.HealthStatus;
  2172. }
  2173. workerLog_.Add(other.workerLog_);
  2174. if (other.Hostname.Length != 0) {
  2175. Hostname = other.Hostname;
  2176. }
  2177. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2178. }
  2179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2180. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2181. public void MergeFrom(pb::CodedInputStream input) {
  2182. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2183. input.ReadRawMessage(this);
  2184. #else
  2185. uint tag;
  2186. while ((tag = input.ReadTag()) != 0) {
  2187. switch(tag) {
  2188. default:
  2189. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2190. break;
  2191. case 8: {
  2192. HealthStatus = (global::Tensorflow.WorkerHealth) input.ReadEnum();
  2193. break;
  2194. }
  2195. case 18: {
  2196. workerLog_.AddEntriesFrom(input, _repeated_workerLog_codec);
  2197. break;
  2198. }
  2199. case 26: {
  2200. Hostname = input.ReadString();
  2201. break;
  2202. }
  2203. }
  2204. }
  2205. #endif
  2206. }
  2207. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2209. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2210. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2211. uint tag;
  2212. while ((tag = input.ReadTag()) != 0) {
  2213. switch(tag) {
  2214. default:
  2215. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2216. break;
  2217. case 8: {
  2218. HealthStatus = (global::Tensorflow.WorkerHealth) input.ReadEnum();
  2219. break;
  2220. }
  2221. case 18: {
  2222. workerLog_.AddEntriesFrom(ref input, _repeated_workerLog_codec);
  2223. break;
  2224. }
  2225. case 26: {
  2226. Hostname = input.ReadString();
  2227. break;
  2228. }
  2229. }
  2230. }
  2231. }
  2232. #endif
  2233. }
  2234. #endregion
  2235. }
  2236. #endregion Designer generated code