1ffe3c632Sopenharmony_ci// <auto-generated> 2ffe3c632Sopenharmony_ci// Generated by the protocol buffer compiler. DO NOT EDIT! 3ffe3c632Sopenharmony_ci// source: benchmarks.proto 4ffe3c632Sopenharmony_ci// </auto-generated> 5ffe3c632Sopenharmony_ci#pragma warning disable 1591, 0612, 3021 6ffe3c632Sopenharmony_ci#region Designer generated code 7ffe3c632Sopenharmony_ci 8ffe3c632Sopenharmony_ciusing pb = global::Google.Protobuf; 9ffe3c632Sopenharmony_ciusing pbc = global::Google.Protobuf.Collections; 10ffe3c632Sopenharmony_ciusing pbr = global::Google.Protobuf.Reflection; 11ffe3c632Sopenharmony_ciusing scg = global::System.Collections.Generic; 12ffe3c632Sopenharmony_cinamespace Benchmarks { 13ffe3c632Sopenharmony_ci 14ffe3c632Sopenharmony_ci /// <summary>Holder for reflection information generated from benchmarks.proto</summary> 15ffe3c632Sopenharmony_ci public static partial class BenchmarksReflection { 16ffe3c632Sopenharmony_ci 17ffe3c632Sopenharmony_ci #region Descriptor 18ffe3c632Sopenharmony_ci /// <summary>File descriptor for benchmarks.proto</summary> 19ffe3c632Sopenharmony_ci public static pbr::FileDescriptor Descriptor { 20ffe3c632Sopenharmony_ci get { return descriptor; } 21ffe3c632Sopenharmony_ci } 22ffe3c632Sopenharmony_ci private static pbr::FileDescriptor descriptor; 23ffe3c632Sopenharmony_ci 24ffe3c632Sopenharmony_ci static BenchmarksReflection() { 25ffe3c632Sopenharmony_ci byte[] descriptorData = global::System.Convert.FromBase64String( 26ffe3c632Sopenharmony_ci string.Concat( 27ffe3c632Sopenharmony_ci "ChBiZW5jaG1hcmtzLnByb3RvEgpiZW5jaG1hcmtzIkcKEEJlbmNobWFya0Rh", 28ffe3c632Sopenharmony_ci "dGFzZXQSDAoEbmFtZRgBIAEoCRIUCgxtZXNzYWdlX25hbWUYAiABKAkSDwoH", 29ffe3c632Sopenharmony_ci "cGF5bG9hZBgDIAMoDEIgCh5jb20uZ29vZ2xlLnByb3RvYnVmLmJlbmNobWFy", 30ffe3c632Sopenharmony_ci "a3NiBnByb3RvMw==")); 31ffe3c632Sopenharmony_ci descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 32ffe3c632Sopenharmony_ci new pbr::FileDescriptor[] { }, 33ffe3c632Sopenharmony_ci new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { 34ffe3c632Sopenharmony_ci new pbr::GeneratedClrTypeInfo(typeof(global::Benchmarks.BenchmarkDataset), global::Benchmarks.BenchmarkDataset.Parser, new[]{ "Name", "MessageName", "Payload" }, null, null, null, null) 35ffe3c632Sopenharmony_ci })); 36ffe3c632Sopenharmony_ci } 37ffe3c632Sopenharmony_ci #endregion 38ffe3c632Sopenharmony_ci 39ffe3c632Sopenharmony_ci } 40ffe3c632Sopenharmony_ci #region Messages 41ffe3c632Sopenharmony_ci public sealed partial class BenchmarkDataset : pb::IMessage<BenchmarkDataset> 42ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 43ffe3c632Sopenharmony_ci , pb::IBufferMessage 44ffe3c632Sopenharmony_ci #endif 45ffe3c632Sopenharmony_ci { 46ffe3c632Sopenharmony_ci private static readonly pb::MessageParser<BenchmarkDataset> _parser = new pb::MessageParser<BenchmarkDataset>(() => new BenchmarkDataset()); 47ffe3c632Sopenharmony_ci private pb::UnknownFieldSet _unknownFields; 48ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 49ffe3c632Sopenharmony_ci public static pb::MessageParser<BenchmarkDataset> Parser { get { return _parser; } } 50ffe3c632Sopenharmony_ci 51ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 52ffe3c632Sopenharmony_ci public static pbr::MessageDescriptor Descriptor { 53ffe3c632Sopenharmony_ci get { return global::Benchmarks.BenchmarksReflection.Descriptor.MessageTypes[0]; } 54ffe3c632Sopenharmony_ci } 55ffe3c632Sopenharmony_ci 56ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 57ffe3c632Sopenharmony_ci pbr::MessageDescriptor pb::IMessage.Descriptor { 58ffe3c632Sopenharmony_ci get { return Descriptor; } 59ffe3c632Sopenharmony_ci } 60ffe3c632Sopenharmony_ci 61ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 62ffe3c632Sopenharmony_ci public BenchmarkDataset() { 63ffe3c632Sopenharmony_ci OnConstruction(); 64ffe3c632Sopenharmony_ci } 65ffe3c632Sopenharmony_ci 66ffe3c632Sopenharmony_ci partial void OnConstruction(); 67ffe3c632Sopenharmony_ci 68ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 69ffe3c632Sopenharmony_ci public BenchmarkDataset(BenchmarkDataset other) : this() { 70ffe3c632Sopenharmony_ci name_ = other.name_; 71ffe3c632Sopenharmony_ci messageName_ = other.messageName_; 72ffe3c632Sopenharmony_ci payload_ = other.payload_.Clone(); 73ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 74ffe3c632Sopenharmony_ci } 75ffe3c632Sopenharmony_ci 76ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 77ffe3c632Sopenharmony_ci public BenchmarkDataset Clone() { 78ffe3c632Sopenharmony_ci return new BenchmarkDataset(this); 79ffe3c632Sopenharmony_ci } 80ffe3c632Sopenharmony_ci 81ffe3c632Sopenharmony_ci /// <summary>Field number for the "name" field.</summary> 82ffe3c632Sopenharmony_ci public const int NameFieldNumber = 1; 83ffe3c632Sopenharmony_ci private string name_ = ""; 84ffe3c632Sopenharmony_ci /// <summary> 85ffe3c632Sopenharmony_ci /// Name of the benchmark dataset. This should be unique across all datasets. 86ffe3c632Sopenharmony_ci /// Should only contain word characters: [a-zA-Z0-9_] 87ffe3c632Sopenharmony_ci /// </summary> 88ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 89ffe3c632Sopenharmony_ci public string Name { 90ffe3c632Sopenharmony_ci get { return name_; } 91ffe3c632Sopenharmony_ci set { 92ffe3c632Sopenharmony_ci name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 93ffe3c632Sopenharmony_ci } 94ffe3c632Sopenharmony_ci } 95ffe3c632Sopenharmony_ci 96ffe3c632Sopenharmony_ci /// <summary>Field number for the "message_name" field.</summary> 97ffe3c632Sopenharmony_ci public const int MessageNameFieldNumber = 2; 98ffe3c632Sopenharmony_ci private string messageName_ = ""; 99ffe3c632Sopenharmony_ci /// <summary> 100ffe3c632Sopenharmony_ci /// Fully-qualified name of the protobuf message for this dataset. 101ffe3c632Sopenharmony_ci /// It will be one of the messages defined benchmark_messages_proto2.proto 102ffe3c632Sopenharmony_ci /// or benchmark_messages_proto3.proto. 103ffe3c632Sopenharmony_ci /// 104ffe3c632Sopenharmony_ci /// Implementations that do not support reflection can implement this with 105ffe3c632Sopenharmony_ci /// an explicit "if/else" chain that lists every known message defined 106ffe3c632Sopenharmony_ci /// in those files. 107ffe3c632Sopenharmony_ci /// </summary> 108ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 109ffe3c632Sopenharmony_ci public string MessageName { 110ffe3c632Sopenharmony_ci get { return messageName_; } 111ffe3c632Sopenharmony_ci set { 112ffe3c632Sopenharmony_ci messageName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 113ffe3c632Sopenharmony_ci } 114ffe3c632Sopenharmony_ci } 115ffe3c632Sopenharmony_ci 116ffe3c632Sopenharmony_ci /// <summary>Field number for the "payload" field.</summary> 117ffe3c632Sopenharmony_ci public const int PayloadFieldNumber = 3; 118ffe3c632Sopenharmony_ci private static readonly pb::FieldCodec<pb::ByteString> _repeated_payload_codec 119ffe3c632Sopenharmony_ci = pb::FieldCodec.ForBytes(26); 120ffe3c632Sopenharmony_ci private readonly pbc::RepeatedField<pb::ByteString> payload_ = new pbc::RepeatedField<pb::ByteString>(); 121ffe3c632Sopenharmony_ci /// <summary> 122ffe3c632Sopenharmony_ci /// The payload(s) for this dataset. They should be parsed or serialized 123ffe3c632Sopenharmony_ci /// in sequence, in a loop, ie. 124ffe3c632Sopenharmony_ci /// 125ffe3c632Sopenharmony_ci /// while (!benchmarkDone) { // Benchmark runner decides when to exit. 126ffe3c632Sopenharmony_ci /// for (i = 0; i < benchmark.payload.length; i++) { 127ffe3c632Sopenharmony_ci /// parse(benchmark.payload[i]) 128ffe3c632Sopenharmony_ci /// } 129ffe3c632Sopenharmony_ci /// } 130ffe3c632Sopenharmony_ci /// 131ffe3c632Sopenharmony_ci /// This is intended to let datasets include a variety of data to provide 132ffe3c632Sopenharmony_ci /// potentially more realistic results than just parsing the same message 133ffe3c632Sopenharmony_ci /// over and over. A single message parsed repeatedly could yield unusually 134ffe3c632Sopenharmony_ci /// good branch prediction performance. 135ffe3c632Sopenharmony_ci /// </summary> 136ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 137ffe3c632Sopenharmony_ci public pbc::RepeatedField<pb::ByteString> Payload { 138ffe3c632Sopenharmony_ci get { return payload_; } 139ffe3c632Sopenharmony_ci } 140ffe3c632Sopenharmony_ci 141ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 142ffe3c632Sopenharmony_ci public override bool Equals(object other) { 143ffe3c632Sopenharmony_ci return Equals(other as BenchmarkDataset); 144ffe3c632Sopenharmony_ci } 145ffe3c632Sopenharmony_ci 146ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 147ffe3c632Sopenharmony_ci public bool Equals(BenchmarkDataset other) { 148ffe3c632Sopenharmony_ci if (ReferenceEquals(other, null)) { 149ffe3c632Sopenharmony_ci return false; 150ffe3c632Sopenharmony_ci } 151ffe3c632Sopenharmony_ci if (ReferenceEquals(other, this)) { 152ffe3c632Sopenharmony_ci return true; 153ffe3c632Sopenharmony_ci } 154ffe3c632Sopenharmony_ci if (Name != other.Name) return false; 155ffe3c632Sopenharmony_ci if (MessageName != other.MessageName) return false; 156ffe3c632Sopenharmony_ci if(!payload_.Equals(other.payload_)) return false; 157ffe3c632Sopenharmony_ci return Equals(_unknownFields, other._unknownFields); 158ffe3c632Sopenharmony_ci } 159ffe3c632Sopenharmony_ci 160ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 161ffe3c632Sopenharmony_ci public override int GetHashCode() { 162ffe3c632Sopenharmony_ci int hash = 1; 163ffe3c632Sopenharmony_ci if (Name.Length != 0) hash ^= Name.GetHashCode(); 164ffe3c632Sopenharmony_ci if (MessageName.Length != 0) hash ^= MessageName.GetHashCode(); 165ffe3c632Sopenharmony_ci hash ^= payload_.GetHashCode(); 166ffe3c632Sopenharmony_ci if (_unknownFields != null) { 167ffe3c632Sopenharmony_ci hash ^= _unknownFields.GetHashCode(); 168ffe3c632Sopenharmony_ci } 169ffe3c632Sopenharmony_ci return hash; 170ffe3c632Sopenharmony_ci } 171ffe3c632Sopenharmony_ci 172ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 173ffe3c632Sopenharmony_ci public override string ToString() { 174ffe3c632Sopenharmony_ci return pb::JsonFormatter.ToDiagnosticString(this); 175ffe3c632Sopenharmony_ci } 176ffe3c632Sopenharmony_ci 177ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 178ffe3c632Sopenharmony_ci public void WriteTo(pb::CodedOutputStream output) { 179ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 180ffe3c632Sopenharmony_ci output.WriteRawMessage(this); 181ffe3c632Sopenharmony_ci #else 182ffe3c632Sopenharmony_ci if (Name.Length != 0) { 183ffe3c632Sopenharmony_ci output.WriteRawTag(10); 184ffe3c632Sopenharmony_ci output.WriteString(Name); 185ffe3c632Sopenharmony_ci } 186ffe3c632Sopenharmony_ci if (MessageName.Length != 0) { 187ffe3c632Sopenharmony_ci output.WriteRawTag(18); 188ffe3c632Sopenharmony_ci output.WriteString(MessageName); 189ffe3c632Sopenharmony_ci } 190ffe3c632Sopenharmony_ci payload_.WriteTo(output, _repeated_payload_codec); 191ffe3c632Sopenharmony_ci if (_unknownFields != null) { 192ffe3c632Sopenharmony_ci _unknownFields.WriteTo(output); 193ffe3c632Sopenharmony_ci } 194ffe3c632Sopenharmony_ci #endif 195ffe3c632Sopenharmony_ci } 196ffe3c632Sopenharmony_ci 197ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 198ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 199ffe3c632Sopenharmony_ci void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 200ffe3c632Sopenharmony_ci if (Name.Length != 0) { 201ffe3c632Sopenharmony_ci output.WriteRawTag(10); 202ffe3c632Sopenharmony_ci output.WriteString(Name); 203ffe3c632Sopenharmony_ci } 204ffe3c632Sopenharmony_ci if (MessageName.Length != 0) { 205ffe3c632Sopenharmony_ci output.WriteRawTag(18); 206ffe3c632Sopenharmony_ci output.WriteString(MessageName); 207ffe3c632Sopenharmony_ci } 208ffe3c632Sopenharmony_ci payload_.WriteTo(ref output, _repeated_payload_codec); 209ffe3c632Sopenharmony_ci if (_unknownFields != null) { 210ffe3c632Sopenharmony_ci _unknownFields.WriteTo(ref output); 211ffe3c632Sopenharmony_ci } 212ffe3c632Sopenharmony_ci } 213ffe3c632Sopenharmony_ci #endif 214ffe3c632Sopenharmony_ci 215ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 216ffe3c632Sopenharmony_ci public int CalculateSize() { 217ffe3c632Sopenharmony_ci int size = 0; 218ffe3c632Sopenharmony_ci if (Name.Length != 0) { 219ffe3c632Sopenharmony_ci size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 220ffe3c632Sopenharmony_ci } 221ffe3c632Sopenharmony_ci if (MessageName.Length != 0) { 222ffe3c632Sopenharmony_ci size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageName); 223ffe3c632Sopenharmony_ci } 224ffe3c632Sopenharmony_ci size += payload_.CalculateSize(_repeated_payload_codec); 225ffe3c632Sopenharmony_ci if (_unknownFields != null) { 226ffe3c632Sopenharmony_ci size += _unknownFields.CalculateSize(); 227ffe3c632Sopenharmony_ci } 228ffe3c632Sopenharmony_ci return size; 229ffe3c632Sopenharmony_ci } 230ffe3c632Sopenharmony_ci 231ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 232ffe3c632Sopenharmony_ci public void MergeFrom(BenchmarkDataset other) { 233ffe3c632Sopenharmony_ci if (other == null) { 234ffe3c632Sopenharmony_ci return; 235ffe3c632Sopenharmony_ci } 236ffe3c632Sopenharmony_ci if (other.Name.Length != 0) { 237ffe3c632Sopenharmony_ci Name = other.Name; 238ffe3c632Sopenharmony_ci } 239ffe3c632Sopenharmony_ci if (other.MessageName.Length != 0) { 240ffe3c632Sopenharmony_ci MessageName = other.MessageName; 241ffe3c632Sopenharmony_ci } 242ffe3c632Sopenharmony_ci payload_.Add(other.payload_); 243ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 244ffe3c632Sopenharmony_ci } 245ffe3c632Sopenharmony_ci 246ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 247ffe3c632Sopenharmony_ci public void MergeFrom(pb::CodedInputStream input) { 248ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 249ffe3c632Sopenharmony_ci input.ReadRawMessage(this); 250ffe3c632Sopenharmony_ci #else 251ffe3c632Sopenharmony_ci uint tag; 252ffe3c632Sopenharmony_ci while ((tag = input.ReadTag()) != 0) { 253ffe3c632Sopenharmony_ci switch(tag) { 254ffe3c632Sopenharmony_ci default: 255ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 256ffe3c632Sopenharmony_ci break; 257ffe3c632Sopenharmony_ci case 10: { 258ffe3c632Sopenharmony_ci Name = input.ReadString(); 259ffe3c632Sopenharmony_ci break; 260ffe3c632Sopenharmony_ci } 261ffe3c632Sopenharmony_ci case 18: { 262ffe3c632Sopenharmony_ci MessageName = input.ReadString(); 263ffe3c632Sopenharmony_ci break; 264ffe3c632Sopenharmony_ci } 265ffe3c632Sopenharmony_ci case 26: { 266ffe3c632Sopenharmony_ci payload_.AddEntriesFrom(input, _repeated_payload_codec); 267ffe3c632Sopenharmony_ci break; 268ffe3c632Sopenharmony_ci } 269ffe3c632Sopenharmony_ci } 270ffe3c632Sopenharmony_ci } 271ffe3c632Sopenharmony_ci #endif 272ffe3c632Sopenharmony_ci } 273ffe3c632Sopenharmony_ci 274ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 275ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 276ffe3c632Sopenharmony_ci void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 277ffe3c632Sopenharmony_ci uint tag; 278ffe3c632Sopenharmony_ci while ((tag = input.ReadTag()) != 0) { 279ffe3c632Sopenharmony_ci switch(tag) { 280ffe3c632Sopenharmony_ci default: 281ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 282ffe3c632Sopenharmony_ci break; 283ffe3c632Sopenharmony_ci case 10: { 284ffe3c632Sopenharmony_ci Name = input.ReadString(); 285ffe3c632Sopenharmony_ci break; 286ffe3c632Sopenharmony_ci } 287ffe3c632Sopenharmony_ci case 18: { 288ffe3c632Sopenharmony_ci MessageName = input.ReadString(); 289ffe3c632Sopenharmony_ci break; 290ffe3c632Sopenharmony_ci } 291ffe3c632Sopenharmony_ci case 26: { 292ffe3c632Sopenharmony_ci payload_.AddEntriesFrom(ref input, _repeated_payload_codec); 293ffe3c632Sopenharmony_ci break; 294ffe3c632Sopenharmony_ci } 295ffe3c632Sopenharmony_ci } 296ffe3c632Sopenharmony_ci } 297ffe3c632Sopenharmony_ci } 298ffe3c632Sopenharmony_ci #endif 299ffe3c632Sopenharmony_ci 300ffe3c632Sopenharmony_ci } 301ffe3c632Sopenharmony_ci 302ffe3c632Sopenharmony_ci #endregion 303ffe3c632Sopenharmony_ci 304ffe3c632Sopenharmony_ci} 305ffe3c632Sopenharmony_ci 306ffe3c632Sopenharmony_ci#endregion Designer generated code 307