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.

Debug.cs 33 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: tensorflow/core/protobuf/debug.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  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/protobuf/debug.proto</summary>
  13. public static partial class DebugReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for tensorflow/core/protobuf/debug.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static DebugReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "CiR0ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvZGVidWcucHJvdG8SCnRlbnNv",
  24. "cmZsb3cijgEKEERlYnVnVGVuc29yV2F0Y2gSEQoJbm9kZV9uYW1lGAEgASgJ",
  25. "EhMKC291dHB1dF9zbG90GAIgASgFEhEKCWRlYnVnX29wcxgDIAMoCRISCgpk",
  26. "ZWJ1Z191cmxzGAQgAygJEisKI3RvbGVyYXRlX2RlYnVnX29wX2NyZWF0aW9u",
  27. "X2ZhaWx1cmVzGAUgASgIIoEBCgxEZWJ1Z09wdGlvbnMSPQoXZGVidWdfdGVu",
  28. "c29yX3dhdGNoX29wdHMYBCADKAsyHC50ZW5zb3JmbG93LkRlYnVnVGVuc29y",
  29. "V2F0Y2gSEwoLZ2xvYmFsX3N0ZXAYCiABKAMSHQoVcmVzZXRfZGlza19ieXRl",
  30. "X3VzYWdlGAsgASgIImoKEkRlYnVnZ2VkU291cmNlRmlsZRIMCgRob3N0GAEg",
  31. "ASgJEhEKCWZpbGVfcGF0aBgCIAEoCRIVCg1sYXN0X21vZGlmaWVkGAMgASgD",
  32. "Eg0KBWJ5dGVzGAQgASgDEg0KBWxpbmVzGAUgAygJIksKE0RlYnVnZ2VkU291",
  33. "cmNlRmlsZXMSNAoMc291cmNlX2ZpbGVzGAEgAygLMh4udGVuc29yZmxvdy5E",
  34. "ZWJ1Z2dlZFNvdXJjZUZpbGVCgwEKGG9yZy50ZW5zb3JmbG93LmZyYW1ld29y",
  35. "a0ILRGVidWdQcm90b3NQAVpVZ2l0aHViLmNvbS90ZW5zb3JmbG93L3RlbnNv",
  36. "cmZsb3cvdGVuc29yZmxvdy9nby9jb3JlL3Byb3RvYnVmL2Zvcl9jb3JlX3By",
  37. "b3Rvc19nb19wcm90b/gBAWIGcHJvdG8z"));
  38. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  39. new pbr::FileDescriptor[] { },
  40. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  41. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.DebugTensorWatch), global::Tensorflow.DebugTensorWatch.Parser, new[]{ "NodeName", "OutputSlot", "DebugOps", "DebugUrls", "TolerateDebugOpCreationFailures" }, null, null, null, null),
  42. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.DebugOptions), global::Tensorflow.DebugOptions.Parser, new[]{ "DebugTensorWatchOpts", "GlobalStep", "ResetDiskByteUsage" }, null, null, null, null),
  43. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.DebuggedSourceFile), global::Tensorflow.DebuggedSourceFile.Parser, new[]{ "Host", "FilePath", "LastModified", "Bytes", "Lines" }, null, null, null, null),
  44. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.DebuggedSourceFiles), global::Tensorflow.DebuggedSourceFiles.Parser, new[]{ "SourceFiles" }, null, null, null, null)
  45. }));
  46. }
  47. #endregion
  48. }
  49. #region Messages
  50. /// <summary>
  51. /// Option for watching a node in TensorFlow Debugger (tfdbg).
  52. /// </summary>
  53. public sealed partial class DebugTensorWatch : pb::IMessage<DebugTensorWatch> {
  54. private static readonly pb::MessageParser<DebugTensorWatch> _parser = new pb::MessageParser<DebugTensorWatch>(() => new DebugTensorWatch());
  55. private pb::UnknownFieldSet _unknownFields;
  56. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  57. public static pb::MessageParser<DebugTensorWatch> Parser { get { return _parser; } }
  58. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  59. public static pbr::MessageDescriptor Descriptor {
  60. get { return global::Tensorflow.DebugReflection.Descriptor.MessageTypes[0]; }
  61. }
  62. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  63. pbr::MessageDescriptor pb::IMessage.Descriptor {
  64. get { return Descriptor; }
  65. }
  66. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  67. public DebugTensorWatch() {
  68. OnConstruction();
  69. }
  70. partial void OnConstruction();
  71. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  72. public DebugTensorWatch(DebugTensorWatch other) : this() {
  73. nodeName_ = other.nodeName_;
  74. outputSlot_ = other.outputSlot_;
  75. debugOps_ = other.debugOps_.Clone();
  76. debugUrls_ = other.debugUrls_.Clone();
  77. tolerateDebugOpCreationFailures_ = other.tolerateDebugOpCreationFailures_;
  78. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  79. }
  80. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  81. public DebugTensorWatch Clone() {
  82. return new DebugTensorWatch(this);
  83. }
  84. /// <summary>Field number for the "node_name" field.</summary>
  85. public const int NodeNameFieldNumber = 1;
  86. private string nodeName_ = "";
  87. /// <summary>
  88. /// Name of the node to watch.
  89. /// Use "*" for wildcard. But note: currently, regex is not supported in
  90. /// general.
  91. /// </summary>
  92. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  93. public string NodeName {
  94. get { return nodeName_; }
  95. set {
  96. nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  97. }
  98. }
  99. /// <summary>Field number for the "output_slot" field.</summary>
  100. public const int OutputSlotFieldNumber = 2;
  101. private int outputSlot_;
  102. /// <summary>
  103. /// Output slot to watch.
  104. /// The semantics of output_slot == -1 is that all outputs of the node
  105. /// will be watched (i.e., a wildcard).
  106. /// Other negative values of output_slot are invalid and will lead to
  107. /// errors currently.
  108. /// </summary>
  109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  110. public int OutputSlot {
  111. get { return outputSlot_; }
  112. set {
  113. outputSlot_ = value;
  114. }
  115. }
  116. /// <summary>Field number for the "debug_ops" field.</summary>
  117. public const int DebugOpsFieldNumber = 3;
  118. private static readonly pb::FieldCodec<string> _repeated_debugOps_codec
  119. = pb::FieldCodec.ForString(26);
  120. private readonly pbc::RepeatedField<string> debugOps_ = new pbc::RepeatedField<string>();
  121. /// <summary>
  122. /// Name(s) of the debugging op(s).
  123. /// One or more than one probes on a tensor.
  124. /// e.g., {"DebugIdentity", "DebugNanCount"}
  125. /// </summary>
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  127. public pbc::RepeatedField<string> DebugOps {
  128. get { return debugOps_; }
  129. }
  130. /// <summary>Field number for the "debug_urls" field.</summary>
  131. public const int DebugUrlsFieldNumber = 4;
  132. private static readonly pb::FieldCodec<string> _repeated_debugUrls_codec
  133. = pb::FieldCodec.ForString(34);
  134. private readonly pbc::RepeatedField<string> debugUrls_ = new pbc::RepeatedField<string>();
  135. /// <summary>
  136. /// URL(s) for debug targets(s).
  137. ///
  138. /// Supported URL formats are:
  139. /// - file:///foo/tfdbg_dump: Writes out Event content to file
  140. /// /foo/tfdbg_dump. Assumes all directories can be created if they don't
  141. /// already exist.
  142. /// - grpc://localhost:11011: Sends an RPC request to an EventListener
  143. /// service running at localhost:11011 with the event.
  144. /// - memcbk:///event_key: Routes tensors to clients using the
  145. /// callback registered with the DebugCallbackRegistry for event_key.
  146. ///
  147. /// Each debug op listed in debug_ops will publish its output tensor (debug
  148. /// signal) to all URLs in debug_urls.
  149. ///
  150. /// N.B. Session::Run() supports concurrent invocations of the same inputs
  151. /// (feed keys), outputs and target nodes. If such concurrent invocations
  152. /// are to be debugged, the callers of Session::Run() must use distinct
  153. /// debug_urls to make sure that the streamed or dumped events do not overlap
  154. /// among the invocations.
  155. /// TODO(cais): More visible documentation of this in g3docs.
  156. /// </summary>
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  158. public pbc::RepeatedField<string> DebugUrls {
  159. get { return debugUrls_; }
  160. }
  161. /// <summary>Field number for the "tolerate_debug_op_creation_failures" field.</summary>
  162. public const int TolerateDebugOpCreationFailuresFieldNumber = 5;
  163. private bool tolerateDebugOpCreationFailures_;
  164. /// <summary>
  165. /// Do not error out if debug op creation fails (e.g., due to dtype
  166. /// incompatibility). Instead, just log the failure.
  167. /// </summary>
  168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  169. public bool TolerateDebugOpCreationFailures {
  170. get { return tolerateDebugOpCreationFailures_; }
  171. set {
  172. tolerateDebugOpCreationFailures_ = value;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  176. public override bool Equals(object other) {
  177. return Equals(other as DebugTensorWatch);
  178. }
  179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  180. public bool Equals(DebugTensorWatch other) {
  181. if (ReferenceEquals(other, null)) {
  182. return false;
  183. }
  184. if (ReferenceEquals(other, this)) {
  185. return true;
  186. }
  187. if (NodeName != other.NodeName) return false;
  188. if (OutputSlot != other.OutputSlot) return false;
  189. if(!debugOps_.Equals(other.debugOps_)) return false;
  190. if(!debugUrls_.Equals(other.debugUrls_)) return false;
  191. if (TolerateDebugOpCreationFailures != other.TolerateDebugOpCreationFailures) return false;
  192. return Equals(_unknownFields, other._unknownFields);
  193. }
  194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  195. public override int GetHashCode() {
  196. int hash = 1;
  197. if (NodeName.Length != 0) hash ^= NodeName.GetHashCode();
  198. if (OutputSlot != 0) hash ^= OutputSlot.GetHashCode();
  199. hash ^= debugOps_.GetHashCode();
  200. hash ^= debugUrls_.GetHashCode();
  201. if (TolerateDebugOpCreationFailures != false) hash ^= TolerateDebugOpCreationFailures.GetHashCode();
  202. if (_unknownFields != null) {
  203. hash ^= _unknownFields.GetHashCode();
  204. }
  205. return hash;
  206. }
  207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  208. public override string ToString() {
  209. return pb::JsonFormatter.ToDiagnosticString(this);
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  212. public void WriteTo(pb::CodedOutputStream output) {
  213. if (NodeName.Length != 0) {
  214. output.WriteRawTag(10);
  215. output.WriteString(NodeName);
  216. }
  217. if (OutputSlot != 0) {
  218. output.WriteRawTag(16);
  219. output.WriteInt32(OutputSlot);
  220. }
  221. debugOps_.WriteTo(output, _repeated_debugOps_codec);
  222. debugUrls_.WriteTo(output, _repeated_debugUrls_codec);
  223. if (TolerateDebugOpCreationFailures != false) {
  224. output.WriteRawTag(40);
  225. output.WriteBool(TolerateDebugOpCreationFailures);
  226. }
  227. if (_unknownFields != null) {
  228. _unknownFields.WriteTo(output);
  229. }
  230. }
  231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  232. public int CalculateSize() {
  233. int size = 0;
  234. if (NodeName.Length != 0) {
  235. size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName);
  236. }
  237. if (OutputSlot != 0) {
  238. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OutputSlot);
  239. }
  240. size += debugOps_.CalculateSize(_repeated_debugOps_codec);
  241. size += debugUrls_.CalculateSize(_repeated_debugUrls_codec);
  242. if (TolerateDebugOpCreationFailures != false) {
  243. size += 1 + 1;
  244. }
  245. if (_unknownFields != null) {
  246. size += _unknownFields.CalculateSize();
  247. }
  248. return size;
  249. }
  250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  251. public void MergeFrom(DebugTensorWatch other) {
  252. if (other == null) {
  253. return;
  254. }
  255. if (other.NodeName.Length != 0) {
  256. NodeName = other.NodeName;
  257. }
  258. if (other.OutputSlot != 0) {
  259. OutputSlot = other.OutputSlot;
  260. }
  261. debugOps_.Add(other.debugOps_);
  262. debugUrls_.Add(other.debugUrls_);
  263. if (other.TolerateDebugOpCreationFailures != false) {
  264. TolerateDebugOpCreationFailures = other.TolerateDebugOpCreationFailures;
  265. }
  266. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  267. }
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  269. public void MergeFrom(pb::CodedInputStream input) {
  270. uint tag;
  271. while ((tag = input.ReadTag()) != 0) {
  272. switch(tag) {
  273. default:
  274. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  275. break;
  276. case 10: {
  277. NodeName = input.ReadString();
  278. break;
  279. }
  280. case 16: {
  281. OutputSlot = input.ReadInt32();
  282. break;
  283. }
  284. case 26: {
  285. debugOps_.AddEntriesFrom(input, _repeated_debugOps_codec);
  286. break;
  287. }
  288. case 34: {
  289. debugUrls_.AddEntriesFrom(input, _repeated_debugUrls_codec);
  290. break;
  291. }
  292. case 40: {
  293. TolerateDebugOpCreationFailures = input.ReadBool();
  294. break;
  295. }
  296. }
  297. }
  298. }
  299. }
  300. /// <summary>
  301. /// Options for initializing DebuggerState in TensorFlow Debugger (tfdbg).
  302. /// </summary>
  303. public sealed partial class DebugOptions : pb::IMessage<DebugOptions> {
  304. private static readonly pb::MessageParser<DebugOptions> _parser = new pb::MessageParser<DebugOptions>(() => new DebugOptions());
  305. private pb::UnknownFieldSet _unknownFields;
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  307. public static pb::MessageParser<DebugOptions> Parser { get { return _parser; } }
  308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  309. public static pbr::MessageDescriptor Descriptor {
  310. get { return global::Tensorflow.DebugReflection.Descriptor.MessageTypes[1]; }
  311. }
  312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  313. pbr::MessageDescriptor pb::IMessage.Descriptor {
  314. get { return Descriptor; }
  315. }
  316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  317. public DebugOptions() {
  318. OnConstruction();
  319. }
  320. partial void OnConstruction();
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  322. public DebugOptions(DebugOptions other) : this() {
  323. debugTensorWatchOpts_ = other.debugTensorWatchOpts_.Clone();
  324. globalStep_ = other.globalStep_;
  325. resetDiskByteUsage_ = other.resetDiskByteUsage_;
  326. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  327. }
  328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  329. public DebugOptions Clone() {
  330. return new DebugOptions(this);
  331. }
  332. /// <summary>Field number for the "debug_tensor_watch_opts" field.</summary>
  333. public const int DebugTensorWatchOptsFieldNumber = 4;
  334. private static readonly pb::FieldCodec<global::Tensorflow.DebugTensorWatch> _repeated_debugTensorWatchOpts_codec
  335. = pb::FieldCodec.ForMessage(34, global::Tensorflow.DebugTensorWatch.Parser);
  336. private readonly pbc::RepeatedField<global::Tensorflow.DebugTensorWatch> debugTensorWatchOpts_ = new pbc::RepeatedField<global::Tensorflow.DebugTensorWatch>();
  337. /// <summary>
  338. /// Debugging options
  339. /// </summary>
  340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  341. public pbc::RepeatedField<global::Tensorflow.DebugTensorWatch> DebugTensorWatchOpts {
  342. get { return debugTensorWatchOpts_; }
  343. }
  344. /// <summary>Field number for the "global_step" field.</summary>
  345. public const int GlobalStepFieldNumber = 10;
  346. private long globalStep_;
  347. /// <summary>
  348. /// Caller-specified global step count.
  349. /// Note that this is distinct from the session run count and the executor
  350. /// step count.
  351. /// </summary>
  352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  353. public long GlobalStep {
  354. get { return globalStep_; }
  355. set {
  356. globalStep_ = value;
  357. }
  358. }
  359. /// <summary>Field number for the "reset_disk_byte_usage" field.</summary>
  360. public const int ResetDiskByteUsageFieldNumber = 11;
  361. private bool resetDiskByteUsage_;
  362. /// <summary>
  363. /// Whether the total disk usage of tfdbg is to be reset to zero
  364. /// in this Session.run call. This is used by wrappers and hooks
  365. /// such as the local CLI ones to indicate that the dumped tensors
  366. /// are cleaned up from the disk after each Session.run.
  367. /// </summary>
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  369. public bool ResetDiskByteUsage {
  370. get { return resetDiskByteUsage_; }
  371. set {
  372. resetDiskByteUsage_ = value;
  373. }
  374. }
  375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  376. public override bool Equals(object other) {
  377. return Equals(other as DebugOptions);
  378. }
  379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  380. public bool Equals(DebugOptions other) {
  381. if (ReferenceEquals(other, null)) {
  382. return false;
  383. }
  384. if (ReferenceEquals(other, this)) {
  385. return true;
  386. }
  387. if(!debugTensorWatchOpts_.Equals(other.debugTensorWatchOpts_)) return false;
  388. if (GlobalStep != other.GlobalStep) return false;
  389. if (ResetDiskByteUsage != other.ResetDiskByteUsage) return false;
  390. return Equals(_unknownFields, other._unknownFields);
  391. }
  392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  393. public override int GetHashCode() {
  394. int hash = 1;
  395. hash ^= debugTensorWatchOpts_.GetHashCode();
  396. if (GlobalStep != 0L) hash ^= GlobalStep.GetHashCode();
  397. if (ResetDiskByteUsage != false) hash ^= ResetDiskByteUsage.GetHashCode();
  398. if (_unknownFields != null) {
  399. hash ^= _unknownFields.GetHashCode();
  400. }
  401. return hash;
  402. }
  403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  404. public override string ToString() {
  405. return pb::JsonFormatter.ToDiagnosticString(this);
  406. }
  407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  408. public void WriteTo(pb::CodedOutputStream output) {
  409. debugTensorWatchOpts_.WriteTo(output, _repeated_debugTensorWatchOpts_codec);
  410. if (GlobalStep != 0L) {
  411. output.WriteRawTag(80);
  412. output.WriteInt64(GlobalStep);
  413. }
  414. if (ResetDiskByteUsage != false) {
  415. output.WriteRawTag(88);
  416. output.WriteBool(ResetDiskByteUsage);
  417. }
  418. if (_unknownFields != null) {
  419. _unknownFields.WriteTo(output);
  420. }
  421. }
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  423. public int CalculateSize() {
  424. int size = 0;
  425. size += debugTensorWatchOpts_.CalculateSize(_repeated_debugTensorWatchOpts_codec);
  426. if (GlobalStep != 0L) {
  427. size += 1 + pb::CodedOutputStream.ComputeInt64Size(GlobalStep);
  428. }
  429. if (ResetDiskByteUsage != false) {
  430. size += 1 + 1;
  431. }
  432. if (_unknownFields != null) {
  433. size += _unknownFields.CalculateSize();
  434. }
  435. return size;
  436. }
  437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  438. public void MergeFrom(DebugOptions other) {
  439. if (other == null) {
  440. return;
  441. }
  442. debugTensorWatchOpts_.Add(other.debugTensorWatchOpts_);
  443. if (other.GlobalStep != 0L) {
  444. GlobalStep = other.GlobalStep;
  445. }
  446. if (other.ResetDiskByteUsage != false) {
  447. ResetDiskByteUsage = other.ResetDiskByteUsage;
  448. }
  449. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  450. }
  451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  452. public void MergeFrom(pb::CodedInputStream input) {
  453. uint tag;
  454. while ((tag = input.ReadTag()) != 0) {
  455. switch(tag) {
  456. default:
  457. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  458. break;
  459. case 34: {
  460. debugTensorWatchOpts_.AddEntriesFrom(input, _repeated_debugTensorWatchOpts_codec);
  461. break;
  462. }
  463. case 80: {
  464. GlobalStep = input.ReadInt64();
  465. break;
  466. }
  467. case 88: {
  468. ResetDiskByteUsage = input.ReadBool();
  469. break;
  470. }
  471. }
  472. }
  473. }
  474. }
  475. public sealed partial class DebuggedSourceFile : pb::IMessage<DebuggedSourceFile> {
  476. private static readonly pb::MessageParser<DebuggedSourceFile> _parser = new pb::MessageParser<DebuggedSourceFile>(() => new DebuggedSourceFile());
  477. private pb::UnknownFieldSet _unknownFields;
  478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  479. public static pb::MessageParser<DebuggedSourceFile> Parser { get { return _parser; } }
  480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  481. public static pbr::MessageDescriptor Descriptor {
  482. get { return global::Tensorflow.DebugReflection.Descriptor.MessageTypes[2]; }
  483. }
  484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  485. pbr::MessageDescriptor pb::IMessage.Descriptor {
  486. get { return Descriptor; }
  487. }
  488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  489. public DebuggedSourceFile() {
  490. OnConstruction();
  491. }
  492. partial void OnConstruction();
  493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  494. public DebuggedSourceFile(DebuggedSourceFile other) : this() {
  495. host_ = other.host_;
  496. filePath_ = other.filePath_;
  497. lastModified_ = other.lastModified_;
  498. bytes_ = other.bytes_;
  499. lines_ = other.lines_.Clone();
  500. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  501. }
  502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  503. public DebuggedSourceFile Clone() {
  504. return new DebuggedSourceFile(this);
  505. }
  506. /// <summary>Field number for the "host" field.</summary>
  507. public const int HostFieldNumber = 1;
  508. private string host_ = "";
  509. /// <summary>
  510. /// The host name on which a source code file is located.
  511. /// </summary>
  512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  513. public string Host {
  514. get { return host_; }
  515. set {
  516. host_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  517. }
  518. }
  519. /// <summary>Field number for the "file_path" field.</summary>
  520. public const int FilePathFieldNumber = 2;
  521. private string filePath_ = "";
  522. /// <summary>
  523. /// Path to the source code file.
  524. /// </summary>
  525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  526. public string FilePath {
  527. get { return filePath_; }
  528. set {
  529. filePath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  530. }
  531. }
  532. /// <summary>Field number for the "last_modified" field.</summary>
  533. public const int LastModifiedFieldNumber = 3;
  534. private long lastModified_;
  535. /// <summary>
  536. /// The timestamp at which the source code file is last modified.
  537. /// </summary>
  538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  539. public long LastModified {
  540. get { return lastModified_; }
  541. set {
  542. lastModified_ = value;
  543. }
  544. }
  545. /// <summary>Field number for the "bytes" field.</summary>
  546. public const int BytesFieldNumber = 4;
  547. private long bytes_;
  548. /// <summary>
  549. /// Byte size of the file.
  550. /// </summary>
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  552. public long Bytes {
  553. get { return bytes_; }
  554. set {
  555. bytes_ = value;
  556. }
  557. }
  558. /// <summary>Field number for the "lines" field.</summary>
  559. public const int LinesFieldNumber = 5;
  560. private static readonly pb::FieldCodec<string> _repeated_lines_codec
  561. = pb::FieldCodec.ForString(42);
  562. private readonly pbc::RepeatedField<string> lines_ = new pbc::RepeatedField<string>();
  563. /// <summary>
  564. /// Line-by-line content of the source code file.
  565. /// </summary>
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  567. public pbc::RepeatedField<string> Lines {
  568. get { return lines_; }
  569. }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  571. public override bool Equals(object other) {
  572. return Equals(other as DebuggedSourceFile);
  573. }
  574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  575. public bool Equals(DebuggedSourceFile other) {
  576. if (ReferenceEquals(other, null)) {
  577. return false;
  578. }
  579. if (ReferenceEquals(other, this)) {
  580. return true;
  581. }
  582. if (Host != other.Host) return false;
  583. if (FilePath != other.FilePath) return false;
  584. if (LastModified != other.LastModified) return false;
  585. if (Bytes != other.Bytes) return false;
  586. if(!lines_.Equals(other.lines_)) return false;
  587. return Equals(_unknownFields, other._unknownFields);
  588. }
  589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  590. public override int GetHashCode() {
  591. int hash = 1;
  592. if (Host.Length != 0) hash ^= Host.GetHashCode();
  593. if (FilePath.Length != 0) hash ^= FilePath.GetHashCode();
  594. if (LastModified != 0L) hash ^= LastModified.GetHashCode();
  595. if (Bytes != 0L) hash ^= Bytes.GetHashCode();
  596. hash ^= lines_.GetHashCode();
  597. if (_unknownFields != null) {
  598. hash ^= _unknownFields.GetHashCode();
  599. }
  600. return hash;
  601. }
  602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  603. public override string ToString() {
  604. return pb::JsonFormatter.ToDiagnosticString(this);
  605. }
  606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  607. public void WriteTo(pb::CodedOutputStream output) {
  608. if (Host.Length != 0) {
  609. output.WriteRawTag(10);
  610. output.WriteString(Host);
  611. }
  612. if (FilePath.Length != 0) {
  613. output.WriteRawTag(18);
  614. output.WriteString(FilePath);
  615. }
  616. if (LastModified != 0L) {
  617. output.WriteRawTag(24);
  618. output.WriteInt64(LastModified);
  619. }
  620. if (Bytes != 0L) {
  621. output.WriteRawTag(32);
  622. output.WriteInt64(Bytes);
  623. }
  624. lines_.WriteTo(output, _repeated_lines_codec);
  625. if (_unknownFields != null) {
  626. _unknownFields.WriteTo(output);
  627. }
  628. }
  629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  630. public int CalculateSize() {
  631. int size = 0;
  632. if (Host.Length != 0) {
  633. size += 1 + pb::CodedOutputStream.ComputeStringSize(Host);
  634. }
  635. if (FilePath.Length != 0) {
  636. size += 1 + pb::CodedOutputStream.ComputeStringSize(FilePath);
  637. }
  638. if (LastModified != 0L) {
  639. size += 1 + pb::CodedOutputStream.ComputeInt64Size(LastModified);
  640. }
  641. if (Bytes != 0L) {
  642. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Bytes);
  643. }
  644. size += lines_.CalculateSize(_repeated_lines_codec);
  645. if (_unknownFields != null) {
  646. size += _unknownFields.CalculateSize();
  647. }
  648. return size;
  649. }
  650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  651. public void MergeFrom(DebuggedSourceFile other) {
  652. if (other == null) {
  653. return;
  654. }
  655. if (other.Host.Length != 0) {
  656. Host = other.Host;
  657. }
  658. if (other.FilePath.Length != 0) {
  659. FilePath = other.FilePath;
  660. }
  661. if (other.LastModified != 0L) {
  662. LastModified = other.LastModified;
  663. }
  664. if (other.Bytes != 0L) {
  665. Bytes = other.Bytes;
  666. }
  667. lines_.Add(other.lines_);
  668. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  669. }
  670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  671. public void MergeFrom(pb::CodedInputStream input) {
  672. uint tag;
  673. while ((tag = input.ReadTag()) != 0) {
  674. switch(tag) {
  675. default:
  676. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  677. break;
  678. case 10: {
  679. Host = input.ReadString();
  680. break;
  681. }
  682. case 18: {
  683. FilePath = input.ReadString();
  684. break;
  685. }
  686. case 24: {
  687. LastModified = input.ReadInt64();
  688. break;
  689. }
  690. case 32: {
  691. Bytes = input.ReadInt64();
  692. break;
  693. }
  694. case 42: {
  695. lines_.AddEntriesFrom(input, _repeated_lines_codec);
  696. break;
  697. }
  698. }
  699. }
  700. }
  701. }
  702. public sealed partial class DebuggedSourceFiles : pb::IMessage<DebuggedSourceFiles> {
  703. private static readonly pb::MessageParser<DebuggedSourceFiles> _parser = new pb::MessageParser<DebuggedSourceFiles>(() => new DebuggedSourceFiles());
  704. private pb::UnknownFieldSet _unknownFields;
  705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  706. public static pb::MessageParser<DebuggedSourceFiles> Parser { get { return _parser; } }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  708. public static pbr::MessageDescriptor Descriptor {
  709. get { return global::Tensorflow.DebugReflection.Descriptor.MessageTypes[3]; }
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  712. pbr::MessageDescriptor pb::IMessage.Descriptor {
  713. get { return Descriptor; }
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  716. public DebuggedSourceFiles() {
  717. OnConstruction();
  718. }
  719. partial void OnConstruction();
  720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  721. public DebuggedSourceFiles(DebuggedSourceFiles other) : this() {
  722. sourceFiles_ = other.sourceFiles_.Clone();
  723. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  724. }
  725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  726. public DebuggedSourceFiles Clone() {
  727. return new DebuggedSourceFiles(this);
  728. }
  729. /// <summary>Field number for the "source_files" field.</summary>
  730. public const int SourceFilesFieldNumber = 1;
  731. private static readonly pb::FieldCodec<global::Tensorflow.DebuggedSourceFile> _repeated_sourceFiles_codec
  732. = pb::FieldCodec.ForMessage(10, global::Tensorflow.DebuggedSourceFile.Parser);
  733. private readonly pbc::RepeatedField<global::Tensorflow.DebuggedSourceFile> sourceFiles_ = new pbc::RepeatedField<global::Tensorflow.DebuggedSourceFile>();
  734. /// <summary>
  735. /// A collection of source code files.
  736. /// </summary>
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  738. public pbc::RepeatedField<global::Tensorflow.DebuggedSourceFile> SourceFiles {
  739. get { return sourceFiles_; }
  740. }
  741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  742. public override bool Equals(object other) {
  743. return Equals(other as DebuggedSourceFiles);
  744. }
  745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  746. public bool Equals(DebuggedSourceFiles other) {
  747. if (ReferenceEquals(other, null)) {
  748. return false;
  749. }
  750. if (ReferenceEquals(other, this)) {
  751. return true;
  752. }
  753. if(!sourceFiles_.Equals(other.sourceFiles_)) return false;
  754. return Equals(_unknownFields, other._unknownFields);
  755. }
  756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  757. public override int GetHashCode() {
  758. int hash = 1;
  759. hash ^= sourceFiles_.GetHashCode();
  760. if (_unknownFields != null) {
  761. hash ^= _unknownFields.GetHashCode();
  762. }
  763. return hash;
  764. }
  765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  766. public override string ToString() {
  767. return pb::JsonFormatter.ToDiagnosticString(this);
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  770. public void WriteTo(pb::CodedOutputStream output) {
  771. sourceFiles_.WriteTo(output, _repeated_sourceFiles_codec);
  772. if (_unknownFields != null) {
  773. _unknownFields.WriteTo(output);
  774. }
  775. }
  776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  777. public int CalculateSize() {
  778. int size = 0;
  779. size += sourceFiles_.CalculateSize(_repeated_sourceFiles_codec);
  780. if (_unknownFields != null) {
  781. size += _unknownFields.CalculateSize();
  782. }
  783. return size;
  784. }
  785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  786. public void MergeFrom(DebuggedSourceFiles other) {
  787. if (other == null) {
  788. return;
  789. }
  790. sourceFiles_.Add(other.sourceFiles_);
  791. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  792. }
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  794. public void MergeFrom(pb::CodedInputStream input) {
  795. uint tag;
  796. while ((tag = input.ReadTag()) != 0) {
  797. switch(tag) {
  798. default:
  799. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  800. break;
  801. case 10: {
  802. sourceFiles_.AddEntriesFrom(input, _repeated_sourceFiles_codec);
  803. break;
  804. }
  805. }
  806. }
  807. }
  808. }
  809. #endregion
  810. }
  811. #endregion Designer generated code