2 // Generated by the protocol buffer compiler. DO NOT EDIT!
3 // source: src/proto/grpc/testing/echo_messages.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/echo_messages.proto</summary>
15 public static partial class EchoMessagesReflection {
18 /// <summary>File descriptor for src/proto/grpc/testing/echo_messages.proto</summary>
19 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
22 private static pbr::FileDescriptor descriptor;
24 static EchoMessagesReflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
27 "CipzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2VjaG9fbWVzc2FnZXMucHJvdG8S",
28 "DGdycGMudGVzdGluZyIyCglEZWJ1Z0luZm8SFQoNc3RhY2tfZW50cmllcxgB",
29 "IAMoCRIOCgZkZXRhaWwYAiABKAkiUAoLRXJyb3JTdGF0dXMSDAoEY29kZRgB",
30 "IAEoBRIVCg1lcnJvcl9tZXNzYWdlGAIgASgJEhwKFGJpbmFyeV9lcnJvcl9k",
31 "ZXRhaWxzGAMgASgJIqAECg1SZXF1ZXN0UGFyYW1zEhUKDWVjaG9fZGVhZGxp",
32 "bmUYASABKAgSHgoWY2xpZW50X2NhbmNlbF9hZnRlcl91cxgCIAEoBRIeChZz",
33 "ZXJ2ZXJfY2FuY2VsX2FmdGVyX3VzGAMgASgFEhUKDWVjaG9fbWV0YWRhdGEY",
34 "BCABKAgSGgoSY2hlY2tfYXV0aF9jb250ZXh0GAUgASgIEh8KF3Jlc3BvbnNl",
35 "X21lc3NhZ2VfbGVuZ3RoGAYgASgFEhEKCWVjaG9fcGVlchgHIAEoCBIgChhl",
36 "eHBlY3RlZF9jbGllbnRfaWRlbnRpdHkYCCABKAkSHAoUc2tpcF9jYW5jZWxs",
37 "ZWRfY2hlY2sYCSABKAgSKAogZXhwZWN0ZWRfdHJhbnNwb3J0X3NlY3VyaXR5",
38 "X3R5cGUYCiABKAkSKwoKZGVidWdfaW5mbxgLIAEoCzIXLmdycGMudGVzdGlu",
39 "Zy5EZWJ1Z0luZm8SEgoKc2VydmVyX2RpZRgMIAEoCBIcChRiaW5hcnlfZXJy",
40 "b3JfZGV0YWlscxgNIAEoCRIxCg5leHBlY3RlZF9lcnJvchgOIAEoCzIZLmdy",
41 "cGMudGVzdGluZy5FcnJvclN0YXR1cxIXCg9zZXJ2ZXJfc2xlZXBfdXMYDyAB",
42 "KAUSGwoTYmFja2VuZF9jaGFubmVsX2lkeBgQIAEoBRIfChdlY2hvX21ldGFk",
43 "YXRhX2luaXRpYWxseRgRIAEoCCJKCgtFY2hvUmVxdWVzdBIPCgdtZXNzYWdl",
44 "GAEgASgJEioKBXBhcmFtGAIgASgLMhsuZ3JwYy50ZXN0aW5nLlJlcXVlc3RQ",
45 "YXJhbXMiRgoOUmVzcG9uc2VQYXJhbXMSGAoQcmVxdWVzdF9kZWFkbGluZRgB",
46 "IAEoAxIMCgRob3N0GAIgASgJEgwKBHBlZXIYAyABKAkiTAoMRWNob1Jlc3Bv",
47 "bnNlEg8KB21lc3NhZ2UYASABKAkSKwoFcGFyYW0YAiABKAsyHC5ncnBjLnRl",
48 "c3RpbmcuUmVzcG9uc2VQYXJhbXNCA/gBAWIGcHJvdG8z"));
49 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
50 new pbr::FileDescriptor[] { },
51 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
52 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.DebugInfo), global::Grpc.Testing.DebugInfo.Parser, new[]{ "StackEntries", "Detail" }, null, null, null),
53 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ErrorStatus), global::Grpc.Testing.ErrorStatus.Parser, new[]{ "Code", "ErrorMessage", "BinaryErrorDetails" }, null, null, null),
54 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.RequestParams), global::Grpc.Testing.RequestParams.Parser, new[]{ "EchoDeadline", "ClientCancelAfterUs", "ServerCancelAfterUs", "EchoMetadata", "CheckAuthContext", "ResponseMessageLength", "EchoPeer", "ExpectedClientIdentity", "SkipCancelledCheck", "ExpectedTransportSecurityType", "DebugInfo", "ServerDie", "BinaryErrorDetails", "ExpectedError", "ServerSleepUs", "BackendChannelIdx", "EchoMetadataInitially" }, null, null, null),
55 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EchoRequest), global::Grpc.Testing.EchoRequest.Parser, new[]{ "Message", "Param" }, null, null, null),
56 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ResponseParams), global::Grpc.Testing.ResponseParams.Parser, new[]{ "RequestDeadline", "Host", "Peer" }, null, null, null),
57 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EchoResponse), global::Grpc.Testing.EchoResponse.Parser, new[]{ "Message", "Param" }, null, null, null)
65 /// Message to be echoed back serialized in trailer.
67 public sealed partial class DebugInfo : pb::IMessage<DebugInfo> {
68 private static readonly pb::MessageParser<DebugInfo> _parser = new pb::MessageParser<DebugInfo>(() => new DebugInfo());
69 private pb::UnknownFieldSet _unknownFields;
70 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
71 public static pb::MessageParser<DebugInfo> Parser { get { return _parser; } }
73 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
74 public static pbr::MessageDescriptor Descriptor {
75 get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[0]; }
78 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
79 pbr::MessageDescriptor pb::IMessage.Descriptor {
80 get { return Descriptor; }
83 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
88 partial void OnConstruction();
90 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
91 public DebugInfo(DebugInfo other) : this() {
92 stackEntries_ = other.stackEntries_.Clone();
93 detail_ = other.detail_;
94 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
97 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
98 public DebugInfo Clone() {
99 return new DebugInfo(this);
102 /// <summary>Field number for the "stack_entries" field.</summary>
103 public const int StackEntriesFieldNumber = 1;
104 private static readonly pb::FieldCodec<string> _repeated_stackEntries_codec
105 = pb::FieldCodec.ForString(10);
106 private readonly pbc::RepeatedField<string> stackEntries_ = new pbc::RepeatedField<string>();
107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
108 public pbc::RepeatedField<string> StackEntries {
109 get { return stackEntries_; }
112 /// <summary>Field number for the "detail" field.</summary>
113 public const int DetailFieldNumber = 2;
114 private string detail_ = "";
115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
116 public string Detail {
117 get { return detail_; }
119 detail_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
124 public override bool Equals(object other) {
125 return Equals(other as DebugInfo);
128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
129 public bool Equals(DebugInfo other) {
130 if (ReferenceEquals(other, null)) {
133 if (ReferenceEquals(other, this)) {
136 if(!stackEntries_.Equals(other.stackEntries_)) return false;
137 if (Detail != other.Detail) return false;
138 return Equals(_unknownFields, other._unknownFields);
141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
142 public override int GetHashCode() {
144 hash ^= stackEntries_.GetHashCode();
145 if (Detail.Length != 0) hash ^= Detail.GetHashCode();
146 if (_unknownFields != null) {
147 hash ^= _unknownFields.GetHashCode();
152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
153 public override string ToString() {
154 return pb::JsonFormatter.ToDiagnosticString(this);
157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
158 public void WriteTo(pb::CodedOutputStream output) {
159 stackEntries_.WriteTo(output, _repeated_stackEntries_codec);
160 if (Detail.Length != 0) {
161 output.WriteRawTag(18);
162 output.WriteString(Detail);
164 if (_unknownFields != null) {
165 _unknownFields.WriteTo(output);
169 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
170 public int CalculateSize() {
172 size += stackEntries_.CalculateSize(_repeated_stackEntries_codec);
173 if (Detail.Length != 0) {
174 size += 1 + pb::CodedOutputStream.ComputeStringSize(Detail);
176 if (_unknownFields != null) {
177 size += _unknownFields.CalculateSize();
182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
183 public void MergeFrom(DebugInfo other) {
187 stackEntries_.Add(other.stackEntries_);
188 if (other.Detail.Length != 0) {
189 Detail = other.Detail;
191 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
195 public void MergeFrom(pb::CodedInputStream input) {
197 while ((tag = input.ReadTag()) != 0) {
200 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
203 stackEntries_.AddEntriesFrom(input, _repeated_stackEntries_codec);
207 Detail = input.ReadString();
217 /// Error status client expects to see.
219 public sealed partial class ErrorStatus : pb::IMessage<ErrorStatus> {
220 private static readonly pb::MessageParser<ErrorStatus> _parser = new pb::MessageParser<ErrorStatus>(() => new ErrorStatus());
221 private pb::UnknownFieldSet _unknownFields;
222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
223 public static pb::MessageParser<ErrorStatus> Parser { get { return _parser; } }
225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
226 public static pbr::MessageDescriptor Descriptor {
227 get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[1]; }
230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
231 pbr::MessageDescriptor pb::IMessage.Descriptor {
232 get { return Descriptor; }
235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
236 public ErrorStatus() {
240 partial void OnConstruction();
242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
243 public ErrorStatus(ErrorStatus other) : this() {
245 errorMessage_ = other.errorMessage_;
246 binaryErrorDetails_ = other.binaryErrorDetails_;
247 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
251 public ErrorStatus Clone() {
252 return new ErrorStatus(this);
255 /// <summary>Field number for the "code" field.</summary>
256 public const int CodeFieldNumber = 1;
258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
260 get { return code_; }
266 /// <summary>Field number for the "error_message" field.</summary>
267 public const int ErrorMessageFieldNumber = 2;
268 private string errorMessage_ = "";
269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
270 public string ErrorMessage {
271 get { return errorMessage_; }
273 errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
277 /// <summary>Field number for the "binary_error_details" field.</summary>
278 public const int BinaryErrorDetailsFieldNumber = 3;
279 private string binaryErrorDetails_ = "";
280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
281 public string BinaryErrorDetails {
282 get { return binaryErrorDetails_; }
284 binaryErrorDetails_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
289 public override bool Equals(object other) {
290 return Equals(other as ErrorStatus);
293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
294 public bool Equals(ErrorStatus other) {
295 if (ReferenceEquals(other, null)) {
298 if (ReferenceEquals(other, this)) {
301 if (Code != other.Code) return false;
302 if (ErrorMessage != other.ErrorMessage) return false;
303 if (BinaryErrorDetails != other.BinaryErrorDetails) return false;
304 return Equals(_unknownFields, other._unknownFields);
307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
308 public override int GetHashCode() {
310 if (Code != 0) hash ^= Code.GetHashCode();
311 if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
312 if (BinaryErrorDetails.Length != 0) hash ^= BinaryErrorDetails.GetHashCode();
313 if (_unknownFields != null) {
314 hash ^= _unknownFields.GetHashCode();
319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
320 public override string ToString() {
321 return pb::JsonFormatter.ToDiagnosticString(this);
324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
325 public void WriteTo(pb::CodedOutputStream output) {
327 output.WriteRawTag(8);
328 output.WriteInt32(Code);
330 if (ErrorMessage.Length != 0) {
331 output.WriteRawTag(18);
332 output.WriteString(ErrorMessage);
334 if (BinaryErrorDetails.Length != 0) {
335 output.WriteRawTag(26);
336 output.WriteString(BinaryErrorDetails);
338 if (_unknownFields != null) {
339 _unknownFields.WriteTo(output);
343 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
344 public int CalculateSize() {
347 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
349 if (ErrorMessage.Length != 0) {
350 size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage);
352 if (BinaryErrorDetails.Length != 0) {
353 size += 1 + pb::CodedOutputStream.ComputeStringSize(BinaryErrorDetails);
355 if (_unknownFields != null) {
356 size += _unknownFields.CalculateSize();
361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
362 public void MergeFrom(ErrorStatus other) {
366 if (other.Code != 0) {
369 if (other.ErrorMessage.Length != 0) {
370 ErrorMessage = other.ErrorMessage;
372 if (other.BinaryErrorDetails.Length != 0) {
373 BinaryErrorDetails = other.BinaryErrorDetails;
375 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
379 public void MergeFrom(pb::CodedInputStream input) {
381 while ((tag = input.ReadTag()) != 0) {
384 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
387 Code = input.ReadInt32();
391 ErrorMessage = input.ReadString();
395 BinaryErrorDetails = input.ReadString();
404 public sealed partial class RequestParams : pb::IMessage<RequestParams> {
405 private static readonly pb::MessageParser<RequestParams> _parser = new pb::MessageParser<RequestParams>(() => new RequestParams());
406 private pb::UnknownFieldSet _unknownFields;
407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
408 public static pb::MessageParser<RequestParams> Parser { get { return _parser; } }
410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
411 public static pbr::MessageDescriptor Descriptor {
412 get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[2]; }
415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
416 pbr::MessageDescriptor pb::IMessage.Descriptor {
417 get { return Descriptor; }
420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
421 public RequestParams() {
425 partial void OnConstruction();
427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
428 public RequestParams(RequestParams other) : this() {
429 echoDeadline_ = other.echoDeadline_;
430 clientCancelAfterUs_ = other.clientCancelAfterUs_;
431 serverCancelAfterUs_ = other.serverCancelAfterUs_;
432 echoMetadata_ = other.echoMetadata_;
433 checkAuthContext_ = other.checkAuthContext_;
434 responseMessageLength_ = other.responseMessageLength_;
435 echoPeer_ = other.echoPeer_;
436 expectedClientIdentity_ = other.expectedClientIdentity_;
437 skipCancelledCheck_ = other.skipCancelledCheck_;
438 expectedTransportSecurityType_ = other.expectedTransportSecurityType_;
439 debugInfo_ = other.debugInfo_ != null ? other.debugInfo_.Clone() : null;
440 serverDie_ = other.serverDie_;
441 binaryErrorDetails_ = other.binaryErrorDetails_;
442 expectedError_ = other.expectedError_ != null ? other.expectedError_.Clone() : null;
443 serverSleepUs_ = other.serverSleepUs_;
444 backendChannelIdx_ = other.backendChannelIdx_;
445 echoMetadataInitially_ = other.echoMetadataInitially_;
446 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
450 public RequestParams Clone() {
451 return new RequestParams(this);
454 /// <summary>Field number for the "echo_deadline" field.</summary>
455 public const int EchoDeadlineFieldNumber = 1;
456 private bool echoDeadline_;
457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
458 public bool EchoDeadline {
459 get { return echoDeadline_; }
461 echoDeadline_ = value;
465 /// <summary>Field number for the "client_cancel_after_us" field.</summary>
466 public const int ClientCancelAfterUsFieldNumber = 2;
467 private int clientCancelAfterUs_;
468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
469 public int ClientCancelAfterUs {
470 get { return clientCancelAfterUs_; }
472 clientCancelAfterUs_ = value;
476 /// <summary>Field number for the "server_cancel_after_us" field.</summary>
477 public const int ServerCancelAfterUsFieldNumber = 3;
478 private int serverCancelAfterUs_;
479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
480 public int ServerCancelAfterUs {
481 get { return serverCancelAfterUs_; }
483 serverCancelAfterUs_ = value;
487 /// <summary>Field number for the "echo_metadata" field.</summary>
488 public const int EchoMetadataFieldNumber = 4;
489 private bool echoMetadata_;
490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
491 public bool EchoMetadata {
492 get { return echoMetadata_; }
494 echoMetadata_ = value;
498 /// <summary>Field number for the "check_auth_context" field.</summary>
499 public const int CheckAuthContextFieldNumber = 5;
500 private bool checkAuthContext_;
501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
502 public bool CheckAuthContext {
503 get { return checkAuthContext_; }
505 checkAuthContext_ = value;
509 /// <summary>Field number for the "response_message_length" field.</summary>
510 public const int ResponseMessageLengthFieldNumber = 6;
511 private int responseMessageLength_;
512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
513 public int ResponseMessageLength {
514 get { return responseMessageLength_; }
516 responseMessageLength_ = value;
520 /// <summary>Field number for the "echo_peer" field.</summary>
521 public const int EchoPeerFieldNumber = 7;
522 private bool echoPeer_;
523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
524 public bool EchoPeer {
525 get { return echoPeer_; }
531 /// <summary>Field number for the "expected_client_identity" field.</summary>
532 public const int ExpectedClientIdentityFieldNumber = 8;
533 private string expectedClientIdentity_ = "";
535 /// will force check_auth_context.
537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
538 public string ExpectedClientIdentity {
539 get { return expectedClientIdentity_; }
541 expectedClientIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
545 /// <summary>Field number for the "skip_cancelled_check" field.</summary>
546 public const int SkipCancelledCheckFieldNumber = 9;
547 private bool skipCancelledCheck_;
548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
549 public bool SkipCancelledCheck {
550 get { return skipCancelledCheck_; }
552 skipCancelledCheck_ = value;
556 /// <summary>Field number for the "expected_transport_security_type" field.</summary>
557 public const int ExpectedTransportSecurityTypeFieldNumber = 10;
558 private string expectedTransportSecurityType_ = "";
559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
560 public string ExpectedTransportSecurityType {
561 get { return expectedTransportSecurityType_; }
563 expectedTransportSecurityType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
567 /// <summary>Field number for the "debug_info" field.</summary>
568 public const int DebugInfoFieldNumber = 11;
569 private global::Grpc.Testing.DebugInfo debugInfo_;
570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
571 public global::Grpc.Testing.DebugInfo DebugInfo {
572 get { return debugInfo_; }
578 /// <summary>Field number for the "server_die" field.</summary>
579 public const int ServerDieFieldNumber = 12;
580 private bool serverDie_;
582 /// Server should not see a request with this set.
584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
585 public bool ServerDie {
586 get { return serverDie_; }
592 /// <summary>Field number for the "binary_error_details" field.</summary>
593 public const int BinaryErrorDetailsFieldNumber = 13;
594 private string binaryErrorDetails_ = "";
595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
596 public string BinaryErrorDetails {
597 get { return binaryErrorDetails_; }
599 binaryErrorDetails_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
603 /// <summary>Field number for the "expected_error" field.</summary>
604 public const int ExpectedErrorFieldNumber = 14;
605 private global::Grpc.Testing.ErrorStatus expectedError_;
606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
607 public global::Grpc.Testing.ErrorStatus ExpectedError {
608 get { return expectedError_; }
610 expectedError_ = value;
614 /// <summary>Field number for the "server_sleep_us" field.</summary>
615 public const int ServerSleepUsFieldNumber = 15;
616 private int serverSleepUs_;
618 /// Amount to sleep when invoking server
620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
621 public int ServerSleepUs {
622 get { return serverSleepUs_; }
624 serverSleepUs_ = value;
628 /// <summary>Field number for the "backend_channel_idx" field.</summary>
629 public const int BackendChannelIdxFieldNumber = 16;
630 private int backendChannelIdx_;
632 /// which backend to send request to
634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
635 public int BackendChannelIdx {
636 get { return backendChannelIdx_; }
638 backendChannelIdx_ = value;
642 /// <summary>Field number for the "echo_metadata_initially" field.</summary>
643 public const int EchoMetadataInitiallyFieldNumber = 17;
644 private bool echoMetadataInitially_;
645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
646 public bool EchoMetadataInitially {
647 get { return echoMetadataInitially_; }
649 echoMetadataInitially_ = value;
653 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
654 public override bool Equals(object other) {
655 return Equals(other as RequestParams);
658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
659 public bool Equals(RequestParams other) {
660 if (ReferenceEquals(other, null)) {
663 if (ReferenceEquals(other, this)) {
666 if (EchoDeadline != other.EchoDeadline) return false;
667 if (ClientCancelAfterUs != other.ClientCancelAfterUs) return false;
668 if (ServerCancelAfterUs != other.ServerCancelAfterUs) return false;
669 if (EchoMetadata != other.EchoMetadata) return false;
670 if (CheckAuthContext != other.CheckAuthContext) return false;
671 if (ResponseMessageLength != other.ResponseMessageLength) return false;
672 if (EchoPeer != other.EchoPeer) return false;
673 if (ExpectedClientIdentity != other.ExpectedClientIdentity) return false;
674 if (SkipCancelledCheck != other.SkipCancelledCheck) return false;
675 if (ExpectedTransportSecurityType != other.ExpectedTransportSecurityType) return false;
676 if (!object.Equals(DebugInfo, other.DebugInfo)) return false;
677 if (ServerDie != other.ServerDie) return false;
678 if (BinaryErrorDetails != other.BinaryErrorDetails) return false;
679 if (!object.Equals(ExpectedError, other.ExpectedError)) return false;
680 if (ServerSleepUs != other.ServerSleepUs) return false;
681 if (BackendChannelIdx != other.BackendChannelIdx) return false;
682 if (EchoMetadataInitially != other.EchoMetadataInitially) return false;
683 return Equals(_unknownFields, other._unknownFields);
686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
687 public override int GetHashCode() {
689 if (EchoDeadline != false) hash ^= EchoDeadline.GetHashCode();
690 if (ClientCancelAfterUs != 0) hash ^= ClientCancelAfterUs.GetHashCode();
691 if (ServerCancelAfterUs != 0) hash ^= ServerCancelAfterUs.GetHashCode();
692 if (EchoMetadata != false) hash ^= EchoMetadata.GetHashCode();
693 if (CheckAuthContext != false) hash ^= CheckAuthContext.GetHashCode();
694 if (ResponseMessageLength != 0) hash ^= ResponseMessageLength.GetHashCode();
695 if (EchoPeer != false) hash ^= EchoPeer.GetHashCode();
696 if (ExpectedClientIdentity.Length != 0) hash ^= ExpectedClientIdentity.GetHashCode();
697 if (SkipCancelledCheck != false) hash ^= SkipCancelledCheck.GetHashCode();
698 if (ExpectedTransportSecurityType.Length != 0) hash ^= ExpectedTransportSecurityType.GetHashCode();
699 if (debugInfo_ != null) hash ^= DebugInfo.GetHashCode();
700 if (ServerDie != false) hash ^= ServerDie.GetHashCode();
701 if (BinaryErrorDetails.Length != 0) hash ^= BinaryErrorDetails.GetHashCode();
702 if (expectedError_ != null) hash ^= ExpectedError.GetHashCode();
703 if (ServerSleepUs != 0) hash ^= ServerSleepUs.GetHashCode();
704 if (BackendChannelIdx != 0) hash ^= BackendChannelIdx.GetHashCode();
705 if (EchoMetadataInitially != false) hash ^= EchoMetadataInitially.GetHashCode();
706 if (_unknownFields != null) {
707 hash ^= _unknownFields.GetHashCode();
712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
713 public override string ToString() {
714 return pb::JsonFormatter.ToDiagnosticString(this);
717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
718 public void WriteTo(pb::CodedOutputStream output) {
719 if (EchoDeadline != false) {
720 output.WriteRawTag(8);
721 output.WriteBool(EchoDeadline);
723 if (ClientCancelAfterUs != 0) {
724 output.WriteRawTag(16);
725 output.WriteInt32(ClientCancelAfterUs);
727 if (ServerCancelAfterUs != 0) {
728 output.WriteRawTag(24);
729 output.WriteInt32(ServerCancelAfterUs);
731 if (EchoMetadata != false) {
732 output.WriteRawTag(32);
733 output.WriteBool(EchoMetadata);
735 if (CheckAuthContext != false) {
736 output.WriteRawTag(40);
737 output.WriteBool(CheckAuthContext);
739 if (ResponseMessageLength != 0) {
740 output.WriteRawTag(48);
741 output.WriteInt32(ResponseMessageLength);
743 if (EchoPeer != false) {
744 output.WriteRawTag(56);
745 output.WriteBool(EchoPeer);
747 if (ExpectedClientIdentity.Length != 0) {
748 output.WriteRawTag(66);
749 output.WriteString(ExpectedClientIdentity);
751 if (SkipCancelledCheck != false) {
752 output.WriteRawTag(72);
753 output.WriteBool(SkipCancelledCheck);
755 if (ExpectedTransportSecurityType.Length != 0) {
756 output.WriteRawTag(82);
757 output.WriteString(ExpectedTransportSecurityType);
759 if (debugInfo_ != null) {
760 output.WriteRawTag(90);
761 output.WriteMessage(DebugInfo);
763 if (ServerDie != false) {
764 output.WriteRawTag(96);
765 output.WriteBool(ServerDie);
767 if (BinaryErrorDetails.Length != 0) {
768 output.WriteRawTag(106);
769 output.WriteString(BinaryErrorDetails);
771 if (expectedError_ != null) {
772 output.WriteRawTag(114);
773 output.WriteMessage(ExpectedError);
775 if (ServerSleepUs != 0) {
776 output.WriteRawTag(120);
777 output.WriteInt32(ServerSleepUs);
779 if (BackendChannelIdx != 0) {
780 output.WriteRawTag(128, 1);
781 output.WriteInt32(BackendChannelIdx);
783 if (EchoMetadataInitially != false) {
784 output.WriteRawTag(136, 1);
785 output.WriteBool(EchoMetadataInitially);
787 if (_unknownFields != null) {
788 _unknownFields.WriteTo(output);
792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
793 public int CalculateSize() {
795 if (EchoDeadline != false) {
798 if (ClientCancelAfterUs != 0) {
799 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClientCancelAfterUs);
801 if (ServerCancelAfterUs != 0) {
802 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerCancelAfterUs);
804 if (EchoMetadata != false) {
807 if (CheckAuthContext != false) {
810 if (ResponseMessageLength != 0) {
811 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseMessageLength);
813 if (EchoPeer != false) {
816 if (ExpectedClientIdentity.Length != 0) {
817 size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpectedClientIdentity);
819 if (SkipCancelledCheck != false) {
822 if (ExpectedTransportSecurityType.Length != 0) {
823 size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpectedTransportSecurityType);
825 if (debugInfo_ != null) {
826 size += 1 + pb::CodedOutputStream.ComputeMessageSize(DebugInfo);
828 if (ServerDie != false) {
831 if (BinaryErrorDetails.Length != 0) {
832 size += 1 + pb::CodedOutputStream.ComputeStringSize(BinaryErrorDetails);
834 if (expectedError_ != null) {
835 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectedError);
837 if (ServerSleepUs != 0) {
838 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerSleepUs);
840 if (BackendChannelIdx != 0) {
841 size += 2 + pb::CodedOutputStream.ComputeInt32Size(BackendChannelIdx);
843 if (EchoMetadataInitially != false) {
846 if (_unknownFields != null) {
847 size += _unknownFields.CalculateSize();
852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
853 public void MergeFrom(RequestParams other) {
857 if (other.EchoDeadline != false) {
858 EchoDeadline = other.EchoDeadline;
860 if (other.ClientCancelAfterUs != 0) {
861 ClientCancelAfterUs = other.ClientCancelAfterUs;
863 if (other.ServerCancelAfterUs != 0) {
864 ServerCancelAfterUs = other.ServerCancelAfterUs;
866 if (other.EchoMetadata != false) {
867 EchoMetadata = other.EchoMetadata;
869 if (other.CheckAuthContext != false) {
870 CheckAuthContext = other.CheckAuthContext;
872 if (other.ResponseMessageLength != 0) {
873 ResponseMessageLength = other.ResponseMessageLength;
875 if (other.EchoPeer != false) {
876 EchoPeer = other.EchoPeer;
878 if (other.ExpectedClientIdentity.Length != 0) {
879 ExpectedClientIdentity = other.ExpectedClientIdentity;
881 if (other.SkipCancelledCheck != false) {
882 SkipCancelledCheck = other.SkipCancelledCheck;
884 if (other.ExpectedTransportSecurityType.Length != 0) {
885 ExpectedTransportSecurityType = other.ExpectedTransportSecurityType;
887 if (other.debugInfo_ != null) {
888 if (debugInfo_ == null) {
889 DebugInfo = new global::Grpc.Testing.DebugInfo();
891 DebugInfo.MergeFrom(other.DebugInfo);
893 if (other.ServerDie != false) {
894 ServerDie = other.ServerDie;
896 if (other.BinaryErrorDetails.Length != 0) {
897 BinaryErrorDetails = other.BinaryErrorDetails;
899 if (other.expectedError_ != null) {
900 if (expectedError_ == null) {
901 ExpectedError = new global::Grpc.Testing.ErrorStatus();
903 ExpectedError.MergeFrom(other.ExpectedError);
905 if (other.ServerSleepUs != 0) {
906 ServerSleepUs = other.ServerSleepUs;
908 if (other.BackendChannelIdx != 0) {
909 BackendChannelIdx = other.BackendChannelIdx;
911 if (other.EchoMetadataInitially != false) {
912 EchoMetadataInitially = other.EchoMetadataInitially;
914 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
918 public void MergeFrom(pb::CodedInputStream input) {
920 while ((tag = input.ReadTag()) != 0) {
923 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
926 EchoDeadline = input.ReadBool();
930 ClientCancelAfterUs = input.ReadInt32();
934 ServerCancelAfterUs = input.ReadInt32();
938 EchoMetadata = input.ReadBool();
942 CheckAuthContext = input.ReadBool();
946 ResponseMessageLength = input.ReadInt32();
950 EchoPeer = input.ReadBool();
954 ExpectedClientIdentity = input.ReadString();
958 SkipCancelledCheck = input.ReadBool();
962 ExpectedTransportSecurityType = input.ReadString();
966 if (debugInfo_ == null) {
967 DebugInfo = new global::Grpc.Testing.DebugInfo();
969 input.ReadMessage(DebugInfo);
973 ServerDie = input.ReadBool();
977 BinaryErrorDetails = input.ReadString();
981 if (expectedError_ == null) {
982 ExpectedError = new global::Grpc.Testing.ErrorStatus();
984 input.ReadMessage(ExpectedError);
988 ServerSleepUs = input.ReadInt32();
992 BackendChannelIdx = input.ReadInt32();
996 EchoMetadataInitially = input.ReadBool();
1005 public sealed partial class EchoRequest : pb::IMessage<EchoRequest> {
1006 private static readonly pb::MessageParser<EchoRequest> _parser = new pb::MessageParser<EchoRequest>(() => new EchoRequest());
1007 private pb::UnknownFieldSet _unknownFields;
1008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1009 public static pb::MessageParser<EchoRequest> Parser { get { return _parser; } }
1011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1012 public static pbr::MessageDescriptor Descriptor {
1013 get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[3]; }
1016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1017 pbr::MessageDescriptor pb::IMessage.Descriptor {
1018 get { return Descriptor; }
1021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1022 public EchoRequest() {
1026 partial void OnConstruction();
1028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1029 public EchoRequest(EchoRequest other) : this() {
1030 message_ = other.message_;
1031 param_ = other.param_ != null ? other.param_.Clone() : null;
1032 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1036 public EchoRequest Clone() {
1037 return new EchoRequest(this);
1040 /// <summary>Field number for the "message" field.</summary>
1041 public const int MessageFieldNumber = 1;
1042 private string message_ = "";
1043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1044 public string Message {
1045 get { return message_; }
1047 message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1051 /// <summary>Field number for the "param" field.</summary>
1052 public const int ParamFieldNumber = 2;
1053 private global::Grpc.Testing.RequestParams param_;
1054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1055 public global::Grpc.Testing.RequestParams Param {
1056 get { return param_; }
1062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1063 public override bool Equals(object other) {
1064 return Equals(other as EchoRequest);
1067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1068 public bool Equals(EchoRequest other) {
1069 if (ReferenceEquals(other, null)) {
1072 if (ReferenceEquals(other, this)) {
1075 if (Message != other.Message) return false;
1076 if (!object.Equals(Param, other.Param)) return false;
1077 return Equals(_unknownFields, other._unknownFields);
1080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1081 public override int GetHashCode() {
1083 if (Message.Length != 0) hash ^= Message.GetHashCode();
1084 if (param_ != null) hash ^= Param.GetHashCode();
1085 if (_unknownFields != null) {
1086 hash ^= _unknownFields.GetHashCode();
1091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1092 public override string ToString() {
1093 return pb::JsonFormatter.ToDiagnosticString(this);
1096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1097 public void WriteTo(pb::CodedOutputStream output) {
1098 if (Message.Length != 0) {
1099 output.WriteRawTag(10);
1100 output.WriteString(Message);
1102 if (param_ != null) {
1103 output.WriteRawTag(18);
1104 output.WriteMessage(Param);
1106 if (_unknownFields != null) {
1107 _unknownFields.WriteTo(output);
1111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1112 public int CalculateSize() {
1114 if (Message.Length != 0) {
1115 size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
1117 if (param_ != null) {
1118 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Param);
1120 if (_unknownFields != null) {
1121 size += _unknownFields.CalculateSize();
1126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1127 public void MergeFrom(EchoRequest other) {
1128 if (other == null) {
1131 if (other.Message.Length != 0) {
1132 Message = other.Message;
1134 if (other.param_ != null) {
1135 if (param_ == null) {
1136 Param = new global::Grpc.Testing.RequestParams();
1138 Param.MergeFrom(other.Param);
1140 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1144 public void MergeFrom(pb::CodedInputStream input) {
1146 while ((tag = input.ReadTag()) != 0) {
1149 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1152 Message = input.ReadString();
1156 if (param_ == null) {
1157 Param = new global::Grpc.Testing.RequestParams();
1159 input.ReadMessage(Param);
1168 public sealed partial class ResponseParams : pb::IMessage<ResponseParams> {
1169 private static readonly pb::MessageParser<ResponseParams> _parser = new pb::MessageParser<ResponseParams>(() => new ResponseParams());
1170 private pb::UnknownFieldSet _unknownFields;
1171 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1172 public static pb::MessageParser<ResponseParams> Parser { get { return _parser; } }
1174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1175 public static pbr::MessageDescriptor Descriptor {
1176 get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[4]; }
1179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1180 pbr::MessageDescriptor pb::IMessage.Descriptor {
1181 get { return Descriptor; }
1184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1185 public ResponseParams() {
1189 partial void OnConstruction();
1191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1192 public ResponseParams(ResponseParams other) : this() {
1193 requestDeadline_ = other.requestDeadline_;
1194 host_ = other.host_;
1195 peer_ = other.peer_;
1196 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1200 public ResponseParams Clone() {
1201 return new ResponseParams(this);
1204 /// <summary>Field number for the "request_deadline" field.</summary>
1205 public const int RequestDeadlineFieldNumber = 1;
1206 private long requestDeadline_;
1207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1208 public long RequestDeadline {
1209 get { return requestDeadline_; }
1211 requestDeadline_ = value;
1215 /// <summary>Field number for the "host" field.</summary>
1216 public const int HostFieldNumber = 2;
1217 private string host_ = "";
1218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1219 public string Host {
1220 get { return host_; }
1222 host_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1226 /// <summary>Field number for the "peer" field.</summary>
1227 public const int PeerFieldNumber = 3;
1228 private string peer_ = "";
1229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1230 public string Peer {
1231 get { return peer_; }
1233 peer_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1237 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1238 public override bool Equals(object other) {
1239 return Equals(other as ResponseParams);
1242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1243 public bool Equals(ResponseParams other) {
1244 if (ReferenceEquals(other, null)) {
1247 if (ReferenceEquals(other, this)) {
1250 if (RequestDeadline != other.RequestDeadline) return false;
1251 if (Host != other.Host) return false;
1252 if (Peer != other.Peer) return false;
1253 return Equals(_unknownFields, other._unknownFields);
1256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1257 public override int GetHashCode() {
1259 if (RequestDeadline != 0L) hash ^= RequestDeadline.GetHashCode();
1260 if (Host.Length != 0) hash ^= Host.GetHashCode();
1261 if (Peer.Length != 0) hash ^= Peer.GetHashCode();
1262 if (_unknownFields != null) {
1263 hash ^= _unknownFields.GetHashCode();
1268 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1269 public override string ToString() {
1270 return pb::JsonFormatter.ToDiagnosticString(this);
1273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1274 public void WriteTo(pb::CodedOutputStream output) {
1275 if (RequestDeadline != 0L) {
1276 output.WriteRawTag(8);
1277 output.WriteInt64(RequestDeadline);
1279 if (Host.Length != 0) {
1280 output.WriteRawTag(18);
1281 output.WriteString(Host);
1283 if (Peer.Length != 0) {
1284 output.WriteRawTag(26);
1285 output.WriteString(Peer);
1287 if (_unknownFields != null) {
1288 _unknownFields.WriteTo(output);
1292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1293 public int CalculateSize() {
1295 if (RequestDeadline != 0L) {
1296 size += 1 + pb::CodedOutputStream.ComputeInt64Size(RequestDeadline);
1298 if (Host.Length != 0) {
1299 size += 1 + pb::CodedOutputStream.ComputeStringSize(Host);
1301 if (Peer.Length != 0) {
1302 size += 1 + pb::CodedOutputStream.ComputeStringSize(Peer);
1304 if (_unknownFields != null) {
1305 size += _unknownFields.CalculateSize();
1310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1311 public void MergeFrom(ResponseParams other) {
1312 if (other == null) {
1315 if (other.RequestDeadline != 0L) {
1316 RequestDeadline = other.RequestDeadline;
1318 if (other.Host.Length != 0) {
1321 if (other.Peer.Length != 0) {
1324 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1328 public void MergeFrom(pb::CodedInputStream input) {
1330 while ((tag = input.ReadTag()) != 0) {
1333 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1336 RequestDeadline = input.ReadInt64();
1340 Host = input.ReadString();
1344 Peer = input.ReadString();
1353 public sealed partial class EchoResponse : pb::IMessage<EchoResponse> {
1354 private static readonly pb::MessageParser<EchoResponse> _parser = new pb::MessageParser<EchoResponse>(() => new EchoResponse());
1355 private pb::UnknownFieldSet _unknownFields;
1356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1357 public static pb::MessageParser<EchoResponse> Parser { get { return _parser; } }
1359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1360 public static pbr::MessageDescriptor Descriptor {
1361 get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[5]; }
1364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1365 pbr::MessageDescriptor pb::IMessage.Descriptor {
1366 get { return Descriptor; }
1369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1370 public EchoResponse() {
1374 partial void OnConstruction();
1376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1377 public EchoResponse(EchoResponse other) : this() {
1378 message_ = other.message_;
1379 param_ = other.param_ != null ? other.param_.Clone() : null;
1380 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1384 public EchoResponse Clone() {
1385 return new EchoResponse(this);
1388 /// <summary>Field number for the "message" field.</summary>
1389 public const int MessageFieldNumber = 1;
1390 private string message_ = "";
1391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1392 public string Message {
1393 get { return message_; }
1395 message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1399 /// <summary>Field number for the "param" field.</summary>
1400 public const int ParamFieldNumber = 2;
1401 private global::Grpc.Testing.ResponseParams param_;
1402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1403 public global::Grpc.Testing.ResponseParams Param {
1404 get { return param_; }
1410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1411 public override bool Equals(object other) {
1412 return Equals(other as EchoResponse);
1415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1416 public bool Equals(EchoResponse other) {
1417 if (ReferenceEquals(other, null)) {
1420 if (ReferenceEquals(other, this)) {
1423 if (Message != other.Message) return false;
1424 if (!object.Equals(Param, other.Param)) return false;
1425 return Equals(_unknownFields, other._unknownFields);
1428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1429 public override int GetHashCode() {
1431 if (Message.Length != 0) hash ^= Message.GetHashCode();
1432 if (param_ != null) hash ^= Param.GetHashCode();
1433 if (_unknownFields != null) {
1434 hash ^= _unknownFields.GetHashCode();
1439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1440 public override string ToString() {
1441 return pb::JsonFormatter.ToDiagnosticString(this);
1444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1445 public void WriteTo(pb::CodedOutputStream output) {
1446 if (Message.Length != 0) {
1447 output.WriteRawTag(10);
1448 output.WriteString(Message);
1450 if (param_ != null) {
1451 output.WriteRawTag(18);
1452 output.WriteMessage(Param);
1454 if (_unknownFields != null) {
1455 _unknownFields.WriteTo(output);
1459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1460 public int CalculateSize() {
1462 if (Message.Length != 0) {
1463 size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
1465 if (param_ != null) {
1466 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Param);
1468 if (_unknownFields != null) {
1469 size += _unknownFields.CalculateSize();
1474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1475 public void MergeFrom(EchoResponse other) {
1476 if (other == null) {
1479 if (other.Message.Length != 0) {
1480 Message = other.Message;
1482 if (other.param_ != null) {
1483 if (param_ == null) {
1484 Param = new global::Grpc.Testing.ResponseParams();
1486 Param.MergeFrom(other.Param);
1488 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1492 public void MergeFrom(pb::CodedInputStream input) {
1494 while ((tag = input.ReadTag()) != 0) {
1497 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1500 Message = input.ReadString();
1504 if (param_ == null) {
1505 Param = new global::Grpc.Testing.ResponseParams();
1507 input.ReadMessage(Param);
1520 #endregion Designer generated code