Skip to content

Commit

Permalink
regenerate C# protos with src/csharp/generate_proto_csharp.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed Jul 16, 2019
1 parent dce5408 commit fd3d125
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/csharp/Grpc.Examples/MathGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public partial class MathClient : grpc::ClientBase<MathClient>
{
/// <summary>Creates a new client for Math</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public MathClient(grpc::Channel channel) : base(channel)
public MathClient(grpc::ChannelBase channel) : base(channel)
{
}
/// <summary>Creates a new client for Math that uses a custom <c>CallInvoker</c>.</summary>
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.IntegrationTesting/BenchmarkServiceGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public partial class BenchmarkServiceClient : grpc::ClientBase<BenchmarkServiceC
{
/// <summary>Creates a new client for BenchmarkService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public BenchmarkServiceClient(grpc::Channel channel) : base(channel)
public BenchmarkServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// <summary>Creates a new client for BenchmarkService that uses a custom <c>CallInvoker</c>.</summary>
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.IntegrationTesting/EmptyServiceGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public partial class EmptyServiceClient : grpc::ClientBase<EmptyServiceClient>
{
/// <summary>Creates a new client for EmptyService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public EmptyServiceClient(grpc::Channel channel) : base(channel)
public EmptyServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// <summary>Creates a new client for EmptyService that uses a custom <c>CallInvoker</c>.</summary>
Expand Down
110 changes: 87 additions & 23 deletions src/csharp/Grpc.IntegrationTesting/Messages.cs
Original file line number Diff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CmJhY2tvZmZfbXMYAiADKAUqHwoLUGF5bG9hZFR5cGUSEAoMQ09NUFJFU1NB",
"QkxFEABiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Grpc.Testing.PayloadType), }, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.BoolValue), global::Grpc.Testing.BoolValue.Parser, new[]{ "Value" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Payload), global::Grpc.Testing.Payload.Parser, new[]{ "Type", "Body" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EchoStatus), global::Grpc.Testing.EchoStatus.Parser, new[]{ "Code", "Message" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleRequest), global::Grpc.Testing.SimpleRequest.Parser, new[]{ "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompressed", "ResponseStatus", "ExpectCompressed" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleResponse), global::Grpc.Testing.SimpleResponse.Parser, new[]{ "Payload", "Username", "OauthScope" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleRequest), global::Grpc.Testing.SimpleRequest.Parser, new[]{ "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompressed", "ResponseStatus", "ExpectCompressed", "FillServerId" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleResponse), global::Grpc.Testing.SimpleResponse.Parser, new[]{ "Payload", "Username", "OauthScope", "ServerId" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallRequest), global::Grpc.Testing.StreamingInputCallRequest.Parser, new[]{ "Payload", "ExpectCompressed" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallResponse), global::Grpc.Testing.StreamingInputCallResponse.Parser, new[]{ "AggregatedPayloadSize" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ResponseParameters), global::Grpc.Testing.ResponseParameters.Parser, new[]{ "Size", "IntervalUs", "Compressed" }, null, null, null),
Expand Down Expand Up @@ -589,6 +590,7 @@ public SimpleRequest(SimpleRequest other) : this() {
responseCompressed_ = other.responseCompressed_ != null ? other.responseCompressed_.Clone() : null;
responseStatus_ = other.responseStatus_ != null ? other.responseStatus_.Clone() : null;
expectCompressed_ = other.expectCompressed_ != null ? other.expectCompressed_.Clone() : null;
fillServerId_ = other.fillServerId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -713,6 +715,20 @@ public bool FillOauthScope {
}
}

/// <summary>Field number for the "fill_server_id" field.</summary>
public const int FillServerIdFieldNumber = 9;
private bool fillServerId_;
/// <summary>
/// Whether SimpleResponse should include server_id.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool FillServerId {
get { return fillServerId_; }
set {
fillServerId_ = value;
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SimpleRequest);
Expand All @@ -734,6 +750,7 @@ public bool Equals(SimpleRequest other) {
if (!object.Equals(ResponseCompressed, other.ResponseCompressed)) return false;
if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false;
if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false;
if (FillServerId != other.FillServerId) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -748,6 +765,7 @@ public override int GetHashCode() {
if (responseCompressed_ != null) hash ^= ResponseCompressed.GetHashCode();
if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode();
if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode();
if (FillServerId != false) hash ^= FillServerId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -793,6 +811,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(66);
output.WriteMessage(ExpectCompressed);
}
if (FillServerId != false) {
output.WriteRawTag(72);
output.WriteBool(FillServerId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand Down Expand Up @@ -825,6 +847,9 @@ public int CalculateSize() {
if (expectCompressed_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed);
}
if (FillServerId != false) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand Down Expand Up @@ -872,6 +897,9 @@ public void MergeFrom(SimpleRequest other) {
}
ExpectCompressed.MergeFrom(other.ExpectCompressed);
}
if (other.FillServerId != false) {
FillServerId = other.FillServerId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -927,6 +955,10 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(ExpectCompressed);
break;
}
case 72: {
FillServerId = input.ReadBool();
break;
}
}
}
}
Expand Down Expand Up @@ -964,6 +996,7 @@ public SimpleResponse(SimpleResponse other) : this() {
payload_ = other.payload_ != null ? other.payload_.Clone() : null;
username_ = other.username_;
oauthScope_ = other.oauthScope_;
serverId_ = other.serverId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -1015,6 +1048,21 @@ public string OauthScope {
}
}

/// <summary>Field number for the "server_id" field.</summary>
public const int ServerIdFieldNumber = 4;
private string serverId_ = "";
/// <summary>
/// Server ID. This must be unique among different server instances,
/// but the same across all RPC's made to a particular server instance.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ServerId {
get { return serverId_; }
set {
serverId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SimpleResponse);
Expand All @@ -1031,6 +1079,7 @@ public bool Equals(SimpleResponse other) {
if (!object.Equals(Payload, other.Payload)) return false;
if (Username != other.Username) return false;
if (OauthScope != other.OauthScope) return false;
if (ServerId != other.ServerId) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -1040,6 +1089,7 @@ public override int GetHashCode() {
if (payload_ != null) hash ^= Payload.GetHashCode();
if (Username.Length != 0) hash ^= Username.GetHashCode();
if (OauthScope.Length != 0) hash ^= OauthScope.GetHashCode();
if (ServerId.Length != 0) hash ^= ServerId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand All @@ -1065,6 +1115,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(26);
output.WriteString(OauthScope);
}
if (ServerId.Length != 0) {
output.WriteRawTag(34);
output.WriteString(ServerId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand All @@ -1082,6 +1136,9 @@ public int CalculateSize() {
if (OauthScope.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(OauthScope);
}
if (ServerId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand All @@ -1105,6 +1162,9 @@ public void MergeFrom(SimpleResponse other) {
if (other.OauthScope.Length != 0) {
OauthScope = other.OauthScope;
}
if (other.ServerId.Length != 0) {
ServerId = other.ServerId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand All @@ -1131,6 +1191,10 @@ public void MergeFrom(pb::CodedInputStream input) {
OauthScope = input.ReadString();
break;
}
case 34: {
ServerId = input.ReadString();
break;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.IntegrationTesting/MetricsGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public partial class MetricsServiceClient : grpc::ClientBase<MetricsServiceClien
{
/// <summary>Creates a new client for MetricsService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public MetricsServiceClient(grpc::Channel channel) : base(channel)
public MetricsServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// <summary>Creates a new client for MetricsService that uses a custom <c>CallInvoker</c>.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public partial class ReportQpsScenarioServiceClient : grpc::ClientBase<ReportQps
{
/// <summary>Creates a new client for ReportQpsScenarioService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public ReportQpsScenarioServiceClient(grpc::Channel channel) : base(channel)
public ReportQpsScenarioServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// <summary>Creates a new client for ReportQpsScenarioService that uses a custom <c>CallInvoker</c>.</summary>
Expand Down
6 changes: 3 additions & 3 deletions src/csharp/Grpc.IntegrationTesting/TestGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public partial class TestServiceClient : grpc::ClientBase<TestServiceClient>
{
/// <summary>Creates a new client for TestService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public TestServiceClient(grpc::Channel channel) : base(channel)
public TestServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// <summary>Creates a new client for TestService that uses a custom <c>CallInvoker</c>.</summary>
Expand Down Expand Up @@ -602,7 +602,7 @@ public partial class UnimplementedServiceClient : grpc::ClientBase<Unimplemented
{
/// <summary>Creates a new client for UnimplementedService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public UnimplementedServiceClient(grpc::Channel channel) : base(channel)
public UnimplementedServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// <summary>Creates a new client for UnimplementedService that uses a custom <c>CallInvoker</c>.</summary>
Expand Down Expand Up @@ -741,7 +741,7 @@ public partial class ReconnectServiceClient : grpc::ClientBase<ReconnectServiceC
{
/// <summary>Creates a new client for ReconnectService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public ReconnectServiceClient(grpc::Channel channel) : base(channel)
public ReconnectServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// <summary>Creates a new client for ReconnectService that uses a custom <c>CallInvoker</c>.</summary>
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.IntegrationTesting/WorkerServiceGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public partial class WorkerServiceClient : grpc::ClientBase<WorkerServiceClient>
{
/// <summary>Creates a new client for WorkerService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public WorkerServiceClient(grpc::Channel channel) : base(channel)
public WorkerServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// <summary>Creates a new client for WorkerService that uses a custom <c>CallInvoker</c>.</summary>
Expand Down

0 comments on commit fd3d125

Please sign in to comment.