OLD | NEW |
(Empty) | |
| 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 // source: src/proto/grpc/testing/messages.proto |
| 3 #pragma warning disable 1591, 0612, 3021 |
| 4 #region Designer generated code |
| 5 |
| 6 using pb = global::Google.Protobuf; |
| 7 using pbc = global::Google.Protobuf.Collections; |
| 8 using pbr = global::Google.Protobuf.Reflection; |
| 9 using scg = global::System.Collections.Generic; |
| 10 namespace Grpc.Testing { |
| 11 |
| 12 /// <summary>Holder for reflection information generated from src/proto/grpc/t
esting/messages.proto</summary> |
| 13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 14 public static partial class MessagesReflection { |
| 15 |
| 16 #region Descriptor |
| 17 /// <summary>File descriptor for src/proto/grpc/testing/messages.proto</summ
ary> |
| 18 public static pbr::FileDescriptor Descriptor { |
| 19 get { return descriptor; } |
| 20 } |
| 21 private static pbr::FileDescriptor descriptor; |
| 22 |
| 23 static MessagesReflection() { |
| 24 byte[] descriptorData = global::System.Convert.FromBase64String( |
| 25 string.Concat( |
| 26 "CiVzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL21lc3NhZ2VzLnByb3RvEgxncnBj", |
| 27 "LnRlc3RpbmciQAoHUGF5bG9hZBInCgR0eXBlGAEgASgOMhkuZ3JwYy50ZXN0", |
| 28 "aW5nLlBheWxvYWRUeXBlEgwKBGJvZHkYAiABKAwiKwoKRWNob1N0YXR1cxIM", |
| 29 "CgRjb2RlGAEgASgFEg8KB21lc3NhZ2UYAiABKAkioQIKDVNpbXBsZVJlcXVl", |
| 30 "c3QSMAoNcmVzcG9uc2VfdHlwZRgBIAEoDjIZLmdycGMudGVzdGluZy5QYXls", |
| 31 "b2FkVHlwZRIVCg1yZXNwb25zZV9zaXplGAIgASgFEiYKB3BheWxvYWQYAyAB", |
| 32 "KAsyFS5ncnBjLnRlc3RpbmcuUGF5bG9hZBIVCg1maWxsX3VzZXJuYW1lGAQg", |
| 33 "ASgIEhgKEGZpbGxfb2F1dGhfc2NvcGUYBSABKAgSOwoUcmVzcG9uc2VfY29t", |
| 34 "cHJlc3Npb24YBiABKA4yHS5ncnBjLnRlc3RpbmcuQ29tcHJlc3Npb25UeXBl", |
| 35 "EjEKD3Jlc3BvbnNlX3N0YXR1cxgHIAEoCzIYLmdycGMudGVzdGluZy5FY2hv", |
| 36 "U3RhdHVzIl8KDlNpbXBsZVJlc3BvbnNlEiYKB3BheWxvYWQYASABKAsyFS5n", |
| 37 "cnBjLnRlc3RpbmcuUGF5bG9hZBIQCgh1c2VybmFtZRgCIAEoCRITCgtvYXV0", |
| 38 "aF9zY29wZRgDIAEoCSJDChlTdHJlYW1pbmdJbnB1dENhbGxSZXF1ZXN0EiYK", |
| 39 "B3BheWxvYWQYASABKAsyFS5ncnBjLnRlc3RpbmcuUGF5bG9hZCI9ChpTdHJl", |
| 40 "YW1pbmdJbnB1dENhbGxSZXNwb25zZRIfChdhZ2dyZWdhdGVkX3BheWxvYWRf", |
| 41 "c2l6ZRgBIAEoBSI3ChJSZXNwb25zZVBhcmFtZXRlcnMSDAoEc2l6ZRgBIAEo", |
| 42 "BRITCgtpbnRlcnZhbF91cxgCIAEoBSKlAgoaU3RyZWFtaW5nT3V0cHV0Q2Fs", |
| 43 "bFJlcXVlc3QSMAoNcmVzcG9uc2VfdHlwZRgBIAEoDjIZLmdycGMudGVzdGlu", |
| 44 "Zy5QYXlsb2FkVHlwZRI9ChNyZXNwb25zZV9wYXJhbWV0ZXJzGAIgAygLMiAu", |
| 45 "Z3JwYy50ZXN0aW5nLlJlc3BvbnNlUGFyYW1ldGVycxImCgdwYXlsb2FkGAMg", |
| 46 "ASgLMhUuZ3JwYy50ZXN0aW5nLlBheWxvYWQSOwoUcmVzcG9uc2VfY29tcHJl", |
| 47 "c3Npb24YBiABKA4yHS5ncnBjLnRlc3RpbmcuQ29tcHJlc3Npb25UeXBlEjEK", |
| 48 "D3Jlc3BvbnNlX3N0YXR1cxgHIAEoCzIYLmdycGMudGVzdGluZy5FY2hvU3Rh", |
| 49 "dHVzIkUKG1N0cmVhbWluZ091dHB1dENhbGxSZXNwb25zZRImCgdwYXlsb2Fk", |
| 50 "GAEgASgLMhUuZ3JwYy50ZXN0aW5nLlBheWxvYWQiMwoNUmVjb25uZWN0SW5m", |
| 51 "bxIOCgZwYXNzZWQYASABKAgSEgoKYmFja29mZl9tcxgCIAMoBSo/CgtQYXls", |
| 52 "b2FkVHlwZRIQCgxDT01QUkVTU0FCTEUQABISCg5VTkNPTVBSRVNTQUJMRRAB", |
| 53 "EgoKBlJBTkRPTRACKjIKD0NvbXByZXNzaW9uVHlwZRIICgROT05FEAASCAoE", |
| 54 "R1pJUBABEgsKB0RFRkxBVEUQAmIGcHJvdG8z")); |
| 55 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 56 new pbr::FileDescriptor[] { }, |
| 57 new pbr::GeneratedCodeInfo(new[] {typeof(global::Grpc.Testing.PayloadT
ype), typeof(global::Grpc.Testing.CompressionType), }, new pbr::GeneratedCodeInf
o[] { |
| 58 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.Payload), glo
bal::Grpc.Testing.Payload.Parser, new[]{ "Type", "Body" }, null, null, null), |
| 59 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.EchoStatus),
global::Grpc.Testing.EchoStatus.Parser, new[]{ "Code", "Message" }, null, null,
null), |
| 60 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SimpleRequest
), global::Grpc.Testing.SimpleRequest.Parser, new[]{ "ResponseType", "ResponseSi
ze", "Payload", "FillUsername", "FillOauthScope", "ResponseCompression", "Respon
seStatus" }, null, null, null), |
| 61 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SimpleRespons
e), global::Grpc.Testing.SimpleResponse.Parser, new[]{ "Payload", "Username", "O
authScope" }, null, null, null), |
| 62 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingInpu
tCallRequest), global::Grpc.Testing.StreamingInputCallRequest.Parser, new[]{ "Pa
yload" }, null, null, null), |
| 63 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingInpu
tCallResponse), global::Grpc.Testing.StreamingInputCallResponse.Parser, new[]{ "
AggregatedPayloadSize" }, null, null, null), |
| 64 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ResponseParam
eters), global::Grpc.Testing.ResponseParameters.Parser, new[]{ "Size", "Interval
Us" }, null, null, null), |
| 65 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingOutp
utCallRequest), global::Grpc.Testing.StreamingOutputCallRequest.Parser, new[]{ "
ResponseType", "ResponseParameters", "Payload", "ResponseCompression", "Response
Status" }, null, null, null), |
| 66 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingOutp
utCallResponse), global::Grpc.Testing.StreamingOutputCallResponse.Parser, new[]{
"Payload" }, null, null, null), |
| 67 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ReconnectInfo
), global::Grpc.Testing.ReconnectInfo.Parser, new[]{ "Passed", "BackoffMs" }, nu
ll, null, null) |
| 68 })); |
| 69 } |
| 70 #endregion |
| 71 |
| 72 } |
| 73 #region Enums |
| 74 /// <summary> |
| 75 /// The type of payload that should be returned. |
| 76 /// </summary> |
| 77 public enum PayloadType { |
| 78 /// <summary> |
| 79 /// Compressable text format. |
| 80 /// </summary> |
| 81 COMPRESSABLE = 0, |
| 82 /// <summary> |
| 83 /// Uncompressable binary format. |
| 84 /// </summary> |
| 85 UNCOMPRESSABLE = 1, |
| 86 /// <summary> |
| 87 /// Randomly chosen from all other formats defined in this enum. |
| 88 /// </summary> |
| 89 RANDOM = 2, |
| 90 } |
| 91 |
| 92 /// <summary> |
| 93 /// Compression algorithms |
| 94 /// </summary> |
| 95 public enum CompressionType { |
| 96 /// <summary> |
| 97 /// No compression |
| 98 /// </summary> |
| 99 NONE = 0, |
| 100 GZIP = 1, |
| 101 DEFLATE = 2, |
| 102 } |
| 103 |
| 104 #endregion |
| 105 |
| 106 #region Messages |
| 107 /// <summary> |
| 108 /// A block of data, to simply increase gRPC message size. |
| 109 /// </summary> |
| 110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 111 public sealed partial class Payload : pb::IMessage<Payload> { |
| 112 private static readonly pb::MessageParser<Payload> _parser = new pb::Message
Parser<Payload>(() => new Payload()); |
| 113 public static pb::MessageParser<Payload> Parser { get { return _parser; } } |
| 114 |
| 115 public static pbr::MessageDescriptor Descriptor { |
| 116 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTyp
es[0]; } |
| 117 } |
| 118 |
| 119 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 120 get { return Descriptor; } |
| 121 } |
| 122 |
| 123 public Payload() { |
| 124 OnConstruction(); |
| 125 } |
| 126 |
| 127 partial void OnConstruction(); |
| 128 |
| 129 public Payload(Payload other) : this() { |
| 130 type_ = other.type_; |
| 131 body_ = other.body_; |
| 132 } |
| 133 |
| 134 public Payload Clone() { |
| 135 return new Payload(this); |
| 136 } |
| 137 |
| 138 /// <summary>Field number for the "type" field.</summary> |
| 139 public const int TypeFieldNumber = 1; |
| 140 private global::Grpc.Testing.PayloadType type_ = global::Grpc.Testing.Payloa
dType.COMPRESSABLE; |
| 141 /// <summary> |
| 142 /// The type of data in body. |
| 143 /// </summary> |
| 144 public global::Grpc.Testing.PayloadType Type { |
| 145 get { return type_; } |
| 146 set { |
| 147 type_ = value; |
| 148 } |
| 149 } |
| 150 |
| 151 /// <summary>Field number for the "body" field.</summary> |
| 152 public const int BodyFieldNumber = 2; |
| 153 private pb::ByteString body_ = pb::ByteString.Empty; |
| 154 /// <summary> |
| 155 /// Primary contents of payload. |
| 156 /// </summary> |
| 157 public pb::ByteString Body { |
| 158 get { return body_; } |
| 159 set { |
| 160 body_ = pb::Preconditions.CheckNotNull(value, "value"); |
| 161 } |
| 162 } |
| 163 |
| 164 public override bool Equals(object other) { |
| 165 return Equals(other as Payload); |
| 166 } |
| 167 |
| 168 public bool Equals(Payload other) { |
| 169 if (ReferenceEquals(other, null)) { |
| 170 return false; |
| 171 } |
| 172 if (ReferenceEquals(other, this)) { |
| 173 return true; |
| 174 } |
| 175 if (Type != other.Type) return false; |
| 176 if (Body != other.Body) return false; |
| 177 return true; |
| 178 } |
| 179 |
| 180 public override int GetHashCode() { |
| 181 int hash = 1; |
| 182 if (Type != global::Grpc.Testing.PayloadType.COMPRESSABLE) hash ^= Type.Ge
tHashCode(); |
| 183 if (Body.Length != 0) hash ^= Body.GetHashCode(); |
| 184 return hash; |
| 185 } |
| 186 |
| 187 public override string ToString() { |
| 188 return pb::JsonFormatter.ToDiagnosticString(this); |
| 189 } |
| 190 |
| 191 public void WriteTo(pb::CodedOutputStream output) { |
| 192 if (Type != global::Grpc.Testing.PayloadType.COMPRESSABLE) { |
| 193 output.WriteRawTag(8); |
| 194 output.WriteEnum((int) Type); |
| 195 } |
| 196 if (Body.Length != 0) { |
| 197 output.WriteRawTag(18); |
| 198 output.WriteBytes(Body); |
| 199 } |
| 200 } |
| 201 |
| 202 public int CalculateSize() { |
| 203 int size = 0; |
| 204 if (Type != global::Grpc.Testing.PayloadType.COMPRESSABLE) { |
| 205 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); |
| 206 } |
| 207 if (Body.Length != 0) { |
| 208 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Body); |
| 209 } |
| 210 return size; |
| 211 } |
| 212 |
| 213 public void MergeFrom(Payload other) { |
| 214 if (other == null) { |
| 215 return; |
| 216 } |
| 217 if (other.Type != global::Grpc.Testing.PayloadType.COMPRESSABLE) { |
| 218 Type = other.Type; |
| 219 } |
| 220 if (other.Body.Length != 0) { |
| 221 Body = other.Body; |
| 222 } |
| 223 } |
| 224 |
| 225 public void MergeFrom(pb::CodedInputStream input) { |
| 226 uint tag; |
| 227 while ((tag = input.ReadTag()) != 0) { |
| 228 switch(tag) { |
| 229 default: |
| 230 input.SkipLastField(); |
| 231 break; |
| 232 case 8: { |
| 233 type_ = (global::Grpc.Testing.PayloadType) input.ReadEnum(); |
| 234 break; |
| 235 } |
| 236 case 18: { |
| 237 Body = input.ReadBytes(); |
| 238 break; |
| 239 } |
| 240 } |
| 241 } |
| 242 } |
| 243 |
| 244 } |
| 245 |
| 246 /// <summary> |
| 247 /// A protobuf representation for grpc status. This is used by test |
| 248 /// clients to specify a status that the server should attempt to return. |
| 249 /// </summary> |
| 250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 251 public sealed partial class EchoStatus : pb::IMessage<EchoStatus> { |
| 252 private static readonly pb::MessageParser<EchoStatus> _parser = new pb::Mess
ageParser<EchoStatus>(() => new EchoStatus()); |
| 253 public static pb::MessageParser<EchoStatus> Parser { get { return _parser; }
} |
| 254 |
| 255 public static pbr::MessageDescriptor Descriptor { |
| 256 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTyp
es[1]; } |
| 257 } |
| 258 |
| 259 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 260 get { return Descriptor; } |
| 261 } |
| 262 |
| 263 public EchoStatus() { |
| 264 OnConstruction(); |
| 265 } |
| 266 |
| 267 partial void OnConstruction(); |
| 268 |
| 269 public EchoStatus(EchoStatus other) : this() { |
| 270 code_ = other.code_; |
| 271 message_ = other.message_; |
| 272 } |
| 273 |
| 274 public EchoStatus Clone() { |
| 275 return new EchoStatus(this); |
| 276 } |
| 277 |
| 278 /// <summary>Field number for the "code" field.</summary> |
| 279 public const int CodeFieldNumber = 1; |
| 280 private int code_; |
| 281 public int Code { |
| 282 get { return code_; } |
| 283 set { |
| 284 code_ = value; |
| 285 } |
| 286 } |
| 287 |
| 288 /// <summary>Field number for the "message" field.</summary> |
| 289 public const int MessageFieldNumber = 2; |
| 290 private string message_ = ""; |
| 291 public string Message { |
| 292 get { return message_; } |
| 293 set { |
| 294 message_ = pb::Preconditions.CheckNotNull(value, "value"); |
| 295 } |
| 296 } |
| 297 |
| 298 public override bool Equals(object other) { |
| 299 return Equals(other as EchoStatus); |
| 300 } |
| 301 |
| 302 public bool Equals(EchoStatus other) { |
| 303 if (ReferenceEquals(other, null)) { |
| 304 return false; |
| 305 } |
| 306 if (ReferenceEquals(other, this)) { |
| 307 return true; |
| 308 } |
| 309 if (Code != other.Code) return false; |
| 310 if (Message != other.Message) return false; |
| 311 return true; |
| 312 } |
| 313 |
| 314 public override int GetHashCode() { |
| 315 int hash = 1; |
| 316 if (Code != 0) hash ^= Code.GetHashCode(); |
| 317 if (Message.Length != 0) hash ^= Message.GetHashCode(); |
| 318 return hash; |
| 319 } |
| 320 |
| 321 public override string ToString() { |
| 322 return pb::JsonFormatter.ToDiagnosticString(this); |
| 323 } |
| 324 |
| 325 public void WriteTo(pb::CodedOutputStream output) { |
| 326 if (Code != 0) { |
| 327 output.WriteRawTag(8); |
| 328 output.WriteInt32(Code); |
| 329 } |
| 330 if (Message.Length != 0) { |
| 331 output.WriteRawTag(18); |
| 332 output.WriteString(Message); |
| 333 } |
| 334 } |
| 335 |
| 336 public int CalculateSize() { |
| 337 int size = 0; |
| 338 if (Code != 0) { |
| 339 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code); |
| 340 } |
| 341 if (Message.Length != 0) { |
| 342 size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); |
| 343 } |
| 344 return size; |
| 345 } |
| 346 |
| 347 public void MergeFrom(EchoStatus other) { |
| 348 if (other == null) { |
| 349 return; |
| 350 } |
| 351 if (other.Code != 0) { |
| 352 Code = other.Code; |
| 353 } |
| 354 if (other.Message.Length != 0) { |
| 355 Message = other.Message; |
| 356 } |
| 357 } |
| 358 |
| 359 public void MergeFrom(pb::CodedInputStream input) { |
| 360 uint tag; |
| 361 while ((tag = input.ReadTag()) != 0) { |
| 362 switch(tag) { |
| 363 default: |
| 364 input.SkipLastField(); |
| 365 break; |
| 366 case 8: { |
| 367 Code = input.ReadInt32(); |
| 368 break; |
| 369 } |
| 370 case 18: { |
| 371 Message = input.ReadString(); |
| 372 break; |
| 373 } |
| 374 } |
| 375 } |
| 376 } |
| 377 |
| 378 } |
| 379 |
| 380 /// <summary> |
| 381 /// Unary request. |
| 382 /// </summary> |
| 383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 384 public sealed partial class SimpleRequest : pb::IMessage<SimpleRequest> { |
| 385 private static readonly pb::MessageParser<SimpleRequest> _parser = new pb::M
essageParser<SimpleRequest>(() => new SimpleRequest()); |
| 386 public static pb::MessageParser<SimpleRequest> Parser { get { return _parser
; } } |
| 387 |
| 388 public static pbr::MessageDescriptor Descriptor { |
| 389 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTyp
es[2]; } |
| 390 } |
| 391 |
| 392 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 393 get { return Descriptor; } |
| 394 } |
| 395 |
| 396 public SimpleRequest() { |
| 397 OnConstruction(); |
| 398 } |
| 399 |
| 400 partial void OnConstruction(); |
| 401 |
| 402 public SimpleRequest(SimpleRequest other) : this() { |
| 403 responseType_ = other.responseType_; |
| 404 responseSize_ = other.responseSize_; |
| 405 Payload = other.payload_ != null ? other.Payload.Clone() : null; |
| 406 fillUsername_ = other.fillUsername_; |
| 407 fillOauthScope_ = other.fillOauthScope_; |
| 408 responseCompression_ = other.responseCompression_; |
| 409 ResponseStatus = other.responseStatus_ != null ? other.ResponseStatus.Clon
e() : null; |
| 410 } |
| 411 |
| 412 public SimpleRequest Clone() { |
| 413 return new SimpleRequest(this); |
| 414 } |
| 415 |
| 416 /// <summary>Field number for the "response_type" field.</summary> |
| 417 public const int ResponseTypeFieldNumber = 1; |
| 418 private global::Grpc.Testing.PayloadType responseType_ = global::Grpc.Testin
g.PayloadType.COMPRESSABLE; |
| 419 /// <summary> |
| 420 /// Desired payload type in the response from the server. |
| 421 /// If response_type is RANDOM, server randomly chooses one from other form
ats. |
| 422 /// </summary> |
| 423 public global::Grpc.Testing.PayloadType ResponseType { |
| 424 get { return responseType_; } |
| 425 set { |
| 426 responseType_ = value; |
| 427 } |
| 428 } |
| 429 |
| 430 /// <summary>Field number for the "response_size" field.</summary> |
| 431 public const int ResponseSizeFieldNumber = 2; |
| 432 private int responseSize_; |
| 433 /// <summary> |
| 434 /// Desired payload size in the response from the server. |
| 435 /// If response_type is COMPRESSABLE, this denotes the size before compress
ion. |
| 436 /// </summary> |
| 437 public int ResponseSize { |
| 438 get { return responseSize_; } |
| 439 set { |
| 440 responseSize_ = value; |
| 441 } |
| 442 } |
| 443 |
| 444 /// <summary>Field number for the "payload" field.</summary> |
| 445 public const int PayloadFieldNumber = 3; |
| 446 private global::Grpc.Testing.Payload payload_; |
| 447 /// <summary> |
| 448 /// Optional input payload sent along with the request. |
| 449 /// </summary> |
| 450 public global::Grpc.Testing.Payload Payload { |
| 451 get { return payload_; } |
| 452 set { |
| 453 payload_ = value; |
| 454 } |
| 455 } |
| 456 |
| 457 /// <summary>Field number for the "fill_username" field.</summary> |
| 458 public const int FillUsernameFieldNumber = 4; |
| 459 private bool fillUsername_; |
| 460 /// <summary> |
| 461 /// Whether SimpleResponse should include username. |
| 462 /// </summary> |
| 463 public bool FillUsername { |
| 464 get { return fillUsername_; } |
| 465 set { |
| 466 fillUsername_ = value; |
| 467 } |
| 468 } |
| 469 |
| 470 /// <summary>Field number for the "fill_oauth_scope" field.</summary> |
| 471 public const int FillOauthScopeFieldNumber = 5; |
| 472 private bool fillOauthScope_; |
| 473 /// <summary> |
| 474 /// Whether SimpleResponse should include OAuth scope. |
| 475 /// </summary> |
| 476 public bool FillOauthScope { |
| 477 get { return fillOauthScope_; } |
| 478 set { |
| 479 fillOauthScope_ = value; |
| 480 } |
| 481 } |
| 482 |
| 483 /// <summary>Field number for the "response_compression" field.</summary> |
| 484 public const int ResponseCompressionFieldNumber = 6; |
| 485 private global::Grpc.Testing.CompressionType responseCompression_ = global::
Grpc.Testing.CompressionType.NONE; |
| 486 /// <summary> |
| 487 /// Compression algorithm to be used by the server for the response (stream
) |
| 488 /// </summary> |
| 489 public global::Grpc.Testing.CompressionType ResponseCompression { |
| 490 get { return responseCompression_; } |
| 491 set { |
| 492 responseCompression_ = value; |
| 493 } |
| 494 } |
| 495 |
| 496 /// <summary>Field number for the "response_status" field.</summary> |
| 497 public const int ResponseStatusFieldNumber = 7; |
| 498 private global::Grpc.Testing.EchoStatus responseStatus_; |
| 499 /// <summary> |
| 500 /// Whether server should return a given status |
| 501 /// </summary> |
| 502 public global::Grpc.Testing.EchoStatus ResponseStatus { |
| 503 get { return responseStatus_; } |
| 504 set { |
| 505 responseStatus_ = value; |
| 506 } |
| 507 } |
| 508 |
| 509 public override bool Equals(object other) { |
| 510 return Equals(other as SimpleRequest); |
| 511 } |
| 512 |
| 513 public bool Equals(SimpleRequest other) { |
| 514 if (ReferenceEquals(other, null)) { |
| 515 return false; |
| 516 } |
| 517 if (ReferenceEquals(other, this)) { |
| 518 return true; |
| 519 } |
| 520 if (ResponseType != other.ResponseType) return false; |
| 521 if (ResponseSize != other.ResponseSize) return false; |
| 522 if (!object.Equals(Payload, other.Payload)) return false; |
| 523 if (FillUsername != other.FillUsername) return false; |
| 524 if (FillOauthScope != other.FillOauthScope) return false; |
| 525 if (ResponseCompression != other.ResponseCompression) return false; |
| 526 if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; |
| 527 return true; |
| 528 } |
| 529 |
| 530 public override int GetHashCode() { |
| 531 int hash = 1; |
| 532 if (ResponseType != global::Grpc.Testing.PayloadType.COMPRESSABLE) hash ^=
ResponseType.GetHashCode(); |
| 533 if (ResponseSize != 0) hash ^= ResponseSize.GetHashCode(); |
| 534 if (payload_ != null) hash ^= Payload.GetHashCode(); |
| 535 if (FillUsername != false) hash ^= FillUsername.GetHashCode(); |
| 536 if (FillOauthScope != false) hash ^= FillOauthScope.GetHashCode(); |
| 537 if (ResponseCompression != global::Grpc.Testing.CompressionType.NONE) hash
^= ResponseCompression.GetHashCode(); |
| 538 if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode(); |
| 539 return hash; |
| 540 } |
| 541 |
| 542 public override string ToString() { |
| 543 return pb::JsonFormatter.ToDiagnosticString(this); |
| 544 } |
| 545 |
| 546 public void WriteTo(pb::CodedOutputStream output) { |
| 547 if (ResponseType != global::Grpc.Testing.PayloadType.COMPRESSABLE) { |
| 548 output.WriteRawTag(8); |
| 549 output.WriteEnum((int) ResponseType); |
| 550 } |
| 551 if (ResponseSize != 0) { |
| 552 output.WriteRawTag(16); |
| 553 output.WriteInt32(ResponseSize); |
| 554 } |
| 555 if (payload_ != null) { |
| 556 output.WriteRawTag(26); |
| 557 output.WriteMessage(Payload); |
| 558 } |
| 559 if (FillUsername != false) { |
| 560 output.WriteRawTag(32); |
| 561 output.WriteBool(FillUsername); |
| 562 } |
| 563 if (FillOauthScope != false) { |
| 564 output.WriteRawTag(40); |
| 565 output.WriteBool(FillOauthScope); |
| 566 } |
| 567 if (ResponseCompression != global::Grpc.Testing.CompressionType.NONE) { |
| 568 output.WriteRawTag(48); |
| 569 output.WriteEnum((int) ResponseCompression); |
| 570 } |
| 571 if (responseStatus_ != null) { |
| 572 output.WriteRawTag(58); |
| 573 output.WriteMessage(ResponseStatus); |
| 574 } |
| 575 } |
| 576 |
| 577 public int CalculateSize() { |
| 578 int size = 0; |
| 579 if (ResponseType != global::Grpc.Testing.PayloadType.COMPRESSABLE) { |
| 580 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType); |
| 581 } |
| 582 if (ResponseSize != 0) { |
| 583 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseSize); |
| 584 } |
| 585 if (payload_ != null) { |
| 586 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); |
| 587 } |
| 588 if (FillUsername != false) { |
| 589 size += 1 + 1; |
| 590 } |
| 591 if (FillOauthScope != false) { |
| 592 size += 1 + 1; |
| 593 } |
| 594 if (ResponseCompression != global::Grpc.Testing.CompressionType.NONE) { |
| 595 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseCompress
ion); |
| 596 } |
| 597 if (responseStatus_ != null) { |
| 598 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus); |
| 599 } |
| 600 return size; |
| 601 } |
| 602 |
| 603 public void MergeFrom(SimpleRequest other) { |
| 604 if (other == null) { |
| 605 return; |
| 606 } |
| 607 if (other.ResponseType != global::Grpc.Testing.PayloadType.COMPRESSABLE) { |
| 608 ResponseType = other.ResponseType; |
| 609 } |
| 610 if (other.ResponseSize != 0) { |
| 611 ResponseSize = other.ResponseSize; |
| 612 } |
| 613 if (other.payload_ != null) { |
| 614 if (payload_ == null) { |
| 615 payload_ = new global::Grpc.Testing.Payload(); |
| 616 } |
| 617 Payload.MergeFrom(other.Payload); |
| 618 } |
| 619 if (other.FillUsername != false) { |
| 620 FillUsername = other.FillUsername; |
| 621 } |
| 622 if (other.FillOauthScope != false) { |
| 623 FillOauthScope = other.FillOauthScope; |
| 624 } |
| 625 if (other.ResponseCompression != global::Grpc.Testing.CompressionType.NONE
) { |
| 626 ResponseCompression = other.ResponseCompression; |
| 627 } |
| 628 if (other.responseStatus_ != null) { |
| 629 if (responseStatus_ == null) { |
| 630 responseStatus_ = new global::Grpc.Testing.EchoStatus(); |
| 631 } |
| 632 ResponseStatus.MergeFrom(other.ResponseStatus); |
| 633 } |
| 634 } |
| 635 |
| 636 public void MergeFrom(pb::CodedInputStream input) { |
| 637 uint tag; |
| 638 while ((tag = input.ReadTag()) != 0) { |
| 639 switch(tag) { |
| 640 default: |
| 641 input.SkipLastField(); |
| 642 break; |
| 643 case 8: { |
| 644 responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum(); |
| 645 break; |
| 646 } |
| 647 case 16: { |
| 648 ResponseSize = input.ReadInt32(); |
| 649 break; |
| 650 } |
| 651 case 26: { |
| 652 if (payload_ == null) { |
| 653 payload_ = new global::Grpc.Testing.Payload(); |
| 654 } |
| 655 input.ReadMessage(payload_); |
| 656 break; |
| 657 } |
| 658 case 32: { |
| 659 FillUsername = input.ReadBool(); |
| 660 break; |
| 661 } |
| 662 case 40: { |
| 663 FillOauthScope = input.ReadBool(); |
| 664 break; |
| 665 } |
| 666 case 48: { |
| 667 responseCompression_ = (global::Grpc.Testing.CompressionType) input.
ReadEnum(); |
| 668 break; |
| 669 } |
| 670 case 58: { |
| 671 if (responseStatus_ == null) { |
| 672 responseStatus_ = new global::Grpc.Testing.EchoStatus(); |
| 673 } |
| 674 input.ReadMessage(responseStatus_); |
| 675 break; |
| 676 } |
| 677 } |
| 678 } |
| 679 } |
| 680 |
| 681 } |
| 682 |
| 683 /// <summary> |
| 684 /// Unary response, as configured by the request. |
| 685 /// </summary> |
| 686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 687 public sealed partial class SimpleResponse : pb::IMessage<SimpleResponse> { |
| 688 private static readonly pb::MessageParser<SimpleResponse> _parser = new pb::
MessageParser<SimpleResponse>(() => new SimpleResponse()); |
| 689 public static pb::MessageParser<SimpleResponse> Parser { get { return _parse
r; } } |
| 690 |
| 691 public static pbr::MessageDescriptor Descriptor { |
| 692 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTyp
es[3]; } |
| 693 } |
| 694 |
| 695 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 696 get { return Descriptor; } |
| 697 } |
| 698 |
| 699 public SimpleResponse() { |
| 700 OnConstruction(); |
| 701 } |
| 702 |
| 703 partial void OnConstruction(); |
| 704 |
| 705 public SimpleResponse(SimpleResponse other) : this() { |
| 706 Payload = other.payload_ != null ? other.Payload.Clone() : null; |
| 707 username_ = other.username_; |
| 708 oauthScope_ = other.oauthScope_; |
| 709 } |
| 710 |
| 711 public SimpleResponse Clone() { |
| 712 return new SimpleResponse(this); |
| 713 } |
| 714 |
| 715 /// <summary>Field number for the "payload" field.</summary> |
| 716 public const int PayloadFieldNumber = 1; |
| 717 private global::Grpc.Testing.Payload payload_; |
| 718 /// <summary> |
| 719 /// Payload to increase message size. |
| 720 /// </summary> |
| 721 public global::Grpc.Testing.Payload Payload { |
| 722 get { return payload_; } |
| 723 set { |
| 724 payload_ = value; |
| 725 } |
| 726 } |
| 727 |
| 728 /// <summary>Field number for the "username" field.</summary> |
| 729 public const int UsernameFieldNumber = 2; |
| 730 private string username_ = ""; |
| 731 /// <summary> |
| 732 /// The user the request came from, for verifying authentication was |
| 733 /// successful when the client expected it. |
| 734 /// </summary> |
| 735 public string Username { |
| 736 get { return username_; } |
| 737 set { |
| 738 username_ = pb::Preconditions.CheckNotNull(value, "value"); |
| 739 } |
| 740 } |
| 741 |
| 742 /// <summary>Field number for the "oauth_scope" field.</summary> |
| 743 public const int OauthScopeFieldNumber = 3; |
| 744 private string oauthScope_ = ""; |
| 745 /// <summary> |
| 746 /// OAuth scope. |
| 747 /// </summary> |
| 748 public string OauthScope { |
| 749 get { return oauthScope_; } |
| 750 set { |
| 751 oauthScope_ = pb::Preconditions.CheckNotNull(value, "value"); |
| 752 } |
| 753 } |
| 754 |
| 755 public override bool Equals(object other) { |
| 756 return Equals(other as SimpleResponse); |
| 757 } |
| 758 |
| 759 public bool Equals(SimpleResponse other) { |
| 760 if (ReferenceEquals(other, null)) { |
| 761 return false; |
| 762 } |
| 763 if (ReferenceEquals(other, this)) { |
| 764 return true; |
| 765 } |
| 766 if (!object.Equals(Payload, other.Payload)) return false; |
| 767 if (Username != other.Username) return false; |
| 768 if (OauthScope != other.OauthScope) return false; |
| 769 return true; |
| 770 } |
| 771 |
| 772 public override int GetHashCode() { |
| 773 int hash = 1; |
| 774 if (payload_ != null) hash ^= Payload.GetHashCode(); |
| 775 if (Username.Length != 0) hash ^= Username.GetHashCode(); |
| 776 if (OauthScope.Length != 0) hash ^= OauthScope.GetHashCode(); |
| 777 return hash; |
| 778 } |
| 779 |
| 780 public override string ToString() { |
| 781 return pb::JsonFormatter.ToDiagnosticString(this); |
| 782 } |
| 783 |
| 784 public void WriteTo(pb::CodedOutputStream output) { |
| 785 if (payload_ != null) { |
| 786 output.WriteRawTag(10); |
| 787 output.WriteMessage(Payload); |
| 788 } |
| 789 if (Username.Length != 0) { |
| 790 output.WriteRawTag(18); |
| 791 output.WriteString(Username); |
| 792 } |
| 793 if (OauthScope.Length != 0) { |
| 794 output.WriteRawTag(26); |
| 795 output.WriteString(OauthScope); |
| 796 } |
| 797 } |
| 798 |
| 799 public int CalculateSize() { |
| 800 int size = 0; |
| 801 if (payload_ != null) { |
| 802 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); |
| 803 } |
| 804 if (Username.Length != 0) { |
| 805 size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); |
| 806 } |
| 807 if (OauthScope.Length != 0) { |
| 808 size += 1 + pb::CodedOutputStream.ComputeStringSize(OauthScope); |
| 809 } |
| 810 return size; |
| 811 } |
| 812 |
| 813 public void MergeFrom(SimpleResponse other) { |
| 814 if (other == null) { |
| 815 return; |
| 816 } |
| 817 if (other.payload_ != null) { |
| 818 if (payload_ == null) { |
| 819 payload_ = new global::Grpc.Testing.Payload(); |
| 820 } |
| 821 Payload.MergeFrom(other.Payload); |
| 822 } |
| 823 if (other.Username.Length != 0) { |
| 824 Username = other.Username; |
| 825 } |
| 826 if (other.OauthScope.Length != 0) { |
| 827 OauthScope = other.OauthScope; |
| 828 } |
| 829 } |
| 830 |
| 831 public void MergeFrom(pb::CodedInputStream input) { |
| 832 uint tag; |
| 833 while ((tag = input.ReadTag()) != 0) { |
| 834 switch(tag) { |
| 835 default: |
| 836 input.SkipLastField(); |
| 837 break; |
| 838 case 10: { |
| 839 if (payload_ == null) { |
| 840 payload_ = new global::Grpc.Testing.Payload(); |
| 841 } |
| 842 input.ReadMessage(payload_); |
| 843 break; |
| 844 } |
| 845 case 18: { |
| 846 Username = input.ReadString(); |
| 847 break; |
| 848 } |
| 849 case 26: { |
| 850 OauthScope = input.ReadString(); |
| 851 break; |
| 852 } |
| 853 } |
| 854 } |
| 855 } |
| 856 |
| 857 } |
| 858 |
| 859 /// <summary> |
| 860 /// Client-streaming request. |
| 861 /// </summary> |
| 862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 863 public sealed partial class StreamingInputCallRequest : pb::IMessage<Streaming
InputCallRequest> { |
| 864 private static readonly pb::MessageParser<StreamingInputCallRequest> _parser
= new pb::MessageParser<StreamingInputCallRequest>(() => new StreamingInputCall
Request()); |
| 865 public static pb::MessageParser<StreamingInputCallRequest> Parser { get { re
turn _parser; } } |
| 866 |
| 867 public static pbr::MessageDescriptor Descriptor { |
| 868 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTyp
es[4]; } |
| 869 } |
| 870 |
| 871 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 872 get { return Descriptor; } |
| 873 } |
| 874 |
| 875 public StreamingInputCallRequest() { |
| 876 OnConstruction(); |
| 877 } |
| 878 |
| 879 partial void OnConstruction(); |
| 880 |
| 881 public StreamingInputCallRequest(StreamingInputCallRequest other) : this() { |
| 882 Payload = other.payload_ != null ? other.Payload.Clone() : null; |
| 883 } |
| 884 |
| 885 public StreamingInputCallRequest Clone() { |
| 886 return new StreamingInputCallRequest(this); |
| 887 } |
| 888 |
| 889 /// <summary>Field number for the "payload" field.</summary> |
| 890 public const int PayloadFieldNumber = 1; |
| 891 private global::Grpc.Testing.Payload payload_; |
| 892 /// <summary> |
| 893 /// Optional input payload sent along with the request. |
| 894 /// </summary> |
| 895 public global::Grpc.Testing.Payload Payload { |
| 896 get { return payload_; } |
| 897 set { |
| 898 payload_ = value; |
| 899 } |
| 900 } |
| 901 |
| 902 public override bool Equals(object other) { |
| 903 return Equals(other as StreamingInputCallRequest); |
| 904 } |
| 905 |
| 906 public bool Equals(StreamingInputCallRequest other) { |
| 907 if (ReferenceEquals(other, null)) { |
| 908 return false; |
| 909 } |
| 910 if (ReferenceEquals(other, this)) { |
| 911 return true; |
| 912 } |
| 913 if (!object.Equals(Payload, other.Payload)) return false; |
| 914 return true; |
| 915 } |
| 916 |
| 917 public override int GetHashCode() { |
| 918 int hash = 1; |
| 919 if (payload_ != null) hash ^= Payload.GetHashCode(); |
| 920 return hash; |
| 921 } |
| 922 |
| 923 public override string ToString() { |
| 924 return pb::JsonFormatter.ToDiagnosticString(this); |
| 925 } |
| 926 |
| 927 public void WriteTo(pb::CodedOutputStream output) { |
| 928 if (payload_ != null) { |
| 929 output.WriteRawTag(10); |
| 930 output.WriteMessage(Payload); |
| 931 } |
| 932 } |
| 933 |
| 934 public int CalculateSize() { |
| 935 int size = 0; |
| 936 if (payload_ != null) { |
| 937 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); |
| 938 } |
| 939 return size; |
| 940 } |
| 941 |
| 942 public void MergeFrom(StreamingInputCallRequest other) { |
| 943 if (other == null) { |
| 944 return; |
| 945 } |
| 946 if (other.payload_ != null) { |
| 947 if (payload_ == null) { |
| 948 payload_ = new global::Grpc.Testing.Payload(); |
| 949 } |
| 950 Payload.MergeFrom(other.Payload); |
| 951 } |
| 952 } |
| 953 |
| 954 public void MergeFrom(pb::CodedInputStream input) { |
| 955 uint tag; |
| 956 while ((tag = input.ReadTag()) != 0) { |
| 957 switch(tag) { |
| 958 default: |
| 959 input.SkipLastField(); |
| 960 break; |
| 961 case 10: { |
| 962 if (payload_ == null) { |
| 963 payload_ = new global::Grpc.Testing.Payload(); |
| 964 } |
| 965 input.ReadMessage(payload_); |
| 966 break; |
| 967 } |
| 968 } |
| 969 } |
| 970 } |
| 971 |
| 972 } |
| 973 |
| 974 /// <summary> |
| 975 /// Client-streaming response. |
| 976 /// </summary> |
| 977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 978 public sealed partial class StreamingInputCallResponse : pb::IMessage<Streamin
gInputCallResponse> { |
| 979 private static readonly pb::MessageParser<StreamingInputCallResponse> _parse
r = new pb::MessageParser<StreamingInputCallResponse>(() => new StreamingInputCa
llResponse()); |
| 980 public static pb::MessageParser<StreamingInputCallResponse> Parser { get { r
eturn _parser; } } |
| 981 |
| 982 public static pbr::MessageDescriptor Descriptor { |
| 983 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTyp
es[5]; } |
| 984 } |
| 985 |
| 986 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 987 get { return Descriptor; } |
| 988 } |
| 989 |
| 990 public StreamingInputCallResponse() { |
| 991 OnConstruction(); |
| 992 } |
| 993 |
| 994 partial void OnConstruction(); |
| 995 |
| 996 public StreamingInputCallResponse(StreamingInputCallResponse other) : this()
{ |
| 997 aggregatedPayloadSize_ = other.aggregatedPayloadSize_; |
| 998 } |
| 999 |
| 1000 public StreamingInputCallResponse Clone() { |
| 1001 return new StreamingInputCallResponse(this); |
| 1002 } |
| 1003 |
| 1004 /// <summary>Field number for the "aggregated_payload_size" field.</summary> |
| 1005 public const int AggregatedPayloadSizeFieldNumber = 1; |
| 1006 private int aggregatedPayloadSize_; |
| 1007 /// <summary> |
| 1008 /// Aggregated size of payloads received from the client. |
| 1009 /// </summary> |
| 1010 public int AggregatedPayloadSize { |
| 1011 get { return aggregatedPayloadSize_; } |
| 1012 set { |
| 1013 aggregatedPayloadSize_ = value; |
| 1014 } |
| 1015 } |
| 1016 |
| 1017 public override bool Equals(object other) { |
| 1018 return Equals(other as StreamingInputCallResponse); |
| 1019 } |
| 1020 |
| 1021 public bool Equals(StreamingInputCallResponse other) { |
| 1022 if (ReferenceEquals(other, null)) { |
| 1023 return false; |
| 1024 } |
| 1025 if (ReferenceEquals(other, this)) { |
| 1026 return true; |
| 1027 } |
| 1028 if (AggregatedPayloadSize != other.AggregatedPayloadSize) return false; |
| 1029 return true; |
| 1030 } |
| 1031 |
| 1032 public override int GetHashCode() { |
| 1033 int hash = 1; |
| 1034 if (AggregatedPayloadSize != 0) hash ^= AggregatedPayloadSize.GetHashCode(
); |
| 1035 return hash; |
| 1036 } |
| 1037 |
| 1038 public override string ToString() { |
| 1039 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1040 } |
| 1041 |
| 1042 public void WriteTo(pb::CodedOutputStream output) { |
| 1043 if (AggregatedPayloadSize != 0) { |
| 1044 output.WriteRawTag(8); |
| 1045 output.WriteInt32(AggregatedPayloadSize); |
| 1046 } |
| 1047 } |
| 1048 |
| 1049 public int CalculateSize() { |
| 1050 int size = 0; |
| 1051 if (AggregatedPayloadSize != 0) { |
| 1052 size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregatedPayloadSize
); |
| 1053 } |
| 1054 return size; |
| 1055 } |
| 1056 |
| 1057 public void MergeFrom(StreamingInputCallResponse other) { |
| 1058 if (other == null) { |
| 1059 return; |
| 1060 } |
| 1061 if (other.AggregatedPayloadSize != 0) { |
| 1062 AggregatedPayloadSize = other.AggregatedPayloadSize; |
| 1063 } |
| 1064 } |
| 1065 |
| 1066 public void MergeFrom(pb::CodedInputStream input) { |
| 1067 uint tag; |
| 1068 while ((tag = input.ReadTag()) != 0) { |
| 1069 switch(tag) { |
| 1070 default: |
| 1071 input.SkipLastField(); |
| 1072 break; |
| 1073 case 8: { |
| 1074 AggregatedPayloadSize = input.ReadInt32(); |
| 1075 break; |
| 1076 } |
| 1077 } |
| 1078 } |
| 1079 } |
| 1080 |
| 1081 } |
| 1082 |
| 1083 /// <summary> |
| 1084 /// Configuration for a particular response. |
| 1085 /// </summary> |
| 1086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1087 public sealed partial class ResponseParameters : pb::IMessage<ResponseParamete
rs> { |
| 1088 private static readonly pb::MessageParser<ResponseParameters> _parser = new
pb::MessageParser<ResponseParameters>(() => new ResponseParameters()); |
| 1089 public static pb::MessageParser<ResponseParameters> Parser { get { return _p
arser; } } |
| 1090 |
| 1091 public static pbr::MessageDescriptor Descriptor { |
| 1092 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTyp
es[6]; } |
| 1093 } |
| 1094 |
| 1095 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1096 get { return Descriptor; } |
| 1097 } |
| 1098 |
| 1099 public ResponseParameters() { |
| 1100 OnConstruction(); |
| 1101 } |
| 1102 |
| 1103 partial void OnConstruction(); |
| 1104 |
| 1105 public ResponseParameters(ResponseParameters other) : this() { |
| 1106 size_ = other.size_; |
| 1107 intervalUs_ = other.intervalUs_; |
| 1108 } |
| 1109 |
| 1110 public ResponseParameters Clone() { |
| 1111 return new ResponseParameters(this); |
| 1112 } |
| 1113 |
| 1114 /// <summary>Field number for the "size" field.</summary> |
| 1115 public const int SizeFieldNumber = 1; |
| 1116 private int size_; |
| 1117 /// <summary> |
| 1118 /// Desired payload sizes in responses from the server. |
| 1119 /// If response_type is COMPRESSABLE, this denotes the size before compress
ion. |
| 1120 /// </summary> |
| 1121 public int Size { |
| 1122 get { return size_; } |
| 1123 set { |
| 1124 size_ = value; |
| 1125 } |
| 1126 } |
| 1127 |
| 1128 /// <summary>Field number for the "interval_us" field.</summary> |
| 1129 public const int IntervalUsFieldNumber = 2; |
| 1130 private int intervalUs_; |
| 1131 /// <summary> |
| 1132 /// Desired interval between consecutive responses in the response stream i
n |
| 1133 /// microseconds. |
| 1134 /// </summary> |
| 1135 public int IntervalUs { |
| 1136 get { return intervalUs_; } |
| 1137 set { |
| 1138 intervalUs_ = value; |
| 1139 } |
| 1140 } |
| 1141 |
| 1142 public override bool Equals(object other) { |
| 1143 return Equals(other as ResponseParameters); |
| 1144 } |
| 1145 |
| 1146 public bool Equals(ResponseParameters other) { |
| 1147 if (ReferenceEquals(other, null)) { |
| 1148 return false; |
| 1149 } |
| 1150 if (ReferenceEquals(other, this)) { |
| 1151 return true; |
| 1152 } |
| 1153 if (Size != other.Size) return false; |
| 1154 if (IntervalUs != other.IntervalUs) return false; |
| 1155 return true; |
| 1156 } |
| 1157 |
| 1158 public override int GetHashCode() { |
| 1159 int hash = 1; |
| 1160 if (Size != 0) hash ^= Size.GetHashCode(); |
| 1161 if (IntervalUs != 0) hash ^= IntervalUs.GetHashCode(); |
| 1162 return hash; |
| 1163 } |
| 1164 |
| 1165 public override string ToString() { |
| 1166 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1167 } |
| 1168 |
| 1169 public void WriteTo(pb::CodedOutputStream output) { |
| 1170 if (Size != 0) { |
| 1171 output.WriteRawTag(8); |
| 1172 output.WriteInt32(Size); |
| 1173 } |
| 1174 if (IntervalUs != 0) { |
| 1175 output.WriteRawTag(16); |
| 1176 output.WriteInt32(IntervalUs); |
| 1177 } |
| 1178 } |
| 1179 |
| 1180 public int CalculateSize() { |
| 1181 int size = 0; |
| 1182 if (Size != 0) { |
| 1183 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Size); |
| 1184 } |
| 1185 if (IntervalUs != 0) { |
| 1186 size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntervalUs); |
| 1187 } |
| 1188 return size; |
| 1189 } |
| 1190 |
| 1191 public void MergeFrom(ResponseParameters other) { |
| 1192 if (other == null) { |
| 1193 return; |
| 1194 } |
| 1195 if (other.Size != 0) { |
| 1196 Size = other.Size; |
| 1197 } |
| 1198 if (other.IntervalUs != 0) { |
| 1199 IntervalUs = other.IntervalUs; |
| 1200 } |
| 1201 } |
| 1202 |
| 1203 public void MergeFrom(pb::CodedInputStream input) { |
| 1204 uint tag; |
| 1205 while ((tag = input.ReadTag()) != 0) { |
| 1206 switch(tag) { |
| 1207 default: |
| 1208 input.SkipLastField(); |
| 1209 break; |
| 1210 case 8: { |
| 1211 Size = input.ReadInt32(); |
| 1212 break; |
| 1213 } |
| 1214 case 16: { |
| 1215 IntervalUs = input.ReadInt32(); |
| 1216 break; |
| 1217 } |
| 1218 } |
| 1219 } |
| 1220 } |
| 1221 |
| 1222 } |
| 1223 |
| 1224 /// <summary> |
| 1225 /// Server-streaming request. |
| 1226 /// </summary> |
| 1227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1228 public sealed partial class StreamingOutputCallRequest : pb::IMessage<Streamin
gOutputCallRequest> { |
| 1229 private static readonly pb::MessageParser<StreamingOutputCallRequest> _parse
r = new pb::MessageParser<StreamingOutputCallRequest>(() => new StreamingOutputC
allRequest()); |
| 1230 public static pb::MessageParser<StreamingOutputCallRequest> Parser { get { r
eturn _parser; } } |
| 1231 |
| 1232 public static pbr::MessageDescriptor Descriptor { |
| 1233 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTyp
es[7]; } |
| 1234 } |
| 1235 |
| 1236 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1237 get { return Descriptor; } |
| 1238 } |
| 1239 |
| 1240 public StreamingOutputCallRequest() { |
| 1241 OnConstruction(); |
| 1242 } |
| 1243 |
| 1244 partial void OnConstruction(); |
| 1245 |
| 1246 public StreamingOutputCallRequest(StreamingOutputCallRequest other) : this()
{ |
| 1247 responseType_ = other.responseType_; |
| 1248 responseParameters_ = other.responseParameters_.Clone(); |
| 1249 Payload = other.payload_ != null ? other.Payload.Clone() : null; |
| 1250 responseCompression_ = other.responseCompression_; |
| 1251 ResponseStatus = other.responseStatus_ != null ? other.ResponseStatus.Clon
e() : null; |
| 1252 } |
| 1253 |
| 1254 public StreamingOutputCallRequest Clone() { |
| 1255 return new StreamingOutputCallRequest(this); |
| 1256 } |
| 1257 |
| 1258 /// <summary>Field number for the "response_type" field.</summary> |
| 1259 public const int ResponseTypeFieldNumber = 1; |
| 1260 private global::Grpc.Testing.PayloadType responseType_ = global::Grpc.Testin
g.PayloadType.COMPRESSABLE; |
| 1261 /// <summary> |
| 1262 /// Desired payload type in the response from the server. |
| 1263 /// If response_type is RANDOM, the payload from each response in the strea
m |
| 1264 /// might be of different types. This is to simulate a mixed type of payloa
d |
| 1265 /// stream. |
| 1266 /// </summary> |
| 1267 public global::Grpc.Testing.PayloadType ResponseType { |
| 1268 get { return responseType_; } |
| 1269 set { |
| 1270 responseType_ = value; |
| 1271 } |
| 1272 } |
| 1273 |
| 1274 /// <summary>Field number for the "response_parameters" field.</summary> |
| 1275 public const int ResponseParametersFieldNumber = 2; |
| 1276 private static readonly pb::FieldCodec<global::Grpc.Testing.ResponseParamete
rs> _repeated_responseParameters_codec |
| 1277 = pb::FieldCodec.ForMessage(18, global::Grpc.Testing.ResponseParameters.
Parser); |
| 1278 private readonly pbc::RepeatedField<global::Grpc.Testing.ResponseParameters>
responseParameters_ = new pbc::RepeatedField<global::Grpc.Testing.ResponseParam
eters>(); |
| 1279 /// <summary> |
| 1280 /// Configuration for each expected response message. |
| 1281 /// </summary> |
| 1282 public pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> ResponseP
arameters { |
| 1283 get { return responseParameters_; } |
| 1284 } |
| 1285 |
| 1286 /// <summary>Field number for the "payload" field.</summary> |
| 1287 public const int PayloadFieldNumber = 3; |
| 1288 private global::Grpc.Testing.Payload payload_; |
| 1289 /// <summary> |
| 1290 /// Optional input payload sent along with the request. |
| 1291 /// </summary> |
| 1292 public global::Grpc.Testing.Payload Payload { |
| 1293 get { return payload_; } |
| 1294 set { |
| 1295 payload_ = value; |
| 1296 } |
| 1297 } |
| 1298 |
| 1299 /// <summary>Field number for the "response_compression" field.</summary> |
| 1300 public const int ResponseCompressionFieldNumber = 6; |
| 1301 private global::Grpc.Testing.CompressionType responseCompression_ = global::
Grpc.Testing.CompressionType.NONE; |
| 1302 /// <summary> |
| 1303 /// Compression algorithm to be used by the server for the response (stream
) |
| 1304 /// </summary> |
| 1305 public global::Grpc.Testing.CompressionType ResponseCompression { |
| 1306 get { return responseCompression_; } |
| 1307 set { |
| 1308 responseCompression_ = value; |
| 1309 } |
| 1310 } |
| 1311 |
| 1312 /// <summary>Field number for the "response_status" field.</summary> |
| 1313 public const int ResponseStatusFieldNumber = 7; |
| 1314 private global::Grpc.Testing.EchoStatus responseStatus_; |
| 1315 /// <summary> |
| 1316 /// Whether server should return a given status |
| 1317 /// </summary> |
| 1318 public global::Grpc.Testing.EchoStatus ResponseStatus { |
| 1319 get { return responseStatus_; } |
| 1320 set { |
| 1321 responseStatus_ = value; |
| 1322 } |
| 1323 } |
| 1324 |
| 1325 public override bool Equals(object other) { |
| 1326 return Equals(other as StreamingOutputCallRequest); |
| 1327 } |
| 1328 |
| 1329 public bool Equals(StreamingOutputCallRequest other) { |
| 1330 if (ReferenceEquals(other, null)) { |
| 1331 return false; |
| 1332 } |
| 1333 if (ReferenceEquals(other, this)) { |
| 1334 return true; |
| 1335 } |
| 1336 if (ResponseType != other.ResponseType) return false; |
| 1337 if(!responseParameters_.Equals(other.responseParameters_)) return false; |
| 1338 if (!object.Equals(Payload, other.Payload)) return false; |
| 1339 if (ResponseCompression != other.ResponseCompression) return false; |
| 1340 if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; |
| 1341 return true; |
| 1342 } |
| 1343 |
| 1344 public override int GetHashCode() { |
| 1345 int hash = 1; |
| 1346 if (ResponseType != global::Grpc.Testing.PayloadType.COMPRESSABLE) hash ^=
ResponseType.GetHashCode(); |
| 1347 hash ^= responseParameters_.GetHashCode(); |
| 1348 if (payload_ != null) hash ^= Payload.GetHashCode(); |
| 1349 if (ResponseCompression != global::Grpc.Testing.CompressionType.NONE) hash
^= ResponseCompression.GetHashCode(); |
| 1350 if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode(); |
| 1351 return hash; |
| 1352 } |
| 1353 |
| 1354 public override string ToString() { |
| 1355 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1356 } |
| 1357 |
| 1358 public void WriteTo(pb::CodedOutputStream output) { |
| 1359 if (ResponseType != global::Grpc.Testing.PayloadType.COMPRESSABLE) { |
| 1360 output.WriteRawTag(8); |
| 1361 output.WriteEnum((int) ResponseType); |
| 1362 } |
| 1363 responseParameters_.WriteTo(output, _repeated_responseParameters_codec); |
| 1364 if (payload_ != null) { |
| 1365 output.WriteRawTag(26); |
| 1366 output.WriteMessage(Payload); |
| 1367 } |
| 1368 if (ResponseCompression != global::Grpc.Testing.CompressionType.NONE) { |
| 1369 output.WriteRawTag(48); |
| 1370 output.WriteEnum((int) ResponseCompression); |
| 1371 } |
| 1372 if (responseStatus_ != null) { |
| 1373 output.WriteRawTag(58); |
| 1374 output.WriteMessage(ResponseStatus); |
| 1375 } |
| 1376 } |
| 1377 |
| 1378 public int CalculateSize() { |
| 1379 int size = 0; |
| 1380 if (ResponseType != global::Grpc.Testing.PayloadType.COMPRESSABLE) { |
| 1381 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType); |
| 1382 } |
| 1383 size += responseParameters_.CalculateSize(_repeated_responseParameters_cod
ec); |
| 1384 if (payload_ != null) { |
| 1385 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); |
| 1386 } |
| 1387 if (ResponseCompression != global::Grpc.Testing.CompressionType.NONE) { |
| 1388 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseCompress
ion); |
| 1389 } |
| 1390 if (responseStatus_ != null) { |
| 1391 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus); |
| 1392 } |
| 1393 return size; |
| 1394 } |
| 1395 |
| 1396 public void MergeFrom(StreamingOutputCallRequest other) { |
| 1397 if (other == null) { |
| 1398 return; |
| 1399 } |
| 1400 if (other.ResponseType != global::Grpc.Testing.PayloadType.COMPRESSABLE) { |
| 1401 ResponseType = other.ResponseType; |
| 1402 } |
| 1403 responseParameters_.Add(other.responseParameters_); |
| 1404 if (other.payload_ != null) { |
| 1405 if (payload_ == null) { |
| 1406 payload_ = new global::Grpc.Testing.Payload(); |
| 1407 } |
| 1408 Payload.MergeFrom(other.Payload); |
| 1409 } |
| 1410 if (other.ResponseCompression != global::Grpc.Testing.CompressionType.NONE
) { |
| 1411 ResponseCompression = other.ResponseCompression; |
| 1412 } |
| 1413 if (other.responseStatus_ != null) { |
| 1414 if (responseStatus_ == null) { |
| 1415 responseStatus_ = new global::Grpc.Testing.EchoStatus(); |
| 1416 } |
| 1417 ResponseStatus.MergeFrom(other.ResponseStatus); |
| 1418 } |
| 1419 } |
| 1420 |
| 1421 public void MergeFrom(pb::CodedInputStream input) { |
| 1422 uint tag; |
| 1423 while ((tag = input.ReadTag()) != 0) { |
| 1424 switch(tag) { |
| 1425 default: |
| 1426 input.SkipLastField(); |
| 1427 break; |
| 1428 case 8: { |
| 1429 responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum(); |
| 1430 break; |
| 1431 } |
| 1432 case 18: { |
| 1433 responseParameters_.AddEntriesFrom(input, _repeated_responseParamete
rs_codec); |
| 1434 break; |
| 1435 } |
| 1436 case 26: { |
| 1437 if (payload_ == null) { |
| 1438 payload_ = new global::Grpc.Testing.Payload(); |
| 1439 } |
| 1440 input.ReadMessage(payload_); |
| 1441 break; |
| 1442 } |
| 1443 case 48: { |
| 1444 responseCompression_ = (global::Grpc.Testing.CompressionType) input.
ReadEnum(); |
| 1445 break; |
| 1446 } |
| 1447 case 58: { |
| 1448 if (responseStatus_ == null) { |
| 1449 responseStatus_ = new global::Grpc.Testing.EchoStatus(); |
| 1450 } |
| 1451 input.ReadMessage(responseStatus_); |
| 1452 break; |
| 1453 } |
| 1454 } |
| 1455 } |
| 1456 } |
| 1457 |
| 1458 } |
| 1459 |
| 1460 /// <summary> |
| 1461 /// Server-streaming response, as configured by the request and parameters. |
| 1462 /// </summary> |
| 1463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1464 public sealed partial class StreamingOutputCallResponse : pb::IMessage<Streami
ngOutputCallResponse> { |
| 1465 private static readonly pb::MessageParser<StreamingOutputCallResponse> _pars
er = new pb::MessageParser<StreamingOutputCallResponse>(() => new StreamingOutpu
tCallResponse()); |
| 1466 public static pb::MessageParser<StreamingOutputCallResponse> Parser { get {
return _parser; } } |
| 1467 |
| 1468 public static pbr::MessageDescriptor Descriptor { |
| 1469 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTyp
es[8]; } |
| 1470 } |
| 1471 |
| 1472 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1473 get { return Descriptor; } |
| 1474 } |
| 1475 |
| 1476 public StreamingOutputCallResponse() { |
| 1477 OnConstruction(); |
| 1478 } |
| 1479 |
| 1480 partial void OnConstruction(); |
| 1481 |
| 1482 public StreamingOutputCallResponse(StreamingOutputCallResponse other) : this
() { |
| 1483 Payload = other.payload_ != null ? other.Payload.Clone() : null; |
| 1484 } |
| 1485 |
| 1486 public StreamingOutputCallResponse Clone() { |
| 1487 return new StreamingOutputCallResponse(this); |
| 1488 } |
| 1489 |
| 1490 /// <summary>Field number for the "payload" field.</summary> |
| 1491 public const int PayloadFieldNumber = 1; |
| 1492 private global::Grpc.Testing.Payload payload_; |
| 1493 /// <summary> |
| 1494 /// Payload to increase response size. |
| 1495 /// </summary> |
| 1496 public global::Grpc.Testing.Payload Payload { |
| 1497 get { return payload_; } |
| 1498 set { |
| 1499 payload_ = value; |
| 1500 } |
| 1501 } |
| 1502 |
| 1503 public override bool Equals(object other) { |
| 1504 return Equals(other as StreamingOutputCallResponse); |
| 1505 } |
| 1506 |
| 1507 public bool Equals(StreamingOutputCallResponse other) { |
| 1508 if (ReferenceEquals(other, null)) { |
| 1509 return false; |
| 1510 } |
| 1511 if (ReferenceEquals(other, this)) { |
| 1512 return true; |
| 1513 } |
| 1514 if (!object.Equals(Payload, other.Payload)) return false; |
| 1515 return true; |
| 1516 } |
| 1517 |
| 1518 public override int GetHashCode() { |
| 1519 int hash = 1; |
| 1520 if (payload_ != null) hash ^= Payload.GetHashCode(); |
| 1521 return hash; |
| 1522 } |
| 1523 |
| 1524 public override string ToString() { |
| 1525 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1526 } |
| 1527 |
| 1528 public void WriteTo(pb::CodedOutputStream output) { |
| 1529 if (payload_ != null) { |
| 1530 output.WriteRawTag(10); |
| 1531 output.WriteMessage(Payload); |
| 1532 } |
| 1533 } |
| 1534 |
| 1535 public int CalculateSize() { |
| 1536 int size = 0; |
| 1537 if (payload_ != null) { |
| 1538 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); |
| 1539 } |
| 1540 return size; |
| 1541 } |
| 1542 |
| 1543 public void MergeFrom(StreamingOutputCallResponse other) { |
| 1544 if (other == null) { |
| 1545 return; |
| 1546 } |
| 1547 if (other.payload_ != null) { |
| 1548 if (payload_ == null) { |
| 1549 payload_ = new global::Grpc.Testing.Payload(); |
| 1550 } |
| 1551 Payload.MergeFrom(other.Payload); |
| 1552 } |
| 1553 } |
| 1554 |
| 1555 public void MergeFrom(pb::CodedInputStream input) { |
| 1556 uint tag; |
| 1557 while ((tag = input.ReadTag()) != 0) { |
| 1558 switch(tag) { |
| 1559 default: |
| 1560 input.SkipLastField(); |
| 1561 break; |
| 1562 case 10: { |
| 1563 if (payload_ == null) { |
| 1564 payload_ = new global::Grpc.Testing.Payload(); |
| 1565 } |
| 1566 input.ReadMessage(payload_); |
| 1567 break; |
| 1568 } |
| 1569 } |
| 1570 } |
| 1571 } |
| 1572 |
| 1573 } |
| 1574 |
| 1575 /// <summary> |
| 1576 /// For reconnect interop test only. |
| 1577 /// Server tells client whether its reconnects are following the spec and the |
| 1578 /// reconnect backoffs it saw. |
| 1579 /// </summary> |
| 1580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1581 public sealed partial class ReconnectInfo : pb::IMessage<ReconnectInfo> { |
| 1582 private static readonly pb::MessageParser<ReconnectInfo> _parser = new pb::M
essageParser<ReconnectInfo>(() => new ReconnectInfo()); |
| 1583 public static pb::MessageParser<ReconnectInfo> Parser { get { return _parser
; } } |
| 1584 |
| 1585 public static pbr::MessageDescriptor Descriptor { |
| 1586 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTyp
es[9]; } |
| 1587 } |
| 1588 |
| 1589 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1590 get { return Descriptor; } |
| 1591 } |
| 1592 |
| 1593 public ReconnectInfo() { |
| 1594 OnConstruction(); |
| 1595 } |
| 1596 |
| 1597 partial void OnConstruction(); |
| 1598 |
| 1599 public ReconnectInfo(ReconnectInfo other) : this() { |
| 1600 passed_ = other.passed_; |
| 1601 backoffMs_ = other.backoffMs_.Clone(); |
| 1602 } |
| 1603 |
| 1604 public ReconnectInfo Clone() { |
| 1605 return new ReconnectInfo(this); |
| 1606 } |
| 1607 |
| 1608 /// <summary>Field number for the "passed" field.</summary> |
| 1609 public const int PassedFieldNumber = 1; |
| 1610 private bool passed_; |
| 1611 public bool Passed { |
| 1612 get { return passed_; } |
| 1613 set { |
| 1614 passed_ = value; |
| 1615 } |
| 1616 } |
| 1617 |
| 1618 /// <summary>Field number for the "backoff_ms" field.</summary> |
| 1619 public const int BackoffMsFieldNumber = 2; |
| 1620 private static readonly pb::FieldCodec<int> _repeated_backoffMs_codec |
| 1621 = pb::FieldCodec.ForInt32(18); |
| 1622 private readonly pbc::RepeatedField<int> backoffMs_ = new pbc::RepeatedField
<int>(); |
| 1623 public pbc::RepeatedField<int> BackoffMs { |
| 1624 get { return backoffMs_; } |
| 1625 } |
| 1626 |
| 1627 public override bool Equals(object other) { |
| 1628 return Equals(other as ReconnectInfo); |
| 1629 } |
| 1630 |
| 1631 public bool Equals(ReconnectInfo other) { |
| 1632 if (ReferenceEquals(other, null)) { |
| 1633 return false; |
| 1634 } |
| 1635 if (ReferenceEquals(other, this)) { |
| 1636 return true; |
| 1637 } |
| 1638 if (Passed != other.Passed) return false; |
| 1639 if(!backoffMs_.Equals(other.backoffMs_)) return false; |
| 1640 return true; |
| 1641 } |
| 1642 |
| 1643 public override int GetHashCode() { |
| 1644 int hash = 1; |
| 1645 if (Passed != false) hash ^= Passed.GetHashCode(); |
| 1646 hash ^= backoffMs_.GetHashCode(); |
| 1647 return hash; |
| 1648 } |
| 1649 |
| 1650 public override string ToString() { |
| 1651 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1652 } |
| 1653 |
| 1654 public void WriteTo(pb::CodedOutputStream output) { |
| 1655 if (Passed != false) { |
| 1656 output.WriteRawTag(8); |
| 1657 output.WriteBool(Passed); |
| 1658 } |
| 1659 backoffMs_.WriteTo(output, _repeated_backoffMs_codec); |
| 1660 } |
| 1661 |
| 1662 public int CalculateSize() { |
| 1663 int size = 0; |
| 1664 if (Passed != false) { |
| 1665 size += 1 + 1; |
| 1666 } |
| 1667 size += backoffMs_.CalculateSize(_repeated_backoffMs_codec); |
| 1668 return size; |
| 1669 } |
| 1670 |
| 1671 public void MergeFrom(ReconnectInfo other) { |
| 1672 if (other == null) { |
| 1673 return; |
| 1674 } |
| 1675 if (other.Passed != false) { |
| 1676 Passed = other.Passed; |
| 1677 } |
| 1678 backoffMs_.Add(other.backoffMs_); |
| 1679 } |
| 1680 |
| 1681 public void MergeFrom(pb::CodedInputStream input) { |
| 1682 uint tag; |
| 1683 while ((tag = input.ReadTag()) != 0) { |
| 1684 switch(tag) { |
| 1685 default: |
| 1686 input.SkipLastField(); |
| 1687 break; |
| 1688 case 8: { |
| 1689 Passed = input.ReadBool(); |
| 1690 break; |
| 1691 } |
| 1692 case 18: |
| 1693 case 16: { |
| 1694 backoffMs_.AddEntriesFrom(input, _repeated_backoffMs_codec); |
| 1695 break; |
| 1696 } |
| 1697 } |
| 1698 } |
| 1699 } |
| 1700 |
| 1701 } |
| 1702 |
| 1703 #endregion |
| 1704 |
| 1705 } |
| 1706 |
| 1707 #endregion Designer generated code |
OLD | NEW |