regenerate C# protos

pull/4787/head
Jan Tattermusch 9 years ago
parent 75849e4561
commit 72ce442d61
  1. 96
      src/csharp/Grpc.Examples/Math.cs
  2. 2
      src/csharp/Grpc.Examples/MathGrpc.cs
  3. 73
      src/csharp/Grpc.HealthCheck/Health.cs
  4. 2
      src/csharp/Grpc.HealthCheck/HealthGrpc.cs
  5. 285
      src/csharp/Grpc.IntegrationTesting/Control.cs
  6. 60
      src/csharp/Grpc.IntegrationTesting/Empty.cs
  7. 279
      src/csharp/Grpc.IntegrationTesting/Messages.cs
  8. 66
      src/csharp/Grpc.IntegrationTesting/Payloads.cs
  9. 34
      src/csharp/Grpc.IntegrationTesting/Services.cs
  10. 6
      src/csharp/Grpc.IntegrationTesting/ServicesGrpc.cs
  11. 97
      src/csharp/Grpc.IntegrationTesting/Stats.cs
  12. 53
      src/csharp/Grpc.IntegrationTesting/Test.cs
  13. 8
      src/csharp/Grpc.IntegrationTesting/TestGrpc.cs

@ -9,42 +9,41 @@ using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic; using scg = global::System.Collections.Generic;
namespace Math { namespace Math {
namespace Proto { /// <summary>Holder for reflection information generated from math.proto</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public static partial class MathReflection {
public static partial class Math {
#region Descriptor
#region Descriptor /// <summary>File descriptor for math.proto</summary>
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
} }
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static Math() { static MathReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CgptYXRoLnByb3RvEgRtYXRoIiwKB0RpdkFyZ3MSEAoIZGl2aWRlbmQYASAB", "CgptYXRoLnByb3RvEgRtYXRoIiwKB0RpdkFyZ3MSEAoIZGl2aWRlbmQYASAB",
"KAMSDwoHZGl2aXNvchgCIAEoAyIvCghEaXZSZXBseRIQCghxdW90aWVudBgB", "KAMSDwoHZGl2aXNvchgCIAEoAyIvCghEaXZSZXBseRIQCghxdW90aWVudBgB",
"IAEoAxIRCglyZW1haW5kZXIYAiABKAMiGAoHRmliQXJncxINCgVsaW1pdBgB", "IAEoAxIRCglyZW1haW5kZXIYAiABKAMiGAoHRmliQXJncxINCgVsaW1pdBgB",
"IAEoAyISCgNOdW0SCwoDbnVtGAEgASgDIhkKCEZpYlJlcGx5Eg0KBWNvdW50", "IAEoAyISCgNOdW0SCwoDbnVtGAEgASgDIhkKCEZpYlJlcGx5Eg0KBWNvdW50",
"GAEgASgDMqQBCgRNYXRoEiYKA0RpdhINLm1hdGguRGl2QXJncxoOLm1hdGgu", "GAEgASgDMqQBCgRNYXRoEiYKA0RpdhINLm1hdGguRGl2QXJncxoOLm1hdGgu",
"RGl2UmVwbHkiABIuCgdEaXZNYW55Eg0ubWF0aC5EaXZBcmdzGg4ubWF0aC5E", "RGl2UmVwbHkiABIuCgdEaXZNYW55Eg0ubWF0aC5EaXZBcmdzGg4ubWF0aC5E",
"aXZSZXBseSIAKAEwARIjCgNGaWISDS5tYXRoLkZpYkFyZ3MaCS5tYXRoLk51", "aXZSZXBseSIAKAEwARIjCgNGaWISDS5tYXRoLkZpYkFyZ3MaCS5tYXRoLk51",
"bSIAMAESHwoDU3VtEgkubWF0aC5OdW0aCS5tYXRoLk51bSIAKAFiBnByb3Rv", "bSIAMAESHwoDU3VtEgkubWF0aC5OdW0aCS5tYXRoLk51bSIAKAFiBnByb3Rv",
"Mw==")); "Mw=="));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { }, new pbr::FileDescriptor[] { },
new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
new pbr::GeneratedCodeInfo(typeof(global::Math.DivArgs), new[]{ "Dividend", "Divisor" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Math.DivArgs), global::Math.DivArgs.Parser, new[]{ "Dividend", "Divisor" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Math.DivReply), new[]{ "Quotient", "Remainder" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Math.DivReply), global::Math.DivReply.Parser, new[]{ "Quotient", "Remainder" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Math.FibArgs), new[]{ "Limit" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Math.FibArgs), global::Math.FibArgs.Parser, new[]{ "Limit" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Math.Num), new[]{ "Num_" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Math.Num), global::Math.Num.Parser, new[]{ "Num_" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Math.FibReply), new[]{ "Count" }, null, null, null) new pbr::GeneratedCodeInfo(typeof(global::Math.FibReply), global::Math.FibReply.Parser, new[]{ "Count" }, null, null, null)
})); }));
} }
#endregion #endregion
}
} }
#region Messages #region Messages
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@ -53,7 +52,7 @@ namespace Math {
public static pb::MessageParser<DivArgs> Parser { get { return _parser; } } public static pb::MessageParser<DivArgs> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Math.Proto.Math.Descriptor.MessageTypes[0]; } get { return global::Math.MathReflection.Descriptor.MessageTypes[0]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -75,6 +74,7 @@ namespace Math {
return new DivArgs(this); return new DivArgs(this);
} }
/// <summary>Field number for the "dividend" field.</summary>
public const int DividendFieldNumber = 1; public const int DividendFieldNumber = 1;
private long dividend_; private long dividend_;
public long Dividend { public long Dividend {
@ -84,6 +84,7 @@ namespace Math {
} }
} }
/// <summary>Field number for the "divisor" field.</summary>
public const int DivisorFieldNumber = 2; public const int DivisorFieldNumber = 2;
private long divisor_; private long divisor_;
public long Divisor { public long Divisor {
@ -117,7 +118,7 @@ namespace Math {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -181,7 +182,7 @@ namespace Math {
public static pb::MessageParser<DivReply> Parser { get { return _parser; } } public static pb::MessageParser<DivReply> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Math.Proto.Math.Descriptor.MessageTypes[1]; } get { return global::Math.MathReflection.Descriptor.MessageTypes[1]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -203,6 +204,7 @@ namespace Math {
return new DivReply(this); return new DivReply(this);
} }
/// <summary>Field number for the "quotient" field.</summary>
public const int QuotientFieldNumber = 1; public const int QuotientFieldNumber = 1;
private long quotient_; private long quotient_;
public long Quotient { public long Quotient {
@ -212,6 +214,7 @@ namespace Math {
} }
} }
/// <summary>Field number for the "remainder" field.</summary>
public const int RemainderFieldNumber = 2; public const int RemainderFieldNumber = 2;
private long remainder_; private long remainder_;
public long Remainder { public long Remainder {
@ -245,7 +248,7 @@ namespace Math {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -309,7 +312,7 @@ namespace Math {
public static pb::MessageParser<FibArgs> Parser { get { return _parser; } } public static pb::MessageParser<FibArgs> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Math.Proto.Math.Descriptor.MessageTypes[2]; } get { return global::Math.MathReflection.Descriptor.MessageTypes[2]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -330,6 +333,7 @@ namespace Math {
return new FibArgs(this); return new FibArgs(this);
} }
/// <summary>Field number for the "limit" field.</summary>
public const int LimitFieldNumber = 1; public const int LimitFieldNumber = 1;
private long limit_; private long limit_;
public long Limit { public long Limit {
@ -361,7 +365,7 @@ namespace Math {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -411,7 +415,7 @@ namespace Math {
public static pb::MessageParser<Num> Parser { get { return _parser; } } public static pb::MessageParser<Num> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Math.Proto.Math.Descriptor.MessageTypes[3]; } get { return global::Math.MathReflection.Descriptor.MessageTypes[3]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -432,6 +436,7 @@ namespace Math {
return new Num(this); return new Num(this);
} }
/// <summary>Field number for the "num" field.</summary>
public const int Num_FieldNumber = 1; public const int Num_FieldNumber = 1;
private long num_; private long num_;
public long Num_ { public long Num_ {
@ -463,7 +468,7 @@ namespace Math {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -513,7 +518,7 @@ namespace Math {
public static pb::MessageParser<FibReply> Parser { get { return _parser; } } public static pb::MessageParser<FibReply> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Math.Proto.Math.Descriptor.MessageTypes[4]; } get { return global::Math.MathReflection.Descriptor.MessageTypes[4]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -534,6 +539,7 @@ namespace Math {
return new FibReply(this); return new FibReply(this);
} }
/// <summary>Field number for the "count" field.</summary>
public const int CountFieldNumber = 1; public const int CountFieldNumber = 1;
private long count_; private long count_;
public long Count { public long Count {
@ -565,7 +571,7 @@ namespace Math {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {

@ -48,7 +48,7 @@ namespace Math {
// service descriptor // service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{ {
get { return global::Math.Proto.Math.Descriptor.Services[0]; } get { return global::Math.MathReflection.Descriptor.Services[0]; }
} }
// client interface // client interface

@ -9,39 +9,38 @@ using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic; using scg = global::System.Collections.Generic;
namespace Grpc.Health.V1Alpha { namespace Grpc.Health.V1Alpha {
namespace Proto { /// <summary>Holder for reflection information generated from health.proto</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public static partial class HealthReflection {
public static partial class Health {
#region Descriptor
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static Health() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CgxoZWFsdGgucHJvdG8SE2dycGMuaGVhbHRoLnYxYWxwaGEiMwoSSGVhbHRo",
"Q2hlY2tSZXF1ZXN0EgwKBGhvc3QYASABKAkSDwoHc2VydmljZRgCIAEoCSKZ",
"AQoTSGVhbHRoQ2hlY2tSZXNwb25zZRJGCgZzdGF0dXMYASABKA4yNi5ncnBj",
"LmhlYWx0aC52MWFscGhhLkhlYWx0aENoZWNrUmVzcG9uc2UuU2VydmluZ1N0",
"YXR1cyI6Cg1TZXJ2aW5nU3RhdHVzEgsKB1VOS05PV04QABILCgdTRVJWSU5H",
"EAESDwoLTk9UX1NFUlZJTkcQAjJkCgZIZWFsdGgSWgoFQ2hlY2sSJy5ncnBj",
"LmhlYWx0aC52MWFscGhhLkhlYWx0aENoZWNrUmVxdWVzdBooLmdycGMuaGVh",
"bHRoLnYxYWxwaGEuSGVhbHRoQ2hlY2tSZXNwb25zZUIWqgITR3JwYy5IZWFs",
"dGguVjFBbHBoYWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Health.V1Alpha.HealthCheckRequest), new[]{ "Host", "Service" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Health.V1Alpha.HealthCheckResponse), new[]{ "Status" }, null, new[]{ typeof(global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus) }, null)
}));
}
#endregion
#region Descriptor
/// <summary>File descriptor for health.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static HealthReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CgxoZWFsdGgucHJvdG8SE2dycGMuaGVhbHRoLnYxYWxwaGEiMwoSSGVhbHRo",
"Q2hlY2tSZXF1ZXN0EgwKBGhvc3QYASABKAkSDwoHc2VydmljZRgCIAEoCSKZ",
"AQoTSGVhbHRoQ2hlY2tSZXNwb25zZRJGCgZzdGF0dXMYASABKA4yNi5ncnBj",
"LmhlYWx0aC52MWFscGhhLkhlYWx0aENoZWNrUmVzcG9uc2UuU2VydmluZ1N0",
"YXR1cyI6Cg1TZXJ2aW5nU3RhdHVzEgsKB1VOS05PV04QABILCgdTRVJWSU5H",
"EAESDwoLTk9UX1NFUlZJTkcQAjJkCgZIZWFsdGgSWgoFQ2hlY2sSJy5ncnBj",
"LmhlYWx0aC52MWFscGhhLkhlYWx0aENoZWNrUmVxdWVzdBooLmdycGMuaGVh",
"bHRoLnYxYWxwaGEuSGVhbHRoQ2hlY2tSZXNwb25zZUIWqgITR3JwYy5IZWFs",
"dGguVjFBbHBoYWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Health.V1Alpha.HealthCheckRequest), global::Grpc.Health.V1Alpha.HealthCheckRequest.Parser, new[]{ "Host", "Service" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Health.V1Alpha.HealthCheckResponse), global::Grpc.Health.V1Alpha.HealthCheckResponse.Parser, new[]{ "Status" }, null, new[]{ typeof(global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus) }, null)
}));
} }
#endregion
} }
#region Messages #region Messages
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@ -50,7 +49,7 @@ namespace Grpc.Health.V1Alpha {
public static pb::MessageParser<HealthCheckRequest> Parser { get { return _parser; } } public static pb::MessageParser<HealthCheckRequest> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Health.V1Alpha.Proto.Health.Descriptor.MessageTypes[0]; } get { return global::Grpc.Health.V1Alpha.HealthReflection.Descriptor.MessageTypes[0]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -72,6 +71,7 @@ namespace Grpc.Health.V1Alpha {
return new HealthCheckRequest(this); return new HealthCheckRequest(this);
} }
/// <summary>Field number for the "host" field.</summary>
public const int HostFieldNumber = 1; public const int HostFieldNumber = 1;
private string host_ = ""; private string host_ = "";
public string Host { public string Host {
@ -81,6 +81,7 @@ namespace Grpc.Health.V1Alpha {
} }
} }
/// <summary>Field number for the "service" field.</summary>
public const int ServiceFieldNumber = 2; public const int ServiceFieldNumber = 2;
private string service_ = ""; private string service_ = "";
public string Service { public string Service {
@ -114,7 +115,7 @@ namespace Grpc.Health.V1Alpha {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -178,7 +179,7 @@ namespace Grpc.Health.V1Alpha {
public static pb::MessageParser<HealthCheckResponse> Parser { get { return _parser; } } public static pb::MessageParser<HealthCheckResponse> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Health.V1Alpha.Proto.Health.Descriptor.MessageTypes[1]; } get { return global::Grpc.Health.V1Alpha.HealthReflection.Descriptor.MessageTypes[1]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -199,6 +200,7 @@ namespace Grpc.Health.V1Alpha {
return new HealthCheckResponse(this); return new HealthCheckResponse(this);
} }
/// <summary>Field number for the "status" field.</summary>
public const int StatusFieldNumber = 1; public const int StatusFieldNumber = 1;
private global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus status_ = global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus.UNKNOWN; private global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus status_ = global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus.UNKNOWN;
public global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus Status { public global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus Status {
@ -230,7 +232,7 @@ namespace Grpc.Health.V1Alpha {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -273,6 +275,7 @@ namespace Grpc.Health.V1Alpha {
} }
#region Nested types #region Nested types
/// <summary>Container for nested types declared in the HealthCheckResponse message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Types { public static partial class Types {
public enum ServingStatus { public enum ServingStatus {

@ -25,7 +25,7 @@ namespace Grpc.Health.V1Alpha {
// service descriptor // service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{ {
get { return global::Grpc.Health.V1Alpha.Proto.Health.Descriptor.Services[0]; } get { return global::Grpc.Health.V1Alpha.HealthReflection.Descriptor.Services[0]; }
} }
// client interface // client interface

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: test/proto/benchmarks/control.proto // source: src/proto/grpc/testing/control.proto
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
@ -9,78 +9,80 @@ using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic; using scg = global::System.Collections.Generic;
namespace Grpc.Testing { namespace Grpc.Testing {
/// <summary>Holder for reflection information generated from src/proto/grpc/testing/control.proto</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Control { public static partial class ControlReflection {
#region Descriptor #region Descriptor
/// <summary>File descriptor for src/proto/grpc/testing/control.proto</summary>
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
} }
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static Control() { static ControlReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CiN0ZXN0L3Byb3RvL2JlbmNobWFya3MvY29udHJvbC5wcm90bxIMZ3JwYy50", "CiRzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2NvbnRyb2wucHJvdG8SDGdycGMu",
"ZXN0aW5nGiR0ZXN0L3Byb3RvL2JlbmNobWFya3MvcGF5bG9hZHMucHJvdG8a", "dGVzdGluZxolc3JjL3Byb3RvL2dycGMvdGVzdGluZy9wYXlsb2Fkcy5wcm90",
"IXRlc3QvcHJvdG8vYmVuY2htYXJrcy9zdGF0cy5wcm90byIlCg1Qb2lzc29u", "bxoic3JjL3Byb3RvL2dycGMvdGVzdGluZy9zdGF0cy5wcm90byIlCg1Qb2lz",
"UGFyYW1zEhQKDG9mZmVyZWRfbG9hZBgBIAEoASJBCg1Vbmlmb3JtUGFyYW1z", "c29uUGFyYW1zEhQKDG9mZmVyZWRfbG9hZBgBIAEoASJBCg1Vbmlmb3JtUGFy",
"EhcKD2ludGVyYXJyaXZhbF9sbxgBIAEoARIXCg9pbnRlcmFycml2YWxfaGkY", "YW1zEhcKD2ludGVyYXJyaXZhbF9sbxgBIAEoARIXCg9pbnRlcmFycml2YWxf",
"AiABKAEiKwoTRGV0ZXJtaW5pc3RpY1BhcmFtcxIUCgxvZmZlcmVkX2xvYWQY", "aGkYAiABKAEiKwoTRGV0ZXJtaW5pc3RpY1BhcmFtcxIUCgxvZmZlcmVkX2xv",
"ASABKAEiOAoMUGFyZXRvUGFyYW1zEhkKEWludGVyYXJyaXZhbF9iYXNlGAEg", "YWQYASABKAEiOAoMUGFyZXRvUGFyYW1zEhkKEWludGVyYXJyaXZhbF9iYXNl",
"ASgBEg0KBWFscGhhGAIgASgBIhIKEENsb3NlZExvb3BQYXJhbXMijgIKCkxv", "GAEgASgBEg0KBWFscGhhGAI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USCQoFVU5BUlkQABINCglTVFJF",
"TkcQAWIGcHJvdG8z")); "QU1JTkcQAWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Grpc.Testing.Payloads.Descriptor, global::Grpc.Testing.Stats.Descriptor, }, new pbr::FileDescriptor[] { global::Grpc.Testing.PayloadsReflection.Descriptor, global::Grpc.Testing.StatsReflection.Descriptor, },
new pbr::GeneratedCodeInfo(new[] {typeof(global::Grpc.Testing.ClientType), typeof(global::Grpc.Testing.ServerType), typeof(global::Grpc.Testing.RpcType), }, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(new[] {typeof(global::Grpc.Testing.ClientType), typeof(global::Grpc.Testing.ServerType), typeof(global::Grpc.Testing.RpcType), }, new pbr::GeneratedCodeInfo[] {
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.PoissonParams), new[]{ "OfferedLoad" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.PoissonParams), global::Grpc.Testing.PoissonParams.Parser, new[]{ "OfferedLoad" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.UniformParams), new[]{ "InterarrivalLo", "InterarrivalHi" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.UniformParams), global::Grpc.Testing.UniformParams.Parser, new[]{ "InterarrivalLo", "InterarrivalHi" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.DeterministicParams), new[]{ "OfferedLoad" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.DeterministicParams), global::Grpc.Testing.DeterministicParams.Parser, new[]{ "OfferedLoad" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ParetoParams), new[]{ "InterarrivalBase", "Alpha" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ParetoParams), global::Grpc.Testing.ParetoParams.Parser, new[]{ "InterarrivalBase", "Alpha" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClosedLoopParams), null, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClosedLoopParams), global::Grpc.Testing.ClosedLoopParams.Parser, null, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.LoadParams), new[]{ "ClosedLoop", "Poisson", "Uniform", "Determ", "Pareto" }, new[]{ "Load" }, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.LoadParams), global::Grpc.Testing.LoadParams.Parser, new[]{ "ClosedLoop", "Poisson", "Uniform", "Determ", "Pareto" }, new[]{ "Load" }, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SecurityParams), new[]{ "UseTestCa", "ServerHostOverride" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SecurityParams), global::Grpc.Testing.SecurityParams.Parser, new[]{ "UseTestCa", "ServerHostOverride" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientConfig), new[]{ "ServerTargets", "ClientType", "SecurityParams", "OutstandingRpcsPerChannel", "ClientChannels", "AsyncClientThreads", "RpcType", "LoadParams", "PayloadConfig", "HistogramParams" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientConfig), global::Grpc.Testing.ClientConfig.Parser, new[]{ "ServerTargets", "ClientType", "SecurityParams", "OutstandingRpcsPerChannel", "ClientChannels", "AsyncClientThreads", "RpcType", "LoadParams", "PayloadConfig", "HistogramParams" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientStatus), new[]{ "Stats" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientStatus), global::Grpc.Testing.ClientStatus.Parser, new[]{ "Stats" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.Mark), new[]{ "Reset" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.Mark), global::Grpc.Testing.Mark.Parser, new[]{ "Reset" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientArgs), new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientArgs), global::Grpc.Testing.ClientArgs.Parser, new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerConfig), new[]{ "ServerType", "SecurityParams", "Host", "Port", "AsyncServerThreads", "CoreLimit", "PayloadConfig" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerConfig), global::Grpc.Testing.ServerConfig.Parser, new[]{ "ServerType", "SecurityParams", "Host", "Port", "AsyncServerThreads", "CoreLimit", "PayloadConfig" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerArgs), new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerArgs), global::Grpc.Testing.ServerArgs.Parser, new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerStatus), new[]{ "Stats", "Port", "Cores" }, null, null, null) new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerStatus), global::Grpc.Testing.ServerStatus.Parser, new[]{ "Stats", "Port", "Cores" }, null, null, null)
})); }));
} }
#endregion #endregion
@ -105,13 +107,17 @@ namespace Grpc.Testing {
#endregion #endregion
#region Messages #region Messages
/// <summary>
/// Parameters of poisson process distribution, which is a good representation
/// of activity coming in from independent identical stationary sources.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class PoissonParams : pb::IMessage<PoissonParams> { public sealed partial class PoissonParams : pb::IMessage<PoissonParams> {
private static readonly pb::MessageParser<PoissonParams> _parser = new pb::MessageParser<PoissonParams>(() => new PoissonParams()); private static readonly pb::MessageParser<PoissonParams> _parser = new pb::MessageParser<PoissonParams>(() => new PoissonParams());
public static pb::MessageParser<PoissonParams> Parser { get { return _parser; } } public static pb::MessageParser<PoissonParams> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[0]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[0]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -132,8 +138,12 @@ namespace Grpc.Testing {
return new PoissonParams(this); return new PoissonParams(this);
} }
/// <summary>Field number for the "offered_load" field.</summary>
public const int OfferedLoadFieldNumber = 1; public const int OfferedLoadFieldNumber = 1;
private double offeredLoad_; private double offeredLoad_;
/// <summary>
/// The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
/// </summary>
public double OfferedLoad { public double OfferedLoad {
get { return offeredLoad_; } get { return offeredLoad_; }
set { set {
@ -163,7 +173,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -213,7 +223,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<UniformParams> Parser { get { return _parser; } } public static pb::MessageParser<UniformParams> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[1]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[1]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -235,6 +245,7 @@ namespace Grpc.Testing {
return new UniformParams(this); return new UniformParams(this);
} }
/// <summary>Field number for the "interarrival_lo" field.</summary>
public const int InterarrivalLoFieldNumber = 1; public const int InterarrivalLoFieldNumber = 1;
private double interarrivalLo_; private double interarrivalLo_;
public double InterarrivalLo { public double InterarrivalLo {
@ -244,6 +255,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "interarrival_hi" field.</summary>
public const int InterarrivalHiFieldNumber = 2; public const int InterarrivalHiFieldNumber = 2;
private double interarrivalHi_; private double interarrivalHi_;
public double InterarrivalHi { public double InterarrivalHi {
@ -277,7 +289,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -341,7 +353,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<DeterministicParams> Parser { get { return _parser; } } public static pb::MessageParser<DeterministicParams> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[2]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[2]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -362,6 +374,7 @@ namespace Grpc.Testing {
return new DeterministicParams(this); return new DeterministicParams(this);
} }
/// <summary>Field number for the "offered_load" field.</summary>
public const int OfferedLoadFieldNumber = 1; public const int OfferedLoadFieldNumber = 1;
private double offeredLoad_; private double offeredLoad_;
public double OfferedLoad { public double OfferedLoad {
@ -393,7 +406,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -443,7 +456,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<ParetoParams> Parser { get { return _parser; } } public static pb::MessageParser<ParetoParams> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[3]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[3]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -465,6 +478,7 @@ namespace Grpc.Testing {
return new ParetoParams(this); return new ParetoParams(this);
} }
/// <summary>Field number for the "interarrival_base" field.</summary>
public const int InterarrivalBaseFieldNumber = 1; public const int InterarrivalBaseFieldNumber = 1;
private double interarrivalBase_; private double interarrivalBase_;
public double InterarrivalBase { public double InterarrivalBase {
@ -474,6 +488,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "alpha" field.</summary>
public const int AlphaFieldNumber = 2; public const int AlphaFieldNumber = 2;
private double alpha_; private double alpha_;
public double Alpha { public double Alpha {
@ -507,7 +522,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -565,13 +580,17 @@ namespace Grpc.Testing {
} }
/// <summary>
/// Once an RPC finishes, immediately start a new one.
/// No configuration parameters needed.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class ClosedLoopParams : pb::IMessage<ClosedLoopParams> { public sealed partial class ClosedLoopParams : pb::IMessage<ClosedLoopParams> {
private static readonly pb::MessageParser<ClosedLoopParams> _parser = new pb::MessageParser<ClosedLoopParams>(() => new ClosedLoopParams()); private static readonly pb::MessageParser<ClosedLoopParams> _parser = new pb::MessageParser<ClosedLoopParams>(() => new ClosedLoopParams());
public static pb::MessageParser<ClosedLoopParams> Parser { get { return _parser; } } public static pb::MessageParser<ClosedLoopParams> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[4]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[4]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -611,7 +630,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -647,7 +666,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<LoadParams> Parser { get { return _parser; } } public static pb::MessageParser<LoadParams> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[5]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[5]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -685,6 +704,7 @@ namespace Grpc.Testing {
return new LoadParams(this); return new LoadParams(this);
} }
/// <summary>Field number for the "closed_loop" field.</summary>
public const int ClosedLoopFieldNumber = 1; public const int ClosedLoopFieldNumber = 1;
public global::Grpc.Testing.ClosedLoopParams ClosedLoop { public global::Grpc.Testing.ClosedLoopParams ClosedLoop {
get { return loadCase_ == LoadOneofCase.ClosedLoop ? (global::Grpc.Testing.ClosedLoopParams) load_ : null; } get { return loadCase_ == LoadOneofCase.ClosedLoop ? (global::Grpc.Testing.ClosedLoopParams) load_ : null; }
@ -694,6 +714,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "poisson" field.</summary>
public const int PoissonFieldNumber = 2; public const int PoissonFieldNumber = 2;
public global::Grpc.Testing.PoissonParams Poisson { public global::Grpc.Testing.PoissonParams Poisson {
get { return loadCase_ == LoadOneofCase.Poisson ? (global::Grpc.Testing.PoissonParams) load_ : null; } get { return loadCase_ == LoadOneofCase.Poisson ? (global::Grpc.Testing.PoissonParams) load_ : null; }
@ -703,6 +724,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "uniform" field.</summary>
public const int UniformFieldNumber = 3; public const int UniformFieldNumber = 3;
public global::Grpc.Testing.UniformParams Uniform { public global::Grpc.Testing.UniformParams Uniform {
get { return loadCase_ == LoadOneofCase.Uniform ? (global::Grpc.Testing.UniformParams) load_ : null; } get { return loadCase_ == LoadOneofCase.Uniform ? (global::Grpc.Testing.UniformParams) load_ : null; }
@ -712,6 +734,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "determ" field.</summary>
public const int DetermFieldNumber = 4; public const int DetermFieldNumber = 4;
public global::Grpc.Testing.DeterministicParams Determ { public global::Grpc.Testing.DeterministicParams Determ {
get { return loadCase_ == LoadOneofCase.Determ ? (global::Grpc.Testing.DeterministicParams) load_ : null; } get { return loadCase_ == LoadOneofCase.Determ ? (global::Grpc.Testing.DeterministicParams) load_ : null; }
@ -721,6 +744,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "pareto" field.</summary>
public const int ParetoFieldNumber = 5; public const int ParetoFieldNumber = 5;
public global::Grpc.Testing.ParetoParams Pareto { public global::Grpc.Testing.ParetoParams Pareto {
get { return loadCase_ == LoadOneofCase.Pareto ? (global::Grpc.Testing.ParetoParams) load_ : null; } get { return loadCase_ == LoadOneofCase.Pareto ? (global::Grpc.Testing.ParetoParams) load_ : null; }
@ -731,6 +755,7 @@ namespace Grpc.Testing {
} }
private object load_; private object load_;
/// <summary>Enum of possible cases for the "load" oneof.</summary>
public enum LoadOneofCase { public enum LoadOneofCase {
None = 0, None = 0,
ClosedLoop = 1, ClosedLoop = 1,
@ -765,6 +790,7 @@ namespace Grpc.Testing {
if (!object.Equals(Uniform, other.Uniform)) return false; if (!object.Equals(Uniform, other.Uniform)) return false;
if (!object.Equals(Determ, other.Determ)) return false; if (!object.Equals(Determ, other.Determ)) return false;
if (!object.Equals(Pareto, other.Pareto)) return false; if (!object.Equals(Pareto, other.Pareto)) return false;
if (LoadCase != other.LoadCase) return false;
return true; return true;
} }
@ -775,11 +801,12 @@ namespace Grpc.Testing {
if (loadCase_ == LoadOneofCase.Uniform) hash ^= Uniform.GetHashCode(); if (loadCase_ == LoadOneofCase.Uniform) hash ^= Uniform.GetHashCode();
if (loadCase_ == LoadOneofCase.Determ) hash ^= Determ.GetHashCode(); if (loadCase_ == LoadOneofCase.Determ) hash ^= Determ.GetHashCode();
if (loadCase_ == LoadOneofCase.Pareto) hash ^= Pareto.GetHashCode(); if (loadCase_ == LoadOneofCase.Pareto) hash ^= Pareto.GetHashCode();
hash ^= (int) loadCase_;
return hash; return hash;
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -907,13 +934,16 @@ namespace Grpc.Testing {
} }
/// <summary>
/// presence of SecurityParams implies use of TLS
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class SecurityParams : pb::IMessage<SecurityParams> { public sealed partial class SecurityParams : pb::IMessage<SecurityParams> {
private static readonly pb::MessageParser<SecurityParams> _parser = new pb::MessageParser<SecurityParams>(() => new SecurityParams()); private static readonly pb::MessageParser<SecurityParams> _parser = new pb::MessageParser<SecurityParams>(() => new SecurityParams());
public static pb::MessageParser<SecurityParams> Parser { get { return _parser; } } public static pb::MessageParser<SecurityParams> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[6]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[6]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -935,6 +965,7 @@ namespace Grpc.Testing {
return new SecurityParams(this); return new SecurityParams(this);
} }
/// <summary>Field number for the "use_test_ca" field.</summary>
public const int UseTestCaFieldNumber = 1; public const int UseTestCaFieldNumber = 1;
private bool useTestCa_; private bool useTestCa_;
public bool UseTestCa { public bool UseTestCa {
@ -944,6 +975,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "server_host_override" field.</summary>
public const int ServerHostOverrideFieldNumber = 2; public const int ServerHostOverrideFieldNumber = 2;
private string serverHostOverride_ = ""; private string serverHostOverride_ = "";
public string ServerHostOverride { public string ServerHostOverride {
@ -977,7 +1009,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -1041,7 +1073,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<ClientConfig> Parser { get { return _parser; } } public static pb::MessageParser<ClientConfig> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[7]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[7]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -1071,14 +1103,19 @@ namespace Grpc.Testing {
return new ClientConfig(this); return new ClientConfig(this);
} }
/// <summary>Field number for the "server_targets" field.</summary>
public const int ServerTargetsFieldNumber = 1; public const int ServerTargetsFieldNumber = 1;
private static readonly pb::FieldCodec<string> _repeated_serverTargets_codec private static readonly pb::FieldCodec<string> _repeated_serverTargets_codec
= pb::FieldCodec.ForString(10); = pb::FieldCodec.ForString(10);
private readonly pbc::RepeatedField<string> serverTargets_ = new pbc::RepeatedField<string>(); private readonly pbc::RepeatedField<string> serverTargets_ = new pbc::RepeatedField<string>();
/// <summary>
/// List of targets to connect to. At least one target needs to be specified.
/// </summary>
public pbc::RepeatedField<string> ServerTargets { public pbc::RepeatedField<string> ServerTargets {
get { return serverTargets_; } get { return serverTargets_; }
} }
/// <summary>Field number for the "client_type" field.</summary>
public const int ClientTypeFieldNumber = 2; public const int ClientTypeFieldNumber = 2;
private global::Grpc.Testing.ClientType clientType_ = global::Grpc.Testing.ClientType.SYNC_CLIENT; private global::Grpc.Testing.ClientType clientType_ = global::Grpc.Testing.ClientType.SYNC_CLIENT;
public global::Grpc.Testing.ClientType ClientType { public global::Grpc.Testing.ClientType ClientType {
@ -1088,6 +1125,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "security_params" field.</summary>
public const int SecurityParamsFieldNumber = 3; public const int SecurityParamsFieldNumber = 3;
private global::Grpc.Testing.SecurityParams securityParams_; private global::Grpc.Testing.SecurityParams securityParams_;
public global::Grpc.Testing.SecurityParams SecurityParams { public global::Grpc.Testing.SecurityParams SecurityParams {
@ -1097,8 +1135,13 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "outstanding_rpcs_per_channel" field.</summary>
public const int OutstandingRpcsPerChannelFieldNumber = 4; public const int OutstandingRpcsPerChannelFieldNumber = 4;
private int outstandingRpcsPerChannel_; private int outstandingRpcsPerChannel_;
/// <summary>
/// How many concurrent RPCs to start for each channel.
/// For synchronous client, use a separate thread for each outstanding RPC.
/// </summary>
public int OutstandingRpcsPerChannel { public int OutstandingRpcsPerChannel {
get { return outstandingRpcsPerChannel_; } get { return outstandingRpcsPerChannel_; }
set { set {
@ -1106,8 +1149,13 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "client_channels" field.</summary>
public const int ClientChannelsFieldNumber = 5; public const int ClientChannelsFieldNumber = 5;
private int clientChannels_; private int clientChannels_;
/// <summary>
/// Number of independent client channels to create.
/// i-th channel will connect to server_target[i % server_targets.size()]
/// </summary>
public int ClientChannels { public int ClientChannels {
get { return clientChannels_; } get { return clientChannels_; }
set { set {
@ -1115,8 +1163,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "async_client_threads" field.</summary>
public const int AsyncClientThreadsFieldNumber = 7; public const int AsyncClientThreadsFieldNumber = 7;
private int asyncClientThreads_; private int asyncClientThreads_;
/// <summary>
/// Only for async client. Number of threads to use to start/manage RPCs.
/// </summary>
public int AsyncClientThreads { public int AsyncClientThreads {
get { return asyncClientThreads_; } get { return asyncClientThreads_; }
set { set {
@ -1124,6 +1176,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "rpc_type" field.</summary>
public const int RpcTypeFieldNumber = 8; public const int RpcTypeFieldNumber = 8;
private global::Grpc.Testing.RpcType rpcType_ = global::Grpc.Testing.RpcType.UNARY; private global::Grpc.Testing.RpcType rpcType_ = global::Grpc.Testing.RpcType.UNARY;
public global::Grpc.Testing.RpcType RpcType { public global::Grpc.Testing.RpcType RpcType {
@ -1133,8 +1186,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "load_params" field.</summary>
public const int LoadParamsFieldNumber = 10; public const int LoadParamsFieldNumber = 10;
private global::Grpc.Testing.LoadParams loadParams_; private global::Grpc.Testing.LoadParams loadParams_;
/// <summary>
/// The requested load for the entire client (aggregated over all the threads).
/// </summary>
public global::Grpc.Testing.LoadParams LoadParams { public global::Grpc.Testing.LoadParams LoadParams {
get { return loadParams_; } get { return loadParams_; }
set { set {
@ -1142,6 +1199,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "payload_config" field.</summary>
public const int PayloadConfigFieldNumber = 11; public const int PayloadConfigFieldNumber = 11;
private global::Grpc.Testing.PayloadConfig payloadConfig_; private global::Grpc.Testing.PayloadConfig payloadConfig_;
public global::Grpc.Testing.PayloadConfig PayloadConfig { public global::Grpc.Testing.PayloadConfig PayloadConfig {
@ -1151,6 +1209,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "histogram_params" field.</summary>
public const int HistogramParamsFieldNumber = 12; public const int HistogramParamsFieldNumber = 12;
private global::Grpc.Testing.HistogramParams histogramParams_; private global::Grpc.Testing.HistogramParams histogramParams_;
public global::Grpc.Testing.HistogramParams HistogramParams { public global::Grpc.Testing.HistogramParams HistogramParams {
@ -1200,7 +1259,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -1393,7 +1452,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<ClientStatus> Parser { get { return _parser; } } public static pb::MessageParser<ClientStatus> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[8]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[8]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -1414,6 +1473,7 @@ namespace Grpc.Testing {
return new ClientStatus(this); return new ClientStatus(this);
} }
/// <summary>Field number for the "stats" field.</summary>
public const int StatsFieldNumber = 1; public const int StatsFieldNumber = 1;
private global::Grpc.Testing.ClientStats stats_; private global::Grpc.Testing.ClientStats stats_;
public global::Grpc.Testing.ClientStats Stats { public global::Grpc.Testing.ClientStats Stats {
@ -1445,7 +1505,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -1495,13 +1555,16 @@ namespace Grpc.Testing {
} }
/// <summary>
/// Request current stats
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class Mark : pb::IMessage<Mark> { public sealed partial class Mark : pb::IMessage<Mark> {
private static readonly pb::MessageParser<Mark> _parser = new pb::MessageParser<Mark>(() => new Mark()); private static readonly pb::MessageParser<Mark> _parser = new pb::MessageParser<Mark>(() => new Mark());
public static pb::MessageParser<Mark> Parser { get { return _parser; } } public static pb::MessageParser<Mark> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[9]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[9]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -1522,8 +1585,12 @@ namespace Grpc.Testing {
return new Mark(this); return new Mark(this);
} }
/// <summary>Field number for the "reset" field.</summary>
public const int ResetFieldNumber = 1; public const int ResetFieldNumber = 1;
private bool reset_; private bool reset_;
/// <summary>
/// if true, the stats will be reset after taking their snapshot.
/// </summary>
public bool Reset { public bool Reset {
get { return reset_; } get { return reset_; }
set { set {
@ -1553,7 +1620,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -1603,7 +1670,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<ClientArgs> Parser { get { return _parser; } } public static pb::MessageParser<ClientArgs> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[10]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[10]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -1632,6 +1699,7 @@ namespace Grpc.Testing {
return new ClientArgs(this); return new ClientArgs(this);
} }
/// <summary>Field number for the "setup" field.</summary>
public const int SetupFieldNumber = 1; public const int SetupFieldNumber = 1;
public global::Grpc.Testing.ClientConfig Setup { public global::Grpc.Testing.ClientConfig Setup {
get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ClientConfig) argtype_ : null; } get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ClientConfig) argtype_ : null; }
@ -1641,6 +1709,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "mark" field.</summary>
public const int MarkFieldNumber = 2; public const int MarkFieldNumber = 2;
public global::Grpc.Testing.Mark Mark { public global::Grpc.Testing.Mark Mark {
get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; } get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; }
@ -1651,6 +1720,7 @@ namespace Grpc.Testing {
} }
private object argtype_; private object argtype_;
/// <summary>Enum of possible cases for the "argtype" oneof.</summary>
public enum ArgtypeOneofCase { public enum ArgtypeOneofCase {
None = 0, None = 0,
Setup = 1, Setup = 1,
@ -1679,6 +1749,7 @@ namespace Grpc.Testing {
} }
if (!object.Equals(Setup, other.Setup)) return false; if (!object.Equals(Setup, other.Setup)) return false;
if (!object.Equals(Mark, other.Mark)) return false; if (!object.Equals(Mark, other.Mark)) return false;
if (ArgtypeCase != other.ArgtypeCase) return false;
return true; return true;
} }
@ -1686,11 +1757,12 @@ namespace Grpc.Testing {
int hash = 1; int hash = 1;
if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode(); if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode();
if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode(); if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode();
hash ^= (int) argtypeCase_;
return hash; return hash;
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -1767,7 +1839,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<ServerConfig> Parser { get { return _parser; } } public static pb::MessageParser<ServerConfig> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[11]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[11]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -1794,6 +1866,7 @@ namespace Grpc.Testing {
return new ServerConfig(this); return new ServerConfig(this);
} }
/// <summary>Field number for the "server_type" field.</summary>
public const int ServerTypeFieldNumber = 1; public const int ServerTypeFieldNumber = 1;
private global::Grpc.Testing.ServerType serverType_ = global::Grpc.Testing.ServerType.SYNC_SERVER; private global::Grpc.Testing.ServerType serverType_ = global::Grpc.Testing.ServerType.SYNC_SERVER;
public global::Grpc.Testing.ServerType ServerType { public global::Grpc.Testing.ServerType ServerType {
@ -1803,6 +1876,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "security_params" field.</summary>
public const int SecurityParamsFieldNumber = 2; public const int SecurityParamsFieldNumber = 2;
private global::Grpc.Testing.SecurityParams securityParams_; private global::Grpc.Testing.SecurityParams securityParams_;
public global::Grpc.Testing.SecurityParams SecurityParams { public global::Grpc.Testing.SecurityParams SecurityParams {
@ -1812,8 +1886,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "host" field.</summary>
public const int HostFieldNumber = 3; public const int HostFieldNumber = 3;
private string host_ = ""; private string host_ = "";
/// <summary>
/// Host on which to listen.
/// </summary>
public string Host { public string Host {
get { return host_; } get { return host_; }
set { set {
@ -1821,8 +1899,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "port" field.</summary>
public const int PortFieldNumber = 4; public const int PortFieldNumber = 4;
private int port_; private int port_;
/// <summary>
/// Port on which to listen. Zero means pick unused port.
/// </summary>
public int Port { public int Port {
get { return port_; } get { return port_; }
set { set {
@ -1830,8 +1912,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "async_server_threads" field.</summary>
public const int AsyncServerThreadsFieldNumber = 7; public const int AsyncServerThreadsFieldNumber = 7;
private int asyncServerThreads_; private int asyncServerThreads_;
/// <summary>
/// Only for async server. Number of threads used to serve the requests.
/// </summary>
public int AsyncServerThreads { public int AsyncServerThreads {
get { return asyncServerThreads_; } get { return asyncServerThreads_; }
set { set {
@ -1839,8 +1925,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "core_limit" field.</summary>
public const int CoreLimitFieldNumber = 8; public const int CoreLimitFieldNumber = 8;
private int coreLimit_; private int coreLimit_;
/// <summary>
/// restrict core usage, currently unused
/// </summary>
public int CoreLimit { public int CoreLimit {
get { return coreLimit_; } get { return coreLimit_; }
set { set {
@ -1848,6 +1938,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "payload_config" field.</summary>
public const int PayloadConfigFieldNumber = 9; public const int PayloadConfigFieldNumber = 9;
private global::Grpc.Testing.PayloadConfig payloadConfig_; private global::Grpc.Testing.PayloadConfig payloadConfig_;
public global::Grpc.Testing.PayloadConfig PayloadConfig { public global::Grpc.Testing.PayloadConfig PayloadConfig {
@ -1891,7 +1982,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -2037,7 +2128,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<ServerArgs> Parser { get { return _parser; } } public static pb::MessageParser<ServerArgs> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[12]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[12]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -2066,6 +2157,7 @@ namespace Grpc.Testing {
return new ServerArgs(this); return new ServerArgs(this);
} }
/// <summary>Field number for the "setup" field.</summary>
public const int SetupFieldNumber = 1; public const int SetupFieldNumber = 1;
public global::Grpc.Testing.ServerConfig Setup { public global::Grpc.Testing.ServerConfig Setup {
get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ServerConfig) argtype_ : null; } get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ServerConfig) argtype_ : null; }
@ -2075,6 +2167,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "mark" field.</summary>
public const int MarkFieldNumber = 2; public const int MarkFieldNumber = 2;
public global::Grpc.Testing.Mark Mark { public global::Grpc.Testing.Mark Mark {
get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; } get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; }
@ -2085,6 +2178,7 @@ namespace Grpc.Testing {
} }
private object argtype_; private object argtype_;
/// <summary>Enum of possible cases for the "argtype" oneof.</summary>
public enum ArgtypeOneofCase { public enum ArgtypeOneofCase {
None = 0, None = 0,
Setup = 1, Setup = 1,
@ -2113,6 +2207,7 @@ namespace Grpc.Testing {
} }
if (!object.Equals(Setup, other.Setup)) return false; if (!object.Equals(Setup, other.Setup)) return false;
if (!object.Equals(Mark, other.Mark)) return false; if (!object.Equals(Mark, other.Mark)) return false;
if (ArgtypeCase != other.ArgtypeCase) return false;
return true; return true;
} }
@ -2120,11 +2215,12 @@ namespace Grpc.Testing {
int hash = 1; int hash = 1;
if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode(); if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode();
if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode(); if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode();
hash ^= (int) argtypeCase_;
return hash; return hash;
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -2201,7 +2297,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<ServerStatus> Parser { get { return _parser; } } public static pb::MessageParser<ServerStatus> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[13]; } get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[13]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -2224,6 +2320,7 @@ namespace Grpc.Testing {
return new ServerStatus(this); return new ServerStatus(this);
} }
/// <summary>Field number for the "stats" field.</summary>
public const int StatsFieldNumber = 1; public const int StatsFieldNumber = 1;
private global::Grpc.Testing.ServerStats stats_; private global::Grpc.Testing.ServerStats stats_;
public global::Grpc.Testing.ServerStats Stats { public global::Grpc.Testing.ServerStats Stats {
@ -2233,8 +2330,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "port" field.</summary>
public const int PortFieldNumber = 2; public const int PortFieldNumber = 2;
private int port_; private int port_;
/// <summary>
/// the port bound by the server
/// </summary>
public int Port { public int Port {
get { return port_; } get { return port_; }
set { set {
@ -2242,8 +2343,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "cores" field.</summary>
public const int CoresFieldNumber = 3; public const int CoresFieldNumber = 3;
private int cores_; private int cores_;
/// <summary>
/// Number of cores on the server. See gpr_cpu_num_cores.
/// </summary>
public int Cores { public int Cores {
get { return cores_; } get { return cores_; }
set { set {
@ -2277,7 +2382,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: test/proto/empty.proto // source: src/proto/grpc/testing/empty.proto
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
@ -9,40 +9,48 @@ using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic; using scg = global::System.Collections.Generic;
namespace Grpc.Testing { namespace Grpc.Testing {
namespace Proto { /// <summary>Holder for reflection information generated from src/proto/grpc/testing/empty.proto</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public static partial class EmptyReflection {
public static partial class Empty {
#region Descriptor
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static Empty() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChZ0ZXN0L3Byb3RvL2VtcHR5LnByb3RvEgxncnBjLnRlc3RpbmciBwoFRW1w",
"dHliBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.Empty), null, null, null, null)
}));
}
#endregion
#region Descriptor
/// <summary>File descriptor for src/proto/grpc/testing/empty.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static EmptyReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiJzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2VtcHR5LnByb3RvEgxncnBjLnRl",
"c3RpbmciBwoFRW1wdHliBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.Empty), global::Grpc.Testing.Empty.Parser, null, null, null, null)
}));
} }
#endregion
} }
#region Messages #region Messages
/// <summary>
/// An empty message that you can re-use to avoid defining duplicated empty
/// messages in your project. A typical example is to use it as argument or the
/// return value of a service API. For instance:
///
/// service Foo {
/// rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
/// };
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class Empty : pb::IMessage<Empty> { public sealed partial class Empty : pb::IMessage<Empty> {
private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty()); private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty());
public static pb::MessageParser<Empty> Parser { get { return _parser; } } public static pb::MessageParser<Empty> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Proto.Empty.Descriptor.MessageTypes[0]; } get { return global::Grpc.Testing.EmptyReflection.Descriptor.MessageTypes[0]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -82,7 +90,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: test/proto/messages.proto // source: src/proto/grpc/testing/messages.proto
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
@ -9,73 +9,93 @@ using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic; using scg = global::System.Collections.Generic;
namespace Grpc.Testing { namespace Grpc.Testing {
/// <summary>Holder for reflection information generated from src/proto/grpc/testing/messages.proto</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Messages { public static partial class MessagesReflection {
#region Descriptor #region Descriptor
/// <summary>File descriptor for src/proto/grpc/testing/messages.proto</summary>
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
} }
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static Messages() { static MessagesReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"Chl0ZXN0L3Byb3RvL21lc3NhZ2VzLnByb3RvEgxncnBjLnRlc3RpbmciQAoH", "CiVzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL21lc3NhZ2VzLnByb3RvEgxncnBj",
"UGF5bG9hZBInCgR0eXBlGAEgASgOMhkuZ3JwYy50ZXN0aW5nLlBheWxvYWRU", "LnRlc3RpbmciQAoHUGF5bG9hZBInCgR0eXBlGAEgASgOMhkuZ3JwYy50ZXN0",
"eXBlEgwKBGJvZHkYAiABKAwiKwoKRWNob1N0YXR1cxIMCgRjb2RlGAEgASgF", "aW5nLlBheWxvYWRUeXBlEgwKBGJvZHkYAiABKAwiKwoKRWNob1N0YXR1cxIM",
"Eg8KB21lc3NhZ2UYAiABKAkioQIKDVNpbXBsZVJlcXVlc3QSMAo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cHJlc3Npb24YBiABKA4y", "ASgLMhUuZ3JwYy50ZXN0aW5nLlBheWxvYWQSOwoUcmVzcG9uc2VfY29tcHJl",
"HS5ncnBjLnRlc3RpbmcuQ29tcHJlc3Npb25UeXBlEjEKD3Jlc3BvbnNlX3N0", "c3Npb24YBiABKA4yHS5ncnBjLnRlc3RpbmcuQ29tcHJlc3Npb25UeXBlEjEK",
"YXR1cxgHIAEoCzIYLmdycGMudGVzdGluZy5FY2hvU3RhdHVzIkUKG1N0cmVh", "D3Jlc3BvbnNlX3N0YXR1cxgHIAEoCzIYLmdycGMudGVzdGluZy5FY2hvU3Rh",
"bWluZ091dHB1dENhbGxSZXNwb25zZRImCgdwYXlsb2FkGAEgASgLMhUuZ3Jw", "dHVzIkUKG1N0cmVhbWluZ091dHB1dENhbGxSZXNwb25zZRImCgdwYXlsb2Fk",
"Yy50ZXN0aW5nLlBheWxvYWQiMwoNUmVjb25uZWN0SW5mbxIOCgZwYXNzZWQY", "GAEgASgLMhUuZ3JwYy50ZXN0aW5nLlBheWxvYWQiMwoNUmVjb25uZWN0SW5m",
"ASABKAgSEgoKYmFja29mZl9tcxgCIAMoBSo/CgtQYXlsb2FkVHlwZRIQCgxD", "bxIOCgZwYXNzZWQYASABKAgSEgoKYmFja29mZl9tcxgCIAMoBSo/CgtQYXls",
"T01QUkVTU0FCTEUQABISCg5VTkNPTVBSRVNTQUJMRRABEgoKBlJBTkRPTRAC", "b2FkVHlwZRIQCgxDT01QUkVTU0FCTEUQABISCg5VTkNPTVBSRVNTQUJMRRAB",
"KjIKD0NvbXByZXNzaW9uVHlwZRIICgROT05FEAASCAoER1pJUBABEgsKB0RF", "EgoKBlJBTkRPTRACKjIKD0NvbXByZXNzaW9uVHlwZRIICgROT05FEAASCAoE",
"RkxBVEUQAmIGcHJvdG8z")); "R1pJUBABEgsKB0RFRkxBVEUQAmIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { }, new pbr::FileDescriptor[] { },
new pbr::GeneratedCodeInfo(new[] {typeof(global::Grpc.Testing.PayloadType), typeof(global::Grpc.Testing.CompressionType), }, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(new[] {typeof(global::Grpc.Testing.PayloadType), typeof(global::Grpc.Testing.CompressionType), }, new pbr::GeneratedCodeInfo[] {
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.Payload), new[]{ "Type", "Body" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.Payload), global::Grpc.Testing.Payload.Parser, new[]{ "Type", "Body" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.EchoStatus), new[]{ "Code", "Message" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.EchoStatus), global::Grpc.Testing.EchoStatus.Parser, new[]{ "Code", "Message" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SimpleRequest), new[]{ "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompression", "ResponseStatus" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SimpleRequest), global::Grpc.Testing.SimpleRequest.Parser, new[]{ "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompression", "ResponseStatus" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SimpleResponse), new[]{ "Payload", "Username", "OauthScope" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SimpleResponse), global::Grpc.Testing.SimpleResponse.Parser, new[]{ "Payload", "Username", "OauthScope" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingInputCallRequest), new[]{ "Payload" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingInputCallRequest), global::Grpc.Testing.StreamingInputCallRequest.Parser, new[]{ "Payload" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingInputCallResponse), new[]{ "AggregatedPayloadSize" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingInputCallResponse), global::Grpc.Testing.StreamingInputCallResponse.Parser, new[]{ "AggregatedPayloadSize" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ResponseParameters), new[]{ "Size", "IntervalUs" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ResponseParameters), global::Grpc.Testing.ResponseParameters.Parser, new[]{ "Size", "IntervalUs" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingOutputCallRequest), new[]{ "ResponseType", "ResponseParameters", "Payload", "ResponseCompression", "ResponseStatus" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingOutputCallRequest), global::Grpc.Testing.StreamingOutputCallRequest.Parser, new[]{ "ResponseType", "ResponseParameters", "Payload", "ResponseCompression", "ResponseStatus" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingOutputCallResponse), new[]{ "Payload" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.StreamingOutputCallResponse), global::Grpc.Testing.StreamingOutputCallResponse.Parser, new[]{ "Payload" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ReconnectInfo), new[]{ "Passed", "BackoffMs" }, null, null, null) new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ReconnectInfo), global::Grpc.Testing.ReconnectInfo.Parser, new[]{ "Passed", "BackoffMs" }, null, null, null)
})); }));
} }
#endregion #endregion
} }
#region Enums #region Enums
/// <summary>
/// The type of payload that should be returned.
/// </summary>
public enum PayloadType { public enum PayloadType {
/// <summary>
/// Compressable text format.
/// </summary>
COMPRESSABLE = 0, COMPRESSABLE = 0,
/// <summary>
/// Uncompressable binary format.
/// </summary>
UNCOMPRESSABLE = 1, UNCOMPRESSABLE = 1,
/// <summary>
/// Randomly chosen from all other formats defined in this enum.
/// </summary>
RANDOM = 2, RANDOM = 2,
} }
/// <summary>
/// Compression algorithms
/// </summary>
public enum CompressionType { public enum CompressionType {
/// <summary>
/// No compression
/// </summary>
NONE = 0, NONE = 0,
GZIP = 1, GZIP = 1,
DEFLATE = 2, DEFLATE = 2,
@ -84,13 +104,16 @@ namespace Grpc.Testing {
#endregion #endregion
#region Messages #region Messages
/// <summary>
/// A block of data, to simply increase gRPC message size.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class Payload : pb::IMessage<Payload> { public sealed partial class Payload : pb::IMessage<Payload> {
private static readonly pb::MessageParser<Payload> _parser = new pb::MessageParser<Payload>(() => new Payload()); private static readonly pb::MessageParser<Payload> _parser = new pb::MessageParser<Payload>(() => new Payload());
public static pb::MessageParser<Payload> Parser { get { return _parser; } } public static pb::MessageParser<Payload> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Messages.Descriptor.MessageTypes[0]; } get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[0]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -112,8 +135,12 @@ namespace Grpc.Testing {
return new Payload(this); return new Payload(this);
} }
/// <summary>Field number for the "type" field.</summary>
public const int TypeFieldNumber = 1; public const int TypeFieldNumber = 1;
private global::Grpc.Testing.PayloadType type_ = global::Grpc.Testing.PayloadType.COMPRESSABLE; private global::Grpc.Testing.PayloadType type_ = global::Grpc.Testing.PayloadType.COMPRESSABLE;
/// <summary>
/// The type of data in body.
/// </summary>
public global::Grpc.Testing.PayloadType Type { public global::Grpc.Testing.PayloadType Type {
get { return type_; } get { return type_; }
set { set {
@ -121,8 +148,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "body" field.</summary>
public const int BodyFieldNumber = 2; public const int BodyFieldNumber = 2;
private pb::ByteString body_ = pb::ByteString.Empty; private pb::ByteString body_ = pb::ByteString.Empty;
/// <summary>
/// Primary contents of payload.
/// </summary>
public pb::ByteString Body { public pb::ByteString Body {
get { return body_; } get { return body_; }
set { set {
@ -154,7 +185,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -212,13 +243,17 @@ namespace Grpc.Testing {
} }
/// <summary>
/// A protobuf representation for grpc status. This is used by test
/// clients to specify a status that the server should attempt to return.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class EchoStatus : pb::IMessage<EchoStatus> { public sealed partial class EchoStatus : pb::IMessage<EchoStatus> {
private static readonly pb::MessageParser<EchoStatus> _parser = new pb::MessageParser<EchoStatus>(() => new EchoStatus()); private static readonly pb::MessageParser<EchoStatus> _parser = new pb::MessageParser<EchoStatus>(() => new EchoStatus());
public static pb::MessageParser<EchoStatus> Parser { get { return _parser; } } public static pb::MessageParser<EchoStatus> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Messages.Descriptor.MessageTypes[1]; } get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[1]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -240,6 +275,7 @@ namespace Grpc.Testing {
return new EchoStatus(this); return new EchoStatus(this);
} }
/// <summary>Field number for the "code" field.</summary>
public const int CodeFieldNumber = 1; public const int CodeFieldNumber = 1;
private int code_; private int code_;
public int Code { public int Code {
@ -249,6 +285,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "message" field.</summary>
public const int MessageFieldNumber = 2; public const int MessageFieldNumber = 2;
private string message_ = ""; private string message_ = "";
public string Message { public string Message {
@ -282,7 +319,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -340,13 +377,16 @@ namespace Grpc.Testing {
} }
/// <summary>
/// Unary request.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class SimpleRequest : pb::IMessage<SimpleRequest> { public sealed partial class SimpleRequest : pb::IMessage<SimpleRequest> {
private static readonly pb::MessageParser<SimpleRequest> _parser = new pb::MessageParser<SimpleRequest>(() => new SimpleRequest()); private static readonly pb::MessageParser<SimpleRequest> _parser = new pb::MessageParser<SimpleRequest>(() => new SimpleRequest());
public static pb::MessageParser<SimpleRequest> Parser { get { return _parser; } } public static pb::MessageParser<SimpleRequest> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Messages.Descriptor.MessageTypes[2]; } get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[2]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -373,8 +413,13 @@ namespace Grpc.Testing {
return new SimpleRequest(this); return new SimpleRequest(this);
} }
/// <summary>Field number for the "response_type" field.</summary>
public const int ResponseTypeFieldNumber = 1; public const int ResponseTypeFieldNumber = 1;
private global::Grpc.Testing.PayloadType responseType_ = global::Grpc.Testing.PayloadType.COMPRESSABLE; private global::Grpc.Testing.PayloadType responseType_ = global::Grpc.Testing.PayloadType.COMPRESSABLE;
/// <summary>
/// Desired payload type in the response from the server.
/// If response_type is RANDOM, server randomly chooses one from other formats.
/// </summary>
public global::Grpc.Testing.PayloadType ResponseType { public global::Grpc.Testing.PayloadType ResponseType {
get { return responseType_; } get { return responseType_; }
set { set {
@ -382,8 +427,13 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "response_size" field.</summary>
public const int ResponseSizeFieldNumber = 2; public const int ResponseSizeFieldNumber = 2;
private int responseSize_; private int responseSize_;
/// <summary>
/// Desired payload size in the response from the server.
/// If response_type is COMPRESSABLE, this denotes the size before compression.
/// </summary>
public int ResponseSize { public int ResponseSize {
get { return responseSize_; } get { return responseSize_; }
set { set {
@ -391,8 +441,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "payload" field.</summary>
public const int PayloadFieldNumber = 3; public const int PayloadFieldNumber = 3;
private global::Grpc.Testing.Payload payload_; private global::Grpc.Testing.Payload payload_;
/// <summary>
/// Optional input payload sent along with the request.
/// </summary>
public global::Grpc.Testing.Payload Payload { public global::Grpc.Testing.Payload Payload {
get { return payload_; } get { return payload_; }
set { set {
@ -400,8 +454,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "fill_username" field.</summary>
public const int FillUsernameFieldNumber = 4; public const int FillUsernameFieldNumber = 4;
private bool fillUsername_; private bool fillUsername_;
/// <summary>
/// Whether SimpleResponse should include username.
/// </summary>
public bool FillUsername { public bool FillUsername {
get { return fillUsername_; } get { return fillUsername_; }
set { set {
@ -409,8 +467,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "fill_oauth_scope" field.</summary>
public const int FillOauthScopeFieldNumber = 5; public const int FillOauthScopeFieldNumber = 5;
private bool fillOauthScope_; private bool fillOauthScope_;
/// <summary>
/// Whether SimpleResponse should include OAuth scope.
/// </summary>
public bool FillOauthScope { public bool FillOauthScope {
get { return fillOauthScope_; } get { return fillOauthScope_; }
set { set {
@ -418,8 +480,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "response_compression" field.</summary>
public const int ResponseCompressionFieldNumber = 6; public const int ResponseCompressionFieldNumber = 6;
private global::Grpc.Testing.CompressionType responseCompression_ = global::Grpc.Testing.CompressionType.NONE; private global::Grpc.Testing.CompressionType responseCompression_ = global::Grpc.Testing.CompressionType.NONE;
/// <summary>
/// Compression algorithm to be used by the server for the response (stream)
/// </summary>
public global::Grpc.Testing.CompressionType ResponseCompression { public global::Grpc.Testing.CompressionType ResponseCompression {
get { return responseCompression_; } get { return responseCompression_; }
set { set {
@ -427,8 +493,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "response_status" field.</summary>
public const int ResponseStatusFieldNumber = 7; public const int ResponseStatusFieldNumber = 7;
private global::Grpc.Testing.EchoStatus responseStatus_; private global::Grpc.Testing.EchoStatus responseStatus_;
/// <summary>
/// Whether server should return a given status
/// </summary>
public global::Grpc.Testing.EchoStatus ResponseStatus { public global::Grpc.Testing.EchoStatus ResponseStatus {
get { return responseStatus_; } get { return responseStatus_; }
set { set {
@ -470,7 +540,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -610,13 +680,16 @@ namespace Grpc.Testing {
} }
/// <summary>
/// Unary response, as configured by the request.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class SimpleResponse : pb::IMessage<SimpleResponse> { public sealed partial class SimpleResponse : pb::IMessage<SimpleResponse> {
private static readonly pb::MessageParser<SimpleResponse> _parser = new pb::MessageParser<SimpleResponse>(() => new SimpleResponse()); private static readonly pb::MessageParser<SimpleResponse> _parser = new pb::MessageParser<SimpleResponse>(() => new SimpleResponse());
public static pb::MessageParser<SimpleResponse> Parser { get { return _parser; } } public static pb::MessageParser<SimpleResponse> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Messages.Descriptor.MessageTypes[3]; } get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[3]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -639,8 +712,12 @@ namespace Grpc.Testing {
return new SimpleResponse(this); return new SimpleResponse(this);
} }
/// <summary>Field number for the "payload" field.</summary>
public const int PayloadFieldNumber = 1; public const int PayloadFieldNumber = 1;
private global::Grpc.Testing.Payload payload_; private global::Grpc.Testing.Payload payload_;
/// <summary>
/// Payload to increase message size.
/// </summary>
public global::Grpc.Testing.Payload Payload { public global::Grpc.Testing.Payload Payload {
get { return payload_; } get { return payload_; }
set { set {
@ -648,8 +725,13 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "username" field.</summary>
public const int UsernameFieldNumber = 2; public const int UsernameFieldNumber = 2;
private string username_ = ""; private string username_ = "";
/// <summary>
/// The user the request came from, for verifying authentication was
/// successful when the client expected it.
/// </summary>
public string Username { public string Username {
get { return username_; } get { return username_; }
set { set {
@ -657,8 +739,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "oauth_scope" field.</summary>
public const int OauthScopeFieldNumber = 3; public const int OauthScopeFieldNumber = 3;
private string oauthScope_ = ""; private string oauthScope_ = "";
/// <summary>
/// OAuth scope.
/// </summary>
public string OauthScope { public string OauthScope {
get { return oauthScope_; } get { return oauthScope_; }
set { set {
@ -692,7 +778,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -770,13 +856,16 @@ namespace Grpc.Testing {
} }
/// <summary>
/// Client-streaming request.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class StreamingInputCallRequest : pb::IMessage<StreamingInputCallRequest> { public sealed partial class StreamingInputCallRequest : pb::IMessage<StreamingInputCallRequest> {
private static readonly pb::MessageParser<StreamingInputCallRequest> _parser = new pb::MessageParser<StreamingInputCallRequest>(() => new StreamingInputCallRequest()); private static readonly pb::MessageParser<StreamingInputCallRequest> _parser = new pb::MessageParser<StreamingInputCallRequest>(() => new StreamingInputCallRequest());
public static pb::MessageParser<StreamingInputCallRequest> Parser { get { return _parser; } } public static pb::MessageParser<StreamingInputCallRequest> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Messages.Descriptor.MessageTypes[4]; } get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[4]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -797,8 +886,12 @@ namespace Grpc.Testing {
return new StreamingInputCallRequest(this); return new StreamingInputCallRequest(this);
} }
/// <summary>Field number for the "payload" field.</summary>
public const int PayloadFieldNumber = 1; public const int PayloadFieldNumber = 1;
private global::Grpc.Testing.Payload payload_; private global::Grpc.Testing.Payload payload_;
/// <summary>
/// Optional input payload sent along with the request.
/// </summary>
public global::Grpc.Testing.Payload Payload { public global::Grpc.Testing.Payload Payload {
get { return payload_; } get { return payload_; }
set { set {
@ -828,7 +921,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -878,13 +971,16 @@ namespace Grpc.Testing {
} }
/// <summary>
/// Client-streaming response.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class StreamingInputCallResponse : pb::IMessage<StreamingInputCallResponse> { public sealed partial class StreamingInputCallResponse : pb::IMessage<StreamingInputCallResponse> {
private static readonly pb::MessageParser<StreamingInputCallResponse> _parser = new pb::MessageParser<StreamingInputCallResponse>(() => new StreamingInputCallResponse()); private static readonly pb::MessageParser<StreamingInputCallResponse> _parser = new pb::MessageParser<StreamingInputCallResponse>(() => new StreamingInputCallResponse());
public static pb::MessageParser<StreamingInputCallResponse> Parser { get { return _parser; } } public static pb::MessageParser<StreamingInputCallResponse> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Messages.Descriptor.MessageTypes[5]; } get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[5]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -905,8 +1001,12 @@ namespace Grpc.Testing {
return new StreamingInputCallResponse(this); return new StreamingInputCallResponse(this);
} }
/// <summary>Field number for the "aggregated_payload_size" field.</summary>
public const int AggregatedPayloadSizeFieldNumber = 1; public const int AggregatedPayloadSizeFieldNumber = 1;
private int aggregatedPayloadSize_; private int aggregatedPayloadSize_;
/// <summary>
/// Aggregated size of payloads received from the client.
/// </summary>
public int AggregatedPayloadSize { public int AggregatedPayloadSize {
get { return aggregatedPayloadSize_; } get { return aggregatedPayloadSize_; }
set { set {
@ -936,7 +1036,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -980,13 +1080,16 @@ namespace Grpc.Testing {
} }
/// <summary>
/// Configuration for a particular response.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class ResponseParameters : pb::IMessage<ResponseParameters> { public sealed partial class ResponseParameters : pb::IMessage<ResponseParameters> {
private static readonly pb::MessageParser<ResponseParameters> _parser = new pb::MessageParser<ResponseParameters>(() => new ResponseParameters()); private static readonly pb::MessageParser<ResponseParameters> _parser = new pb::MessageParser<ResponseParameters>(() => new ResponseParameters());
public static pb::MessageParser<ResponseParameters> Parser { get { return _parser; } } public static pb::MessageParser<ResponseParameters> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Messages.Descriptor.MessageTypes[6]; } get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[6]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -1008,8 +1111,13 @@ namespace Grpc.Testing {
return new ResponseParameters(this); return new ResponseParameters(this);
} }
/// <summary>Field number for the "size" field.</summary>
public const int SizeFieldNumber = 1; public const int SizeFieldNumber = 1;
private int size_; private int size_;
/// <summary>
/// Desired payload sizes in responses from the server.
/// If response_type is COMPRESSABLE, this denotes the size before compression.
/// </summary>
public int Size { public int Size {
get { return size_; } get { return size_; }
set { set {
@ -1017,8 +1125,13 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "interval_us" field.</summary>
public const int IntervalUsFieldNumber = 2; public const int IntervalUsFieldNumber = 2;
private int intervalUs_; private int intervalUs_;
/// <summary>
/// Desired interval between consecutive responses in the response stream in
/// microseconds.
/// </summary>
public int IntervalUs { public int IntervalUs {
get { return intervalUs_; } get { return intervalUs_; }
set { set {
@ -1050,7 +1163,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -1108,13 +1221,16 @@ namespace Grpc.Testing {
} }
/// <summary>
/// Server-streaming request.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class StreamingOutputCallRequest : pb::IMessage<StreamingOutputCallRequest> { public sealed partial class StreamingOutputCallRequest : pb::IMessage<StreamingOutputCallRequest> {
private static readonly pb::MessageParser<StreamingOutputCallRequest> _parser = new pb::MessageParser<StreamingOutputCallRequest>(() => new StreamingOutputCallRequest()); private static readonly pb::MessageParser<StreamingOutputCallRequest> _parser = new pb::MessageParser<StreamingOutputCallRequest>(() => new StreamingOutputCallRequest());
public static pb::MessageParser<StreamingOutputCallRequest> Parser { get { return _parser; } } public static pb::MessageParser<StreamingOutputCallRequest> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Messages.Descriptor.MessageTypes[7]; } get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[7]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -1139,8 +1255,15 @@ namespace Grpc.Testing {
return new StreamingOutputCallRequest(this); return new StreamingOutputCallRequest(this);
} }
/// <summary>Field number for the "response_type" field.</summary>
public const int ResponseTypeFieldNumber = 1; public const int ResponseTypeFieldNumber = 1;
private global::Grpc.Testing.PayloadType responseType_ = global::Grpc.Testing.PayloadType.COMPRESSABLE; private global::Grpc.Testing.PayloadType responseType_ = global::Grpc.Testing.PayloadType.COMPRESSABLE;
/// <summary>
/// Desired payload type in the response from the server.
/// If response_type is RANDOM, the payload from each response in the stream
/// might be of different types. This is to simulate a mixed type of payload
/// stream.
/// </summary>
public global::Grpc.Testing.PayloadType ResponseType { public global::Grpc.Testing.PayloadType ResponseType {
get { return responseType_; } get { return responseType_; }
set { set {
@ -1148,16 +1271,24 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "response_parameters" field.</summary>
public const int ResponseParametersFieldNumber = 2; public const int ResponseParametersFieldNumber = 2;
private static readonly pb::FieldCodec<global::Grpc.Testing.ResponseParameters> _repeated_responseParameters_codec private static readonly pb::FieldCodec<global::Grpc.Testing.ResponseParameters> _repeated_responseParameters_codec
= pb::FieldCodec.ForMessage(18, global::Grpc.Testing.ResponseParameters.Parser); = pb::FieldCodec.ForMessage(18, global::Grpc.Testing.ResponseParameters.Parser);
private readonly pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> responseParameters_ = new pbc::RepeatedField<global::Grpc.Testing.ResponseParameters>(); private readonly pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> responseParameters_ = new pbc::RepeatedField<global::Grpc.Testing.ResponseParameters>();
/// <summary>
/// Configuration for each expected response message.
/// </summary>
public pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> ResponseParameters { public pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> ResponseParameters {
get { return responseParameters_; } get { return responseParameters_; }
} }
/// <summary>Field number for the "payload" field.</summary>
public const int PayloadFieldNumber = 3; public const int PayloadFieldNumber = 3;
private global::Grpc.Testing.Payload payload_; private global::Grpc.Testing.Payload payload_;
/// <summary>
/// Optional input payload sent along with the request.
/// </summary>
public global::Grpc.Testing.Payload Payload { public global::Grpc.Testing.Payload Payload {
get { return payload_; } get { return payload_; }
set { set {
@ -1165,8 +1296,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "response_compression" field.</summary>
public const int ResponseCompressionFieldNumber = 6; public const int ResponseCompressionFieldNumber = 6;
private global::Grpc.Testing.CompressionType responseCompression_ = global::Grpc.Testing.CompressionType.NONE; private global::Grpc.Testing.CompressionType responseCompression_ = global::Grpc.Testing.CompressionType.NONE;
/// <summary>
/// Compression algorithm to be used by the server for the response (stream)
/// </summary>
public global::Grpc.Testing.CompressionType ResponseCompression { public global::Grpc.Testing.CompressionType ResponseCompression {
get { return responseCompression_; } get { return responseCompression_; }
set { set {
@ -1174,8 +1309,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "response_status" field.</summary>
public const int ResponseStatusFieldNumber = 7; public const int ResponseStatusFieldNumber = 7;
private global::Grpc.Testing.EchoStatus responseStatus_; private global::Grpc.Testing.EchoStatus responseStatus_;
/// <summary>
/// Whether server should return a given status
/// </summary>
public global::Grpc.Testing.EchoStatus ResponseStatus { public global::Grpc.Testing.EchoStatus ResponseStatus {
get { return responseStatus_; } get { return responseStatus_; }
set { set {
@ -1213,7 +1352,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -1318,13 +1457,16 @@ namespace Grpc.Testing {
} }
/// <summary>
/// Server-streaming response, as configured by the request and parameters.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class StreamingOutputCallResponse : pb::IMessage<StreamingOutputCallResponse> { public sealed partial class StreamingOutputCallResponse : pb::IMessage<StreamingOutputCallResponse> {
private static readonly pb::MessageParser<StreamingOutputCallResponse> _parser = new pb::MessageParser<StreamingOutputCallResponse>(() => new StreamingOutputCallResponse()); private static readonly pb::MessageParser<StreamingOutputCallResponse> _parser = new pb::MessageParser<StreamingOutputCallResponse>(() => new StreamingOutputCallResponse());
public static pb::MessageParser<StreamingOutputCallResponse> Parser { get { return _parser; } } public static pb::MessageParser<StreamingOutputCallResponse> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Messages.Descriptor.MessageTypes[8]; } get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[8]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -1345,8 +1487,12 @@ namespace Grpc.Testing {
return new StreamingOutputCallResponse(this); return new StreamingOutputCallResponse(this);
} }
/// <summary>Field number for the "payload" field.</summary>
public const int PayloadFieldNumber = 1; public const int PayloadFieldNumber = 1;
private global::Grpc.Testing.Payload payload_; private global::Grpc.Testing.Payload payload_;
/// <summary>
/// Payload to increase response size.
/// </summary>
public global::Grpc.Testing.Payload Payload { public global::Grpc.Testing.Payload Payload {
get { return payload_; } get { return payload_; }
set { set {
@ -1376,7 +1522,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -1426,13 +1572,18 @@ namespace Grpc.Testing {
} }
/// <summary>
/// For reconnect interop test only.
/// Server tells client whether its reconnects are following the spec and the
/// reconnect backoffs it saw.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class ReconnectInfo : pb::IMessage<ReconnectInfo> { public sealed partial class ReconnectInfo : pb::IMessage<ReconnectInfo> {
private static readonly pb::MessageParser<ReconnectInfo> _parser = new pb::MessageParser<ReconnectInfo>(() => new ReconnectInfo()); private static readonly pb::MessageParser<ReconnectInfo> _parser = new pb::MessageParser<ReconnectInfo>(() => new ReconnectInfo());
public static pb::MessageParser<ReconnectInfo> Parser { get { return _parser; } } public static pb::MessageParser<ReconnectInfo> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Messages.Descriptor.MessageTypes[9]; } get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[9]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -1454,6 +1605,7 @@ namespace Grpc.Testing {
return new ReconnectInfo(this); return new ReconnectInfo(this);
} }
/// <summary>Field number for the "passed" field.</summary>
public const int PassedFieldNumber = 1; public const int PassedFieldNumber = 1;
private bool passed_; private bool passed_;
public bool Passed { public bool Passed {
@ -1463,6 +1615,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "backoff_ms" field.</summary>
public const int BackoffMsFieldNumber = 2; public const int BackoffMsFieldNumber = 2;
private static readonly pb::FieldCodec<int> _repeated_backoffMs_codec private static readonly pb::FieldCodec<int> _repeated_backoffMs_codec
= pb::FieldCodec.ForInt32(18); = pb::FieldCodec.ForInt32(18);
@ -1495,7 +1648,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: test/proto/benchmarks/payloads.proto // source: src/proto/grpc/testing/payloads.proto
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
@ -9,34 +9,36 @@ using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic; using scg = global::System.Collections.Generic;
namespace Grpc.Testing { namespace Grpc.Testing {
/// <summary>Holder for reflection information generated from src/proto/grpc/testing/payloads.proto</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Payloads { public static partial class PayloadsReflection {
#region Descriptor #region Descriptor
/// <summary>File descriptor for src/proto/grpc/testing/payloads.proto</summary>
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
} }
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static Payloads() { static PayloadsReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CiR0ZXN0L3Byb3RvL2JlbmNobWFya3MvcGF5bG9hZHMucHJvdG8SDGdycGMu", "CiVzcmMvcHJvdG8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ileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { }, new pbr::FileDescriptor[] { },
new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ByteBufferParams), new[]{ "ReqSize", "RespSize" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ByteBufferParams), global::Grpc.Testing.ByteBufferParams.Parser, new[]{ "ReqSize", "RespSize" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SimpleProtoParams), new[]{ "ReqSize", "RespSize" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SimpleProtoParams), global::Grpc.Testing.SimpleProtoParams.Parser, new[]{ "ReqSize", "RespSize" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ComplexProtoParams), null, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ComplexProtoParams), global::Grpc.Testing.ComplexProtoParams.Parser, null, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.PayloadConfig), new[]{ "BytebufParams", "SimpleParams", "ComplexParams" }, new[]{ "Payload" }, null, null) new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.PayloadConfig), global::Grpc.Testing.PayloadConfig.Parser, new[]{ "BytebufParams", "SimpleParams", "ComplexParams" }, new[]{ "Payload" }, null, null)
})); }));
} }
#endregion #endregion
@ -49,7 +51,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<ByteBufferParams> Parser { get { return _parser; } } public static pb::MessageParser<ByteBufferParams> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Payloads.Descriptor.MessageTypes[0]; } get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[0]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -71,6 +73,7 @@ namespace Grpc.Testing {
return new ByteBufferParams(this); return new ByteBufferParams(this);
} }
/// <summary>Field number for the "req_size" field.</summary>
public const int ReqSizeFieldNumber = 1; public const int ReqSizeFieldNumber = 1;
private int reqSize_; private int reqSize_;
public int ReqSize { public int ReqSize {
@ -80,6 +83,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "resp_size" field.</summary>
public const int RespSizeFieldNumber = 2; public const int RespSizeFieldNumber = 2;
private int respSize_; private int respSize_;
public int RespSize { public int RespSize {
@ -113,7 +117,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -177,7 +181,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<SimpleProtoParams> Parser { get { return _parser; } } public static pb::MessageParser<SimpleProtoParams> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Payloads.Descriptor.MessageTypes[1]; } get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[1]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -199,6 +203,7 @@ namespace Grpc.Testing {
return new SimpleProtoParams(this); return new SimpleProtoParams(this);
} }
/// <summary>Field number for the "req_size" field.</summary>
public const int ReqSizeFieldNumber = 1; public const int ReqSizeFieldNumber = 1;
private int reqSize_; private int reqSize_;
public int ReqSize { public int ReqSize {
@ -208,6 +213,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "resp_size" field.</summary>
public const int RespSizeFieldNumber = 2; public const int RespSizeFieldNumber = 2;
private int respSize_; private int respSize_;
public int RespSize { public int RespSize {
@ -241,7 +247,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -299,13 +305,17 @@ namespace Grpc.Testing {
} }
/// <summary>
/// TODO (vpai): Fill this in once the details of complex, representative
/// protos are decided
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class ComplexProtoParams : pb::IMessage<ComplexProtoParams> { public sealed partial class ComplexProtoParams : pb::IMessage<ComplexProtoParams> {
private static readonly pb::MessageParser<ComplexProtoParams> _parser = new pb::MessageParser<ComplexProtoParams>(() => new ComplexProtoParams()); private static readonly pb::MessageParser<ComplexProtoParams> _parser = new pb::MessageParser<ComplexProtoParams>(() => new ComplexProtoParams());
public static pb::MessageParser<ComplexProtoParams> Parser { get { return _parser; } } public static pb::MessageParser<ComplexProtoParams> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Payloads.Descriptor.MessageTypes[2]; } get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[2]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -345,7 +355,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -381,7 +391,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<PayloadConfig> Parser { get { return _parser; } } public static pb::MessageParser<PayloadConfig> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Payloads.Descriptor.MessageTypes[3]; } get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[3]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -413,6 +423,7 @@ namespace Grpc.Testing {
return new PayloadConfig(this); return new PayloadConfig(this);
} }
/// <summary>Field number for the "bytebuf_params" field.</summary>
public const int BytebufParamsFieldNumber = 1; public const int BytebufParamsFieldNumber = 1;
public global::Grpc.Testing.ByteBufferParams BytebufParams { public global::Grpc.Testing.ByteBufferParams BytebufParams {
get { return payloadCase_ == PayloadOneofCase.BytebufParams ? (global::Grpc.Testing.ByteBufferParams) payload_ : null; } get { return payloadCase_ == PayloadOneofCase.BytebufParams ? (global::Grpc.Testing.ByteBufferParams) payload_ : null; }
@ -422,6 +433,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "simple_params" field.</summary>
public const int SimpleParamsFieldNumber = 2; public const int SimpleParamsFieldNumber = 2;
public global::Grpc.Testing.SimpleProtoParams SimpleParams { public global::Grpc.Testing.SimpleProtoParams SimpleParams {
get { return payloadCase_ == PayloadOneofCase.SimpleParams ? (global::Grpc.Testing.SimpleProtoParams) payload_ : null; } get { return payloadCase_ == PayloadOneofCase.SimpleParams ? (global::Grpc.Testing.SimpleProtoParams) payload_ : null; }
@ -431,6 +443,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "complex_params" field.</summary>
public const int ComplexParamsFieldNumber = 3; public const int ComplexParamsFieldNumber = 3;
public global::Grpc.Testing.ComplexProtoParams ComplexParams { public global::Grpc.Testing.ComplexProtoParams ComplexParams {
get { return payloadCase_ == PayloadOneofCase.ComplexParams ? (global::Grpc.Testing.ComplexProtoParams) payload_ : null; } get { return payloadCase_ == PayloadOneofCase.ComplexParams ? (global::Grpc.Testing.ComplexProtoParams) payload_ : null; }
@ -441,6 +454,7 @@ namespace Grpc.Testing {
} }
private object payload_; private object payload_;
/// <summary>Enum of possible cases for the "payload" oneof.</summary>
public enum PayloadOneofCase { public enum PayloadOneofCase {
None = 0, None = 0,
BytebufParams = 1, BytebufParams = 1,
@ -471,6 +485,7 @@ namespace Grpc.Testing {
if (!object.Equals(BytebufParams, other.BytebufParams)) return false; if (!object.Equals(BytebufParams, other.BytebufParams)) return false;
if (!object.Equals(SimpleParams, other.SimpleParams)) return false; if (!object.Equals(SimpleParams, other.SimpleParams)) return false;
if (!object.Equals(ComplexParams, other.ComplexParams)) return false; if (!object.Equals(ComplexParams, other.ComplexParams)) return false;
if (PayloadCase != other.PayloadCase) return false;
return true; return true;
} }
@ -479,11 +494,12 @@ namespace Grpc.Testing {
if (payloadCase_ == PayloadOneofCase.BytebufParams) hash ^= BytebufParams.GetHashCode(); if (payloadCase_ == PayloadOneofCase.BytebufParams) hash ^= BytebufParams.GetHashCode();
if (payloadCase_ == PayloadOneofCase.SimpleParams) hash ^= SimpleParams.GetHashCode(); if (payloadCase_ == PayloadOneofCase.SimpleParams) hash ^= SimpleParams.GetHashCode();
if (payloadCase_ == PayloadOneofCase.ComplexParams) hash ^= ComplexParams.GetHashCode(); if (payloadCase_ == PayloadOneofCase.ComplexParams) hash ^= ComplexParams.GetHashCode();
hash ^= (int) payloadCase_;
return hash; return hash;
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: test/proto/benchmarks/services.proto // source: src/proto/grpc/testing/services.proto
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
@ -9,31 +9,33 @@ using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic; using scg = global::System.Collections.Generic;
namespace Grpc.Testing { namespace Grpc.Testing {
/// <summary>Holder for reflection information generated from src/proto/grpc/testing/services.proto</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Services { public static partial class ServicesReflection {
#region Descriptor #region Descriptor
/// <summary>File descriptor for src/proto/grpc/testing/services.proto</summary>
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
} }
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static Services() { static ServicesReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CiR0ZXN0L3Byb3RvL2JlbmNobWFya3Mvc2VydmljZXMucHJvdG8SDGdycGMu", "CiVzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL3NlcnZpY2VzLnByb3RvEgxncnBj",
"dGVzdGluZxoZdGVzdC9wcm90by9tZXNzYWdlcy5wcm90bxojdGVzdC9wcm90", "LnRlc3RpbmcaJXNyYy9wcm90by9ncnBjL3Rlc3RpbmcvbWVzc2FnZXMucHJv",
"by9iZW5jaG1hcmtzL2NvbnRyb2wucHJvdG8yqgEKEEJlbmNobWFya1NlcnZp", "dG8aJHNyYy9wcm90by9ncnBjL3Rlc3RpbmcvY29udHJvbC5wcm90bzKqAQoQ",
"Y2USRgoJVW5hcnlDYWxsEhsuZ3JwYy50ZXN0aW5nLlNpbXBsZVJlcXVlc3Qa", "QmVuY2htYXJrU2VydmljZRJGCglVbmFyeUNhbGwSGy5ncnBjLnRlc3Rpbmcu",
"HC5ncnBjLnRlc3RpbmcuU2ltcGxlUmVzcG9uc2USTgoNU3RyZWFtaW5nQ2Fs", "U2ltcGxlUmVxdWVzdBocLmdycGMudGVzdGluZy5TaW1wbGVSZXNwb25zZRJO",
"bBIbLmdycGMudGVzdGluZy5TaW1wbGVSZXF1ZXN0GhwuZ3JwYy50ZXN0aW5n", "Cg1TdHJlYW1pbmdDYWxsEhsuZ3JwYy50ZXN0aW5nLlNpbXBsZVJlcXVlc3Qa",
"LlNpbXBsZVJlc3BvbnNlKAEwATKdAQoNV29ya2VyU2VydmljZRJFCglSdW5T", "HC5ncnBjLnRlc3RpbmcuU2ltcGxlUmVzcG9uc2UoATABMp0BCg1Xb3JrZXJT",
"ZXJ2ZXISGC5ncnBjLnRlc3RpbmcuU2VydmVyQXJncxoaLmdycGMudGVzdGlu", "ZXJ2aWNlEkUKCVJ1blNlcnZlchIYLmdycGMudGVzdGluZy5TZXJ2ZXJBcmdz",
"Zy5TZXJ2ZXJTdGF0dXMoATABEkUKCVJ1bkNsaWVudBIYLmdycGMudGVzdGlu", "GhouZ3JwYy50ZXN0aW5nLlNlcnZlclN0YXR1cygBMAESRQoJUnVuQ2xpZW50",
"Zy5DbGllbnRBcmdzGhouZ3JwYy50ZXN0aW5nLkNsaWVudFN0YXR1cygBMAFi", "EhguZ3JwYy50ZXN0aW5nLkNsaWVudEFyZ3MaGi5ncnBjLnRlc3RpbmcuQ2xp",
"BnByb3RvMw==")); "ZW50U3RhdHVzKAEwAWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Grpc.Testing.Messages.Descriptor, global::Grpc.Testing.Control.Descriptor, }, new pbr::FileDescriptor[] { global::Grpc.Testing.MessagesReflection.Descriptor, global::Grpc.Testing.ControlReflection.Descriptor, },
new pbr::GeneratedCodeInfo(null, null)); new pbr::GeneratedCodeInfo(null, null));
} }
#endregion #endregion

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: test/proto/benchmarks/services.proto // source: src/proto/grpc/testing/services.proto
#region Designer generated code #region Designer generated code
using System; using System;
@ -32,7 +32,7 @@ namespace Grpc.Testing {
// service descriptor // service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{ {
get { return global::Grpc.Testing.Services.Descriptor.Services[0]; } get { return global::Grpc.Testing.ServicesReflection.Descriptor.Services[0]; }
} }
// client interface // client interface
@ -132,7 +132,7 @@ namespace Grpc.Testing {
// service descriptor // service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{ {
get { return global::Grpc.Testing.Services.Descriptor.Services[1]; } get { return global::Grpc.Testing.ServicesReflection.Descriptor.Services[1]; }
} }
// client interface // client interface

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: test/proto/benchmarks/stats.proto // source: src/proto/grpc/testing/stats.proto
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
@ -9,35 +9,37 @@ using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic; using scg = global::System.Collections.Generic;
namespace Grpc.Testing { namespace Grpc.Testing {
/// <summary>Holder for reflection information generated from src/proto/grpc/testing/stats.proto</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Stats { public static partial class StatsReflection {
#region Descriptor #region Descriptor
/// <summary>File descriptor for src/proto/grpc/testing/stats.proto</summary>
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
} }
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static Stats() { static StatsReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"CiF0ZXN0L3Byb3RvL2JlbmNobWFya3Mvc3RhdHMucHJvdG8SDGdycGMudGVz", "CiJzcmMvcHJvdG8vZ3JwYy90ZXN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cHJvdG8z")); "ZXIYAyABKAESEwoLdGltZV9zeXN0ZW0YBCABKAFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { }, new pbr::FileDescriptor[] { },
new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerStats), new[]{ "TimeElapsed", "TimeUser", "TimeSystem" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerStats), global::Grpc.Testing.ServerStats.Parser, new[]{ "TimeElapsed", "TimeUser", "TimeSystem" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.HistogramParams), new[]{ "Resolution", "MaxPossible" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.HistogramParams), global::Grpc.Testing.HistogramParams.Parser, new[]{ "Resolution", "MaxPossible" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.HistogramData), new[]{ "Bucket", "MinSeen", "MaxSeen", "Sum", "SumOfSquares", "Count" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.HistogramData), global::Grpc.Testing.HistogramData.Parser, new[]{ "Bucket", "MinSeen", "MaxSeen", "Sum", "SumOfSquares", "Count" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientStats), new[]{ "Latencies", "TimeElapsed", "TimeUser", "TimeSystem" }, null, null, null) new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientStats), global::Grpc.Testing.ClientStats.Parser, new[]{ "Latencies", "TimeElapsed", "TimeUser", "TimeSystem" }, null, null, null)
})); }));
} }
#endregion #endregion
@ -50,7 +52,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<ServerStats> Parser { get { return _parser; } } public static pb::MessageParser<ServerStats> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Stats.Descriptor.MessageTypes[0]; } get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[0]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -73,8 +75,12 @@ namespace Grpc.Testing {
return new ServerStats(this); return new ServerStats(this);
} }
/// <summary>Field number for the "time_elapsed" field.</summary>
public const int TimeElapsedFieldNumber = 1; public const int TimeElapsedFieldNumber = 1;
private double timeElapsed_; private double timeElapsed_;
/// <summary>
/// wall clock time change in seconds since last reset
/// </summary>
public double TimeElapsed { public double TimeElapsed {
get { return timeElapsed_; } get { return timeElapsed_; }
set { set {
@ -82,8 +88,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "time_user" field.</summary>
public const int TimeUserFieldNumber = 2; public const int TimeUserFieldNumber = 2;
private double timeUser_; private double timeUser_;
/// <summary>
/// change in user time (in seconds) used by the server since last reset
/// </summary>
public double TimeUser { public double TimeUser {
get { return timeUser_; } get { return timeUser_; }
set { set {
@ -91,8 +101,13 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "time_system" field.</summary>
public const int TimeSystemFieldNumber = 3; public const int TimeSystemFieldNumber = 3;
private double timeSystem_; private double timeSystem_;
/// <summary>
/// change in server time (in seconds) used by the server process and all
/// threads since last reset
/// </summary>
public double TimeSystem { public double TimeSystem {
get { return timeSystem_; } get { return timeSystem_; }
set { set {
@ -126,7 +141,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -198,13 +213,16 @@ namespace Grpc.Testing {
} }
/// <summary>
/// Histogram params based on grpc/support/histogram.c
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class HistogramParams : pb::IMessage<HistogramParams> { public sealed partial class HistogramParams : pb::IMessage<HistogramParams> {
private static readonly pb::MessageParser<HistogramParams> _parser = new pb::MessageParser<HistogramParams>(() => new HistogramParams()); private static readonly pb::MessageParser<HistogramParams> _parser = new pb::MessageParser<HistogramParams>(() => new HistogramParams());
public static pb::MessageParser<HistogramParams> Parser { get { return _parser; } } public static pb::MessageParser<HistogramParams> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Stats.Descriptor.MessageTypes[1]; } get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[1]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -226,8 +244,12 @@ namespace Grpc.Testing {
return new HistogramParams(this); return new HistogramParams(this);
} }
/// <summary>Field number for the "resolution" field.</summary>
public const int ResolutionFieldNumber = 1; public const int ResolutionFieldNumber = 1;
private double resolution_; private double resolution_;
/// <summary>
/// first bucket is [0, 1 + resolution)
/// </summary>
public double Resolution { public double Resolution {
get { return resolution_; } get { return resolution_; }
set { set {
@ -235,8 +257,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "max_possible" field.</summary>
public const int MaxPossibleFieldNumber = 2; public const int MaxPossibleFieldNumber = 2;
private double maxPossible_; private double maxPossible_;
/// <summary>
/// use enough buckets to allow this value
/// </summary>
public double MaxPossible { public double MaxPossible {
get { return maxPossible_; } get { return maxPossible_; }
set { set {
@ -268,7 +294,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -326,13 +352,16 @@ namespace Grpc.Testing {
} }
/// <summary>
/// Histogram data based on grpc/support/histogram.c
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class HistogramData : pb::IMessage<HistogramData> { public sealed partial class HistogramData : pb::IMessage<HistogramData> {
private static readonly pb::MessageParser<HistogramData> _parser = new pb::MessageParser<HistogramData>(() => new HistogramData()); private static readonly pb::MessageParser<HistogramData> _parser = new pb::MessageParser<HistogramData>(() => new HistogramData());
public static pb::MessageParser<HistogramData> Parser { get { return _parser; } } public static pb::MessageParser<HistogramData> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Stats.Descriptor.MessageTypes[2]; } get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[2]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -358,6 +387,7 @@ namespace Grpc.Testing {
return new HistogramData(this); return new HistogramData(this);
} }
/// <summary>Field number for the "bucket" field.</summary>
public const int BucketFieldNumber = 1; public const int BucketFieldNumber = 1;
private static readonly pb::FieldCodec<uint> _repeated_bucket_codec private static readonly pb::FieldCodec<uint> _repeated_bucket_codec
= pb::FieldCodec.ForUInt32(10); = pb::FieldCodec.ForUInt32(10);
@ -366,6 +396,7 @@ namespace Grpc.Testing {
get { return bucket_; } get { return bucket_; }
} }
/// <summary>Field number for the "min_seen" field.</summary>
public const int MinSeenFieldNumber = 2; public const int MinSeenFieldNumber = 2;
private double minSeen_; private double minSeen_;
public double MinSeen { public double MinSeen {
@ -375,6 +406,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "max_seen" field.</summary>
public const int MaxSeenFieldNumber = 3; public const int MaxSeenFieldNumber = 3;
private double maxSeen_; private double maxSeen_;
public double MaxSeen { public double MaxSeen {
@ -384,6 +416,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "sum" field.</summary>
public const int SumFieldNumber = 4; public const int SumFieldNumber = 4;
private double sum_; private double sum_;
public double Sum { public double Sum {
@ -393,6 +426,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "sum_of_squares" field.</summary>
public const int SumOfSquaresFieldNumber = 5; public const int SumOfSquaresFieldNumber = 5;
private double sumOfSquares_; private double sumOfSquares_;
public double SumOfSquares { public double SumOfSquares {
@ -402,6 +436,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "count" field.</summary>
public const int CountFieldNumber = 6; public const int CountFieldNumber = 6;
private double count_; private double count_;
public double Count { public double Count {
@ -443,7 +478,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {
@ -557,7 +592,7 @@ namespace Grpc.Testing {
public static pb::MessageParser<ClientStats> Parser { get { return _parser; } } public static pb::MessageParser<ClientStats> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor { public static pbr::MessageDescriptor Descriptor {
get { return global::Grpc.Testing.Stats.Descriptor.MessageTypes[3]; } get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[3]; }
} }
pbr::MessageDescriptor pb::IMessage.Descriptor { pbr::MessageDescriptor pb::IMessage.Descriptor {
@ -581,8 +616,12 @@ namespace Grpc.Testing {
return new ClientStats(this); return new ClientStats(this);
} }
/// <summary>Field number for the "latencies" field.</summary>
public const int LatenciesFieldNumber = 1; public const int LatenciesFieldNumber = 1;
private global::Grpc.Testing.HistogramData latencies_; private global::Grpc.Testing.HistogramData latencies_;
/// <summary>
/// Latency histogram. Data points are in nanoseconds.
/// </summary>
public global::Grpc.Testing.HistogramData Latencies { public global::Grpc.Testing.HistogramData Latencies {
get { return latencies_; } get { return latencies_; }
set { set {
@ -590,8 +629,12 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "time_elapsed" field.</summary>
public const int TimeElapsedFieldNumber = 2; public const int TimeElapsedFieldNumber = 2;
private double timeElapsed_; private double timeElapsed_;
/// <summary>
/// See ServerStats for details.
/// </summary>
public double TimeElapsed { public double TimeElapsed {
get { return timeElapsed_; } get { return timeElapsed_; }
set { set {
@ -599,6 +642,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "time_user" field.</summary>
public const int TimeUserFieldNumber = 3; public const int TimeUserFieldNumber = 3;
private double timeUser_; private double timeUser_;
public double TimeUser { public double TimeUser {
@ -608,6 +652,7 @@ namespace Grpc.Testing {
} }
} }
/// <summary>Field number for the "time_system" field.</summary>
public const int TimeSystemFieldNumber = 4; public const int TimeSystemFieldNumber = 4;
private double timeSystem_; private double timeSystem_;
public double TimeSystem { public double TimeSystem {
@ -645,7 +690,7 @@ namespace Grpc.Testing {
} }
public override string ToString() { public override string ToString() {
return pb::JsonFormatter.Default.Format(this); return pb::JsonFormatter.ToDiagnosticString(this);
} }
public void WriteTo(pb::CodedOutputStream output) { public void WriteTo(pb::CodedOutputStream output) {

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: test/proto/test.proto // source: src/proto/grpc/testing/test.proto
#pragma warning disable 1591, 0612, 3021 #pragma warning disable 1591, 0612, 3021
#region Designer generated code #region Designer generated code
@ -9,40 +9,43 @@ using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic; using scg = global::System.Collections.Generic;
namespace Grpc.Testing { namespace Grpc.Testing {
/// <summary>Holder for reflection information generated from src/proto/grpc/testing/test.proto</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Test { public static partial class TestReflection {
#region Descriptor #region Descriptor
/// <summary>File descriptor for src/proto/grpc/testing/test.proto</summary>
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
} }
private static pbr::FileDescriptor descriptor; private static pbr::FileDescriptor descriptor;
static Test() { static TestReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String( byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat( string.Concat(
"ChV0ZXN0L3Byb3RvL3Rlc3QucHJvdG8SDGdycGMudGVzdGluZxoWdGVzdC9w", "CiFzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL3Rlc3QucHJvdG8SDGdycGMudGVz",
"cm90by9lbXB0eS5wcm90bxoZdGVzdC9wcm90by9tZXNzYWdlcy5wcm90bzK7", "dGluZxoic3JjL3Byb3RvL2dycGMvdGVzdGluZy9lbXB0eS5wcm90bxolc3Jj",
"BAoLVGVzdFNlcnZpY2USNQoJRW1wdHlDYWxsEhMuZ3JwYy50ZXN0aW5nLkVt", "L3Byb3RvL2dycGMvdGVzdGluZy9tZXNzYWdlcy5wcm90bzK7BAoLVGVzdFNl",
"cHR5GhMuZ3JwYy50ZXN0aW5nLkVtcHR5EkYKCVVuYXJ5Q2FsbBIbLmdycGMu", "cnZpY2USNQoJRW1wdHlDYWxsEhMuZ3JwYy50ZXN0aW5nLkVtcHR5GhMuZ3Jw",
"dGVzdGluZy5TaW1wbGVSZXF1ZXN0GhwuZ3JwYy50ZXN0aW5nLlNpbXBsZVJl", "Yy50ZXN0aW5nLkVtcHR5EkYKCVVuYXJ5Q2FsbBIbLmdycGMudGVzdGluZy5T",
"c3BvbnNlEmwKE1N0cmVhbWluZ091dHB1dENhbGwSKC5ncnBjLnRlc3Rpbmcu", "aW1wbGVSZXF1ZXN0GhwuZ3JwYy50ZXN0aW5nLlNpbXBsZVJlc3BvbnNlEmwK",
"U3RyZWFtaW5nT3V0cHV0Q2FsbFJlcXVlc3QaKS5ncnBjLnRlc3RpbmcuU3Ry", "E1N0cmVhbWluZ091dHB1dENhbGwSKC5ncnBjLnRlc3RpbmcuU3RyZWFtaW5n",
"ZWFtaW5nT3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3Rp", "Z091dHB1dENhbGxSZXNwb25zZSgBMAEyVQoUVW5pbXBsZW1lbnRlZFNlcnZp",
"bmcuRW1wdHkaEy5ncnBjLnRlc3RpbmcuRW1wdHkyfwoQUmVjb25uZWN0U2Vy", "Y2USPQoRVW5pbXBsZW1lbnRlZENhbGwSEy5ncnBjLnRlc3RpbmcuRW1wdHka",
"dmljZRIxCgVTdGFydBITLmdycGMudGVzdGluZy5FbXB0eRoTLmdycGMudGVz", "Ey5ncnBjLnRlc3RpbmcuRW1wdHkyfwoQUmVjb25uZWN0U2VydmljZRIxCgVT",
"dGluZy5FbXB0eRI4CgRTdG9wEhMuZ3JwYy50ZXN0aW5nLkVtcHR5GhsuZ3Jw", "dGFydBITLmdycGMudGVzdGluZy5FbXB0eRoTLmdycGMudGVzdGluZy5FbXB0",
"Yy50ZXN0aW5nLlJlY29ubmVjdEluZm9iBnByb3RvMw==")); "eRI4CgRTdG9wEhMuZ3JwYy50ZXN0aW5nLkVtcHR5GhsuZ3JwYy50ZXN0aW5n",
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, "LlJlY29ubmVjdEluZm9iBnByb3RvMw=="));
new pbr::FileDescriptor[] { global::Grpc.Testing.Proto.Empty.Descriptor, global::Grpc.Testing.Messages.Descriptor, }, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Grpc.Testing.EmptyReflection.Descriptor, global::Grpc.Testing.MessagesReflection.Descriptor, },
new pbr::GeneratedCodeInfo(null, null)); new pbr::GeneratedCodeInfo(null, null));
} }
#endregion #endregion

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT! // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: test/proto/test.proto // source: src/proto/grpc/testing/test.proto
#region Designer generated code #region Designer generated code
using System; using System;
@ -65,7 +65,7 @@ namespace Grpc.Testing {
// service descriptor // service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{ {
get { return global::Grpc.Testing.Test.Descriptor.Services[0]; } get { return global::Grpc.Testing.TestReflection.Descriptor.Services[0]; }
} }
// client interface // client interface
@ -223,7 +223,7 @@ namespace Grpc.Testing {
// service descriptor // service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{ {
get { return global::Grpc.Testing.Test.Descriptor.Services[1]; } get { return global::Grpc.Testing.TestReflection.Descriptor.Services[1]; }
} }
// client interface // client interface
@ -307,7 +307,7 @@ namespace Grpc.Testing {
// service descriptor // service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{ {
get { return global::Grpc.Testing.Test.Descriptor.Services[2]; } get { return global::Grpc.Testing.TestReflection.Descriptor.Services[2]; }
} }
// client interface // client interface

Loading…
Cancel
Save