blob: 278ef662e4719bea4036062f959f3859b4c19dd7 [file] [log] [blame]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001// Generated by the protocol buffer compiler. DO NOT EDIT!
Jan Tattermusch72ce4422016-01-20 13:54:38 -08002// source: src/proto/grpc/testing/messages.proto
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08003#pragma warning disable 1591, 0612, 3021
4#region Designer generated code
Jan Tattermuscha7608b02015-02-03 17:54:38 -08005
Jan Tattermusch475f75a2015-08-03 09:46:04 -07006using pb = global::Google.Protobuf;
7using pbc = global::Google.Protobuf.Collections;
8using pbr = global::Google.Protobuf.Reflection;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08009using scg = global::System.Collections.Generic;
Jan Tattermusch475f75a2015-08-03 09:46:04 -070010namespace Grpc.Testing {
Craig Tiller190d3602015-02-18 09:23:38 -080011
Jan Tattermusch72ce4422016-01-20 13:54:38 -080012 /// <summary>Holder for reflection information generated from src/proto/grpc/testing/messages.proto</summary>
Jan Tattermusch72ce4422016-01-20 13:54:38 -080013 public static partial class MessagesReflection {
Craig Tiller190d3602015-02-18 09:23:38 -080014
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080015 #region Descriptor
Jan Tattermusch72ce4422016-01-20 13:54:38 -080016 /// <summary>File descriptor for src/proto/grpc/testing/messages.proto</summary>
Jan Tattermusch475f75a2015-08-03 09:46:04 -070017 public static pbr::FileDescriptor Descriptor {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080018 get { return descriptor; }
19 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -070020 private static pbr::FileDescriptor descriptor;
Craig Tiller190d3602015-02-18 09:23:38 -080021
Jan Tattermusch72ce4422016-01-20 13:54:38 -080022 static MessagesReflection() {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080023 byte[] descriptorData = global::System.Convert.FromBase64String(
24 string.Concat(
Jan Tattermusch72ce4422016-01-20 13:54:38 -080025 "CiVzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL21lc3NhZ2VzLnByb3RvEgxncnBj",
Jan Tattermusch67ceba52016-06-21 18:29:09 -070026 "LnRlc3RpbmciGgoJQm9vbFZhbHVlEg0KBXZhbHVlGAEgASgIIkAKB1BheWxv",
27 "YWQSJwoEdHlwZRgBIAEoDjIZLmdycGMudGVzdGluZy5QYXlsb2FkVHlwZRIM",
28 "CgRib2R5GAIgASgMIisKCkVjaG9TdGF0dXMSDAoEY29kZRgBIAEoBRIPCgdt",
29 "ZXNzYWdlGAIgASgJIs4CCg1TaW1wbGVSZXF1ZXN0EjAKDXJlc3BvbnNlX3R5",
30 "cGUYASABKA4yGS5ncnBjLnRlc3RpbmcuUGF5bG9hZFR5cGUSFQoNcmVzcG9u",
31 "c2Vfc2l6ZRgCIAEoBRImCgdwYXlsb2FkGAMgASgLMhUuZ3JwYy50ZXN0aW5n",
32 "LlBheWxvYWQSFQoNZmlsbF91c2VybmFtZRgEIAEoCBIYChBmaWxsX29hdXRo",
33 "X3Njb3BlGAUgASgIEjQKE3Jlc3BvbnNlX2NvbXByZXNzZWQYBiABKAsyFy5n",
34 "cnBjLnRlc3RpbmcuQm9vbFZhbHVlEjEKD3Jlc3BvbnNlX3N0YXR1cxgHIAEo",
35 "CzIYLmdycGMudGVzdGluZy5FY2hvU3RhdHVzEjIKEWV4cGVjdF9jb21wcmVz",
36 "c2VkGAggASgLMhcuZ3JwYy50ZXN0aW5nLkJvb2xWYWx1ZSJfCg5TaW1wbGVS",
37 "ZXNwb25zZRImCgdwYXlsb2FkGAEgASgLMhUuZ3JwYy50ZXN0aW5nLlBheWxv",
38 "YWQSEAoIdXNlcm5hbWUYAiABKAkSEwoLb2F1dGhfc2NvcGUYAyABKAkidwoZ",
39 "U3RyZWFtaW5nSW5wdXRDYWxsUmVxdWVzdBImCgdwYXlsb2FkGAEgASgLMhUu",
40 "Z3JwYy50ZXN0aW5nLlBheWxvYWQSMgoRZXhwZWN0X2NvbXByZXNzZWQYAiAB",
41 "KAsyFy5ncnBjLnRlc3RpbmcuQm9vbFZhbHVlIj0KGlN0cmVhbWluZ0lucHV0",
42 "Q2FsbFJlc3BvbnNlEh8KF2FnZ3JlZ2F0ZWRfcGF5bG9hZF9zaXplGAEgASgF",
43 "ImQKElJlc3BvbnNlUGFyYW1ldGVycxIMCgRzaXplGAEgASgFEhMKC2ludGVy",
44 "dmFsX3VzGAIgASgFEisKCmNvbXByZXNzZWQYAyABKAsyFy5ncnBjLnRlc3Rp",
45 "bmcuQm9vbFZhbHVlIugBChpTdHJlYW1pbmdPdXRwdXRDYWxsUmVxdWVzdBIw",
46 "Cg1yZXNwb25zZV90eXBlGAEgASgOMhkuZ3JwYy50ZXN0aW5nLlBheWxvYWRU",
47 "eXBlEj0KE3Jlc3BvbnNlX3BhcmFtZXRlcnMYAiADKAsyIC5ncnBjLnRlc3Rp",
48 "bmcuUmVzcG9uc2VQYXJhbWV0ZXJzEiYKB3BheWxvYWQYAyABKAsyFS5ncnBj",
49 "LnRlc3RpbmcuUGF5bG9hZBIxCg9yZXNwb25zZV9zdGF0dXMYByABKAsyGC5n",
50 "cnBjLnRlc3RpbmcuRWNob1N0YXR1cyJFChtTdHJlYW1pbmdPdXRwdXRDYWxs",
51 "UmVzcG9uc2USJgoHcGF5bG9hZBgBIAEoCzIVLmdycGMudGVzdGluZy5QYXls",
52 "b2FkIjMKD1JlY29ubmVjdFBhcmFtcxIgChhtYXhfcmVjb25uZWN0X2JhY2tv",
53 "ZmZfbXMYASABKAUiMwoNUmVjb25uZWN0SW5mbxIOCgZwYXNzZWQYASABKAgS",
54 "EgoKYmFja29mZl9tcxgCIAMoBSofCgtQYXlsb2FkVHlwZRIQCgxDT01QUkVT",
55 "U0FCTEUQAGIGcHJvdG8z"));
Jan Tattermusch72ce4422016-01-20 13:54:38 -080056 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
Jan Tattermusch475f75a2015-08-03 09:46:04 -070057 new pbr::FileDescriptor[] { },
Jan Tattermusch67ceba52016-06-21 18:29:09 -070058 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Grpc.Testing.PayloadType), }, new pbr::GeneratedClrTypeInfo[] {
59 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.BoolValue), global::Grpc.Testing.BoolValue.Parser, new[]{ "Value" }, null, null, null),
Jan Tattermuschc96fdde2016-05-16 17:08:41 -070060 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Payload), global::Grpc.Testing.Payload.Parser, new[]{ "Type", "Body" }, null, null, null),
61 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EchoStatus), global::Grpc.Testing.EchoStatus.Parser, new[]{ "Code", "Message" }, null, null, null),
Jan Tattermusch67ceba52016-06-21 18:29:09 -070062 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleRequest), global::Grpc.Testing.SimpleRequest.Parser, new[]{ "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompressed", "ResponseStatus", "ExpectCompressed" }, null, null, null),
Jan Tattermuschc96fdde2016-05-16 17:08:41 -070063 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleResponse), global::Grpc.Testing.SimpleResponse.Parser, new[]{ "Payload", "Username", "OauthScope" }, null, null, null),
Jan Tattermusch67ceba52016-06-21 18:29:09 -070064 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallRequest), global::Grpc.Testing.StreamingInputCallRequest.Parser, new[]{ "Payload", "ExpectCompressed" }, null, null, null),
Jan Tattermuschc96fdde2016-05-16 17:08:41 -070065 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallResponse), global::Grpc.Testing.StreamingInputCallResponse.Parser, new[]{ "AggregatedPayloadSize" }, null, null, null),
Jan Tattermusch67ceba52016-06-21 18:29:09 -070066 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ResponseParameters), global::Grpc.Testing.ResponseParameters.Parser, new[]{ "Size", "IntervalUs", "Compressed" }, null, null, null),
67 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingOutputCallRequest), global::Grpc.Testing.StreamingOutputCallRequest.Parser, new[]{ "ResponseType", "ResponseParameters", "Payload", "ResponseStatus" }, null, null, null),
Jan Tattermuschc96fdde2016-05-16 17:08:41 -070068 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingOutputCallResponse), global::Grpc.Testing.StreamingOutputCallResponse.Parser, new[]{ "Payload" }, null, null, null),
69 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ReconnectParams), global::Grpc.Testing.ReconnectParams.Parser, new[]{ "MaxReconnectBackoffMs" }, null, null, null),
70 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ReconnectInfo), global::Grpc.Testing.ReconnectInfo.Parser, new[]{ "Passed", "BackoffMs" }, null, null, null)
Jan Tattermusch475f75a2015-08-03 09:46:04 -070071 }));
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080072 }
73 #endregion
Craig Tiller190d3602015-02-18 09:23:38 -080074
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080075 }
76 #region Enums
Jan Tattermusch72ce4422016-01-20 13:54:38 -080077 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +010078 /// DEPRECATED, don't use. To be removed shortly.
79 /// The type of payload that should be returned.
Jan Tattermusch72ce4422016-01-20 13:54:38 -080080 /// </summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080081 public enum PayloadType {
Jan Tattermusch72ce4422016-01-20 13:54:38 -080082 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +010083 /// Compressable text format.
Jan Tattermusch72ce4422016-01-20 13:54:38 -080084 /// </summary>
Jan Tattermuschc96fdde2016-05-16 17:08:41 -070085 [pbr::OriginalName("COMPRESSABLE")] Compressable = 0,
Jan Tattermusch70f86522015-10-07 18:23:51 -070086 }
87
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080088 #endregion
Craig Tiller190d3602015-02-18 09:23:38 -080089
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080090 #region Messages
Jan Tattermusch72ce4422016-01-20 13:54:38 -080091 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +010092 /// TODO(dgq): Go back to using well-known types once
93 /// https://github.com/grpc/grpc/issues/6980 has been fixed.
94 /// import "google/protobuf/wrappers.proto";
Jan Tattermusch67ceba52016-06-21 18:29:09 -070095 /// </summary>
Jan Tattermusch67ceba52016-06-21 18:29:09 -070096 public sealed partial class BoolValue : pb::IMessage<BoolValue> {
97 private static readonly pb::MessageParser<BoolValue> _parser = new pb::MessageParser<BoolValue>(() => new BoolValue());
Jan Tattermusch10098d12016-10-06 13:15:12 +020098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -070099 public static pb::MessageParser<BoolValue> Parser { get { return _parser; } }
100
Jan Tattermusch10098d12016-10-06 13:15:12 +0200101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700102 public static pbr::MessageDescriptor Descriptor {
103 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[0]; }
104 }
105
Jan Tattermusch10098d12016-10-06 13:15:12 +0200106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700107 pbr::MessageDescriptor pb::IMessage.Descriptor {
108 get { return Descriptor; }
109 }
110
Jan Tattermusch10098d12016-10-06 13:15:12 +0200111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700112 public BoolValue() {
113 OnConstruction();
114 }
115
116 partial void OnConstruction();
117
Jan Tattermusch10098d12016-10-06 13:15:12 +0200118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700119 public BoolValue(BoolValue other) : this() {
120 value_ = other.value_;
121 }
122
Jan Tattermusch10098d12016-10-06 13:15:12 +0200123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700124 public BoolValue Clone() {
125 return new BoolValue(this);
126 }
127
128 /// <summary>Field number for the "value" field.</summary>
129 public const int ValueFieldNumber = 1;
130 private bool value_;
131 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100132 /// The bool value.
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700133 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700135 public bool Value {
136 get { return value_; }
137 set {
138 value_ = value;
139 }
140 }
141
Jan Tattermusch10098d12016-10-06 13:15:12 +0200142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700143 public override bool Equals(object other) {
144 return Equals(other as BoolValue);
145 }
146
Jan Tattermusch10098d12016-10-06 13:15:12 +0200147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700148 public bool Equals(BoolValue other) {
149 if (ReferenceEquals(other, null)) {
150 return false;
151 }
152 if (ReferenceEquals(other, this)) {
153 return true;
154 }
155 if (Value != other.Value) return false;
156 return true;
157 }
158
Jan Tattermusch10098d12016-10-06 13:15:12 +0200159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700160 public override int GetHashCode() {
161 int hash = 1;
162 if (Value != false) hash ^= Value.GetHashCode();
163 return hash;
164 }
165
Jan Tattermusch10098d12016-10-06 13:15:12 +0200166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700167 public override string ToString() {
168 return pb::JsonFormatter.ToDiagnosticString(this);
169 }
170
Jan Tattermusch10098d12016-10-06 13:15:12 +0200171 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700172 public void WriteTo(pb::CodedOutputStream output) {
173 if (Value != false) {
174 output.WriteRawTag(8);
175 output.WriteBool(Value);
176 }
177 }
178
Jan Tattermusch10098d12016-10-06 13:15:12 +0200179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700180 public int CalculateSize() {
181 int size = 0;
182 if (Value != false) {
183 size += 1 + 1;
184 }
185 return size;
186 }
187
Jan Tattermusch10098d12016-10-06 13:15:12 +0200188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700189 public void MergeFrom(BoolValue other) {
190 if (other == null) {
191 return;
192 }
193 if (other.Value != false) {
194 Value = other.Value;
195 }
196 }
197
Jan Tattermusch10098d12016-10-06 13:15:12 +0200198 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700199 public void MergeFrom(pb::CodedInputStream input) {
200 uint tag;
201 while ((tag = input.ReadTag()) != 0) {
202 switch(tag) {
203 default:
204 input.SkipLastField();
205 break;
206 case 8: {
207 Value = input.ReadBool();
208 break;
209 }
210 }
211 }
212 }
213
214 }
215
216 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100217 /// A block of data, to simply increase gRPC message size.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800218 /// </summary>
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700219 public sealed partial class Payload : pb::IMessage<Payload> {
220 private static readonly pb::MessageParser<Payload> _parser = new pb::MessageParser<Payload>(() => new Payload());
Jan Tattermusch10098d12016-10-06 13:15:12 +0200221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700222 public static pb::MessageParser<Payload> Parser { get { return _parser; } }
223
Jan Tattermusch10098d12016-10-06 13:15:12 +0200224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700225 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700226 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[1]; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800227 }
Craig Tiller190d3602015-02-18 09:23:38 -0800228
Jan Tattermusch10098d12016-10-06 13:15:12 +0200229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700230 pbr::MessageDescriptor pb::IMessage.Descriptor {
231 get { return Descriptor; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800232 }
Craig Tiller190d3602015-02-18 09:23:38 -0800233
Jan Tattermusch10098d12016-10-06 13:15:12 +0200234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700235 public Payload() {
236 OnConstruction();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800237 }
Craig Tiller190d3602015-02-18 09:23:38 -0800238
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700239 partial void OnConstruction();
240
Jan Tattermusch10098d12016-10-06 13:15:12 +0200241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700242 public Payload(Payload other) : this() {
243 type_ = other.type_;
244 body_ = other.body_;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800245 }
Craig Tiller190d3602015-02-18 09:23:38 -0800246
Jan Tattermusch10098d12016-10-06 13:15:12 +0200247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700248 public Payload Clone() {
249 return new Payload(this);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800250 }
Craig Tiller190d3602015-02-18 09:23:38 -0800251
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800252 /// <summary>Field number for the "type" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800253 public const int TypeFieldNumber = 1;
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700254 private global::Grpc.Testing.PayloadType type_ = 0;
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800255 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100256 /// DEPRECATED, don't use. To be removed shortly.
257 /// The type of data in body.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800258 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700260 public global::Grpc.Testing.PayloadType Type {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800261 get { return type_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700262 set {
263 type_ = value;
264 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800265 }
Craig Tiller190d3602015-02-18 09:23:38 -0800266
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800267 /// <summary>Field number for the "body" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800268 public const int BodyFieldNumber = 2;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800269 private pb::ByteString body_ = pb::ByteString.Empty;
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800270 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100271 /// Primary contents of payload.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800272 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800274 public pb::ByteString Body {
275 get { return body_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700276 set {
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700277 body_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700278 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800279 }
Craig Tiller190d3602015-02-18 09:23:38 -0800280
Jan Tattermusch10098d12016-10-06 13:15:12 +0200281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700282 public override bool Equals(object other) {
283 return Equals(other as Payload);
284 }
285
Jan Tattermusch10098d12016-10-06 13:15:12 +0200286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700287 public bool Equals(Payload other) {
288 if (ReferenceEquals(other, null)) {
289 return false;
290 }
291 if (ReferenceEquals(other, this)) {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800292 return true;
293 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700294 if (Type != other.Type) return false;
295 if (Body != other.Body) return false;
296 return true;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800297 }
Craig Tiller190d3602015-02-18 09:23:38 -0800298
Jan Tattermusch10098d12016-10-06 13:15:12 +0200299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700300 public override int GetHashCode() {
301 int hash = 1;
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700302 if (Type != 0) hash ^= Type.GetHashCode();
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700303 if (Body.Length != 0) hash ^= Body.GetHashCode();
304 return hash;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800305 }
Craig Tiller190d3602015-02-18 09:23:38 -0800306
Jan Tattermusch10098d12016-10-06 13:15:12 +0200307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700308 public override string ToString() {
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800309 return pb::JsonFormatter.ToDiagnosticString(this);
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700310 }
Craig Tiller190d3602015-02-18 09:23:38 -0800311
Jan Tattermusch10098d12016-10-06 13:15:12 +0200312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700313 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700314 if (Type != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700315 output.WriteRawTag(8);
316 output.WriteEnum((int) Type);
317 }
318 if (Body.Length != 0) {
319 output.WriteRawTag(18);
320 output.WriteBytes(Body);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800321 }
322 }
Craig Tiller190d3602015-02-18 09:23:38 -0800323
Jan Tattermusch10098d12016-10-06 13:15:12 +0200324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700325 public int CalculateSize() {
326 int size = 0;
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700327 if (Type != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700328 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
329 }
330 if (Body.Length != 0) {
331 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Body);
332 }
333 return size;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800334 }
Craig Tiller190d3602015-02-18 09:23:38 -0800335
Jan Tattermusch10098d12016-10-06 13:15:12 +0200336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700337 public void MergeFrom(Payload other) {
338 if (other == null) {
339 return;
340 }
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700341 if (other.Type != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700342 Type = other.Type;
343 }
344 if (other.Body.Length != 0) {
345 Body = other.Body;
346 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800347 }
Craig Tiller190d3602015-02-18 09:23:38 -0800348
Jan Tattermusch10098d12016-10-06 13:15:12 +0200349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700350 public void MergeFrom(pb::CodedInputStream input) {
351 uint tag;
Jan Tattermusch38536a72015-08-08 00:45:52 -0700352 while ((tag = input.ReadTag()) != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700353 switch(tag) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700354 default:
Jan Tattermusch38536a72015-08-08 00:45:52 -0700355 input.SkipLastField();
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700356 break;
357 case 8: {
358 type_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
359 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800360 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700361 case 18: {
362 Body = input.ReadBytes();
363 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800364 }
365 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800366 }
367 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700368
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800369 }
Craig Tiller190d3602015-02-18 09:23:38 -0800370
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800371 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100372 /// A protobuf representation for grpc status. This is used by test
373 /// clients to specify a status that the server should attempt to return.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800374 /// </summary>
Jan Tattermusch70f86522015-10-07 18:23:51 -0700375 public sealed partial class EchoStatus : pb::IMessage<EchoStatus> {
376 private static readonly pb::MessageParser<EchoStatus> _parser = new pb::MessageParser<EchoStatus>(() => new EchoStatus());
Jan Tattermusch10098d12016-10-06 13:15:12 +0200377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700378 public static pb::MessageParser<EchoStatus> Parser { get { return _parser; } }
379
Jan Tattermusch10098d12016-10-06 13:15:12 +0200380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700381 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700382 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[2]; }
Jan Tattermusch70f86522015-10-07 18:23:51 -0700383 }
384
Jan Tattermusch10098d12016-10-06 13:15:12 +0200385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700386 pbr::MessageDescriptor pb::IMessage.Descriptor {
387 get { return Descriptor; }
388 }
389
Jan Tattermusch10098d12016-10-06 13:15:12 +0200390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700391 public EchoStatus() {
392 OnConstruction();
393 }
394
395 partial void OnConstruction();
396
Jan Tattermusch10098d12016-10-06 13:15:12 +0200397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700398 public EchoStatus(EchoStatus other) : this() {
399 code_ = other.code_;
400 message_ = other.message_;
401 }
402
Jan Tattermusch10098d12016-10-06 13:15:12 +0200403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700404 public EchoStatus Clone() {
405 return new EchoStatus(this);
406 }
407
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800408 /// <summary>Field number for the "code" field.</summary>
Jan Tattermusch70f86522015-10-07 18:23:51 -0700409 public const int CodeFieldNumber = 1;
410 private int code_;
Jan Tattermusch10098d12016-10-06 13:15:12 +0200411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700412 public int Code {
413 get { return code_; }
414 set {
415 code_ = value;
416 }
417 }
418
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800419 /// <summary>Field number for the "message" field.</summary>
Jan Tattermusch70f86522015-10-07 18:23:51 -0700420 public const int MessageFieldNumber = 2;
421 private string message_ = "";
Jan Tattermusch10098d12016-10-06 13:15:12 +0200422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700423 public string Message {
424 get { return message_; }
425 set {
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700426 message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
Jan Tattermusch70f86522015-10-07 18:23:51 -0700427 }
428 }
429
Jan Tattermusch10098d12016-10-06 13:15:12 +0200430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700431 public override bool Equals(object other) {
432 return Equals(other as EchoStatus);
433 }
434
Jan Tattermusch10098d12016-10-06 13:15:12 +0200435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700436 public bool Equals(EchoStatus other) {
437 if (ReferenceEquals(other, null)) {
438 return false;
439 }
440 if (ReferenceEquals(other, this)) {
441 return true;
442 }
443 if (Code != other.Code) return false;
444 if (Message != other.Message) return false;
445 return true;
446 }
447
Jan Tattermusch10098d12016-10-06 13:15:12 +0200448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700449 public override int GetHashCode() {
450 int hash = 1;
451 if (Code != 0) hash ^= Code.GetHashCode();
452 if (Message.Length != 0) hash ^= Message.GetHashCode();
453 return hash;
454 }
455
Jan Tattermusch10098d12016-10-06 13:15:12 +0200456 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700457 public override string ToString() {
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800458 return pb::JsonFormatter.ToDiagnosticString(this);
Jan Tattermusch70f86522015-10-07 18:23:51 -0700459 }
460
Jan Tattermusch10098d12016-10-06 13:15:12 +0200461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700462 public void WriteTo(pb::CodedOutputStream output) {
463 if (Code != 0) {
464 output.WriteRawTag(8);
465 output.WriteInt32(Code);
466 }
467 if (Message.Length != 0) {
468 output.WriteRawTag(18);
469 output.WriteString(Message);
470 }
471 }
472
Jan Tattermusch10098d12016-10-06 13:15:12 +0200473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700474 public int CalculateSize() {
475 int size = 0;
476 if (Code != 0) {
477 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
478 }
479 if (Message.Length != 0) {
480 size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
481 }
482 return size;
483 }
484
Jan Tattermusch10098d12016-10-06 13:15:12 +0200485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700486 public void MergeFrom(EchoStatus other) {
487 if (other == null) {
488 return;
489 }
490 if (other.Code != 0) {
491 Code = other.Code;
492 }
493 if (other.Message.Length != 0) {
494 Message = other.Message;
495 }
496 }
497
Jan Tattermusch10098d12016-10-06 13:15:12 +0200498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700499 public void MergeFrom(pb::CodedInputStream input) {
500 uint tag;
501 while ((tag = input.ReadTag()) != 0) {
502 switch(tag) {
503 default:
504 input.SkipLastField();
505 break;
506 case 8: {
507 Code = input.ReadInt32();
508 break;
509 }
510 case 18: {
511 Message = input.ReadString();
512 break;
513 }
514 }
515 }
516 }
517
518 }
519
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800520 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100521 /// Unary request.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800522 /// </summary>
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700523 public sealed partial class SimpleRequest : pb::IMessage<SimpleRequest> {
524 private static readonly pb::MessageParser<SimpleRequest> _parser = new pb::MessageParser<SimpleRequest>(() => new SimpleRequest());
Jan Tattermusch10098d12016-10-06 13:15:12 +0200525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700526 public static pb::MessageParser<SimpleRequest> Parser { get { return _parser; } }
527
Jan Tattermusch10098d12016-10-06 13:15:12 +0200528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700529 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700530 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[3]; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800531 }
Craig Tiller190d3602015-02-18 09:23:38 -0800532
Jan Tattermusch10098d12016-10-06 13:15:12 +0200533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700534 pbr::MessageDescriptor pb::IMessage.Descriptor {
535 get { return Descriptor; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800536 }
Craig Tiller190d3602015-02-18 09:23:38 -0800537
Jan Tattermusch10098d12016-10-06 13:15:12 +0200538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700539 public SimpleRequest() {
540 OnConstruction();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800541 }
Craig Tiller190d3602015-02-18 09:23:38 -0800542
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700543 partial void OnConstruction();
544
Jan Tattermusch10098d12016-10-06 13:15:12 +0200545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700546 public SimpleRequest(SimpleRequest other) : this() {
547 responseType_ = other.responseType_;
548 responseSize_ = other.responseSize_;
549 Payload = other.payload_ != null ? other.Payload.Clone() : null;
550 fillUsername_ = other.fillUsername_;
551 fillOauthScope_ = other.fillOauthScope_;
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700552 ResponseCompressed = other.responseCompressed_ != null ? other.ResponseCompressed.Clone() : null;
Jan Tattermusch70f86522015-10-07 18:23:51 -0700553 ResponseStatus = other.responseStatus_ != null ? other.ResponseStatus.Clone() : null;
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700554 ExpectCompressed = other.expectCompressed_ != null ? other.ExpectCompressed.Clone() : null;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800555 }
Craig Tiller190d3602015-02-18 09:23:38 -0800556
Jan Tattermusch10098d12016-10-06 13:15:12 +0200557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700558 public SimpleRequest Clone() {
559 return new SimpleRequest(this);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800560 }
Craig Tiller190d3602015-02-18 09:23:38 -0800561
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800562 /// <summary>Field number for the "response_type" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800563 public const int ResponseTypeFieldNumber = 1;
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700564 private global::Grpc.Testing.PayloadType responseType_ = 0;
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800565 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100566 /// DEPRECATED, don't use. To be removed shortly.
567 /// Desired payload type in the response from the server.
568 /// If response_type is RANDOM, server randomly chooses one from other formats.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800569 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700571 public global::Grpc.Testing.PayloadType ResponseType {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800572 get { return responseType_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700573 set {
574 responseType_ = value;
575 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800576 }
Craig Tiller190d3602015-02-18 09:23:38 -0800577
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800578 /// <summary>Field number for the "response_size" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800579 public const int ResponseSizeFieldNumber = 2;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800580 private int responseSize_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800581 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100582 /// Desired payload size in the response from the server.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800583 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800585 public int ResponseSize {
586 get { return responseSize_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700587 set {
588 responseSize_ = value;
589 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800590 }
Craig Tiller190d3602015-02-18 09:23:38 -0800591
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800592 /// <summary>Field number for the "payload" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800593 public const int PayloadFieldNumber = 3;
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700594 private global::Grpc.Testing.Payload payload_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800595 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100596 /// Optional input payload sent along with the request.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800597 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700599 public global::Grpc.Testing.Payload Payload {
600 get { return payload_; }
601 set {
602 payload_ = value;
603 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800604 }
Craig Tiller190d3602015-02-18 09:23:38 -0800605
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800606 /// <summary>Field number for the "fill_username" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800607 public const int FillUsernameFieldNumber = 4;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800608 private bool fillUsername_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800609 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100610 /// Whether SimpleResponse should include username.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800611 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800613 public bool FillUsername {
614 get { return fillUsername_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700615 set {
616 fillUsername_ = value;
617 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800618 }
Craig Tiller190d3602015-02-18 09:23:38 -0800619
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800620 /// <summary>Field number for the "fill_oauth_scope" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800621 public const int FillOauthScopeFieldNumber = 5;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800622 private bool fillOauthScope_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800623 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100624 /// Whether SimpleResponse should include OAuth scope.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800625 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800627 public bool FillOauthScope {
628 get { return fillOauthScope_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700629 set {
630 fillOauthScope_ = value;
631 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800632 }
Craig Tiller190d3602015-02-18 09:23:38 -0800633
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700634 /// <summary>Field number for the "response_compressed" field.</summary>
635 public const int ResponseCompressedFieldNumber = 6;
636 private global::Grpc.Testing.BoolValue responseCompressed_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800637 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100638 /// Whether to request the server to compress the response. This field is
639 /// "nullable" in order to interoperate seamlessly with clients not able to
640 /// implement the full compression tests by introspecting the call to verify
641 /// the response's compression status.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800642 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700644 public global::Grpc.Testing.BoolValue ResponseCompressed {
645 get { return responseCompressed_; }
Jan Tattermusch70f86522015-10-07 18:23:51 -0700646 set {
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700647 responseCompressed_ = value;
Jan Tattermusch70f86522015-10-07 18:23:51 -0700648 }
649 }
650
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800651 /// <summary>Field number for the "response_status" field.</summary>
Jan Tattermusch70f86522015-10-07 18:23:51 -0700652 public const int ResponseStatusFieldNumber = 7;
653 private global::Grpc.Testing.EchoStatus responseStatus_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800654 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100655 /// Whether server should return a given status
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800656 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -0700658 public global::Grpc.Testing.EchoStatus ResponseStatus {
659 get { return responseStatus_; }
660 set {
661 responseStatus_ = value;
662 }
663 }
664
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700665 /// <summary>Field number for the "expect_compressed" field.</summary>
666 public const int ExpectCompressedFieldNumber = 8;
667 private global::Grpc.Testing.BoolValue expectCompressed_;
668 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100669 /// Whether the server should expect this request to be compressed.
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700670 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700672 public global::Grpc.Testing.BoolValue ExpectCompressed {
673 get { return expectCompressed_; }
674 set {
675 expectCompressed_ = value;
676 }
677 }
678
Jan Tattermusch10098d12016-10-06 13:15:12 +0200679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700680 public override bool Equals(object other) {
681 return Equals(other as SimpleRequest);
682 }
683
Jan Tattermusch10098d12016-10-06 13:15:12 +0200684 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700685 public bool Equals(SimpleRequest other) {
686 if (ReferenceEquals(other, null)) {
687 return false;
688 }
689 if (ReferenceEquals(other, this)) {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800690 return true;
691 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700692 if (ResponseType != other.ResponseType) return false;
693 if (ResponseSize != other.ResponseSize) return false;
694 if (!object.Equals(Payload, other.Payload)) return false;
695 if (FillUsername != other.FillUsername) return false;
696 if (FillOauthScope != other.FillOauthScope) return false;
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700697 if (!object.Equals(ResponseCompressed, other.ResponseCompressed)) return false;
Jan Tattermusch70f86522015-10-07 18:23:51 -0700698 if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false;
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700699 if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false;
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700700 return true;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800701 }
Craig Tiller190d3602015-02-18 09:23:38 -0800702
Jan Tattermusch10098d12016-10-06 13:15:12 +0200703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700704 public override int GetHashCode() {
705 int hash = 1;
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700706 if (ResponseType != 0) hash ^= ResponseType.GetHashCode();
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700707 if (ResponseSize != 0) hash ^= ResponseSize.GetHashCode();
708 if (payload_ != null) hash ^= Payload.GetHashCode();
709 if (FillUsername != false) hash ^= FillUsername.GetHashCode();
710 if (FillOauthScope != false) hash ^= FillOauthScope.GetHashCode();
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700711 if (responseCompressed_ != null) hash ^= ResponseCompressed.GetHashCode();
Jan Tattermusch70f86522015-10-07 18:23:51 -0700712 if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode();
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700713 if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode();
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700714 return hash;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800715 }
Craig Tiller190d3602015-02-18 09:23:38 -0800716
Jan Tattermusch10098d12016-10-06 13:15:12 +0200717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700718 public override string ToString() {
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800719 return pb::JsonFormatter.ToDiagnosticString(this);
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700720 }
Craig Tiller190d3602015-02-18 09:23:38 -0800721
Jan Tattermusch10098d12016-10-06 13:15:12 +0200722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700723 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700724 if (ResponseType != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700725 output.WriteRawTag(8);
726 output.WriteEnum((int) ResponseType);
727 }
728 if (ResponseSize != 0) {
729 output.WriteRawTag(16);
730 output.WriteInt32(ResponseSize);
731 }
732 if (payload_ != null) {
733 output.WriteRawTag(26);
734 output.WriteMessage(Payload);
735 }
736 if (FillUsername != false) {
737 output.WriteRawTag(32);
738 output.WriteBool(FillUsername);
739 }
740 if (FillOauthScope != false) {
741 output.WriteRawTag(40);
742 output.WriteBool(FillOauthScope);
743 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700744 if (responseCompressed_ != null) {
745 output.WriteRawTag(50);
746 output.WriteMessage(ResponseCompressed);
Jan Tattermusch70f86522015-10-07 18:23:51 -0700747 }
748 if (responseStatus_ != null) {
749 output.WriteRawTag(58);
750 output.WriteMessage(ResponseStatus);
751 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700752 if (expectCompressed_ != null) {
753 output.WriteRawTag(66);
754 output.WriteMessage(ExpectCompressed);
755 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700756 }
757
Jan Tattermusch10098d12016-10-06 13:15:12 +0200758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700759 public int CalculateSize() {
760 int size = 0;
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700761 if (ResponseType != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700762 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType);
763 }
764 if (ResponseSize != 0) {
765 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseSize);
766 }
767 if (payload_ != null) {
768 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
769 }
770 if (FillUsername != false) {
771 size += 1 + 1;
772 }
773 if (FillOauthScope != false) {
774 size += 1 + 1;
775 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700776 if (responseCompressed_ != null) {
777 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseCompressed);
Jan Tattermusch70f86522015-10-07 18:23:51 -0700778 }
779 if (responseStatus_ != null) {
780 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus);
781 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700782 if (expectCompressed_ != null) {
783 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed);
784 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700785 return size;
786 }
787
Jan Tattermusch10098d12016-10-06 13:15:12 +0200788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700789 public void MergeFrom(SimpleRequest other) {
790 if (other == null) {
791 return;
792 }
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700793 if (other.ResponseType != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700794 ResponseType = other.ResponseType;
795 }
796 if (other.ResponseSize != 0) {
797 ResponseSize = other.ResponseSize;
798 }
799 if (other.payload_ != null) {
800 if (payload_ == null) {
801 payload_ = new global::Grpc.Testing.Payload();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800802 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700803 Payload.MergeFrom(other.Payload);
804 }
805 if (other.FillUsername != false) {
806 FillUsername = other.FillUsername;
807 }
808 if (other.FillOauthScope != false) {
809 FillOauthScope = other.FillOauthScope;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800810 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700811 if (other.responseCompressed_ != null) {
812 if (responseCompressed_ == null) {
813 responseCompressed_ = new global::Grpc.Testing.BoolValue();
814 }
815 ResponseCompressed.MergeFrom(other.ResponseCompressed);
Jan Tattermusch70f86522015-10-07 18:23:51 -0700816 }
817 if (other.responseStatus_ != null) {
818 if (responseStatus_ == null) {
819 responseStatus_ = new global::Grpc.Testing.EchoStatus();
820 }
821 ResponseStatus.MergeFrom(other.ResponseStatus);
822 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700823 if (other.expectCompressed_ != null) {
824 if (expectCompressed_ == null) {
825 expectCompressed_ = new global::Grpc.Testing.BoolValue();
826 }
827 ExpectCompressed.MergeFrom(other.ExpectCompressed);
828 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800829 }
Craig Tiller190d3602015-02-18 09:23:38 -0800830
Jan Tattermusch10098d12016-10-06 13:15:12 +0200831 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700832 public void MergeFrom(pb::CodedInputStream input) {
833 uint tag;
Jan Tattermusch38536a72015-08-08 00:45:52 -0700834 while ((tag = input.ReadTag()) != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700835 switch(tag) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700836 default:
Jan Tattermusch38536a72015-08-08 00:45:52 -0700837 input.SkipLastField();
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700838 break;
839 case 8: {
840 responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
841 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800842 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700843 case 16: {
844 ResponseSize = input.ReadInt32();
845 break;
846 }
847 case 26: {
848 if (payload_ == null) {
849 payload_ = new global::Grpc.Testing.Payload();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800850 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700851 input.ReadMessage(payload_);
852 break;
853 }
854 case 32: {
855 FillUsername = input.ReadBool();
856 break;
857 }
858 case 40: {
859 FillOauthScope = input.ReadBool();
860 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800861 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700862 case 50: {
863 if (responseCompressed_ == null) {
864 responseCompressed_ = new global::Grpc.Testing.BoolValue();
865 }
866 input.ReadMessage(responseCompressed_);
Jan Tattermusch70f86522015-10-07 18:23:51 -0700867 break;
868 }
869 case 58: {
870 if (responseStatus_ == null) {
871 responseStatus_ = new global::Grpc.Testing.EchoStatus();
872 }
873 input.ReadMessage(responseStatus_);
874 break;
875 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700876 case 66: {
877 if (expectCompressed_ == null) {
878 expectCompressed_ = new global::Grpc.Testing.BoolValue();
879 }
880 input.ReadMessage(expectCompressed_);
881 break;
882 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800883 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800884 }
885 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700886
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800887 }
Craig Tiller190d3602015-02-18 09:23:38 -0800888
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800889 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100890 /// Unary response, as configured by the request.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800891 /// </summary>
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700892 public sealed partial class SimpleResponse : pb::IMessage<SimpleResponse> {
893 private static readonly pb::MessageParser<SimpleResponse> _parser = new pb::MessageParser<SimpleResponse>(() => new SimpleResponse());
Jan Tattermusch10098d12016-10-06 13:15:12 +0200894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700895 public static pb::MessageParser<SimpleResponse> Parser { get { return _parser; } }
896
Jan Tattermusch10098d12016-10-06 13:15:12 +0200897 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700898 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch67ceba52016-06-21 18:29:09 -0700899 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[4]; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800900 }
Craig Tiller190d3602015-02-18 09:23:38 -0800901
Jan Tattermusch10098d12016-10-06 13:15:12 +0200902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700903 pbr::MessageDescriptor pb::IMessage.Descriptor {
904 get { return Descriptor; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800905 }
Craig Tiller190d3602015-02-18 09:23:38 -0800906
Jan Tattermusch10098d12016-10-06 13:15:12 +0200907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700908 public SimpleResponse() {
909 OnConstruction();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800910 }
Craig Tiller190d3602015-02-18 09:23:38 -0800911
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700912 partial void OnConstruction();
913
Jan Tattermusch10098d12016-10-06 13:15:12 +0200914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700915 public SimpleResponse(SimpleResponse other) : this() {
916 Payload = other.payload_ != null ? other.Payload.Clone() : null;
917 username_ = other.username_;
918 oauthScope_ = other.oauthScope_;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800919 }
Craig Tiller190d3602015-02-18 09:23:38 -0800920
Jan Tattermusch10098d12016-10-06 13:15:12 +0200921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700922 public SimpleResponse Clone() {
923 return new SimpleResponse(this);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800924 }
Craig Tiller190d3602015-02-18 09:23:38 -0800925
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800926 /// <summary>Field number for the "payload" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800927 public const int PayloadFieldNumber = 1;
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700928 private global::Grpc.Testing.Payload payload_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800929 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100930 /// Payload to increase message size.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800931 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700933 public global::Grpc.Testing.Payload Payload {
934 get { return payload_; }
935 set {
936 payload_ = value;
937 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800938 }
Craig Tiller190d3602015-02-18 09:23:38 -0800939
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800940 /// <summary>Field number for the "username" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800941 public const int UsernameFieldNumber = 2;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800942 private string username_ = "";
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800943 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100944 /// The user the request came from, for verifying authentication was
945 /// successful when the client expected it.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800946 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800948 public string Username {
949 get { return username_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700950 set {
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700951 username_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700952 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800953 }
Craig Tiller190d3602015-02-18 09:23:38 -0800954
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800955 /// <summary>Field number for the "oauth_scope" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800956 public const int OauthScopeFieldNumber = 3;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800957 private string oauthScope_ = "";
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800958 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +0100959 /// OAuth scope.
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800960 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +0200961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800962 public string OauthScope {
963 get { return oauthScope_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700964 set {
Jan Tattermuschc96fdde2016-05-16 17:08:41 -0700965 oauthScope_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700966 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800967 }
Craig Tiller190d3602015-02-18 09:23:38 -0800968
Jan Tattermusch10098d12016-10-06 13:15:12 +0200969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700970 public override bool Equals(object other) {
971 return Equals(other as SimpleResponse);
972 }
973
Jan Tattermusch10098d12016-10-06 13:15:12 +0200974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700975 public bool Equals(SimpleResponse other) {
976 if (ReferenceEquals(other, null)) {
977 return false;
978 }
979 if (ReferenceEquals(other, this)) {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800980 return true;
981 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700982 if (!object.Equals(Payload, other.Payload)) return false;
983 if (Username != other.Username) return false;
984 if (OauthScope != other.OauthScope) return false;
985 return true;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800986 }
Craig Tiller190d3602015-02-18 09:23:38 -0800987
Jan Tattermusch10098d12016-10-06 13:15:12 +0200988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700989 public override int GetHashCode() {
990 int hash = 1;
991 if (payload_ != null) hash ^= Payload.GetHashCode();
992 if (Username.Length != 0) hash ^= Username.GetHashCode();
993 if (OauthScope.Length != 0) hash ^= OauthScope.GetHashCode();
994 return hash;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800995 }
Craig Tiller190d3602015-02-18 09:23:38 -0800996
Jan Tattermusch10098d12016-10-06 13:15:12 +0200997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700998 public override string ToString() {
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800999 return pb::JsonFormatter.ToDiagnosticString(this);
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001000 }
Craig Tiller190d3602015-02-18 09:23:38 -08001001
Jan Tattermusch10098d12016-10-06 13:15:12 +02001002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001003 public void WriteTo(pb::CodedOutputStream output) {
1004 if (payload_ != null) {
1005 output.WriteRawTag(10);
1006 output.WriteMessage(Payload);
1007 }
1008 if (Username.Length != 0) {
1009 output.WriteRawTag(18);
1010 output.WriteString(Username);
1011 }
1012 if (OauthScope.Length != 0) {
1013 output.WriteRawTag(26);
1014 output.WriteString(OauthScope);
1015 }
1016 }
1017
Jan Tattermusch10098d12016-10-06 13:15:12 +02001018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001019 public int CalculateSize() {
1020 int size = 0;
1021 if (payload_ != null) {
1022 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
1023 }
1024 if (Username.Length != 0) {
1025 size += 1 + pb::CodedOutputStream.ComputeStringSize(Username);
1026 }
1027 if (OauthScope.Length != 0) {
1028 size += 1 + pb::CodedOutputStream.ComputeStringSize(OauthScope);
1029 }
1030 return size;
1031 }
1032
Jan Tattermusch10098d12016-10-06 13:15:12 +02001033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001034 public void MergeFrom(SimpleResponse other) {
1035 if (other == null) {
1036 return;
1037 }
1038 if (other.payload_ != null) {
1039 if (payload_ == null) {
1040 payload_ = new global::Grpc.Testing.Payload();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001041 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001042 Payload.MergeFrom(other.Payload);
1043 }
1044 if (other.Username.Length != 0) {
1045 Username = other.Username;
1046 }
1047 if (other.OauthScope.Length != 0) {
1048 OauthScope = other.OauthScope;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001049 }
1050 }
Craig Tiller190d3602015-02-18 09:23:38 -08001051
Jan Tattermusch10098d12016-10-06 13:15:12 +02001052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001053 public void MergeFrom(pb::CodedInputStream input) {
1054 uint tag;
Jan Tattermusch38536a72015-08-08 00:45:52 -07001055 while ((tag = input.ReadTag()) != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001056 switch(tag) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001057 default:
Jan Tattermusch38536a72015-08-08 00:45:52 -07001058 input.SkipLastField();
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001059 break;
1060 case 10: {
1061 if (payload_ == null) {
1062 payload_ = new global::Grpc.Testing.Payload();
1063 }
1064 input.ReadMessage(payload_);
1065 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001066 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001067 case 18: {
1068 Username = input.ReadString();
1069 break;
1070 }
1071 case 26: {
1072 OauthScope = input.ReadString();
1073 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001074 }
1075 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001076 }
1077 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001078
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001079 }
Craig Tiller190d3602015-02-18 09:23:38 -08001080
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001081 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001082 /// Client-streaming request.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001083 /// </summary>
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001084 public sealed partial class StreamingInputCallRequest : pb::IMessage<StreamingInputCallRequest> {
1085 private static readonly pb::MessageParser<StreamingInputCallRequest> _parser = new pb::MessageParser<StreamingInputCallRequest>(() => new StreamingInputCallRequest());
Jan Tattermusch10098d12016-10-06 13:15:12 +02001086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001087 public static pb::MessageParser<StreamingInputCallRequest> Parser { get { return _parser; } }
1088
Jan Tattermusch10098d12016-10-06 13:15:12 +02001089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001090 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001091 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[5]; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001092 }
Craig Tiller190d3602015-02-18 09:23:38 -08001093
Jan Tattermusch10098d12016-10-06 13:15:12 +02001094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001095 pbr::MessageDescriptor pb::IMessage.Descriptor {
1096 get { return Descriptor; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001097 }
Craig Tiller190d3602015-02-18 09:23:38 -08001098
Jan Tattermusch10098d12016-10-06 13:15:12 +02001099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001100 public StreamingInputCallRequest() {
1101 OnConstruction();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001102 }
Craig Tiller190d3602015-02-18 09:23:38 -08001103
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001104 partial void OnConstruction();
1105
Jan Tattermusch10098d12016-10-06 13:15:12 +02001106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001107 public StreamingInputCallRequest(StreamingInputCallRequest other) : this() {
1108 Payload = other.payload_ != null ? other.Payload.Clone() : null;
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001109 ExpectCompressed = other.expectCompressed_ != null ? other.ExpectCompressed.Clone() : null;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001110 }
Craig Tiller190d3602015-02-18 09:23:38 -08001111
Jan Tattermusch10098d12016-10-06 13:15:12 +02001112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001113 public StreamingInputCallRequest Clone() {
1114 return new StreamingInputCallRequest(this);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001115 }
Craig Tiller190d3602015-02-18 09:23:38 -08001116
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001117 /// <summary>Field number for the "payload" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001118 public const int PayloadFieldNumber = 1;
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001119 private global::Grpc.Testing.Payload payload_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001120 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001121 /// Optional input payload sent along with the request.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001122 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +02001123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001124 public global::Grpc.Testing.Payload Payload {
1125 get { return payload_; }
1126 set {
1127 payload_ = value;
1128 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001129 }
Craig Tiller190d3602015-02-18 09:23:38 -08001130
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001131 /// <summary>Field number for the "expect_compressed" field.</summary>
1132 public const int ExpectCompressedFieldNumber = 2;
1133 private global::Grpc.Testing.BoolValue expectCompressed_;
1134 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001135 /// Whether the server should expect this request to be compressed. This field
1136 /// is "nullable" in order to interoperate seamlessly with servers not able to
1137 /// implement the full compression tests by introspecting the call to verify
1138 /// the request's compression status.
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001139 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +02001140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001141 public global::Grpc.Testing.BoolValue ExpectCompressed {
1142 get { return expectCompressed_; }
1143 set {
1144 expectCompressed_ = value;
1145 }
1146 }
1147
Jan Tattermusch10098d12016-10-06 13:15:12 +02001148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001149 public override bool Equals(object other) {
1150 return Equals(other as StreamingInputCallRequest);
1151 }
1152
Jan Tattermusch10098d12016-10-06 13:15:12 +02001153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001154 public bool Equals(StreamingInputCallRequest other) {
1155 if (ReferenceEquals(other, null)) {
1156 return false;
1157 }
1158 if (ReferenceEquals(other, this)) {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001159 return true;
1160 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001161 if (!object.Equals(Payload, other.Payload)) return false;
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001162 if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false;
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001163 return true;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001164 }
Craig Tiller190d3602015-02-18 09:23:38 -08001165
Jan Tattermusch10098d12016-10-06 13:15:12 +02001166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001167 public override int GetHashCode() {
1168 int hash = 1;
1169 if (payload_ != null) hash ^= Payload.GetHashCode();
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001170 if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode();
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001171 return hash;
1172 }
1173
Jan Tattermusch10098d12016-10-06 13:15:12 +02001174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001175 public override string ToString() {
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001176 return pb::JsonFormatter.ToDiagnosticString(this);
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001177 }
1178
Jan Tattermusch10098d12016-10-06 13:15:12 +02001179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001180 public void WriteTo(pb::CodedOutputStream output) {
1181 if (payload_ != null) {
1182 output.WriteRawTag(10);
1183 output.WriteMessage(Payload);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001184 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001185 if (expectCompressed_ != null) {
1186 output.WriteRawTag(18);
1187 output.WriteMessage(ExpectCompressed);
1188 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001189 }
Craig Tiller190d3602015-02-18 09:23:38 -08001190
Jan Tattermusch10098d12016-10-06 13:15:12 +02001191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001192 public int CalculateSize() {
1193 int size = 0;
1194 if (payload_ != null) {
1195 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
1196 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001197 if (expectCompressed_ != null) {
1198 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed);
1199 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001200 return size;
1201 }
Craig Tiller190d3602015-02-18 09:23:38 -08001202
Jan Tattermusch10098d12016-10-06 13:15:12 +02001203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001204 public void MergeFrom(StreamingInputCallRequest other) {
1205 if (other == null) {
1206 return;
1207 }
1208 if (other.payload_ != null) {
1209 if (payload_ == null) {
1210 payload_ = new global::Grpc.Testing.Payload();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001211 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001212 Payload.MergeFrom(other.Payload);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001213 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001214 if (other.expectCompressed_ != null) {
1215 if (expectCompressed_ == null) {
1216 expectCompressed_ = new global::Grpc.Testing.BoolValue();
1217 }
1218 ExpectCompressed.MergeFrom(other.ExpectCompressed);
1219 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001220 }
Craig Tiller190d3602015-02-18 09:23:38 -08001221
Jan Tattermusch10098d12016-10-06 13:15:12 +02001222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001223 public void MergeFrom(pb::CodedInputStream input) {
1224 uint tag;
Jan Tattermusch38536a72015-08-08 00:45:52 -07001225 while ((tag = input.ReadTag()) != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001226 switch(tag) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001227 default:
Jan Tattermusch38536a72015-08-08 00:45:52 -07001228 input.SkipLastField();
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001229 break;
1230 case 10: {
1231 if (payload_ == null) {
1232 payload_ = new global::Grpc.Testing.Payload();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001233 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001234 input.ReadMessage(payload_);
1235 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001236 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001237 case 18: {
1238 if (expectCompressed_ == null) {
1239 expectCompressed_ = new global::Grpc.Testing.BoolValue();
1240 }
1241 input.ReadMessage(expectCompressed_);
1242 break;
1243 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001244 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001245 }
1246 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001247
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001248 }
Craig Tiller190d3602015-02-18 09:23:38 -08001249
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001250 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001251 /// Client-streaming response.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001252 /// </summary>
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001253 public sealed partial class StreamingInputCallResponse : pb::IMessage<StreamingInputCallResponse> {
1254 private static readonly pb::MessageParser<StreamingInputCallResponse> _parser = new pb::MessageParser<StreamingInputCallResponse>(() => new StreamingInputCallResponse());
Jan Tattermusch10098d12016-10-06 13:15:12 +02001255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001256 public static pb::MessageParser<StreamingInputCallResponse> Parser { get { return _parser; } }
1257
Jan Tattermusch10098d12016-10-06 13:15:12 +02001258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001259 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001260 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[6]; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001261 }
Craig Tiller190d3602015-02-18 09:23:38 -08001262
Jan Tattermusch10098d12016-10-06 13:15:12 +02001263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001264 pbr::MessageDescriptor pb::IMessage.Descriptor {
1265 get { return Descriptor; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001266 }
Craig Tiller190d3602015-02-18 09:23:38 -08001267
Jan Tattermusch10098d12016-10-06 13:15:12 +02001268 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001269 public StreamingInputCallResponse() {
1270 OnConstruction();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001271 }
Craig Tiller190d3602015-02-18 09:23:38 -08001272
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001273 partial void OnConstruction();
1274
Jan Tattermusch10098d12016-10-06 13:15:12 +02001275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001276 public StreamingInputCallResponse(StreamingInputCallResponse other) : this() {
1277 aggregatedPayloadSize_ = other.aggregatedPayloadSize_;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001278 }
Craig Tiller190d3602015-02-18 09:23:38 -08001279
Jan Tattermusch10098d12016-10-06 13:15:12 +02001280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001281 public StreamingInputCallResponse Clone() {
1282 return new StreamingInputCallResponse(this);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001283 }
Craig Tiller190d3602015-02-18 09:23:38 -08001284
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001285 /// <summary>Field number for the "aggregated_payload_size" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001286 public const int AggregatedPayloadSizeFieldNumber = 1;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001287 private int aggregatedPayloadSize_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001288 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001289 /// Aggregated size of payloads received from the client.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001290 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +02001291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001292 public int AggregatedPayloadSize {
1293 get { return aggregatedPayloadSize_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001294 set {
1295 aggregatedPayloadSize_ = value;
1296 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001297 }
Craig Tiller190d3602015-02-18 09:23:38 -08001298
Jan Tattermusch10098d12016-10-06 13:15:12 +02001299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001300 public override bool Equals(object other) {
1301 return Equals(other as StreamingInputCallResponse);
1302 }
1303
Jan Tattermusch10098d12016-10-06 13:15:12 +02001304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001305 public bool Equals(StreamingInputCallResponse other) {
1306 if (ReferenceEquals(other, null)) {
1307 return false;
1308 }
1309 if (ReferenceEquals(other, this)) {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001310 return true;
1311 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001312 if (AggregatedPayloadSize != other.AggregatedPayloadSize) return false;
1313 return true;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001314 }
Craig Tiller190d3602015-02-18 09:23:38 -08001315
Jan Tattermusch10098d12016-10-06 13:15:12 +02001316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001317 public override int GetHashCode() {
1318 int hash = 1;
1319 if (AggregatedPayloadSize != 0) hash ^= AggregatedPayloadSize.GetHashCode();
1320 return hash;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001321 }
Craig Tiller190d3602015-02-18 09:23:38 -08001322
Jan Tattermusch10098d12016-10-06 13:15:12 +02001323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001324 public override string ToString() {
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001325 return pb::JsonFormatter.ToDiagnosticString(this);
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001326 }
Craig Tiller190d3602015-02-18 09:23:38 -08001327
Jan Tattermusch10098d12016-10-06 13:15:12 +02001328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001329 public void WriteTo(pb::CodedOutputStream output) {
1330 if (AggregatedPayloadSize != 0) {
1331 output.WriteRawTag(8);
1332 output.WriteInt32(AggregatedPayloadSize);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001333 }
1334 }
Craig Tiller190d3602015-02-18 09:23:38 -08001335
Jan Tattermusch10098d12016-10-06 13:15:12 +02001336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001337 public int CalculateSize() {
1338 int size = 0;
1339 if (AggregatedPayloadSize != 0) {
1340 size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregatedPayloadSize);
1341 }
1342 return size;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001343 }
Craig Tiller190d3602015-02-18 09:23:38 -08001344
Jan Tattermusch10098d12016-10-06 13:15:12 +02001345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001346 public void MergeFrom(StreamingInputCallResponse other) {
1347 if (other == null) {
1348 return;
1349 }
1350 if (other.AggregatedPayloadSize != 0) {
1351 AggregatedPayloadSize = other.AggregatedPayloadSize;
1352 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001353 }
Craig Tiller190d3602015-02-18 09:23:38 -08001354
Jan Tattermusch10098d12016-10-06 13:15:12 +02001355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001356 public void MergeFrom(pb::CodedInputStream input) {
1357 uint tag;
Jan Tattermusch38536a72015-08-08 00:45:52 -07001358 while ((tag = input.ReadTag()) != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001359 switch(tag) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001360 default:
Jan Tattermusch38536a72015-08-08 00:45:52 -07001361 input.SkipLastField();
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001362 break;
1363 case 8: {
1364 AggregatedPayloadSize = input.ReadInt32();
1365 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001366 }
1367 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001368 }
1369 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001370
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001371 }
Craig Tiller190d3602015-02-18 09:23:38 -08001372
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001373 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001374 /// Configuration for a particular response.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001375 /// </summary>
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001376 public sealed partial class ResponseParameters : pb::IMessage<ResponseParameters> {
1377 private static readonly pb::MessageParser<ResponseParameters> _parser = new pb::MessageParser<ResponseParameters>(() => new ResponseParameters());
Jan Tattermusch10098d12016-10-06 13:15:12 +02001378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001379 public static pb::MessageParser<ResponseParameters> Parser { get { return _parser; } }
1380
Jan Tattermusch10098d12016-10-06 13:15:12 +02001381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001382 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001383 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[7]; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001384 }
Craig Tiller190d3602015-02-18 09:23:38 -08001385
Jan Tattermusch10098d12016-10-06 13:15:12 +02001386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001387 pbr::MessageDescriptor pb::IMessage.Descriptor {
1388 get { return Descriptor; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001389 }
Craig Tiller190d3602015-02-18 09:23:38 -08001390
Jan Tattermusch10098d12016-10-06 13:15:12 +02001391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001392 public ResponseParameters() {
1393 OnConstruction();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001394 }
Craig Tiller190d3602015-02-18 09:23:38 -08001395
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001396 partial void OnConstruction();
1397
Jan Tattermusch10098d12016-10-06 13:15:12 +02001398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001399 public ResponseParameters(ResponseParameters other) : this() {
1400 size_ = other.size_;
1401 intervalUs_ = other.intervalUs_;
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001402 Compressed = other.compressed_ != null ? other.Compressed.Clone() : null;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001403 }
Craig Tiller190d3602015-02-18 09:23:38 -08001404
Jan Tattermusch10098d12016-10-06 13:15:12 +02001405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001406 public ResponseParameters Clone() {
1407 return new ResponseParameters(this);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001408 }
Craig Tiller190d3602015-02-18 09:23:38 -08001409
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001410 /// <summary>Field number for the "size" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001411 public const int SizeFieldNumber = 1;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001412 private int size_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001413 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001414 /// Desired payload sizes in responses from the server.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001415 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +02001416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001417 public int Size {
1418 get { return size_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001419 set {
1420 size_ = value;
1421 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001422 }
Craig Tiller190d3602015-02-18 09:23:38 -08001423
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001424 /// <summary>Field number for the "interval_us" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001425 public const int IntervalUsFieldNumber = 2;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001426 private int intervalUs_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001427 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001428 /// Desired interval between consecutive responses in the response stream in
1429 /// microseconds.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001430 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +02001431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001432 public int IntervalUs {
1433 get { return intervalUs_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001434 set {
1435 intervalUs_ = value;
1436 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001437 }
Craig Tiller190d3602015-02-18 09:23:38 -08001438
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001439 /// <summary>Field number for the "compressed" field.</summary>
1440 public const int CompressedFieldNumber = 3;
1441 private global::Grpc.Testing.BoolValue compressed_;
1442 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001443 /// Whether to request the server to compress the response. This field is
1444 /// "nullable" in order to interoperate seamlessly with clients not able to
1445 /// implement the full compression tests by introspecting the call to verify
1446 /// the response's compression status.
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001447 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +02001448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001449 public global::Grpc.Testing.BoolValue Compressed {
1450 get { return compressed_; }
1451 set {
1452 compressed_ = value;
1453 }
1454 }
1455
Jan Tattermusch10098d12016-10-06 13:15:12 +02001456 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001457 public override bool Equals(object other) {
1458 return Equals(other as ResponseParameters);
1459 }
1460
Jan Tattermusch10098d12016-10-06 13:15:12 +02001461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001462 public bool Equals(ResponseParameters other) {
1463 if (ReferenceEquals(other, null)) {
1464 return false;
1465 }
1466 if (ReferenceEquals(other, this)) {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001467 return true;
1468 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001469 if (Size != other.Size) return false;
1470 if (IntervalUs != other.IntervalUs) return false;
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001471 if (!object.Equals(Compressed, other.Compressed)) return false;
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001472 return true;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001473 }
Craig Tiller190d3602015-02-18 09:23:38 -08001474
Jan Tattermusch10098d12016-10-06 13:15:12 +02001475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001476 public override int GetHashCode() {
1477 int hash = 1;
1478 if (Size != 0) hash ^= Size.GetHashCode();
1479 if (IntervalUs != 0) hash ^= IntervalUs.GetHashCode();
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001480 if (compressed_ != null) hash ^= Compressed.GetHashCode();
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001481 return hash;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001482 }
Craig Tiller190d3602015-02-18 09:23:38 -08001483
Jan Tattermusch10098d12016-10-06 13:15:12 +02001484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001485 public override string ToString() {
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001486 return pb::JsonFormatter.ToDiagnosticString(this);
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001487 }
Craig Tiller190d3602015-02-18 09:23:38 -08001488
Jan Tattermusch10098d12016-10-06 13:15:12 +02001489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001490 public void WriteTo(pb::CodedOutputStream output) {
1491 if (Size != 0) {
1492 output.WriteRawTag(8);
1493 output.WriteInt32(Size);
1494 }
1495 if (IntervalUs != 0) {
1496 output.WriteRawTag(16);
1497 output.WriteInt32(IntervalUs);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001498 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001499 if (compressed_ != null) {
1500 output.WriteRawTag(26);
1501 output.WriteMessage(Compressed);
1502 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001503 }
Craig Tiller190d3602015-02-18 09:23:38 -08001504
Jan Tattermusch10098d12016-10-06 13:15:12 +02001505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001506 public int CalculateSize() {
1507 int size = 0;
1508 if (Size != 0) {
1509 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Size);
1510 }
1511 if (IntervalUs != 0) {
1512 size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntervalUs);
1513 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001514 if (compressed_ != null) {
1515 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Compressed);
1516 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001517 return size;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001518 }
Craig Tiller190d3602015-02-18 09:23:38 -08001519
Jan Tattermusch10098d12016-10-06 13:15:12 +02001520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001521 public void MergeFrom(ResponseParameters other) {
1522 if (other == null) {
1523 return;
1524 }
1525 if (other.Size != 0) {
1526 Size = other.Size;
1527 }
1528 if (other.IntervalUs != 0) {
1529 IntervalUs = other.IntervalUs;
1530 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001531 if (other.compressed_ != null) {
1532 if (compressed_ == null) {
1533 compressed_ = new global::Grpc.Testing.BoolValue();
1534 }
1535 Compressed.MergeFrom(other.Compressed);
1536 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001537 }
Craig Tiller190d3602015-02-18 09:23:38 -08001538
Jan Tattermusch10098d12016-10-06 13:15:12 +02001539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001540 public void MergeFrom(pb::CodedInputStream input) {
1541 uint tag;
Jan Tattermusch38536a72015-08-08 00:45:52 -07001542 while ((tag = input.ReadTag()) != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001543 switch(tag) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001544 default:
Jan Tattermusch38536a72015-08-08 00:45:52 -07001545 input.SkipLastField();
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001546 break;
1547 case 8: {
1548 Size = input.ReadInt32();
1549 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001550 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001551 case 16: {
1552 IntervalUs = input.ReadInt32();
1553 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001554 }
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001555 case 26: {
1556 if (compressed_ == null) {
1557 compressed_ = new global::Grpc.Testing.BoolValue();
1558 }
1559 input.ReadMessage(compressed_);
1560 break;
1561 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001562 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001563 }
1564 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001565
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001566 }
Craig Tiller190d3602015-02-18 09:23:38 -08001567
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001568 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001569 /// Server-streaming request.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001570 /// </summary>
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001571 public sealed partial class StreamingOutputCallRequest : pb::IMessage<StreamingOutputCallRequest> {
1572 private static readonly pb::MessageParser<StreamingOutputCallRequest> _parser = new pb::MessageParser<StreamingOutputCallRequest>(() => new StreamingOutputCallRequest());
Jan Tattermusch10098d12016-10-06 13:15:12 +02001573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001574 public static pb::MessageParser<StreamingOutputCallRequest> Parser { get { return _parser; } }
1575
Jan Tattermusch10098d12016-10-06 13:15:12 +02001576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001577 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001578 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[8]; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001579 }
Craig Tiller190d3602015-02-18 09:23:38 -08001580
Jan Tattermusch10098d12016-10-06 13:15:12 +02001581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001582 pbr::MessageDescriptor pb::IMessage.Descriptor {
1583 get { return Descriptor; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001584 }
Craig Tiller190d3602015-02-18 09:23:38 -08001585
Jan Tattermusch10098d12016-10-06 13:15:12 +02001586 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001587 public StreamingOutputCallRequest() {
1588 OnConstruction();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001589 }
Craig Tiller190d3602015-02-18 09:23:38 -08001590
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001591 partial void OnConstruction();
1592
Jan Tattermusch10098d12016-10-06 13:15:12 +02001593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001594 public StreamingOutputCallRequest(StreamingOutputCallRequest other) : this() {
1595 responseType_ = other.responseType_;
1596 responseParameters_ = other.responseParameters_.Clone();
1597 Payload = other.payload_ != null ? other.Payload.Clone() : null;
Jan Tattermusch70f86522015-10-07 18:23:51 -07001598 ResponseStatus = other.responseStatus_ != null ? other.ResponseStatus.Clone() : null;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001599 }
Craig Tiller190d3602015-02-18 09:23:38 -08001600
Jan Tattermusch10098d12016-10-06 13:15:12 +02001601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001602 public StreamingOutputCallRequest Clone() {
1603 return new StreamingOutputCallRequest(this);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001604 }
Craig Tiller190d3602015-02-18 09:23:38 -08001605
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001606 /// <summary>Field number for the "response_type" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001607 public const int ResponseTypeFieldNumber = 1;
Jan Tattermuschc96fdde2016-05-16 17:08:41 -07001608 private global::Grpc.Testing.PayloadType responseType_ = 0;
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001609 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001610 /// DEPRECATED, don't use. To be removed shortly.
1611 /// Desired payload type in the response from the server.
1612 /// If response_type is RANDOM, the payload from each response in the stream
1613 /// might be of different types. This is to simulate a mixed type of payload
1614 /// stream.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001615 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +02001616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001617 public global::Grpc.Testing.PayloadType ResponseType {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001618 get { return responseType_; }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001619 set {
1620 responseType_ = value;
1621 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001622 }
Craig Tiller190d3602015-02-18 09:23:38 -08001623
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001624 /// <summary>Field number for the "response_parameters" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001625 public const int ResponseParametersFieldNumber = 2;
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001626 private static readonly pb::FieldCodec<global::Grpc.Testing.ResponseParameters> _repeated_responseParameters_codec
1627 = pb::FieldCodec.ForMessage(18, global::Grpc.Testing.ResponseParameters.Parser);
1628 private readonly pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> responseParameters_ = new pbc::RepeatedField<global::Grpc.Testing.ResponseParameters>();
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001629 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001630 /// Configuration for each expected response message.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001631 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +02001632 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001633 public pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> ResponseParameters {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001634 get { return responseParameters_; }
1635 }
Craig Tiller190d3602015-02-18 09:23:38 -08001636
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001637 /// <summary>Field number for the "payload" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001638 public const int PayloadFieldNumber = 3;
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001639 private global::Grpc.Testing.Payload payload_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001640 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001641 /// Optional input payload sent along with the request.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001642 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +02001643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001644 public global::Grpc.Testing.Payload Payload {
1645 get { return payload_; }
1646 set {
1647 payload_ = value;
1648 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001649 }
Craig Tiller190d3602015-02-18 09:23:38 -08001650
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001651 /// <summary>Field number for the "response_status" field.</summary>
Jan Tattermusch70f86522015-10-07 18:23:51 -07001652 public const int ResponseStatusFieldNumber = 7;
1653 private global::Grpc.Testing.EchoStatus responseStatus_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001654 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001655 /// Whether server should return a given status
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001656 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +02001657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07001658 public global::Grpc.Testing.EchoStatus ResponseStatus {
1659 get { return responseStatus_; }
1660 set {
1661 responseStatus_ = value;
1662 }
1663 }
1664
Jan Tattermusch10098d12016-10-06 13:15:12 +02001665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001666 public override bool Equals(object other) {
1667 return Equals(other as StreamingOutputCallRequest);
1668 }
1669
Jan Tattermusch10098d12016-10-06 13:15:12 +02001670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001671 public bool Equals(StreamingOutputCallRequest other) {
1672 if (ReferenceEquals(other, null)) {
1673 return false;
1674 }
1675 if (ReferenceEquals(other, this)) {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001676 return true;
1677 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001678 if (ResponseType != other.ResponseType) return false;
1679 if(!responseParameters_.Equals(other.responseParameters_)) return false;
1680 if (!object.Equals(Payload, other.Payload)) return false;
Jan Tattermusch70f86522015-10-07 18:23:51 -07001681 if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false;
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001682 return true;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001683 }
Craig Tiller190d3602015-02-18 09:23:38 -08001684
Jan Tattermusch10098d12016-10-06 13:15:12 +02001685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001686 public override int GetHashCode() {
1687 int hash = 1;
Jan Tattermuschc96fdde2016-05-16 17:08:41 -07001688 if (ResponseType != 0) hash ^= ResponseType.GetHashCode();
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001689 hash ^= responseParameters_.GetHashCode();
1690 if (payload_ != null) hash ^= Payload.GetHashCode();
Jan Tattermusch70f86522015-10-07 18:23:51 -07001691 if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode();
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001692 return hash;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001693 }
Craig Tiller190d3602015-02-18 09:23:38 -08001694
Jan Tattermusch10098d12016-10-06 13:15:12 +02001695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001696 public override string ToString() {
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001697 return pb::JsonFormatter.ToDiagnosticString(this);
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001698 }
Craig Tiller190d3602015-02-18 09:23:38 -08001699
Jan Tattermusch10098d12016-10-06 13:15:12 +02001700 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001701 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermuschc96fdde2016-05-16 17:08:41 -07001702 if (ResponseType != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001703 output.WriteRawTag(8);
1704 output.WriteEnum((int) ResponseType);
1705 }
1706 responseParameters_.WriteTo(output, _repeated_responseParameters_codec);
1707 if (payload_ != null) {
1708 output.WriteRawTag(26);
1709 output.WriteMessage(Payload);
1710 }
Jan Tattermusch70f86522015-10-07 18:23:51 -07001711 if (responseStatus_ != null) {
1712 output.WriteRawTag(58);
1713 output.WriteMessage(ResponseStatus);
1714 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001715 }
1716
Jan Tattermusch10098d12016-10-06 13:15:12 +02001717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001718 public int CalculateSize() {
1719 int size = 0;
Jan Tattermuschc96fdde2016-05-16 17:08:41 -07001720 if (ResponseType != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001721 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType);
1722 }
1723 size += responseParameters_.CalculateSize(_repeated_responseParameters_codec);
1724 if (payload_ != null) {
1725 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
1726 }
Jan Tattermusch70f86522015-10-07 18:23:51 -07001727 if (responseStatus_ != null) {
1728 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus);
1729 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001730 return size;
1731 }
1732
Jan Tattermusch10098d12016-10-06 13:15:12 +02001733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001734 public void MergeFrom(StreamingOutputCallRequest other) {
1735 if (other == null) {
1736 return;
1737 }
Jan Tattermuschc96fdde2016-05-16 17:08:41 -07001738 if (other.ResponseType != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001739 ResponseType = other.ResponseType;
1740 }
1741 responseParameters_.Add(other.responseParameters_);
1742 if (other.payload_ != null) {
1743 if (payload_ == null) {
1744 payload_ = new global::Grpc.Testing.Payload();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001745 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001746 Payload.MergeFrom(other.Payload);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001747 }
Jan Tattermusch70f86522015-10-07 18:23:51 -07001748 if (other.responseStatus_ != null) {
1749 if (responseStatus_ == null) {
1750 responseStatus_ = new global::Grpc.Testing.EchoStatus();
1751 }
1752 ResponseStatus.MergeFrom(other.ResponseStatus);
1753 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001754 }
Craig Tiller190d3602015-02-18 09:23:38 -08001755
Jan Tattermusch10098d12016-10-06 13:15:12 +02001756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001757 public void MergeFrom(pb::CodedInputStream input) {
1758 uint tag;
Jan Tattermusch38536a72015-08-08 00:45:52 -07001759 while ((tag = input.ReadTag()) != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001760 switch(tag) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001761 default:
Jan Tattermusch38536a72015-08-08 00:45:52 -07001762 input.SkipLastField();
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001763 break;
1764 case 8: {
1765 responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
1766 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001767 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001768 case 18: {
1769 responseParameters_.AddEntriesFrom(input, _repeated_responseParameters_codec);
1770 break;
1771 }
1772 case 26: {
1773 if (payload_ == null) {
1774 payload_ = new global::Grpc.Testing.Payload();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001775 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001776 input.ReadMessage(payload_);
1777 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001778 }
Jan Tattermusch70f86522015-10-07 18:23:51 -07001779 case 58: {
1780 if (responseStatus_ == null) {
1781 responseStatus_ = new global::Grpc.Testing.EchoStatus();
1782 }
1783 input.ReadMessage(responseStatus_);
1784 break;
1785 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001786 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001787 }
1788 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001789
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001790 }
Craig Tiller190d3602015-02-18 09:23:38 -08001791
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001792 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001793 /// Server-streaming response, as configured by the request and parameters.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001794 /// </summary>
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001795 public sealed partial class StreamingOutputCallResponse : pb::IMessage<StreamingOutputCallResponse> {
1796 private static readonly pb::MessageParser<StreamingOutputCallResponse> _parser = new pb::MessageParser<StreamingOutputCallResponse>(() => new StreamingOutputCallResponse());
Jan Tattermusch10098d12016-10-06 13:15:12 +02001797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001798 public static pb::MessageParser<StreamingOutputCallResponse> Parser { get { return _parser; } }
1799
Jan Tattermusch10098d12016-10-06 13:15:12 +02001800 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001801 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001802 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[9]; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001803 }
Craig Tiller190d3602015-02-18 09:23:38 -08001804
Jan Tattermusch10098d12016-10-06 13:15:12 +02001805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001806 pbr::MessageDescriptor pb::IMessage.Descriptor {
1807 get { return Descriptor; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001808 }
Craig Tiller190d3602015-02-18 09:23:38 -08001809
Jan Tattermusch10098d12016-10-06 13:15:12 +02001810 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001811 public StreamingOutputCallResponse() {
1812 OnConstruction();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001813 }
Craig Tiller190d3602015-02-18 09:23:38 -08001814
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001815 partial void OnConstruction();
1816
Jan Tattermusch10098d12016-10-06 13:15:12 +02001817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001818 public StreamingOutputCallResponse(StreamingOutputCallResponse other) : this() {
1819 Payload = other.payload_ != null ? other.Payload.Clone() : null;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001820 }
Craig Tiller190d3602015-02-18 09:23:38 -08001821
Jan Tattermusch10098d12016-10-06 13:15:12 +02001822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001823 public StreamingOutputCallResponse Clone() {
1824 return new StreamingOutputCallResponse(this);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001825 }
Craig Tiller190d3602015-02-18 09:23:38 -08001826
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001827 /// <summary>Field number for the "payload" field.</summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001828 public const int PayloadFieldNumber = 1;
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001829 private global::Grpc.Testing.Payload payload_;
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001830 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001831 /// Payload to increase response size.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001832 /// </summary>
Jan Tattermusch10098d12016-10-06 13:15:12 +02001833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001834 public global::Grpc.Testing.Payload Payload {
1835 get { return payload_; }
1836 set {
1837 payload_ = value;
1838 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001839 }
Craig Tiller190d3602015-02-18 09:23:38 -08001840
Jan Tattermusch10098d12016-10-06 13:15:12 +02001841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001842 public override bool Equals(object other) {
1843 return Equals(other as StreamingOutputCallResponse);
1844 }
1845
Jan Tattermusch10098d12016-10-06 13:15:12 +02001846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001847 public bool Equals(StreamingOutputCallResponse other) {
1848 if (ReferenceEquals(other, null)) {
1849 return false;
1850 }
1851 if (ReferenceEquals(other, this)) {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001852 return true;
1853 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001854 if (!object.Equals(Payload, other.Payload)) return false;
1855 return true;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001856 }
Craig Tiller190d3602015-02-18 09:23:38 -08001857
Jan Tattermusch10098d12016-10-06 13:15:12 +02001858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001859 public override int GetHashCode() {
1860 int hash = 1;
1861 if (payload_ != null) hash ^= Payload.GetHashCode();
1862 return hash;
1863 }
1864
Jan Tattermusch10098d12016-10-06 13:15:12 +02001865 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001866 public override string ToString() {
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001867 return pb::JsonFormatter.ToDiagnosticString(this);
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001868 }
1869
Jan Tattermusch10098d12016-10-06 13:15:12 +02001870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001871 public void WriteTo(pb::CodedOutputStream output) {
1872 if (payload_ != null) {
1873 output.WriteRawTag(10);
1874 output.WriteMessage(Payload);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001875 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001876 }
Craig Tiller190d3602015-02-18 09:23:38 -08001877
Jan Tattermusch10098d12016-10-06 13:15:12 +02001878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001879 public int CalculateSize() {
1880 int size = 0;
1881 if (payload_ != null) {
1882 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
1883 }
1884 return size;
1885 }
Craig Tiller190d3602015-02-18 09:23:38 -08001886
Jan Tattermusch10098d12016-10-06 13:15:12 +02001887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001888 public void MergeFrom(StreamingOutputCallResponse other) {
1889 if (other == null) {
1890 return;
1891 }
1892 if (other.payload_ != null) {
1893 if (payload_ == null) {
1894 payload_ = new global::Grpc.Testing.Payload();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001895 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001896 Payload.MergeFrom(other.Payload);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001897 }
1898 }
Craig Tiller190d3602015-02-18 09:23:38 -08001899
Jan Tattermusch10098d12016-10-06 13:15:12 +02001900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001901 public void MergeFrom(pb::CodedInputStream input) {
1902 uint tag;
Jan Tattermusch38536a72015-08-08 00:45:52 -07001903 while ((tag = input.ReadTag()) != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001904 switch(tag) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001905 default:
Jan Tattermusch38536a72015-08-08 00:45:52 -07001906 input.SkipLastField();
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001907 break;
1908 case 10: {
1909 if (payload_ == null) {
1910 payload_ = new global::Grpc.Testing.Payload();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001911 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001912 input.ReadMessage(payload_);
1913 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001914 }
1915 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001916 }
1917 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001918
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08001919 }
Craig Tiller190d3602015-02-18 09:23:38 -08001920
Jan Tattermusch72ce4422016-01-20 13:54:38 -08001921 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01001922 /// For reconnect interop test only.
1923 /// Client tells server what reconnection parameters it used.
vjpai87bac952016-04-20 09:35:35 -07001924 /// </summary>
vjpai87bac952016-04-20 09:35:35 -07001925 public sealed partial class ReconnectParams : pb::IMessage<ReconnectParams> {
1926 private static readonly pb::MessageParser<ReconnectParams> _parser = new pb::MessageParser<ReconnectParams>(() => new ReconnectParams());
Jan Tattermusch10098d12016-10-06 13:15:12 +02001927 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001928 public static pb::MessageParser<ReconnectParams> Parser { get { return _parser; } }
1929
Jan Tattermusch10098d12016-10-06 13:15:12 +02001930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001931 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch67ceba52016-06-21 18:29:09 -07001932 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[10]; }
vjpai87bac952016-04-20 09:35:35 -07001933 }
1934
Jan Tattermusch10098d12016-10-06 13:15:12 +02001935 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001936 pbr::MessageDescriptor pb::IMessage.Descriptor {
1937 get { return Descriptor; }
1938 }
1939
Jan Tattermusch10098d12016-10-06 13:15:12 +02001940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001941 public ReconnectParams() {
1942 OnConstruction();
1943 }
1944
1945 partial void OnConstruction();
1946
Jan Tattermusch10098d12016-10-06 13:15:12 +02001947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001948 public ReconnectParams(ReconnectParams other) : this() {
1949 maxReconnectBackoffMs_ = other.maxReconnectBackoffMs_;
1950 }
1951
Jan Tattermusch10098d12016-10-06 13:15:12 +02001952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001953 public ReconnectParams Clone() {
1954 return new ReconnectParams(this);
1955 }
1956
1957 /// <summary>Field number for the "max_reconnect_backoff_ms" field.</summary>
1958 public const int MaxReconnectBackoffMsFieldNumber = 1;
1959 private int maxReconnectBackoffMs_;
Jan Tattermusch10098d12016-10-06 13:15:12 +02001960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001961 public int MaxReconnectBackoffMs {
1962 get { return maxReconnectBackoffMs_; }
1963 set {
1964 maxReconnectBackoffMs_ = value;
1965 }
1966 }
1967
Jan Tattermusch10098d12016-10-06 13:15:12 +02001968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001969 public override bool Equals(object other) {
1970 return Equals(other as ReconnectParams);
1971 }
1972
Jan Tattermusch10098d12016-10-06 13:15:12 +02001973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001974 public bool Equals(ReconnectParams other) {
1975 if (ReferenceEquals(other, null)) {
1976 return false;
1977 }
1978 if (ReferenceEquals(other, this)) {
1979 return true;
1980 }
1981 if (MaxReconnectBackoffMs != other.MaxReconnectBackoffMs) return false;
1982 return true;
1983 }
1984
Jan Tattermusch10098d12016-10-06 13:15:12 +02001985 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001986 public override int GetHashCode() {
1987 int hash = 1;
1988 if (MaxReconnectBackoffMs != 0) hash ^= MaxReconnectBackoffMs.GetHashCode();
1989 return hash;
1990 }
1991
Jan Tattermusch10098d12016-10-06 13:15:12 +02001992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001993 public override string ToString() {
1994 return pb::JsonFormatter.ToDiagnosticString(this);
1995 }
1996
Jan Tattermusch10098d12016-10-06 13:15:12 +02001997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07001998 public void WriteTo(pb::CodedOutputStream output) {
1999 if (MaxReconnectBackoffMs != 0) {
2000 output.WriteRawTag(8);
2001 output.WriteInt32(MaxReconnectBackoffMs);
2002 }
2003 }
2004
Jan Tattermusch10098d12016-10-06 13:15:12 +02002005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07002006 public int CalculateSize() {
2007 int size = 0;
2008 if (MaxReconnectBackoffMs != 0) {
2009 size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxReconnectBackoffMs);
2010 }
2011 return size;
2012 }
2013
Jan Tattermusch10098d12016-10-06 13:15:12 +02002014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07002015 public void MergeFrom(ReconnectParams other) {
2016 if (other == null) {
2017 return;
2018 }
2019 if (other.MaxReconnectBackoffMs != 0) {
2020 MaxReconnectBackoffMs = other.MaxReconnectBackoffMs;
2021 }
2022 }
2023
Jan Tattermusch10098d12016-10-06 13:15:12 +02002024 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
vjpai87bac952016-04-20 09:35:35 -07002025 public void MergeFrom(pb::CodedInputStream input) {
2026 uint tag;
2027 while ((tag = input.ReadTag()) != 0) {
2028 switch(tag) {
2029 default:
2030 input.SkipLastField();
2031 break;
2032 case 8: {
2033 MaxReconnectBackoffMs = input.ReadInt32();
2034 break;
2035 }
2036 }
2037 }
2038 }
2039
2040 }
2041
2042 /// <summary>
Jan Tattermuschd687e922017-02-22 09:12:00 +01002043 /// For reconnect interop test only.
2044 /// Server tells client whether its reconnects are following the spec and the
2045 /// reconnect backoffs it saw.
Jan Tattermusch72ce4422016-01-20 13:54:38 -08002046 /// </summary>
Jan Tattermusch70f86522015-10-07 18:23:51 -07002047 public sealed partial class ReconnectInfo : pb::IMessage<ReconnectInfo> {
2048 private static readonly pb::MessageParser<ReconnectInfo> _parser = new pb::MessageParser<ReconnectInfo>(() => new ReconnectInfo());
Jan Tattermusch10098d12016-10-06 13:15:12 +02002049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002050 public static pb::MessageParser<ReconnectInfo> Parser { get { return _parser; } }
2051
Jan Tattermusch10098d12016-10-06 13:15:12 +02002052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002053 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch67ceba52016-06-21 18:29:09 -07002054 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[11]; }
Jan Tattermusch70f86522015-10-07 18:23:51 -07002055 }
2056
Jan Tattermusch10098d12016-10-06 13:15:12 +02002057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002058 pbr::MessageDescriptor pb::IMessage.Descriptor {
2059 get { return Descriptor; }
2060 }
2061
Jan Tattermusch10098d12016-10-06 13:15:12 +02002062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002063 public ReconnectInfo() {
2064 OnConstruction();
2065 }
2066
2067 partial void OnConstruction();
2068
Jan Tattermusch10098d12016-10-06 13:15:12 +02002069 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002070 public ReconnectInfo(ReconnectInfo other) : this() {
2071 passed_ = other.passed_;
2072 backoffMs_ = other.backoffMs_.Clone();
2073 }
2074
Jan Tattermusch10098d12016-10-06 13:15:12 +02002075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002076 public ReconnectInfo Clone() {
2077 return new ReconnectInfo(this);
2078 }
2079
Jan Tattermusch72ce4422016-01-20 13:54:38 -08002080 /// <summary>Field number for the "passed" field.</summary>
Jan Tattermusch70f86522015-10-07 18:23:51 -07002081 public const int PassedFieldNumber = 1;
2082 private bool passed_;
Jan Tattermusch10098d12016-10-06 13:15:12 +02002083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002084 public bool Passed {
2085 get { return passed_; }
2086 set {
2087 passed_ = value;
2088 }
2089 }
2090
Jan Tattermusch72ce4422016-01-20 13:54:38 -08002091 /// <summary>Field number for the "backoff_ms" field.</summary>
Jan Tattermusch70f86522015-10-07 18:23:51 -07002092 public const int BackoffMsFieldNumber = 2;
2093 private static readonly pb::FieldCodec<int> _repeated_backoffMs_codec
2094 = pb::FieldCodec.ForInt32(18);
2095 private readonly pbc::RepeatedField<int> backoffMs_ = new pbc::RepeatedField<int>();
Jan Tattermusch10098d12016-10-06 13:15:12 +02002096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002097 public pbc::RepeatedField<int> BackoffMs {
2098 get { return backoffMs_; }
2099 }
2100
Jan Tattermusch10098d12016-10-06 13:15:12 +02002101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002102 public override bool Equals(object other) {
2103 return Equals(other as ReconnectInfo);
2104 }
2105
Jan Tattermusch10098d12016-10-06 13:15:12 +02002106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002107 public bool Equals(ReconnectInfo other) {
2108 if (ReferenceEquals(other, null)) {
2109 return false;
2110 }
2111 if (ReferenceEquals(other, this)) {
2112 return true;
2113 }
2114 if (Passed != other.Passed) return false;
2115 if(!backoffMs_.Equals(other.backoffMs_)) return false;
2116 return true;
2117 }
2118
Jan Tattermusch10098d12016-10-06 13:15:12 +02002119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002120 public override int GetHashCode() {
2121 int hash = 1;
2122 if (Passed != false) hash ^= Passed.GetHashCode();
2123 hash ^= backoffMs_.GetHashCode();
2124 return hash;
2125 }
2126
Jan Tattermusch10098d12016-10-06 13:15:12 +02002127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002128 public override string ToString() {
Jan Tattermusch72ce4422016-01-20 13:54:38 -08002129 return pb::JsonFormatter.ToDiagnosticString(this);
Jan Tattermusch70f86522015-10-07 18:23:51 -07002130 }
2131
Jan Tattermusch10098d12016-10-06 13:15:12 +02002132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002133 public void WriteTo(pb::CodedOutputStream output) {
2134 if (Passed != false) {
2135 output.WriteRawTag(8);
2136 output.WriteBool(Passed);
2137 }
2138 backoffMs_.WriteTo(output, _repeated_backoffMs_codec);
2139 }
2140
Jan Tattermusch10098d12016-10-06 13:15:12 +02002141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002142 public int CalculateSize() {
2143 int size = 0;
2144 if (Passed != false) {
2145 size += 1 + 1;
2146 }
2147 size += backoffMs_.CalculateSize(_repeated_backoffMs_codec);
2148 return size;
2149 }
2150
Jan Tattermusch10098d12016-10-06 13:15:12 +02002151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002152 public void MergeFrom(ReconnectInfo other) {
2153 if (other == null) {
2154 return;
2155 }
2156 if (other.Passed != false) {
2157 Passed = other.Passed;
2158 }
2159 backoffMs_.Add(other.backoffMs_);
2160 }
2161
Jan Tattermusch10098d12016-10-06 13:15:12 +02002162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch70f86522015-10-07 18:23:51 -07002163 public void MergeFrom(pb::CodedInputStream input) {
2164 uint tag;
2165 while ((tag = input.ReadTag()) != 0) {
2166 switch(tag) {
2167 default:
2168 input.SkipLastField();
2169 break;
2170 case 8: {
2171 Passed = input.ReadBool();
2172 break;
2173 }
2174 case 18:
2175 case 16: {
2176 backoffMs_.AddEntriesFrom(input, _repeated_backoffMs_codec);
2177 break;
2178 }
2179 }
2180 }
2181 }
2182
2183 }
2184
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08002185 #endregion
Craig Tiller190d3602015-02-18 09:23:38 -08002186
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08002187}
Jan Tattermuscha7608b02015-02-03 17:54:38 -08002188
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08002189#endregion Designer generated code