2 // Generated by the protocol buffer compiler. DO NOT EDIT!
3 // source: src/proto/grpc/testing/metrics.proto
5 #pragma warning disable 1591, 0612, 3021
6 #region Designer generated code
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Grpc.Testing {
14 /// <summary>Holder for reflection information generated from src/proto/grpc/testing/metrics.proto</summary>
15 public static partial class MetricsReflection {
18 /// <summary>File descriptor for src/proto/grpc/testing/metrics.proto</summary>
19 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
22 private static pbr::FileDescriptor descriptor;
24 static MetricsReflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
27 "CiRzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL21ldHJpY3MucHJvdG8SDGdycGMu",
28 "dGVzdGluZyJsCg1HYXVnZVJlc3BvbnNlEgwKBG5hbWUYASABKAkSFAoKbG9u",
29 "Z192YWx1ZRgCIAEoA0gAEhYKDGRvdWJsZV92YWx1ZRgDIAEoAUgAEhYKDHN0",
30 "cmluZ192YWx1ZRgEIAEoCUgAQgcKBXZhbHVlIhwKDEdhdWdlUmVxdWVzdBIM",
31 "CgRuYW1lGAEgASgJIg4KDEVtcHR5TWVzc2FnZTKgAQoOTWV0cmljc1NlcnZp",
32 "Y2USSQoMR2V0QWxsR2F1Z2VzEhouZ3JwYy50ZXN0aW5nLkVtcHR5TWVzc2Fn",
33 "ZRobLmdycGMudGVzdGluZy5HYXVnZVJlc3BvbnNlMAESQwoIR2V0R2F1Z2US",
34 "Gi5ncnBjLnRlc3RpbmcuR2F1Z2VSZXF1ZXN0GhsuZ3JwYy50ZXN0aW5nLkdh",
35 "dWdlUmVzcG9uc2ViBnByb3RvMw=="));
36 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
37 new pbr::FileDescriptor[] { },
38 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
39 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.GaugeResponse), global::Grpc.Testing.GaugeResponse.Parser, new[]{ "Name", "LongValue", "DoubleValue", "StringValue" }, new[]{ "Value" }, null, null, null),
40 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.GaugeRequest), global::Grpc.Testing.GaugeRequest.Parser, new[]{ "Name" }, null, null, null, null),
41 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EmptyMessage), global::Grpc.Testing.EmptyMessage.Parser, null, null, null, null, null)
49 /// Response message containing the gauge name and value
51 public sealed partial class GaugeResponse : pb::IMessage<GaugeResponse> {
52 private static readonly pb::MessageParser<GaugeResponse> _parser = new pb::MessageParser<GaugeResponse>(() => new GaugeResponse());
53 private pb::UnknownFieldSet _unknownFields;
54 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
55 public static pb::MessageParser<GaugeResponse> Parser { get { return _parser; } }
57 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
58 public static pbr::MessageDescriptor Descriptor {
59 get { return global::Grpc.Testing.MetricsReflection.Descriptor.MessageTypes[0]; }
62 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
63 pbr::MessageDescriptor pb::IMessage.Descriptor {
64 get { return Descriptor; }
67 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
68 public GaugeResponse() {
72 partial void OnConstruction();
74 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
75 public GaugeResponse(GaugeResponse other) : this() {
77 switch (other.ValueCase) {
78 case ValueOneofCase.LongValue:
79 LongValue = other.LongValue;
81 case ValueOneofCase.DoubleValue:
82 DoubleValue = other.DoubleValue;
84 case ValueOneofCase.StringValue:
85 StringValue = other.StringValue;
89 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
92 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
93 public GaugeResponse Clone() {
94 return new GaugeResponse(this);
97 /// <summary>Field number for the "name" field.</summary>
98 public const int NameFieldNumber = 1;
99 private string name_ = "";
100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
102 get { return name_; }
104 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
108 /// <summary>Field number for the "long_value" field.</summary>
109 public const int LongValueFieldNumber = 2;
110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
111 public long LongValue {
112 get { return valueCase_ == ValueOneofCase.LongValue ? (long) value_ : 0L; }
115 valueCase_ = ValueOneofCase.LongValue;
119 /// <summary>Field number for the "double_value" field.</summary>
120 public const int DoubleValueFieldNumber = 3;
121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
122 public double DoubleValue {
123 get { return valueCase_ == ValueOneofCase.DoubleValue ? (double) value_ : 0D; }
126 valueCase_ = ValueOneofCase.DoubleValue;
130 /// <summary>Field number for the "string_value" field.</summary>
131 public const int StringValueFieldNumber = 4;
132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
133 public string StringValue {
134 get { return valueCase_ == ValueOneofCase.StringValue ? (string) value_ : ""; }
136 value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
137 valueCase_ = ValueOneofCase.StringValue;
141 private object value_;
142 /// <summary>Enum of possible cases for the "value" oneof.</summary>
143 public enum ValueOneofCase {
149 private ValueOneofCase valueCase_ = ValueOneofCase.None;
150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
151 public ValueOneofCase ValueCase {
152 get { return valueCase_; }
155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
156 public void ClearValue() {
157 valueCase_ = ValueOneofCase.None;
161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
162 public override bool Equals(object other) {
163 return Equals(other as GaugeResponse);
166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
167 public bool Equals(GaugeResponse other) {
168 if (ReferenceEquals(other, null)) {
171 if (ReferenceEquals(other, this)) {
174 if (Name != other.Name) return false;
175 if (LongValue != other.LongValue) return false;
176 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false;
177 if (StringValue != other.StringValue) return false;
178 if (ValueCase != other.ValueCase) return false;
179 return Equals(_unknownFields, other._unknownFields);
182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
183 public override int GetHashCode() {
185 if (Name.Length != 0) hash ^= Name.GetHashCode();
186 if (valueCase_ == ValueOneofCase.LongValue) hash ^= LongValue.GetHashCode();
187 if (valueCase_ == ValueOneofCase.DoubleValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleValue);
188 if (valueCase_ == ValueOneofCase.StringValue) hash ^= StringValue.GetHashCode();
189 hash ^= (int) valueCase_;
190 if (_unknownFields != null) {
191 hash ^= _unknownFields.GetHashCode();
196 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
197 public override string ToString() {
198 return pb::JsonFormatter.ToDiagnosticString(this);
201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
202 public void WriteTo(pb::CodedOutputStream output) {
203 if (Name.Length != 0) {
204 output.WriteRawTag(10);
205 output.WriteString(Name);
207 if (valueCase_ == ValueOneofCase.LongValue) {
208 output.WriteRawTag(16);
209 output.WriteInt64(LongValue);
211 if (valueCase_ == ValueOneofCase.DoubleValue) {
212 output.WriteRawTag(25);
213 output.WriteDouble(DoubleValue);
215 if (valueCase_ == ValueOneofCase.StringValue) {
216 output.WriteRawTag(34);
217 output.WriteString(StringValue);
219 if (_unknownFields != null) {
220 _unknownFields.WriteTo(output);
224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
225 public int CalculateSize() {
227 if (Name.Length != 0) {
228 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
230 if (valueCase_ == ValueOneofCase.LongValue) {
231 size += 1 + pb::CodedOutputStream.ComputeInt64Size(LongValue);
233 if (valueCase_ == ValueOneofCase.DoubleValue) {
236 if (valueCase_ == ValueOneofCase.StringValue) {
237 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue);
239 if (_unknownFields != null) {
240 size += _unknownFields.CalculateSize();
245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
246 public void MergeFrom(GaugeResponse other) {
250 if (other.Name.Length != 0) {
253 switch (other.ValueCase) {
254 case ValueOneofCase.LongValue:
255 LongValue = other.LongValue;
257 case ValueOneofCase.DoubleValue:
258 DoubleValue = other.DoubleValue;
260 case ValueOneofCase.StringValue:
261 StringValue = other.StringValue;
265 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
268 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
269 public void MergeFrom(pb::CodedInputStream input) {
271 while ((tag = input.ReadTag()) != 0) {
274 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
277 Name = input.ReadString();
281 LongValue = input.ReadInt64();
285 DoubleValue = input.ReadDouble();
289 StringValue = input.ReadString();
299 /// Request message containing the gauge name
301 public sealed partial class GaugeRequest : pb::IMessage<GaugeRequest> {
302 private static readonly pb::MessageParser<GaugeRequest> _parser = new pb::MessageParser<GaugeRequest>(() => new GaugeRequest());
303 private pb::UnknownFieldSet _unknownFields;
304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
305 public static pb::MessageParser<GaugeRequest> Parser { get { return _parser; } }
307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
308 public static pbr::MessageDescriptor Descriptor {
309 get { return global::Grpc.Testing.MetricsReflection.Descriptor.MessageTypes[1]; }
312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
313 pbr::MessageDescriptor pb::IMessage.Descriptor {
314 get { return Descriptor; }
317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
318 public GaugeRequest() {
322 partial void OnConstruction();
324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
325 public GaugeRequest(GaugeRequest other) : this() {
327 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
331 public GaugeRequest Clone() {
332 return new GaugeRequest(this);
335 /// <summary>Field number for the "name" field.</summary>
336 public const int NameFieldNumber = 1;
337 private string name_ = "";
338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
340 get { return name_; }
342 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
347 public override bool Equals(object other) {
348 return Equals(other as GaugeRequest);
351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
352 public bool Equals(GaugeRequest other) {
353 if (ReferenceEquals(other, null)) {
356 if (ReferenceEquals(other, this)) {
359 if (Name != other.Name) return false;
360 return Equals(_unknownFields, other._unknownFields);
363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
364 public override int GetHashCode() {
366 if (Name.Length != 0) hash ^= Name.GetHashCode();
367 if (_unknownFields != null) {
368 hash ^= _unknownFields.GetHashCode();
373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
374 public override string ToString() {
375 return pb::JsonFormatter.ToDiagnosticString(this);
378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
379 public void WriteTo(pb::CodedOutputStream output) {
380 if (Name.Length != 0) {
381 output.WriteRawTag(10);
382 output.WriteString(Name);
384 if (_unknownFields != null) {
385 _unknownFields.WriteTo(output);
389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
390 public int CalculateSize() {
392 if (Name.Length != 0) {
393 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
395 if (_unknownFields != null) {
396 size += _unknownFields.CalculateSize();
401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
402 public void MergeFrom(GaugeRequest other) {
406 if (other.Name.Length != 0) {
409 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
413 public void MergeFrom(pb::CodedInputStream input) {
415 while ((tag = input.ReadTag()) != 0) {
418 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
421 Name = input.ReadString();
430 public sealed partial class EmptyMessage : pb::IMessage<EmptyMessage> {
431 private static readonly pb::MessageParser<EmptyMessage> _parser = new pb::MessageParser<EmptyMessage>(() => new EmptyMessage());
432 private pb::UnknownFieldSet _unknownFields;
433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
434 public static pb::MessageParser<EmptyMessage> Parser { get { return _parser; } }
436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
437 public static pbr::MessageDescriptor Descriptor {
438 get { return global::Grpc.Testing.MetricsReflection.Descriptor.MessageTypes[2]; }
441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
442 pbr::MessageDescriptor pb::IMessage.Descriptor {
443 get { return Descriptor; }
446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
447 public EmptyMessage() {
451 partial void OnConstruction();
453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
454 public EmptyMessage(EmptyMessage other) : this() {
455 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
459 public EmptyMessage Clone() {
460 return new EmptyMessage(this);
463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
464 public override bool Equals(object other) {
465 return Equals(other as EmptyMessage);
468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
469 public bool Equals(EmptyMessage other) {
470 if (ReferenceEquals(other, null)) {
473 if (ReferenceEquals(other, this)) {
476 return Equals(_unknownFields, other._unknownFields);
479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
480 public override int GetHashCode() {
482 if (_unknownFields != null) {
483 hash ^= _unknownFields.GetHashCode();
488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
489 public override string ToString() {
490 return pb::JsonFormatter.ToDiagnosticString(this);
493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
494 public void WriteTo(pb::CodedOutputStream output) {
495 if (_unknownFields != null) {
496 _unknownFields.WriteTo(output);
500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
501 public int CalculateSize() {
503 if (_unknownFields != null) {
504 size += _unknownFields.CalculateSize();
509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
510 public void MergeFrom(EmptyMessage other) {
514 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
518 public void MergeFrom(pb::CodedInputStream input) {
520 while ((tag = input.ReadTag()) != 0) {
523 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
535 #endregion Designer generated code