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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423
  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. [global::System.ObsoleteAttribute]
  910. public enum Level {
  911. [pbr::OriginalName("UNKNOWN")] Unknown = 0,
  912. /// <summary>
  913. /// Note: The logging level 10 cannot be named DEBUG. Some software
  914. /// projects compile their C/C++ code with -DDEBUG in debug builds. So the
  915. /// C++ code generated from this file should not have an identifier named
  916. /// DEBUG.
  917. /// </summary>
  918. [pbr::OriginalName("DEBUGGING")] Debugging = 10,
  919. [pbr::OriginalName("INFO")] Info = 20,
  920. [pbr::OriginalName("WARN")] Warn = 30,
  921. [pbr::OriginalName("ERROR")] Error = 40,
  922. [pbr::OriginalName("FATAL")] Fatal = 50,
  923. }
  924. }
  925. #endregion
  926. }
  927. /// <summary>
  928. /// Protocol buffer used for logging session state.
  929. /// </summary>
  930. public sealed partial class SessionLog : pb::IMessage<SessionLog>
  931. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  932. , pb::IBufferMessage
  933. #endif
  934. {
  935. private static readonly pb::MessageParser<SessionLog> _parser = new pb::MessageParser<SessionLog>(() => new SessionLog());
  936. private pb::UnknownFieldSet _unknownFields;
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  938. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  939. public static pb::MessageParser<SessionLog> Parser { get { return _parser; } }
  940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  941. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  942. public static pbr::MessageDescriptor Descriptor {
  943. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[2]; }
  944. }
  945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  946. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  947. pbr::MessageDescriptor pb::IMessage.Descriptor {
  948. get { return Descriptor; }
  949. }
  950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  951. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  952. public SessionLog() {
  953. OnConstruction();
  954. }
  955. partial void OnConstruction();
  956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  957. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  958. public SessionLog(SessionLog other) : this() {
  959. status_ = other.status_;
  960. checkpointPath_ = other.checkpointPath_;
  961. msg_ = other.msg_;
  962. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  963. }
  964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  965. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  966. public SessionLog Clone() {
  967. return new SessionLog(this);
  968. }
  969. /// <summary>Field number for the "status" field.</summary>
  970. public const int StatusFieldNumber = 1;
  971. private global::Tensorflow.SessionLog.Types.SessionStatus status_ = global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified;
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  973. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  974. public global::Tensorflow.SessionLog.Types.SessionStatus Status {
  975. get { return status_; }
  976. set {
  977. status_ = value;
  978. }
  979. }
  980. /// <summary>Field number for the "checkpoint_path" field.</summary>
  981. public const int CheckpointPathFieldNumber = 2;
  982. private string checkpointPath_ = "";
  983. /// <summary>
  984. /// This checkpoint_path contains both the path and filename.
  985. /// </summary>
  986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  987. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  988. public string CheckpointPath {
  989. get { return checkpointPath_; }
  990. set {
  991. checkpointPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  992. }
  993. }
  994. /// <summary>Field number for the "msg" field.</summary>
  995. public const int MsgFieldNumber = 3;
  996. private string msg_ = "";
  997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  998. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  999. public string Msg {
  1000. get { return msg_; }
  1001. set {
  1002. msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1003. }
  1004. }
  1005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1006. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1007. public override bool Equals(object other) {
  1008. return Equals(other as SessionLog);
  1009. }
  1010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1011. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1012. public bool Equals(SessionLog other) {
  1013. if (ReferenceEquals(other, null)) {
  1014. return false;
  1015. }
  1016. if (ReferenceEquals(other, this)) {
  1017. return true;
  1018. }
  1019. if (Status != other.Status) return false;
  1020. if (CheckpointPath != other.CheckpointPath) return false;
  1021. if (Msg != other.Msg) return false;
  1022. return Equals(_unknownFields, other._unknownFields);
  1023. }
  1024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1025. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1026. public override int GetHashCode() {
  1027. int hash = 1;
  1028. if (Status != global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified) hash ^= Status.GetHashCode();
  1029. if (CheckpointPath.Length != 0) hash ^= CheckpointPath.GetHashCode();
  1030. if (Msg.Length != 0) hash ^= Msg.GetHashCode();
  1031. if (_unknownFields != null) {
  1032. hash ^= _unknownFields.GetHashCode();
  1033. }
  1034. return hash;
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1037. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1038. public override string ToString() {
  1039. return pb::JsonFormatter.ToDiagnosticString(this);
  1040. }
  1041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1042. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1043. public void WriteTo(pb::CodedOutputStream output) {
  1044. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1045. output.WriteRawMessage(this);
  1046. #else
  1047. if (Status != global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified) {
  1048. output.WriteRawTag(8);
  1049. output.WriteEnum((int) Status);
  1050. }
  1051. if (CheckpointPath.Length != 0) {
  1052. output.WriteRawTag(18);
  1053. output.WriteString(CheckpointPath);
  1054. }
  1055. if (Msg.Length != 0) {
  1056. output.WriteRawTag(26);
  1057. output.WriteString(Msg);
  1058. }
  1059. if (_unknownFields != null) {
  1060. _unknownFields.WriteTo(output);
  1061. }
  1062. #endif
  1063. }
  1064. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1066. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1067. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1068. if (Status != global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified) {
  1069. output.WriteRawTag(8);
  1070. output.WriteEnum((int) Status);
  1071. }
  1072. if (CheckpointPath.Length != 0) {
  1073. output.WriteRawTag(18);
  1074. output.WriteString(CheckpointPath);
  1075. }
  1076. if (Msg.Length != 0) {
  1077. output.WriteRawTag(26);
  1078. output.WriteString(Msg);
  1079. }
  1080. if (_unknownFields != null) {
  1081. _unknownFields.WriteTo(ref output);
  1082. }
  1083. }
  1084. #endif
  1085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1086. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1087. public int CalculateSize() {
  1088. int size = 0;
  1089. if (Status != global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified) {
  1090. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
  1091. }
  1092. if (CheckpointPath.Length != 0) {
  1093. size += 1 + pb::CodedOutputStream.ComputeStringSize(CheckpointPath);
  1094. }
  1095. if (Msg.Length != 0) {
  1096. size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg);
  1097. }
  1098. if (_unknownFields != null) {
  1099. size += _unknownFields.CalculateSize();
  1100. }
  1101. return size;
  1102. }
  1103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1104. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1105. public void MergeFrom(SessionLog other) {
  1106. if (other == null) {
  1107. return;
  1108. }
  1109. if (other.Status != global::Tensorflow.SessionLog.Types.SessionStatus.StatusUnspecified) {
  1110. Status = other.Status;
  1111. }
  1112. if (other.CheckpointPath.Length != 0) {
  1113. CheckpointPath = other.CheckpointPath;
  1114. }
  1115. if (other.Msg.Length != 0) {
  1116. Msg = other.Msg;
  1117. }
  1118. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1119. }
  1120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1121. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1122. public void MergeFrom(pb::CodedInputStream input) {
  1123. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1124. input.ReadRawMessage(this);
  1125. #else
  1126. uint tag;
  1127. while ((tag = input.ReadTag()) != 0) {
  1128. switch(tag) {
  1129. default:
  1130. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1131. break;
  1132. case 8: {
  1133. Status = (global::Tensorflow.SessionLog.Types.SessionStatus) input.ReadEnum();
  1134. break;
  1135. }
  1136. case 18: {
  1137. CheckpointPath = input.ReadString();
  1138. break;
  1139. }
  1140. case 26: {
  1141. Msg = input.ReadString();
  1142. break;
  1143. }
  1144. }
  1145. }
  1146. #endif
  1147. }
  1148. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1150. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1151. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1152. uint tag;
  1153. while ((tag = input.ReadTag()) != 0) {
  1154. switch(tag) {
  1155. default:
  1156. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1157. break;
  1158. case 8: {
  1159. Status = (global::Tensorflow.SessionLog.Types.SessionStatus) input.ReadEnum();
  1160. break;
  1161. }
  1162. case 18: {
  1163. CheckpointPath = input.ReadString();
  1164. break;
  1165. }
  1166. case 26: {
  1167. Msg = input.ReadString();
  1168. break;
  1169. }
  1170. }
  1171. }
  1172. }
  1173. #endif
  1174. #region Nested types
  1175. /// <summary>Container for nested types declared in the SessionLog message type.</summary>
  1176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1177. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1178. public static partial class Types {
  1179. public enum SessionStatus {
  1180. [pbr::OriginalName("STATUS_UNSPECIFIED")] StatusUnspecified = 0,
  1181. [pbr::OriginalName("START")] Start = 1,
  1182. [pbr::OriginalName("STOP")] Stop = 2,
  1183. [pbr::OriginalName("CHECKPOINT")] Checkpoint = 3,
  1184. }
  1185. }
  1186. #endregion
  1187. }
  1188. /// <summary>
  1189. /// For logging the metadata output for a single session.run() call.
  1190. /// </summary>
  1191. public sealed partial class TaggedRunMetadata : pb::IMessage<TaggedRunMetadata>
  1192. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1193. , pb::IBufferMessage
  1194. #endif
  1195. {
  1196. private static readonly pb::MessageParser<TaggedRunMetadata> _parser = new pb::MessageParser<TaggedRunMetadata>(() => new TaggedRunMetadata());
  1197. private pb::UnknownFieldSet _unknownFields;
  1198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1199. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1200. public static pb::MessageParser<TaggedRunMetadata> Parser { get { return _parser; } }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1202. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1203. public static pbr::MessageDescriptor Descriptor {
  1204. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[3]; }
  1205. }
  1206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1207. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1208. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1209. get { return Descriptor; }
  1210. }
  1211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1212. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1213. public TaggedRunMetadata() {
  1214. OnConstruction();
  1215. }
  1216. partial void OnConstruction();
  1217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1218. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1219. public TaggedRunMetadata(TaggedRunMetadata other) : this() {
  1220. tag_ = other.tag_;
  1221. runMetadata_ = other.runMetadata_;
  1222. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1223. }
  1224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1225. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1226. public TaggedRunMetadata Clone() {
  1227. return new TaggedRunMetadata(this);
  1228. }
  1229. /// <summary>Field number for the "tag" field.</summary>
  1230. public const int TagFieldNumber = 1;
  1231. private string tag_ = "";
  1232. /// <summary>
  1233. /// Tag name associated with this metadata.
  1234. /// </summary>
  1235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1236. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1237. public string Tag {
  1238. get { return tag_; }
  1239. set {
  1240. tag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1241. }
  1242. }
  1243. /// <summary>Field number for the "run_metadata" field.</summary>
  1244. public const int RunMetadataFieldNumber = 2;
  1245. private pb::ByteString runMetadata_ = pb::ByteString.Empty;
  1246. /// <summary>
  1247. /// Byte-encoded version of the `RunMetadata` proto in order to allow lazy
  1248. /// deserialization.
  1249. /// </summary>
  1250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1251. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1252. public pb::ByteString RunMetadata {
  1253. get { return runMetadata_; }
  1254. set {
  1255. runMetadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1256. }
  1257. }
  1258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1259. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1260. public override bool Equals(object other) {
  1261. return Equals(other as TaggedRunMetadata);
  1262. }
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1264. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1265. public bool Equals(TaggedRunMetadata other) {
  1266. if (ReferenceEquals(other, null)) {
  1267. return false;
  1268. }
  1269. if (ReferenceEquals(other, this)) {
  1270. return true;
  1271. }
  1272. if (Tag != other.Tag) return false;
  1273. if (RunMetadata != other.RunMetadata) return false;
  1274. return Equals(_unknownFields, other._unknownFields);
  1275. }
  1276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1277. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1278. public override int GetHashCode() {
  1279. int hash = 1;
  1280. if (Tag.Length != 0) hash ^= Tag.GetHashCode();
  1281. if (RunMetadata.Length != 0) hash ^= RunMetadata.GetHashCode();
  1282. if (_unknownFields != null) {
  1283. hash ^= _unknownFields.GetHashCode();
  1284. }
  1285. return hash;
  1286. }
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1288. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1289. public override string ToString() {
  1290. return pb::JsonFormatter.ToDiagnosticString(this);
  1291. }
  1292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1293. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1294. public void WriteTo(pb::CodedOutputStream output) {
  1295. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1296. output.WriteRawMessage(this);
  1297. #else
  1298. if (Tag.Length != 0) {
  1299. output.WriteRawTag(10);
  1300. output.WriteString(Tag);
  1301. }
  1302. if (RunMetadata.Length != 0) {
  1303. output.WriteRawTag(18);
  1304. output.WriteBytes(RunMetadata);
  1305. }
  1306. if (_unknownFields != null) {
  1307. _unknownFields.WriteTo(output);
  1308. }
  1309. #endif
  1310. }
  1311. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1313. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1314. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1315. if (Tag.Length != 0) {
  1316. output.WriteRawTag(10);
  1317. output.WriteString(Tag);
  1318. }
  1319. if (RunMetadata.Length != 0) {
  1320. output.WriteRawTag(18);
  1321. output.WriteBytes(RunMetadata);
  1322. }
  1323. if (_unknownFields != null) {
  1324. _unknownFields.WriteTo(ref output);
  1325. }
  1326. }
  1327. #endif
  1328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1329. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1330. public int CalculateSize() {
  1331. int size = 0;
  1332. if (Tag.Length != 0) {
  1333. size += 1 + pb::CodedOutputStream.ComputeStringSize(Tag);
  1334. }
  1335. if (RunMetadata.Length != 0) {
  1336. size += 1 + pb::CodedOutputStream.ComputeBytesSize(RunMetadata);
  1337. }
  1338. if (_unknownFields != null) {
  1339. size += _unknownFields.CalculateSize();
  1340. }
  1341. return size;
  1342. }
  1343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1344. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1345. public void MergeFrom(TaggedRunMetadata other) {
  1346. if (other == null) {
  1347. return;
  1348. }
  1349. if (other.Tag.Length != 0) {
  1350. Tag = other.Tag;
  1351. }
  1352. if (other.RunMetadata.Length != 0) {
  1353. RunMetadata = other.RunMetadata;
  1354. }
  1355. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1356. }
  1357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1358. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1359. public void MergeFrom(pb::CodedInputStream input) {
  1360. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1361. input.ReadRawMessage(this);
  1362. #else
  1363. uint tag;
  1364. while ((tag = input.ReadTag()) != 0) {
  1365. switch(tag) {
  1366. default:
  1367. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1368. break;
  1369. case 10: {
  1370. Tag = input.ReadString();
  1371. break;
  1372. }
  1373. case 18: {
  1374. RunMetadata = input.ReadBytes();
  1375. break;
  1376. }
  1377. }
  1378. }
  1379. #endif
  1380. }
  1381. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1383. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1384. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1385. uint tag;
  1386. while ((tag = input.ReadTag()) != 0) {
  1387. switch(tag) {
  1388. default:
  1389. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1390. break;
  1391. case 10: {
  1392. Tag = input.ReadString();
  1393. break;
  1394. }
  1395. case 18: {
  1396. RunMetadata = input.ReadBytes();
  1397. break;
  1398. }
  1399. }
  1400. }
  1401. }
  1402. #endif
  1403. }
  1404. public sealed partial class WatchdogConfig : pb::IMessage<WatchdogConfig>
  1405. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1406. , pb::IBufferMessage
  1407. #endif
  1408. {
  1409. private static readonly pb::MessageParser<WatchdogConfig> _parser = new pb::MessageParser<WatchdogConfig>(() => new WatchdogConfig());
  1410. private pb::UnknownFieldSet _unknownFields;
  1411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1412. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1413. public static pb::MessageParser<WatchdogConfig> Parser { get { return _parser; } }
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1415. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1416. public static pbr::MessageDescriptor Descriptor {
  1417. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[4]; }
  1418. }
  1419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1420. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1421. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1422. get { return Descriptor; }
  1423. }
  1424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1425. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1426. public WatchdogConfig() {
  1427. OnConstruction();
  1428. }
  1429. partial void OnConstruction();
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1431. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1432. public WatchdogConfig(WatchdogConfig other) : this() {
  1433. timeoutMs_ = other.timeoutMs_;
  1434. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1435. }
  1436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1437. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1438. public WatchdogConfig Clone() {
  1439. return new WatchdogConfig(this);
  1440. }
  1441. /// <summary>Field number for the "timeout_ms" field.</summary>
  1442. public const int TimeoutMsFieldNumber = 1;
  1443. private long timeoutMs_;
  1444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1445. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1446. public long TimeoutMs {
  1447. get { return timeoutMs_; }
  1448. set {
  1449. timeoutMs_ = value;
  1450. }
  1451. }
  1452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1453. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1454. public override bool Equals(object other) {
  1455. return Equals(other as WatchdogConfig);
  1456. }
  1457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1458. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1459. public bool Equals(WatchdogConfig other) {
  1460. if (ReferenceEquals(other, null)) {
  1461. return false;
  1462. }
  1463. if (ReferenceEquals(other, this)) {
  1464. return true;
  1465. }
  1466. if (TimeoutMs != other.TimeoutMs) return false;
  1467. return Equals(_unknownFields, other._unknownFields);
  1468. }
  1469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1470. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1471. public override int GetHashCode() {
  1472. int hash = 1;
  1473. if (TimeoutMs != 0L) hash ^= TimeoutMs.GetHashCode();
  1474. if (_unknownFields != null) {
  1475. hash ^= _unknownFields.GetHashCode();
  1476. }
  1477. return hash;
  1478. }
  1479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1480. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1481. public override string ToString() {
  1482. return pb::JsonFormatter.ToDiagnosticString(this);
  1483. }
  1484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1485. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1486. public void WriteTo(pb::CodedOutputStream output) {
  1487. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1488. output.WriteRawMessage(this);
  1489. #else
  1490. if (TimeoutMs != 0L) {
  1491. output.WriteRawTag(8);
  1492. output.WriteInt64(TimeoutMs);
  1493. }
  1494. if (_unknownFields != null) {
  1495. _unknownFields.WriteTo(output);
  1496. }
  1497. #endif
  1498. }
  1499. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1501. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1502. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1503. if (TimeoutMs != 0L) {
  1504. output.WriteRawTag(8);
  1505. output.WriteInt64(TimeoutMs);
  1506. }
  1507. if (_unknownFields != null) {
  1508. _unknownFields.WriteTo(ref output);
  1509. }
  1510. }
  1511. #endif
  1512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1513. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1514. public int CalculateSize() {
  1515. int size = 0;
  1516. if (TimeoutMs != 0L) {
  1517. size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeoutMs);
  1518. }
  1519. if (_unknownFields != null) {
  1520. size += _unknownFields.CalculateSize();
  1521. }
  1522. return size;
  1523. }
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1525. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1526. public void MergeFrom(WatchdogConfig other) {
  1527. if (other == null) {
  1528. return;
  1529. }
  1530. if (other.TimeoutMs != 0L) {
  1531. TimeoutMs = other.TimeoutMs;
  1532. }
  1533. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1534. }
  1535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1536. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1537. public void MergeFrom(pb::CodedInputStream input) {
  1538. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1539. input.ReadRawMessage(this);
  1540. #else
  1541. uint tag;
  1542. while ((tag = input.ReadTag()) != 0) {
  1543. switch(tag) {
  1544. default:
  1545. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1546. break;
  1547. case 8: {
  1548. TimeoutMs = input.ReadInt64();
  1549. break;
  1550. }
  1551. }
  1552. }
  1553. #endif
  1554. }
  1555. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1557. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1558. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1559. uint tag;
  1560. while ((tag = input.ReadTag()) != 0) {
  1561. switch(tag) {
  1562. default:
  1563. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1564. break;
  1565. case 8: {
  1566. TimeoutMs = input.ReadInt64();
  1567. break;
  1568. }
  1569. }
  1570. }
  1571. }
  1572. #endif
  1573. }
  1574. public sealed partial class RequestedExitCode : pb::IMessage<RequestedExitCode>
  1575. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1576. , pb::IBufferMessage
  1577. #endif
  1578. {
  1579. private static readonly pb::MessageParser<RequestedExitCode> _parser = new pb::MessageParser<RequestedExitCode>(() => new RequestedExitCode());
  1580. private pb::UnknownFieldSet _unknownFields;
  1581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1582. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1583. public static pb::MessageParser<RequestedExitCode> Parser { get { return _parser; } }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1585. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1586. public static pbr::MessageDescriptor Descriptor {
  1587. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[5]; }
  1588. }
  1589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1590. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1591. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1592. get { return Descriptor; }
  1593. }
  1594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1595. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1596. public RequestedExitCode() {
  1597. OnConstruction();
  1598. }
  1599. partial void OnConstruction();
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1601. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1602. public RequestedExitCode(RequestedExitCode other) : this() {
  1603. exitCode_ = other.exitCode_;
  1604. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1605. }
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1607. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1608. public RequestedExitCode Clone() {
  1609. return new RequestedExitCode(this);
  1610. }
  1611. /// <summary>Field number for the "exit_code" field.</summary>
  1612. public const int ExitCodeFieldNumber = 1;
  1613. private int exitCode_;
  1614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1615. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1616. public int ExitCode {
  1617. get { return exitCode_; }
  1618. set {
  1619. exitCode_ = value;
  1620. }
  1621. }
  1622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1623. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1624. public override bool Equals(object other) {
  1625. return Equals(other as RequestedExitCode);
  1626. }
  1627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1628. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1629. public bool Equals(RequestedExitCode other) {
  1630. if (ReferenceEquals(other, null)) {
  1631. return false;
  1632. }
  1633. if (ReferenceEquals(other, this)) {
  1634. return true;
  1635. }
  1636. if (ExitCode != other.ExitCode) return false;
  1637. return Equals(_unknownFields, other._unknownFields);
  1638. }
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1640. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1641. public override int GetHashCode() {
  1642. int hash = 1;
  1643. if (ExitCode != 0) hash ^= ExitCode.GetHashCode();
  1644. if (_unknownFields != null) {
  1645. hash ^= _unknownFields.GetHashCode();
  1646. }
  1647. return hash;
  1648. }
  1649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1650. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1651. public override string ToString() {
  1652. return pb::JsonFormatter.ToDiagnosticString(this);
  1653. }
  1654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1655. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1656. public void WriteTo(pb::CodedOutputStream output) {
  1657. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1658. output.WriteRawMessage(this);
  1659. #else
  1660. if (ExitCode != 0) {
  1661. output.WriteRawTag(8);
  1662. output.WriteInt32(ExitCode);
  1663. }
  1664. if (_unknownFields != null) {
  1665. _unknownFields.WriteTo(output);
  1666. }
  1667. #endif
  1668. }
  1669. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1671. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1672. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1673. if (ExitCode != 0) {
  1674. output.WriteRawTag(8);
  1675. output.WriteInt32(ExitCode);
  1676. }
  1677. if (_unknownFields != null) {
  1678. _unknownFields.WriteTo(ref output);
  1679. }
  1680. }
  1681. #endif
  1682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1683. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1684. public int CalculateSize() {
  1685. int size = 0;
  1686. if (ExitCode != 0) {
  1687. size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExitCode);
  1688. }
  1689. if (_unknownFields != null) {
  1690. size += _unknownFields.CalculateSize();
  1691. }
  1692. return size;
  1693. }
  1694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1695. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1696. public void MergeFrom(RequestedExitCode other) {
  1697. if (other == null) {
  1698. return;
  1699. }
  1700. if (other.ExitCode != 0) {
  1701. ExitCode = other.ExitCode;
  1702. }
  1703. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1704. }
  1705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1706. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1707. public void MergeFrom(pb::CodedInputStream input) {
  1708. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1709. input.ReadRawMessage(this);
  1710. #else
  1711. uint tag;
  1712. while ((tag = input.ReadTag()) != 0) {
  1713. switch(tag) {
  1714. default:
  1715. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1716. break;
  1717. case 8: {
  1718. ExitCode = input.ReadInt32();
  1719. break;
  1720. }
  1721. }
  1722. }
  1723. #endif
  1724. }
  1725. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1727. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1728. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1729. uint tag;
  1730. while ((tag = input.ReadTag()) != 0) {
  1731. switch(tag) {
  1732. default:
  1733. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1734. break;
  1735. case 8: {
  1736. ExitCode = input.ReadInt32();
  1737. break;
  1738. }
  1739. }
  1740. }
  1741. }
  1742. #endif
  1743. }
  1744. public sealed partial class WorkerHeartbeatRequest : pb::IMessage<WorkerHeartbeatRequest>
  1745. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1746. , pb::IBufferMessage
  1747. #endif
  1748. {
  1749. private static readonly pb::MessageParser<WorkerHeartbeatRequest> _parser = new pb::MessageParser<WorkerHeartbeatRequest>(() => new WorkerHeartbeatRequest());
  1750. private pb::UnknownFieldSet _unknownFields;
  1751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1752. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1753. public static pb::MessageParser<WorkerHeartbeatRequest> Parser { get { return _parser; } }
  1754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1755. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1756. public static pbr::MessageDescriptor Descriptor {
  1757. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[6]; }
  1758. }
  1759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1760. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1761. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1762. get { return Descriptor; }
  1763. }
  1764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1765. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1766. public WorkerHeartbeatRequest() {
  1767. OnConstruction();
  1768. }
  1769. partial void OnConstruction();
  1770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1771. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1772. public WorkerHeartbeatRequest(WorkerHeartbeatRequest other) : this() {
  1773. shutdownMode_ = other.shutdownMode_;
  1774. watchdogConfig_ = other.watchdogConfig_ != null ? other.watchdogConfig_.Clone() : null;
  1775. exitCode_ = other.exitCode_ != null ? other.exitCode_.Clone() : null;
  1776. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1777. }
  1778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1779. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1780. public WorkerHeartbeatRequest Clone() {
  1781. return new WorkerHeartbeatRequest(this);
  1782. }
  1783. /// <summary>Field number for the "shutdown_mode" field.</summary>
  1784. public const int ShutdownModeFieldNumber = 1;
  1785. private global::Tensorflow.WorkerShutdownMode shutdownMode_ = global::Tensorflow.WorkerShutdownMode.Default;
  1786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1787. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1788. public global::Tensorflow.WorkerShutdownMode ShutdownMode {
  1789. get { return shutdownMode_; }
  1790. set {
  1791. shutdownMode_ = value;
  1792. }
  1793. }
  1794. /// <summary>Field number for the "watchdog_config" field.</summary>
  1795. public const int WatchdogConfigFieldNumber = 2;
  1796. private global::Tensorflow.WatchdogConfig watchdogConfig_;
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1798. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1799. public global::Tensorflow.WatchdogConfig WatchdogConfig {
  1800. get { return watchdogConfig_; }
  1801. set {
  1802. watchdogConfig_ = value;
  1803. }
  1804. }
  1805. /// <summary>Field number for the "exit_code" field.</summary>
  1806. public const int ExitCodeFieldNumber = 3;
  1807. private global::Tensorflow.RequestedExitCode exitCode_;
  1808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1809. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1810. public global::Tensorflow.RequestedExitCode ExitCode {
  1811. get { return exitCode_; }
  1812. set {
  1813. exitCode_ = value;
  1814. }
  1815. }
  1816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1817. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1818. public override bool Equals(object other) {
  1819. return Equals(other as WorkerHeartbeatRequest);
  1820. }
  1821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1822. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1823. public bool Equals(WorkerHeartbeatRequest other) {
  1824. if (ReferenceEquals(other, null)) {
  1825. return false;
  1826. }
  1827. if (ReferenceEquals(other, this)) {
  1828. return true;
  1829. }
  1830. if (ShutdownMode != other.ShutdownMode) return false;
  1831. if (!object.Equals(WatchdogConfig, other.WatchdogConfig)) return false;
  1832. if (!object.Equals(ExitCode, other.ExitCode)) return false;
  1833. return Equals(_unknownFields, other._unknownFields);
  1834. }
  1835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1836. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1837. public override int GetHashCode() {
  1838. int hash = 1;
  1839. if (ShutdownMode != global::Tensorflow.WorkerShutdownMode.Default) hash ^= ShutdownMode.GetHashCode();
  1840. if (watchdogConfig_ != null) hash ^= WatchdogConfig.GetHashCode();
  1841. if (exitCode_ != null) hash ^= ExitCode.GetHashCode();
  1842. if (_unknownFields != null) {
  1843. hash ^= _unknownFields.GetHashCode();
  1844. }
  1845. return hash;
  1846. }
  1847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1848. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1849. public override string ToString() {
  1850. return pb::JsonFormatter.ToDiagnosticString(this);
  1851. }
  1852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1853. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1854. public void WriteTo(pb::CodedOutputStream output) {
  1855. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1856. output.WriteRawMessage(this);
  1857. #else
  1858. if (ShutdownMode != global::Tensorflow.WorkerShutdownMode.Default) {
  1859. output.WriteRawTag(8);
  1860. output.WriteEnum((int) ShutdownMode);
  1861. }
  1862. if (watchdogConfig_ != null) {
  1863. output.WriteRawTag(18);
  1864. output.WriteMessage(WatchdogConfig);
  1865. }
  1866. if (exitCode_ != null) {
  1867. output.WriteRawTag(26);
  1868. output.WriteMessage(ExitCode);
  1869. }
  1870. if (_unknownFields != null) {
  1871. _unknownFields.WriteTo(output);
  1872. }
  1873. #endif
  1874. }
  1875. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1877. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1878. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1879. if (ShutdownMode != global::Tensorflow.WorkerShutdownMode.Default) {
  1880. output.WriteRawTag(8);
  1881. output.WriteEnum((int) ShutdownMode);
  1882. }
  1883. if (watchdogConfig_ != null) {
  1884. output.WriteRawTag(18);
  1885. output.WriteMessage(WatchdogConfig);
  1886. }
  1887. if (exitCode_ != null) {
  1888. output.WriteRawTag(26);
  1889. output.WriteMessage(ExitCode);
  1890. }
  1891. if (_unknownFields != null) {
  1892. _unknownFields.WriteTo(ref output);
  1893. }
  1894. }
  1895. #endif
  1896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1897. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1898. public int CalculateSize() {
  1899. int size = 0;
  1900. if (ShutdownMode != global::Tensorflow.WorkerShutdownMode.Default) {
  1901. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ShutdownMode);
  1902. }
  1903. if (watchdogConfig_ != null) {
  1904. size += 1 + pb::CodedOutputStream.ComputeMessageSize(WatchdogConfig);
  1905. }
  1906. if (exitCode_ != null) {
  1907. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExitCode);
  1908. }
  1909. if (_unknownFields != null) {
  1910. size += _unknownFields.CalculateSize();
  1911. }
  1912. return size;
  1913. }
  1914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1915. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1916. public void MergeFrom(WorkerHeartbeatRequest other) {
  1917. if (other == null) {
  1918. return;
  1919. }
  1920. if (other.ShutdownMode != global::Tensorflow.WorkerShutdownMode.Default) {
  1921. ShutdownMode = other.ShutdownMode;
  1922. }
  1923. if (other.watchdogConfig_ != null) {
  1924. if (watchdogConfig_ == null) {
  1925. WatchdogConfig = new global::Tensorflow.WatchdogConfig();
  1926. }
  1927. WatchdogConfig.MergeFrom(other.WatchdogConfig);
  1928. }
  1929. if (other.exitCode_ != null) {
  1930. if (exitCode_ == null) {
  1931. ExitCode = new global::Tensorflow.RequestedExitCode();
  1932. }
  1933. ExitCode.MergeFrom(other.ExitCode);
  1934. }
  1935. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1936. }
  1937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1938. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1939. public void MergeFrom(pb::CodedInputStream input) {
  1940. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1941. input.ReadRawMessage(this);
  1942. #else
  1943. uint tag;
  1944. while ((tag = input.ReadTag()) != 0) {
  1945. switch(tag) {
  1946. default:
  1947. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1948. break;
  1949. case 8: {
  1950. ShutdownMode = (global::Tensorflow.WorkerShutdownMode) input.ReadEnum();
  1951. break;
  1952. }
  1953. case 18: {
  1954. if (watchdogConfig_ == null) {
  1955. WatchdogConfig = new global::Tensorflow.WatchdogConfig();
  1956. }
  1957. input.ReadMessage(WatchdogConfig);
  1958. break;
  1959. }
  1960. case 26: {
  1961. if (exitCode_ == null) {
  1962. ExitCode = new global::Tensorflow.RequestedExitCode();
  1963. }
  1964. input.ReadMessage(ExitCode);
  1965. break;
  1966. }
  1967. }
  1968. }
  1969. #endif
  1970. }
  1971. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1973. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1974. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1975. uint tag;
  1976. while ((tag = input.ReadTag()) != 0) {
  1977. switch(tag) {
  1978. default:
  1979. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1980. break;
  1981. case 8: {
  1982. ShutdownMode = (global::Tensorflow.WorkerShutdownMode) input.ReadEnum();
  1983. break;
  1984. }
  1985. case 18: {
  1986. if (watchdogConfig_ == null) {
  1987. WatchdogConfig = new global::Tensorflow.WatchdogConfig();
  1988. }
  1989. input.ReadMessage(WatchdogConfig);
  1990. break;
  1991. }
  1992. case 26: {
  1993. if (exitCode_ == null) {
  1994. ExitCode = new global::Tensorflow.RequestedExitCode();
  1995. }
  1996. input.ReadMessage(ExitCode);
  1997. break;
  1998. }
  1999. }
  2000. }
  2001. }
  2002. #endif
  2003. }
  2004. public sealed partial class WorkerHeartbeatResponse : pb::IMessage<WorkerHeartbeatResponse>
  2005. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2006. , pb::IBufferMessage
  2007. #endif
  2008. {
  2009. private static readonly pb::MessageParser<WorkerHeartbeatResponse> _parser = new pb::MessageParser<WorkerHeartbeatResponse>(() => new WorkerHeartbeatResponse());
  2010. private pb::UnknownFieldSet _unknownFields;
  2011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2012. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2013. public static pb::MessageParser<WorkerHeartbeatResponse> Parser { get { return _parser; } }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2015. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2016. public static pbr::MessageDescriptor Descriptor {
  2017. get { return global::Tensorflow.EventReflection.Descriptor.MessageTypes[7]; }
  2018. }
  2019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2020. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2021. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2022. get { return Descriptor; }
  2023. }
  2024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2025. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2026. public WorkerHeartbeatResponse() {
  2027. OnConstruction();
  2028. }
  2029. partial void OnConstruction();
  2030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2031. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2032. public WorkerHeartbeatResponse(WorkerHeartbeatResponse other) : this() {
  2033. healthStatus_ = other.healthStatus_;
  2034. workerLog_ = other.workerLog_.Clone();
  2035. hostname_ = other.hostname_;
  2036. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2037. }
  2038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2039. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2040. public WorkerHeartbeatResponse Clone() {
  2041. return new WorkerHeartbeatResponse(this);
  2042. }
  2043. /// <summary>Field number for the "health_status" field.</summary>
  2044. public const int HealthStatusFieldNumber = 1;
  2045. private global::Tensorflow.WorkerHealth healthStatus_ = global::Tensorflow.WorkerHealth.Ok;
  2046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2047. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2048. public global::Tensorflow.WorkerHealth HealthStatus {
  2049. get { return healthStatus_; }
  2050. set {
  2051. healthStatus_ = value;
  2052. }
  2053. }
  2054. /// <summary>Field number for the "worker_log" field.</summary>
  2055. public const int WorkerLogFieldNumber = 2;
  2056. private static readonly pb::FieldCodec<global::Tensorflow.Event> _repeated_workerLog_codec
  2057. = pb::FieldCodec.ForMessage(18, global::Tensorflow.Event.Parser);
  2058. private readonly pbc::RepeatedField<global::Tensorflow.Event> workerLog_ = new pbc::RepeatedField<global::Tensorflow.Event>();
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2060. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2061. public pbc::RepeatedField<global::Tensorflow.Event> WorkerLog {
  2062. get { return workerLog_; }
  2063. }
  2064. /// <summary>Field number for the "hostname" field.</summary>
  2065. public const int HostnameFieldNumber = 3;
  2066. private string hostname_ = "";
  2067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2068. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2069. public string Hostname {
  2070. get { return hostname_; }
  2071. set {
  2072. hostname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2073. }
  2074. }
  2075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2076. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2077. public override bool Equals(object other) {
  2078. return Equals(other as WorkerHeartbeatResponse);
  2079. }
  2080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2081. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2082. public bool Equals(WorkerHeartbeatResponse other) {
  2083. if (ReferenceEquals(other, null)) {
  2084. return false;
  2085. }
  2086. if (ReferenceEquals(other, this)) {
  2087. return true;
  2088. }
  2089. if (HealthStatus != other.HealthStatus) return false;
  2090. if(!workerLog_.Equals(other.workerLog_)) return false;
  2091. if (Hostname != other.Hostname) return false;
  2092. return Equals(_unknownFields, other._unknownFields);
  2093. }
  2094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2095. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2096. public override int GetHashCode() {
  2097. int hash = 1;
  2098. if (HealthStatus != global::Tensorflow.WorkerHealth.Ok) hash ^= HealthStatus.GetHashCode();
  2099. hash ^= workerLog_.GetHashCode();
  2100. if (Hostname.Length != 0) hash ^= Hostname.GetHashCode();
  2101. if (_unknownFields != null) {
  2102. hash ^= _unknownFields.GetHashCode();
  2103. }
  2104. return hash;
  2105. }
  2106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2107. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2108. public override string ToString() {
  2109. return pb::JsonFormatter.ToDiagnosticString(this);
  2110. }
  2111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2112. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2113. public void WriteTo(pb::CodedOutputStream output) {
  2114. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2115. output.WriteRawMessage(this);
  2116. #else
  2117. if (HealthStatus != global::Tensorflow.WorkerHealth.Ok) {
  2118. output.WriteRawTag(8);
  2119. output.WriteEnum((int) HealthStatus);
  2120. }
  2121. workerLog_.WriteTo(output, _repeated_workerLog_codec);
  2122. if (Hostname.Length != 0) {
  2123. output.WriteRawTag(26);
  2124. output.WriteString(Hostname);
  2125. }
  2126. if (_unknownFields != null) {
  2127. _unknownFields.WriteTo(output);
  2128. }
  2129. #endif
  2130. }
  2131. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2133. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2134. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2135. if (HealthStatus != global::Tensorflow.WorkerHealth.Ok) {
  2136. output.WriteRawTag(8);
  2137. output.WriteEnum((int) HealthStatus);
  2138. }
  2139. workerLog_.WriteTo(ref output, _repeated_workerLog_codec);
  2140. if (Hostname.Length != 0) {
  2141. output.WriteRawTag(26);
  2142. output.WriteString(Hostname);
  2143. }
  2144. if (_unknownFields != null) {
  2145. _unknownFields.WriteTo(ref output);
  2146. }
  2147. }
  2148. #endif
  2149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2150. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2151. public int CalculateSize() {
  2152. int size = 0;
  2153. if (HealthStatus != global::Tensorflow.WorkerHealth.Ok) {
  2154. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HealthStatus);
  2155. }
  2156. size += workerLog_.CalculateSize(_repeated_workerLog_codec);
  2157. if (Hostname.Length != 0) {
  2158. size += 1 + pb::CodedOutputStream.ComputeStringSize(Hostname);
  2159. }
  2160. if (_unknownFields != null) {
  2161. size += _unknownFields.CalculateSize();
  2162. }
  2163. return size;
  2164. }
  2165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2166. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2167. public void MergeFrom(WorkerHeartbeatResponse other) {
  2168. if (other == null) {
  2169. return;
  2170. }
  2171. if (other.HealthStatus != global::Tensorflow.WorkerHealth.Ok) {
  2172. HealthStatus = other.HealthStatus;
  2173. }
  2174. workerLog_.Add(other.workerLog_);
  2175. if (other.Hostname.Length != 0) {
  2176. Hostname = other.Hostname;
  2177. }
  2178. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2179. }
  2180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2181. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2182. public void MergeFrom(pb::CodedInputStream input) {
  2183. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2184. input.ReadRawMessage(this);
  2185. #else
  2186. uint tag;
  2187. while ((tag = input.ReadTag()) != 0) {
  2188. switch(tag) {
  2189. default:
  2190. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2191. break;
  2192. case 8: {
  2193. HealthStatus = (global::Tensorflow.WorkerHealth) input.ReadEnum();
  2194. break;
  2195. }
  2196. case 18: {
  2197. workerLog_.AddEntriesFrom(input, _repeated_workerLog_codec);
  2198. break;
  2199. }
  2200. case 26: {
  2201. Hostname = input.ReadString();
  2202. break;
  2203. }
  2204. }
  2205. }
  2206. #endif
  2207. }
  2208. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2210. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  2211. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2212. uint tag;
  2213. while ((tag = input.ReadTag()) != 0) {
  2214. switch(tag) {
  2215. default:
  2216. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2217. break;
  2218. case 8: {
  2219. HealthStatus = (global::Tensorflow.WorkerHealth) input.ReadEnum();
  2220. break;
  2221. }
  2222. case 18: {
  2223. workerLog_.AddEntriesFrom(ref input, _repeated_workerLog_codec);
  2224. break;
  2225. }
  2226. case 26: {
  2227. Hostname = input.ReadString();
  2228. break;
  2229. }
  2230. }
  2231. }
  2232. }
  2233. #endif
  2234. }
  2235. #endregion
  2236. }
  2237. #endregion Designer generated code