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