Skip to content

Commit

Permalink
regenerate C# sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed Dec 5, 2017
1 parent 64b5b2f commit 991709c
Show file tree
Hide file tree
Showing 13 changed files with 865 additions and 93 deletions.
8 changes: 4 additions & 4 deletions src/csharp/Grpc.Examples/MathGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public static partial class Math
{
static readonly string __ServiceName = "math.Math";

static readonly grpc::Marshaller<global::Math.DivArgs> __Marshaller_DivArgs = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Math.DivArgs.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Math.DivReply> __Marshaller_DivReply = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Math.DivReply.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Math.FibArgs> __Marshaller_FibArgs = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Math.FibArgs.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Math.Num> __Marshaller_Num = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Math.Num.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Math.DivArgs> __Marshaller_DivArgs = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), (arg) => global::Math.DivArgs.Parser.ParseFrom(arg.Array, arg.Offset, arg.Count));
static readonly grpc::Marshaller<global::Math.DivReply> __Marshaller_DivReply = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), (arg) => global::Math.DivReply.Parser.ParseFrom(arg.Array, arg.Offset, arg.Count));
static readonly grpc::Marshaller<global::Math.FibArgs> __Marshaller_FibArgs = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), (arg) => global::Math.FibArgs.Parser.ParseFrom(arg.Array, arg.Offset, arg.Count));
static readonly grpc::Marshaller<global::Math.Num> __Marshaller_Num = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), (arg) => global::Math.Num.Parser.ParseFrom(arg.Array, arg.Offset, arg.Count));

static readonly grpc::Method<global::Math.DivArgs, global::Math.DivReply> __Method_Div = new grpc::Method<global::Math.DivArgs, global::Math.DivReply>(
grpc::MethodType.Unary,
Expand Down
4 changes: 2 additions & 2 deletions src/csharp/Grpc.HealthCheck/HealthGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public static partial class Health
{
static readonly string __ServiceName = "grpc.health.v1.Health";

static readonly grpc::Marshaller<global::Grpc.Health.V1.HealthCheckRequest> __Marshaller_HealthCheckRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Health.V1.HealthCheckRequest.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Grpc.Health.V1.HealthCheckResponse> __Marshaller_HealthCheckResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Health.V1.HealthCheckResponse.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Grpc.Health.V1.HealthCheckRequest> __Marshaller_HealthCheckRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), (arg) => global::Grpc.Health.V1.HealthCheckRequest.Parser.ParseFrom(arg.Array, arg.Offset, arg.Count));
static readonly grpc::Marshaller<global::Grpc.Health.V1.HealthCheckResponse> __Marshaller_HealthCheckResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), (arg) => global::Grpc.Health.V1.HealthCheckResponse.Parser.ParseFrom(arg.Array, arg.Offset, arg.Count));

static readonly grpc::Method<global::Grpc.Health.V1.HealthCheckRequest, global::Grpc.Health.V1.HealthCheckResponse> __Method_Check = new grpc::Method<global::Grpc.Health.V1.HealthCheckRequest, global::Grpc.Health.V1.HealthCheckResponse>(
grpc::MethodType.Unary,
Expand Down
30 changes: 24 additions & 6 deletions src/csharp/Grpc.IntegrationTesting/Control.cs
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,16 @@ public enum LoadOneofCase {
}
switch (other.LoadCase) {
case LoadOneofCase.ClosedLoop:
ClosedLoop = other.ClosedLoop;
if (ClosedLoop == null) {
ClosedLoop = new global::Grpc.Testing.ClosedLoopParams();
}
ClosedLoop.MergeFrom(other.ClosedLoop);
break;
case LoadOneofCase.Poisson:
Poisson = other.Poisson;
if (Poisson == null) {
Poisson = new global::Grpc.Testing.PoissonParams();
}
Poisson.MergeFrom(other.Poisson);
break;
}

Expand Down Expand Up @@ -1901,10 +1907,16 @@ public enum ArgtypeOneofCase {
}
switch (other.ArgtypeCase) {
case ArgtypeOneofCase.Setup:
Setup = other.Setup;
if (Setup == null) {
Setup = new global::Grpc.Testing.ClientConfig();
}
Setup.MergeFrom(other.Setup);
break;
case ArgtypeOneofCase.Mark:
Mark = other.Mark;
if (Mark == null) {
Mark = new global::Grpc.Testing.Mark();
}
Mark.MergeFrom(other.Mark);
break;
}

Expand Down Expand Up @@ -2508,10 +2520,16 @@ public enum ArgtypeOneofCase {
}
switch (other.ArgtypeCase) {
case ArgtypeOneofCase.Setup:
Setup = other.Setup;
if (Setup == null) {
Setup = new global::Grpc.Testing.ServerConfig();
}
Setup.MergeFrom(other.Setup);
break;
case ArgtypeOneofCase.Mark:
Mark = other.Mark;
if (Mark == null) {
Mark = new global::Grpc.Testing.Mark();
}
Mark.MergeFrom(other.Mark);
break;
}

Expand Down

0 comments on commit 991709c

Please sign in to comment.