// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/summary.proto // #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Tensorflow { /// Holder for reflection information generated from tensorflow/core/framework/summary.proto public static partial class SummaryReflection { #region Descriptor /// File descriptor for tensorflow/core/framework/summary.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static SummaryReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cid0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL3N1bW1hcnkucHJvdG8SCnRl", "bnNvcmZsb3caJnRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvdGVuc29yLnBy", "b3RvIicKElN1bW1hcnlEZXNjcmlwdGlvbhIRCgl0eXBlX2hpbnQYASABKAki", "hwEKDkhpc3RvZ3JhbVByb3RvEgsKA21pbhgBIAEoARILCgNtYXgYAiABKAES", "CwoDbnVtGAMgASgBEgsKA3N1bRgEIAEoARITCgtzdW1fc3F1YXJlcxgFIAEo", "ARIYCgxidWNrZXRfbGltaXQYBiADKAFCAhABEhIKBmJ1Y2tldBgHIAMoAUIC", "EAEi4AEKD1N1bW1hcnlNZXRhZGF0YRI7CgtwbHVnaW5fZGF0YRgBIAEoCzIm", "LnRlbnNvcmZsb3cuU3VtbWFyeU1ldGFkYXRhLlBsdWdpbkRhdGESFAoMZGlz", "cGxheV9uYW1lGAIgASgJEhsKE3N1bW1hcnlfZGVzY3JpcHRpb24YAyABKAkS", "KQoKZGF0YV9jbGFzcxgEIAEoDjIVLnRlbnNvcmZsb3cuRGF0YUNsYXNzGjIK", "ClBsdWdpbkRhdGESEwoLcGx1Z2luX25hbWUYASABKAkSDwoHY29udGVudBgC", "IAEoDCLeBAoHU3VtbWFyeRIoCgV2YWx1ZRgBIAMoCzIZLnRlbnNvcmZsb3cu", "U3VtbWFyeS5WYWx1ZRpYCgVJbWFnZRIOCgZoZWlnaHQYASABKAUSDQoFd2lk", "dGgYAiABKAUSEgoKY29sb3JzcGFjZRgDIAEoBRIcChRlbmNvZGVkX2ltYWdl", "X3N0cmluZxgEIAEoDBp9CgVBdWRpbxITCgtzYW1wbGVfcmF0ZRgBIAEoAhIU", "CgxudW1fY2hhbm5lbHMYAiABKAMSFQoNbGVuZ3RoX2ZyYW1lcxgDIAEoAxIc", "ChRlbmNvZGVkX2F1ZGlvX3N0cmluZxgEIAEoDBIUCgxjb250ZW50X3R5cGUY", "BSABKAkazwIKBVZhbHVlEhEKCW5vZGVfbmFtZRgHIAEoCRILCgN0YWcYASAB", "KAkSLQoIbWV0YWRhdGEYCSABKAsyGy50ZW5zb3JmbG93LlN1bW1hcnlNZXRh", "ZGF0YRIWCgxzaW1wbGVfdmFsdWUYAiABKAJIABImChxvYnNvbGV0ZV9vbGRf", "c3R5bGVfaGlzdG9ncmFtGAMgASgMSAASKgoFaW1hZ2UYBCABKAsyGS50ZW5z", "b3JmbG93LlN1bW1hcnkuSW1hZ2VIABIrCgVoaXN0bxgFIAEoCzIaLnRlbnNv", "cmZsb3cuSGlzdG9ncmFtUHJvdG9IABIqCgVhdWRpbxgGIAEoCzIZLnRlbnNv", "cmZsb3cuU3VtbWFyeS5BdWRpb0gAEikKBnRlbnNvchgIIAEoCzIXLnRlbnNv", "cmZsb3cuVGVuc29yUHJvdG9IAEIHCgV2YWx1ZSpvCglEYXRhQ2xhc3MSFgoS", "REFUQV9DTEFTU19VTktOT1dOEAASFQoRREFUQV9DTEFTU19TQ0FMQVIQARIV", "ChFEQVRBX0NMQVNTX1RFTlNPUhACEhwKGERBVEFfQ0xBU1NfQkxPQl9TRVFV", "RU5DRRADQn4KGG9yZy50ZW5zb3JmbG93LmZyYW1ld29ya0INU3VtbWFyeVBy", "b3Rvc1ABWk5naXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90ZW5z", "b3JmbG93L2dvL2NvcmUvZnJhbWV3b3JrL3N1bW1hcnlfZ29fcHJvdG/4AQFi", "BnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tensorflow.TensorReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tensorflow.DataClass), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SummaryDescription), global::Tensorflow.SummaryDescription.Parser, new[]{ "TypeHint" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.HistogramProto), global::Tensorflow.HistogramProto.Parser, new[]{ "Min", "Max", "Num", "Sum", "SumSquares", "BucketLimit", "Bucket" }, null, null, null, null), 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)}), 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), 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), 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)}) })); } #endregion } #region Enums public enum DataClass { /// /// Unknown data class, used (implicitly) for legacy data. Will not be /// processed by data ingestion pipelines. /// [pbr::OriginalName("DATA_CLASS_UNKNOWN")] Unknown = 0, /// /// Scalar time series. Each `Value` for the corresponding tag must have /// `tensor` set to a rank-0 tensor of type `DT_FLOAT` (float32). /// [pbr::OriginalName("DATA_CLASS_SCALAR")] Scalar = 1, /// /// Tensor time series. Each `Value` for the corresponding tag must have /// `tensor` set. The tensor value is arbitrary, but should be small to /// accommodate direct storage in database backends: an upper bound of a few /// kilobytes is a reasonable rule of thumb. /// [pbr::OriginalName("DATA_CLASS_TENSOR")] Tensor = 2, /// /// Blob sequence time series. Each `Value` for the corresponding tag must /// have `tensor` set to a rank-1 tensor of bytestring dtype. /// [pbr::OriginalName("DATA_CLASS_BLOB_SEQUENCE")] BlobSequence = 3, } #endregion #region Messages /// /// Metadata associated with a series of Summary data /// public sealed partial class SummaryDescription : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SummaryDescription()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SummaryDescription() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SummaryDescription(SummaryDescription other) : this() { typeHint_ = other.typeHint_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SummaryDescription Clone() { return new SummaryDescription(this); } /// Field number for the "type_hint" field. public const int TypeHintFieldNumber = 1; private string typeHint_ = ""; /// /// Hint on how plugins should process the data in this series. /// Supported values include "scalar", "histogram", "image", "audio" /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string TypeHint { get { return typeHint_; } set { typeHint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SummaryDescription); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SummaryDescription other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (TypeHint != other.TypeHint) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (TypeHint.Length != 0) hash ^= TypeHint.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (TypeHint.Length != 0) { output.WriteRawTag(10); output.WriteString(TypeHint); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (TypeHint.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeHint); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SummaryDescription other) { if (other == null) { return; } if (other.TypeHint.Length != 0) { TypeHint = other.TypeHint; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { TypeHint = input.ReadString(); break; } } } } } /// /// Serialization format for histogram module in /// core/lib/histogram/histogram.h /// public sealed partial class HistogramProto : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HistogramProto()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HistogramProto() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HistogramProto(HistogramProto other) : this() { min_ = other.min_; max_ = other.max_; num_ = other.num_; sum_ = other.sum_; sumSquares_ = other.sumSquares_; bucketLimit_ = other.bucketLimit_.Clone(); bucket_ = other.bucket_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HistogramProto Clone() { return new HistogramProto(this); } /// Field number for the "min" field. public const int MinFieldNumber = 1; private double min_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Min { get { return min_; } set { min_ = value; } } /// Field number for the "max" field. public const int MaxFieldNumber = 2; private double max_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Max { get { return max_; } set { max_ = value; } } /// Field number for the "num" field. public const int NumFieldNumber = 3; private double num_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Num { get { return num_; } set { num_ = value; } } /// Field number for the "sum" field. public const int SumFieldNumber = 4; private double sum_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Sum { get { return sum_; } set { sum_ = value; } } /// Field number for the "sum_squares" field. public const int SumSquaresFieldNumber = 5; private double sumSquares_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double SumSquares { get { return sumSquares_; } set { sumSquares_ = value; } } /// Field number for the "bucket_limit" field. public const int BucketLimitFieldNumber = 6; private static readonly pb::FieldCodec _repeated_bucketLimit_codec = pb::FieldCodec.ForDouble(50); private readonly pbc::RepeatedField bucketLimit_ = new pbc::RepeatedField(); /// /// Parallel arrays encoding the bucket boundaries and the bucket values. /// bucket(i) is the count for the bucket i. The range for /// a bucket is: /// i == 0: -DBL_MAX .. bucket_limit(0) /// i != 0: bucket_limit(i-1) .. bucket_limit(i) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField BucketLimit { get { return bucketLimit_; } } /// Field number for the "bucket" field. public const int BucketFieldNumber = 7; private static readonly pb::FieldCodec _repeated_bucket_codec = pb::FieldCodec.ForDouble(58); private readonly pbc::RepeatedField bucket_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Bucket { get { return bucket_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as HistogramProto); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(HistogramProto other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Min, other.Min)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Max, other.Max)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Num, other.Num)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SumSquares, other.SumSquares)) return false; if(!bucketLimit_.Equals(other.bucketLimit_)) return false; if(!bucket_.Equals(other.bucket_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Min != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Min); if (Max != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Max); if (Num != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Num); if (Sum != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Sum); if (SumSquares != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SumSquares); hash ^= bucketLimit_.GetHashCode(); hash ^= bucket_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (Min != 0D) { output.WriteRawTag(9); output.WriteDouble(Min); } if (Max != 0D) { output.WriteRawTag(17); output.WriteDouble(Max); } if (Num != 0D) { output.WriteRawTag(25); output.WriteDouble(Num); } if (Sum != 0D) { output.WriteRawTag(33); output.WriteDouble(Sum); } if (SumSquares != 0D) { output.WriteRawTag(41); output.WriteDouble(SumSquares); } bucketLimit_.WriteTo(output, _repeated_bucketLimit_codec); bucket_.WriteTo(output, _repeated_bucket_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Min != 0D) { size += 1 + 8; } if (Max != 0D) { size += 1 + 8; } if (Num != 0D) { size += 1 + 8; } if (Sum != 0D) { size += 1 + 8; } if (SumSquares != 0D) { size += 1 + 8; } size += bucketLimit_.CalculateSize(_repeated_bucketLimit_codec); size += bucket_.CalculateSize(_repeated_bucket_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(HistogramProto other) { if (other == null) { return; } if (other.Min != 0D) { Min = other.Min; } if (other.Max != 0D) { Max = other.Max; } if (other.Num != 0D) { Num = other.Num; } if (other.Sum != 0D) { Sum = other.Sum; } if (other.SumSquares != 0D) { SumSquares = other.SumSquares; } bucketLimit_.Add(other.bucketLimit_); bucket_.Add(other.bucket_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 9: { Min = input.ReadDouble(); break; } case 17: { Max = input.ReadDouble(); break; } case 25: { Num = input.ReadDouble(); break; } case 33: { Sum = input.ReadDouble(); break; } case 41: { SumSquares = input.ReadDouble(); break; } case 50: case 49: { bucketLimit_.AddEntriesFrom(input, _repeated_bucketLimit_codec); break; } case 58: case 57: { bucket_.AddEntriesFrom(input, _repeated_bucket_codec); break; } } } } } /// /// A SummaryMetadata encapsulates information on which plugins are able to make /// use of a certain summary value. /// public sealed partial class SummaryMetadata : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SummaryMetadata()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SummaryMetadata() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SummaryMetadata(SummaryMetadata other) : this() { pluginData_ = other.pluginData_ != null ? other.pluginData_.Clone() : null; displayName_ = other.displayName_; summaryDescription_ = other.summaryDescription_; dataClass_ = other.dataClass_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SummaryMetadata Clone() { return new SummaryMetadata(this); } /// Field number for the "plugin_data" field. public const int PluginDataFieldNumber = 1; private global::Tensorflow.SummaryMetadata.Types.PluginData pluginData_; /// /// Data that associates a summary with a certain plugin. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tensorflow.SummaryMetadata.Types.PluginData PluginData { get { return pluginData_; } set { pluginData_ = value; } } /// Field number for the "display_name" field. public const int DisplayNameFieldNumber = 2; private string displayName_ = ""; /// /// Display name for viewing in TensorBoard. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string DisplayName { get { return displayName_; } set { displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "summary_description" field. public const int SummaryDescriptionFieldNumber = 3; private string summaryDescription_ = ""; /// /// Longform readable description of the summary sequence. Markdown supported. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string SummaryDescription { get { return summaryDescription_; } set { summaryDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "data_class" field. public const int DataClassFieldNumber = 4; private global::Tensorflow.DataClass dataClass_ = global::Tensorflow.DataClass.Unknown; /// /// Class of data stored in this time series. Required for compatibility with /// TensorBoard's generic data facilities (`DataProvider`, et al.). This value /// imposes constraints on the dtype and shape of the corresponding tensor /// values. See `DataClass` docs for details. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tensorflow.DataClass DataClass { get { return dataClass_; } set { dataClass_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SummaryMetadata); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SummaryMetadata other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(PluginData, other.PluginData)) return false; if (DisplayName != other.DisplayName) return false; if (SummaryDescription != other.SummaryDescription) return false; if (DataClass != other.DataClass) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (pluginData_ != null) hash ^= PluginData.GetHashCode(); if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); if (SummaryDescription.Length != 0) hash ^= SummaryDescription.GetHashCode(); if (DataClass != global::Tensorflow.DataClass.Unknown) hash ^= DataClass.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (pluginData_ != null) { output.WriteRawTag(10); output.WriteMessage(PluginData); } if (DisplayName.Length != 0) { output.WriteRawTag(18); output.WriteString(DisplayName); } if (SummaryDescription.Length != 0) { output.WriteRawTag(26); output.WriteString(SummaryDescription); } if (DataClass != global::Tensorflow.DataClass.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) DataClass); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (pluginData_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PluginData); } if (DisplayName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); } if (SummaryDescription.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SummaryDescription); } if (DataClass != global::Tensorflow.DataClass.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DataClass); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SummaryMetadata other) { if (other == null) { return; } if (other.pluginData_ != null) { if (pluginData_ == null) { PluginData = new global::Tensorflow.SummaryMetadata.Types.PluginData(); } PluginData.MergeFrom(other.PluginData); } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } if (other.SummaryDescription.Length != 0) { SummaryDescription = other.SummaryDescription; } if (other.DataClass != global::Tensorflow.DataClass.Unknown) { DataClass = other.DataClass; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (pluginData_ == null) { PluginData = new global::Tensorflow.SummaryMetadata.Types.PluginData(); } input.ReadMessage(PluginData); break; } case 18: { DisplayName = input.ReadString(); break; } case 26: { SummaryDescription = input.ReadString(); break; } case 32: { DataClass = (global::Tensorflow.DataClass) input.ReadEnum(); break; } } } } #region Nested types /// Container for nested types declared in the SummaryMetadata message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { public sealed partial class PluginData : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PluginData()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.SummaryMetadata.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public PluginData() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public PluginData(PluginData other) : this() { pluginName_ = other.pluginName_; content_ = other.content_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public PluginData Clone() { return new PluginData(this); } /// Field number for the "plugin_name" field. public const int PluginNameFieldNumber = 1; private string pluginName_ = ""; /// /// The name of the plugin this data pertains to. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string PluginName { get { return pluginName_; } set { pluginName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "content" field. public const int ContentFieldNumber = 2; private pb::ByteString content_ = pb::ByteString.Empty; /// /// The content to store for the plugin. The best practice is for this to be /// a binary serialized protocol buffer. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString Content { get { return content_; } set { content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as PluginData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(PluginData other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (PluginName != other.PluginName) return false; if (Content != other.Content) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (PluginName.Length != 0) hash ^= PluginName.GetHashCode(); if (Content.Length != 0) hash ^= Content.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (PluginName.Length != 0) { output.WriteRawTag(10); output.WriteString(PluginName); } if (Content.Length != 0) { output.WriteRawTag(18); output.WriteBytes(Content); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (PluginName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PluginName); } if (Content.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Content); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(PluginData other) { if (other == null) { return; } if (other.PluginName.Length != 0) { PluginName = other.PluginName; } if (other.Content.Length != 0) { Content = other.Content; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { PluginName = input.ReadString(); break; } case 18: { Content = input.ReadBytes(); break; } } } } } } #endregion } /// /// A Summary is a set of named values to be displayed by the /// visualizer. /// /// Summaries are produced regularly during training, as controlled by /// the "summary_interval_secs" attribute of the training operation. /// Summaries are also produced at the end of an evaluation. /// public sealed partial class Summary : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Summary()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Summary() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Summary(Summary other) : this() { value_ = other.value_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Summary Clone() { return new Summary(this); } /// Field number for the "value" field. public const int ValueFieldNumber = 1; private static readonly pb::FieldCodec _repeated_value_codec = pb::FieldCodec.ForMessage(10, global::Tensorflow.Summary.Types.Value.Parser); private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); /// /// Set of values for the summary. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Value { get { return value_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Summary); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Summary other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!value_.Equals(other.value_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= value_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { value_.WriteTo(output, _repeated_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += value_.CalculateSize(_repeated_value_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Summary other) { if (other == null) { return; } value_.Add(other.value_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { value_.AddEntriesFrom(input, _repeated_value_codec); break; } } } } #region Nested types /// Container for nested types declared in the Summary message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { public sealed partial class Image : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Image()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.Summary.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Image() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Image(Image other) : this() { height_ = other.height_; width_ = other.width_; colorspace_ = other.colorspace_; encodedImageString_ = other.encodedImageString_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Image Clone() { return new Image(this); } /// Field number for the "height" field. public const int HeightFieldNumber = 1; private int height_; /// /// Dimensions of the image. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Height { get { return height_; } set { height_ = value; } } /// Field number for the "width" field. public const int WidthFieldNumber = 2; private int width_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Width { get { return width_; } set { width_ = value; } } /// Field number for the "colorspace" field. public const int ColorspaceFieldNumber = 3; private int colorspace_; /// /// Valid colorspace values are /// 1 - grayscale /// 2 - grayscale + alpha /// 3 - RGB /// 4 - RGBA /// 5 - DIGITAL_YUV /// 6 - BGRA /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Colorspace { get { return colorspace_; } set { colorspace_ = value; } } /// Field number for the "encoded_image_string" field. public const int EncodedImageStringFieldNumber = 4; private pb::ByteString encodedImageString_ = pb::ByteString.Empty; /// /// Image data in encoded format. All image formats supported by /// image_codec::CoderUtil can be stored here. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString EncodedImageString { get { return encodedImageString_; } set { encodedImageString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Image); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Image other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Height != other.Height) return false; if (Width != other.Width) return false; if (Colorspace != other.Colorspace) return false; if (EncodedImageString != other.EncodedImageString) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Height != 0) hash ^= Height.GetHashCode(); if (Width != 0) hash ^= Width.GetHashCode(); if (Colorspace != 0) hash ^= Colorspace.GetHashCode(); if (EncodedImageString.Length != 0) hash ^= EncodedImageString.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (Height != 0) { output.WriteRawTag(8); output.WriteInt32(Height); } if (Width != 0) { output.WriteRawTag(16); output.WriteInt32(Width); } if (Colorspace != 0) { output.WriteRawTag(24); output.WriteInt32(Colorspace); } if (EncodedImageString.Length != 0) { output.WriteRawTag(34); output.WriteBytes(EncodedImageString); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Height != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Height); } if (Width != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Width); } if (Colorspace != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Colorspace); } if (EncodedImageString.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(EncodedImageString); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Image other) { if (other == null) { return; } if (other.Height != 0) { Height = other.Height; } if (other.Width != 0) { Width = other.Width; } if (other.Colorspace != 0) { Colorspace = other.Colorspace; } if (other.EncodedImageString.Length != 0) { EncodedImageString = other.EncodedImageString; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Height = input.ReadInt32(); break; } case 16: { Width = input.ReadInt32(); break; } case 24: { Colorspace = input.ReadInt32(); break; } case 34: { EncodedImageString = input.ReadBytes(); break; } } } } } public sealed partial class Audio : pb::IMessage