// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: onnx/onnx-data.proto3 // #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 Onnx { /// Holder for reflection information generated from onnx/onnx-data.proto3 public static partial class OnnxDataReflection { #region Descriptor /// File descriptor for onnx/onnx-data.proto3 public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static OnnxDataReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChVvbm54L29ubngtZGF0YS5wcm90bzMSBG9ubngaE29ubngvb25ueC1tbC5w", "cm90bzMi8AIKDVNlcXVlbmNlUHJvdG8SDAoEbmFtZRgBIAEoCRIRCgllbGVt", "X3R5cGUYAiABKAUSKAoNdGVuc29yX3ZhbHVlcxgDIAMoCzIRLm9ubnguVGVu", "c29yUHJvdG8SNQoUc3BhcnNlX3RlbnNvcl92YWx1ZXMYBCADKAsyFy5vbm54", "LlNwYXJzZVRlbnNvclByb3RvEiwKD3NlcXVlbmNlX3ZhbHVlcxgFIAMoCzIT", "Lm9ubnguU2VxdWVuY2VQcm90bxIiCgptYXBfdmFsdWVzGAYgAygLMg4ub25u", "eC5NYXBQcm90bxIsCg9vcHRpb25hbF92YWx1ZXMYByADKAsyEy5vbm54Lk9w", "dGlvbmFsUHJvdG8iXQoIRGF0YVR5cGUSDQoJVU5ERUZJTkVEEAASCgoGVEVO", "U09SEAESEQoNU1BBUlNFX1RFTlNPUhACEgwKCFNFUVVFTkNFEAMSBwoDTUFQ", "EAQSDAoIT1BUSU9OQUwQBSJyCghNYXBQcm90bxIMCgRuYW1lGAEgASgJEhAK", "CGtleV90eXBlGAIgASgFEgwKBGtleXMYAyADKAMSEwoLc3RyaW5nX2tleXMY", "BCADKAwSIwoGdmFsdWVzGAUgASgLMhMub25ueC5TZXF1ZW5jZVByb3RvIusC", "Cg1PcHRpb25hbFByb3RvEgwKBG5hbWUYASABKAkSEQoJZWxlbV90eXBlGAIg", "ASgFEicKDHRlbnNvcl92YWx1ZRgDIAEoCzIRLm9ubnguVGVuc29yUHJvdG8S", "NAoTc3BhcnNlX3RlbnNvcl92YWx1ZRgEIAEoCzIXLm9ubnguU3BhcnNlVGVu", "c29yUHJvdG8SKwoOc2VxdWVuY2VfdmFsdWUYBSABKAsyEy5vbm54LlNlcXVl", "bmNlUHJvdG8SIQoJbWFwX3ZhbHVlGAYgASgLMg4ub25ueC5NYXBQcm90bxIr", "Cg5vcHRpb25hbF92YWx1ZRgHIAEoCzITLm9ubnguT3B0aW9uYWxQcm90byJd", "CghEYXRhVHlwZRINCglVTkRFRklORUQQABIKCgZURU5TT1IQARIRCg1TUEFS", "U0VfVEVOU09SEAISDAoIU0VRVUVOQ0UQAxIHCgNNQVAQBBIMCghPUFRJT05B", "TBAFQgJIA2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Onnx.OnnxMlReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Onnx.SequenceProto), global::Onnx.SequenceProto.Parser, new[]{ "Name", "ElemType", "TensorValues", "SparseTensorValues", "SequenceValues", "MapValues", "OptionalValues" }, null, new[]{ typeof(global::Onnx.SequenceProto.Types.DataType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Onnx.MapProto), global::Onnx.MapProto.Parser, new[]{ "Name", "KeyType", "Keys", "StringKeys", "Values" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Onnx.OptionalProto), global::Onnx.OptionalProto.Parser, new[]{ "Name", "ElemType", "TensorValue", "SparseTensorValue", "SequenceValue", "MapValue", "OptionalValue" }, null, new[]{ typeof(global::Onnx.OptionalProto.Types.DataType) }, null, null) })); } #endregion } #region Messages /// /// Sequences /// /// Defines a dense, ordered, collection of elements that are of homogeneous types. /// Sequences can be made out of tensors, maps, or sequences. /// /// If a sequence is made out of tensors, the tensors must have the same element /// type (i.e. int32). In some cases, the tensors in a sequence can have different /// shapes. Whether the tensors can have different shapes or not depends on the /// type/shape associated with the corresponding "ValueInfo". For example, /// "Sequence<Tensor<float, [M,N]>" means that all tensors have same shape. However, /// "Sequence<Tensor<float, [omitted,omitted]>" means they can have different /// shapes (all of rank 2), where "omitted" means the corresponding dimension has /// no symbolic/constant value. Finally, "Sequence<Tensor<float, omitted>>" means /// that the different tensors can have different ranks, when the "shape" itself /// is omitted from the tensor-type. For a more complete description, refer to /// https://github.com/onnx/onnx/blob/main/docs/IR.md#static-tensor-shapes. /// public sealed partial class SequenceProto : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SequenceProto()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Onnx.OnnxDataReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SequenceProto() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SequenceProto(SequenceProto other) : this() { name_ = other.name_; elemType_ = other.elemType_; tensorValues_ = other.tensorValues_.Clone(); sparseTensorValues_ = other.sparseTensorValues_.Clone(); sequenceValues_ = other.sequenceValues_.Clone(); mapValues_ = other.mapValues_.Clone(); optionalValues_ = other.optionalValues_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SequenceProto Clone() { return new SequenceProto(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "elem_type" field. public const int ElemTypeFieldNumber = 2; private int elemType_; /// /// The data type of the element. /// This field MUST have a valid SequenceProto.DataType value /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ElemType { get { return elemType_; } set { elemType_ = value; } } /// Field number for the "tensor_values" field. public const int TensorValuesFieldNumber = 3; private static readonly pb::FieldCodec _repeated_tensorValues_codec = pb::FieldCodec.ForMessage(26, global::Onnx.TensorProto.Parser); private readonly pbc::RepeatedField tensorValues_ = new pbc::RepeatedField(); /// /// For TensorProto values. /// When this field is present, the elem_type field MUST be TENSOR. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField TensorValues { get { return tensorValues_; } } /// Field number for the "sparse_tensor_values" field. public const int SparseTensorValuesFieldNumber = 4; private static readonly pb::FieldCodec _repeated_sparseTensorValues_codec = pb::FieldCodec.ForMessage(34, global::Onnx.SparseTensorProto.Parser); private readonly pbc::RepeatedField sparseTensorValues_ = new pbc::RepeatedField(); /// /// For SparseTensorProto values. /// When this field is present, the elem_type field MUST be SPARSE_TENSOR. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SparseTensorValues { get { return sparseTensorValues_; } } /// Field number for the "sequence_values" field. public const int SequenceValuesFieldNumber = 5; private static readonly pb::FieldCodec _repeated_sequenceValues_codec = pb::FieldCodec.ForMessage(42, global::Onnx.SequenceProto.Parser); private readonly pbc::RepeatedField sequenceValues_ = new pbc::RepeatedField(); /// /// For SequenceProto values, allowing sequences to be of themselves. /// When this field is present, the elem_type field MUST be SEQUENCE. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SequenceValues { get { return sequenceValues_; } } /// Field number for the "map_values" field. public const int MapValuesFieldNumber = 6; private static readonly pb::FieldCodec _repeated_mapValues_codec = pb::FieldCodec.ForMessage(50, global::Onnx.MapProto.Parser); private readonly pbc::RepeatedField mapValues_ = new pbc::RepeatedField(); /// /// For MapProto values. /// When this field is present, the elem_type field MUST be MAP. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MapValues { get { return mapValues_; } } /// Field number for the "optional_values" field. public const int OptionalValuesFieldNumber = 7; private static readonly pb::FieldCodec _repeated_optionalValues_codec = pb::FieldCodec.ForMessage(58, global::Onnx.OptionalProto.Parser); private readonly pbc::RepeatedField optionalValues_ = new pbc::RepeatedField(); /// /// For OptionalProto values. /// When this field is present, the elem_type field MUST be Optional. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField OptionalValues { get { return optionalValues_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SequenceProto); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SequenceProto other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Name != other.Name) return false; if (ElemType != other.ElemType) return false; if(!tensorValues_.Equals(other.tensorValues_)) return false; if(!sparseTensorValues_.Equals(other.sparseTensorValues_)) return false; if(!sequenceValues_.Equals(other.sequenceValues_)) return false; if(!mapValues_.Equals(other.mapValues_)) return false; if(!optionalValues_.Equals(other.optionalValues_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (ElemType != 0) hash ^= ElemType.GetHashCode(); hash ^= tensorValues_.GetHashCode(); hash ^= sparseTensorValues_.GetHashCode(); hash ^= sequenceValues_.GetHashCode(); hash ^= mapValues_.GetHashCode(); hash ^= optionalValues_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (ElemType != 0) { output.WriteRawTag(16); output.WriteInt32(ElemType); } tensorValues_.WriteTo(output, _repeated_tensorValues_codec); sparseTensorValues_.WriteTo(output, _repeated_sparseTensorValues_codec); sequenceValues_.WriteTo(output, _repeated_sequenceValues_codec); mapValues_.WriteTo(output, _repeated_mapValues_codec); optionalValues_.WriteTo(output, _repeated_optionalValues_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (ElemType != 0) { output.WriteRawTag(16); output.WriteInt32(ElemType); } tensorValues_.WriteTo(ref output, _repeated_tensorValues_codec); sparseTensorValues_.WriteTo(ref output, _repeated_sparseTensorValues_codec); sequenceValues_.WriteTo(ref output, _repeated_sequenceValues_codec); mapValues_.WriteTo(ref output, _repeated_mapValues_codec); optionalValues_.WriteTo(ref output, _repeated_optionalValues_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (ElemType != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ElemType); } size += tensorValues_.CalculateSize(_repeated_tensorValues_codec); size += sparseTensorValues_.CalculateSize(_repeated_sparseTensorValues_codec); size += sequenceValues_.CalculateSize(_repeated_sequenceValues_codec); size += mapValues_.CalculateSize(_repeated_mapValues_codec); size += optionalValues_.CalculateSize(_repeated_optionalValues_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SequenceProto other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.ElemType != 0) { ElemType = other.ElemType; } tensorValues_.Add(other.tensorValues_); sparseTensorValues_.Add(other.sparseTensorValues_); sequenceValues_.Add(other.sequenceValues_); mapValues_.Add(other.mapValues_); optionalValues_.Add(other.optionalValues_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 16: { ElemType = input.ReadInt32(); break; } case 26: { tensorValues_.AddEntriesFrom(input, _repeated_tensorValues_codec); break; } case 34: { sparseTensorValues_.AddEntriesFrom(input, _repeated_sparseTensorValues_codec); break; } case 42: { sequenceValues_.AddEntriesFrom(input, _repeated_sequenceValues_codec); break; } case 50: { mapValues_.AddEntriesFrom(input, _repeated_mapValues_codec); break; } case 58: { optionalValues_.AddEntriesFrom(input, _repeated_optionalValues_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 16: { ElemType = input.ReadInt32(); break; } case 26: { tensorValues_.AddEntriesFrom(ref input, _repeated_tensorValues_codec); break; } case 34: { sparseTensorValues_.AddEntriesFrom(ref input, _repeated_sparseTensorValues_codec); break; } case 42: { sequenceValues_.AddEntriesFrom(ref input, _repeated_sequenceValues_codec); break; } case 50: { mapValues_.AddEntriesFrom(ref input, _repeated_mapValues_codec); break; } case 58: { optionalValues_.AddEntriesFrom(ref input, _repeated_optionalValues_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the SequenceProto message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { public enum DataType { [pbr::OriginalName("UNDEFINED")] Undefined = 0, [pbr::OriginalName("TENSOR")] Tensor = 1, [pbr::OriginalName("SPARSE_TENSOR")] SparseTensor = 2, [pbr::OriginalName("SEQUENCE")] Sequence = 3, [pbr::OriginalName("MAP")] Map = 4, [pbr::OriginalName("OPTIONAL")] Optional = 5, } } #endregion } /// /// Maps /// /// Specifies an associative table, defined by keys and values. /// MapProto is formed with a repeated field of keys (of type INT8, INT16, INT32, /// INT64, UINT8, UINT16, UINT32, UINT64, or STRING) and values (of type TENSOR, /// SPARSE_TENSOR, SEQUENCE, or MAP). Key types and value types have to remain /// the same throughout the instantiation of the MapProto. /// public sealed partial class MapProto : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MapProto()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Onnx.OnnxDataReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MapProto() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MapProto(MapProto other) : this() { name_ = other.name_; keyType_ = other.keyType_; keys_ = other.keys_.Clone(); stringKeys_ = other.stringKeys_.Clone(); values_ = other.values_ != null ? other.values_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MapProto Clone() { return new MapProto(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "key_type" field. public const int KeyTypeFieldNumber = 2; private int keyType_; /// /// The data type of the key. /// This field MUST have a valid TensorProto.DataType value of /// INT8, INT16, INT32, INT64, UINT8, UINT16, UINT32, UINT64, or STRING /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int KeyType { get { return keyType_; } set { keyType_ = value; } } /// Field number for the "keys" field. public const int KeysFieldNumber = 3; private static readonly pb::FieldCodec _repeated_keys_codec = pb::FieldCodec.ForInt64(26); private readonly pbc::RepeatedField keys_ = new pbc::RepeatedField(); /// /// Every element of keys has to be one of the following data types /// INT8, INT16, INT32, INT64, UINT8, UINT16, UINT32, UINT64, or STRING. /// The integer cases are represented by the repeated int64 field keys below. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Keys { get { return keys_; } } /// Field number for the "string_keys" field. public const int StringKeysFieldNumber = 4; private static readonly pb::FieldCodec _repeated_stringKeys_codec = pb::FieldCodec.ForBytes(34); private readonly pbc::RepeatedField stringKeys_ = new pbc::RepeatedField(); /// /// If keys are strings, they are represented by the repeated bytes field /// string_keys below. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField StringKeys { get { return stringKeys_; } } /// Field number for the "values" field. public const int ValuesFieldNumber = 5; private global::Onnx.SequenceProto values_; /// /// MapProto values are represented in a SequenceProto of the same length as the /// repeated keys field and have to be one of the following data types /// TENSOR, SPARSE_TENSOR, MAP, SEQUENCE. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Onnx.SequenceProto Values { get { return values_; } set { values_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MapProto); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MapProto other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Name != other.Name) return false; if (KeyType != other.KeyType) return false; if(!keys_.Equals(other.keys_)) return false; if(!stringKeys_.Equals(other.stringKeys_)) return false; if (!object.Equals(Values, other.Values)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (KeyType != 0) hash ^= KeyType.GetHashCode(); hash ^= keys_.GetHashCode(); hash ^= stringKeys_.GetHashCode(); if (values_ != null) hash ^= Values.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (KeyType != 0) { output.WriteRawTag(16); output.WriteInt32(KeyType); } keys_.WriteTo(output, _repeated_keys_codec); stringKeys_.WriteTo(output, _repeated_stringKeys_codec); if (values_ != null) { output.WriteRawTag(42); output.WriteMessage(Values); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (KeyType != 0) { output.WriteRawTag(16); output.WriteInt32(KeyType); } keys_.WriteTo(ref output, _repeated_keys_codec); stringKeys_.WriteTo(ref output, _repeated_stringKeys_codec); if (values_ != null) { output.WriteRawTag(42); output.WriteMessage(Values); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (KeyType != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyType); } size += keys_.CalculateSize(_repeated_keys_codec); size += stringKeys_.CalculateSize(_repeated_stringKeys_codec); if (values_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Values); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MapProto other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.KeyType != 0) { KeyType = other.KeyType; } keys_.Add(other.keys_); stringKeys_.Add(other.stringKeys_); if (other.values_ != null) { if (values_ == null) { Values = new global::Onnx.SequenceProto(); } Values.MergeFrom(other.Values); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 16: { KeyType = input.ReadInt32(); break; } case 26: case 24: { keys_.AddEntriesFrom(input, _repeated_keys_codec); break; } case 34: { stringKeys_.AddEntriesFrom(input, _repeated_stringKeys_codec); break; } case 42: { if (values_ == null) { Values = new global::Onnx.SequenceProto(); } input.ReadMessage(Values); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 16: { KeyType = input.ReadInt32(); break; } case 26: case 24: { keys_.AddEntriesFrom(ref input, _repeated_keys_codec); break; } case 34: { stringKeys_.AddEntriesFrom(ref input, _repeated_stringKeys_codec); break; } case 42: { if (values_ == null) { Values = new global::Onnx.SequenceProto(); } input.ReadMessage(Values); break; } } } } #endif } /// /// Optional /// public sealed partial class OptionalProto : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OptionalProto()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Onnx.OnnxDataReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OptionalProto() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OptionalProto(OptionalProto other) : this() { name_ = other.name_; elemType_ = other.elemType_; tensorValue_ = other.tensorValue_ != null ? other.tensorValue_.Clone() : null; sparseTensorValue_ = other.sparseTensorValue_ != null ? other.sparseTensorValue_.Clone() : null; sequenceValue_ = other.sequenceValue_ != null ? other.sequenceValue_.Clone() : null; mapValue_ = other.mapValue_ != null ? other.mapValue_.Clone() : null; optionalValue_ = other.optionalValue_ != null ? other.optionalValue_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OptionalProto Clone() { return new OptionalProto(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "elem_type" field. public const int ElemTypeFieldNumber = 2; private int elemType_; /// /// The data type of the element, identifies if the OptionalProto value /// is Tensor, Sparse Tensor, Sequence, Map, or Optional. /// The type of the optional value MUST match the elem_type specified. /// This field MUST have a valid OptionalProto.DataType value. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ElemType { get { return elemType_; } set { elemType_ = value; } } /// Field number for the "tensor_value" field. public const int TensorValueFieldNumber = 3; private global::Onnx.TensorProto tensorValue_; /// /// For TensorProto value. /// When this field is present, the elem_type field MUST be TENSOR. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Onnx.TensorProto TensorValue { get { return tensorValue_; } set { tensorValue_ = value; } } /// Field number for the "sparse_tensor_value" field. public const int SparseTensorValueFieldNumber = 4; private global::Onnx.SparseTensorProto sparseTensorValue_; /// /// For SparseTensorProto value. /// When this field is present, the elem_type field MUST be SPARSE_TENSOR. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Onnx.SparseTensorProto SparseTensorValue { get { return sparseTensorValue_; } set { sparseTensorValue_ = value; } } /// Field number for the "sequence_value" field. public const int SequenceValueFieldNumber = 5; private global::Onnx.SequenceProto sequenceValue_; /// /// For SequenceProto value. /// When this field is present, the elem_type field MUST be SEQUENCE. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Onnx.SequenceProto SequenceValue { get { return sequenceValue_; } set { sequenceValue_ = value; } } /// Field number for the "map_value" field. public const int MapValueFieldNumber = 6; private global::Onnx.MapProto mapValue_; /// /// For MapProto value. /// When this field is present, the elem_type field MUST be MAP. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Onnx.MapProto MapValue { get { return mapValue_; } set { mapValue_ = value; } } /// Field number for the "optional_value" field. public const int OptionalValueFieldNumber = 7; private global::Onnx.OptionalProto optionalValue_; /// /// For OptionalProto value, allowing optional to be of itself (completeness) /// When this field is present, the elem_type field MUST be OPTIONAL. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Onnx.OptionalProto OptionalValue { get { return optionalValue_; } set { optionalValue_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OptionalProto); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OptionalProto other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Name != other.Name) return false; if (ElemType != other.ElemType) return false; if (!object.Equals(TensorValue, other.TensorValue)) return false; if (!object.Equals(SparseTensorValue, other.SparseTensorValue)) return false; if (!object.Equals(SequenceValue, other.SequenceValue)) return false; if (!object.Equals(MapValue, other.MapValue)) return false; if (!object.Equals(OptionalValue, other.OptionalValue)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (ElemType != 0) hash ^= ElemType.GetHashCode(); if (tensorValue_ != null) hash ^= TensorValue.GetHashCode(); if (sparseTensorValue_ != null) hash ^= SparseTensorValue.GetHashCode(); if (sequenceValue_ != null) hash ^= SequenceValue.GetHashCode(); if (mapValue_ != null) hash ^= MapValue.GetHashCode(); if (optionalValue_ != null) hash ^= OptionalValue.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (ElemType != 0) { output.WriteRawTag(16); output.WriteInt32(ElemType); } if (tensorValue_ != null) { output.WriteRawTag(26); output.WriteMessage(TensorValue); } if (sparseTensorValue_ != null) { output.WriteRawTag(34); output.WriteMessage(SparseTensorValue); } if (sequenceValue_ != null) { output.WriteRawTag(42); output.WriteMessage(SequenceValue); } if (mapValue_ != null) { output.WriteRawTag(50); output.WriteMessage(MapValue); } if (optionalValue_ != null) { output.WriteRawTag(58); output.WriteMessage(OptionalValue); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (ElemType != 0) { output.WriteRawTag(16); output.WriteInt32(ElemType); } if (tensorValue_ != null) { output.WriteRawTag(26); output.WriteMessage(TensorValue); } if (sparseTensorValue_ != null) { output.WriteRawTag(34); output.WriteMessage(SparseTensorValue); } if (sequenceValue_ != null) { output.WriteRawTag(42); output.WriteMessage(SequenceValue); } if (mapValue_ != null) { output.WriteRawTag(50); output.WriteMessage(MapValue); } if (optionalValue_ != null) { output.WriteRawTag(58); output.WriteMessage(OptionalValue); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (ElemType != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ElemType); } if (tensorValue_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TensorValue); } if (sparseTensorValue_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SparseTensorValue); } if (sequenceValue_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SequenceValue); } if (mapValue_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapValue); } if (optionalValue_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalValue); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(OptionalProto other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.ElemType != 0) { ElemType = other.ElemType; } if (other.tensorValue_ != null) { if (tensorValue_ == null) { TensorValue = new global::Onnx.TensorProto(); } TensorValue.MergeFrom(other.TensorValue); } if (other.sparseTensorValue_ != null) { if (sparseTensorValue_ == null) { SparseTensorValue = new global::Onnx.SparseTensorProto(); } SparseTensorValue.MergeFrom(other.SparseTensorValue); } if (other.sequenceValue_ != null) { if (sequenceValue_ == null) { SequenceValue = new global::Onnx.SequenceProto(); } SequenceValue.MergeFrom(other.SequenceValue); } if (other.mapValue_ != null) { if (mapValue_ == null) { MapValue = new global::Onnx.MapProto(); } MapValue.MergeFrom(other.MapValue); } if (other.optionalValue_ != null) { if (optionalValue_ == null) { OptionalValue = new global::Onnx.OptionalProto(); } OptionalValue.MergeFrom(other.OptionalValue); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 16: { ElemType = input.ReadInt32(); break; } case 26: { if (tensorValue_ == null) { TensorValue = new global::Onnx.TensorProto(); } input.ReadMessage(TensorValue); break; } case 34: { if (sparseTensorValue_ == null) { SparseTensorValue = new global::Onnx.SparseTensorProto(); } input.ReadMessage(SparseTensorValue); break; } case 42: { if (sequenceValue_ == null) { SequenceValue = new global::Onnx.SequenceProto(); } input.ReadMessage(SequenceValue); break; } case 50: { if (mapValue_ == null) { MapValue = new global::Onnx.MapProto(); } input.ReadMessage(MapValue); break; } case 58: { if (optionalValue_ == null) { OptionalValue = new global::Onnx.OptionalProto(); } input.ReadMessage(OptionalValue); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 16: { ElemType = input.ReadInt32(); break; } case 26: { if (tensorValue_ == null) { TensorValue = new global::Onnx.TensorProto(); } input.ReadMessage(TensorValue); break; } case 34: { if (sparseTensorValue_ == null) { SparseTensorValue = new global::Onnx.SparseTensorProto(); } input.ReadMessage(SparseTensorValue); break; } case 42: { if (sequenceValue_ == null) { SequenceValue = new global::Onnx.SequenceProto(); } input.ReadMessage(SequenceValue); break; } case 50: { if (mapValue_ == null) { MapValue = new global::Onnx.MapProto(); } input.ReadMessage(MapValue); break; } case 58: { if (optionalValue_ == null) { OptionalValue = new global::Onnx.OptionalProto(); } input.ReadMessage(OptionalValue); break; } } } } #endif #region Nested types /// Container for nested types declared in the OptionalProto message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { public enum DataType { [pbr::OriginalName("UNDEFINED")] Undefined = 0, [pbr::OriginalName("TENSOR")] Tensor = 1, [pbr::OriginalName("SPARSE_TENSOR")] SparseTensor = 2, [pbr::OriginalName("SEQUENCE")] Sequence = 3, [pbr::OriginalName("MAP")] Map = 4, [pbr::OriginalName("OPTIONAL")] Optional = 5, } } #endregion } #endregion } #endregion Designer generated code