Merge pull request #18329 from jtattermusch/bump_protobuf370

Update protobuf dependency to v3.7.0
pull/18336/head
Jan Tattermusch 6 years ago committed by GitHub
commit 125b54e5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      bazel/grpc_deps.bzl
  2. 2
      grpc.gemspec
  3. 2
      src/csharp/Grpc.Core/Version.csproj.include
  4. 2
      src/csharp/Grpc.HealthCheck/Health.cs
  5. 84
      src/csharp/Grpc.IntegrationTesting/Control.cs
  6. 24
      src/csharp/Grpc.IntegrationTesting/EchoMessages.cs
  7. 1
      src/csharp/Grpc.IntegrationTesting/Empty.cs
  8. 72
      src/csharp/Grpc.IntegrationTesting/Messages.cs
  9. 18
      src/csharp/Grpc.IntegrationTesting/Stats.cs
  10. 6
      src/csharp/Grpc.Reflection/Reflection.cs
  11. 2
      src/ruby/bin/math_pb.rb
  12. 3
      src/ruby/pb/grpc/health/v1/health_pb.rb
  13. 18
      src/ruby/pb/grpc/health/v1/health_services_pb.rb
  14. 2
      src/ruby/pb/src/proto/grpc/testing/empty_pb.rb
  15. 2
      src/ruby/pb/src/proto/grpc/testing/messages_pb.rb
  16. 2
      src/ruby/pb/src/proto/grpc/testing/test_pb.rb
  17. 2
      src/ruby/qps/src/proto/grpc/core/stats_pb.rb
  18. 2
      src/ruby/qps/src/proto/grpc/testing/benchmark_service_pb.rb
  19. 5
      src/ruby/qps/src/proto/grpc/testing/control_pb.rb
  20. 2
      src/ruby/qps/src/proto/grpc/testing/messages_pb.rb
  21. 2
      src/ruby/qps/src/proto/grpc/testing/payloads_pb.rb
  22. 2
      src/ruby/qps/src/proto/grpc/testing/report_qps_scenario_service_pb.rb
  23. 2
      src/ruby/qps/src/proto/grpc/testing/stats_pb.rb
  24. 2
      src/ruby/qps/src/proto/grpc/testing/worker_service_pb.rb
  25. 2
      templates/grpc.gemspec.template
  26. 2
      templates/src/csharp/Grpc.Core/Version.csproj.include.template
  27. 2
      third_party/protobuf
  28. 4
      tools/distrib/python/grpcio_tools/protoc_lib_deps.py
  29. 2
      tools/run_tests/sanity/check_submodules.sh

@ -124,8 +124,8 @@ def grpc_deps():
if "com_google_protobuf" not in native.existing_rules():
http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-66dc42d891a4fc8e9190c524fd67961688a37bbe",
url = "https://github.com/google/protobuf/archive/66dc42d891a4fc8e9190c524fd67961688a37bbe.tar.gz",
strip_prefix = "protobuf-582743bf40c5d3639a70f98f183914a2c0cd0680",
url = "https://github.com/google/protobuf/archive/582743bf40c5d3639a70f98f183914a2c0cd0680.tar.gz",
)
if "com_github_nanopb_nanopb" not in native.existing_rules():

@ -29,7 +29,7 @@ Gem::Specification.new do |s|
s.require_paths = %w( src/ruby/lib src/ruby/bin src/ruby/pb )
s.platform = Gem::Platform::RUBY
s.add_dependency 'google-protobuf', '~> 3.1'
s.add_dependency 'google-protobuf', '~> 3.7'
s.add_dependency 'googleapis-common-protos-types', '~> 1.0.0'
s.add_development_dependency 'bundler', '~> 1.9'

@ -2,6 +2,6 @@
<Project>
<PropertyGroup>
<GrpcCsharpVersion>1.20.0-dev</GrpcCsharpVersion>
<GoogleProtobufVersion>3.6.1</GoogleProtobufVersion>
<GoogleProtobufVersion>3.7.0</GoogleProtobufVersion>
</PropertyGroup>
</Project>

@ -296,7 +296,7 @@ namespace Grpc.Health.V1 {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
status_ = (global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus) input.ReadEnum();
Status = (global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus) input.ReadEnum();
break;
}
}

@ -1502,7 +1502,7 @@ namespace Grpc.Testing {
}
if (other.securityParams_ != null) {
if (securityParams_ == null) {
securityParams_ = new global::Grpc.Testing.SecurityParams();
SecurityParams = new global::Grpc.Testing.SecurityParams();
}
SecurityParams.MergeFrom(other.SecurityParams);
}
@ -1520,19 +1520,19 @@ namespace Grpc.Testing {
}
if (other.loadParams_ != null) {
if (loadParams_ == null) {
loadParams_ = new global::Grpc.Testing.LoadParams();
LoadParams = new global::Grpc.Testing.LoadParams();
}
LoadParams.MergeFrom(other.LoadParams);
}
if (other.payloadConfig_ != null) {
if (payloadConfig_ == null) {
payloadConfig_ = new global::Grpc.Testing.PayloadConfig();
PayloadConfig = new global::Grpc.Testing.PayloadConfig();
}
PayloadConfig.MergeFrom(other.PayloadConfig);
}
if (other.histogramParams_ != null) {
if (histogramParams_ == null) {
histogramParams_ = new global::Grpc.Testing.HistogramParams();
HistogramParams = new global::Grpc.Testing.HistogramParams();
}
HistogramParams.MergeFrom(other.HistogramParams);
}
@ -1572,14 +1572,14 @@ namespace Grpc.Testing {
break;
}
case 16: {
clientType_ = (global::Grpc.Testing.ClientType) input.ReadEnum();
ClientType = (global::Grpc.Testing.ClientType) input.ReadEnum();
break;
}
case 26: {
if (securityParams_ == null) {
securityParams_ = new global::Grpc.Testing.SecurityParams();
SecurityParams = new global::Grpc.Testing.SecurityParams();
}
input.ReadMessage(securityParams_);
input.ReadMessage(SecurityParams);
break;
}
case 32: {
@ -1595,28 +1595,28 @@ namespace Grpc.Testing {
break;
}
case 64: {
rpcType_ = (global::Grpc.Testing.RpcType) input.ReadEnum();
RpcType = (global::Grpc.Testing.RpcType) input.ReadEnum();
break;
}
case 82: {
if (loadParams_ == null) {
loadParams_ = new global::Grpc.Testing.LoadParams();
LoadParams = new global::Grpc.Testing.LoadParams();
}
input.ReadMessage(loadParams_);
input.ReadMessage(LoadParams);
break;
}
case 90: {
if (payloadConfig_ == null) {
payloadConfig_ = new global::Grpc.Testing.PayloadConfig();
PayloadConfig = new global::Grpc.Testing.PayloadConfig();
}
input.ReadMessage(payloadConfig_);
input.ReadMessage(PayloadConfig);
break;
}
case 98: {
if (histogramParams_ == null) {
histogramParams_ = new global::Grpc.Testing.HistogramParams();
HistogramParams = new global::Grpc.Testing.HistogramParams();
}
input.ReadMessage(histogramParams_);
input.ReadMessage(HistogramParams);
break;
}
case 106:
@ -1765,7 +1765,7 @@ namespace Grpc.Testing {
}
if (other.stats_ != null) {
if (stats_ == null) {
stats_ = new global::Grpc.Testing.ClientStats();
Stats = new global::Grpc.Testing.ClientStats();
}
Stats.MergeFrom(other.Stats);
}
@ -1782,9 +1782,9 @@ namespace Grpc.Testing {
break;
case 10: {
if (stats_ == null) {
stats_ = new global::Grpc.Testing.ClientStats();
Stats = new global::Grpc.Testing.ClientStats();
}
input.ReadMessage(stats_);
input.ReadMessage(Stats);
break;
}
}
@ -2467,7 +2467,7 @@ namespace Grpc.Testing {
}
if (other.securityParams_ != null) {
if (securityParams_ == null) {
securityParams_ = new global::Grpc.Testing.SecurityParams();
SecurityParams = new global::Grpc.Testing.SecurityParams();
}
SecurityParams.MergeFrom(other.SecurityParams);
}
@ -2482,7 +2482,7 @@ namespace Grpc.Testing {
}
if (other.payloadConfig_ != null) {
if (payloadConfig_ == null) {
payloadConfig_ = new global::Grpc.Testing.PayloadConfig();
PayloadConfig = new global::Grpc.Testing.PayloadConfig();
}
PayloadConfig.MergeFrom(other.PayloadConfig);
}
@ -2509,14 +2509,14 @@ namespace Grpc.Testing {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
serverType_ = (global::Grpc.Testing.ServerType) input.ReadEnum();
ServerType = (global::Grpc.Testing.ServerType) input.ReadEnum();
break;
}
case 18: {
if (securityParams_ == null) {
securityParams_ = new global::Grpc.Testing.SecurityParams();
SecurityParams = new global::Grpc.Testing.SecurityParams();
}
input.ReadMessage(securityParams_);
input.ReadMessage(SecurityParams);
break;
}
case 32: {
@ -2533,9 +2533,9 @@ namespace Grpc.Testing {
}
case 74: {
if (payloadConfig_ == null) {
payloadConfig_ = new global::Grpc.Testing.PayloadConfig();
PayloadConfig = new global::Grpc.Testing.PayloadConfig();
}
input.ReadMessage(payloadConfig_);
input.ReadMessage(PayloadConfig);
break;
}
case 82:
@ -2924,7 +2924,7 @@ namespace Grpc.Testing {
}
if (other.stats_ != null) {
if (stats_ == null) {
stats_ = new global::Grpc.Testing.ServerStats();
Stats = new global::Grpc.Testing.ServerStats();
}
Stats.MergeFrom(other.Stats);
}
@ -2947,9 +2947,9 @@ namespace Grpc.Testing {
break;
case 10: {
if (stats_ == null) {
stats_ = new global::Grpc.Testing.ServerStats();
Stats = new global::Grpc.Testing.ServerStats();
}
input.ReadMessage(stats_);
input.ReadMessage(Stats);
break;
}
case 16: {
@ -3584,7 +3584,7 @@ namespace Grpc.Testing {
}
if (other.clientConfig_ != null) {
if (clientConfig_ == null) {
clientConfig_ = new global::Grpc.Testing.ClientConfig();
ClientConfig = new global::Grpc.Testing.ClientConfig();
}
ClientConfig.MergeFrom(other.ClientConfig);
}
@ -3593,7 +3593,7 @@ namespace Grpc.Testing {
}
if (other.serverConfig_ != null) {
if (serverConfig_ == null) {
serverConfig_ = new global::Grpc.Testing.ServerConfig();
ServerConfig = new global::Grpc.Testing.ServerConfig();
}
ServerConfig.MergeFrom(other.ServerConfig);
}
@ -3626,9 +3626,9 @@ namespace Grpc.Testing {
}
case 18: {
if (clientConfig_ == null) {
clientConfig_ = new global::Grpc.Testing.ClientConfig();
ClientConfig = new global::Grpc.Testing.ClientConfig();
}
input.ReadMessage(clientConfig_);
input.ReadMessage(ClientConfig);
break;
}
case 24: {
@ -3637,9 +3637,9 @@ namespace Grpc.Testing {
}
case 34: {
if (serverConfig_ == null) {
serverConfig_ = new global::Grpc.Testing.ServerConfig();
ServerConfig = new global::Grpc.Testing.ServerConfig();
}
input.ReadMessage(serverConfig_);
input.ReadMessage(ServerConfig);
break;
}
case 40: {
@ -4696,13 +4696,13 @@ namespace Grpc.Testing {
}
if (other.scenario_ != null) {
if (scenario_ == null) {
scenario_ = new global::Grpc.Testing.Scenario();
Scenario = new global::Grpc.Testing.Scenario();
}
Scenario.MergeFrom(other.Scenario);
}
if (other.latencies_ != null) {
if (latencies_ == null) {
latencies_ = new global::Grpc.Testing.HistogramData();
Latencies = new global::Grpc.Testing.HistogramData();
}
Latencies.MergeFrom(other.Latencies);
}
@ -4711,7 +4711,7 @@ namespace Grpc.Testing {
serverCores_.Add(other.serverCores_);
if (other.summary_ != null) {
if (summary_ == null) {
summary_ = new global::Grpc.Testing.ScenarioResultSummary();
Summary = new global::Grpc.Testing.ScenarioResultSummary();
}
Summary.MergeFrom(other.Summary);
}
@ -4731,16 +4731,16 @@ namespace Grpc.Testing {
break;
case 10: {
if (scenario_ == null) {
scenario_ = new global::Grpc.Testing.Scenario();
Scenario = new global::Grpc.Testing.Scenario();
}
input.ReadMessage(scenario_);
input.ReadMessage(Scenario);
break;
}
case 18: {
if (latencies_ == null) {
latencies_ = new global::Grpc.Testing.HistogramData();
Latencies = new global::Grpc.Testing.HistogramData();
}
input.ReadMessage(latencies_);
input.ReadMessage(Latencies);
break;
}
case 26: {
@ -4758,9 +4758,9 @@ namespace Grpc.Testing {
}
case 50: {
if (summary_ == null) {
summary_ = new global::Grpc.Testing.ScenarioResultSummary();
Summary = new global::Grpc.Testing.ScenarioResultSummary();
}
input.ReadMessage(summary_);
input.ReadMessage(Summary);
break;
}
case 58:

@ -864,7 +864,7 @@ namespace Grpc.Testing {
}
if (other.debugInfo_ != null) {
if (debugInfo_ == null) {
debugInfo_ = new global::Grpc.Testing.DebugInfo();
DebugInfo = new global::Grpc.Testing.DebugInfo();
}
DebugInfo.MergeFrom(other.DebugInfo);
}
@ -876,7 +876,7 @@ namespace Grpc.Testing {
}
if (other.expectedError_ != null) {
if (expectedError_ == null) {
expectedError_ = new global::Grpc.Testing.ErrorStatus();
ExpectedError = new global::Grpc.Testing.ErrorStatus();
}
ExpectedError.MergeFrom(other.ExpectedError);
}
@ -939,9 +939,9 @@ namespace Grpc.Testing {
}
case 90: {
if (debugInfo_ == null) {
debugInfo_ = new global::Grpc.Testing.DebugInfo();
DebugInfo = new global::Grpc.Testing.DebugInfo();
}
input.ReadMessage(debugInfo_);
input.ReadMessage(DebugInfo);
break;
}
case 96: {
@ -954,9 +954,9 @@ namespace Grpc.Testing {
}
case 114: {
if (expectedError_ == null) {
expectedError_ = new global::Grpc.Testing.ErrorStatus();
ExpectedError = new global::Grpc.Testing.ErrorStatus();
}
input.ReadMessage(expectedError_);
input.ReadMessage(ExpectedError);
break;
}
case 120: {
@ -1104,7 +1104,7 @@ namespace Grpc.Testing {
}
if (other.param_ != null) {
if (param_ == null) {
param_ = new global::Grpc.Testing.RequestParams();
Param = new global::Grpc.Testing.RequestParams();
}
Param.MergeFrom(other.Param);
}
@ -1125,9 +1125,9 @@ namespace Grpc.Testing {
}
case 18: {
if (param_ == null) {
param_ = new global::Grpc.Testing.RequestParams();
Param = new global::Grpc.Testing.RequestParams();
}
input.ReadMessage(param_);
input.ReadMessage(Param);
break;
}
}
@ -1452,7 +1452,7 @@ namespace Grpc.Testing {
}
if (other.param_ != null) {
if (param_ == null) {
param_ = new global::Grpc.Testing.ResponseParams();
Param = new global::Grpc.Testing.ResponseParams();
}
Param.MergeFrom(other.Param);
}
@ -1473,9 +1473,9 @@ namespace Grpc.Testing {
}
case 18: {
if (param_ == null) {
param_ = new global::Grpc.Testing.ResponseParams();
Param = new global::Grpc.Testing.ResponseParams();
}
input.ReadMessage(param_);
input.ReadMessage(Param);
break;
}
}

@ -44,7 +44,6 @@ namespace Grpc.Testing {
/// service Foo {
/// rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
/// };
///
/// </summary>
public sealed partial class Empty : pb::IMessage<Empty> {
private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty());

@ -379,7 +379,7 @@ namespace Grpc.Testing {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
type_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
Type = (global::Grpc.Testing.PayloadType) input.ReadEnum();
break;
}
case 18: {
@ -844,7 +844,7 @@ namespace Grpc.Testing {
}
if (other.payload_ != null) {
if (payload_ == null) {
payload_ = new global::Grpc.Testing.Payload();
Payload = new global::Grpc.Testing.Payload();
}
Payload.MergeFrom(other.Payload);
}
@ -856,19 +856,19 @@ namespace Grpc.Testing {
}
if (other.responseCompressed_ != null) {
if (responseCompressed_ == null) {
responseCompressed_ = new global::Grpc.Testing.BoolValue();
ResponseCompressed = new global::Grpc.Testing.BoolValue();
}
ResponseCompressed.MergeFrom(other.ResponseCompressed);
}
if (other.responseStatus_ != null) {
if (responseStatus_ == null) {
responseStatus_ = new global::Grpc.Testing.EchoStatus();
ResponseStatus = new global::Grpc.Testing.EchoStatus();
}
ResponseStatus.MergeFrom(other.ResponseStatus);
}
if (other.expectCompressed_ != null) {
if (expectCompressed_ == null) {
expectCompressed_ = new global::Grpc.Testing.BoolValue();
ExpectCompressed = new global::Grpc.Testing.BoolValue();
}
ExpectCompressed.MergeFrom(other.ExpectCompressed);
}
@ -884,7 +884,7 @@ namespace Grpc.Testing {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
ResponseType = (global::Grpc.Testing.PayloadType) input.ReadEnum();
break;
}
case 16: {
@ -893,9 +893,9 @@ namespace Grpc.Testing {
}
case 26: {
if (payload_ == null) {
payload_ = new global::Grpc.Testing.Payload();
Payload = new global::Grpc.Testing.Payload();
}
input.ReadMessage(payload_);
input.ReadMessage(Payload);
break;
}
case 32: {
@ -908,23 +908,23 @@ namespace Grpc.Testing {
}
case 50: {
if (responseCompressed_ == null) {
responseCompressed_ = new global::Grpc.Testing.BoolValue();
ResponseCompressed = new global::Grpc.Testing.BoolValue();
}
input.ReadMessage(responseCompressed_);
input.ReadMessage(ResponseCompressed);
break;
}
case 58: {
if (responseStatus_ == null) {
responseStatus_ = new global::Grpc.Testing.EchoStatus();
ResponseStatus = new global::Grpc.Testing.EchoStatus();
}
input.ReadMessage(responseStatus_);
input.ReadMessage(ResponseStatus);
break;
}
case 66: {
if (expectCompressed_ == null) {
expectCompressed_ = new global::Grpc.Testing.BoolValue();
ExpectCompressed = new global::Grpc.Testing.BoolValue();
}
input.ReadMessage(expectCompressed_);
input.ReadMessage(ExpectCompressed);
break;
}
}
@ -1095,7 +1095,7 @@ namespace Grpc.Testing {
}
if (other.payload_ != null) {
if (payload_ == null) {
payload_ = new global::Grpc.Testing.Payload();
Payload = new global::Grpc.Testing.Payload();
}
Payload.MergeFrom(other.Payload);
}
@ -1118,9 +1118,9 @@ namespace Grpc.Testing {
break;
case 10: {
if (payload_ == null) {
payload_ = new global::Grpc.Testing.Payload();
Payload = new global::Grpc.Testing.Payload();
}
input.ReadMessage(payload_);
input.ReadMessage(Payload);
break;
}
case 18: {
@ -1277,13 +1277,13 @@ namespace Grpc.Testing {
}
if (other.payload_ != null) {
if (payload_ == null) {
payload_ = new global::Grpc.Testing.Payload();
Payload = new global::Grpc.Testing.Payload();
}
Payload.MergeFrom(other.Payload);
}
if (other.expectCompressed_ != null) {
if (expectCompressed_ == null) {
expectCompressed_ = new global::Grpc.Testing.BoolValue();
ExpectCompressed = new global::Grpc.Testing.BoolValue();
}
ExpectCompressed.MergeFrom(other.ExpectCompressed);
}
@ -1300,16 +1300,16 @@ namespace Grpc.Testing {
break;
case 10: {
if (payload_ == null) {
payload_ = new global::Grpc.Testing.Payload();
Payload = new global::Grpc.Testing.Payload();
}
input.ReadMessage(payload_);
input.ReadMessage(Payload);
break;
}
case 18: {
if (expectCompressed_ == null) {
expectCompressed_ = new global::Grpc.Testing.BoolValue();
ExpectCompressed = new global::Grpc.Testing.BoolValue();
}
input.ReadMessage(expectCompressed_);
input.ReadMessage(ExpectCompressed);
break;
}
}
@ -1624,7 +1624,7 @@ namespace Grpc.Testing {
}
if (other.compressed_ != null) {
if (compressed_ == null) {
compressed_ = new global::Grpc.Testing.BoolValue();
Compressed = new global::Grpc.Testing.BoolValue();
}
Compressed.MergeFrom(other.Compressed);
}
@ -1649,9 +1649,9 @@ namespace Grpc.Testing {
}
case 26: {
if (compressed_ == null) {
compressed_ = new global::Grpc.Testing.BoolValue();
Compressed = new global::Grpc.Testing.BoolValue();
}
input.ReadMessage(compressed_);
input.ReadMessage(Compressed);
break;
}
}
@ -1846,13 +1846,13 @@ namespace Grpc.Testing {
responseParameters_.Add(other.responseParameters_);
if (other.payload_ != null) {
if (payload_ == null) {
payload_ = new global::Grpc.Testing.Payload();
Payload = new global::Grpc.Testing.Payload();
}
Payload.MergeFrom(other.Payload);
}
if (other.responseStatus_ != null) {
if (responseStatus_ == null) {
responseStatus_ = new global::Grpc.Testing.EchoStatus();
ResponseStatus = new global::Grpc.Testing.EchoStatus();
}
ResponseStatus.MergeFrom(other.ResponseStatus);
}
@ -1868,7 +1868,7 @@ namespace Grpc.Testing {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
ResponseType = (global::Grpc.Testing.PayloadType) input.ReadEnum();
break;
}
case 18: {
@ -1877,16 +1877,16 @@ namespace Grpc.Testing {
}
case 26: {
if (payload_ == null) {
payload_ = new global::Grpc.Testing.Payload();
Payload = new global::Grpc.Testing.Payload();
}
input.ReadMessage(payload_);
input.ReadMessage(Payload);
break;
}
case 58: {
if (responseStatus_ == null) {
responseStatus_ = new global::Grpc.Testing.EchoStatus();
ResponseStatus = new global::Grpc.Testing.EchoStatus();
}
input.ReadMessage(responseStatus_);
input.ReadMessage(ResponseStatus);
break;
}
}
@ -2008,7 +2008,7 @@ namespace Grpc.Testing {
}
if (other.payload_ != null) {
if (payload_ == null) {
payload_ = new global::Grpc.Testing.Payload();
Payload = new global::Grpc.Testing.Payload();
}
Payload.MergeFrom(other.Payload);
}
@ -2025,9 +2025,9 @@ namespace Grpc.Testing {
break;
case 10: {
if (payload_ == null) {
payload_ = new global::Grpc.Testing.Payload();
Payload = new global::Grpc.Testing.Payload();
}
input.ReadMessage(payload_);
input.ReadMessage(Payload);
break;
}
}

@ -328,7 +328,7 @@ namespace Grpc.Testing {
}
if (other.coreStats_ != null) {
if (coreStats_ == null) {
coreStats_ = new global::Grpc.Core.Stats();
CoreStats = new global::Grpc.Core.Stats();
}
CoreStats.MergeFrom(other.CoreStats);
}
@ -369,9 +369,9 @@ namespace Grpc.Testing {
}
case 58: {
if (coreStats_ == null) {
coreStats_ = new global::Grpc.Core.Stats();
CoreStats = new global::Grpc.Core.Stats();
}
input.ReadMessage(coreStats_);
input.ReadMessage(CoreStats);
break;
}
}
@ -1210,7 +1210,7 @@ namespace Grpc.Testing {
}
if (other.latencies_ != null) {
if (latencies_ == null) {
latencies_ = new global::Grpc.Testing.HistogramData();
Latencies = new global::Grpc.Testing.HistogramData();
}
Latencies.MergeFrom(other.Latencies);
}
@ -1229,7 +1229,7 @@ namespace Grpc.Testing {
}
if (other.coreStats_ != null) {
if (coreStats_ == null) {
coreStats_ = new global::Grpc.Core.Stats();
CoreStats = new global::Grpc.Core.Stats();
}
CoreStats.MergeFrom(other.CoreStats);
}
@ -1246,9 +1246,9 @@ namespace Grpc.Testing {
break;
case 10: {
if (latencies_ == null) {
latencies_ = new global::Grpc.Testing.HistogramData();
Latencies = new global::Grpc.Testing.HistogramData();
}
input.ReadMessage(latencies_);
input.ReadMessage(Latencies);
break;
}
case 17: {
@ -1273,9 +1273,9 @@ namespace Grpc.Testing {
}
case 58: {
if (coreStats_ == null) {
coreStats_ = new global::Grpc.Core.Stats();
CoreStats = new global::Grpc.Core.Stats();
}
input.ReadMessage(coreStats_);
input.ReadMessage(CoreStats);
break;
}
}

@ -850,7 +850,7 @@ namespace Grpc.Reflection.V1Alpha {
}
if (other.originalRequest_ != null) {
if (originalRequest_ == null) {
originalRequest_ = new global::Grpc.Reflection.V1Alpha.ServerReflectionRequest();
OriginalRequest = new global::Grpc.Reflection.V1Alpha.ServerReflectionRequest();
}
OriginalRequest.MergeFrom(other.OriginalRequest);
}
@ -898,9 +898,9 @@ namespace Grpc.Reflection.V1Alpha {
}
case 18: {
if (originalRequest_ == null) {
originalRequest_ = new global::Grpc.Reflection.V1Alpha.ServerReflectionRequest();
OriginalRequest = new global::Grpc.Reflection.V1Alpha.ServerReflectionRequest();
}
input.ReadMessage(originalRequest_);
input.ReadMessage(OriginalRequest);
break;
}
case 34: {

@ -4,6 +4,7 @@
require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("math.proto", :syntax => :proto3) do
add_message "math.DivArgs" do
optional :dividend, :int64, 1
optional :divisor, :int64, 2
@ -22,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :count, :int64, 1
end
end
end
module Math
DivArgs = Google::Protobuf::DescriptorPool.generated_pool.lookup("math.DivArgs").msgclass

@ -4,6 +4,7 @@
require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("grpc/health/v1/health.proto", :syntax => :proto3) do
add_message "grpc.health.v1.HealthCheckRequest" do
optional :service, :string, 1
end
@ -14,6 +15,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
value :UNKNOWN, 0
value :SERVING, 1
value :NOT_SERVING, 2
value :SERVICE_UNKNOWN, 3
end
end
end

@ -34,7 +34,25 @@ module Grpc
self.unmarshal_class_method = :decode
self.service_name = 'grpc.health.v1.Health'
# If the requested service is unknown, the call will fail with status
# NOT_FOUND.
rpc :Check, HealthCheckRequest, HealthCheckResponse
# Performs a watch for the serving status of the requested service.
# The server will immediately send back a message indicating the current
# serving status. It will then subsequently send a new message whenever
# the service's serving status changes.
#
# If the requested service is unknown when the call is received, the
# server will send a message setting the serving status to
# SERVICE_UNKNOWN but will *not* terminate the call. If at some
# future point, the serving status of the service becomes known, the
# server will send a new message with the service's serving status.
#
# If the call terminates with status UNIMPLEMENTED, then clients
# should assume this method is not supported and should not retry the
# call. If the call terminates with any other status (including OK),
# clients should retry the call with appropriate exponential backoff.
rpc :Watch, HealthCheckRequest, stream(HealthCheckResponse)
end
Stub = Service.rpc_stub_class

@ -4,9 +4,11 @@
require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("src/proto/grpc/testing/empty.proto", :syntax => :proto3) do
add_message "grpc.testing.Empty" do
end
end
end
module Grpc
module Testing

@ -4,6 +4,7 @@
require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("src/proto/grpc/testing/messages.proto", :syntax => :proto3) do
add_message "grpc.testing.BoolValue" do
optional :value, :bool, 1
end
@ -62,6 +63,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
value :COMPRESSABLE, 0
end
end
end
module Grpc
module Testing

@ -6,6 +6,8 @@ require 'google/protobuf'
require 'src/proto/grpc/testing/empty_pb'
require 'src/proto/grpc/testing/messages_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("src/proto/grpc/testing/test.proto", :syntax => :proto3) do
end
end
module Grpc

@ -4,6 +4,7 @@
require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("src/proto/grpc/core/stats.proto", :syntax => :proto3) do
add_message "grpc.core.Bucket" do
optional :start, :double, 1
optional :count, :uint64, 2
@ -22,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
repeated :metrics, :message, 1, "grpc.core.Metric"
end
end
end
module Grpc
module Core

@ -5,6 +5,8 @@ require 'google/protobuf'
require 'src/proto/grpc/testing/messages_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("src/proto/grpc/testing/benchmark_service.proto", :syntax => :proto3) do
end
end
module Grpc

@ -6,6 +6,7 @@ require 'google/protobuf'
require 'src/proto/grpc/testing/payloads_pb'
require 'src/proto/grpc/testing/stats_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("src/proto/grpc/testing/control.proto", :syntax => :proto3) do
add_message "grpc.testing.PoissonParams" do
optional :offered_load, :double, 1
end
@ -47,6 +48,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :threads_per_cq, :int32, 17
optional :messages_per_stream, :int32, 18
optional :use_coalesce_api, :bool, 19
optional :median_latency_collection_interval_millis, :int32, 20
end
add_message "grpc.testing.ClientStatus" do
optional :stats, :message, 1, "grpc.testing.ClientStats"
@ -139,12 +141,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
value :SYNC_CLIENT, 0
value :ASYNC_CLIENT, 1
value :OTHER_CLIENT, 2
value :CALLBACK_CLIENT, 3
end
add_enum "grpc.testing.ServerType" do
value :SYNC_SERVER, 0
value :ASYNC_SERVER, 1
value :ASYNC_GENERIC_SERVER, 2
value :OTHER_SERVER, 3
value :CALLBACK_SERVER, 4
end
add_enum "grpc.testing.RpcType" do
value :UNARY, 0
@ -154,6 +158,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
value :STREAMING_BOTH_WAYS, 4
end
end
end
module Grpc
module Testing

@ -4,6 +4,7 @@
require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("src/proto/grpc/testing/messages.proto", :syntax => :proto3) do
add_message "grpc.testing.BoolValue" do
optional :value, :bool, 1
end
@ -62,6 +63,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
value :COMPRESSABLE, 0
end
end
end
module Grpc
module Testing

@ -4,6 +4,7 @@
require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("src/proto/grpc/testing/payloads.proto", :syntax => :proto3) do
add_message "grpc.testing.ByteBufferParams" do
optional :req_size, :int32, 1
optional :resp_size, :int32, 2
@ -22,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
end
end
end
end
module Grpc
module Testing

@ -5,6 +5,8 @@ require 'google/protobuf'
require 'src/proto/grpc/testing/control_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("src/proto/grpc/testing/report_qps_scenario_service.proto", :syntax => :proto3) do
end
end
module Grpc

@ -5,6 +5,7 @@ require 'google/protobuf'
require 'src/proto/grpc/core/stats_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("src/proto/grpc/testing/stats.proto", :syntax => :proto3) do
add_message "grpc.testing.ServerStats" do
optional :time_elapsed, :double, 1
optional :time_user, :double, 2
@ -40,6 +41,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :core_stats, :message, 7, "grpc.core.Stats"
end
end
end
module Grpc
module Testing

@ -5,6 +5,8 @@ require 'google/protobuf'
require 'src/proto/grpc/testing/control_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("src/proto/grpc/testing/worker_service.proto", :syntax => :proto3) do
end
end
module Grpc

@ -31,7 +31,7 @@
s.require_paths = %w( src/ruby/lib src/ruby/bin src/ruby/pb )
s.platform = Gem::Platform::RUBY
s.add_dependency 'google-protobuf', '~> 3.1'
s.add_dependency 'google-protobuf', '~> 3.7'
s.add_dependency 'googleapis-common-protos-types', '~> 1.0.0'
s.add_development_dependency 'bundler', '~> 1.9'

@ -4,6 +4,6 @@
<Project>
<PropertyGroup>
<GrpcCsharpVersion>${settings.csharp_version}</GrpcCsharpVersion>
<GoogleProtobufVersion>3.6.1</GoogleProtobufVersion>
<GoogleProtobufVersion>3.7.0</GoogleProtobufVersion>
</PropertyGroup>
</Project>

@ -1 +1 @@
Subproject commit 48cb18e5c419ddd23d9badcfe4e9df7bde1979b2
Subproject commit 582743bf40c5d3639a70f98f183914a2c0cd0680

File diff suppressed because one or more lines are too long

@ -38,7 +38,7 @@ cat << EOF | awk '{ print $1 }' | sort > "$want_submodules"
ec44c6c1675c25b9827aacd08c02433cccde7780 third_party/googletest (release-1.8.0)
6599cac0965be8e5a835ab7a5684bbef033d5ad0 third_party/libcxx (heads/release_60)
9245d481eb3e890f708ff2d7dadf2a10c04748ba third_party/libcxxabi (heads/release_60)
48cb18e5c419ddd23d9badcfe4e9df7bde1979b2 third_party/protobuf (v3.6.0.1-37-g48cb18e5)
582743bf40c5d3639a70f98f183914a2c0cd0680 third_party/protobuf (v3.7.0-rc.2-20-g582743bf)
e143189bf6f37b3957fb31743df6a1bcf4a8c685 third_party/protoc-gen-validate (v0.0.10)
9ce4a77f61c134bbed28bfd5be5cd7dc0e80f5e3 third_party/upb (heads/upbc-cpp)
cacf7f1d4e3d44d871b605da3b647f07d718623f third_party/zlib (v1.2.11)

Loading…
Cancel
Save