Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 2 | // source: src/proto/grpc/testing/messages.proto |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 3 | #pragma warning disable 1591, 0612, 3021 |
| 4 | #region Designer generated code |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 5 | |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 6 | using pb = global::Google.Protobuf; |
| 7 | using pbc = global::Google.Protobuf.Collections; |
| 8 | using pbr = global::Google.Protobuf.Reflection; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 9 | using scg = global::System.Collections.Generic; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 10 | namespace Grpc.Testing { |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 11 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 12 | /// <summary>Holder for reflection information generated from src/proto/grpc/testing/messages.proto</summary> |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 13 | public static partial class MessagesReflection { |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 14 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 15 | #region Descriptor |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 16 | /// <summary>File descriptor for src/proto/grpc/testing/messages.proto</summary> |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 17 | public static pbr::FileDescriptor Descriptor { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 18 | get { return descriptor; } |
| 19 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 20 | private static pbr::FileDescriptor descriptor; |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 21 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 22 | static MessagesReflection() { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 23 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 24 | string.Concat( |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 25 | "CiVzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL21lc3NhZ2VzLnByb3RvEgxncnBj", |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 26 | "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 Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 56 | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 57 | new pbr::FileDescriptor[] { }, |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 58 | 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 Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 60 | 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 62 | 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 Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 63 | new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleResponse), global::Grpc.Testing.SimpleResponse.Parser, new[]{ "Payload", "Username", "OauthScope" }, null, null, null), |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 64 | new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallRequest), global::Grpc.Testing.StreamingInputCallRequest.Parser, new[]{ "Payload", "ExpectCompressed" }, null, null, null), |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 65 | new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallResponse), global::Grpc.Testing.StreamingInputCallResponse.Parser, new[]{ "AggregatedPayloadSize" }, null, null, null), |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 66 | 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 Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 68 | 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 Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 71 | })); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 72 | } |
| 73 | #endregion |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 74 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 75 | } |
| 76 | #region Enums |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 77 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 78 | /// DEPRECATED, don't use. To be removed shortly. |
| 79 | /// The type of payload that should be returned. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 80 | /// </summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 81 | public enum PayloadType { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 82 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 83 | /// Compressable text format. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 84 | /// </summary> |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 85 | [pbr::OriginalName("COMPRESSABLE")] Compressable = 0, |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 86 | } |
| 87 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 88 | #endregion |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 89 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 90 | #region Messages |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 91 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 92 | /// 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 95 | /// </summary> |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 96 | public sealed partial class BoolValue : pb::IMessage<BoolValue> { |
| 97 | private static readonly pb::MessageParser<BoolValue> _parser = new pb::MessageParser<BoolValue>(() => new BoolValue()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 98 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 99 | public static pb::MessageParser<BoolValue> Parser { get { return _parser; } } |
| 100 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 101 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 102 | public static pbr::MessageDescriptor Descriptor { |
| 103 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[0]; } |
| 104 | } |
| 105 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 106 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 107 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 108 | get { return Descriptor; } |
| 109 | } |
| 110 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 111 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 112 | public BoolValue() { |
| 113 | OnConstruction(); |
| 114 | } |
| 115 | |
| 116 | partial void OnConstruction(); |
| 117 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 118 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 119 | public BoolValue(BoolValue other) : this() { |
| 120 | value_ = other.value_; |
| 121 | } |
| 122 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 123 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 124 | 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 Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 132 | /// The bool value. |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 133 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 134 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 135 | public bool Value { |
| 136 | get { return value_; } |
| 137 | set { |
| 138 | value_ = value; |
| 139 | } |
| 140 | } |
| 141 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 142 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 143 | public override bool Equals(object other) { |
| 144 | return Equals(other as BoolValue); |
| 145 | } |
| 146 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 147 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 148 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 159 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 160 | public override int GetHashCode() { |
| 161 | int hash = 1; |
| 162 | if (Value != false) hash ^= Value.GetHashCode(); |
| 163 | return hash; |
| 164 | } |
| 165 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 166 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 167 | public override string ToString() { |
| 168 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 169 | } |
| 170 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 171 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 172 | public void WriteTo(pb::CodedOutputStream output) { |
| 173 | if (Value != false) { |
| 174 | output.WriteRawTag(8); |
| 175 | output.WriteBool(Value); |
| 176 | } |
| 177 | } |
| 178 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 179 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 180 | public int CalculateSize() { |
| 181 | int size = 0; |
| 182 | if (Value != false) { |
| 183 | size += 1 + 1; |
| 184 | } |
| 185 | return size; |
| 186 | } |
| 187 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 188 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 189 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 198 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 199 | 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 Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 217 | /// A block of data, to simply increase gRPC message size. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 218 | /// </summary> |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 219 | public sealed partial class Payload : pb::IMessage<Payload> { |
| 220 | private static readonly pb::MessageParser<Payload> _parser = new pb::MessageParser<Payload>(() => new Payload()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 221 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 222 | public static pb::MessageParser<Payload> Parser { get { return _parser; } } |
| 223 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 224 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 225 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 226 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[1]; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 227 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 228 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 229 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 230 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 231 | get { return Descriptor; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 232 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 233 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 234 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 235 | public Payload() { |
| 236 | OnConstruction(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 237 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 238 | |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 239 | partial void OnConstruction(); |
| 240 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 241 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 242 | public Payload(Payload other) : this() { |
| 243 | type_ = other.type_; |
| 244 | body_ = other.body_; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 245 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 246 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 247 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 248 | public Payload Clone() { |
| 249 | return new Payload(this); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 250 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 251 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 252 | /// <summary>Field number for the "type" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 253 | public const int TypeFieldNumber = 1; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 254 | private global::Grpc.Testing.PayloadType type_ = 0; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 255 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 256 | /// DEPRECATED, don't use. To be removed shortly. |
| 257 | /// The type of data in body. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 258 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 259 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 260 | public global::Grpc.Testing.PayloadType Type { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 261 | get { return type_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 262 | set { |
| 263 | type_ = value; |
| 264 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 265 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 266 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 267 | /// <summary>Field number for the "body" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 268 | public const int BodyFieldNumber = 2; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 269 | private pb::ByteString body_ = pb::ByteString.Empty; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 270 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 271 | /// Primary contents of payload. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 272 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 273 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 274 | public pb::ByteString Body { |
| 275 | get { return body_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 276 | set { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 277 | body_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 278 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 279 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 280 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 281 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 282 | public override bool Equals(object other) { |
| 283 | return Equals(other as Payload); |
| 284 | } |
| 285 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 286 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 287 | public bool Equals(Payload other) { |
| 288 | if (ReferenceEquals(other, null)) { |
| 289 | return false; |
| 290 | } |
| 291 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 292 | return true; |
| 293 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 294 | if (Type != other.Type) return false; |
| 295 | if (Body != other.Body) return false; |
| 296 | return true; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 297 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 298 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 299 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 300 | public override int GetHashCode() { |
| 301 | int hash = 1; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 302 | if (Type != 0) hash ^= Type.GetHashCode(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 303 | if (Body.Length != 0) hash ^= Body.GetHashCode(); |
| 304 | return hash; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 305 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 306 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 307 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 308 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 309 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 310 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 311 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 312 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 313 | public void WriteTo(pb::CodedOutputStream output) { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 314 | if (Type != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 315 | output.WriteRawTag(8); |
| 316 | output.WriteEnum((int) Type); |
| 317 | } |
| 318 | if (Body.Length != 0) { |
| 319 | output.WriteRawTag(18); |
| 320 | output.WriteBytes(Body); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 321 | } |
| 322 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 323 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 324 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 325 | public int CalculateSize() { |
| 326 | int size = 0; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 327 | if (Type != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 328 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 334 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 335 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 336 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 337 | public void MergeFrom(Payload other) { |
| 338 | if (other == null) { |
| 339 | return; |
| 340 | } |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 341 | if (other.Type != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 342 | Type = other.Type; |
| 343 | } |
| 344 | if (other.Body.Length != 0) { |
| 345 | Body = other.Body; |
| 346 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 347 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 348 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 349 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 350 | public void MergeFrom(pb::CodedInputStream input) { |
| 351 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 352 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 353 | switch(tag) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 354 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 355 | input.SkipLastField(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 356 | break; |
| 357 | case 8: { |
| 358 | type_ = (global::Grpc.Testing.PayloadType) input.ReadEnum(); |
| 359 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 360 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 361 | case 18: { |
| 362 | Body = input.ReadBytes(); |
| 363 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 364 | } |
| 365 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 366 | } |
| 367 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 368 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 369 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 370 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 371 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 372 | /// 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 Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 374 | /// </summary> |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 375 | public sealed partial class EchoStatus : pb::IMessage<EchoStatus> { |
| 376 | private static readonly pb::MessageParser<EchoStatus> _parser = new pb::MessageParser<EchoStatus>(() => new EchoStatus()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 377 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 378 | public static pb::MessageParser<EchoStatus> Parser { get { return _parser; } } |
| 379 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 380 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 381 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 382 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[2]; } |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 383 | } |
| 384 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 385 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 386 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 387 | get { return Descriptor; } |
| 388 | } |
| 389 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 390 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 391 | public EchoStatus() { |
| 392 | OnConstruction(); |
| 393 | } |
| 394 | |
| 395 | partial void OnConstruction(); |
| 396 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 397 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 398 | public EchoStatus(EchoStatus other) : this() { |
| 399 | code_ = other.code_; |
| 400 | message_ = other.message_; |
| 401 | } |
| 402 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 403 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 404 | public EchoStatus Clone() { |
| 405 | return new EchoStatus(this); |
| 406 | } |
| 407 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 408 | /// <summary>Field number for the "code" field.</summary> |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 409 | public const int CodeFieldNumber = 1; |
| 410 | private int code_; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 411 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 412 | public int Code { |
| 413 | get { return code_; } |
| 414 | set { |
| 415 | code_ = value; |
| 416 | } |
| 417 | } |
| 418 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 419 | /// <summary>Field number for the "message" field.</summary> |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 420 | public const int MessageFieldNumber = 2; |
| 421 | private string message_ = ""; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 422 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 423 | public string Message { |
| 424 | get { return message_; } |
| 425 | set { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 426 | message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 427 | } |
| 428 | } |
| 429 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 430 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 431 | public override bool Equals(object other) { |
| 432 | return Equals(other as EchoStatus); |
| 433 | } |
| 434 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 435 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 436 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 448 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 449 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 456 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 457 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 458 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 459 | } |
| 460 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 461 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 462 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 473 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 474 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 485 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 486 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 498 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 499 | 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 Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 520 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 521 | /// Unary request. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 522 | /// </summary> |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 523 | public sealed partial class SimpleRequest : pb::IMessage<SimpleRequest> { |
| 524 | private static readonly pb::MessageParser<SimpleRequest> _parser = new pb::MessageParser<SimpleRequest>(() => new SimpleRequest()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 525 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 526 | public static pb::MessageParser<SimpleRequest> Parser { get { return _parser; } } |
| 527 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 528 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 529 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 530 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[3]; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 531 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 532 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 533 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 534 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 535 | get { return Descriptor; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 536 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 537 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 538 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 539 | public SimpleRequest() { |
| 540 | OnConstruction(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 541 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 542 | |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 543 | partial void OnConstruction(); |
| 544 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 545 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 546 | 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 552 | ResponseCompressed = other.responseCompressed_ != null ? other.ResponseCompressed.Clone() : null; |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 553 | ResponseStatus = other.responseStatus_ != null ? other.ResponseStatus.Clone() : null; |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 554 | ExpectCompressed = other.expectCompressed_ != null ? other.ExpectCompressed.Clone() : null; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 555 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 556 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 557 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 558 | public SimpleRequest Clone() { |
| 559 | return new SimpleRequest(this); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 560 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 561 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 562 | /// <summary>Field number for the "response_type" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 563 | public const int ResponseTypeFieldNumber = 1; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 564 | private global::Grpc.Testing.PayloadType responseType_ = 0; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 565 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 566 | /// 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 Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 569 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 570 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 571 | public global::Grpc.Testing.PayloadType ResponseType { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 572 | get { return responseType_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 573 | set { |
| 574 | responseType_ = value; |
| 575 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 576 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 577 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 578 | /// <summary>Field number for the "response_size" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 579 | public const int ResponseSizeFieldNumber = 2; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 580 | private int responseSize_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 581 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 582 | /// Desired payload size in the response from the server. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 583 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 584 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 585 | public int ResponseSize { |
| 586 | get { return responseSize_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 587 | set { |
| 588 | responseSize_ = value; |
| 589 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 590 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 591 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 592 | /// <summary>Field number for the "payload" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 593 | public const int PayloadFieldNumber = 3; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 594 | private global::Grpc.Testing.Payload payload_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 595 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 596 | /// Optional input payload sent along with the request. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 597 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 598 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 599 | public global::Grpc.Testing.Payload Payload { |
| 600 | get { return payload_; } |
| 601 | set { |
| 602 | payload_ = value; |
| 603 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 604 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 605 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 606 | /// <summary>Field number for the "fill_username" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 607 | public const int FillUsernameFieldNumber = 4; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 608 | private bool fillUsername_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 609 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 610 | /// Whether SimpleResponse should include username. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 611 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 612 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 613 | public bool FillUsername { |
| 614 | get { return fillUsername_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 615 | set { |
| 616 | fillUsername_ = value; |
| 617 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 618 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 619 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 620 | /// <summary>Field number for the "fill_oauth_scope" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 621 | public const int FillOauthScopeFieldNumber = 5; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 622 | private bool fillOauthScope_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 623 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 624 | /// Whether SimpleResponse should include OAuth scope. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 625 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 626 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 627 | public bool FillOauthScope { |
| 628 | get { return fillOauthScope_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 629 | set { |
| 630 | fillOauthScope_ = value; |
| 631 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 632 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 633 | |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 634 | /// <summary>Field number for the "response_compressed" field.</summary> |
| 635 | public const int ResponseCompressedFieldNumber = 6; |
| 636 | private global::Grpc.Testing.BoolValue responseCompressed_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 637 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 638 | /// 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 Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 642 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 643 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 644 | public global::Grpc.Testing.BoolValue ResponseCompressed { |
| 645 | get { return responseCompressed_; } |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 646 | set { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 647 | responseCompressed_ = value; |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 648 | } |
| 649 | } |
| 650 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 651 | /// <summary>Field number for the "response_status" field.</summary> |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 652 | public const int ResponseStatusFieldNumber = 7; |
| 653 | private global::Grpc.Testing.EchoStatus responseStatus_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 654 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 655 | /// Whether server should return a given status |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 656 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 657 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 658 | public global::Grpc.Testing.EchoStatus ResponseStatus { |
| 659 | get { return responseStatus_; } |
| 660 | set { |
| 661 | responseStatus_ = value; |
| 662 | } |
| 663 | } |
| 664 | |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 665 | /// <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 Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 669 | /// Whether the server should expect this request to be compressed. |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 670 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 671 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 672 | public global::Grpc.Testing.BoolValue ExpectCompressed { |
| 673 | get { return expectCompressed_; } |
| 674 | set { |
| 675 | expectCompressed_ = value; |
| 676 | } |
| 677 | } |
| 678 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 679 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 680 | public override bool Equals(object other) { |
| 681 | return Equals(other as SimpleRequest); |
| 682 | } |
| 683 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 684 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 685 | public bool Equals(SimpleRequest other) { |
| 686 | if (ReferenceEquals(other, null)) { |
| 687 | return false; |
| 688 | } |
| 689 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 690 | return true; |
| 691 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 692 | 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 697 | if (!object.Equals(ResponseCompressed, other.ResponseCompressed)) return false; |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 698 | if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 699 | if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 700 | return true; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 701 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 702 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 703 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 704 | public override int GetHashCode() { |
| 705 | int hash = 1; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 706 | if (ResponseType != 0) hash ^= ResponseType.GetHashCode(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 707 | 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 711 | if (responseCompressed_ != null) hash ^= ResponseCompressed.GetHashCode(); |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 712 | if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode(); |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 713 | if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 714 | return hash; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 715 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 716 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 717 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 718 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 719 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 720 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 721 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 722 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 723 | public void WriteTo(pb::CodedOutputStream output) { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 724 | if (ResponseType != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 725 | 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 744 | if (responseCompressed_ != null) { |
| 745 | output.WriteRawTag(50); |
| 746 | output.WriteMessage(ResponseCompressed); |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 747 | } |
| 748 | if (responseStatus_ != null) { |
| 749 | output.WriteRawTag(58); |
| 750 | output.WriteMessage(ResponseStatus); |
| 751 | } |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 752 | if (expectCompressed_ != null) { |
| 753 | output.WriteRawTag(66); |
| 754 | output.WriteMessage(ExpectCompressed); |
| 755 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 756 | } |
| 757 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 758 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 759 | public int CalculateSize() { |
| 760 | int size = 0; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 761 | if (ResponseType != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 762 | 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 776 | if (responseCompressed_ != null) { |
| 777 | size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseCompressed); |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 778 | } |
| 779 | if (responseStatus_ != null) { |
| 780 | size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus); |
| 781 | } |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 782 | if (expectCompressed_ != null) { |
| 783 | size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed); |
| 784 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 785 | return size; |
| 786 | } |
| 787 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 788 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 789 | public void MergeFrom(SimpleRequest other) { |
| 790 | if (other == null) { |
| 791 | return; |
| 792 | } |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 793 | if (other.ResponseType != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 794 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 802 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 803 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 810 | } |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 811 | if (other.responseCompressed_ != null) { |
| 812 | if (responseCompressed_ == null) { |
| 813 | responseCompressed_ = new global::Grpc.Testing.BoolValue(); |
| 814 | } |
| 815 | ResponseCompressed.MergeFrom(other.ResponseCompressed); |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 816 | } |
| 817 | if (other.responseStatus_ != null) { |
| 818 | if (responseStatus_ == null) { |
| 819 | responseStatus_ = new global::Grpc.Testing.EchoStatus(); |
| 820 | } |
| 821 | ResponseStatus.MergeFrom(other.ResponseStatus); |
| 822 | } |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 823 | if (other.expectCompressed_ != null) { |
| 824 | if (expectCompressed_ == null) { |
| 825 | expectCompressed_ = new global::Grpc.Testing.BoolValue(); |
| 826 | } |
| 827 | ExpectCompressed.MergeFrom(other.ExpectCompressed); |
| 828 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 829 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 830 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 831 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 832 | public void MergeFrom(pb::CodedInputStream input) { |
| 833 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 834 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 835 | switch(tag) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 836 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 837 | input.SkipLastField(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 838 | break; |
| 839 | case 8: { |
| 840 | responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum(); |
| 841 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 842 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 843 | case 16: { |
| 844 | ResponseSize = input.ReadInt32(); |
| 845 | break; |
| 846 | } |
| 847 | case 26: { |
| 848 | if (payload_ == null) { |
| 849 | payload_ = new global::Grpc.Testing.Payload(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 850 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 851 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 861 | } |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 862 | case 50: { |
| 863 | if (responseCompressed_ == null) { |
| 864 | responseCompressed_ = new global::Grpc.Testing.BoolValue(); |
| 865 | } |
| 866 | input.ReadMessage(responseCompressed_); |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 867 | 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 876 | case 66: { |
| 877 | if (expectCompressed_ == null) { |
| 878 | expectCompressed_ = new global::Grpc.Testing.BoolValue(); |
| 879 | } |
| 880 | input.ReadMessage(expectCompressed_); |
| 881 | break; |
| 882 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 883 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 884 | } |
| 885 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 886 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 887 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 888 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 889 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 890 | /// Unary response, as configured by the request. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 891 | /// </summary> |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 892 | public sealed partial class SimpleResponse : pb::IMessage<SimpleResponse> { |
| 893 | private static readonly pb::MessageParser<SimpleResponse> _parser = new pb::MessageParser<SimpleResponse>(() => new SimpleResponse()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 894 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 895 | public static pb::MessageParser<SimpleResponse> Parser { get { return _parser; } } |
| 896 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 897 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 898 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 899 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[4]; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 900 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 901 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 902 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 903 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 904 | get { return Descriptor; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 905 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 906 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 907 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 908 | public SimpleResponse() { |
| 909 | OnConstruction(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 910 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 911 | |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 912 | partial void OnConstruction(); |
| 913 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 914 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 915 | public SimpleResponse(SimpleResponse other) : this() { |
| 916 | Payload = other.payload_ != null ? other.Payload.Clone() : null; |
| 917 | username_ = other.username_; |
| 918 | oauthScope_ = other.oauthScope_; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 919 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 920 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 921 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 922 | public SimpleResponse Clone() { |
| 923 | return new SimpleResponse(this); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 924 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 925 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 926 | /// <summary>Field number for the "payload" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 927 | public const int PayloadFieldNumber = 1; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 928 | private global::Grpc.Testing.Payload payload_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 929 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 930 | /// Payload to increase message size. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 931 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 932 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 933 | public global::Grpc.Testing.Payload Payload { |
| 934 | get { return payload_; } |
| 935 | set { |
| 936 | payload_ = value; |
| 937 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 938 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 939 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 940 | /// <summary>Field number for the "username" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 941 | public const int UsernameFieldNumber = 2; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 942 | private string username_ = ""; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 943 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 944 | /// The user the request came from, for verifying authentication was |
| 945 | /// successful when the client expected it. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 946 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 947 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 948 | public string Username { |
| 949 | get { return username_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 950 | set { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 951 | username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 952 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 953 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 954 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 955 | /// <summary>Field number for the "oauth_scope" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 956 | public const int OauthScopeFieldNumber = 3; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 957 | private string oauthScope_ = ""; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 958 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 959 | /// OAuth scope. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 960 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 961 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 962 | public string OauthScope { |
| 963 | get { return oauthScope_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 964 | set { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 965 | oauthScope_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 966 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 967 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 968 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 969 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 970 | public override bool Equals(object other) { |
| 971 | return Equals(other as SimpleResponse); |
| 972 | } |
| 973 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 974 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 975 | public bool Equals(SimpleResponse other) { |
| 976 | if (ReferenceEquals(other, null)) { |
| 977 | return false; |
| 978 | } |
| 979 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 980 | return true; |
| 981 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 982 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 986 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 987 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 988 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 989 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 995 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 996 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 997 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 998 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 999 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1000 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1001 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1002 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1003 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1018 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1019 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1033 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1034 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1041 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1042 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1049 | } |
| 1050 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1051 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1052 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1053 | public void MergeFrom(pb::CodedInputStream input) { |
| 1054 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1055 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1056 | switch(tag) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1057 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1058 | input.SkipLastField(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1059 | break; |
| 1060 | case 10: { |
| 1061 | if (payload_ == null) { |
| 1062 | payload_ = new global::Grpc.Testing.Payload(); |
| 1063 | } |
| 1064 | input.ReadMessage(payload_); |
| 1065 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1066 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1067 | case 18: { |
| 1068 | Username = input.ReadString(); |
| 1069 | break; |
| 1070 | } |
| 1071 | case 26: { |
| 1072 | OauthScope = input.ReadString(); |
| 1073 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1074 | } |
| 1075 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1076 | } |
| 1077 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1078 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1079 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1080 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1081 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1082 | /// Client-streaming request. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1083 | /// </summary> |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1084 | public sealed partial class StreamingInputCallRequest : pb::IMessage<StreamingInputCallRequest> { |
| 1085 | private static readonly pb::MessageParser<StreamingInputCallRequest> _parser = new pb::MessageParser<StreamingInputCallRequest>(() => new StreamingInputCallRequest()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1086 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1087 | public static pb::MessageParser<StreamingInputCallRequest> Parser { get { return _parser; } } |
| 1088 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1089 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1090 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1091 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[5]; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1092 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1093 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1094 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1095 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1096 | get { return Descriptor; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1097 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1098 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1099 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1100 | public StreamingInputCallRequest() { |
| 1101 | OnConstruction(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1102 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1103 | |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1104 | partial void OnConstruction(); |
| 1105 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1106 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1107 | public StreamingInputCallRequest(StreamingInputCallRequest other) : this() { |
| 1108 | Payload = other.payload_ != null ? other.Payload.Clone() : null; |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1109 | ExpectCompressed = other.expectCompressed_ != null ? other.ExpectCompressed.Clone() : null; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1110 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1111 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1112 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1113 | public StreamingInputCallRequest Clone() { |
| 1114 | return new StreamingInputCallRequest(this); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1115 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1116 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1117 | /// <summary>Field number for the "payload" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1118 | public const int PayloadFieldNumber = 1; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1119 | private global::Grpc.Testing.Payload payload_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1120 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1121 | /// Optional input payload sent along with the request. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1122 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1123 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1124 | public global::Grpc.Testing.Payload Payload { |
| 1125 | get { return payload_; } |
| 1126 | set { |
| 1127 | payload_ = value; |
| 1128 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1129 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1130 | |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1131 | /// <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 Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1135 | /// 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1139 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1140 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1141 | public global::Grpc.Testing.BoolValue ExpectCompressed { |
| 1142 | get { return expectCompressed_; } |
| 1143 | set { |
| 1144 | expectCompressed_ = value; |
| 1145 | } |
| 1146 | } |
| 1147 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1148 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1149 | public override bool Equals(object other) { |
| 1150 | return Equals(other as StreamingInputCallRequest); |
| 1151 | } |
| 1152 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1153 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1154 | public bool Equals(StreamingInputCallRequest other) { |
| 1155 | if (ReferenceEquals(other, null)) { |
| 1156 | return false; |
| 1157 | } |
| 1158 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1159 | return true; |
| 1160 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1161 | if (!object.Equals(Payload, other.Payload)) return false; |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1162 | if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1163 | return true; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1164 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1165 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1166 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1167 | public override int GetHashCode() { |
| 1168 | int hash = 1; |
| 1169 | if (payload_ != null) hash ^= Payload.GetHashCode(); |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1170 | if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1171 | return hash; |
| 1172 | } |
| 1173 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1174 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1175 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1176 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1177 | } |
| 1178 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1179 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1180 | public void WriteTo(pb::CodedOutputStream output) { |
| 1181 | if (payload_ != null) { |
| 1182 | output.WriteRawTag(10); |
| 1183 | output.WriteMessage(Payload); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1184 | } |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1185 | if (expectCompressed_ != null) { |
| 1186 | output.WriteRawTag(18); |
| 1187 | output.WriteMessage(ExpectCompressed); |
| 1188 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1189 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1190 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1191 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1192 | public int CalculateSize() { |
| 1193 | int size = 0; |
| 1194 | if (payload_ != null) { |
| 1195 | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); |
| 1196 | } |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1197 | if (expectCompressed_ != null) { |
| 1198 | size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed); |
| 1199 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1200 | return size; |
| 1201 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1202 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1203 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1204 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1211 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1212 | Payload.MergeFrom(other.Payload); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1213 | } |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1214 | if (other.expectCompressed_ != null) { |
| 1215 | if (expectCompressed_ == null) { |
| 1216 | expectCompressed_ = new global::Grpc.Testing.BoolValue(); |
| 1217 | } |
| 1218 | ExpectCompressed.MergeFrom(other.ExpectCompressed); |
| 1219 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1220 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1221 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1222 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1223 | public void MergeFrom(pb::CodedInputStream input) { |
| 1224 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1225 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1226 | switch(tag) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1227 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1228 | input.SkipLastField(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1229 | break; |
| 1230 | case 10: { |
| 1231 | if (payload_ == null) { |
| 1232 | payload_ = new global::Grpc.Testing.Payload(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1233 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1234 | input.ReadMessage(payload_); |
| 1235 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1236 | } |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1237 | case 18: { |
| 1238 | if (expectCompressed_ == null) { |
| 1239 | expectCompressed_ = new global::Grpc.Testing.BoolValue(); |
| 1240 | } |
| 1241 | input.ReadMessage(expectCompressed_); |
| 1242 | break; |
| 1243 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1244 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1245 | } |
| 1246 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1247 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1248 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1249 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1250 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1251 | /// Client-streaming response. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1252 | /// </summary> |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1253 | public sealed partial class StreamingInputCallResponse : pb::IMessage<StreamingInputCallResponse> { |
| 1254 | private static readonly pb::MessageParser<StreamingInputCallResponse> _parser = new pb::MessageParser<StreamingInputCallResponse>(() => new StreamingInputCallResponse()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1255 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1256 | public static pb::MessageParser<StreamingInputCallResponse> Parser { get { return _parser; } } |
| 1257 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1258 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1259 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1260 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[6]; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1261 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1262 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1263 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1264 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1265 | get { return Descriptor; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1266 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1267 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1268 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1269 | public StreamingInputCallResponse() { |
| 1270 | OnConstruction(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1271 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1272 | |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1273 | partial void OnConstruction(); |
| 1274 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1275 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1276 | public StreamingInputCallResponse(StreamingInputCallResponse other) : this() { |
| 1277 | aggregatedPayloadSize_ = other.aggregatedPayloadSize_; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1278 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1279 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1280 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1281 | public StreamingInputCallResponse Clone() { |
| 1282 | return new StreamingInputCallResponse(this); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1283 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1284 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1285 | /// <summary>Field number for the "aggregated_payload_size" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1286 | public const int AggregatedPayloadSizeFieldNumber = 1; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1287 | private int aggregatedPayloadSize_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1288 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1289 | /// Aggregated size of payloads received from the client. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1290 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1291 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1292 | public int AggregatedPayloadSize { |
| 1293 | get { return aggregatedPayloadSize_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1294 | set { |
| 1295 | aggregatedPayloadSize_ = value; |
| 1296 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1297 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1298 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1299 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1300 | public override bool Equals(object other) { |
| 1301 | return Equals(other as StreamingInputCallResponse); |
| 1302 | } |
| 1303 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1304 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1305 | public bool Equals(StreamingInputCallResponse other) { |
| 1306 | if (ReferenceEquals(other, null)) { |
| 1307 | return false; |
| 1308 | } |
| 1309 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1310 | return true; |
| 1311 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1312 | if (AggregatedPayloadSize != other.AggregatedPayloadSize) return false; |
| 1313 | return true; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1314 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1315 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1316 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1317 | public override int GetHashCode() { |
| 1318 | int hash = 1; |
| 1319 | if (AggregatedPayloadSize != 0) hash ^= AggregatedPayloadSize.GetHashCode(); |
| 1320 | return hash; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1321 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1322 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1323 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1324 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1325 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1326 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1327 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1328 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1329 | public void WriteTo(pb::CodedOutputStream output) { |
| 1330 | if (AggregatedPayloadSize != 0) { |
| 1331 | output.WriteRawTag(8); |
| 1332 | output.WriteInt32(AggregatedPayloadSize); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1333 | } |
| 1334 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1335 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1336 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1337 | public int CalculateSize() { |
| 1338 | int size = 0; |
| 1339 | if (AggregatedPayloadSize != 0) { |
| 1340 | size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregatedPayloadSize); |
| 1341 | } |
| 1342 | return size; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1343 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1344 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1345 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1346 | public void MergeFrom(StreamingInputCallResponse other) { |
| 1347 | if (other == null) { |
| 1348 | return; |
| 1349 | } |
| 1350 | if (other.AggregatedPayloadSize != 0) { |
| 1351 | AggregatedPayloadSize = other.AggregatedPayloadSize; |
| 1352 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1353 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1354 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1355 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1356 | public void MergeFrom(pb::CodedInputStream input) { |
| 1357 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1358 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1359 | switch(tag) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1360 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1361 | input.SkipLastField(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1362 | break; |
| 1363 | case 8: { |
| 1364 | AggregatedPayloadSize = input.ReadInt32(); |
| 1365 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1366 | } |
| 1367 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1368 | } |
| 1369 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1370 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1371 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1372 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1373 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1374 | /// Configuration for a particular response. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1375 | /// </summary> |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1376 | public sealed partial class ResponseParameters : pb::IMessage<ResponseParameters> { |
| 1377 | private static readonly pb::MessageParser<ResponseParameters> _parser = new pb::MessageParser<ResponseParameters>(() => new ResponseParameters()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1378 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1379 | public static pb::MessageParser<ResponseParameters> Parser { get { return _parser; } } |
| 1380 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1381 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1382 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1383 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[7]; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1384 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1385 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1386 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1387 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1388 | get { return Descriptor; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1389 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1390 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1391 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1392 | public ResponseParameters() { |
| 1393 | OnConstruction(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1394 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1395 | |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1396 | partial void OnConstruction(); |
| 1397 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1398 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1399 | public ResponseParameters(ResponseParameters other) : this() { |
| 1400 | size_ = other.size_; |
| 1401 | intervalUs_ = other.intervalUs_; |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1402 | Compressed = other.compressed_ != null ? other.Compressed.Clone() : null; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1403 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1404 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1405 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1406 | public ResponseParameters Clone() { |
| 1407 | return new ResponseParameters(this); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1408 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1409 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1410 | /// <summary>Field number for the "size" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1411 | public const int SizeFieldNumber = 1; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1412 | private int size_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1413 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1414 | /// Desired payload sizes in responses from the server. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1415 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1416 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1417 | public int Size { |
| 1418 | get { return size_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1419 | set { |
| 1420 | size_ = value; |
| 1421 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1422 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1423 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1424 | /// <summary>Field number for the "interval_us" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1425 | public const int IntervalUsFieldNumber = 2; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1426 | private int intervalUs_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1427 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1428 | /// Desired interval between consecutive responses in the response stream in |
| 1429 | /// microseconds. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1430 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1431 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1432 | public int IntervalUs { |
| 1433 | get { return intervalUs_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1434 | set { |
| 1435 | intervalUs_ = value; |
| 1436 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1437 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1438 | |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1439 | /// <summary>Field number for the "compressed" field.</summary> |
| 1440 | public const int CompressedFieldNumber = 3; |
| 1441 | private global::Grpc.Testing.BoolValue compressed_; |
| 1442 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1443 | /// 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1447 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1448 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1449 | public global::Grpc.Testing.BoolValue Compressed { |
| 1450 | get { return compressed_; } |
| 1451 | set { |
| 1452 | compressed_ = value; |
| 1453 | } |
| 1454 | } |
| 1455 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1456 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1457 | public override bool Equals(object other) { |
| 1458 | return Equals(other as ResponseParameters); |
| 1459 | } |
| 1460 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1461 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1462 | public bool Equals(ResponseParameters other) { |
| 1463 | if (ReferenceEquals(other, null)) { |
| 1464 | return false; |
| 1465 | } |
| 1466 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1467 | return true; |
| 1468 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1469 | if (Size != other.Size) return false; |
| 1470 | if (IntervalUs != other.IntervalUs) return false; |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1471 | if (!object.Equals(Compressed, other.Compressed)) return false; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1472 | return true; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1473 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1474 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1475 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1476 | public override int GetHashCode() { |
| 1477 | int hash = 1; |
| 1478 | if (Size != 0) hash ^= Size.GetHashCode(); |
| 1479 | if (IntervalUs != 0) hash ^= IntervalUs.GetHashCode(); |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1480 | if (compressed_ != null) hash ^= Compressed.GetHashCode(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1481 | return hash; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1482 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1483 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1484 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1485 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1486 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1487 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1488 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1489 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1490 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1498 | } |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1499 | if (compressed_ != null) { |
| 1500 | output.WriteRawTag(26); |
| 1501 | output.WriteMessage(Compressed); |
| 1502 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1503 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1504 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1505 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1506 | 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1514 | if (compressed_ != null) { |
| 1515 | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Compressed); |
| 1516 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1517 | return size; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1518 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1519 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1520 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1521 | 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 Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1531 | if (other.compressed_ != null) { |
| 1532 | if (compressed_ == null) { |
| 1533 | compressed_ = new global::Grpc.Testing.BoolValue(); |
| 1534 | } |
| 1535 | Compressed.MergeFrom(other.Compressed); |
| 1536 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1537 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1538 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1539 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1540 | public void MergeFrom(pb::CodedInputStream input) { |
| 1541 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1542 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1543 | switch(tag) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1544 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1545 | input.SkipLastField(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1546 | break; |
| 1547 | case 8: { |
| 1548 | Size = input.ReadInt32(); |
| 1549 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1550 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1551 | case 16: { |
| 1552 | IntervalUs = input.ReadInt32(); |
| 1553 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1554 | } |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1555 | case 26: { |
| 1556 | if (compressed_ == null) { |
| 1557 | compressed_ = new global::Grpc.Testing.BoolValue(); |
| 1558 | } |
| 1559 | input.ReadMessage(compressed_); |
| 1560 | break; |
| 1561 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1562 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1563 | } |
| 1564 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1565 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1566 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1567 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1568 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1569 | /// Server-streaming request. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1570 | /// </summary> |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1571 | public sealed partial class StreamingOutputCallRequest : pb::IMessage<StreamingOutputCallRequest> { |
| 1572 | private static readonly pb::MessageParser<StreamingOutputCallRequest> _parser = new pb::MessageParser<StreamingOutputCallRequest>(() => new StreamingOutputCallRequest()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1573 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1574 | public static pb::MessageParser<StreamingOutputCallRequest> Parser { get { return _parser; } } |
| 1575 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1576 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1577 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1578 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[8]; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1579 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1580 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1581 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1582 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1583 | get { return Descriptor; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1584 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1585 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1586 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1587 | public StreamingOutputCallRequest() { |
| 1588 | OnConstruction(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1589 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1590 | |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1591 | partial void OnConstruction(); |
| 1592 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1593 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1594 | public StreamingOutputCallRequest(StreamingOutputCallRequest other) : this() { |
| 1595 | responseType_ = other.responseType_; |
| 1596 | responseParameters_ = other.responseParameters_.Clone(); |
| 1597 | Payload = other.payload_ != null ? other.Payload.Clone() : null; |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 1598 | ResponseStatus = other.responseStatus_ != null ? other.ResponseStatus.Clone() : null; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1599 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1600 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1601 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1602 | public StreamingOutputCallRequest Clone() { |
| 1603 | return new StreamingOutputCallRequest(this); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1604 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1605 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1606 | /// <summary>Field number for the "response_type" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1607 | public const int ResponseTypeFieldNumber = 1; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 1608 | private global::Grpc.Testing.PayloadType responseType_ = 0; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1609 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1610 | /// 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 Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1615 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1616 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1617 | public global::Grpc.Testing.PayloadType ResponseType { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1618 | get { return responseType_; } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1619 | set { |
| 1620 | responseType_ = value; |
| 1621 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1622 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1623 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1624 | /// <summary>Field number for the "response_parameters" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1625 | public const int ResponseParametersFieldNumber = 2; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1626 | 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 Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1629 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1630 | /// Configuration for each expected response message. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1631 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1632 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1633 | public pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> ResponseParameters { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1634 | get { return responseParameters_; } |
| 1635 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1636 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1637 | /// <summary>Field number for the "payload" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1638 | public const int PayloadFieldNumber = 3; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1639 | private global::Grpc.Testing.Payload payload_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1640 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1641 | /// Optional input payload sent along with the request. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1642 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1643 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1644 | public global::Grpc.Testing.Payload Payload { |
| 1645 | get { return payload_; } |
| 1646 | set { |
| 1647 | payload_ = value; |
| 1648 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1649 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1650 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1651 | /// <summary>Field number for the "response_status" field.</summary> |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 1652 | public const int ResponseStatusFieldNumber = 7; |
| 1653 | private global::Grpc.Testing.EchoStatus responseStatus_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1654 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1655 | /// Whether server should return a given status |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1656 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1657 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 1658 | public global::Grpc.Testing.EchoStatus ResponseStatus { |
| 1659 | get { return responseStatus_; } |
| 1660 | set { |
| 1661 | responseStatus_ = value; |
| 1662 | } |
| 1663 | } |
| 1664 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1665 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1666 | public override bool Equals(object other) { |
| 1667 | return Equals(other as StreamingOutputCallRequest); |
| 1668 | } |
| 1669 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1670 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1671 | public bool Equals(StreamingOutputCallRequest other) { |
| 1672 | if (ReferenceEquals(other, null)) { |
| 1673 | return false; |
| 1674 | } |
| 1675 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1676 | return true; |
| 1677 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1678 | if (ResponseType != other.ResponseType) return false; |
| 1679 | if(!responseParameters_.Equals(other.responseParameters_)) return false; |
| 1680 | if (!object.Equals(Payload, other.Payload)) return false; |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 1681 | if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1682 | return true; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1683 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1684 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1685 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1686 | public override int GetHashCode() { |
| 1687 | int hash = 1; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 1688 | if (ResponseType != 0) hash ^= ResponseType.GetHashCode(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1689 | hash ^= responseParameters_.GetHashCode(); |
| 1690 | if (payload_ != null) hash ^= Payload.GetHashCode(); |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 1691 | if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1692 | return hash; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1693 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1694 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1695 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1696 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1697 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1698 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1699 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1700 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1701 | public void WriteTo(pb::CodedOutputStream output) { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 1702 | if (ResponseType != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1703 | 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 Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 1711 | if (responseStatus_ != null) { |
| 1712 | output.WriteRawTag(58); |
| 1713 | output.WriteMessage(ResponseStatus); |
| 1714 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1715 | } |
| 1716 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1717 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1718 | public int CalculateSize() { |
| 1719 | int size = 0; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 1720 | if (ResponseType != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1721 | 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 Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 1727 | if (responseStatus_ != null) { |
| 1728 | size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus); |
| 1729 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1730 | return size; |
| 1731 | } |
| 1732 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1733 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1734 | public void MergeFrom(StreamingOutputCallRequest other) { |
| 1735 | if (other == null) { |
| 1736 | return; |
| 1737 | } |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 1738 | if (other.ResponseType != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1739 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1745 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1746 | Payload.MergeFrom(other.Payload); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1747 | } |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 1748 | if (other.responseStatus_ != null) { |
| 1749 | if (responseStatus_ == null) { |
| 1750 | responseStatus_ = new global::Grpc.Testing.EchoStatus(); |
| 1751 | } |
| 1752 | ResponseStatus.MergeFrom(other.ResponseStatus); |
| 1753 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1754 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1755 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1756 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1757 | public void MergeFrom(pb::CodedInputStream input) { |
| 1758 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1759 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1760 | switch(tag) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1761 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1762 | input.SkipLastField(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1763 | break; |
| 1764 | case 8: { |
| 1765 | responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum(); |
| 1766 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1767 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1768 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1775 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1776 | input.ReadMessage(payload_); |
| 1777 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1778 | } |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 1779 | case 58: { |
| 1780 | if (responseStatus_ == null) { |
| 1781 | responseStatus_ = new global::Grpc.Testing.EchoStatus(); |
| 1782 | } |
| 1783 | input.ReadMessage(responseStatus_); |
| 1784 | break; |
| 1785 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1786 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1787 | } |
| 1788 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1789 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1790 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1791 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1792 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1793 | /// Server-streaming response, as configured by the request and parameters. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1794 | /// </summary> |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1795 | public sealed partial class StreamingOutputCallResponse : pb::IMessage<StreamingOutputCallResponse> { |
| 1796 | private static readonly pb::MessageParser<StreamingOutputCallResponse> _parser = new pb::MessageParser<StreamingOutputCallResponse>(() => new StreamingOutputCallResponse()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1797 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1798 | public static pb::MessageParser<StreamingOutputCallResponse> Parser { get { return _parser; } } |
| 1799 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1800 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1801 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1802 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[9]; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1803 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1804 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1805 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1806 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1807 | get { return Descriptor; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1808 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1809 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1810 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1811 | public StreamingOutputCallResponse() { |
| 1812 | OnConstruction(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1813 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1814 | |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1815 | partial void OnConstruction(); |
| 1816 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1817 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1818 | public StreamingOutputCallResponse(StreamingOutputCallResponse other) : this() { |
| 1819 | Payload = other.payload_ != null ? other.Payload.Clone() : null; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1820 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1821 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1822 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1823 | public StreamingOutputCallResponse Clone() { |
| 1824 | return new StreamingOutputCallResponse(this); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1825 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1826 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1827 | /// <summary>Field number for the "payload" field.</summary> |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1828 | public const int PayloadFieldNumber = 1; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1829 | private global::Grpc.Testing.Payload payload_; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1830 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1831 | /// Payload to increase response size. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1832 | /// </summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1833 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1834 | public global::Grpc.Testing.Payload Payload { |
| 1835 | get { return payload_; } |
| 1836 | set { |
| 1837 | payload_ = value; |
| 1838 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1839 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1840 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1841 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1842 | public override bool Equals(object other) { |
| 1843 | return Equals(other as StreamingOutputCallResponse); |
| 1844 | } |
| 1845 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1846 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1847 | public bool Equals(StreamingOutputCallResponse other) { |
| 1848 | if (ReferenceEquals(other, null)) { |
| 1849 | return false; |
| 1850 | } |
| 1851 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1852 | return true; |
| 1853 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1854 | if (!object.Equals(Payload, other.Payload)) return false; |
| 1855 | return true; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1856 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1857 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1858 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1859 | public override int GetHashCode() { |
| 1860 | int hash = 1; |
| 1861 | if (payload_ != null) hash ^= Payload.GetHashCode(); |
| 1862 | return hash; |
| 1863 | } |
| 1864 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1865 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1866 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1867 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1868 | } |
| 1869 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1870 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1871 | public void WriteTo(pb::CodedOutputStream output) { |
| 1872 | if (payload_ != null) { |
| 1873 | output.WriteRawTag(10); |
| 1874 | output.WriteMessage(Payload); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1875 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1876 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1877 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1878 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1879 | public int CalculateSize() { |
| 1880 | int size = 0; |
| 1881 | if (payload_ != null) { |
| 1882 | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); |
| 1883 | } |
| 1884 | return size; |
| 1885 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1886 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1887 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1888 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1895 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1896 | Payload.MergeFrom(other.Payload); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1897 | } |
| 1898 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1899 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1900 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1901 | public void MergeFrom(pb::CodedInputStream input) { |
| 1902 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1903 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1904 | switch(tag) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1905 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 1906 | input.SkipLastField(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1907 | break; |
| 1908 | case 10: { |
| 1909 | if (payload_ == null) { |
| 1910 | payload_ = new global::Grpc.Testing.Payload(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1911 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1912 | input.ReadMessage(payload_); |
| 1913 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1914 | } |
| 1915 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1916 | } |
| 1917 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1918 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 1919 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 1920 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 1921 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 1922 | /// For reconnect interop test only. |
| 1923 | /// Client tells server what reconnection parameters it used. |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1924 | /// </summary> |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1925 | public sealed partial class ReconnectParams : pb::IMessage<ReconnectParams> { |
| 1926 | private static readonly pb::MessageParser<ReconnectParams> _parser = new pb::MessageParser<ReconnectParams>(() => new ReconnectParams()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1927 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1928 | public static pb::MessageParser<ReconnectParams> Parser { get { return _parser; } } |
| 1929 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1930 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1931 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 1932 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[10]; } |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1933 | } |
| 1934 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1935 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1936 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1937 | get { return Descriptor; } |
| 1938 | } |
| 1939 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1940 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1941 | public ReconnectParams() { |
| 1942 | OnConstruction(); |
| 1943 | } |
| 1944 | |
| 1945 | partial void OnConstruction(); |
| 1946 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1947 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1948 | public ReconnectParams(ReconnectParams other) : this() { |
| 1949 | maxReconnectBackoffMs_ = other.maxReconnectBackoffMs_; |
| 1950 | } |
| 1951 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1952 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1953 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1960 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1961 | public int MaxReconnectBackoffMs { |
| 1962 | get { return maxReconnectBackoffMs_; } |
| 1963 | set { |
| 1964 | maxReconnectBackoffMs_ = value; |
| 1965 | } |
| 1966 | } |
| 1967 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1968 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1969 | public override bool Equals(object other) { |
| 1970 | return Equals(other as ReconnectParams); |
| 1971 | } |
| 1972 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1973 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1974 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1985 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1986 | public override int GetHashCode() { |
| 1987 | int hash = 1; |
| 1988 | if (MaxReconnectBackoffMs != 0) hash ^= MaxReconnectBackoffMs.GetHashCode(); |
| 1989 | return hash; |
| 1990 | } |
| 1991 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1992 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1993 | public override string ToString() { |
| 1994 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 1995 | } |
| 1996 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 1997 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 1998 | public void WriteTo(pb::CodedOutputStream output) { |
| 1999 | if (MaxReconnectBackoffMs != 0) { |
| 2000 | output.WriteRawTag(8); |
| 2001 | output.WriteInt32(MaxReconnectBackoffMs); |
| 2002 | } |
| 2003 | } |
| 2004 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2005 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 2006 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2014 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 2015 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2024 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
vjpai | 87bac95 | 2016-04-20 09:35:35 -0700 | [diff] [blame] | 2025 | 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 Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 2043 | /// For reconnect interop test only. |
| 2044 | /// Server tells client whether its reconnects are following the spec and the |
| 2045 | /// reconnect backoffs it saw. |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 2046 | /// </summary> |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2047 | public sealed partial class ReconnectInfo : pb::IMessage<ReconnectInfo> { |
| 2048 | private static readonly pb::MessageParser<ReconnectInfo> _parser = new pb::MessageParser<ReconnectInfo>(() => new ReconnectInfo()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2049 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2050 | public static pb::MessageParser<ReconnectInfo> Parser { get { return _parser; } } |
| 2051 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2052 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2053 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 67ceba5 | 2016-06-21 18:29:09 -0700 | [diff] [blame] | 2054 | get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[11]; } |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2055 | } |
| 2056 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2057 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2058 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 2059 | get { return Descriptor; } |
| 2060 | } |
| 2061 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2062 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2063 | public ReconnectInfo() { |
| 2064 | OnConstruction(); |
| 2065 | } |
| 2066 | |
| 2067 | partial void OnConstruction(); |
| 2068 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2069 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2070 | public ReconnectInfo(ReconnectInfo other) : this() { |
| 2071 | passed_ = other.passed_; |
| 2072 | backoffMs_ = other.backoffMs_.Clone(); |
| 2073 | } |
| 2074 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2075 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2076 | public ReconnectInfo Clone() { |
| 2077 | return new ReconnectInfo(this); |
| 2078 | } |
| 2079 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 2080 | /// <summary>Field number for the "passed" field.</summary> |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2081 | public const int PassedFieldNumber = 1; |
| 2082 | private bool passed_; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2083 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2084 | public bool Passed { |
| 2085 | get { return passed_; } |
| 2086 | set { |
| 2087 | passed_ = value; |
| 2088 | } |
| 2089 | } |
| 2090 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 2091 | /// <summary>Field number for the "backoff_ms" field.</summary> |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2092 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2096 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2097 | public pbc::RepeatedField<int> BackoffMs { |
| 2098 | get { return backoffMs_; } |
| 2099 | } |
| 2100 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2101 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2102 | public override bool Equals(object other) { |
| 2103 | return Equals(other as ReconnectInfo); |
| 2104 | } |
| 2105 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2106 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2107 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2119 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2120 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2127 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2128 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 2129 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2130 | } |
| 2131 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2132 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2133 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2141 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2142 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2151 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2152 | 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 Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 2162 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 70f8652 | 2015-10-07 18:23:51 -0700 | [diff] [blame] | 2163 | 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 Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 2185 | #endregion |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 2186 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 2187 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 2188 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 2189 | #endregion Designer generated code |