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.

Summary.cs 76 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: tensorflow/core/framework/summary.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/framework/summary.proto</summary>
  13. public static partial class SummaryReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for tensorflow/core/framework/summary.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static SummaryReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Cid0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL3N1bW1hcnkucHJvdG8SCnRl",
  24. "bnNvcmZsb3caJnRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvdGVuc29yLnBy",
  25. "b3RvIicKElN1bW1hcnlEZXNjcmlwdGlvbhIRCgl0eXBlX2hpbnQYASABKAki",
  26. "hwEKDkhpc3RvZ3JhbVByb3RvEgsKA21pbhgBIAEoARILCgNtYXgYAiABKAES",
  27. "CwoDbnVtGAMgASgBEgsKA3N1bRgEIAEoARITCgtzdW1fc3F1YXJlcxgFIAEo",
  28. "ARIYCgxidWNrZXRfbGltaXQYBiADKAFCAhABEhIKBmJ1Y2tldBgHIAMoAUIC",
  29. "EAEi4AEKD1N1bW1hcnlNZXRhZGF0YRI7CgtwbHVnaW5fZGF0YRgBIAEoCzIm",
  30. "LnRlbnNvcmZsb3cuU3VtbWFyeU1ldGFkYXRhLlBsdWdpbkRhdGESFAoMZGlz",
  31. "cGxheV9uYW1lGAIgASgJEhsKE3N1bW1hcnlfZGVzY3JpcHRpb24YAyABKAkS",
  32. "KQoKZGF0YV9jbGFzcxgEIAEoDjIVLnRlbnNvcmZsb3cuRGF0YUNsYXNzGjIK",
  33. "ClBsdWdpbkRhdGESEwoLcGx1Z2luX25hbWUYASABKAkSDwoHY29udGVudBgC",
  34. "IAEoDCLeBAoHU3VtbWFyeRIoCgV2YWx1ZRgBIAMoCzIZLnRlbnNvcmZsb3cu",
  35. "U3VtbWFyeS5WYWx1ZRpYCgVJbWFnZRIOCgZoZWlnaHQYASABKAUSDQoFd2lk",
  36. "dGgYAiABKAUSEgoKY29sb3JzcGFjZRgDIAEoBRIcChRlbmNvZGVkX2ltYWdl",
  37. "X3N0cmluZxgEIAEoDBp9CgVBdWRpbxITCgtzYW1wbGVfcmF0ZRgBIAEoAhIU",
  38. "CgxudW1fY2hhbm5lbHMYAiABKAMSFQoNbGVuZ3RoX2ZyYW1lcxgDIAEoAxIc",
  39. "ChRlbmNvZGVkX2F1ZGlvX3N0cmluZxgEIAEoDBIUCgxjb250ZW50X3R5cGUY",
  40. "BSABKAkazwIKBVZhbHVlEhEKCW5vZGVfbmFtZRgHIAEoCRILCgN0YWcYASAB",
  41. "KAkSLQoIbWV0YWRhdGEYCSABKAsyGy50ZW5zb3JmbG93LlN1bW1hcnlNZXRh",
  42. "ZGF0YRIWCgxzaW1wbGVfdmFsdWUYAiABKAJIABImChxvYnNvbGV0ZV9vbGRf",
  43. "c3R5bGVfaGlzdG9ncmFtGAMgASgMSAASKgoFaW1hZ2UYBCABKAsyGS50ZW5z",
  44. "b3JmbG93LlN1bW1hcnkuSW1hZ2VIABIrCgVoaXN0bxgFIAEoCzIaLnRlbnNv",
  45. "cmZsb3cuSGlzdG9ncmFtUHJvdG9IABIqCgVhdWRpbxgGIAEoCzIZLnRlbnNv",
  46. "cmZsb3cuU3VtbWFyeS5BdWRpb0gAEikKBnRlbnNvchgIIAEoCzIXLnRlbnNv",
  47. "cmZsb3cuVGVuc29yUHJvdG9IAEIHCgV2YWx1ZSpvCglEYXRhQ2xhc3MSFgoS",
  48. "REFUQV9DTEFTU19VTktOT1dOEAASFQoRREFUQV9DTEFTU19TQ0FMQVIQARIV",
  49. "ChFEQVRBX0NMQVNTX1RFTlNPUhACEhwKGERBVEFfQ0xBU1NfQkxPQl9TRVFV",
  50. "RU5DRRADQn4KGG9yZy50ZW5zb3JmbG93LmZyYW1ld29ya0INU3VtbWFyeVBy",
  51. "b3Rvc1ABWk5naXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90ZW5z",
  52. "b3JmbG93L2dvL2NvcmUvZnJhbWV3b3JrL3N1bW1hcnlfZ29fcHJvdG/4AQFi",
  53. "BnByb3RvMw=="));
  54. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  55. new pbr::FileDescriptor[] { global::Tensorflow.TensorReflection.Descriptor, },
  56. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tensorflow.DataClass), }, null, new pbr::GeneratedClrTypeInfo[] {
  57. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SummaryDescription), global::Tensorflow.SummaryDescription.Parser, new[]{ "TypeHint" }, null, null, null, null),
  58. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.HistogramProto), global::Tensorflow.HistogramProto.Parser, new[]{ "Min", "Max", "Num", "Sum", "SumSquares", "BucketLimit", "Bucket" }, null, null, null, null),
  59. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SummaryMetadata), global::Tensorflow.SummaryMetadata.Parser, new[]{ "PluginData", "DisplayName", "SummaryDescription", "DataClass" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SummaryMetadata.Types.PluginData), global::Tensorflow.SummaryMetadata.Types.PluginData.Parser, new[]{ "PluginName", "Content" }, null, null, null, null)}),
  60. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Summary), global::Tensorflow.Summary.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Summary.Types.Image), global::Tensorflow.Summary.Types.Image.Parser, new[]{ "Height", "Width", "Colorspace", "EncodedImageString" }, null, null, null, null),
  61. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Summary.Types.Audio), global::Tensorflow.Summary.Types.Audio.Parser, new[]{ "SampleRate", "NumChannels", "LengthFrames", "EncodedAudioString", "ContentType" }, null, null, null, null),
  62. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Summary.Types.Value), global::Tensorflow.Summary.Types.Value.Parser, new[]{ "NodeName", "Tag", "Metadata", "SimpleValue", "ObsoleteOldStyleHistogram", "Image", "Histo", "Audio", "Tensor" }, new[]{ "Value" }, null, null, null)})
  63. }));
  64. }
  65. #endregion
  66. }
  67. #region Enums
  68. public enum DataClass {
  69. /// <summary>
  70. /// Unknown data class, used (implicitly) for legacy data. Will not be
  71. /// processed by data ingestion pipelines.
  72. /// </summary>
  73. [pbr::OriginalName("DATA_CLASS_UNKNOWN")] Unknown = 0,
  74. /// <summary>
  75. /// Scalar time series. Each `Value` for the corresponding tag must have
  76. /// `tensor` set to a rank-0 tensor of type `DT_FLOAT` (float32).
  77. /// </summary>
  78. [pbr::OriginalName("DATA_CLASS_SCALAR")] Scalar = 1,
  79. /// <summary>
  80. /// Tensor time series. Each `Value` for the corresponding tag must have
  81. /// `tensor` set. The tensor value is arbitrary, but should be small to
  82. /// accommodate direct storage in database backends: an upper bound of a few
  83. /// kilobytes is a reasonable rule of thumb.
  84. /// </summary>
  85. [pbr::OriginalName("DATA_CLASS_TENSOR")] Tensor = 2,
  86. /// <summary>
  87. /// Blob sequence time series. Each `Value` for the corresponding tag must
  88. /// have `tensor` set to a rank-1 tensor of bytestring dtype.
  89. /// </summary>
  90. [pbr::OriginalName("DATA_CLASS_BLOB_SEQUENCE")] BlobSequence = 3,
  91. }
  92. #endregion
  93. #region Messages
  94. /// <summary>
  95. /// Metadata associated with a series of Summary data
  96. /// </summary>
  97. public sealed partial class SummaryDescription : pb::IMessage<SummaryDescription> {
  98. private static readonly pb::MessageParser<SummaryDescription> _parser = new pb::MessageParser<SummaryDescription>(() => new SummaryDescription());
  99. private pb::UnknownFieldSet _unknownFields;
  100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  101. public static pb::MessageParser<SummaryDescription> Parser { get { return _parser; } }
  102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  103. public static pbr::MessageDescriptor Descriptor {
  104. get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[0]; }
  105. }
  106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  107. pbr::MessageDescriptor pb::IMessage.Descriptor {
  108. get { return Descriptor; }
  109. }
  110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  111. public SummaryDescription() {
  112. OnConstruction();
  113. }
  114. partial void OnConstruction();
  115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  116. public SummaryDescription(SummaryDescription other) : this() {
  117. typeHint_ = other.typeHint_;
  118. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  119. }
  120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  121. public SummaryDescription Clone() {
  122. return new SummaryDescription(this);
  123. }
  124. /// <summary>Field number for the "type_hint" field.</summary>
  125. public const int TypeHintFieldNumber = 1;
  126. private string typeHint_ = "";
  127. /// <summary>
  128. /// Hint on how plugins should process the data in this series.
  129. /// Supported values include "scalar", "histogram", "image", "audio"
  130. /// </summary>
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  132. public string TypeHint {
  133. get { return typeHint_; }
  134. set {
  135. typeHint_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  136. }
  137. }
  138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  139. public override bool Equals(object other) {
  140. return Equals(other as SummaryDescription);
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  143. public bool Equals(SummaryDescription other) {
  144. if (ReferenceEquals(other, null)) {
  145. return false;
  146. }
  147. if (ReferenceEquals(other, this)) {
  148. return true;
  149. }
  150. if (TypeHint != other.TypeHint) return false;
  151. return Equals(_unknownFields, other._unknownFields);
  152. }
  153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  154. public override int GetHashCode() {
  155. int hash = 1;
  156. if (TypeHint.Length != 0) hash ^= TypeHint.GetHashCode();
  157. if (_unknownFields != null) {
  158. hash ^= _unknownFields.GetHashCode();
  159. }
  160. return hash;
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  163. public override string ToString() {
  164. return pb::JsonFormatter.ToDiagnosticString(this);
  165. }
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  167. public void WriteTo(pb::CodedOutputStream output) {
  168. if (TypeHint.Length != 0) {
  169. output.WriteRawTag(10);
  170. output.WriteString(TypeHint);
  171. }
  172. if (_unknownFields != null) {
  173. _unknownFields.WriteTo(output);
  174. }
  175. }
  176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  177. public int CalculateSize() {
  178. int size = 0;
  179. if (TypeHint.Length != 0) {
  180. size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeHint);
  181. }
  182. if (_unknownFields != null) {
  183. size += _unknownFields.CalculateSize();
  184. }
  185. return size;
  186. }
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  188. public void MergeFrom(SummaryDescription other) {
  189. if (other == null) {
  190. return;
  191. }
  192. if (other.TypeHint.Length != 0) {
  193. TypeHint = other.TypeHint;
  194. }
  195. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  196. }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  198. public void MergeFrom(pb::CodedInputStream input) {
  199. uint tag;
  200. while ((tag = input.ReadTag()) != 0) {
  201. switch(tag) {
  202. default:
  203. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  204. break;
  205. case 10: {
  206. TypeHint = input.ReadString();
  207. break;
  208. }
  209. }
  210. }
  211. }
  212. }
  213. /// <summary>
  214. /// Serialization format for histogram module in
  215. /// core/lib/histogram/histogram.h
  216. /// </summary>
  217. public sealed partial class HistogramProto : pb::IMessage<HistogramProto> {
  218. private static readonly pb::MessageParser<HistogramProto> _parser = new pb::MessageParser<HistogramProto>(() => new HistogramProto());
  219. private pb::UnknownFieldSet _unknownFields;
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  221. public static pb::MessageParser<HistogramProto> Parser { get { return _parser; } }
  222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  223. public static pbr::MessageDescriptor Descriptor {
  224. get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[1]; }
  225. }
  226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  227. pbr::MessageDescriptor pb::IMessage.Descriptor {
  228. get { return Descriptor; }
  229. }
  230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  231. public HistogramProto() {
  232. OnConstruction();
  233. }
  234. partial void OnConstruction();
  235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  236. public HistogramProto(HistogramProto other) : this() {
  237. min_ = other.min_;
  238. max_ = other.max_;
  239. num_ = other.num_;
  240. sum_ = other.sum_;
  241. sumSquares_ = other.sumSquares_;
  242. bucketLimit_ = other.bucketLimit_.Clone();
  243. bucket_ = other.bucket_.Clone();
  244. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  245. }
  246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  247. public HistogramProto Clone() {
  248. return new HistogramProto(this);
  249. }
  250. /// <summary>Field number for the "min" field.</summary>
  251. public const int MinFieldNumber = 1;
  252. private double min_;
  253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  254. public double Min {
  255. get { return min_; }
  256. set {
  257. min_ = value;
  258. }
  259. }
  260. /// <summary>Field number for the "max" field.</summary>
  261. public const int MaxFieldNumber = 2;
  262. private double max_;
  263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  264. public double Max {
  265. get { return max_; }
  266. set {
  267. max_ = value;
  268. }
  269. }
  270. /// <summary>Field number for the "num" field.</summary>
  271. public const int NumFieldNumber = 3;
  272. private double num_;
  273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  274. public double Num {
  275. get { return num_; }
  276. set {
  277. num_ = value;
  278. }
  279. }
  280. /// <summary>Field number for the "sum" field.</summary>
  281. public const int SumFieldNumber = 4;
  282. private double sum_;
  283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  284. public double Sum {
  285. get { return sum_; }
  286. set {
  287. sum_ = value;
  288. }
  289. }
  290. /// <summary>Field number for the "sum_squares" field.</summary>
  291. public const int SumSquaresFieldNumber = 5;
  292. private double sumSquares_;
  293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  294. public double SumSquares {
  295. get { return sumSquares_; }
  296. set {
  297. sumSquares_ = value;
  298. }
  299. }
  300. /// <summary>Field number for the "bucket_limit" field.</summary>
  301. public const int BucketLimitFieldNumber = 6;
  302. private static readonly pb::FieldCodec<double> _repeated_bucketLimit_codec
  303. = pb::FieldCodec.ForDouble(50);
  304. private readonly pbc::RepeatedField<double> bucketLimit_ = new pbc::RepeatedField<double>();
  305. /// <summary>
  306. /// Parallel arrays encoding the bucket boundaries and the bucket values.
  307. /// bucket(i) is the count for the bucket i. The range for
  308. /// a bucket is:
  309. /// i == 0: -DBL_MAX .. bucket_limit(0)
  310. /// i != 0: bucket_limit(i-1) .. bucket_limit(i)
  311. /// </summary>
  312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  313. public pbc::RepeatedField<double> BucketLimit {
  314. get { return bucketLimit_; }
  315. }
  316. /// <summary>Field number for the "bucket" field.</summary>
  317. public const int BucketFieldNumber = 7;
  318. private static readonly pb::FieldCodec<double> _repeated_bucket_codec
  319. = pb::FieldCodec.ForDouble(58);
  320. private readonly pbc::RepeatedField<double> bucket_ = new pbc::RepeatedField<double>();
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  322. public pbc::RepeatedField<double> Bucket {
  323. get { return bucket_; }
  324. }
  325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  326. public override bool Equals(object other) {
  327. return Equals(other as HistogramProto);
  328. }
  329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  330. public bool Equals(HistogramProto other) {
  331. if (ReferenceEquals(other, null)) {
  332. return false;
  333. }
  334. if (ReferenceEquals(other, this)) {
  335. return true;
  336. }
  337. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Min, other.Min)) return false;
  338. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Max, other.Max)) return false;
  339. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Num, other.Num)) return false;
  340. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false;
  341. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SumSquares, other.SumSquares)) return false;
  342. if(!bucketLimit_.Equals(other.bucketLimit_)) return false;
  343. if(!bucket_.Equals(other.bucket_)) return false;
  344. return Equals(_unknownFields, other._unknownFields);
  345. }
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  347. public override int GetHashCode() {
  348. int hash = 1;
  349. if (Min != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Min);
  350. if (Max != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Max);
  351. if (Num != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Num);
  352. if (Sum != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Sum);
  353. if (SumSquares != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SumSquares);
  354. hash ^= bucketLimit_.GetHashCode();
  355. hash ^= bucket_.GetHashCode();
  356. if (_unknownFields != null) {
  357. hash ^= _unknownFields.GetHashCode();
  358. }
  359. return hash;
  360. }
  361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  362. public override string ToString() {
  363. return pb::JsonFormatter.ToDiagnosticString(this);
  364. }
  365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  366. public void WriteTo(pb::CodedOutputStream output) {
  367. if (Min != 0D) {
  368. output.WriteRawTag(9);
  369. output.WriteDouble(Min);
  370. }
  371. if (Max != 0D) {
  372. output.WriteRawTag(17);
  373. output.WriteDouble(Max);
  374. }
  375. if (Num != 0D) {
  376. output.WriteRawTag(25);
  377. output.WriteDouble(Num);
  378. }
  379. if (Sum != 0D) {
  380. output.WriteRawTag(33);
  381. output.WriteDouble(Sum);
  382. }
  383. if (SumSquares != 0D) {
  384. output.WriteRawTag(41);
  385. output.WriteDouble(SumSquares);
  386. }
  387. bucketLimit_.WriteTo(output, _repeated_bucketLimit_codec);
  388. bucket_.WriteTo(output, _repeated_bucket_codec);
  389. if (_unknownFields != null) {
  390. _unknownFields.WriteTo(output);
  391. }
  392. }
  393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  394. public int CalculateSize() {
  395. int size = 0;
  396. if (Min != 0D) {
  397. size += 1 + 8;
  398. }
  399. if (Max != 0D) {
  400. size += 1 + 8;
  401. }
  402. if (Num != 0D) {
  403. size += 1 + 8;
  404. }
  405. if (Sum != 0D) {
  406. size += 1 + 8;
  407. }
  408. if (SumSquares != 0D) {
  409. size += 1 + 8;
  410. }
  411. size += bucketLimit_.CalculateSize(_repeated_bucketLimit_codec);
  412. size += bucket_.CalculateSize(_repeated_bucket_codec);
  413. if (_unknownFields != null) {
  414. size += _unknownFields.CalculateSize();
  415. }
  416. return size;
  417. }
  418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  419. public void MergeFrom(HistogramProto other) {
  420. if (other == null) {
  421. return;
  422. }
  423. if (other.Min != 0D) {
  424. Min = other.Min;
  425. }
  426. if (other.Max != 0D) {
  427. Max = other.Max;
  428. }
  429. if (other.Num != 0D) {
  430. Num = other.Num;
  431. }
  432. if (other.Sum != 0D) {
  433. Sum = other.Sum;
  434. }
  435. if (other.SumSquares != 0D) {
  436. SumSquares = other.SumSquares;
  437. }
  438. bucketLimit_.Add(other.bucketLimit_);
  439. bucket_.Add(other.bucket_);
  440. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  441. }
  442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  443. public void MergeFrom(pb::CodedInputStream input) {
  444. uint tag;
  445. while ((tag = input.ReadTag()) != 0) {
  446. switch(tag) {
  447. default:
  448. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  449. break;
  450. case 9: {
  451. Min = input.ReadDouble();
  452. break;
  453. }
  454. case 17: {
  455. Max = input.ReadDouble();
  456. break;
  457. }
  458. case 25: {
  459. Num = input.ReadDouble();
  460. break;
  461. }
  462. case 33: {
  463. Sum = input.ReadDouble();
  464. break;
  465. }
  466. case 41: {
  467. SumSquares = input.ReadDouble();
  468. break;
  469. }
  470. case 50:
  471. case 49: {
  472. bucketLimit_.AddEntriesFrom(input, _repeated_bucketLimit_codec);
  473. break;
  474. }
  475. case 58:
  476. case 57: {
  477. bucket_.AddEntriesFrom(input, _repeated_bucket_codec);
  478. break;
  479. }
  480. }
  481. }
  482. }
  483. }
  484. /// <summary>
  485. /// A SummaryMetadata encapsulates information on which plugins are able to make
  486. /// use of a certain summary value.
  487. /// </summary>
  488. public sealed partial class SummaryMetadata : pb::IMessage<SummaryMetadata> {
  489. private static readonly pb::MessageParser<SummaryMetadata> _parser = new pb::MessageParser<SummaryMetadata>(() => new SummaryMetadata());
  490. private pb::UnknownFieldSet _unknownFields;
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  492. public static pb::MessageParser<SummaryMetadata> Parser { get { return _parser; } }
  493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  494. public static pbr::MessageDescriptor Descriptor {
  495. get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[2]; }
  496. }
  497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  498. pbr::MessageDescriptor pb::IMessage.Descriptor {
  499. get { return Descriptor; }
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  502. public SummaryMetadata() {
  503. OnConstruction();
  504. }
  505. partial void OnConstruction();
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  507. public SummaryMetadata(SummaryMetadata other) : this() {
  508. pluginData_ = other.pluginData_ != null ? other.pluginData_.Clone() : null;
  509. displayName_ = other.displayName_;
  510. summaryDescription_ = other.summaryDescription_;
  511. dataClass_ = other.dataClass_;
  512. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. public SummaryMetadata Clone() {
  516. return new SummaryMetadata(this);
  517. }
  518. /// <summary>Field number for the "plugin_data" field.</summary>
  519. public const int PluginDataFieldNumber = 1;
  520. private global::Tensorflow.SummaryMetadata.Types.PluginData pluginData_;
  521. /// <summary>
  522. /// Data that associates a summary with a certain plugin.
  523. /// </summary>
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  525. public global::Tensorflow.SummaryMetadata.Types.PluginData PluginData {
  526. get { return pluginData_; }
  527. set {
  528. pluginData_ = value;
  529. }
  530. }
  531. /// <summary>Field number for the "display_name" field.</summary>
  532. public const int DisplayNameFieldNumber = 2;
  533. private string displayName_ = "";
  534. /// <summary>
  535. /// Display name for viewing in TensorBoard.
  536. /// </summary>
  537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  538. public string DisplayName {
  539. get { return displayName_; }
  540. set {
  541. displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  542. }
  543. }
  544. /// <summary>Field number for the "summary_description" field.</summary>
  545. public const int SummaryDescriptionFieldNumber = 3;
  546. private string summaryDescription_ = "";
  547. /// <summary>
  548. /// Longform readable description of the summary sequence. Markdown supported.
  549. /// </summary>
  550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  551. public string SummaryDescription {
  552. get { return summaryDescription_; }
  553. set {
  554. summaryDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  555. }
  556. }
  557. /// <summary>Field number for the "data_class" field.</summary>
  558. public const int DataClassFieldNumber = 4;
  559. private global::Tensorflow.DataClass dataClass_ = global::Tensorflow.DataClass.Unknown;
  560. /// <summary>
  561. /// Class of data stored in this time series. Required for compatibility with
  562. /// TensorBoard's generic data facilities (`DataProvider`, et al.). This value
  563. /// imposes constraints on the dtype and shape of the corresponding tensor
  564. /// values. See `DataClass` docs for details.
  565. /// </summary>
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  567. public global::Tensorflow.DataClass DataClass {
  568. get { return dataClass_; }
  569. set {
  570. dataClass_ = value;
  571. }
  572. }
  573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  574. public override bool Equals(object other) {
  575. return Equals(other as SummaryMetadata);
  576. }
  577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  578. public bool Equals(SummaryMetadata other) {
  579. if (ReferenceEquals(other, null)) {
  580. return false;
  581. }
  582. if (ReferenceEquals(other, this)) {
  583. return true;
  584. }
  585. if (!object.Equals(PluginData, other.PluginData)) return false;
  586. if (DisplayName != other.DisplayName) return false;
  587. if (SummaryDescription != other.SummaryDescription) return false;
  588. if (DataClass != other.DataClass) return false;
  589. return Equals(_unknownFields, other._unknownFields);
  590. }
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  592. public override int GetHashCode() {
  593. int hash = 1;
  594. if (pluginData_ != null) hash ^= PluginData.GetHashCode();
  595. if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode();
  596. if (SummaryDescription.Length != 0) hash ^= SummaryDescription.GetHashCode();
  597. if (DataClass != global::Tensorflow.DataClass.Unknown) hash ^= DataClass.GetHashCode();
  598. if (_unknownFields != null) {
  599. hash ^= _unknownFields.GetHashCode();
  600. }
  601. return hash;
  602. }
  603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  604. public override string ToString() {
  605. return pb::JsonFormatter.ToDiagnosticString(this);
  606. }
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  608. public void WriteTo(pb::CodedOutputStream output) {
  609. if (pluginData_ != null) {
  610. output.WriteRawTag(10);
  611. output.WriteMessage(PluginData);
  612. }
  613. if (DisplayName.Length != 0) {
  614. output.WriteRawTag(18);
  615. output.WriteString(DisplayName);
  616. }
  617. if (SummaryDescription.Length != 0) {
  618. output.WriteRawTag(26);
  619. output.WriteString(SummaryDescription);
  620. }
  621. if (DataClass != global::Tensorflow.DataClass.Unknown) {
  622. output.WriteRawTag(32);
  623. output.WriteEnum((int) DataClass);
  624. }
  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 (pluginData_ != null) {
  633. size += 1 + pb::CodedOutputStream.ComputeMessageSize(PluginData);
  634. }
  635. if (DisplayName.Length != 0) {
  636. size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName);
  637. }
  638. if (SummaryDescription.Length != 0) {
  639. size += 1 + pb::CodedOutputStream.ComputeStringSize(SummaryDescription);
  640. }
  641. if (DataClass != global::Tensorflow.DataClass.Unknown) {
  642. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DataClass);
  643. }
  644. if (_unknownFields != null) {
  645. size += _unknownFields.CalculateSize();
  646. }
  647. return size;
  648. }
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  650. public void MergeFrom(SummaryMetadata other) {
  651. if (other == null) {
  652. return;
  653. }
  654. if (other.pluginData_ != null) {
  655. if (pluginData_ == null) {
  656. PluginData = new global::Tensorflow.SummaryMetadata.Types.PluginData();
  657. }
  658. PluginData.MergeFrom(other.PluginData);
  659. }
  660. if (other.DisplayName.Length != 0) {
  661. DisplayName = other.DisplayName;
  662. }
  663. if (other.SummaryDescription.Length != 0) {
  664. SummaryDescription = other.SummaryDescription;
  665. }
  666. if (other.DataClass != global::Tensorflow.DataClass.Unknown) {
  667. DataClass = other.DataClass;
  668. }
  669. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  670. }
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  672. public void MergeFrom(pb::CodedInputStream input) {
  673. uint tag;
  674. while ((tag = input.ReadTag()) != 0) {
  675. switch(tag) {
  676. default:
  677. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  678. break;
  679. case 10: {
  680. if (pluginData_ == null) {
  681. PluginData = new global::Tensorflow.SummaryMetadata.Types.PluginData();
  682. }
  683. input.ReadMessage(PluginData);
  684. break;
  685. }
  686. case 18: {
  687. DisplayName = input.ReadString();
  688. break;
  689. }
  690. case 26: {
  691. SummaryDescription = input.ReadString();
  692. break;
  693. }
  694. case 32: {
  695. DataClass = (global::Tensorflow.DataClass) input.ReadEnum();
  696. break;
  697. }
  698. }
  699. }
  700. }
  701. #region Nested types
  702. /// <summary>Container for nested types declared in the SummaryMetadata message type.</summary>
  703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  704. public static partial class Types {
  705. public sealed partial class PluginData : pb::IMessage<PluginData> {
  706. private static readonly pb::MessageParser<PluginData> _parser = new pb::MessageParser<PluginData>(() => new PluginData());
  707. private pb::UnknownFieldSet _unknownFields;
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  709. public static pb::MessageParser<PluginData> Parser { get { return _parser; } }
  710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  711. public static pbr::MessageDescriptor Descriptor {
  712. get { return global::Tensorflow.SummaryMetadata.Descriptor.NestedTypes[0]; }
  713. }
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  715. pbr::MessageDescriptor pb::IMessage.Descriptor {
  716. get { return Descriptor; }
  717. }
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  719. public PluginData() {
  720. OnConstruction();
  721. }
  722. partial void OnConstruction();
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  724. public PluginData(PluginData other) : this() {
  725. pluginName_ = other.pluginName_;
  726. content_ = other.content_;
  727. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  728. }
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  730. public PluginData Clone() {
  731. return new PluginData(this);
  732. }
  733. /// <summary>Field number for the "plugin_name" field.</summary>
  734. public const int PluginNameFieldNumber = 1;
  735. private string pluginName_ = "";
  736. /// <summary>
  737. /// The name of the plugin this data pertains to.
  738. /// </summary>
  739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  740. public string PluginName {
  741. get { return pluginName_; }
  742. set {
  743. pluginName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  744. }
  745. }
  746. /// <summary>Field number for the "content" field.</summary>
  747. public const int ContentFieldNumber = 2;
  748. private pb::ByteString content_ = pb::ByteString.Empty;
  749. /// <summary>
  750. /// The content to store for the plugin. The best practice is for this to be
  751. /// a binary serialized protocol buffer.
  752. /// </summary>
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  754. public pb::ByteString Content {
  755. get { return content_; }
  756. set {
  757. content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  758. }
  759. }
  760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  761. public override bool Equals(object other) {
  762. return Equals(other as PluginData);
  763. }
  764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  765. public bool Equals(PluginData other) {
  766. if (ReferenceEquals(other, null)) {
  767. return false;
  768. }
  769. if (ReferenceEquals(other, this)) {
  770. return true;
  771. }
  772. if (PluginName != other.PluginName) return false;
  773. if (Content != other.Content) return false;
  774. return Equals(_unknownFields, other._unknownFields);
  775. }
  776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  777. public override int GetHashCode() {
  778. int hash = 1;
  779. if (PluginName.Length != 0) hash ^= PluginName.GetHashCode();
  780. if (Content.Length != 0) hash ^= Content.GetHashCode();
  781. if (_unknownFields != null) {
  782. hash ^= _unknownFields.GetHashCode();
  783. }
  784. return hash;
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  787. public override string ToString() {
  788. return pb::JsonFormatter.ToDiagnosticString(this);
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  791. public void WriteTo(pb::CodedOutputStream output) {
  792. if (PluginName.Length != 0) {
  793. output.WriteRawTag(10);
  794. output.WriteString(PluginName);
  795. }
  796. if (Content.Length != 0) {
  797. output.WriteRawTag(18);
  798. output.WriteBytes(Content);
  799. }
  800. if (_unknownFields != null) {
  801. _unknownFields.WriteTo(output);
  802. }
  803. }
  804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  805. public int CalculateSize() {
  806. int size = 0;
  807. if (PluginName.Length != 0) {
  808. size += 1 + pb::CodedOutputStream.ComputeStringSize(PluginName);
  809. }
  810. if (Content.Length != 0) {
  811. size += 1 + pb::CodedOutputStream.ComputeBytesSize(Content);
  812. }
  813. if (_unknownFields != null) {
  814. size += _unknownFields.CalculateSize();
  815. }
  816. return size;
  817. }
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  819. public void MergeFrom(PluginData other) {
  820. if (other == null) {
  821. return;
  822. }
  823. if (other.PluginName.Length != 0) {
  824. PluginName = other.PluginName;
  825. }
  826. if (other.Content.Length != 0) {
  827. Content = other.Content;
  828. }
  829. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  830. }
  831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  832. public void MergeFrom(pb::CodedInputStream input) {
  833. uint tag;
  834. while ((tag = input.ReadTag()) != 0) {
  835. switch(tag) {
  836. default:
  837. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  838. break;
  839. case 10: {
  840. PluginName = input.ReadString();
  841. break;
  842. }
  843. case 18: {
  844. Content = input.ReadBytes();
  845. break;
  846. }
  847. }
  848. }
  849. }
  850. }
  851. }
  852. #endregion
  853. }
  854. /// <summary>
  855. /// A Summary is a set of named values to be displayed by the
  856. /// visualizer.
  857. ///
  858. /// Summaries are produced regularly during training, as controlled by
  859. /// the "summary_interval_secs" attribute of the training operation.
  860. /// Summaries are also produced at the end of an evaluation.
  861. /// </summary>
  862. public sealed partial class Summary : pb::IMessage<Summary> {
  863. private static readonly pb::MessageParser<Summary> _parser = new pb::MessageParser<Summary>(() => new Summary());
  864. private pb::UnknownFieldSet _unknownFields;
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  866. public static pb::MessageParser<Summary> Parser { get { return _parser; } }
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  868. public static pbr::MessageDescriptor Descriptor {
  869. get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[3]; }
  870. }
  871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  872. pbr::MessageDescriptor pb::IMessage.Descriptor {
  873. get { return Descriptor; }
  874. }
  875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  876. public Summary() {
  877. OnConstruction();
  878. }
  879. partial void OnConstruction();
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  881. public Summary(Summary other) : this() {
  882. value_ = other.value_.Clone();
  883. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  884. }
  885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  886. public Summary Clone() {
  887. return new Summary(this);
  888. }
  889. /// <summary>Field number for the "value" field.</summary>
  890. public const int ValueFieldNumber = 1;
  891. private static readonly pb::FieldCodec<global::Tensorflow.Summary.Types.Value> _repeated_value_codec
  892. = pb::FieldCodec.ForMessage(10, global::Tensorflow.Summary.Types.Value.Parser);
  893. private readonly pbc::RepeatedField<global::Tensorflow.Summary.Types.Value> value_ = new pbc::RepeatedField<global::Tensorflow.Summary.Types.Value>();
  894. /// <summary>
  895. /// Set of values for the summary.
  896. /// </summary>
  897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  898. public pbc::RepeatedField<global::Tensorflow.Summary.Types.Value> Value {
  899. get { return value_; }
  900. }
  901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  902. public override bool Equals(object other) {
  903. return Equals(other as Summary);
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  906. public bool Equals(Summary other) {
  907. if (ReferenceEquals(other, null)) {
  908. return false;
  909. }
  910. if (ReferenceEquals(other, this)) {
  911. return true;
  912. }
  913. if(!value_.Equals(other.value_)) return false;
  914. return Equals(_unknownFields, other._unknownFields);
  915. }
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  917. public override int GetHashCode() {
  918. int hash = 1;
  919. hash ^= value_.GetHashCode();
  920. if (_unknownFields != null) {
  921. hash ^= _unknownFields.GetHashCode();
  922. }
  923. return hash;
  924. }
  925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  926. public override string ToString() {
  927. return pb::JsonFormatter.ToDiagnosticString(this);
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  930. public void WriteTo(pb::CodedOutputStream output) {
  931. value_.WriteTo(output, _repeated_value_codec);
  932. if (_unknownFields != null) {
  933. _unknownFields.WriteTo(output);
  934. }
  935. }
  936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  937. public int CalculateSize() {
  938. int size = 0;
  939. size += value_.CalculateSize(_repeated_value_codec);
  940. if (_unknownFields != null) {
  941. size += _unknownFields.CalculateSize();
  942. }
  943. return size;
  944. }
  945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  946. public void MergeFrom(Summary other) {
  947. if (other == null) {
  948. return;
  949. }
  950. value_.Add(other.value_);
  951. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  952. }
  953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  954. public void MergeFrom(pb::CodedInputStream input) {
  955. uint tag;
  956. while ((tag = input.ReadTag()) != 0) {
  957. switch(tag) {
  958. default:
  959. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  960. break;
  961. case 10: {
  962. value_.AddEntriesFrom(input, _repeated_value_codec);
  963. break;
  964. }
  965. }
  966. }
  967. }
  968. #region Nested types
  969. /// <summary>Container for nested types declared in the Summary message type.</summary>
  970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  971. public static partial class Types {
  972. public sealed partial class Image : pb::IMessage<Image> {
  973. private static readonly pb::MessageParser<Image> _parser = new pb::MessageParser<Image>(() => new Image());
  974. private pb::UnknownFieldSet _unknownFields;
  975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  976. public static pb::MessageParser<Image> Parser { get { return _parser; } }
  977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  978. public static pbr::MessageDescriptor Descriptor {
  979. get { return global::Tensorflow.Summary.Descriptor.NestedTypes[0]; }
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  982. pbr::MessageDescriptor pb::IMessage.Descriptor {
  983. get { return Descriptor; }
  984. }
  985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  986. public Image() {
  987. OnConstruction();
  988. }
  989. partial void OnConstruction();
  990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  991. public Image(Image other) : this() {
  992. height_ = other.height_;
  993. width_ = other.width_;
  994. colorspace_ = other.colorspace_;
  995. encodedImageString_ = other.encodedImageString_;
  996. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  997. }
  998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  999. public Image Clone() {
  1000. return new Image(this);
  1001. }
  1002. /// <summary>Field number for the "height" field.</summary>
  1003. public const int HeightFieldNumber = 1;
  1004. private int height_;
  1005. /// <summary>
  1006. /// Dimensions of the image.
  1007. /// </summary>
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1009. public int Height {
  1010. get { return height_; }
  1011. set {
  1012. height_ = value;
  1013. }
  1014. }
  1015. /// <summary>Field number for the "width" field.</summary>
  1016. public const int WidthFieldNumber = 2;
  1017. private int width_;
  1018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1019. public int Width {
  1020. get { return width_; }
  1021. set {
  1022. width_ = value;
  1023. }
  1024. }
  1025. /// <summary>Field number for the "colorspace" field.</summary>
  1026. public const int ColorspaceFieldNumber = 3;
  1027. private int colorspace_;
  1028. /// <summary>
  1029. /// Valid colorspace values are
  1030. /// 1 - grayscale
  1031. /// 2 - grayscale + alpha
  1032. /// 3 - RGB
  1033. /// 4 - RGBA
  1034. /// 5 - DIGITAL_YUV
  1035. /// 6 - BGRA
  1036. /// </summary>
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1038. public int Colorspace {
  1039. get { return colorspace_; }
  1040. set {
  1041. colorspace_ = value;
  1042. }
  1043. }
  1044. /// <summary>Field number for the "encoded_image_string" field.</summary>
  1045. public const int EncodedImageStringFieldNumber = 4;
  1046. private pb::ByteString encodedImageString_ = pb::ByteString.Empty;
  1047. /// <summary>
  1048. /// Image data in encoded format. All image formats supported by
  1049. /// image_codec::CoderUtil can be stored here.
  1050. /// </summary>
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1052. public pb::ByteString EncodedImageString {
  1053. get { return encodedImageString_; }
  1054. set {
  1055. encodedImageString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1056. }
  1057. }
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1059. public override bool Equals(object other) {
  1060. return Equals(other as Image);
  1061. }
  1062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1063. public bool Equals(Image other) {
  1064. if (ReferenceEquals(other, null)) {
  1065. return false;
  1066. }
  1067. if (ReferenceEquals(other, this)) {
  1068. return true;
  1069. }
  1070. if (Height != other.Height) return false;
  1071. if (Width != other.Width) return false;
  1072. if (Colorspace != other.Colorspace) return false;
  1073. if (EncodedImageString != other.EncodedImageString) return false;
  1074. return Equals(_unknownFields, other._unknownFields);
  1075. }
  1076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1077. public override int GetHashCode() {
  1078. int hash = 1;
  1079. if (Height != 0) hash ^= Height.GetHashCode();
  1080. if (Width != 0) hash ^= Width.GetHashCode();
  1081. if (Colorspace != 0) hash ^= Colorspace.GetHashCode();
  1082. if (EncodedImageString.Length != 0) hash ^= EncodedImageString.GetHashCode();
  1083. if (_unknownFields != null) {
  1084. hash ^= _unknownFields.GetHashCode();
  1085. }
  1086. return hash;
  1087. }
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1089. public override string ToString() {
  1090. return pb::JsonFormatter.ToDiagnosticString(this);
  1091. }
  1092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1093. public void WriteTo(pb::CodedOutputStream output) {
  1094. if (Height != 0) {
  1095. output.WriteRawTag(8);
  1096. output.WriteInt32(Height);
  1097. }
  1098. if (Width != 0) {
  1099. output.WriteRawTag(16);
  1100. output.WriteInt32(Width);
  1101. }
  1102. if (Colorspace != 0) {
  1103. output.WriteRawTag(24);
  1104. output.WriteInt32(Colorspace);
  1105. }
  1106. if (EncodedImageString.Length != 0) {
  1107. output.WriteRawTag(34);
  1108. output.WriteBytes(EncodedImageString);
  1109. }
  1110. if (_unknownFields != null) {
  1111. _unknownFields.WriteTo(output);
  1112. }
  1113. }
  1114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1115. public int CalculateSize() {
  1116. int size = 0;
  1117. if (Height != 0) {
  1118. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Height);
  1119. }
  1120. if (Width != 0) {
  1121. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Width);
  1122. }
  1123. if (Colorspace != 0) {
  1124. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Colorspace);
  1125. }
  1126. if (EncodedImageString.Length != 0) {
  1127. size += 1 + pb::CodedOutputStream.ComputeBytesSize(EncodedImageString);
  1128. }
  1129. if (_unknownFields != null) {
  1130. size += _unknownFields.CalculateSize();
  1131. }
  1132. return size;
  1133. }
  1134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1135. public void MergeFrom(Image other) {
  1136. if (other == null) {
  1137. return;
  1138. }
  1139. if (other.Height != 0) {
  1140. Height = other.Height;
  1141. }
  1142. if (other.Width != 0) {
  1143. Width = other.Width;
  1144. }
  1145. if (other.Colorspace != 0) {
  1146. Colorspace = other.Colorspace;
  1147. }
  1148. if (other.EncodedImageString.Length != 0) {
  1149. EncodedImageString = other.EncodedImageString;
  1150. }
  1151. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1152. }
  1153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1154. public void MergeFrom(pb::CodedInputStream input) {
  1155. uint tag;
  1156. while ((tag = input.ReadTag()) != 0) {
  1157. switch(tag) {
  1158. default:
  1159. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1160. break;
  1161. case 8: {
  1162. Height = input.ReadInt32();
  1163. break;
  1164. }
  1165. case 16: {
  1166. Width = input.ReadInt32();
  1167. break;
  1168. }
  1169. case 24: {
  1170. Colorspace = input.ReadInt32();
  1171. break;
  1172. }
  1173. case 34: {
  1174. EncodedImageString = input.ReadBytes();
  1175. break;
  1176. }
  1177. }
  1178. }
  1179. }
  1180. }
  1181. public sealed partial class Audio : pb::IMessage<Audio> {
  1182. private static readonly pb::MessageParser<Audio> _parser = new pb::MessageParser<Audio>(() => new Audio());
  1183. private pb::UnknownFieldSet _unknownFields;
  1184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1185. public static pb::MessageParser<Audio> Parser { get { return _parser; } }
  1186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1187. public static pbr::MessageDescriptor Descriptor {
  1188. get { return global::Tensorflow.Summary.Descriptor.NestedTypes[1]; }
  1189. }
  1190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1191. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1192. get { return Descriptor; }
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1195. public Audio() {
  1196. OnConstruction();
  1197. }
  1198. partial void OnConstruction();
  1199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1200. public Audio(Audio other) : this() {
  1201. sampleRate_ = other.sampleRate_;
  1202. numChannels_ = other.numChannels_;
  1203. lengthFrames_ = other.lengthFrames_;
  1204. encodedAudioString_ = other.encodedAudioString_;
  1205. contentType_ = other.contentType_;
  1206. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1209. public Audio Clone() {
  1210. return new Audio(this);
  1211. }
  1212. /// <summary>Field number for the "sample_rate" field.</summary>
  1213. public const int SampleRateFieldNumber = 1;
  1214. private float sampleRate_;
  1215. /// <summary>
  1216. /// Sample rate of the audio in Hz.
  1217. /// </summary>
  1218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1219. public float SampleRate {
  1220. get { return sampleRate_; }
  1221. set {
  1222. sampleRate_ = value;
  1223. }
  1224. }
  1225. /// <summary>Field number for the "num_channels" field.</summary>
  1226. public const int NumChannelsFieldNumber = 2;
  1227. private long numChannels_;
  1228. /// <summary>
  1229. /// Number of channels of audio.
  1230. /// </summary>
  1231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1232. public long NumChannels {
  1233. get { return numChannels_; }
  1234. set {
  1235. numChannels_ = value;
  1236. }
  1237. }
  1238. /// <summary>Field number for the "length_frames" field.</summary>
  1239. public const int LengthFramesFieldNumber = 3;
  1240. private long lengthFrames_;
  1241. /// <summary>
  1242. /// Length of the audio in frames (samples per channel).
  1243. /// </summary>
  1244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1245. public long LengthFrames {
  1246. get { return lengthFrames_; }
  1247. set {
  1248. lengthFrames_ = value;
  1249. }
  1250. }
  1251. /// <summary>Field number for the "encoded_audio_string" field.</summary>
  1252. public const int EncodedAudioStringFieldNumber = 4;
  1253. private pb::ByteString encodedAudioString_ = pb::ByteString.Empty;
  1254. /// <summary>
  1255. /// Encoded audio data and its associated RFC 2045 content type (e.g.
  1256. /// "audio/wav").
  1257. /// </summary>
  1258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1259. public pb::ByteString EncodedAudioString {
  1260. get { return encodedAudioString_; }
  1261. set {
  1262. encodedAudioString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1263. }
  1264. }
  1265. /// <summary>Field number for the "content_type" field.</summary>
  1266. public const int ContentTypeFieldNumber = 5;
  1267. private string contentType_ = "";
  1268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1269. public string ContentType {
  1270. get { return contentType_; }
  1271. set {
  1272. contentType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1273. }
  1274. }
  1275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1276. public override bool Equals(object other) {
  1277. return Equals(other as Audio);
  1278. }
  1279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1280. public bool Equals(Audio other) {
  1281. if (ReferenceEquals(other, null)) {
  1282. return false;
  1283. }
  1284. if (ReferenceEquals(other, this)) {
  1285. return true;
  1286. }
  1287. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SampleRate, other.SampleRate)) return false;
  1288. if (NumChannels != other.NumChannels) return false;
  1289. if (LengthFrames != other.LengthFrames) return false;
  1290. if (EncodedAudioString != other.EncodedAudioString) return false;
  1291. if (ContentType != other.ContentType) return false;
  1292. return Equals(_unknownFields, other._unknownFields);
  1293. }
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1295. public override int GetHashCode() {
  1296. int hash = 1;
  1297. if (SampleRate != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SampleRate);
  1298. if (NumChannels != 0L) hash ^= NumChannels.GetHashCode();
  1299. if (LengthFrames != 0L) hash ^= LengthFrames.GetHashCode();
  1300. if (EncodedAudioString.Length != 0) hash ^= EncodedAudioString.GetHashCode();
  1301. if (ContentType.Length != 0) hash ^= ContentType.GetHashCode();
  1302. if (_unknownFields != null) {
  1303. hash ^= _unknownFields.GetHashCode();
  1304. }
  1305. return hash;
  1306. }
  1307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1308. public override string ToString() {
  1309. return pb::JsonFormatter.ToDiagnosticString(this);
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1312. public void WriteTo(pb::CodedOutputStream output) {
  1313. if (SampleRate != 0F) {
  1314. output.WriteRawTag(13);
  1315. output.WriteFloat(SampleRate);
  1316. }
  1317. if (NumChannels != 0L) {
  1318. output.WriteRawTag(16);
  1319. output.WriteInt64(NumChannels);
  1320. }
  1321. if (LengthFrames != 0L) {
  1322. output.WriteRawTag(24);
  1323. output.WriteInt64(LengthFrames);
  1324. }
  1325. if (EncodedAudioString.Length != 0) {
  1326. output.WriteRawTag(34);
  1327. output.WriteBytes(EncodedAudioString);
  1328. }
  1329. if (ContentType.Length != 0) {
  1330. output.WriteRawTag(42);
  1331. output.WriteString(ContentType);
  1332. }
  1333. if (_unknownFields != null) {
  1334. _unknownFields.WriteTo(output);
  1335. }
  1336. }
  1337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1338. public int CalculateSize() {
  1339. int size = 0;
  1340. if (SampleRate != 0F) {
  1341. size += 1 + 4;
  1342. }
  1343. if (NumChannels != 0L) {
  1344. size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumChannels);
  1345. }
  1346. if (LengthFrames != 0L) {
  1347. size += 1 + pb::CodedOutputStream.ComputeInt64Size(LengthFrames);
  1348. }
  1349. if (EncodedAudioString.Length != 0) {
  1350. size += 1 + pb::CodedOutputStream.ComputeBytesSize(EncodedAudioString);
  1351. }
  1352. if (ContentType.Length != 0) {
  1353. size += 1 + pb::CodedOutputStream.ComputeStringSize(ContentType);
  1354. }
  1355. if (_unknownFields != null) {
  1356. size += _unknownFields.CalculateSize();
  1357. }
  1358. return size;
  1359. }
  1360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1361. public void MergeFrom(Audio other) {
  1362. if (other == null) {
  1363. return;
  1364. }
  1365. if (other.SampleRate != 0F) {
  1366. SampleRate = other.SampleRate;
  1367. }
  1368. if (other.NumChannels != 0L) {
  1369. NumChannels = other.NumChannels;
  1370. }
  1371. if (other.LengthFrames != 0L) {
  1372. LengthFrames = other.LengthFrames;
  1373. }
  1374. if (other.EncodedAudioString.Length != 0) {
  1375. EncodedAudioString = other.EncodedAudioString;
  1376. }
  1377. if (other.ContentType.Length != 0) {
  1378. ContentType = other.ContentType;
  1379. }
  1380. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1381. }
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1383. public void MergeFrom(pb::CodedInputStream input) {
  1384. uint tag;
  1385. while ((tag = input.ReadTag()) != 0) {
  1386. switch(tag) {
  1387. default:
  1388. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1389. break;
  1390. case 13: {
  1391. SampleRate = input.ReadFloat();
  1392. break;
  1393. }
  1394. case 16: {
  1395. NumChannels = input.ReadInt64();
  1396. break;
  1397. }
  1398. case 24: {
  1399. LengthFrames = input.ReadInt64();
  1400. break;
  1401. }
  1402. case 34: {
  1403. EncodedAudioString = input.ReadBytes();
  1404. break;
  1405. }
  1406. case 42: {
  1407. ContentType = input.ReadString();
  1408. break;
  1409. }
  1410. }
  1411. }
  1412. }
  1413. }
  1414. public sealed partial class Value : pb::IMessage<Value> {
  1415. private static readonly pb::MessageParser<Value> _parser = new pb::MessageParser<Value>(() => new Value());
  1416. private pb::UnknownFieldSet _unknownFields;
  1417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1418. public static pb::MessageParser<Value> Parser { get { return _parser; } }
  1419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1420. public static pbr::MessageDescriptor Descriptor {
  1421. get { return global::Tensorflow.Summary.Descriptor.NestedTypes[2]; }
  1422. }
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1424. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1425. get { return Descriptor; }
  1426. }
  1427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1428. public Value() {
  1429. OnConstruction();
  1430. }
  1431. partial void OnConstruction();
  1432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1433. public Value(Value other) : this() {
  1434. nodeName_ = other.nodeName_;
  1435. tag_ = other.tag_;
  1436. metadata_ = other.metadata_ != null ? other.metadata_.Clone() : null;
  1437. switch (other.ValueCase) {
  1438. case ValueOneofCase.SimpleValue:
  1439. SimpleValue = other.SimpleValue;
  1440. break;
  1441. case ValueOneofCase.ObsoleteOldStyleHistogram:
  1442. ObsoleteOldStyleHistogram = other.ObsoleteOldStyleHistogram;
  1443. break;
  1444. case ValueOneofCase.Image:
  1445. Image = other.Image.Clone();
  1446. break;
  1447. case ValueOneofCase.Histo:
  1448. Histo = other.Histo.Clone();
  1449. break;
  1450. case ValueOneofCase.Audio:
  1451. Audio = other.Audio.Clone();
  1452. break;
  1453. case ValueOneofCase.Tensor:
  1454. Tensor = other.Tensor.Clone();
  1455. break;
  1456. }
  1457. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1458. }
  1459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1460. public Value Clone() {
  1461. return new Value(this);
  1462. }
  1463. /// <summary>Field number for the "node_name" field.</summary>
  1464. public const int NodeNameFieldNumber = 7;
  1465. private string nodeName_ = "";
  1466. /// <summary>
  1467. /// This field is deprecated and will not be set.
  1468. /// </summary>
  1469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1470. public string NodeName {
  1471. get { return nodeName_; }
  1472. set {
  1473. nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1474. }
  1475. }
  1476. /// <summary>Field number for the "tag" field.</summary>
  1477. public const int TagFieldNumber = 1;
  1478. private string tag_ = "";
  1479. /// <summary>
  1480. /// Tag name for the data. Used by TensorBoard plugins to organize data. Tags
  1481. /// are often organized by scope (which contains slashes to convey
  1482. /// hierarchy). For example: foo/bar/0
  1483. /// </summary>
  1484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1485. public string Tag {
  1486. get { return tag_; }
  1487. set {
  1488. tag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1489. }
  1490. }
  1491. /// <summary>Field number for the "metadata" field.</summary>
  1492. public const int MetadataFieldNumber = 9;
  1493. private global::Tensorflow.SummaryMetadata metadata_;
  1494. /// <summary>
  1495. /// Contains metadata on the summary value such as which plugins may use it.
  1496. /// Take note that many summary values may lack a metadata field. This is
  1497. /// because the FileWriter only keeps a metadata object on the first summary
  1498. /// value with a certain tag for each tag. TensorBoard then remembers which
  1499. /// tags are associated with which plugins. This saves space.
  1500. /// </summary>
  1501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1502. public global::Tensorflow.SummaryMetadata Metadata {
  1503. get { return metadata_; }
  1504. set {
  1505. metadata_ = value;
  1506. }
  1507. }
  1508. /// <summary>Field number for the "simple_value" field.</summary>
  1509. public const int SimpleValueFieldNumber = 2;
  1510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1511. public float SimpleValue {
  1512. get { return valueCase_ == ValueOneofCase.SimpleValue ? (float) value_ : 0F; }
  1513. set {
  1514. value_ = value;
  1515. valueCase_ = ValueOneofCase.SimpleValue;
  1516. }
  1517. }
  1518. /// <summary>Field number for the "obsolete_old_style_histogram" field.</summary>
  1519. public const int ObsoleteOldStyleHistogramFieldNumber = 3;
  1520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1521. public pb::ByteString ObsoleteOldStyleHistogram {
  1522. get { return valueCase_ == ValueOneofCase.ObsoleteOldStyleHistogram ? (pb::ByteString) value_ : pb::ByteString.Empty; }
  1523. set {
  1524. value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1525. valueCase_ = ValueOneofCase.ObsoleteOldStyleHistogram;
  1526. }
  1527. }
  1528. /// <summary>Field number for the "image" field.</summary>
  1529. public const int ImageFieldNumber = 4;
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1531. public global::Tensorflow.Summary.Types.Image Image {
  1532. get { return valueCase_ == ValueOneofCase.Image ? (global::Tensorflow.Summary.Types.Image) value_ : null; }
  1533. set {
  1534. value_ = value;
  1535. valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Image;
  1536. }
  1537. }
  1538. /// <summary>Field number for the "histo" field.</summary>
  1539. public const int HistoFieldNumber = 5;
  1540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1541. public global::Tensorflow.HistogramProto Histo {
  1542. get { return valueCase_ == ValueOneofCase.Histo ? (global::Tensorflow.HistogramProto) value_ : null; }
  1543. set {
  1544. value_ = value;
  1545. valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Histo;
  1546. }
  1547. }
  1548. /// <summary>Field number for the "audio" field.</summary>
  1549. public const int AudioFieldNumber = 6;
  1550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1551. public global::Tensorflow.Summary.Types.Audio Audio {
  1552. get { return valueCase_ == ValueOneofCase.Audio ? (global::Tensorflow.Summary.Types.Audio) value_ : null; }
  1553. set {
  1554. value_ = value;
  1555. valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Audio;
  1556. }
  1557. }
  1558. /// <summary>Field number for the "tensor" field.</summary>
  1559. public const int TensorFieldNumber = 8;
  1560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1561. public global::Tensorflow.TensorProto Tensor {
  1562. get { return valueCase_ == ValueOneofCase.Tensor ? (global::Tensorflow.TensorProto) value_ : null; }
  1563. set {
  1564. value_ = value;
  1565. valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Tensor;
  1566. }
  1567. }
  1568. private object value_;
  1569. /// <summary>Enum of possible cases for the "value" oneof.</summary>
  1570. public enum ValueOneofCase {
  1571. None = 0,
  1572. SimpleValue = 2,
  1573. ObsoleteOldStyleHistogram = 3,
  1574. Image = 4,
  1575. Histo = 5,
  1576. Audio = 6,
  1577. Tensor = 8,
  1578. }
  1579. private ValueOneofCase valueCase_ = ValueOneofCase.None;
  1580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1581. public ValueOneofCase ValueCase {
  1582. get { return valueCase_; }
  1583. }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1585. public void ClearValue() {
  1586. valueCase_ = ValueOneofCase.None;
  1587. value_ = null;
  1588. }
  1589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1590. public override bool Equals(object other) {
  1591. return Equals(other as Value);
  1592. }
  1593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1594. public bool Equals(Value other) {
  1595. if (ReferenceEquals(other, null)) {
  1596. return false;
  1597. }
  1598. if (ReferenceEquals(other, this)) {
  1599. return true;
  1600. }
  1601. if (NodeName != other.NodeName) return false;
  1602. if (Tag != other.Tag) return false;
  1603. if (!object.Equals(Metadata, other.Metadata)) return false;
  1604. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SimpleValue, other.SimpleValue)) return false;
  1605. if (ObsoleteOldStyleHistogram != other.ObsoleteOldStyleHistogram) return false;
  1606. if (!object.Equals(Image, other.Image)) return false;
  1607. if (!object.Equals(Histo, other.Histo)) return false;
  1608. if (!object.Equals(Audio, other.Audio)) return false;
  1609. if (!object.Equals(Tensor, other.Tensor)) return false;
  1610. if (ValueCase != other.ValueCase) return false;
  1611. return Equals(_unknownFields, other._unknownFields);
  1612. }
  1613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1614. public override int GetHashCode() {
  1615. int hash = 1;
  1616. if (NodeName.Length != 0) hash ^= NodeName.GetHashCode();
  1617. if (Tag.Length != 0) hash ^= Tag.GetHashCode();
  1618. if (metadata_ != null) hash ^= Metadata.GetHashCode();
  1619. if (valueCase_ == ValueOneofCase.SimpleValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SimpleValue);
  1620. if (valueCase_ == ValueOneofCase.ObsoleteOldStyleHistogram) hash ^= ObsoleteOldStyleHistogram.GetHashCode();
  1621. if (valueCase_ == ValueOneofCase.Image) hash ^= Image.GetHashCode();
  1622. if (valueCase_ == ValueOneofCase.Histo) hash ^= Histo.GetHashCode();
  1623. if (valueCase_ == ValueOneofCase.Audio) hash ^= Audio.GetHashCode();
  1624. if (valueCase_ == ValueOneofCase.Tensor) hash ^= Tensor.GetHashCode();
  1625. hash ^= (int) valueCase_;
  1626. if (_unknownFields != null) {
  1627. hash ^= _unknownFields.GetHashCode();
  1628. }
  1629. return hash;
  1630. }
  1631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1632. public override string ToString() {
  1633. return pb::JsonFormatter.ToDiagnosticString(this);
  1634. }
  1635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1636. public void WriteTo(pb::CodedOutputStream output) {
  1637. if (Tag.Length != 0) {
  1638. output.WriteRawTag(10);
  1639. output.WriteString(Tag);
  1640. }
  1641. if (valueCase_ == ValueOneofCase.SimpleValue) {
  1642. output.WriteRawTag(21);
  1643. output.WriteFloat(SimpleValue);
  1644. }
  1645. if (valueCase_ == ValueOneofCase.ObsoleteOldStyleHistogram) {
  1646. output.WriteRawTag(26);
  1647. output.WriteBytes(ObsoleteOldStyleHistogram);
  1648. }
  1649. if (valueCase_ == ValueOneofCase.Image) {
  1650. output.WriteRawTag(34);
  1651. output.WriteMessage(Image);
  1652. }
  1653. if (valueCase_ == ValueOneofCase.Histo) {
  1654. output.WriteRawTag(42);
  1655. output.WriteMessage(Histo);
  1656. }
  1657. if (valueCase_ == ValueOneofCase.Audio) {
  1658. output.WriteRawTag(50);
  1659. output.WriteMessage(Audio);
  1660. }
  1661. if (NodeName.Length != 0) {
  1662. output.WriteRawTag(58);
  1663. output.WriteString(NodeName);
  1664. }
  1665. if (valueCase_ == ValueOneofCase.Tensor) {
  1666. output.WriteRawTag(66);
  1667. output.WriteMessage(Tensor);
  1668. }
  1669. if (metadata_ != null) {
  1670. output.WriteRawTag(74);
  1671. output.WriteMessage(Metadata);
  1672. }
  1673. if (_unknownFields != null) {
  1674. _unknownFields.WriteTo(output);
  1675. }
  1676. }
  1677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1678. public int CalculateSize() {
  1679. int size = 0;
  1680. if (NodeName.Length != 0) {
  1681. size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName);
  1682. }
  1683. if (Tag.Length != 0) {
  1684. size += 1 + pb::CodedOutputStream.ComputeStringSize(Tag);
  1685. }
  1686. if (metadata_ != null) {
  1687. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metadata);
  1688. }
  1689. if (valueCase_ == ValueOneofCase.SimpleValue) {
  1690. size += 1 + 4;
  1691. }
  1692. if (valueCase_ == ValueOneofCase.ObsoleteOldStyleHistogram) {
  1693. size += 1 + pb::CodedOutputStream.ComputeBytesSize(ObsoleteOldStyleHistogram);
  1694. }
  1695. if (valueCase_ == ValueOneofCase.Image) {
  1696. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Image);
  1697. }
  1698. if (valueCase_ == ValueOneofCase.Histo) {
  1699. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Histo);
  1700. }
  1701. if (valueCase_ == ValueOneofCase.Audio) {
  1702. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Audio);
  1703. }
  1704. if (valueCase_ == ValueOneofCase.Tensor) {
  1705. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tensor);
  1706. }
  1707. if (_unknownFields != null) {
  1708. size += _unknownFields.CalculateSize();
  1709. }
  1710. return size;
  1711. }
  1712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1713. public void MergeFrom(Value other) {
  1714. if (other == null) {
  1715. return;
  1716. }
  1717. if (other.NodeName.Length != 0) {
  1718. NodeName = other.NodeName;
  1719. }
  1720. if (other.Tag.Length != 0) {
  1721. Tag = other.Tag;
  1722. }
  1723. if (other.metadata_ != null) {
  1724. if (metadata_ == null) {
  1725. Metadata = new global::Tensorflow.SummaryMetadata();
  1726. }
  1727. Metadata.MergeFrom(other.Metadata);
  1728. }
  1729. switch (other.ValueCase) {
  1730. case ValueOneofCase.SimpleValue:
  1731. SimpleValue = other.SimpleValue;
  1732. break;
  1733. case ValueOneofCase.ObsoleteOldStyleHistogram:
  1734. ObsoleteOldStyleHistogram = other.ObsoleteOldStyleHistogram;
  1735. break;
  1736. case ValueOneofCase.Image:
  1737. if (Image == null) {
  1738. Image = new global::Tensorflow.Summary.Types.Image();
  1739. }
  1740. Image.MergeFrom(other.Image);
  1741. break;
  1742. case ValueOneofCase.Histo:
  1743. if (Histo == null) {
  1744. Histo = new global::Tensorflow.HistogramProto();
  1745. }
  1746. Histo.MergeFrom(other.Histo);
  1747. break;
  1748. case ValueOneofCase.Audio:
  1749. if (Audio == null) {
  1750. Audio = new global::Tensorflow.Summary.Types.Audio();
  1751. }
  1752. Audio.MergeFrom(other.Audio);
  1753. break;
  1754. case ValueOneofCase.Tensor:
  1755. if (Tensor == null) {
  1756. Tensor = new global::Tensorflow.TensorProto();
  1757. }
  1758. Tensor.MergeFrom(other.Tensor);
  1759. break;
  1760. }
  1761. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1762. }
  1763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1764. public void MergeFrom(pb::CodedInputStream input) {
  1765. uint tag;
  1766. while ((tag = input.ReadTag()) != 0) {
  1767. switch(tag) {
  1768. default:
  1769. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1770. break;
  1771. case 10: {
  1772. Tag = input.ReadString();
  1773. break;
  1774. }
  1775. case 21: {
  1776. SimpleValue = input.ReadFloat();
  1777. break;
  1778. }
  1779. case 26: {
  1780. ObsoleteOldStyleHistogram = input.ReadBytes();
  1781. break;
  1782. }
  1783. case 34: {
  1784. global::Tensorflow.Summary.Types.Image subBuilder = new global::Tensorflow.Summary.Types.Image();
  1785. if (valueCase_ == ValueOneofCase.Image) {
  1786. subBuilder.MergeFrom(Image);
  1787. }
  1788. input.ReadMessage(subBuilder);
  1789. Image = subBuilder;
  1790. break;
  1791. }
  1792. case 42: {
  1793. global::Tensorflow.HistogramProto subBuilder = new global::Tensorflow.HistogramProto();
  1794. if (valueCase_ == ValueOneofCase.Histo) {
  1795. subBuilder.MergeFrom(Histo);
  1796. }
  1797. input.ReadMessage(subBuilder);
  1798. Histo = subBuilder;
  1799. break;
  1800. }
  1801. case 50: {
  1802. global::Tensorflow.Summary.Types.Audio subBuilder = new global::Tensorflow.Summary.Types.Audio();
  1803. if (valueCase_ == ValueOneofCase.Audio) {
  1804. subBuilder.MergeFrom(Audio);
  1805. }
  1806. input.ReadMessage(subBuilder);
  1807. Audio = subBuilder;
  1808. break;
  1809. }
  1810. case 58: {
  1811. NodeName = input.ReadString();
  1812. break;
  1813. }
  1814. case 66: {
  1815. global::Tensorflow.TensorProto subBuilder = new global::Tensorflow.TensorProto();
  1816. if (valueCase_ == ValueOneofCase.Tensor) {
  1817. subBuilder.MergeFrom(Tensor);
  1818. }
  1819. input.ReadMessage(subBuilder);
  1820. Tensor = subBuilder;
  1821. break;
  1822. }
  1823. case 74: {
  1824. if (metadata_ == null) {
  1825. Metadata = new global::Tensorflow.SummaryMetadata();
  1826. }
  1827. input.ReadMessage(Metadata);
  1828. break;
  1829. }
  1830. }
  1831. }
  1832. }
  1833. }
  1834. }
  1835. #endregion
  1836. }
  1837. #endregion
  1838. }
  1839. #endregion Designer generated code