1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: src/proto/grpc/testing/messages.proto 4 // </auto-generated> 5 #pragma warning disable 1591, 0612, 3021 6 #region Designer generated code 7 8 using pb = global::Google.Protobuf; 9 using pbc = global::Google.Protobuf.Collections; 10 using pbr = global::Google.Protobuf.Reflection; 11 using scg = global::System.Collections.Generic; 12 namespace Grpc.Testing { 13 14 /// <summary>Holder for reflection information generated from src/proto/grpc/testing/messages.proto</summary> 15 public static partial class MessagesReflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for src/proto/grpc/testing/messages.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 MessagesReflection()24 static MessagesReflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "CiVzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL21lc3NhZ2VzLnByb3RvEgxncnBj", 28 "LnRlc3RpbmciGgoJQm9vbFZhbHVlEg0KBXZhbHVlGAEgASgIIkAKB1BheWxv", 29 "YWQSJwoEdHlwZRgBIAEoDjIZLmdycGMudGVzdGluZy5QYXlsb2FkVHlwZRIM", 30 "CgRib2R5GAIgASgMIisKCkVjaG9TdGF0dXMSDAoEY29kZRgBIAEoBRIPCgdt", 31 "ZXNzYWdlGAIgASgJIoYDCg1TaW1wbGVSZXF1ZXN0EjAKDXJlc3BvbnNlX3R5", 32 "cGUYASABKA4yGS5ncnBjLnRlc3RpbmcuUGF5bG9hZFR5cGUSFQoNcmVzcG9u", 33 "c2Vfc2l6ZRgCIAEoBRImCgdwYXlsb2FkGAMgASgLMhUuZ3JwYy50ZXN0aW5n", 34 "LlBheWxvYWQSFQoNZmlsbF91c2VybmFtZRgEIAEoCBIYChBmaWxsX29hdXRo", 35 "X3Njb3BlGAUgASgIEjQKE3Jlc3BvbnNlX2NvbXByZXNzZWQYBiABKAsyFy5n", 36 "cnBjLnRlc3RpbmcuQm9vbFZhbHVlEjEKD3Jlc3BvbnNlX3N0YXR1cxgHIAEo", 37 "CzIYLmdycGMudGVzdGluZy5FY2hvU3RhdHVzEjIKEWV4cGVjdF9jb21wcmVz", 38 "c2VkGAggASgLMhcuZ3JwYy50ZXN0aW5nLkJvb2xWYWx1ZRIWCg5maWxsX3Nl", 39 "cnZlcl9pZBgJIAEoCBIeChZmaWxsX2dycGNsYl9yb3V0ZV90eXBlGAogASgI", 40 "Ir4BCg5TaW1wbGVSZXNwb25zZRImCgdwYXlsb2FkGAEgASgLMhUuZ3JwYy50", 41 "ZXN0aW5nLlBheWxvYWQSEAoIdXNlcm5hbWUYAiABKAkSEwoLb2F1dGhfc2Nv", 42 "cGUYAyABKAkSEQoJc2VydmVyX2lkGAQgASgJEjgKEWdycGNsYl9yb3V0ZV90", 43 "eXBlGAUgASgOMh0uZ3JwYy50ZXN0aW5nLkdycGNsYlJvdXRlVHlwZRIQCgho", 44 "b3N0bmFtZRgGIAEoCSJ3ChlTdHJlYW1pbmdJbnB1dENhbGxSZXF1ZXN0EiYK", 45 "B3BheWxvYWQYASABKAsyFS5ncnBjLnRlc3RpbmcuUGF5bG9hZBIyChFleHBl", 46 "Y3RfY29tcHJlc3NlZBgCIAEoCzIXLmdycGMudGVzdGluZy5Cb29sVmFsdWUi", 47 "PQoaU3RyZWFtaW5nSW5wdXRDYWxsUmVzcG9uc2USHwoXYWdncmVnYXRlZF9w", 48 "YXlsb2FkX3NpemUYASABKAUiZAoSUmVzcG9uc2VQYXJhbWV0ZXJzEgwKBHNp", 49 "emUYASABKAUSEwoLaW50ZXJ2YWxfdXMYAiABKAUSKwoKY29tcHJlc3NlZBgD", 50 "IAEoCzIXLmdycGMudGVzdGluZy5Cb29sVmFsdWUi6AEKGlN0cmVhbWluZ091", 51 "dHB1dENhbGxSZXF1ZXN0EjAKDXJlc3BvbnNlX3R5cGUYASABKA4yGS5ncnBj", 52 "LnRlc3RpbmcuUGF5bG9hZFR5cGUSPQoTcmVzcG9uc2VfcGFyYW1ldGVycxgC", 53 "IAMoCzIgLmdycGMudGVzdGluZy5SZXNwb25zZVBhcmFtZXRlcnMSJgoHcGF5", 54 "bG9hZBgDIAEoCzIVLmdycGMudGVzdGluZy5QYXlsb2FkEjEKD3Jlc3BvbnNl", 55 "X3N0YXR1cxgHIAEoCzIYLmdycGMudGVzdGluZy5FY2hvU3RhdHVzIkUKG1N0", 56 "cmVhbWluZ091dHB1dENhbGxSZXNwb25zZRImCgdwYXlsb2FkGAEgASgLMhUu", 57 "Z3JwYy50ZXN0aW5nLlBheWxvYWQiMwoPUmVjb25uZWN0UGFyYW1zEiAKGG1h", 58 "eF9yZWNvbm5lY3RfYmFja29mZl9tcxgBIAEoBSIzCg1SZWNvbm5lY3RJbmZv", 59 "Eg4KBnBhc3NlZBgBIAEoCBISCgpiYWNrb2ZmX21zGAIgAygFIkEKGExvYWRC", 60 "YWxhbmNlclN0YXRzUmVxdWVzdBIQCghudW1fcnBjcxgBIAEoBRITCgt0aW1l", 61 "b3V0X3NlYxgCIAEoBSKLBAoZTG9hZEJhbGFuY2VyU3RhdHNSZXNwb25zZRJN", 62 "CgxycGNzX2J5X3BlZXIYASADKAsyNy5ncnBjLnRlc3RpbmcuTG9hZEJhbGFu", 63 "Y2VyU3RhdHNSZXNwb25zZS5ScGNzQnlQZWVyRW50cnkSFAoMbnVtX2ZhaWx1", 64 "cmVzGAIgASgFElEKDnJwY3NfYnlfbWV0aG9kGAMgAygLMjkuZ3JwYy50ZXN0", 65 "aW5nLkxvYWRCYWxhbmNlclN0YXRzUmVzcG9uc2UuUnBjc0J5TWV0aG9kRW50", 66 "cnkamQEKClJwY3NCeVBlZXISWAoMcnBjc19ieV9wZWVyGAEgAygLMkIuZ3Jw", 67 "Yy50ZXN0aW5nLkxvYWRCYWxhbmNlclN0YXRzUmVzcG9uc2UuUnBjc0J5UGVl", 68 "ci5ScGNzQnlQZWVyRW50cnkaMQoPUnBjc0J5UGVlckVudHJ5EgsKA2tleRgB", 69 "IAEoCRINCgV2YWx1ZRgCIAEoBToCOAEaMQoPUnBjc0J5UGVlckVudHJ5EgsK", 70 "A2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoBToCOAEaZwoRUnBjc0J5TWV0aG9k", 71 "RW50cnkSCwoDa2V5GAEgASgJEkEKBXZhbHVlGAIgASgLMjIuZ3JwYy50ZXN0", 72 "aW5nLkxvYWRCYWxhbmNlclN0YXRzUmVzcG9uc2UuUnBjc0J5UGVlcjoCOAEi", 73 "JQojTG9hZEJhbGFuY2VyQWNjdW11bGF0ZWRTdGF0c1JlcXVlc3QiwgQKJExv", 74 "YWRCYWxhbmNlckFjY3VtdWxhdGVkU3RhdHNSZXNwb25zZRJyChpudW1fcnBj", 75 "c19zdGFydGVkX2J5X21ldGhvZBgBIAMoCzJOLmdycGMudGVzdGluZy5Mb2Fk", 76 "QmFsYW5jZXJBY2N1bXVsYXRlZFN0YXRzUmVzcG9uc2UuTnVtUnBjc1N0YXJ0", 77 "ZWRCeU1ldGhvZEVudHJ5EnYKHG51bV9ycGNzX3N1Y2NlZWRlZF9ieV9tZXRo", 78 "b2QYAiADKAsyUC5ncnBjLnRlc3RpbmcuTG9hZEJhbGFuY2VyQWNjdW11bGF0", 79 "ZWRTdGF0c1Jlc3BvbnNlLk51bVJwY3NTdWNjZWVkZWRCeU1ldGhvZEVudHJ5", 80 "EnAKGW51bV9ycGNzX2ZhaWxlZF9ieV9tZXRob2QYAyADKAsyTS5ncnBjLnRl", 81 "c3RpbmcuTG9hZEJhbGFuY2VyQWNjdW11bGF0ZWRTdGF0c1Jlc3BvbnNlLk51", 82 "bVJwY3NGYWlsZWRCeU1ldGhvZEVudHJ5Gj0KG051bVJwY3NTdGFydGVkQnlN", 83 "ZXRob2RFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAU6AjgBGj8K", 84 "HU51bVJwY3NTdWNjZWVkZWRCeU1ldGhvZEVudHJ5EgsKA2tleRgBIAEoCRIN", 85 "CgV2YWx1ZRgCIAEoBToCOAEaPAoaTnVtUnBjc0ZhaWxlZEJ5TWV0aG9kRW50", 86 "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgFOgI4ASKlAgoWQ2xpZW50", 87 "Q29uZmlndXJlUmVxdWVzdBI7CgV0eXBlcxgBIAMoDjIsLmdycGMudGVzdGlu", 88 "Zy5DbGllbnRDb25maWd1cmVSZXF1ZXN0LlJwY1R5cGUSPwoIbWV0YWRhdGEY", 89 "AiADKAsyLS5ncnBjLnRlc3RpbmcuQ2xpZW50Q29uZmlndXJlUmVxdWVzdC5N", 90 "ZXRhZGF0YRpiCghNZXRhZGF0YRI6CgR0eXBlGAEgASgOMiwuZ3JwYy50ZXN0", 91 "aW5nLkNsaWVudENvbmZpZ3VyZVJlcXVlc3QuUnBjVHlwZRILCgNrZXkYAiAB", 92 "KAkSDQoFdmFsdWUYAyABKAkiKQoHUnBjVHlwZRIOCgpFTVBUWV9DQUxMEAAS", 93 "DgoKVU5BUllfQ0FMTBABIhkKF0NsaWVudENvbmZpZ3VyZVJlc3BvbnNlKh8K", 94 "C1BheWxvYWRUeXBlEhAKDENPTVBSRVNTQUJMRRAAKm8KD0dycGNsYlJvdXRl", 95 "VHlwZRIdChlHUlBDTEJfUk9VVEVfVFlQRV9VTktOT1dOEAASHgoaR1JQQ0xC", 96 "X1JPVVRFX1RZUEVfRkFMTEJBQ0sQARIdChlHUlBDTEJfUk9VVEVfVFlQRV9C", 97 "QUNLRU5EEAJiBnByb3RvMw==")); 98 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 99 new pbr::FileDescriptor[] { }, 100 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Grpc.Testing.PayloadType), typeof(global::Grpc.Testing.GrpclbRouteType), }, null, new pbr::GeneratedClrTypeInfo[] { 101 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.BoolValue), global::Grpc.Testing.BoolValue.Parser, new[]{ "Value" }, null, null, null, null), 102 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Payload), global::Grpc.Testing.Payload.Parser, new[]{ "Type", "Body" }, null, null, null, null), 103 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EchoStatus), global::Grpc.Testing.EchoStatus.Parser, new[]{ "Code", "Message" }, null, null, null, null), 104 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleRequest), global::Grpc.Testing.SimpleRequest.Parser, new[]{ "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompressed", "ResponseStatus", "ExpectCompressed", "FillServerId", "FillGrpclbRouteType" }, null, null, null, null), 105 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleResponse), global::Grpc.Testing.SimpleResponse.Parser, new[]{ "Payload", "Username", "OauthScope", "ServerId", "GrpclbRouteType", "Hostname" }, null, null, null, null), 106 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallRequest), global::Grpc.Testing.StreamingInputCallRequest.Parser, new[]{ "Payload", "ExpectCompressed" }, null, null, null, null), 107 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallResponse), global::Grpc.Testing.StreamingInputCallResponse.Parser, new[]{ "AggregatedPayloadSize" }, null, null, null, null), 108 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ResponseParameters), global::Grpc.Testing.ResponseParameters.Parser, new[]{ "Size", "IntervalUs", "Compressed" }, null, null, null, null), 109 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingOutputCallRequest), global::Grpc.Testing.StreamingOutputCallRequest.Parser, new[]{ "ResponseType", "ResponseParameters", "Payload", "ResponseStatus" }, null, null, null, null), 110 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingOutputCallResponse), global::Grpc.Testing.StreamingOutputCallResponse.Parser, new[]{ "Payload" }, null, null, null, null), 111 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ReconnectParams), global::Grpc.Testing.ReconnectParams.Parser, new[]{ "MaxReconnectBackoffMs" }, null, null, null, null), 112 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ReconnectInfo), global::Grpc.Testing.ReconnectInfo.Parser, new[]{ "Passed", "BackoffMs" }, null, null, null, null), 113 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.LoadBalancerStatsRequest), global::Grpc.Testing.LoadBalancerStatsRequest.Parser, new[]{ "NumRpcs", "TimeoutSec" }, null, null, null, null), 114 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.LoadBalancerStatsResponse), global::Grpc.Testing.LoadBalancerStatsResponse.Parser, new[]{ "RpcsByPeer", "NumFailures", "RpcsByMethod" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer), global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer.Parser, new[]{ "RpcsByPeer_" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), 115 null, null, }), 116 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.LoadBalancerAccumulatedStatsRequest), global::Grpc.Testing.LoadBalancerAccumulatedStatsRequest.Parser, null, null, null, null, null), 117 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.LoadBalancerAccumulatedStatsResponse), global::Grpc.Testing.LoadBalancerAccumulatedStatsResponse.Parser, new[]{ "NumRpcsStartedByMethod", "NumRpcsSucceededByMethod", "NumRpcsFailedByMethod" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), 118 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClientConfigureRequest), global::Grpc.Testing.ClientConfigureRequest.Parser, new[]{ "Types_", "Metadata" }, null, new[]{ typeof(global::Grpc.Testing.ClientConfigureRequest.Types.RpcType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClientConfigureRequest.Types.Metadata), global::Grpc.Testing.ClientConfigureRequest.Types.Metadata.Parser, new[]{ "Type", "Key", "Value" }, null, null, null, null)}), 119 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClientConfigureResponse), global::Grpc.Testing.ClientConfigureResponse.Parser, null, null, null, null, null) 120 })); 121 } 122 #endregion 123 124 } 125 #region Enums 126 /// <summary> 127 /// The type of payload that should be returned. 128 /// </summary> 129 public enum PayloadType { 130 /// <summary> 131 /// Compressable text format. 132 /// </summary> 133 [pbr::OriginalName("COMPRESSABLE")] Compressable = 0, 134 } 135 136 /// <summary> 137 /// The type of route that a client took to reach a server w.r.t. gRPCLB. 138 /// The server must fill in "fallback" if it detects that the RPC reached 139 /// the server via the "gRPCLB fallback" path, and "backend" if it detects 140 /// that the RPC reached the server via "gRPCLB backend" path (i.e. if it got 141 /// the address of this server from the gRPCLB server BalanceLoad RPC). Exactly 142 /// how this detection is done is context and server dependent. 143 /// </summary> 144 public enum GrpclbRouteType { 145 /// <summary> 146 /// Server didn't detect the route that a client took to reach it. 147 /// </summary> 148 [pbr::OriginalName("GRPCLB_ROUTE_TYPE_UNKNOWN")] Unknown = 0, 149 /// <summary> 150 /// Indicates that a client reached a server via gRPCLB fallback. 151 /// </summary> 152 [pbr::OriginalName("GRPCLB_ROUTE_TYPE_FALLBACK")] Fallback = 1, 153 /// <summary> 154 /// Indicates that a client reached a server as a gRPCLB-given backend. 155 /// </summary> 156 [pbr::OriginalName("GRPCLB_ROUTE_TYPE_BACKEND")] Backend = 2, 157 } 158 159 #endregion 160 161 #region Messages 162 /// <summary> 163 /// TODO(dgq): Go back to using well-known types once 164 /// https://github.com/grpc/grpc/issues/6980 has been fixed. 165 /// import "google/protobuf/wrappers.proto"; 166 /// </summary> 167 public sealed partial class BoolValue : pb::IMessage<BoolValue> 168 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 169 , pb::IBufferMessage 170 #endif 171 { 172 private static readonly pb::MessageParser<BoolValue> _parser = new pb::MessageParser<BoolValue>(() => new BoolValue()); 173 private pb::UnknownFieldSet _unknownFields; 174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 175 public static pb::MessageParser<BoolValue> Parser { get { return _parser; } } 176 177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 178 public static pbr::MessageDescriptor Descriptor { 179 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[0]; } 180 } 181 182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 183 pbr::MessageDescriptor pb::IMessage.Descriptor { 184 get { return Descriptor; } 185 } 186 187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] BoolValue()188 public BoolValue() { 189 OnConstruction(); 190 } 191 OnConstruction()192 partial void OnConstruction(); 193 194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] BoolValue(BoolValue other)195 public BoolValue(BoolValue other) : this() { 196 value_ = other.value_; 197 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 198 } 199 200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()201 public BoolValue Clone() { 202 return new BoolValue(this); 203 } 204 205 /// <summary>Field number for the "value" field.</summary> 206 public const int ValueFieldNumber = 1; 207 private bool value_; 208 /// <summary> 209 /// The bool value. 210 /// </summary> 211 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 212 public bool Value { 213 get { return value_; } 214 set { 215 value_ = value; 216 } 217 } 218 219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)220 public override bool Equals(object other) { 221 return Equals(other as BoolValue); 222 } 223 224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(BoolValue other)225 public bool Equals(BoolValue other) { 226 if (ReferenceEquals(other, null)) { 227 return false; 228 } 229 if (ReferenceEquals(other, this)) { 230 return true; 231 } 232 if (Value != other.Value) return false; 233 return Equals(_unknownFields, other._unknownFields); 234 } 235 236 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()237 public override int GetHashCode() { 238 int hash = 1; 239 if (Value != false) hash ^= Value.GetHashCode(); 240 if (_unknownFields != null) { 241 hash ^= _unknownFields.GetHashCode(); 242 } 243 return hash; 244 } 245 246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()247 public override string ToString() { 248 return pb::JsonFormatter.ToDiagnosticString(this); 249 } 250 251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)252 public void WriteTo(pb::CodedOutputStream output) { 253 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 254 output.WriteRawMessage(this); 255 #else 256 if (Value != false) { 257 output.WriteRawTag(8); 258 output.WriteBool(Value); 259 } 260 if (_unknownFields != null) { 261 _unknownFields.WriteTo(output); 262 } 263 #endif 264 } 265 266 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)268 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 269 if (Value != false) { 270 output.WriteRawTag(8); 271 output.WriteBool(Value); 272 } 273 if (_unknownFields != null) { 274 _unknownFields.WriteTo(ref output); 275 } 276 } 277 #endif 278 279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()280 public int CalculateSize() { 281 int size = 0; 282 if (Value != false) { 283 size += 1 + 1; 284 } 285 if (_unknownFields != null) { 286 size += _unknownFields.CalculateSize(); 287 } 288 return size; 289 } 290 291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(BoolValue other)292 public void MergeFrom(BoolValue other) { 293 if (other == null) { 294 return; 295 } 296 if (other.Value != false) { 297 Value = other.Value; 298 } 299 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 300 } 301 302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)303 public void MergeFrom(pb::CodedInputStream input) { 304 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 305 input.ReadRawMessage(this); 306 #else 307 uint tag; 308 while ((tag = input.ReadTag()) != 0) { 309 switch(tag) { 310 default: 311 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 312 break; 313 case 8: { 314 Value = input.ReadBool(); 315 break; 316 } 317 } 318 } 319 #endif 320 } 321 322 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)324 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 325 uint tag; 326 while ((tag = input.ReadTag()) != 0) { 327 switch(tag) { 328 default: 329 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 330 break; 331 case 8: { 332 Value = input.ReadBool(); 333 break; 334 } 335 } 336 } 337 } 338 #endif 339 340 } 341 342 /// <summary> 343 /// A block of data, to simply increase gRPC message size. 344 /// </summary> 345 public sealed partial class Payload : pb::IMessage<Payload> 346 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 347 , pb::IBufferMessage 348 #endif 349 { 350 private static readonly pb::MessageParser<Payload> _parser = new pb::MessageParser<Payload>(() => new Payload()); 351 private pb::UnknownFieldSet _unknownFields; 352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 353 public static pb::MessageParser<Payload> Parser { get { return _parser; } } 354 355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 356 public static pbr::MessageDescriptor Descriptor { 357 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[1]; } 358 } 359 360 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 361 pbr::MessageDescriptor pb::IMessage.Descriptor { 362 get { return Descriptor; } 363 } 364 365 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Payload()366 public Payload() { 367 OnConstruction(); 368 } 369 OnConstruction()370 partial void OnConstruction(); 371 372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Payload(Payload other)373 public Payload(Payload other) : this() { 374 type_ = other.type_; 375 body_ = other.body_; 376 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 377 } 378 379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()380 public Payload Clone() { 381 return new Payload(this); 382 } 383 384 /// <summary>Field number for the "type" field.</summary> 385 public const int TypeFieldNumber = 1; 386 private global::Grpc.Testing.PayloadType type_ = global::Grpc.Testing.PayloadType.Compressable; 387 /// <summary> 388 /// The type of data in body. 389 /// </summary> 390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 391 public global::Grpc.Testing.PayloadType Type { 392 get { return type_; } 393 set { 394 type_ = value; 395 } 396 } 397 398 /// <summary>Field number for the "body" field.</summary> 399 public const int BodyFieldNumber = 2; 400 private pb::ByteString body_ = pb::ByteString.Empty; 401 /// <summary> 402 /// Primary contents of payload. 403 /// </summary> 404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 405 public pb::ByteString Body { 406 get { return body_; } 407 set { 408 body_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 409 } 410 } 411 412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)413 public override bool Equals(object other) { 414 return Equals(other as Payload); 415 } 416 417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(Payload other)418 public bool Equals(Payload other) { 419 if (ReferenceEquals(other, null)) { 420 return false; 421 } 422 if (ReferenceEquals(other, this)) { 423 return true; 424 } 425 if (Type != other.Type) return false; 426 if (Body != other.Body) return false; 427 return Equals(_unknownFields, other._unknownFields); 428 } 429 430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()431 public override int GetHashCode() { 432 int hash = 1; 433 if (Type != global::Grpc.Testing.PayloadType.Compressable) hash ^= Type.GetHashCode(); 434 if (Body.Length != 0) hash ^= Body.GetHashCode(); 435 if (_unknownFields != null) { 436 hash ^= _unknownFields.GetHashCode(); 437 } 438 return hash; 439 } 440 441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()442 public override string ToString() { 443 return pb::JsonFormatter.ToDiagnosticString(this); 444 } 445 446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)447 public void WriteTo(pb::CodedOutputStream output) { 448 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 449 output.WriteRawMessage(this); 450 #else 451 if (Type != global::Grpc.Testing.PayloadType.Compressable) { 452 output.WriteRawTag(8); 453 output.WriteEnum((int) Type); 454 } 455 if (Body.Length != 0) { 456 output.WriteRawTag(18); 457 output.WriteBytes(Body); 458 } 459 if (_unknownFields != null) { 460 _unknownFields.WriteTo(output); 461 } 462 #endif 463 } 464 465 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 466 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)467 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 468 if (Type != global::Grpc.Testing.PayloadType.Compressable) { 469 output.WriteRawTag(8); 470 output.WriteEnum((int) Type); 471 } 472 if (Body.Length != 0) { 473 output.WriteRawTag(18); 474 output.WriteBytes(Body); 475 } 476 if (_unknownFields != null) { 477 _unknownFields.WriteTo(ref output); 478 } 479 } 480 #endif 481 482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()483 public int CalculateSize() { 484 int size = 0; 485 if (Type != global::Grpc.Testing.PayloadType.Compressable) { 486 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); 487 } 488 if (Body.Length != 0) { 489 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Body); 490 } 491 if (_unknownFields != null) { 492 size += _unknownFields.CalculateSize(); 493 } 494 return size; 495 } 496 497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(Payload other)498 public void MergeFrom(Payload other) { 499 if (other == null) { 500 return; 501 } 502 if (other.Type != global::Grpc.Testing.PayloadType.Compressable) { 503 Type = other.Type; 504 } 505 if (other.Body.Length != 0) { 506 Body = other.Body; 507 } 508 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 509 } 510 511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)512 public void MergeFrom(pb::CodedInputStream input) { 513 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 514 input.ReadRawMessage(this); 515 #else 516 uint tag; 517 while ((tag = input.ReadTag()) != 0) { 518 switch(tag) { 519 default: 520 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 521 break; 522 case 8: { 523 Type = (global::Grpc.Testing.PayloadType) input.ReadEnum(); 524 break; 525 } 526 case 18: { 527 Body = input.ReadBytes(); 528 break; 529 } 530 } 531 } 532 #endif 533 } 534 535 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)537 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 538 uint tag; 539 while ((tag = input.ReadTag()) != 0) { 540 switch(tag) { 541 default: 542 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 543 break; 544 case 8: { 545 Type = (global::Grpc.Testing.PayloadType) input.ReadEnum(); 546 break; 547 } 548 case 18: { 549 Body = input.ReadBytes(); 550 break; 551 } 552 } 553 } 554 } 555 #endif 556 557 } 558 559 /// <summary> 560 /// A protobuf representation for grpc status. This is used by test 561 /// clients to specify a status that the server should attempt to return. 562 /// </summary> 563 public sealed partial class EchoStatus : pb::IMessage<EchoStatus> 564 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 565 , pb::IBufferMessage 566 #endif 567 { 568 private static readonly pb::MessageParser<EchoStatus> _parser = new pb::MessageParser<EchoStatus>(() => new EchoStatus()); 569 private pb::UnknownFieldSet _unknownFields; 570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 571 public static pb::MessageParser<EchoStatus> Parser { get { return _parser; } } 572 573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 574 public static pbr::MessageDescriptor Descriptor { 575 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[2]; } 576 } 577 578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 579 pbr::MessageDescriptor pb::IMessage.Descriptor { 580 get { return Descriptor; } 581 } 582 583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EchoStatus()584 public EchoStatus() { 585 OnConstruction(); 586 } 587 OnConstruction()588 partial void OnConstruction(); 589 590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EchoStatus(EchoStatus other)591 public EchoStatus(EchoStatus other) : this() { 592 code_ = other.code_; 593 message_ = other.message_; 594 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 595 } 596 597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()598 public EchoStatus Clone() { 599 return new EchoStatus(this); 600 } 601 602 /// <summary>Field number for the "code" field.</summary> 603 public const int CodeFieldNumber = 1; 604 private int code_; 605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 606 public int Code { 607 get { return code_; } 608 set { 609 code_ = value; 610 } 611 } 612 613 /// <summary>Field number for the "message" field.</summary> 614 public const int MessageFieldNumber = 2; 615 private string message_ = ""; 616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 617 public string Message { 618 get { return message_; } 619 set { 620 message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 621 } 622 } 623 624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)625 public override bool Equals(object other) { 626 return Equals(other as EchoStatus); 627 } 628 629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(EchoStatus other)630 public bool Equals(EchoStatus other) { 631 if (ReferenceEquals(other, null)) { 632 return false; 633 } 634 if (ReferenceEquals(other, this)) { 635 return true; 636 } 637 if (Code != other.Code) return false; 638 if (Message != other.Message) return false; 639 return Equals(_unknownFields, other._unknownFields); 640 } 641 642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()643 public override int GetHashCode() { 644 int hash = 1; 645 if (Code != 0) hash ^= Code.GetHashCode(); 646 if (Message.Length != 0) hash ^= Message.GetHashCode(); 647 if (_unknownFields != null) { 648 hash ^= _unknownFields.GetHashCode(); 649 } 650 return hash; 651 } 652 653 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()654 public override string ToString() { 655 return pb::JsonFormatter.ToDiagnosticString(this); 656 } 657 658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)659 public void WriteTo(pb::CodedOutputStream output) { 660 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 661 output.WriteRawMessage(this); 662 #else 663 if (Code != 0) { 664 output.WriteRawTag(8); 665 output.WriteInt32(Code); 666 } 667 if (Message.Length != 0) { 668 output.WriteRawTag(18); 669 output.WriteString(Message); 670 } 671 if (_unknownFields != null) { 672 _unknownFields.WriteTo(output); 673 } 674 #endif 675 } 676 677 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)679 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 680 if (Code != 0) { 681 output.WriteRawTag(8); 682 output.WriteInt32(Code); 683 } 684 if (Message.Length != 0) { 685 output.WriteRawTag(18); 686 output.WriteString(Message); 687 } 688 if (_unknownFields != null) { 689 _unknownFields.WriteTo(ref output); 690 } 691 } 692 #endif 693 694 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()695 public int CalculateSize() { 696 int size = 0; 697 if (Code != 0) { 698 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code); 699 } 700 if (Message.Length != 0) { 701 size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); 702 } 703 if (_unknownFields != null) { 704 size += _unknownFields.CalculateSize(); 705 } 706 return size; 707 } 708 709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(EchoStatus other)710 public void MergeFrom(EchoStatus other) { 711 if (other == null) { 712 return; 713 } 714 if (other.Code != 0) { 715 Code = other.Code; 716 } 717 if (other.Message.Length != 0) { 718 Message = other.Message; 719 } 720 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 721 } 722 723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)724 public void MergeFrom(pb::CodedInputStream input) { 725 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 726 input.ReadRawMessage(this); 727 #else 728 uint tag; 729 while ((tag = input.ReadTag()) != 0) { 730 switch(tag) { 731 default: 732 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 733 break; 734 case 8: { 735 Code = input.ReadInt32(); 736 break; 737 } 738 case 18: { 739 Message = input.ReadString(); 740 break; 741 } 742 } 743 } 744 #endif 745 } 746 747 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)749 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 750 uint tag; 751 while ((tag = input.ReadTag()) != 0) { 752 switch(tag) { 753 default: 754 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 755 break; 756 case 8: { 757 Code = input.ReadInt32(); 758 break; 759 } 760 case 18: { 761 Message = input.ReadString(); 762 break; 763 } 764 } 765 } 766 } 767 #endif 768 769 } 770 771 /// <summary> 772 /// Unary request. 773 /// </summary> 774 public sealed partial class SimpleRequest : pb::IMessage<SimpleRequest> 775 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 776 , pb::IBufferMessage 777 #endif 778 { 779 private static readonly pb::MessageParser<SimpleRequest> _parser = new pb::MessageParser<SimpleRequest>(() => new SimpleRequest()); 780 private pb::UnknownFieldSet _unknownFields; 781 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 782 public static pb::MessageParser<SimpleRequest> Parser { get { return _parser; } } 783 784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 785 public static pbr::MessageDescriptor Descriptor { 786 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[3]; } 787 } 788 789 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 790 pbr::MessageDescriptor pb::IMessage.Descriptor { 791 get { return Descriptor; } 792 } 793 794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SimpleRequest()795 public SimpleRequest() { 796 OnConstruction(); 797 } 798 OnConstruction()799 partial void OnConstruction(); 800 801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SimpleRequest(SimpleRequest other)802 public SimpleRequest(SimpleRequest other) : this() { 803 responseType_ = other.responseType_; 804 responseSize_ = other.responseSize_; 805 payload_ = other.payload_ != null ? other.payload_.Clone() : null; 806 fillUsername_ = other.fillUsername_; 807 fillOauthScope_ = other.fillOauthScope_; 808 responseCompressed_ = other.responseCompressed_ != null ? other.responseCompressed_.Clone() : null; 809 responseStatus_ = other.responseStatus_ != null ? other.responseStatus_.Clone() : null; 810 expectCompressed_ = other.expectCompressed_ != null ? other.expectCompressed_.Clone() : null; 811 fillServerId_ = other.fillServerId_; 812 fillGrpclbRouteType_ = other.fillGrpclbRouteType_; 813 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 814 } 815 816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()817 public SimpleRequest Clone() { 818 return new SimpleRequest(this); 819 } 820 821 /// <summary>Field number for the "response_type" field.</summary> 822 public const int ResponseTypeFieldNumber = 1; 823 private global::Grpc.Testing.PayloadType responseType_ = global::Grpc.Testing.PayloadType.Compressable; 824 /// <summary> 825 /// Desired payload type in the response from the server. 826 /// If response_type is RANDOM, server randomly chooses one from other formats. 827 /// </summary> 828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 829 public global::Grpc.Testing.PayloadType ResponseType { 830 get { return responseType_; } 831 set { 832 responseType_ = value; 833 } 834 } 835 836 /// <summary>Field number for the "response_size" field.</summary> 837 public const int ResponseSizeFieldNumber = 2; 838 private int responseSize_; 839 /// <summary> 840 /// Desired payload size in the response from the server. 841 /// </summary> 842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 843 public int ResponseSize { 844 get { return responseSize_; } 845 set { 846 responseSize_ = value; 847 } 848 } 849 850 /// <summary>Field number for the "payload" field.</summary> 851 public const int PayloadFieldNumber = 3; 852 private global::Grpc.Testing.Payload payload_; 853 /// <summary> 854 /// Optional input payload sent along with the request. 855 /// </summary> 856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 857 public global::Grpc.Testing.Payload Payload { 858 get { return payload_; } 859 set { 860 payload_ = value; 861 } 862 } 863 864 /// <summary>Field number for the "fill_username" field.</summary> 865 public const int FillUsernameFieldNumber = 4; 866 private bool fillUsername_; 867 /// <summary> 868 /// Whether SimpleResponse should include username. 869 /// </summary> 870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 871 public bool FillUsername { 872 get { return fillUsername_; } 873 set { 874 fillUsername_ = value; 875 } 876 } 877 878 /// <summary>Field number for the "fill_oauth_scope" field.</summary> 879 public const int FillOauthScopeFieldNumber = 5; 880 private bool fillOauthScope_; 881 /// <summary> 882 /// Whether SimpleResponse should include OAuth scope. 883 /// </summary> 884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 885 public bool FillOauthScope { 886 get { return fillOauthScope_; } 887 set { 888 fillOauthScope_ = value; 889 } 890 } 891 892 /// <summary>Field number for the "response_compressed" field.</summary> 893 public const int ResponseCompressedFieldNumber = 6; 894 private global::Grpc.Testing.BoolValue responseCompressed_; 895 /// <summary> 896 /// Whether to request the server to compress the response. This field is 897 /// "nullable" in order to interoperate seamlessly with clients not able to 898 /// implement the full compression tests by introspecting the call to verify 899 /// the response's compression status. 900 /// </summary> 901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 902 public global::Grpc.Testing.BoolValue ResponseCompressed { 903 get { return responseCompressed_; } 904 set { 905 responseCompressed_ = value; 906 } 907 } 908 909 /// <summary>Field number for the "response_status" field.</summary> 910 public const int ResponseStatusFieldNumber = 7; 911 private global::Grpc.Testing.EchoStatus responseStatus_; 912 /// <summary> 913 /// Whether server should return a given status 914 /// </summary> 915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 916 public global::Grpc.Testing.EchoStatus ResponseStatus { 917 get { return responseStatus_; } 918 set { 919 responseStatus_ = value; 920 } 921 } 922 923 /// <summary>Field number for the "expect_compressed" field.</summary> 924 public const int ExpectCompressedFieldNumber = 8; 925 private global::Grpc.Testing.BoolValue expectCompressed_; 926 /// <summary> 927 /// Whether the server should expect this request to be compressed. 928 /// </summary> 929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 930 public global::Grpc.Testing.BoolValue ExpectCompressed { 931 get { return expectCompressed_; } 932 set { 933 expectCompressed_ = value; 934 } 935 } 936 937 /// <summary>Field number for the "fill_server_id" field.</summary> 938 public const int FillServerIdFieldNumber = 9; 939 private bool fillServerId_; 940 /// <summary> 941 /// Whether SimpleResponse should include server_id. 942 /// </summary> 943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 944 public bool FillServerId { 945 get { return fillServerId_; } 946 set { 947 fillServerId_ = value; 948 } 949 } 950 951 /// <summary>Field number for the "fill_grpclb_route_type" field.</summary> 952 public const int FillGrpclbRouteTypeFieldNumber = 10; 953 private bool fillGrpclbRouteType_; 954 /// <summary> 955 /// Whether SimpleResponse should include grpclb_route_type. 956 /// </summary> 957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 958 public bool FillGrpclbRouteType { 959 get { return fillGrpclbRouteType_; } 960 set { 961 fillGrpclbRouteType_ = value; 962 } 963 } 964 965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)966 public override bool Equals(object other) { 967 return Equals(other as SimpleRequest); 968 } 969 970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(SimpleRequest other)971 public bool Equals(SimpleRequest other) { 972 if (ReferenceEquals(other, null)) { 973 return false; 974 } 975 if (ReferenceEquals(other, this)) { 976 return true; 977 } 978 if (ResponseType != other.ResponseType) return false; 979 if (ResponseSize != other.ResponseSize) return false; 980 if (!object.Equals(Payload, other.Payload)) return false; 981 if (FillUsername != other.FillUsername) return false; 982 if (FillOauthScope != other.FillOauthScope) return false; 983 if (!object.Equals(ResponseCompressed, other.ResponseCompressed)) return false; 984 if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; 985 if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; 986 if (FillServerId != other.FillServerId) return false; 987 if (FillGrpclbRouteType != other.FillGrpclbRouteType) return false; 988 return Equals(_unknownFields, other._unknownFields); 989 } 990 991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()992 public override int GetHashCode() { 993 int hash = 1; 994 if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) hash ^= ResponseType.GetHashCode(); 995 if (ResponseSize != 0) hash ^= ResponseSize.GetHashCode(); 996 if (payload_ != null) hash ^= Payload.GetHashCode(); 997 if (FillUsername != false) hash ^= FillUsername.GetHashCode(); 998 if (FillOauthScope != false) hash ^= FillOauthScope.GetHashCode(); 999 if (responseCompressed_ != null) hash ^= ResponseCompressed.GetHashCode(); 1000 if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode(); 1001 if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode(); 1002 if (FillServerId != false) hash ^= FillServerId.GetHashCode(); 1003 if (FillGrpclbRouteType != false) hash ^= FillGrpclbRouteType.GetHashCode(); 1004 if (_unknownFields != null) { 1005 hash ^= _unknownFields.GetHashCode(); 1006 } 1007 return hash; 1008 } 1009 1010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1011 public override string ToString() { 1012 return pb::JsonFormatter.ToDiagnosticString(this); 1013 } 1014 1015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1016 public void WriteTo(pb::CodedOutputStream output) { 1017 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1018 output.WriteRawMessage(this); 1019 #else 1020 if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) { 1021 output.WriteRawTag(8); 1022 output.WriteEnum((int) ResponseType); 1023 } 1024 if (ResponseSize != 0) { 1025 output.WriteRawTag(16); 1026 output.WriteInt32(ResponseSize); 1027 } 1028 if (payload_ != null) { 1029 output.WriteRawTag(26); 1030 output.WriteMessage(Payload); 1031 } 1032 if (FillUsername != false) { 1033 output.WriteRawTag(32); 1034 output.WriteBool(FillUsername); 1035 } 1036 if (FillOauthScope != false) { 1037 output.WriteRawTag(40); 1038 output.WriteBool(FillOauthScope); 1039 } 1040 if (responseCompressed_ != null) { 1041 output.WriteRawTag(50); 1042 output.WriteMessage(ResponseCompressed); 1043 } 1044 if (responseStatus_ != null) { 1045 output.WriteRawTag(58); 1046 output.WriteMessage(ResponseStatus); 1047 } 1048 if (expectCompressed_ != null) { 1049 output.WriteRawTag(66); 1050 output.WriteMessage(ExpectCompressed); 1051 } 1052 if (FillServerId != false) { 1053 output.WriteRawTag(72); 1054 output.WriteBool(FillServerId); 1055 } 1056 if (FillGrpclbRouteType != false) { 1057 output.WriteRawTag(80); 1058 output.WriteBool(FillGrpclbRouteType); 1059 } 1060 if (_unknownFields != null) { 1061 _unknownFields.WriteTo(output); 1062 } 1063 #endif 1064 } 1065 1066 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1068 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1069 if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) { 1070 output.WriteRawTag(8); 1071 output.WriteEnum((int) ResponseType); 1072 } 1073 if (ResponseSize != 0) { 1074 output.WriteRawTag(16); 1075 output.WriteInt32(ResponseSize); 1076 } 1077 if (payload_ != null) { 1078 output.WriteRawTag(26); 1079 output.WriteMessage(Payload); 1080 } 1081 if (FillUsername != false) { 1082 output.WriteRawTag(32); 1083 output.WriteBool(FillUsername); 1084 } 1085 if (FillOauthScope != false) { 1086 output.WriteRawTag(40); 1087 output.WriteBool(FillOauthScope); 1088 } 1089 if (responseCompressed_ != null) { 1090 output.WriteRawTag(50); 1091 output.WriteMessage(ResponseCompressed); 1092 } 1093 if (responseStatus_ != null) { 1094 output.WriteRawTag(58); 1095 output.WriteMessage(ResponseStatus); 1096 } 1097 if (expectCompressed_ != null) { 1098 output.WriteRawTag(66); 1099 output.WriteMessage(ExpectCompressed); 1100 } 1101 if (FillServerId != false) { 1102 output.WriteRawTag(72); 1103 output.WriteBool(FillServerId); 1104 } 1105 if (FillGrpclbRouteType != false) { 1106 output.WriteRawTag(80); 1107 output.WriteBool(FillGrpclbRouteType); 1108 } 1109 if (_unknownFields != null) { 1110 _unknownFields.WriteTo(ref output); 1111 } 1112 } 1113 #endif 1114 1115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1116 public int CalculateSize() { 1117 int size = 0; 1118 if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) { 1119 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType); 1120 } 1121 if (ResponseSize != 0) { 1122 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseSize); 1123 } 1124 if (payload_ != null) { 1125 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); 1126 } 1127 if (FillUsername != false) { 1128 size += 1 + 1; 1129 } 1130 if (FillOauthScope != false) { 1131 size += 1 + 1; 1132 } 1133 if (responseCompressed_ != null) { 1134 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseCompressed); 1135 } 1136 if (responseStatus_ != null) { 1137 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus); 1138 } 1139 if (expectCompressed_ != null) { 1140 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed); 1141 } 1142 if (FillServerId != false) { 1143 size += 1 + 1; 1144 } 1145 if (FillGrpclbRouteType != false) { 1146 size += 1 + 1; 1147 } 1148 if (_unknownFields != null) { 1149 size += _unknownFields.CalculateSize(); 1150 } 1151 return size; 1152 } 1153 1154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(SimpleRequest other)1155 public void MergeFrom(SimpleRequest other) { 1156 if (other == null) { 1157 return; 1158 } 1159 if (other.ResponseType != global::Grpc.Testing.PayloadType.Compressable) { 1160 ResponseType = other.ResponseType; 1161 } 1162 if (other.ResponseSize != 0) { 1163 ResponseSize = other.ResponseSize; 1164 } 1165 if (other.payload_ != null) { 1166 if (payload_ == null) { 1167 Payload = new global::Grpc.Testing.Payload(); 1168 } 1169 Payload.MergeFrom(other.Payload); 1170 } 1171 if (other.FillUsername != false) { 1172 FillUsername = other.FillUsername; 1173 } 1174 if (other.FillOauthScope != false) { 1175 FillOauthScope = other.FillOauthScope; 1176 } 1177 if (other.responseCompressed_ != null) { 1178 if (responseCompressed_ == null) { 1179 ResponseCompressed = new global::Grpc.Testing.BoolValue(); 1180 } 1181 ResponseCompressed.MergeFrom(other.ResponseCompressed); 1182 } 1183 if (other.responseStatus_ != null) { 1184 if (responseStatus_ == null) { 1185 ResponseStatus = new global::Grpc.Testing.EchoStatus(); 1186 } 1187 ResponseStatus.MergeFrom(other.ResponseStatus); 1188 } 1189 if (other.expectCompressed_ != null) { 1190 if (expectCompressed_ == null) { 1191 ExpectCompressed = new global::Grpc.Testing.BoolValue(); 1192 } 1193 ExpectCompressed.MergeFrom(other.ExpectCompressed); 1194 } 1195 if (other.FillServerId != false) { 1196 FillServerId = other.FillServerId; 1197 } 1198 if (other.FillGrpclbRouteType != false) { 1199 FillGrpclbRouteType = other.FillGrpclbRouteType; 1200 } 1201 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1202 } 1203 1204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1205 public void MergeFrom(pb::CodedInputStream input) { 1206 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1207 input.ReadRawMessage(this); 1208 #else 1209 uint tag; 1210 while ((tag = input.ReadTag()) != 0) { 1211 switch(tag) { 1212 default: 1213 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1214 break; 1215 case 8: { 1216 ResponseType = (global::Grpc.Testing.PayloadType) input.ReadEnum(); 1217 break; 1218 } 1219 case 16: { 1220 ResponseSize = input.ReadInt32(); 1221 break; 1222 } 1223 case 26: { 1224 if (payload_ == null) { 1225 Payload = new global::Grpc.Testing.Payload(); 1226 } 1227 input.ReadMessage(Payload); 1228 break; 1229 } 1230 case 32: { 1231 FillUsername = input.ReadBool(); 1232 break; 1233 } 1234 case 40: { 1235 FillOauthScope = input.ReadBool(); 1236 break; 1237 } 1238 case 50: { 1239 if (responseCompressed_ == null) { 1240 ResponseCompressed = new global::Grpc.Testing.BoolValue(); 1241 } 1242 input.ReadMessage(ResponseCompressed); 1243 break; 1244 } 1245 case 58: { 1246 if (responseStatus_ == null) { 1247 ResponseStatus = new global::Grpc.Testing.EchoStatus(); 1248 } 1249 input.ReadMessage(ResponseStatus); 1250 break; 1251 } 1252 case 66: { 1253 if (expectCompressed_ == null) { 1254 ExpectCompressed = new global::Grpc.Testing.BoolValue(); 1255 } 1256 input.ReadMessage(ExpectCompressed); 1257 break; 1258 } 1259 case 72: { 1260 FillServerId = input.ReadBool(); 1261 break; 1262 } 1263 case 80: { 1264 FillGrpclbRouteType = input.ReadBool(); 1265 break; 1266 } 1267 } 1268 } 1269 #endif 1270 } 1271 1272 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1274 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1275 uint tag; 1276 while ((tag = input.ReadTag()) != 0) { 1277 switch(tag) { 1278 default: 1279 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1280 break; 1281 case 8: { 1282 ResponseType = (global::Grpc.Testing.PayloadType) input.ReadEnum(); 1283 break; 1284 } 1285 case 16: { 1286 ResponseSize = input.ReadInt32(); 1287 break; 1288 } 1289 case 26: { 1290 if (payload_ == null) { 1291 Payload = new global::Grpc.Testing.Payload(); 1292 } 1293 input.ReadMessage(Payload); 1294 break; 1295 } 1296 case 32: { 1297 FillUsername = input.ReadBool(); 1298 break; 1299 } 1300 case 40: { 1301 FillOauthScope = input.ReadBool(); 1302 break; 1303 } 1304 case 50: { 1305 if (responseCompressed_ == null) { 1306 ResponseCompressed = new global::Grpc.Testing.BoolValue(); 1307 } 1308 input.ReadMessage(ResponseCompressed); 1309 break; 1310 } 1311 case 58: { 1312 if (responseStatus_ == null) { 1313 ResponseStatus = new global::Grpc.Testing.EchoStatus(); 1314 } 1315 input.ReadMessage(ResponseStatus); 1316 break; 1317 } 1318 case 66: { 1319 if (expectCompressed_ == null) { 1320 ExpectCompressed = new global::Grpc.Testing.BoolValue(); 1321 } 1322 input.ReadMessage(ExpectCompressed); 1323 break; 1324 } 1325 case 72: { 1326 FillServerId = input.ReadBool(); 1327 break; 1328 } 1329 case 80: { 1330 FillGrpclbRouteType = input.ReadBool(); 1331 break; 1332 } 1333 } 1334 } 1335 } 1336 #endif 1337 1338 } 1339 1340 /// <summary> 1341 /// Unary response, as configured by the request. 1342 /// </summary> 1343 public sealed partial class SimpleResponse : pb::IMessage<SimpleResponse> 1344 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1345 , pb::IBufferMessage 1346 #endif 1347 { 1348 private static readonly pb::MessageParser<SimpleResponse> _parser = new pb::MessageParser<SimpleResponse>(() => new SimpleResponse()); 1349 private pb::UnknownFieldSet _unknownFields; 1350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1351 public static pb::MessageParser<SimpleResponse> Parser { get { return _parser; } } 1352 1353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1354 public static pbr::MessageDescriptor Descriptor { 1355 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[4]; } 1356 } 1357 1358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1359 pbr::MessageDescriptor pb::IMessage.Descriptor { 1360 get { return Descriptor; } 1361 } 1362 1363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SimpleResponse()1364 public SimpleResponse() { 1365 OnConstruction(); 1366 } 1367 OnConstruction()1368 partial void OnConstruction(); 1369 1370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SimpleResponse(SimpleResponse other)1371 public SimpleResponse(SimpleResponse other) : this() { 1372 payload_ = other.payload_ != null ? other.payload_.Clone() : null; 1373 username_ = other.username_; 1374 oauthScope_ = other.oauthScope_; 1375 serverId_ = other.serverId_; 1376 grpclbRouteType_ = other.grpclbRouteType_; 1377 hostname_ = other.hostname_; 1378 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1379 } 1380 1381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1382 public SimpleResponse Clone() { 1383 return new SimpleResponse(this); 1384 } 1385 1386 /// <summary>Field number for the "payload" field.</summary> 1387 public const int PayloadFieldNumber = 1; 1388 private global::Grpc.Testing.Payload payload_; 1389 /// <summary> 1390 /// Payload to increase message size. 1391 /// </summary> 1392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1393 public global::Grpc.Testing.Payload Payload { 1394 get { return payload_; } 1395 set { 1396 payload_ = value; 1397 } 1398 } 1399 1400 /// <summary>Field number for the "username" field.</summary> 1401 public const int UsernameFieldNumber = 2; 1402 private string username_ = ""; 1403 /// <summary> 1404 /// The user the request came from, for verifying authentication was 1405 /// successful when the client expected it. 1406 /// </summary> 1407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1408 public string Username { 1409 get { return username_; } 1410 set { 1411 username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1412 } 1413 } 1414 1415 /// <summary>Field number for the "oauth_scope" field.</summary> 1416 public const int OauthScopeFieldNumber = 3; 1417 private string oauthScope_ = ""; 1418 /// <summary> 1419 /// OAuth scope. 1420 /// </summary> 1421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1422 public string OauthScope { 1423 get { return oauthScope_; } 1424 set { 1425 oauthScope_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1426 } 1427 } 1428 1429 /// <summary>Field number for the "server_id" field.</summary> 1430 public const int ServerIdFieldNumber = 4; 1431 private string serverId_ = ""; 1432 /// <summary> 1433 /// Server ID. This must be unique among different server instances, 1434 /// but the same across all RPC's made to a particular server instance. 1435 /// </summary> 1436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1437 public string ServerId { 1438 get { return serverId_; } 1439 set { 1440 serverId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1441 } 1442 } 1443 1444 /// <summary>Field number for the "grpclb_route_type" field.</summary> 1445 public const int GrpclbRouteTypeFieldNumber = 5; 1446 private global::Grpc.Testing.GrpclbRouteType grpclbRouteType_ = global::Grpc.Testing.GrpclbRouteType.Unknown; 1447 /// <summary> 1448 /// gRPCLB Path. 1449 /// </summary> 1450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1451 public global::Grpc.Testing.GrpclbRouteType GrpclbRouteType { 1452 get { return grpclbRouteType_; } 1453 set { 1454 grpclbRouteType_ = value; 1455 } 1456 } 1457 1458 /// <summary>Field number for the "hostname" field.</summary> 1459 public const int HostnameFieldNumber = 6; 1460 private string hostname_ = ""; 1461 /// <summary> 1462 /// Server hostname. 1463 /// </summary> 1464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1465 public string Hostname { 1466 get { return hostname_; } 1467 set { 1468 hostname_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1469 } 1470 } 1471 1472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1473 public override bool Equals(object other) { 1474 return Equals(other as SimpleResponse); 1475 } 1476 1477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(SimpleResponse other)1478 public bool Equals(SimpleResponse other) { 1479 if (ReferenceEquals(other, null)) { 1480 return false; 1481 } 1482 if (ReferenceEquals(other, this)) { 1483 return true; 1484 } 1485 if (!object.Equals(Payload, other.Payload)) return false; 1486 if (Username != other.Username) return false; 1487 if (OauthScope != other.OauthScope) return false; 1488 if (ServerId != other.ServerId) return false; 1489 if (GrpclbRouteType != other.GrpclbRouteType) return false; 1490 if (Hostname != other.Hostname) return false; 1491 return Equals(_unknownFields, other._unknownFields); 1492 } 1493 1494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1495 public override int GetHashCode() { 1496 int hash = 1; 1497 if (payload_ != null) hash ^= Payload.GetHashCode(); 1498 if (Username.Length != 0) hash ^= Username.GetHashCode(); 1499 if (OauthScope.Length != 0) hash ^= OauthScope.GetHashCode(); 1500 if (ServerId.Length != 0) hash ^= ServerId.GetHashCode(); 1501 if (GrpclbRouteType != global::Grpc.Testing.GrpclbRouteType.Unknown) hash ^= GrpclbRouteType.GetHashCode(); 1502 if (Hostname.Length != 0) hash ^= Hostname.GetHashCode(); 1503 if (_unknownFields != null) { 1504 hash ^= _unknownFields.GetHashCode(); 1505 } 1506 return hash; 1507 } 1508 1509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1510 public override string ToString() { 1511 return pb::JsonFormatter.ToDiagnosticString(this); 1512 } 1513 1514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1515 public void WriteTo(pb::CodedOutputStream output) { 1516 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1517 output.WriteRawMessage(this); 1518 #else 1519 if (payload_ != null) { 1520 output.WriteRawTag(10); 1521 output.WriteMessage(Payload); 1522 } 1523 if (Username.Length != 0) { 1524 output.WriteRawTag(18); 1525 output.WriteString(Username); 1526 } 1527 if (OauthScope.Length != 0) { 1528 output.WriteRawTag(26); 1529 output.WriteString(OauthScope); 1530 } 1531 if (ServerId.Length != 0) { 1532 output.WriteRawTag(34); 1533 output.WriteString(ServerId); 1534 } 1535 if (GrpclbRouteType != global::Grpc.Testing.GrpclbRouteType.Unknown) { 1536 output.WriteRawTag(40); 1537 output.WriteEnum((int) GrpclbRouteType); 1538 } 1539 if (Hostname.Length != 0) { 1540 output.WriteRawTag(50); 1541 output.WriteString(Hostname); 1542 } 1543 if (_unknownFields != null) { 1544 _unknownFields.WriteTo(output); 1545 } 1546 #endif 1547 } 1548 1549 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1551 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1552 if (payload_ != null) { 1553 output.WriteRawTag(10); 1554 output.WriteMessage(Payload); 1555 } 1556 if (Username.Length != 0) { 1557 output.WriteRawTag(18); 1558 output.WriteString(Username); 1559 } 1560 if (OauthScope.Length != 0) { 1561 output.WriteRawTag(26); 1562 output.WriteString(OauthScope); 1563 } 1564 if (ServerId.Length != 0) { 1565 output.WriteRawTag(34); 1566 output.WriteString(ServerId); 1567 } 1568 if (GrpclbRouteType != global::Grpc.Testing.GrpclbRouteType.Unknown) { 1569 output.WriteRawTag(40); 1570 output.WriteEnum((int) GrpclbRouteType); 1571 } 1572 if (Hostname.Length != 0) { 1573 output.WriteRawTag(50); 1574 output.WriteString(Hostname); 1575 } 1576 if (_unknownFields != null) { 1577 _unknownFields.WriteTo(ref output); 1578 } 1579 } 1580 #endif 1581 1582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1583 public int CalculateSize() { 1584 int size = 0; 1585 if (payload_ != null) { 1586 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); 1587 } 1588 if (Username.Length != 0) { 1589 size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); 1590 } 1591 if (OauthScope.Length != 0) { 1592 size += 1 + pb::CodedOutputStream.ComputeStringSize(OauthScope); 1593 } 1594 if (ServerId.Length != 0) { 1595 size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerId); 1596 } 1597 if (GrpclbRouteType != global::Grpc.Testing.GrpclbRouteType.Unknown) { 1598 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GrpclbRouteType); 1599 } 1600 if (Hostname.Length != 0) { 1601 size += 1 + pb::CodedOutputStream.ComputeStringSize(Hostname); 1602 } 1603 if (_unknownFields != null) { 1604 size += _unknownFields.CalculateSize(); 1605 } 1606 return size; 1607 } 1608 1609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(SimpleResponse other)1610 public void MergeFrom(SimpleResponse other) { 1611 if (other == null) { 1612 return; 1613 } 1614 if (other.payload_ != null) { 1615 if (payload_ == null) { 1616 Payload = new global::Grpc.Testing.Payload(); 1617 } 1618 Payload.MergeFrom(other.Payload); 1619 } 1620 if (other.Username.Length != 0) { 1621 Username = other.Username; 1622 } 1623 if (other.OauthScope.Length != 0) { 1624 OauthScope = other.OauthScope; 1625 } 1626 if (other.ServerId.Length != 0) { 1627 ServerId = other.ServerId; 1628 } 1629 if (other.GrpclbRouteType != global::Grpc.Testing.GrpclbRouteType.Unknown) { 1630 GrpclbRouteType = other.GrpclbRouteType; 1631 } 1632 if (other.Hostname.Length != 0) { 1633 Hostname = other.Hostname; 1634 } 1635 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1636 } 1637 1638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1639 public void MergeFrom(pb::CodedInputStream input) { 1640 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1641 input.ReadRawMessage(this); 1642 #else 1643 uint tag; 1644 while ((tag = input.ReadTag()) != 0) { 1645 switch(tag) { 1646 default: 1647 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1648 break; 1649 case 10: { 1650 if (payload_ == null) { 1651 Payload = new global::Grpc.Testing.Payload(); 1652 } 1653 input.ReadMessage(Payload); 1654 break; 1655 } 1656 case 18: { 1657 Username = input.ReadString(); 1658 break; 1659 } 1660 case 26: { 1661 OauthScope = input.ReadString(); 1662 break; 1663 } 1664 case 34: { 1665 ServerId = input.ReadString(); 1666 break; 1667 } 1668 case 40: { 1669 GrpclbRouteType = (global::Grpc.Testing.GrpclbRouteType) input.ReadEnum(); 1670 break; 1671 } 1672 case 50: { 1673 Hostname = input.ReadString(); 1674 break; 1675 } 1676 } 1677 } 1678 #endif 1679 } 1680 1681 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1683 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1684 uint tag; 1685 while ((tag = input.ReadTag()) != 0) { 1686 switch(tag) { 1687 default: 1688 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1689 break; 1690 case 10: { 1691 if (payload_ == null) { 1692 Payload = new global::Grpc.Testing.Payload(); 1693 } 1694 input.ReadMessage(Payload); 1695 break; 1696 } 1697 case 18: { 1698 Username = input.ReadString(); 1699 break; 1700 } 1701 case 26: { 1702 OauthScope = input.ReadString(); 1703 break; 1704 } 1705 case 34: { 1706 ServerId = input.ReadString(); 1707 break; 1708 } 1709 case 40: { 1710 GrpclbRouteType = (global::Grpc.Testing.GrpclbRouteType) input.ReadEnum(); 1711 break; 1712 } 1713 case 50: { 1714 Hostname = input.ReadString(); 1715 break; 1716 } 1717 } 1718 } 1719 } 1720 #endif 1721 1722 } 1723 1724 /// <summary> 1725 /// Client-streaming request. 1726 /// </summary> 1727 public sealed partial class StreamingInputCallRequest : pb::IMessage<StreamingInputCallRequest> 1728 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1729 , pb::IBufferMessage 1730 #endif 1731 { 1732 private static readonly pb::MessageParser<StreamingInputCallRequest> _parser = new pb::MessageParser<StreamingInputCallRequest>(() => new StreamingInputCallRequest()); 1733 private pb::UnknownFieldSet _unknownFields; 1734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1735 public static pb::MessageParser<StreamingInputCallRequest> Parser { get { return _parser; } } 1736 1737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1738 public static pbr::MessageDescriptor Descriptor { 1739 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[5]; } 1740 } 1741 1742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1743 pbr::MessageDescriptor pb::IMessage.Descriptor { 1744 get { return Descriptor; } 1745 } 1746 1747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] StreamingInputCallRequest()1748 public StreamingInputCallRequest() { 1749 OnConstruction(); 1750 } 1751 OnConstruction()1752 partial void OnConstruction(); 1753 1754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] StreamingInputCallRequest(StreamingInputCallRequest other)1755 public StreamingInputCallRequest(StreamingInputCallRequest other) : this() { 1756 payload_ = other.payload_ != null ? other.payload_.Clone() : null; 1757 expectCompressed_ = other.expectCompressed_ != null ? other.expectCompressed_.Clone() : null; 1758 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1759 } 1760 1761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1762 public StreamingInputCallRequest Clone() { 1763 return new StreamingInputCallRequest(this); 1764 } 1765 1766 /// <summary>Field number for the "payload" field.</summary> 1767 public const int PayloadFieldNumber = 1; 1768 private global::Grpc.Testing.Payload payload_; 1769 /// <summary> 1770 /// Optional input payload sent along with the request. 1771 /// </summary> 1772 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1773 public global::Grpc.Testing.Payload Payload { 1774 get { return payload_; } 1775 set { 1776 payload_ = value; 1777 } 1778 } 1779 1780 /// <summary>Field number for the "expect_compressed" field.</summary> 1781 public const int ExpectCompressedFieldNumber = 2; 1782 private global::Grpc.Testing.BoolValue expectCompressed_; 1783 /// <summary> 1784 /// Whether the server should expect this request to be compressed. This field 1785 /// is "nullable" in order to interoperate seamlessly with servers not able to 1786 /// implement the full compression tests by introspecting the call to verify 1787 /// the request's compression status. 1788 /// </summary> 1789 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1790 public global::Grpc.Testing.BoolValue ExpectCompressed { 1791 get { return expectCompressed_; } 1792 set { 1793 expectCompressed_ = value; 1794 } 1795 } 1796 1797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1798 public override bool Equals(object other) { 1799 return Equals(other as StreamingInputCallRequest); 1800 } 1801 1802 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(StreamingInputCallRequest other)1803 public bool Equals(StreamingInputCallRequest other) { 1804 if (ReferenceEquals(other, null)) { 1805 return false; 1806 } 1807 if (ReferenceEquals(other, this)) { 1808 return true; 1809 } 1810 if (!object.Equals(Payload, other.Payload)) return false; 1811 if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false; 1812 return Equals(_unknownFields, other._unknownFields); 1813 } 1814 1815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1816 public override int GetHashCode() { 1817 int hash = 1; 1818 if (payload_ != null) hash ^= Payload.GetHashCode(); 1819 if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode(); 1820 if (_unknownFields != null) { 1821 hash ^= _unknownFields.GetHashCode(); 1822 } 1823 return hash; 1824 } 1825 1826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1827 public override string ToString() { 1828 return pb::JsonFormatter.ToDiagnosticString(this); 1829 } 1830 1831 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1832 public void WriteTo(pb::CodedOutputStream output) { 1833 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1834 output.WriteRawMessage(this); 1835 #else 1836 if (payload_ != null) { 1837 output.WriteRawTag(10); 1838 output.WriteMessage(Payload); 1839 } 1840 if (expectCompressed_ != null) { 1841 output.WriteRawTag(18); 1842 output.WriteMessage(ExpectCompressed); 1843 } 1844 if (_unknownFields != null) { 1845 _unknownFields.WriteTo(output); 1846 } 1847 #endif 1848 } 1849 1850 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1852 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1853 if (payload_ != null) { 1854 output.WriteRawTag(10); 1855 output.WriteMessage(Payload); 1856 } 1857 if (expectCompressed_ != null) { 1858 output.WriteRawTag(18); 1859 output.WriteMessage(ExpectCompressed); 1860 } 1861 if (_unknownFields != null) { 1862 _unknownFields.WriteTo(ref output); 1863 } 1864 } 1865 #endif 1866 1867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1868 public int CalculateSize() { 1869 int size = 0; 1870 if (payload_ != null) { 1871 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); 1872 } 1873 if (expectCompressed_ != null) { 1874 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed); 1875 } 1876 if (_unknownFields != null) { 1877 size += _unknownFields.CalculateSize(); 1878 } 1879 return size; 1880 } 1881 1882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(StreamingInputCallRequest other)1883 public void MergeFrom(StreamingInputCallRequest other) { 1884 if (other == null) { 1885 return; 1886 } 1887 if (other.payload_ != null) { 1888 if (payload_ == null) { 1889 Payload = new global::Grpc.Testing.Payload(); 1890 } 1891 Payload.MergeFrom(other.Payload); 1892 } 1893 if (other.expectCompressed_ != null) { 1894 if (expectCompressed_ == null) { 1895 ExpectCompressed = new global::Grpc.Testing.BoolValue(); 1896 } 1897 ExpectCompressed.MergeFrom(other.ExpectCompressed); 1898 } 1899 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1900 } 1901 1902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1903 public void MergeFrom(pb::CodedInputStream input) { 1904 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1905 input.ReadRawMessage(this); 1906 #else 1907 uint tag; 1908 while ((tag = input.ReadTag()) != 0) { 1909 switch(tag) { 1910 default: 1911 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1912 break; 1913 case 10: { 1914 if (payload_ == null) { 1915 Payload = new global::Grpc.Testing.Payload(); 1916 } 1917 input.ReadMessage(Payload); 1918 break; 1919 } 1920 case 18: { 1921 if (expectCompressed_ == null) { 1922 ExpectCompressed = new global::Grpc.Testing.BoolValue(); 1923 } 1924 input.ReadMessage(ExpectCompressed); 1925 break; 1926 } 1927 } 1928 } 1929 #endif 1930 } 1931 1932 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1933 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1934 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1935 uint tag; 1936 while ((tag = input.ReadTag()) != 0) { 1937 switch(tag) { 1938 default: 1939 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1940 break; 1941 case 10: { 1942 if (payload_ == null) { 1943 Payload = new global::Grpc.Testing.Payload(); 1944 } 1945 input.ReadMessage(Payload); 1946 break; 1947 } 1948 case 18: { 1949 if (expectCompressed_ == null) { 1950 ExpectCompressed = new global::Grpc.Testing.BoolValue(); 1951 } 1952 input.ReadMessage(ExpectCompressed); 1953 break; 1954 } 1955 } 1956 } 1957 } 1958 #endif 1959 1960 } 1961 1962 /// <summary> 1963 /// Client-streaming response. 1964 /// </summary> 1965 public sealed partial class StreamingInputCallResponse : pb::IMessage<StreamingInputCallResponse> 1966 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1967 , pb::IBufferMessage 1968 #endif 1969 { 1970 private static readonly pb::MessageParser<StreamingInputCallResponse> _parser = new pb::MessageParser<StreamingInputCallResponse>(() => new StreamingInputCallResponse()); 1971 private pb::UnknownFieldSet _unknownFields; 1972 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1973 public static pb::MessageParser<StreamingInputCallResponse> Parser { get { return _parser; } } 1974 1975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1976 public static pbr::MessageDescriptor Descriptor { 1977 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[6]; } 1978 } 1979 1980 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1981 pbr::MessageDescriptor pb::IMessage.Descriptor { 1982 get { return Descriptor; } 1983 } 1984 1985 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] StreamingInputCallResponse()1986 public StreamingInputCallResponse() { 1987 OnConstruction(); 1988 } 1989 OnConstruction()1990 partial void OnConstruction(); 1991 1992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] StreamingInputCallResponse(StreamingInputCallResponse other)1993 public StreamingInputCallResponse(StreamingInputCallResponse other) : this() { 1994 aggregatedPayloadSize_ = other.aggregatedPayloadSize_; 1995 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1996 } 1997 1998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1999 public StreamingInputCallResponse Clone() { 2000 return new StreamingInputCallResponse(this); 2001 } 2002 2003 /// <summary>Field number for the "aggregated_payload_size" field.</summary> 2004 public const int AggregatedPayloadSizeFieldNumber = 1; 2005 private int aggregatedPayloadSize_; 2006 /// <summary> 2007 /// Aggregated size of payloads received from the client. 2008 /// </summary> 2009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2010 public int AggregatedPayloadSize { 2011 get { return aggregatedPayloadSize_; } 2012 set { 2013 aggregatedPayloadSize_ = value; 2014 } 2015 } 2016 2017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2018 public override bool Equals(object other) { 2019 return Equals(other as StreamingInputCallResponse); 2020 } 2021 2022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(StreamingInputCallResponse other)2023 public bool Equals(StreamingInputCallResponse other) { 2024 if (ReferenceEquals(other, null)) { 2025 return false; 2026 } 2027 if (ReferenceEquals(other, this)) { 2028 return true; 2029 } 2030 if (AggregatedPayloadSize != other.AggregatedPayloadSize) return false; 2031 return Equals(_unknownFields, other._unknownFields); 2032 } 2033 2034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2035 public override int GetHashCode() { 2036 int hash = 1; 2037 if (AggregatedPayloadSize != 0) hash ^= AggregatedPayloadSize.GetHashCode(); 2038 if (_unknownFields != null) { 2039 hash ^= _unknownFields.GetHashCode(); 2040 } 2041 return hash; 2042 } 2043 2044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2045 public override string ToString() { 2046 return pb::JsonFormatter.ToDiagnosticString(this); 2047 } 2048 2049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2050 public void WriteTo(pb::CodedOutputStream output) { 2051 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2052 output.WriteRawMessage(this); 2053 #else 2054 if (AggregatedPayloadSize != 0) { 2055 output.WriteRawTag(8); 2056 output.WriteInt32(AggregatedPayloadSize); 2057 } 2058 if (_unknownFields != null) { 2059 _unknownFields.WriteTo(output); 2060 } 2061 #endif 2062 } 2063 2064 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2066 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2067 if (AggregatedPayloadSize != 0) { 2068 output.WriteRawTag(8); 2069 output.WriteInt32(AggregatedPayloadSize); 2070 } 2071 if (_unknownFields != null) { 2072 _unknownFields.WriteTo(ref output); 2073 } 2074 } 2075 #endif 2076 2077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2078 public int CalculateSize() { 2079 int size = 0; 2080 if (AggregatedPayloadSize != 0) { 2081 size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregatedPayloadSize); 2082 } 2083 if (_unknownFields != null) { 2084 size += _unknownFields.CalculateSize(); 2085 } 2086 return size; 2087 } 2088 2089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(StreamingInputCallResponse other)2090 public void MergeFrom(StreamingInputCallResponse other) { 2091 if (other == null) { 2092 return; 2093 } 2094 if (other.AggregatedPayloadSize != 0) { 2095 AggregatedPayloadSize = other.AggregatedPayloadSize; 2096 } 2097 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2098 } 2099 2100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2101 public void MergeFrom(pb::CodedInputStream input) { 2102 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2103 input.ReadRawMessage(this); 2104 #else 2105 uint tag; 2106 while ((tag = input.ReadTag()) != 0) { 2107 switch(tag) { 2108 default: 2109 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2110 break; 2111 case 8: { 2112 AggregatedPayloadSize = input.ReadInt32(); 2113 break; 2114 } 2115 } 2116 } 2117 #endif 2118 } 2119 2120 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2122 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2123 uint tag; 2124 while ((tag = input.ReadTag()) != 0) { 2125 switch(tag) { 2126 default: 2127 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2128 break; 2129 case 8: { 2130 AggregatedPayloadSize = input.ReadInt32(); 2131 break; 2132 } 2133 } 2134 } 2135 } 2136 #endif 2137 2138 } 2139 2140 /// <summary> 2141 /// Configuration for a particular response. 2142 /// </summary> 2143 public sealed partial class ResponseParameters : pb::IMessage<ResponseParameters> 2144 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2145 , pb::IBufferMessage 2146 #endif 2147 { 2148 private static readonly pb::MessageParser<ResponseParameters> _parser = new pb::MessageParser<ResponseParameters>(() => new ResponseParameters()); 2149 private pb::UnknownFieldSet _unknownFields; 2150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2151 public static pb::MessageParser<ResponseParameters> Parser { get { return _parser; } } 2152 2153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2154 public static pbr::MessageDescriptor Descriptor { 2155 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[7]; } 2156 } 2157 2158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2159 pbr::MessageDescriptor pb::IMessage.Descriptor { 2160 get { return Descriptor; } 2161 } 2162 2163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ResponseParameters()2164 public ResponseParameters() { 2165 OnConstruction(); 2166 } 2167 OnConstruction()2168 partial void OnConstruction(); 2169 2170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ResponseParameters(ResponseParameters other)2171 public ResponseParameters(ResponseParameters other) : this() { 2172 size_ = other.size_; 2173 intervalUs_ = other.intervalUs_; 2174 compressed_ = other.compressed_ != null ? other.compressed_.Clone() : null; 2175 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2176 } 2177 2178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2179 public ResponseParameters Clone() { 2180 return new ResponseParameters(this); 2181 } 2182 2183 /// <summary>Field number for the "size" field.</summary> 2184 public const int SizeFieldNumber = 1; 2185 private int size_; 2186 /// <summary> 2187 /// Desired payload sizes in responses from the server. 2188 /// </summary> 2189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2190 public int Size { 2191 get { return size_; } 2192 set { 2193 size_ = value; 2194 } 2195 } 2196 2197 /// <summary>Field number for the "interval_us" field.</summary> 2198 public const int IntervalUsFieldNumber = 2; 2199 private int intervalUs_; 2200 /// <summary> 2201 /// Desired interval between consecutive responses in the response stream in 2202 /// microseconds. 2203 /// </summary> 2204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2205 public int IntervalUs { 2206 get { return intervalUs_; } 2207 set { 2208 intervalUs_ = value; 2209 } 2210 } 2211 2212 /// <summary>Field number for the "compressed" field.</summary> 2213 public const int CompressedFieldNumber = 3; 2214 private global::Grpc.Testing.BoolValue compressed_; 2215 /// <summary> 2216 /// Whether to request the server to compress the response. This field is 2217 /// "nullable" in order to interoperate seamlessly with clients not able to 2218 /// implement the full compression tests by introspecting the call to verify 2219 /// the response's compression status. 2220 /// </summary> 2221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2222 public global::Grpc.Testing.BoolValue Compressed { 2223 get { return compressed_; } 2224 set { 2225 compressed_ = value; 2226 } 2227 } 2228 2229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2230 public override bool Equals(object other) { 2231 return Equals(other as ResponseParameters); 2232 } 2233 2234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ResponseParameters other)2235 public bool Equals(ResponseParameters other) { 2236 if (ReferenceEquals(other, null)) { 2237 return false; 2238 } 2239 if (ReferenceEquals(other, this)) { 2240 return true; 2241 } 2242 if (Size != other.Size) return false; 2243 if (IntervalUs != other.IntervalUs) return false; 2244 if (!object.Equals(Compressed, other.Compressed)) return false; 2245 return Equals(_unknownFields, other._unknownFields); 2246 } 2247 2248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2249 public override int GetHashCode() { 2250 int hash = 1; 2251 if (Size != 0) hash ^= Size.GetHashCode(); 2252 if (IntervalUs != 0) hash ^= IntervalUs.GetHashCode(); 2253 if (compressed_ != null) hash ^= Compressed.GetHashCode(); 2254 if (_unknownFields != null) { 2255 hash ^= _unknownFields.GetHashCode(); 2256 } 2257 return hash; 2258 } 2259 2260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2261 public override string ToString() { 2262 return pb::JsonFormatter.ToDiagnosticString(this); 2263 } 2264 2265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2266 public void WriteTo(pb::CodedOutputStream output) { 2267 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2268 output.WriteRawMessage(this); 2269 #else 2270 if (Size != 0) { 2271 output.WriteRawTag(8); 2272 output.WriteInt32(Size); 2273 } 2274 if (IntervalUs != 0) { 2275 output.WriteRawTag(16); 2276 output.WriteInt32(IntervalUs); 2277 } 2278 if (compressed_ != null) { 2279 output.WriteRawTag(26); 2280 output.WriteMessage(Compressed); 2281 } 2282 if (_unknownFields != null) { 2283 _unknownFields.WriteTo(output); 2284 } 2285 #endif 2286 } 2287 2288 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2290 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2291 if (Size != 0) { 2292 output.WriteRawTag(8); 2293 output.WriteInt32(Size); 2294 } 2295 if (IntervalUs != 0) { 2296 output.WriteRawTag(16); 2297 output.WriteInt32(IntervalUs); 2298 } 2299 if (compressed_ != null) { 2300 output.WriteRawTag(26); 2301 output.WriteMessage(Compressed); 2302 } 2303 if (_unknownFields != null) { 2304 _unknownFields.WriteTo(ref output); 2305 } 2306 } 2307 #endif 2308 2309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2310 public int CalculateSize() { 2311 int size = 0; 2312 if (Size != 0) { 2313 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Size); 2314 } 2315 if (IntervalUs != 0) { 2316 size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntervalUs); 2317 } 2318 if (compressed_ != null) { 2319 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Compressed); 2320 } 2321 if (_unknownFields != null) { 2322 size += _unknownFields.CalculateSize(); 2323 } 2324 return size; 2325 } 2326 2327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ResponseParameters other)2328 public void MergeFrom(ResponseParameters other) { 2329 if (other == null) { 2330 return; 2331 } 2332 if (other.Size != 0) { 2333 Size = other.Size; 2334 } 2335 if (other.IntervalUs != 0) { 2336 IntervalUs = other.IntervalUs; 2337 } 2338 if (other.compressed_ != null) { 2339 if (compressed_ == null) { 2340 Compressed = new global::Grpc.Testing.BoolValue(); 2341 } 2342 Compressed.MergeFrom(other.Compressed); 2343 } 2344 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2345 } 2346 2347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2348 public void MergeFrom(pb::CodedInputStream input) { 2349 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2350 input.ReadRawMessage(this); 2351 #else 2352 uint tag; 2353 while ((tag = input.ReadTag()) != 0) { 2354 switch(tag) { 2355 default: 2356 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2357 break; 2358 case 8: { 2359 Size = input.ReadInt32(); 2360 break; 2361 } 2362 case 16: { 2363 IntervalUs = input.ReadInt32(); 2364 break; 2365 } 2366 case 26: { 2367 if (compressed_ == null) { 2368 Compressed = new global::Grpc.Testing.BoolValue(); 2369 } 2370 input.ReadMessage(Compressed); 2371 break; 2372 } 2373 } 2374 } 2375 #endif 2376 } 2377 2378 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2380 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2381 uint tag; 2382 while ((tag = input.ReadTag()) != 0) { 2383 switch(tag) { 2384 default: 2385 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2386 break; 2387 case 8: { 2388 Size = input.ReadInt32(); 2389 break; 2390 } 2391 case 16: { 2392 IntervalUs = input.ReadInt32(); 2393 break; 2394 } 2395 case 26: { 2396 if (compressed_ == null) { 2397 Compressed = new global::Grpc.Testing.BoolValue(); 2398 } 2399 input.ReadMessage(Compressed); 2400 break; 2401 } 2402 } 2403 } 2404 } 2405 #endif 2406 2407 } 2408 2409 /// <summary> 2410 /// Server-streaming request. 2411 /// </summary> 2412 public sealed partial class StreamingOutputCallRequest : pb::IMessage<StreamingOutputCallRequest> 2413 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2414 , pb::IBufferMessage 2415 #endif 2416 { 2417 private static readonly pb::MessageParser<StreamingOutputCallRequest> _parser = new pb::MessageParser<StreamingOutputCallRequest>(() => new StreamingOutputCallRequest()); 2418 private pb::UnknownFieldSet _unknownFields; 2419 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2420 public static pb::MessageParser<StreamingOutputCallRequest> Parser { get { return _parser; } } 2421 2422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2423 public static pbr::MessageDescriptor Descriptor { 2424 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[8]; } 2425 } 2426 2427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2428 pbr::MessageDescriptor pb::IMessage.Descriptor { 2429 get { return Descriptor; } 2430 } 2431 2432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] StreamingOutputCallRequest()2433 public StreamingOutputCallRequest() { 2434 OnConstruction(); 2435 } 2436 OnConstruction()2437 partial void OnConstruction(); 2438 2439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] StreamingOutputCallRequest(StreamingOutputCallRequest other)2440 public StreamingOutputCallRequest(StreamingOutputCallRequest other) : this() { 2441 responseType_ = other.responseType_; 2442 responseParameters_ = other.responseParameters_.Clone(); 2443 payload_ = other.payload_ != null ? other.payload_.Clone() : null; 2444 responseStatus_ = other.responseStatus_ != null ? other.responseStatus_.Clone() : null; 2445 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2446 } 2447 2448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2449 public StreamingOutputCallRequest Clone() { 2450 return new StreamingOutputCallRequest(this); 2451 } 2452 2453 /// <summary>Field number for the "response_type" field.</summary> 2454 public const int ResponseTypeFieldNumber = 1; 2455 private global::Grpc.Testing.PayloadType responseType_ = global::Grpc.Testing.PayloadType.Compressable; 2456 /// <summary> 2457 /// Desired payload type in the response from the server. 2458 /// If response_type is RANDOM, the payload from each response in the stream 2459 /// might be of different types. This is to simulate a mixed type of payload 2460 /// stream. 2461 /// </summary> 2462 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2463 public global::Grpc.Testing.PayloadType ResponseType { 2464 get { return responseType_; } 2465 set { 2466 responseType_ = value; 2467 } 2468 } 2469 2470 /// <summary>Field number for the "response_parameters" field.</summary> 2471 public const int ResponseParametersFieldNumber = 2; 2472 private static readonly pb::FieldCodec<global::Grpc.Testing.ResponseParameters> _repeated_responseParameters_codec 2473 = pb::FieldCodec.ForMessage(18, global::Grpc.Testing.ResponseParameters.Parser); 2474 private readonly pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> responseParameters_ = new pbc::RepeatedField<global::Grpc.Testing.ResponseParameters>(); 2475 /// <summary> 2476 /// Configuration for each expected response message. 2477 /// </summary> 2478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2479 public pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> ResponseParameters { 2480 get { return responseParameters_; } 2481 } 2482 2483 /// <summary>Field number for the "payload" field.</summary> 2484 public const int PayloadFieldNumber = 3; 2485 private global::Grpc.Testing.Payload payload_; 2486 /// <summary> 2487 /// Optional input payload sent along with the request. 2488 /// </summary> 2489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2490 public global::Grpc.Testing.Payload Payload { 2491 get { return payload_; } 2492 set { 2493 payload_ = value; 2494 } 2495 } 2496 2497 /// <summary>Field number for the "response_status" field.</summary> 2498 public const int ResponseStatusFieldNumber = 7; 2499 private global::Grpc.Testing.EchoStatus responseStatus_; 2500 /// <summary> 2501 /// Whether server should return a given status 2502 /// </summary> 2503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2504 public global::Grpc.Testing.EchoStatus ResponseStatus { 2505 get { return responseStatus_; } 2506 set { 2507 responseStatus_ = value; 2508 } 2509 } 2510 2511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2512 public override bool Equals(object other) { 2513 return Equals(other as StreamingOutputCallRequest); 2514 } 2515 2516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(StreamingOutputCallRequest other)2517 public bool Equals(StreamingOutputCallRequest other) { 2518 if (ReferenceEquals(other, null)) { 2519 return false; 2520 } 2521 if (ReferenceEquals(other, this)) { 2522 return true; 2523 } 2524 if (ResponseType != other.ResponseType) return false; 2525 if(!responseParameters_.Equals(other.responseParameters_)) return false; 2526 if (!object.Equals(Payload, other.Payload)) return false; 2527 if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false; 2528 return Equals(_unknownFields, other._unknownFields); 2529 } 2530 2531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2532 public override int GetHashCode() { 2533 int hash = 1; 2534 if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) hash ^= ResponseType.GetHashCode(); 2535 hash ^= responseParameters_.GetHashCode(); 2536 if (payload_ != null) hash ^= Payload.GetHashCode(); 2537 if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode(); 2538 if (_unknownFields != null) { 2539 hash ^= _unknownFields.GetHashCode(); 2540 } 2541 return hash; 2542 } 2543 2544 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2545 public override string ToString() { 2546 return pb::JsonFormatter.ToDiagnosticString(this); 2547 } 2548 2549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2550 public void WriteTo(pb::CodedOutputStream output) { 2551 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2552 output.WriteRawMessage(this); 2553 #else 2554 if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) { 2555 output.WriteRawTag(8); 2556 output.WriteEnum((int) ResponseType); 2557 } 2558 responseParameters_.WriteTo(output, _repeated_responseParameters_codec); 2559 if (payload_ != null) { 2560 output.WriteRawTag(26); 2561 output.WriteMessage(Payload); 2562 } 2563 if (responseStatus_ != null) { 2564 output.WriteRawTag(58); 2565 output.WriteMessage(ResponseStatus); 2566 } 2567 if (_unknownFields != null) { 2568 _unknownFields.WriteTo(output); 2569 } 2570 #endif 2571 } 2572 2573 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2575 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2576 if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) { 2577 output.WriteRawTag(8); 2578 output.WriteEnum((int) ResponseType); 2579 } 2580 responseParameters_.WriteTo(ref output, _repeated_responseParameters_codec); 2581 if (payload_ != null) { 2582 output.WriteRawTag(26); 2583 output.WriteMessage(Payload); 2584 } 2585 if (responseStatus_ != null) { 2586 output.WriteRawTag(58); 2587 output.WriteMessage(ResponseStatus); 2588 } 2589 if (_unknownFields != null) { 2590 _unknownFields.WriteTo(ref output); 2591 } 2592 } 2593 #endif 2594 2595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2596 public int CalculateSize() { 2597 int size = 0; 2598 if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) { 2599 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType); 2600 } 2601 size += responseParameters_.CalculateSize(_repeated_responseParameters_codec); 2602 if (payload_ != null) { 2603 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); 2604 } 2605 if (responseStatus_ != null) { 2606 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus); 2607 } 2608 if (_unknownFields != null) { 2609 size += _unknownFields.CalculateSize(); 2610 } 2611 return size; 2612 } 2613 2614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(StreamingOutputCallRequest other)2615 public void MergeFrom(StreamingOutputCallRequest other) { 2616 if (other == null) { 2617 return; 2618 } 2619 if (other.ResponseType != global::Grpc.Testing.PayloadType.Compressable) { 2620 ResponseType = other.ResponseType; 2621 } 2622 responseParameters_.Add(other.responseParameters_); 2623 if (other.payload_ != null) { 2624 if (payload_ == null) { 2625 Payload = new global::Grpc.Testing.Payload(); 2626 } 2627 Payload.MergeFrom(other.Payload); 2628 } 2629 if (other.responseStatus_ != null) { 2630 if (responseStatus_ == null) { 2631 ResponseStatus = new global::Grpc.Testing.EchoStatus(); 2632 } 2633 ResponseStatus.MergeFrom(other.ResponseStatus); 2634 } 2635 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2636 } 2637 2638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2639 public void MergeFrom(pb::CodedInputStream input) { 2640 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2641 input.ReadRawMessage(this); 2642 #else 2643 uint tag; 2644 while ((tag = input.ReadTag()) != 0) { 2645 switch(tag) { 2646 default: 2647 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2648 break; 2649 case 8: { 2650 ResponseType = (global::Grpc.Testing.PayloadType) input.ReadEnum(); 2651 break; 2652 } 2653 case 18: { 2654 responseParameters_.AddEntriesFrom(input, _repeated_responseParameters_codec); 2655 break; 2656 } 2657 case 26: { 2658 if (payload_ == null) { 2659 Payload = new global::Grpc.Testing.Payload(); 2660 } 2661 input.ReadMessage(Payload); 2662 break; 2663 } 2664 case 58: { 2665 if (responseStatus_ == null) { 2666 ResponseStatus = new global::Grpc.Testing.EchoStatus(); 2667 } 2668 input.ReadMessage(ResponseStatus); 2669 break; 2670 } 2671 } 2672 } 2673 #endif 2674 } 2675 2676 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2678 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2679 uint tag; 2680 while ((tag = input.ReadTag()) != 0) { 2681 switch(tag) { 2682 default: 2683 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2684 break; 2685 case 8: { 2686 ResponseType = (global::Grpc.Testing.PayloadType) input.ReadEnum(); 2687 break; 2688 } 2689 case 18: { 2690 responseParameters_.AddEntriesFrom(ref input, _repeated_responseParameters_codec); 2691 break; 2692 } 2693 case 26: { 2694 if (payload_ == null) { 2695 Payload = new global::Grpc.Testing.Payload(); 2696 } 2697 input.ReadMessage(Payload); 2698 break; 2699 } 2700 case 58: { 2701 if (responseStatus_ == null) { 2702 ResponseStatus = new global::Grpc.Testing.EchoStatus(); 2703 } 2704 input.ReadMessage(ResponseStatus); 2705 break; 2706 } 2707 } 2708 } 2709 } 2710 #endif 2711 2712 } 2713 2714 /// <summary> 2715 /// Server-streaming response, as configured by the request and parameters. 2716 /// </summary> 2717 public sealed partial class StreamingOutputCallResponse : pb::IMessage<StreamingOutputCallResponse> 2718 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2719 , pb::IBufferMessage 2720 #endif 2721 { 2722 private static readonly pb::MessageParser<StreamingOutputCallResponse> _parser = new pb::MessageParser<StreamingOutputCallResponse>(() => new StreamingOutputCallResponse()); 2723 private pb::UnknownFieldSet _unknownFields; 2724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2725 public static pb::MessageParser<StreamingOutputCallResponse> Parser { get { return _parser; } } 2726 2727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2728 public static pbr::MessageDescriptor Descriptor { 2729 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[9]; } 2730 } 2731 2732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2733 pbr::MessageDescriptor pb::IMessage.Descriptor { 2734 get { return Descriptor; } 2735 } 2736 2737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] StreamingOutputCallResponse()2738 public StreamingOutputCallResponse() { 2739 OnConstruction(); 2740 } 2741 OnConstruction()2742 partial void OnConstruction(); 2743 2744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] StreamingOutputCallResponse(StreamingOutputCallResponse other)2745 public StreamingOutputCallResponse(StreamingOutputCallResponse other) : this() { 2746 payload_ = other.payload_ != null ? other.payload_.Clone() : null; 2747 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2748 } 2749 2750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2751 public StreamingOutputCallResponse Clone() { 2752 return new StreamingOutputCallResponse(this); 2753 } 2754 2755 /// <summary>Field number for the "payload" field.</summary> 2756 public const int PayloadFieldNumber = 1; 2757 private global::Grpc.Testing.Payload payload_; 2758 /// <summary> 2759 /// Payload to increase response size. 2760 /// </summary> 2761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2762 public global::Grpc.Testing.Payload Payload { 2763 get { return payload_; } 2764 set { 2765 payload_ = value; 2766 } 2767 } 2768 2769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2770 public override bool Equals(object other) { 2771 return Equals(other as StreamingOutputCallResponse); 2772 } 2773 2774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(StreamingOutputCallResponse other)2775 public bool Equals(StreamingOutputCallResponse other) { 2776 if (ReferenceEquals(other, null)) { 2777 return false; 2778 } 2779 if (ReferenceEquals(other, this)) { 2780 return true; 2781 } 2782 if (!object.Equals(Payload, other.Payload)) return false; 2783 return Equals(_unknownFields, other._unknownFields); 2784 } 2785 2786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2787 public override int GetHashCode() { 2788 int hash = 1; 2789 if (payload_ != null) hash ^= Payload.GetHashCode(); 2790 if (_unknownFields != null) { 2791 hash ^= _unknownFields.GetHashCode(); 2792 } 2793 return hash; 2794 } 2795 2796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2797 public override string ToString() { 2798 return pb::JsonFormatter.ToDiagnosticString(this); 2799 } 2800 2801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2802 public void WriteTo(pb::CodedOutputStream output) { 2803 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2804 output.WriteRawMessage(this); 2805 #else 2806 if (payload_ != null) { 2807 output.WriteRawTag(10); 2808 output.WriteMessage(Payload); 2809 } 2810 if (_unknownFields != null) { 2811 _unknownFields.WriteTo(output); 2812 } 2813 #endif 2814 } 2815 2816 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2818 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2819 if (payload_ != null) { 2820 output.WriteRawTag(10); 2821 output.WriteMessage(Payload); 2822 } 2823 if (_unknownFields != null) { 2824 _unknownFields.WriteTo(ref output); 2825 } 2826 } 2827 #endif 2828 2829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2830 public int CalculateSize() { 2831 int size = 0; 2832 if (payload_ != null) { 2833 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); 2834 } 2835 if (_unknownFields != null) { 2836 size += _unknownFields.CalculateSize(); 2837 } 2838 return size; 2839 } 2840 2841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(StreamingOutputCallResponse other)2842 public void MergeFrom(StreamingOutputCallResponse other) { 2843 if (other == null) { 2844 return; 2845 } 2846 if (other.payload_ != null) { 2847 if (payload_ == null) { 2848 Payload = new global::Grpc.Testing.Payload(); 2849 } 2850 Payload.MergeFrom(other.Payload); 2851 } 2852 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2853 } 2854 2855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2856 public void MergeFrom(pb::CodedInputStream input) { 2857 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2858 input.ReadRawMessage(this); 2859 #else 2860 uint tag; 2861 while ((tag = input.ReadTag()) != 0) { 2862 switch(tag) { 2863 default: 2864 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2865 break; 2866 case 10: { 2867 if (payload_ == null) { 2868 Payload = new global::Grpc.Testing.Payload(); 2869 } 2870 input.ReadMessage(Payload); 2871 break; 2872 } 2873 } 2874 } 2875 #endif 2876 } 2877 2878 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2880 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2881 uint tag; 2882 while ((tag = input.ReadTag()) != 0) { 2883 switch(tag) { 2884 default: 2885 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2886 break; 2887 case 10: { 2888 if (payload_ == null) { 2889 Payload = new global::Grpc.Testing.Payload(); 2890 } 2891 input.ReadMessage(Payload); 2892 break; 2893 } 2894 } 2895 } 2896 } 2897 #endif 2898 2899 } 2900 2901 /// <summary> 2902 /// For reconnect interop test only. 2903 /// Client tells server what reconnection parameters it used. 2904 /// </summary> 2905 public sealed partial class ReconnectParams : pb::IMessage<ReconnectParams> 2906 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2907 , pb::IBufferMessage 2908 #endif 2909 { 2910 private static readonly pb::MessageParser<ReconnectParams> _parser = new pb::MessageParser<ReconnectParams>(() => new ReconnectParams()); 2911 private pb::UnknownFieldSet _unknownFields; 2912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2913 public static pb::MessageParser<ReconnectParams> Parser { get { return _parser; } } 2914 2915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2916 public static pbr::MessageDescriptor Descriptor { 2917 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[10]; } 2918 } 2919 2920 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2921 pbr::MessageDescriptor pb::IMessage.Descriptor { 2922 get { return Descriptor; } 2923 } 2924 2925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ReconnectParams()2926 public ReconnectParams() { 2927 OnConstruction(); 2928 } 2929 OnConstruction()2930 partial void OnConstruction(); 2931 2932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ReconnectParams(ReconnectParams other)2933 public ReconnectParams(ReconnectParams other) : this() { 2934 maxReconnectBackoffMs_ = other.maxReconnectBackoffMs_; 2935 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2936 } 2937 2938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2939 public ReconnectParams Clone() { 2940 return new ReconnectParams(this); 2941 } 2942 2943 /// <summary>Field number for the "max_reconnect_backoff_ms" field.</summary> 2944 public const int MaxReconnectBackoffMsFieldNumber = 1; 2945 private int maxReconnectBackoffMs_; 2946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2947 public int MaxReconnectBackoffMs { 2948 get { return maxReconnectBackoffMs_; } 2949 set { 2950 maxReconnectBackoffMs_ = value; 2951 } 2952 } 2953 2954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2955 public override bool Equals(object other) { 2956 return Equals(other as ReconnectParams); 2957 } 2958 2959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ReconnectParams other)2960 public bool Equals(ReconnectParams other) { 2961 if (ReferenceEquals(other, null)) { 2962 return false; 2963 } 2964 if (ReferenceEquals(other, this)) { 2965 return true; 2966 } 2967 if (MaxReconnectBackoffMs != other.MaxReconnectBackoffMs) return false; 2968 return Equals(_unknownFields, other._unknownFields); 2969 } 2970 2971 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2972 public override int GetHashCode() { 2973 int hash = 1; 2974 if (MaxReconnectBackoffMs != 0) hash ^= MaxReconnectBackoffMs.GetHashCode(); 2975 if (_unknownFields != null) { 2976 hash ^= _unknownFields.GetHashCode(); 2977 } 2978 return hash; 2979 } 2980 2981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2982 public override string ToString() { 2983 return pb::JsonFormatter.ToDiagnosticString(this); 2984 } 2985 2986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2987 public void WriteTo(pb::CodedOutputStream output) { 2988 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2989 output.WriteRawMessage(this); 2990 #else 2991 if (MaxReconnectBackoffMs != 0) { 2992 output.WriteRawTag(8); 2993 output.WriteInt32(MaxReconnectBackoffMs); 2994 } 2995 if (_unknownFields != null) { 2996 _unknownFields.WriteTo(output); 2997 } 2998 #endif 2999 } 3000 3001 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3003 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3004 if (MaxReconnectBackoffMs != 0) { 3005 output.WriteRawTag(8); 3006 output.WriteInt32(MaxReconnectBackoffMs); 3007 } 3008 if (_unknownFields != null) { 3009 _unknownFields.WriteTo(ref output); 3010 } 3011 } 3012 #endif 3013 3014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()3015 public int CalculateSize() { 3016 int size = 0; 3017 if (MaxReconnectBackoffMs != 0) { 3018 size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxReconnectBackoffMs); 3019 } 3020 if (_unknownFields != null) { 3021 size += _unknownFields.CalculateSize(); 3022 } 3023 return size; 3024 } 3025 3026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ReconnectParams other)3027 public void MergeFrom(ReconnectParams other) { 3028 if (other == null) { 3029 return; 3030 } 3031 if (other.MaxReconnectBackoffMs != 0) { 3032 MaxReconnectBackoffMs = other.MaxReconnectBackoffMs; 3033 } 3034 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3035 } 3036 3037 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)3038 public void MergeFrom(pb::CodedInputStream input) { 3039 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3040 input.ReadRawMessage(this); 3041 #else 3042 uint tag; 3043 while ((tag = input.ReadTag()) != 0) { 3044 switch(tag) { 3045 default: 3046 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3047 break; 3048 case 8: { 3049 MaxReconnectBackoffMs = input.ReadInt32(); 3050 break; 3051 } 3052 } 3053 } 3054 #endif 3055 } 3056 3057 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3059 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3060 uint tag; 3061 while ((tag = input.ReadTag()) != 0) { 3062 switch(tag) { 3063 default: 3064 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3065 break; 3066 case 8: { 3067 MaxReconnectBackoffMs = input.ReadInt32(); 3068 break; 3069 } 3070 } 3071 } 3072 } 3073 #endif 3074 3075 } 3076 3077 /// <summary> 3078 /// For reconnect interop test only. 3079 /// Server tells client whether its reconnects are following the spec and the 3080 /// reconnect backoffs it saw. 3081 /// </summary> 3082 public sealed partial class ReconnectInfo : pb::IMessage<ReconnectInfo> 3083 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3084 , pb::IBufferMessage 3085 #endif 3086 { 3087 private static readonly pb::MessageParser<ReconnectInfo> _parser = new pb::MessageParser<ReconnectInfo>(() => new ReconnectInfo()); 3088 private pb::UnknownFieldSet _unknownFields; 3089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3090 public static pb::MessageParser<ReconnectInfo> Parser { get { return _parser; } } 3091 3092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3093 public static pbr::MessageDescriptor Descriptor { 3094 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[11]; } 3095 } 3096 3097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3098 pbr::MessageDescriptor pb::IMessage.Descriptor { 3099 get { return Descriptor; } 3100 } 3101 3102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ReconnectInfo()3103 public ReconnectInfo() { 3104 OnConstruction(); 3105 } 3106 OnConstruction()3107 partial void OnConstruction(); 3108 3109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ReconnectInfo(ReconnectInfo other)3110 public ReconnectInfo(ReconnectInfo other) : this() { 3111 passed_ = other.passed_; 3112 backoffMs_ = other.backoffMs_.Clone(); 3113 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3114 } 3115 3116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()3117 public ReconnectInfo Clone() { 3118 return new ReconnectInfo(this); 3119 } 3120 3121 /// <summary>Field number for the "passed" field.</summary> 3122 public const int PassedFieldNumber = 1; 3123 private bool passed_; 3124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3125 public bool Passed { 3126 get { return passed_; } 3127 set { 3128 passed_ = value; 3129 } 3130 } 3131 3132 /// <summary>Field number for the "backoff_ms" field.</summary> 3133 public const int BackoffMsFieldNumber = 2; 3134 private static readonly pb::FieldCodec<int> _repeated_backoffMs_codec 3135 = pb::FieldCodec.ForInt32(18); 3136 private readonly pbc::RepeatedField<int> backoffMs_ = new pbc::RepeatedField<int>(); 3137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3138 public pbc::RepeatedField<int> BackoffMs { 3139 get { return backoffMs_; } 3140 } 3141 3142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)3143 public override bool Equals(object other) { 3144 return Equals(other as ReconnectInfo); 3145 } 3146 3147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ReconnectInfo other)3148 public bool Equals(ReconnectInfo other) { 3149 if (ReferenceEquals(other, null)) { 3150 return false; 3151 } 3152 if (ReferenceEquals(other, this)) { 3153 return true; 3154 } 3155 if (Passed != other.Passed) return false; 3156 if(!backoffMs_.Equals(other.backoffMs_)) return false; 3157 return Equals(_unknownFields, other._unknownFields); 3158 } 3159 3160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()3161 public override int GetHashCode() { 3162 int hash = 1; 3163 if (Passed != false) hash ^= Passed.GetHashCode(); 3164 hash ^= backoffMs_.GetHashCode(); 3165 if (_unknownFields != null) { 3166 hash ^= _unknownFields.GetHashCode(); 3167 } 3168 return hash; 3169 } 3170 3171 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()3172 public override string ToString() { 3173 return pb::JsonFormatter.ToDiagnosticString(this); 3174 } 3175 3176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)3177 public void WriteTo(pb::CodedOutputStream output) { 3178 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3179 output.WriteRawMessage(this); 3180 #else 3181 if (Passed != false) { 3182 output.WriteRawTag(8); 3183 output.WriteBool(Passed); 3184 } 3185 backoffMs_.WriteTo(output, _repeated_backoffMs_codec); 3186 if (_unknownFields != null) { 3187 _unknownFields.WriteTo(output); 3188 } 3189 #endif 3190 } 3191 3192 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3194 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3195 if (Passed != false) { 3196 output.WriteRawTag(8); 3197 output.WriteBool(Passed); 3198 } 3199 backoffMs_.WriteTo(ref output, _repeated_backoffMs_codec); 3200 if (_unknownFields != null) { 3201 _unknownFields.WriteTo(ref output); 3202 } 3203 } 3204 #endif 3205 3206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()3207 public int CalculateSize() { 3208 int size = 0; 3209 if (Passed != false) { 3210 size += 1 + 1; 3211 } 3212 size += backoffMs_.CalculateSize(_repeated_backoffMs_codec); 3213 if (_unknownFields != null) { 3214 size += _unknownFields.CalculateSize(); 3215 } 3216 return size; 3217 } 3218 3219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ReconnectInfo other)3220 public void MergeFrom(ReconnectInfo other) { 3221 if (other == null) { 3222 return; 3223 } 3224 if (other.Passed != false) { 3225 Passed = other.Passed; 3226 } 3227 backoffMs_.Add(other.backoffMs_); 3228 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3229 } 3230 3231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)3232 public void MergeFrom(pb::CodedInputStream input) { 3233 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3234 input.ReadRawMessage(this); 3235 #else 3236 uint tag; 3237 while ((tag = input.ReadTag()) != 0) { 3238 switch(tag) { 3239 default: 3240 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3241 break; 3242 case 8: { 3243 Passed = input.ReadBool(); 3244 break; 3245 } 3246 case 18: 3247 case 16: { 3248 backoffMs_.AddEntriesFrom(input, _repeated_backoffMs_codec); 3249 break; 3250 } 3251 } 3252 } 3253 #endif 3254 } 3255 3256 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3258 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3259 uint tag; 3260 while ((tag = input.ReadTag()) != 0) { 3261 switch(tag) { 3262 default: 3263 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3264 break; 3265 case 8: { 3266 Passed = input.ReadBool(); 3267 break; 3268 } 3269 case 18: 3270 case 16: { 3271 backoffMs_.AddEntriesFrom(ref input, _repeated_backoffMs_codec); 3272 break; 3273 } 3274 } 3275 } 3276 } 3277 #endif 3278 3279 } 3280 3281 public sealed partial class LoadBalancerStatsRequest : pb::IMessage<LoadBalancerStatsRequest> 3282 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3283 , pb::IBufferMessage 3284 #endif 3285 { 3286 private static readonly pb::MessageParser<LoadBalancerStatsRequest> _parser = new pb::MessageParser<LoadBalancerStatsRequest>(() => new LoadBalancerStatsRequest()); 3287 private pb::UnknownFieldSet _unknownFields; 3288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3289 public static pb::MessageParser<LoadBalancerStatsRequest> Parser { get { return _parser; } } 3290 3291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3292 public static pbr::MessageDescriptor Descriptor { 3293 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[12]; } 3294 } 3295 3296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3297 pbr::MessageDescriptor pb::IMessage.Descriptor { 3298 get { return Descriptor; } 3299 } 3300 3301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] LoadBalancerStatsRequest()3302 public LoadBalancerStatsRequest() { 3303 OnConstruction(); 3304 } 3305 OnConstruction()3306 partial void OnConstruction(); 3307 3308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] LoadBalancerStatsRequest(LoadBalancerStatsRequest other)3309 public LoadBalancerStatsRequest(LoadBalancerStatsRequest other) : this() { 3310 numRpcs_ = other.numRpcs_; 3311 timeoutSec_ = other.timeoutSec_; 3312 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3313 } 3314 3315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()3316 public LoadBalancerStatsRequest Clone() { 3317 return new LoadBalancerStatsRequest(this); 3318 } 3319 3320 /// <summary>Field number for the "num_rpcs" field.</summary> 3321 public const int NumRpcsFieldNumber = 1; 3322 private int numRpcs_; 3323 /// <summary> 3324 /// Request stats for the next num_rpcs sent by client. 3325 /// </summary> 3326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3327 public int NumRpcs { 3328 get { return numRpcs_; } 3329 set { 3330 numRpcs_ = value; 3331 } 3332 } 3333 3334 /// <summary>Field number for the "timeout_sec" field.</summary> 3335 public const int TimeoutSecFieldNumber = 2; 3336 private int timeoutSec_; 3337 /// <summary> 3338 /// If num_rpcs have not completed within timeout_sec, return partial results. 3339 /// </summary> 3340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3341 public int TimeoutSec { 3342 get { return timeoutSec_; } 3343 set { 3344 timeoutSec_ = value; 3345 } 3346 } 3347 3348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)3349 public override bool Equals(object other) { 3350 return Equals(other as LoadBalancerStatsRequest); 3351 } 3352 3353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(LoadBalancerStatsRequest other)3354 public bool Equals(LoadBalancerStatsRequest other) { 3355 if (ReferenceEquals(other, null)) { 3356 return false; 3357 } 3358 if (ReferenceEquals(other, this)) { 3359 return true; 3360 } 3361 if (NumRpcs != other.NumRpcs) return false; 3362 if (TimeoutSec != other.TimeoutSec) return false; 3363 return Equals(_unknownFields, other._unknownFields); 3364 } 3365 3366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()3367 public override int GetHashCode() { 3368 int hash = 1; 3369 if (NumRpcs != 0) hash ^= NumRpcs.GetHashCode(); 3370 if (TimeoutSec != 0) hash ^= TimeoutSec.GetHashCode(); 3371 if (_unknownFields != null) { 3372 hash ^= _unknownFields.GetHashCode(); 3373 } 3374 return hash; 3375 } 3376 3377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()3378 public override string ToString() { 3379 return pb::JsonFormatter.ToDiagnosticString(this); 3380 } 3381 3382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)3383 public void WriteTo(pb::CodedOutputStream output) { 3384 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3385 output.WriteRawMessage(this); 3386 #else 3387 if (NumRpcs != 0) { 3388 output.WriteRawTag(8); 3389 output.WriteInt32(NumRpcs); 3390 } 3391 if (TimeoutSec != 0) { 3392 output.WriteRawTag(16); 3393 output.WriteInt32(TimeoutSec); 3394 } 3395 if (_unknownFields != null) { 3396 _unknownFields.WriteTo(output); 3397 } 3398 #endif 3399 } 3400 3401 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3403 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3404 if (NumRpcs != 0) { 3405 output.WriteRawTag(8); 3406 output.WriteInt32(NumRpcs); 3407 } 3408 if (TimeoutSec != 0) { 3409 output.WriteRawTag(16); 3410 output.WriteInt32(TimeoutSec); 3411 } 3412 if (_unknownFields != null) { 3413 _unknownFields.WriteTo(ref output); 3414 } 3415 } 3416 #endif 3417 3418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()3419 public int CalculateSize() { 3420 int size = 0; 3421 if (NumRpcs != 0) { 3422 size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumRpcs); 3423 } 3424 if (TimeoutSec != 0) { 3425 size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimeoutSec); 3426 } 3427 if (_unknownFields != null) { 3428 size += _unknownFields.CalculateSize(); 3429 } 3430 return size; 3431 } 3432 3433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(LoadBalancerStatsRequest other)3434 public void MergeFrom(LoadBalancerStatsRequest other) { 3435 if (other == null) { 3436 return; 3437 } 3438 if (other.NumRpcs != 0) { 3439 NumRpcs = other.NumRpcs; 3440 } 3441 if (other.TimeoutSec != 0) { 3442 TimeoutSec = other.TimeoutSec; 3443 } 3444 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3445 } 3446 3447 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)3448 public void MergeFrom(pb::CodedInputStream input) { 3449 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3450 input.ReadRawMessage(this); 3451 #else 3452 uint tag; 3453 while ((tag = input.ReadTag()) != 0) { 3454 switch(tag) { 3455 default: 3456 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3457 break; 3458 case 8: { 3459 NumRpcs = input.ReadInt32(); 3460 break; 3461 } 3462 case 16: { 3463 TimeoutSec = input.ReadInt32(); 3464 break; 3465 } 3466 } 3467 } 3468 #endif 3469 } 3470 3471 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3473 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3474 uint tag; 3475 while ((tag = input.ReadTag()) != 0) { 3476 switch(tag) { 3477 default: 3478 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3479 break; 3480 case 8: { 3481 NumRpcs = input.ReadInt32(); 3482 break; 3483 } 3484 case 16: { 3485 TimeoutSec = input.ReadInt32(); 3486 break; 3487 } 3488 } 3489 } 3490 } 3491 #endif 3492 3493 } 3494 3495 public sealed partial class LoadBalancerStatsResponse : pb::IMessage<LoadBalancerStatsResponse> 3496 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3497 , pb::IBufferMessage 3498 #endif 3499 { 3500 private static readonly pb::MessageParser<LoadBalancerStatsResponse> _parser = new pb::MessageParser<LoadBalancerStatsResponse>(() => new LoadBalancerStatsResponse()); 3501 private pb::UnknownFieldSet _unknownFields; 3502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3503 public static pb::MessageParser<LoadBalancerStatsResponse> Parser { get { return _parser; } } 3504 3505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3506 public static pbr::MessageDescriptor Descriptor { 3507 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[13]; } 3508 } 3509 3510 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3511 pbr::MessageDescriptor pb::IMessage.Descriptor { 3512 get { return Descriptor; } 3513 } 3514 3515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] LoadBalancerStatsResponse()3516 public LoadBalancerStatsResponse() { 3517 OnConstruction(); 3518 } 3519 OnConstruction()3520 partial void OnConstruction(); 3521 3522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] LoadBalancerStatsResponse(LoadBalancerStatsResponse other)3523 public LoadBalancerStatsResponse(LoadBalancerStatsResponse other) : this() { 3524 rpcsByPeer_ = other.rpcsByPeer_.Clone(); 3525 numFailures_ = other.numFailures_; 3526 rpcsByMethod_ = other.rpcsByMethod_.Clone(); 3527 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3528 } 3529 3530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()3531 public LoadBalancerStatsResponse Clone() { 3532 return new LoadBalancerStatsResponse(this); 3533 } 3534 3535 /// <summary>Field number for the "rpcs_by_peer" field.</summary> 3536 public const int RpcsByPeerFieldNumber = 1; 3537 private static readonly pbc::MapField<string, int>.Codec _map_rpcsByPeer_codec 3538 = new pbc::MapField<string, int>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 10); 3539 private readonly pbc::MapField<string, int> rpcsByPeer_ = new pbc::MapField<string, int>(); 3540 /// <summary> 3541 /// The number of completed RPCs for each peer. 3542 /// </summary> 3543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3544 public pbc::MapField<string, int> RpcsByPeer { 3545 get { return rpcsByPeer_; } 3546 } 3547 3548 /// <summary>Field number for the "num_failures" field.</summary> 3549 public const int NumFailuresFieldNumber = 2; 3550 private int numFailures_; 3551 /// <summary> 3552 /// The number of RPCs that failed to record a remote peer. 3553 /// </summary> 3554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3555 public int NumFailures { 3556 get { return numFailures_; } 3557 set { 3558 numFailures_ = value; 3559 } 3560 } 3561 3562 /// <summary>Field number for the "rpcs_by_method" field.</summary> 3563 public const int RpcsByMethodFieldNumber = 3; 3564 private static readonly pbc::MapField<string, global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer>.Codec _map_rpcsByMethod_codec 3565 = new pbc::MapField<string, global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer.Parser), 26); 3566 private readonly pbc::MapField<string, global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer> rpcsByMethod_ = new pbc::MapField<string, global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer>(); 3567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3568 public pbc::MapField<string, global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer> RpcsByMethod { 3569 get { return rpcsByMethod_; } 3570 } 3571 3572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)3573 public override bool Equals(object other) { 3574 return Equals(other as LoadBalancerStatsResponse); 3575 } 3576 3577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(LoadBalancerStatsResponse other)3578 public bool Equals(LoadBalancerStatsResponse other) { 3579 if (ReferenceEquals(other, null)) { 3580 return false; 3581 } 3582 if (ReferenceEquals(other, this)) { 3583 return true; 3584 } 3585 if (!RpcsByPeer.Equals(other.RpcsByPeer)) return false; 3586 if (NumFailures != other.NumFailures) return false; 3587 if (!RpcsByMethod.Equals(other.RpcsByMethod)) return false; 3588 return Equals(_unknownFields, other._unknownFields); 3589 } 3590 3591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()3592 public override int GetHashCode() { 3593 int hash = 1; 3594 hash ^= RpcsByPeer.GetHashCode(); 3595 if (NumFailures != 0) hash ^= NumFailures.GetHashCode(); 3596 hash ^= RpcsByMethod.GetHashCode(); 3597 if (_unknownFields != null) { 3598 hash ^= _unknownFields.GetHashCode(); 3599 } 3600 return hash; 3601 } 3602 3603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()3604 public override string ToString() { 3605 return pb::JsonFormatter.ToDiagnosticString(this); 3606 } 3607 3608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)3609 public void WriteTo(pb::CodedOutputStream output) { 3610 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3611 output.WriteRawMessage(this); 3612 #else 3613 rpcsByPeer_.WriteTo(output, _map_rpcsByPeer_codec); 3614 if (NumFailures != 0) { 3615 output.WriteRawTag(16); 3616 output.WriteInt32(NumFailures); 3617 } 3618 rpcsByMethod_.WriteTo(output, _map_rpcsByMethod_codec); 3619 if (_unknownFields != null) { 3620 _unknownFields.WriteTo(output); 3621 } 3622 #endif 3623 } 3624 3625 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3627 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3628 rpcsByPeer_.WriteTo(ref output, _map_rpcsByPeer_codec); 3629 if (NumFailures != 0) { 3630 output.WriteRawTag(16); 3631 output.WriteInt32(NumFailures); 3632 } 3633 rpcsByMethod_.WriteTo(ref output, _map_rpcsByMethod_codec); 3634 if (_unknownFields != null) { 3635 _unknownFields.WriteTo(ref output); 3636 } 3637 } 3638 #endif 3639 3640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()3641 public int CalculateSize() { 3642 int size = 0; 3643 size += rpcsByPeer_.CalculateSize(_map_rpcsByPeer_codec); 3644 if (NumFailures != 0) { 3645 size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumFailures); 3646 } 3647 size += rpcsByMethod_.CalculateSize(_map_rpcsByMethod_codec); 3648 if (_unknownFields != null) { 3649 size += _unknownFields.CalculateSize(); 3650 } 3651 return size; 3652 } 3653 3654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(LoadBalancerStatsResponse other)3655 public void MergeFrom(LoadBalancerStatsResponse other) { 3656 if (other == null) { 3657 return; 3658 } 3659 rpcsByPeer_.Add(other.rpcsByPeer_); 3660 if (other.NumFailures != 0) { 3661 NumFailures = other.NumFailures; 3662 } 3663 rpcsByMethod_.Add(other.rpcsByMethod_); 3664 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3665 } 3666 3667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)3668 public void MergeFrom(pb::CodedInputStream input) { 3669 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3670 input.ReadRawMessage(this); 3671 #else 3672 uint tag; 3673 while ((tag = input.ReadTag()) != 0) { 3674 switch(tag) { 3675 default: 3676 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3677 break; 3678 case 10: { 3679 rpcsByPeer_.AddEntriesFrom(input, _map_rpcsByPeer_codec); 3680 break; 3681 } 3682 case 16: { 3683 NumFailures = input.ReadInt32(); 3684 break; 3685 } 3686 case 26: { 3687 rpcsByMethod_.AddEntriesFrom(input, _map_rpcsByMethod_codec); 3688 break; 3689 } 3690 } 3691 } 3692 #endif 3693 } 3694 3695 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3697 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3698 uint tag; 3699 while ((tag = input.ReadTag()) != 0) { 3700 switch(tag) { 3701 default: 3702 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3703 break; 3704 case 10: { 3705 rpcsByPeer_.AddEntriesFrom(ref input, _map_rpcsByPeer_codec); 3706 break; 3707 } 3708 case 16: { 3709 NumFailures = input.ReadInt32(); 3710 break; 3711 } 3712 case 26: { 3713 rpcsByMethod_.AddEntriesFrom(ref input, _map_rpcsByMethod_codec); 3714 break; 3715 } 3716 } 3717 } 3718 } 3719 #endif 3720 3721 #region Nested types 3722 /// <summary>Container for nested types declared in the LoadBalancerStatsResponse message type.</summary> 3723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3724 public static partial class Types { 3725 public sealed partial class RpcsByPeer : pb::IMessage<RpcsByPeer> 3726 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3727 , pb::IBufferMessage 3728 #endif 3729 { 3730 private static readonly pb::MessageParser<RpcsByPeer> _parser = new pb::MessageParser<RpcsByPeer>(() => new RpcsByPeer()); 3731 private pb::UnknownFieldSet _unknownFields; 3732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3733 public static pb::MessageParser<RpcsByPeer> Parser { get { return _parser; } } 3734 3735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3736 public static pbr::MessageDescriptor Descriptor { 3737 get { return global::Grpc.Testing.LoadBalancerStatsResponse.Descriptor.NestedTypes[0]; } 3738 } 3739 3740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3741 pbr::MessageDescriptor pb::IMessage.Descriptor { 3742 get { return Descriptor; } 3743 } 3744 3745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] RpcsByPeer()3746 public RpcsByPeer() { 3747 OnConstruction(); 3748 } 3749 OnConstruction()3750 partial void OnConstruction(); 3751 3752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] RpcsByPeer(RpcsByPeer other)3753 public RpcsByPeer(RpcsByPeer other) : this() { 3754 rpcsByPeer_ = other.rpcsByPeer_.Clone(); 3755 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3756 } 3757 3758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()3759 public RpcsByPeer Clone() { 3760 return new RpcsByPeer(this); 3761 } 3762 3763 /// <summary>Field number for the "rpcs_by_peer" field.</summary> 3764 public const int RpcsByPeer_FieldNumber = 1; 3765 private static readonly pbc::MapField<string, int>.Codec _map_rpcsByPeer_codec 3766 = new pbc::MapField<string, int>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 10); 3767 private readonly pbc::MapField<string, int> rpcsByPeer_ = new pbc::MapField<string, int>(); 3768 /// <summary> 3769 /// The number of completed RPCs for each peer. 3770 /// </summary> 3771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3772 public pbc::MapField<string, int> RpcsByPeer_ { 3773 get { return rpcsByPeer_; } 3774 } 3775 3776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)3777 public override bool Equals(object other) { 3778 return Equals(other as RpcsByPeer); 3779 } 3780 3781 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(RpcsByPeer other)3782 public bool Equals(RpcsByPeer other) { 3783 if (ReferenceEquals(other, null)) { 3784 return false; 3785 } 3786 if (ReferenceEquals(other, this)) { 3787 return true; 3788 } 3789 if (!RpcsByPeer_.Equals(other.RpcsByPeer_)) return false; 3790 return Equals(_unknownFields, other._unknownFields); 3791 } 3792 3793 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()3794 public override int GetHashCode() { 3795 int hash = 1; 3796 hash ^= RpcsByPeer_.GetHashCode(); 3797 if (_unknownFields != null) { 3798 hash ^= _unknownFields.GetHashCode(); 3799 } 3800 return hash; 3801 } 3802 3803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()3804 public override string ToString() { 3805 return pb::JsonFormatter.ToDiagnosticString(this); 3806 } 3807 3808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)3809 public void WriteTo(pb::CodedOutputStream output) { 3810 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3811 output.WriteRawMessage(this); 3812 #else 3813 rpcsByPeer_.WriteTo(output, _map_rpcsByPeer_codec); 3814 if (_unknownFields != null) { 3815 _unknownFields.WriteTo(output); 3816 } 3817 #endif 3818 } 3819 3820 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3822 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3823 rpcsByPeer_.WriteTo(ref output, _map_rpcsByPeer_codec); 3824 if (_unknownFields != null) { 3825 _unknownFields.WriteTo(ref output); 3826 } 3827 } 3828 #endif 3829 3830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()3831 public int CalculateSize() { 3832 int size = 0; 3833 size += rpcsByPeer_.CalculateSize(_map_rpcsByPeer_codec); 3834 if (_unknownFields != null) { 3835 size += _unknownFields.CalculateSize(); 3836 } 3837 return size; 3838 } 3839 3840 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(RpcsByPeer other)3841 public void MergeFrom(RpcsByPeer other) { 3842 if (other == null) { 3843 return; 3844 } 3845 rpcsByPeer_.Add(other.rpcsByPeer_); 3846 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3847 } 3848 3849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)3850 public void MergeFrom(pb::CodedInputStream input) { 3851 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3852 input.ReadRawMessage(this); 3853 #else 3854 uint tag; 3855 while ((tag = input.ReadTag()) != 0) { 3856 switch(tag) { 3857 default: 3858 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3859 break; 3860 case 10: { 3861 rpcsByPeer_.AddEntriesFrom(input, _map_rpcsByPeer_codec); 3862 break; 3863 } 3864 } 3865 } 3866 #endif 3867 } 3868 3869 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3871 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3872 uint tag; 3873 while ((tag = input.ReadTag()) != 0) { 3874 switch(tag) { 3875 default: 3876 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3877 break; 3878 case 10: { 3879 rpcsByPeer_.AddEntriesFrom(ref input, _map_rpcsByPeer_codec); 3880 break; 3881 } 3882 } 3883 } 3884 } 3885 #endif 3886 3887 } 3888 3889 } 3890 #endregion 3891 3892 } 3893 3894 /// <summary> 3895 /// Request for retrieving a test client's accumulated stats. 3896 /// </summary> 3897 public sealed partial class LoadBalancerAccumulatedStatsRequest : pb::IMessage<LoadBalancerAccumulatedStatsRequest> 3898 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3899 , pb::IBufferMessage 3900 #endif 3901 { 3902 private static readonly pb::MessageParser<LoadBalancerAccumulatedStatsRequest> _parser = new pb::MessageParser<LoadBalancerAccumulatedStatsRequest>(() => new LoadBalancerAccumulatedStatsRequest()); 3903 private pb::UnknownFieldSet _unknownFields; 3904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3905 public static pb::MessageParser<LoadBalancerAccumulatedStatsRequest> Parser { get { return _parser; } } 3906 3907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3908 public static pbr::MessageDescriptor Descriptor { 3909 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[14]; } 3910 } 3911 3912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3913 pbr::MessageDescriptor pb::IMessage.Descriptor { 3914 get { return Descriptor; } 3915 } 3916 3917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] LoadBalancerAccumulatedStatsRequest()3918 public LoadBalancerAccumulatedStatsRequest() { 3919 OnConstruction(); 3920 } 3921 OnConstruction()3922 partial void OnConstruction(); 3923 3924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] LoadBalancerAccumulatedStatsRequest(LoadBalancerAccumulatedStatsRequest other)3925 public LoadBalancerAccumulatedStatsRequest(LoadBalancerAccumulatedStatsRequest other) : this() { 3926 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3927 } 3928 3929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()3930 public LoadBalancerAccumulatedStatsRequest Clone() { 3931 return new LoadBalancerAccumulatedStatsRequest(this); 3932 } 3933 3934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)3935 public override bool Equals(object other) { 3936 return Equals(other as LoadBalancerAccumulatedStatsRequest); 3937 } 3938 3939 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(LoadBalancerAccumulatedStatsRequest other)3940 public bool Equals(LoadBalancerAccumulatedStatsRequest other) { 3941 if (ReferenceEquals(other, null)) { 3942 return false; 3943 } 3944 if (ReferenceEquals(other, this)) { 3945 return true; 3946 } 3947 return Equals(_unknownFields, other._unknownFields); 3948 } 3949 3950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()3951 public override int GetHashCode() { 3952 int hash = 1; 3953 if (_unknownFields != null) { 3954 hash ^= _unknownFields.GetHashCode(); 3955 } 3956 return hash; 3957 } 3958 3959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()3960 public override string ToString() { 3961 return pb::JsonFormatter.ToDiagnosticString(this); 3962 } 3963 3964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)3965 public void WriteTo(pb::CodedOutputStream output) { 3966 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3967 output.WriteRawMessage(this); 3968 #else 3969 if (_unknownFields != null) { 3970 _unknownFields.WriteTo(output); 3971 } 3972 #endif 3973 } 3974 3975 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3977 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3978 if (_unknownFields != null) { 3979 _unknownFields.WriteTo(ref output); 3980 } 3981 } 3982 #endif 3983 3984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()3985 public int CalculateSize() { 3986 int size = 0; 3987 if (_unknownFields != null) { 3988 size += _unknownFields.CalculateSize(); 3989 } 3990 return size; 3991 } 3992 3993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(LoadBalancerAccumulatedStatsRequest other)3994 public void MergeFrom(LoadBalancerAccumulatedStatsRequest other) { 3995 if (other == null) { 3996 return; 3997 } 3998 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3999 } 4000 4001 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)4002 public void MergeFrom(pb::CodedInputStream input) { 4003 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4004 input.ReadRawMessage(this); 4005 #else 4006 uint tag; 4007 while ((tag = input.ReadTag()) != 0) { 4008 switch(tag) { 4009 default: 4010 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 4011 break; 4012 } 4013 } 4014 #endif 4015 } 4016 4017 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4019 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 4020 uint tag; 4021 while ((tag = input.ReadTag()) != 0) { 4022 switch(tag) { 4023 default: 4024 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 4025 break; 4026 } 4027 } 4028 } 4029 #endif 4030 4031 } 4032 4033 /// <summary> 4034 /// Accumulated stats for RPCs sent by a test client. 4035 /// </summary> 4036 public sealed partial class LoadBalancerAccumulatedStatsResponse : pb::IMessage<LoadBalancerAccumulatedStatsResponse> 4037 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4038 , pb::IBufferMessage 4039 #endif 4040 { 4041 private static readonly pb::MessageParser<LoadBalancerAccumulatedStatsResponse> _parser = new pb::MessageParser<LoadBalancerAccumulatedStatsResponse>(() => new LoadBalancerAccumulatedStatsResponse()); 4042 private pb::UnknownFieldSet _unknownFields; 4043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4044 public static pb::MessageParser<LoadBalancerAccumulatedStatsResponse> Parser { get { return _parser; } } 4045 4046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4047 public static pbr::MessageDescriptor Descriptor { 4048 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[15]; } 4049 } 4050 4051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4052 pbr::MessageDescriptor pb::IMessage.Descriptor { 4053 get { return Descriptor; } 4054 } 4055 4056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] LoadBalancerAccumulatedStatsResponse()4057 public LoadBalancerAccumulatedStatsResponse() { 4058 OnConstruction(); 4059 } 4060 OnConstruction()4061 partial void OnConstruction(); 4062 4063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] LoadBalancerAccumulatedStatsResponse(LoadBalancerAccumulatedStatsResponse other)4064 public LoadBalancerAccumulatedStatsResponse(LoadBalancerAccumulatedStatsResponse other) : this() { 4065 numRpcsStartedByMethod_ = other.numRpcsStartedByMethod_.Clone(); 4066 numRpcsSucceededByMethod_ = other.numRpcsSucceededByMethod_.Clone(); 4067 numRpcsFailedByMethod_ = other.numRpcsFailedByMethod_.Clone(); 4068 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 4069 } 4070 4071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()4072 public LoadBalancerAccumulatedStatsResponse Clone() { 4073 return new LoadBalancerAccumulatedStatsResponse(this); 4074 } 4075 4076 /// <summary>Field number for the "num_rpcs_started_by_method" field.</summary> 4077 public const int NumRpcsStartedByMethodFieldNumber = 1; 4078 private static readonly pbc::MapField<string, int>.Codec _map_numRpcsStartedByMethod_codec 4079 = new pbc::MapField<string, int>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 10); 4080 private readonly pbc::MapField<string, int> numRpcsStartedByMethod_ = new pbc::MapField<string, int>(); 4081 /// <summary> 4082 /// The total number of RPCs have ever issued for each type. 4083 /// </summary> 4084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4085 public pbc::MapField<string, int> NumRpcsStartedByMethod { 4086 get { return numRpcsStartedByMethod_; } 4087 } 4088 4089 /// <summary>Field number for the "num_rpcs_succeeded_by_method" field.</summary> 4090 public const int NumRpcsSucceededByMethodFieldNumber = 2; 4091 private static readonly pbc::MapField<string, int>.Codec _map_numRpcsSucceededByMethod_codec 4092 = new pbc::MapField<string, int>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 18); 4093 private readonly pbc::MapField<string, int> numRpcsSucceededByMethod_ = new pbc::MapField<string, int>(); 4094 /// <summary> 4095 /// The total number of RPCs have ever completed successfully for each type. 4096 /// </summary> 4097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4098 public pbc::MapField<string, int> NumRpcsSucceededByMethod { 4099 get { return numRpcsSucceededByMethod_; } 4100 } 4101 4102 /// <summary>Field number for the "num_rpcs_failed_by_method" field.</summary> 4103 public const int NumRpcsFailedByMethodFieldNumber = 3; 4104 private static readonly pbc::MapField<string, int>.Codec _map_numRpcsFailedByMethod_codec 4105 = new pbc::MapField<string, int>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 26); 4106 private readonly pbc::MapField<string, int> numRpcsFailedByMethod_ = new pbc::MapField<string, int>(); 4107 /// <summary> 4108 /// The total number of RPCs have ever failed for each type. 4109 /// </summary> 4110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4111 public pbc::MapField<string, int> NumRpcsFailedByMethod { 4112 get { return numRpcsFailedByMethod_; } 4113 } 4114 4115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)4116 public override bool Equals(object other) { 4117 return Equals(other as LoadBalancerAccumulatedStatsResponse); 4118 } 4119 4120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(LoadBalancerAccumulatedStatsResponse other)4121 public bool Equals(LoadBalancerAccumulatedStatsResponse other) { 4122 if (ReferenceEquals(other, null)) { 4123 return false; 4124 } 4125 if (ReferenceEquals(other, this)) { 4126 return true; 4127 } 4128 if (!NumRpcsStartedByMethod.Equals(other.NumRpcsStartedByMethod)) return false; 4129 if (!NumRpcsSucceededByMethod.Equals(other.NumRpcsSucceededByMethod)) return false; 4130 if (!NumRpcsFailedByMethod.Equals(other.NumRpcsFailedByMethod)) return false; 4131 return Equals(_unknownFields, other._unknownFields); 4132 } 4133 4134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()4135 public override int GetHashCode() { 4136 int hash = 1; 4137 hash ^= NumRpcsStartedByMethod.GetHashCode(); 4138 hash ^= NumRpcsSucceededByMethod.GetHashCode(); 4139 hash ^= NumRpcsFailedByMethod.GetHashCode(); 4140 if (_unknownFields != null) { 4141 hash ^= _unknownFields.GetHashCode(); 4142 } 4143 return hash; 4144 } 4145 4146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()4147 public override string ToString() { 4148 return pb::JsonFormatter.ToDiagnosticString(this); 4149 } 4150 4151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)4152 public void WriteTo(pb::CodedOutputStream output) { 4153 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4154 output.WriteRawMessage(this); 4155 #else 4156 numRpcsStartedByMethod_.WriteTo(output, _map_numRpcsStartedByMethod_codec); 4157 numRpcsSucceededByMethod_.WriteTo(output, _map_numRpcsSucceededByMethod_codec); 4158 numRpcsFailedByMethod_.WriteTo(output, _map_numRpcsFailedByMethod_codec); 4159 if (_unknownFields != null) { 4160 _unknownFields.WriteTo(output); 4161 } 4162 #endif 4163 } 4164 4165 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4167 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 4168 numRpcsStartedByMethod_.WriteTo(ref output, _map_numRpcsStartedByMethod_codec); 4169 numRpcsSucceededByMethod_.WriteTo(ref output, _map_numRpcsSucceededByMethod_codec); 4170 numRpcsFailedByMethod_.WriteTo(ref output, _map_numRpcsFailedByMethod_codec); 4171 if (_unknownFields != null) { 4172 _unknownFields.WriteTo(ref output); 4173 } 4174 } 4175 #endif 4176 4177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()4178 public int CalculateSize() { 4179 int size = 0; 4180 size += numRpcsStartedByMethod_.CalculateSize(_map_numRpcsStartedByMethod_codec); 4181 size += numRpcsSucceededByMethod_.CalculateSize(_map_numRpcsSucceededByMethod_codec); 4182 size += numRpcsFailedByMethod_.CalculateSize(_map_numRpcsFailedByMethod_codec); 4183 if (_unknownFields != null) { 4184 size += _unknownFields.CalculateSize(); 4185 } 4186 return size; 4187 } 4188 4189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(LoadBalancerAccumulatedStatsResponse other)4190 public void MergeFrom(LoadBalancerAccumulatedStatsResponse other) { 4191 if (other == null) { 4192 return; 4193 } 4194 numRpcsStartedByMethod_.Add(other.numRpcsStartedByMethod_); 4195 numRpcsSucceededByMethod_.Add(other.numRpcsSucceededByMethod_); 4196 numRpcsFailedByMethod_.Add(other.numRpcsFailedByMethod_); 4197 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 4198 } 4199 4200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)4201 public void MergeFrom(pb::CodedInputStream input) { 4202 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4203 input.ReadRawMessage(this); 4204 #else 4205 uint tag; 4206 while ((tag = input.ReadTag()) != 0) { 4207 switch(tag) { 4208 default: 4209 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 4210 break; 4211 case 10: { 4212 numRpcsStartedByMethod_.AddEntriesFrom(input, _map_numRpcsStartedByMethod_codec); 4213 break; 4214 } 4215 case 18: { 4216 numRpcsSucceededByMethod_.AddEntriesFrom(input, _map_numRpcsSucceededByMethod_codec); 4217 break; 4218 } 4219 case 26: { 4220 numRpcsFailedByMethod_.AddEntriesFrom(input, _map_numRpcsFailedByMethod_codec); 4221 break; 4222 } 4223 } 4224 } 4225 #endif 4226 } 4227 4228 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4230 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 4231 uint tag; 4232 while ((tag = input.ReadTag()) != 0) { 4233 switch(tag) { 4234 default: 4235 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 4236 break; 4237 case 10: { 4238 numRpcsStartedByMethod_.AddEntriesFrom(ref input, _map_numRpcsStartedByMethod_codec); 4239 break; 4240 } 4241 case 18: { 4242 numRpcsSucceededByMethod_.AddEntriesFrom(ref input, _map_numRpcsSucceededByMethod_codec); 4243 break; 4244 } 4245 case 26: { 4246 numRpcsFailedByMethod_.AddEntriesFrom(ref input, _map_numRpcsFailedByMethod_codec); 4247 break; 4248 } 4249 } 4250 } 4251 } 4252 #endif 4253 4254 } 4255 4256 /// <summary> 4257 /// Configurations for a test client. 4258 /// </summary> 4259 public sealed partial class ClientConfigureRequest : pb::IMessage<ClientConfigureRequest> 4260 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4261 , pb::IBufferMessage 4262 #endif 4263 { 4264 private static readonly pb::MessageParser<ClientConfigureRequest> _parser = new pb::MessageParser<ClientConfigureRequest>(() => new ClientConfigureRequest()); 4265 private pb::UnknownFieldSet _unknownFields; 4266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4267 public static pb::MessageParser<ClientConfigureRequest> Parser { get { return _parser; } } 4268 4269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4270 public static pbr::MessageDescriptor Descriptor { 4271 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[16]; } 4272 } 4273 4274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4275 pbr::MessageDescriptor pb::IMessage.Descriptor { 4276 get { return Descriptor; } 4277 } 4278 4279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ClientConfigureRequest()4280 public ClientConfigureRequest() { 4281 OnConstruction(); 4282 } 4283 OnConstruction()4284 partial void OnConstruction(); 4285 4286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ClientConfigureRequest(ClientConfigureRequest other)4287 public ClientConfigureRequest(ClientConfigureRequest other) : this() { 4288 types_ = other.types_.Clone(); 4289 metadata_ = other.metadata_.Clone(); 4290 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 4291 } 4292 4293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()4294 public ClientConfigureRequest Clone() { 4295 return new ClientConfigureRequest(this); 4296 } 4297 4298 /// <summary>Field number for the "types" field.</summary> 4299 public const int Types_FieldNumber = 1; 4300 private static readonly pb::FieldCodec<global::Grpc.Testing.ClientConfigureRequest.Types.RpcType> _repeated_types_codec 4301 = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Grpc.Testing.ClientConfigureRequest.Types.RpcType) x); 4302 private readonly pbc::RepeatedField<global::Grpc.Testing.ClientConfigureRequest.Types.RpcType> types_ = new pbc::RepeatedField<global::Grpc.Testing.ClientConfigureRequest.Types.RpcType>(); 4303 /// <summary> 4304 /// The types of RPCs the client sends. 4305 /// </summary> 4306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4307 public pbc::RepeatedField<global::Grpc.Testing.ClientConfigureRequest.Types.RpcType> Types_ { 4308 get { return types_; } 4309 } 4310 4311 /// <summary>Field number for the "metadata" field.</summary> 4312 public const int MetadataFieldNumber = 2; 4313 private static readonly pb::FieldCodec<global::Grpc.Testing.ClientConfigureRequest.Types.Metadata> _repeated_metadata_codec 4314 = pb::FieldCodec.ForMessage(18, global::Grpc.Testing.ClientConfigureRequest.Types.Metadata.Parser); 4315 private readonly pbc::RepeatedField<global::Grpc.Testing.ClientConfigureRequest.Types.Metadata> metadata_ = new pbc::RepeatedField<global::Grpc.Testing.ClientConfigureRequest.Types.Metadata>(); 4316 /// <summary> 4317 /// The collection of custom metadata to be attached to RPCs sent by the client. 4318 /// </summary> 4319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4320 public pbc::RepeatedField<global::Grpc.Testing.ClientConfigureRequest.Types.Metadata> Metadata { 4321 get { return metadata_; } 4322 } 4323 4324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)4325 public override bool Equals(object other) { 4326 return Equals(other as ClientConfigureRequest); 4327 } 4328 4329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ClientConfigureRequest other)4330 public bool Equals(ClientConfigureRequest other) { 4331 if (ReferenceEquals(other, null)) { 4332 return false; 4333 } 4334 if (ReferenceEquals(other, this)) { 4335 return true; 4336 } 4337 if(!types_.Equals(other.types_)) return false; 4338 if(!metadata_.Equals(other.metadata_)) return false; 4339 return Equals(_unknownFields, other._unknownFields); 4340 } 4341 4342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()4343 public override int GetHashCode() { 4344 int hash = 1; 4345 hash ^= types_.GetHashCode(); 4346 hash ^= metadata_.GetHashCode(); 4347 if (_unknownFields != null) { 4348 hash ^= _unknownFields.GetHashCode(); 4349 } 4350 return hash; 4351 } 4352 4353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()4354 public override string ToString() { 4355 return pb::JsonFormatter.ToDiagnosticString(this); 4356 } 4357 4358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)4359 public void WriteTo(pb::CodedOutputStream output) { 4360 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4361 output.WriteRawMessage(this); 4362 #else 4363 types_.WriteTo(output, _repeated_types_codec); 4364 metadata_.WriteTo(output, _repeated_metadata_codec); 4365 if (_unknownFields != null) { 4366 _unknownFields.WriteTo(output); 4367 } 4368 #endif 4369 } 4370 4371 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4373 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 4374 types_.WriteTo(ref output, _repeated_types_codec); 4375 metadata_.WriteTo(ref output, _repeated_metadata_codec); 4376 if (_unknownFields != null) { 4377 _unknownFields.WriteTo(ref output); 4378 } 4379 } 4380 #endif 4381 4382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()4383 public int CalculateSize() { 4384 int size = 0; 4385 size += types_.CalculateSize(_repeated_types_codec); 4386 size += metadata_.CalculateSize(_repeated_metadata_codec); 4387 if (_unknownFields != null) { 4388 size += _unknownFields.CalculateSize(); 4389 } 4390 return size; 4391 } 4392 4393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ClientConfigureRequest other)4394 public void MergeFrom(ClientConfigureRequest other) { 4395 if (other == null) { 4396 return; 4397 } 4398 types_.Add(other.types_); 4399 metadata_.Add(other.metadata_); 4400 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 4401 } 4402 4403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)4404 public void MergeFrom(pb::CodedInputStream input) { 4405 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4406 input.ReadRawMessage(this); 4407 #else 4408 uint tag; 4409 while ((tag = input.ReadTag()) != 0) { 4410 switch(tag) { 4411 default: 4412 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 4413 break; 4414 case 10: 4415 case 8: { 4416 types_.AddEntriesFrom(input, _repeated_types_codec); 4417 break; 4418 } 4419 case 18: { 4420 metadata_.AddEntriesFrom(input, _repeated_metadata_codec); 4421 break; 4422 } 4423 } 4424 } 4425 #endif 4426 } 4427 4428 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4430 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 4431 uint tag; 4432 while ((tag = input.ReadTag()) != 0) { 4433 switch(tag) { 4434 default: 4435 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 4436 break; 4437 case 10: 4438 case 8: { 4439 types_.AddEntriesFrom(ref input, _repeated_types_codec); 4440 break; 4441 } 4442 case 18: { 4443 metadata_.AddEntriesFrom(ref input, _repeated_metadata_codec); 4444 break; 4445 } 4446 } 4447 } 4448 } 4449 #endif 4450 4451 #region Nested types 4452 /// <summary>Container for nested types declared in the ClientConfigureRequest message type.</summary> 4453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4454 public static partial class Types { 4455 /// <summary> 4456 /// Type of RPCs to send. 4457 /// </summary> 4458 public enum RpcType { 4459 [pbr::OriginalName("EMPTY_CALL")] EmptyCall = 0, 4460 [pbr::OriginalName("UNARY_CALL")] UnaryCall = 1, 4461 } 4462 4463 /// <summary> 4464 /// Metadata to be attached for the given type of RPCs. 4465 /// </summary> 4466 public sealed partial class Metadata : pb::IMessage<Metadata> 4467 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4468 , pb::IBufferMessage 4469 #endif 4470 { 4471 private static readonly pb::MessageParser<Metadata> _parser = new pb::MessageParser<Metadata>(() => new Metadata()); 4472 private pb::UnknownFieldSet _unknownFields; 4473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4474 public static pb::MessageParser<Metadata> Parser { get { return _parser; } } 4475 4476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4477 public static pbr::MessageDescriptor Descriptor { 4478 get { return global::Grpc.Testing.ClientConfigureRequest.Descriptor.NestedTypes[0]; } 4479 } 4480 4481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4482 pbr::MessageDescriptor pb::IMessage.Descriptor { 4483 get { return Descriptor; } 4484 } 4485 4486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Metadata()4487 public Metadata() { 4488 OnConstruction(); 4489 } 4490 OnConstruction()4491 partial void OnConstruction(); 4492 4493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Metadata(Metadata other)4494 public Metadata(Metadata other) : this() { 4495 type_ = other.type_; 4496 key_ = other.key_; 4497 value_ = other.value_; 4498 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 4499 } 4500 4501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()4502 public Metadata Clone() { 4503 return new Metadata(this); 4504 } 4505 4506 /// <summary>Field number for the "type" field.</summary> 4507 public const int TypeFieldNumber = 1; 4508 private global::Grpc.Testing.ClientConfigureRequest.Types.RpcType type_ = global::Grpc.Testing.ClientConfigureRequest.Types.RpcType.EmptyCall; 4509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4510 public global::Grpc.Testing.ClientConfigureRequest.Types.RpcType Type { 4511 get { return type_; } 4512 set { 4513 type_ = value; 4514 } 4515 } 4516 4517 /// <summary>Field number for the "key" field.</summary> 4518 public const int KeyFieldNumber = 2; 4519 private string key_ = ""; 4520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4521 public string Key { 4522 get { return key_; } 4523 set { 4524 key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 4525 } 4526 } 4527 4528 /// <summary>Field number for the "value" field.</summary> 4529 public const int ValueFieldNumber = 3; 4530 private string value_ = ""; 4531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4532 public string Value { 4533 get { return value_; } 4534 set { 4535 value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 4536 } 4537 } 4538 4539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)4540 public override bool Equals(object other) { 4541 return Equals(other as Metadata); 4542 } 4543 4544 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(Metadata other)4545 public bool Equals(Metadata other) { 4546 if (ReferenceEquals(other, null)) { 4547 return false; 4548 } 4549 if (ReferenceEquals(other, this)) { 4550 return true; 4551 } 4552 if (Type != other.Type) return false; 4553 if (Key != other.Key) return false; 4554 if (Value != other.Value) return false; 4555 return Equals(_unknownFields, other._unknownFields); 4556 } 4557 4558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()4559 public override int GetHashCode() { 4560 int hash = 1; 4561 if (Type != global::Grpc.Testing.ClientConfigureRequest.Types.RpcType.EmptyCall) hash ^= Type.GetHashCode(); 4562 if (Key.Length != 0) hash ^= Key.GetHashCode(); 4563 if (Value.Length != 0) hash ^= Value.GetHashCode(); 4564 if (_unknownFields != null) { 4565 hash ^= _unknownFields.GetHashCode(); 4566 } 4567 return hash; 4568 } 4569 4570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()4571 public override string ToString() { 4572 return pb::JsonFormatter.ToDiagnosticString(this); 4573 } 4574 4575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)4576 public void WriteTo(pb::CodedOutputStream output) { 4577 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4578 output.WriteRawMessage(this); 4579 #else 4580 if (Type != global::Grpc.Testing.ClientConfigureRequest.Types.RpcType.EmptyCall) { 4581 output.WriteRawTag(8); 4582 output.WriteEnum((int) Type); 4583 } 4584 if (Key.Length != 0) { 4585 output.WriteRawTag(18); 4586 output.WriteString(Key); 4587 } 4588 if (Value.Length != 0) { 4589 output.WriteRawTag(26); 4590 output.WriteString(Value); 4591 } 4592 if (_unknownFields != null) { 4593 _unknownFields.WriteTo(output); 4594 } 4595 #endif 4596 } 4597 4598 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4600 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 4601 if (Type != global::Grpc.Testing.ClientConfigureRequest.Types.RpcType.EmptyCall) { 4602 output.WriteRawTag(8); 4603 output.WriteEnum((int) Type); 4604 } 4605 if (Key.Length != 0) { 4606 output.WriteRawTag(18); 4607 output.WriteString(Key); 4608 } 4609 if (Value.Length != 0) { 4610 output.WriteRawTag(26); 4611 output.WriteString(Value); 4612 } 4613 if (_unknownFields != null) { 4614 _unknownFields.WriteTo(ref output); 4615 } 4616 } 4617 #endif 4618 4619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()4620 public int CalculateSize() { 4621 int size = 0; 4622 if (Type != global::Grpc.Testing.ClientConfigureRequest.Types.RpcType.EmptyCall) { 4623 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); 4624 } 4625 if (Key.Length != 0) { 4626 size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); 4627 } 4628 if (Value.Length != 0) { 4629 size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); 4630 } 4631 if (_unknownFields != null) { 4632 size += _unknownFields.CalculateSize(); 4633 } 4634 return size; 4635 } 4636 4637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(Metadata other)4638 public void MergeFrom(Metadata other) { 4639 if (other == null) { 4640 return; 4641 } 4642 if (other.Type != global::Grpc.Testing.ClientConfigureRequest.Types.RpcType.EmptyCall) { 4643 Type = other.Type; 4644 } 4645 if (other.Key.Length != 0) { 4646 Key = other.Key; 4647 } 4648 if (other.Value.Length != 0) { 4649 Value = other.Value; 4650 } 4651 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 4652 } 4653 4654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)4655 public void MergeFrom(pb::CodedInputStream input) { 4656 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4657 input.ReadRawMessage(this); 4658 #else 4659 uint tag; 4660 while ((tag = input.ReadTag()) != 0) { 4661 switch(tag) { 4662 default: 4663 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 4664 break; 4665 case 8: { 4666 Type = (global::Grpc.Testing.ClientConfigureRequest.Types.RpcType) input.ReadEnum(); 4667 break; 4668 } 4669 case 18: { 4670 Key = input.ReadString(); 4671 break; 4672 } 4673 case 26: { 4674 Value = input.ReadString(); 4675 break; 4676 } 4677 } 4678 } 4679 #endif 4680 } 4681 4682 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4684 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 4685 uint tag; 4686 while ((tag = input.ReadTag()) != 0) { 4687 switch(tag) { 4688 default: 4689 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 4690 break; 4691 case 8: { 4692 Type = (global::Grpc.Testing.ClientConfigureRequest.Types.RpcType) input.ReadEnum(); 4693 break; 4694 } 4695 case 18: { 4696 Key = input.ReadString(); 4697 break; 4698 } 4699 case 26: { 4700 Value = input.ReadString(); 4701 break; 4702 } 4703 } 4704 } 4705 } 4706 #endif 4707 4708 } 4709 4710 } 4711 #endregion 4712 4713 } 4714 4715 /// <summary> 4716 /// Response for updating a test client's configuration. 4717 /// </summary> 4718 public sealed partial class ClientConfigureResponse : pb::IMessage<ClientConfigureResponse> 4719 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4720 , pb::IBufferMessage 4721 #endif 4722 { 4723 private static readonly pb::MessageParser<ClientConfigureResponse> _parser = new pb::MessageParser<ClientConfigureResponse>(() => new ClientConfigureResponse()); 4724 private pb::UnknownFieldSet _unknownFields; 4725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4726 public static pb::MessageParser<ClientConfigureResponse> Parser { get { return _parser; } } 4727 4728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4729 public static pbr::MessageDescriptor Descriptor { 4730 get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[17]; } 4731 } 4732 4733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4734 pbr::MessageDescriptor pb::IMessage.Descriptor { 4735 get { return Descriptor; } 4736 } 4737 4738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ClientConfigureResponse()4739 public ClientConfigureResponse() { 4740 OnConstruction(); 4741 } 4742 OnConstruction()4743 partial void OnConstruction(); 4744 4745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ClientConfigureResponse(ClientConfigureResponse other)4746 public ClientConfigureResponse(ClientConfigureResponse other) : this() { 4747 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 4748 } 4749 4750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()4751 public ClientConfigureResponse Clone() { 4752 return new ClientConfigureResponse(this); 4753 } 4754 4755 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)4756 public override bool Equals(object other) { 4757 return Equals(other as ClientConfigureResponse); 4758 } 4759 4760 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ClientConfigureResponse other)4761 public bool Equals(ClientConfigureResponse other) { 4762 if (ReferenceEquals(other, null)) { 4763 return false; 4764 } 4765 if (ReferenceEquals(other, this)) { 4766 return true; 4767 } 4768 return Equals(_unknownFields, other._unknownFields); 4769 } 4770 4771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()4772 public override int GetHashCode() { 4773 int hash = 1; 4774 if (_unknownFields != null) { 4775 hash ^= _unknownFields.GetHashCode(); 4776 } 4777 return hash; 4778 } 4779 4780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()4781 public override string ToString() { 4782 return pb::JsonFormatter.ToDiagnosticString(this); 4783 } 4784 4785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)4786 public void WriteTo(pb::CodedOutputStream output) { 4787 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4788 output.WriteRawMessage(this); 4789 #else 4790 if (_unknownFields != null) { 4791 _unknownFields.WriteTo(output); 4792 } 4793 #endif 4794 } 4795 4796 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4798 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 4799 if (_unknownFields != null) { 4800 _unknownFields.WriteTo(ref output); 4801 } 4802 } 4803 #endif 4804 4805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()4806 public int CalculateSize() { 4807 int size = 0; 4808 if (_unknownFields != null) { 4809 size += _unknownFields.CalculateSize(); 4810 } 4811 return size; 4812 } 4813 4814 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ClientConfigureResponse other)4815 public void MergeFrom(ClientConfigureResponse other) { 4816 if (other == null) { 4817 return; 4818 } 4819 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 4820 } 4821 4822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)4823 public void MergeFrom(pb::CodedInputStream input) { 4824 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4825 input.ReadRawMessage(this); 4826 #else 4827 uint tag; 4828 while ((tag = input.ReadTag()) != 0) { 4829 switch(tag) { 4830 default: 4831 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 4832 break; 4833 } 4834 } 4835 #endif 4836 } 4837 4838 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4840 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 4841 uint tag; 4842 while ((tag = input.ReadTag()) != 0) { 4843 switch(tag) { 4844 default: 4845 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 4846 break; 4847 } 4848 } 4849 } 4850 #endif 4851 4852 } 4853 4854 #endregion 4855 4856 } 4857 4858 #endregion Designer generated code 4859