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. 6
      src/csharp/Grpc.Examples/MathGrpc.cs
  5. 2
      src/csharp/Grpc.HealthCheck/Health.cs
  6. 6
      src/csharp/Grpc.HealthCheck/HealthGrpc.cs
  7. 6
      src/csharp/Grpc.IntegrationTesting/BenchmarkServiceGrpc.cs
  8. 84
      src/csharp/Grpc.IntegrationTesting/Control.cs
  9. 24
      src/csharp/Grpc.IntegrationTesting/EchoMessages.cs
  10. 1
      src/csharp/Grpc.IntegrationTesting/Empty.cs
  11. 6
      src/csharp/Grpc.IntegrationTesting/EmptyServiceGrpc.cs
  12. 72
      src/csharp/Grpc.IntegrationTesting/Messages.cs
  13. 8
      src/csharp/Grpc.IntegrationTesting/MetricsGrpc.cs
  14. 6
      src/csharp/Grpc.IntegrationTesting/ReportQpsScenarioServiceGrpc.cs
  15. 18
      src/csharp/Grpc.IntegrationTesting/Stats.cs
  16. 6
      src/csharp/Grpc.IntegrationTesting/TestGrpc.cs
  17. 6
      src/csharp/Grpc.IntegrationTesting/WorkerServiceGrpc.cs
  18. 6
      src/csharp/Grpc.Reflection/Reflection.cs
  19. 6
      src/csharp/Grpc.Reflection/ReflectionGrpc.cs
  20. 34
      src/ruby/bin/math_pb.rb
  21. 23
      src/ruby/pb/grpc/health/v1/health_pb.rb
  22. 18
      src/ruby/pb/grpc/health/v1/health_services_pb.rb
  23. 4
      src/ruby/pb/src/proto/grpc/testing/empty_pb.rb
  24. 114
      src/ruby/pb/src/proto/grpc/testing/messages_pb.rb
  25. 2
      src/ruby/pb/src/proto/grpc/testing/test_pb.rb
  26. 32
      src/ruby/qps/src/proto/grpc/core/stats_pb.rb
  27. 2
      src/ruby/qps/src/proto/grpc/testing/benchmark_service_pb.rb
  28. 289
      src/ruby/qps/src/proto/grpc/testing/control_pb.rb
  29. 114
      src/ruby/qps/src/proto/grpc/testing/messages_pb.rb
  30. 32
      src/ruby/qps/src/proto/grpc/testing/payloads_pb.rb
  31. 2
      src/ruby/qps/src/proto/grpc/testing/report_qps_scenario_service_pb.rb
  32. 68
      src/ruby/qps/src/proto/grpc/testing/stats_pb.rb
  33. 2
      src/ruby/qps/src/proto/grpc/testing/worker_service_pb.rb
  34. 2
      templates/grpc.gemspec.template
  35. 2
      templates/src/csharp/Grpc.Core/Version.csproj.include.template
  36. 2
      third_party/protobuf
  37. 4
      tools/distrib/python/grpcio_tools/protoc_lib_deps.py
  38. 2
      tools/run_tests/sanity/check_submodules.sh

@ -124,8 +124,8 @@ def grpc_deps():
if "com_google_protobuf" not in native.existing_rules(): if "com_google_protobuf" not in native.existing_rules():
http_archive( http_archive(
name = "com_google_protobuf", name = "com_google_protobuf",
strip_prefix = "protobuf-66dc42d891a4fc8e9190c524fd67961688a37bbe", strip_prefix = "protobuf-582743bf40c5d3639a70f98f183914a2c0cd0680",
url = "https://github.com/google/protobuf/archive/66dc42d891a4fc8e9190c524fd67961688a37bbe.tar.gz", url = "https://github.com/google/protobuf/archive/582743bf40c5d3639a70f98f183914a2c0cd0680.tar.gz",
) )
if "com_github_nanopb_nanopb" not in native.existing_rules(): 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.require_paths = %w( src/ruby/lib src/ruby/bin src/ruby/pb )
s.platform = Gem::Platform::RUBY 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_dependency 'googleapis-common-protos-types', '~> 1.0.0'
s.add_development_dependency 'bundler', '~> 1.9' s.add_development_dependency 'bundler', '~> 1.9'

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

@ -4,13 +4,13 @@
// </auto-generated> // </auto-generated>
// Original file comments: // Original file comments:
// Copyright 2015 gRPC authors. // Copyright 2015 gRPC authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

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

@ -4,13 +4,13 @@
// </auto-generated> // </auto-generated>
// Original file comments: // Original file comments:
// Copyright 2015 The gRPC Authors // Copyright 2015 The gRPC Authors
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@ -4,13 +4,13 @@
// </auto-generated> // </auto-generated>
// Original file comments: // Original file comments:
// Copyright 2015 gRPC authors. // Copyright 2015 gRPC authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

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

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

@ -44,7 +44,6 @@ namespace Grpc.Testing {
/// service Foo { /// service Foo {
/// rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { }; /// rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
/// }; /// };
///
/// </summary> /// </summary>
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());

@ -4,13 +4,13 @@
// </auto-generated> // </auto-generated>
// Original file comments: // Original file comments:
// Copyright 2018 gRPC authors. // Copyright 2018 gRPC authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

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

@ -4,13 +4,13 @@
// </auto-generated> // </auto-generated>
// Original file comments: // Original file comments:
// Copyright 2015-2016 gRPC authors. // Copyright 2015-2016 gRPC authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -19,7 +19,7 @@
// //
// Contains the definitions for a metrics service and the type of metrics // Contains the definitions for a metrics service and the type of metrics
// exposed by the service. // exposed by the service.
// //
// Currently, 'Gauge' (i.e a metric that represents the measured value of // Currently, 'Gauge' (i.e a metric that represents the measured value of
// something at an instant of time) is the only metric type supported by the // something at an instant of time) is the only metric type supported by the
// service. // service.

@ -4,13 +4,13 @@
// </auto-generated> // </auto-generated>
// Original file comments: // Original file comments:
// Copyright 2015 gRPC authors. // Copyright 2015 gRPC authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

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

@ -4,13 +4,13 @@
// </auto-generated> // </auto-generated>
// Original file comments: // Original file comments:
// Copyright 2015-2016 gRPC authors. // Copyright 2015-2016 gRPC authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@ -4,13 +4,13 @@
// </auto-generated> // </auto-generated>
// Original file comments: // Original file comments:
// Copyright 2015 gRPC authors. // Copyright 2015 gRPC authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

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

@ -4,13 +4,13 @@
// </auto-generated> // </auto-generated>
// Original file comments: // Original file comments:
// Copyright 2016 gRPC authors. // Copyright 2016 gRPC authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@ -4,22 +4,24 @@
require 'google/protobuf' require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "math.DivArgs" do add_file("math.proto", :syntax => :proto3) do
optional :dividend, :int64, 1 add_message "math.DivArgs" do
optional :divisor, :int64, 2 optional :dividend, :int64, 1
end optional :divisor, :int64, 2
add_message "math.DivReply" do end
optional :quotient, :int64, 1 add_message "math.DivReply" do
optional :remainder, :int64, 2 optional :quotient, :int64, 1
end optional :remainder, :int64, 2
add_message "math.FibArgs" do end
optional :limit, :int64, 1 add_message "math.FibArgs" do
end optional :limit, :int64, 1
add_message "math.Num" do end
optional :num, :int64, 1 add_message "math.Num" do
end optional :num, :int64, 1
add_message "math.FibReply" do end
optional :count, :int64, 1 add_message "math.FibReply" do
optional :count, :int64, 1
end
end end
end end

@ -4,16 +4,19 @@
require 'google/protobuf' require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "grpc.health.v1.HealthCheckRequest" do add_file("grpc/health/v1/health.proto", :syntax => :proto3) do
optional :service, :string, 1 add_message "grpc.health.v1.HealthCheckRequest" do
end optional :service, :string, 1
add_message "grpc.health.v1.HealthCheckResponse" do end
optional :status, :enum, 1, "grpc.health.v1.HealthCheckResponse.ServingStatus" add_message "grpc.health.v1.HealthCheckResponse" do
end optional :status, :enum, 1, "grpc.health.v1.HealthCheckResponse.ServingStatus"
add_enum "grpc.health.v1.HealthCheckResponse.ServingStatus" do end
value :UNKNOWN, 0 add_enum "grpc.health.v1.HealthCheckResponse.ServingStatus" do
value :SERVING, 1 value :UNKNOWN, 0
value :NOT_SERVING, 2 value :SERVING, 1
value :NOT_SERVING, 2
value :SERVICE_UNKNOWN, 3
end
end end
end end

@ -34,7 +34,25 @@ module Grpc
self.unmarshal_class_method = :decode self.unmarshal_class_method = :decode
self.service_name = 'grpc.health.v1.Health' 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 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 end
Stub = Service.rpc_stub_class Stub = Service.rpc_stub_class

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

@ -4,62 +4,64 @@
require 'google/protobuf' require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "grpc.testing.BoolValue" do add_file("src/proto/grpc/testing/messages.proto", :syntax => :proto3) do
optional :value, :bool, 1 add_message "grpc.testing.BoolValue" do
end optional :value, :bool, 1
add_message "grpc.testing.Payload" do end
optional :type, :enum, 1, "grpc.testing.PayloadType" add_message "grpc.testing.Payload" do
optional :body, :bytes, 2 optional :type, :enum, 1, "grpc.testing.PayloadType"
end optional :body, :bytes, 2
add_message "grpc.testing.EchoStatus" do end
optional :code, :int32, 1 add_message "grpc.testing.EchoStatus" do
optional :message, :string, 2 optional :code, :int32, 1
end optional :message, :string, 2
add_message "grpc.testing.SimpleRequest" do end
optional :response_type, :enum, 1, "grpc.testing.PayloadType" add_message "grpc.testing.SimpleRequest" do
optional :response_size, :int32, 2 optional :response_type, :enum, 1, "grpc.testing.PayloadType"
optional :payload, :message, 3, "grpc.testing.Payload" optional :response_size, :int32, 2
optional :fill_username, :bool, 4 optional :payload, :message, 3, "grpc.testing.Payload"
optional :fill_oauth_scope, :bool, 5 optional :fill_username, :bool, 4
optional :response_compressed, :message, 6, "grpc.testing.BoolValue" optional :fill_oauth_scope, :bool, 5
optional :response_status, :message, 7, "grpc.testing.EchoStatus" optional :response_compressed, :message, 6, "grpc.testing.BoolValue"
optional :expect_compressed, :message, 8, "grpc.testing.BoolValue" optional :response_status, :message, 7, "grpc.testing.EchoStatus"
end optional :expect_compressed, :message, 8, "grpc.testing.BoolValue"
add_message "grpc.testing.SimpleResponse" do end
optional :payload, :message, 1, "grpc.testing.Payload" add_message "grpc.testing.SimpleResponse" do
optional :username, :string, 2 optional :payload, :message, 1, "grpc.testing.Payload"
optional :oauth_scope, :string, 3 optional :username, :string, 2
end optional :oauth_scope, :string, 3
add_message "grpc.testing.StreamingInputCallRequest" do end
optional :payload, :message, 1, "grpc.testing.Payload" add_message "grpc.testing.StreamingInputCallRequest" do
optional :expect_compressed, :message, 2, "grpc.testing.BoolValue" optional :payload, :message, 1, "grpc.testing.Payload"
end optional :expect_compressed, :message, 2, "grpc.testing.BoolValue"
add_message "grpc.testing.StreamingInputCallResponse" do end
optional :aggregated_payload_size, :int32, 1 add_message "grpc.testing.StreamingInputCallResponse" do
end optional :aggregated_payload_size, :int32, 1
add_message "grpc.testing.ResponseParameters" do end
optional :size, :int32, 1 add_message "grpc.testing.ResponseParameters" do
optional :interval_us, :int32, 2 optional :size, :int32, 1
optional :compressed, :message, 3, "grpc.testing.BoolValue" optional :interval_us, :int32, 2
end optional :compressed, :message, 3, "grpc.testing.BoolValue"
add_message "grpc.testing.StreamingOutputCallRequest" do end
optional :response_type, :enum, 1, "grpc.testing.PayloadType" add_message "grpc.testing.StreamingOutputCallRequest" do
repeated :response_parameters, :message, 2, "grpc.testing.ResponseParameters" optional :response_type, :enum, 1, "grpc.testing.PayloadType"
optional :payload, :message, 3, "grpc.testing.Payload" repeated :response_parameters, :message, 2, "grpc.testing.ResponseParameters"
optional :response_status, :message, 7, "grpc.testing.EchoStatus" optional :payload, :message, 3, "grpc.testing.Payload"
end optional :response_status, :message, 7, "grpc.testing.EchoStatus"
add_message "grpc.testing.StreamingOutputCallResponse" do end
optional :payload, :message, 1, "grpc.testing.Payload" add_message "grpc.testing.StreamingOutputCallResponse" do
end optional :payload, :message, 1, "grpc.testing.Payload"
add_message "grpc.testing.ReconnectParams" do end
optional :max_reconnect_backoff_ms, :int32, 1 add_message "grpc.testing.ReconnectParams" do
end optional :max_reconnect_backoff_ms, :int32, 1
add_message "grpc.testing.ReconnectInfo" do end
optional :passed, :bool, 1 add_message "grpc.testing.ReconnectInfo" do
repeated :backoff_ms, :int32, 2 optional :passed, :bool, 1
end repeated :backoff_ms, :int32, 2
add_enum "grpc.testing.PayloadType" do end
value :COMPRESSABLE, 0 add_enum "grpc.testing.PayloadType" do
value :COMPRESSABLE, 0
end
end end
end end

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

@ -4,22 +4,24 @@
require 'google/protobuf' require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "grpc.core.Bucket" do add_file("src/proto/grpc/core/stats.proto", :syntax => :proto3) do
optional :start, :double, 1 add_message "grpc.core.Bucket" do
optional :count, :uint64, 2 optional :start, :double, 1
end optional :count, :uint64, 2
add_message "grpc.core.Histogram" do end
repeated :buckets, :message, 1, "grpc.core.Bucket" add_message "grpc.core.Histogram" do
end repeated :buckets, :message, 1, "grpc.core.Bucket"
add_message "grpc.core.Metric" do end
optional :name, :string, 1 add_message "grpc.core.Metric" do
oneof :value do optional :name, :string, 1
optional :count, :uint64, 10 oneof :value do
optional :histogram, :message, 11, "grpc.core.Histogram" optional :count, :uint64, 10
optional :histogram, :message, 11, "grpc.core.Histogram"
end
end
add_message "grpc.core.Stats" do
repeated :metrics, :message, 1, "grpc.core.Metric"
end end
end
add_message "grpc.core.Stats" do
repeated :metrics, :message, 1, "grpc.core.Metric"
end end
end end

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

@ -6,152 +6,157 @@ require 'google/protobuf'
require 'src/proto/grpc/testing/payloads_pb' require 'src/proto/grpc/testing/payloads_pb'
require 'src/proto/grpc/testing/stats_pb' require 'src/proto/grpc/testing/stats_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "grpc.testing.PoissonParams" do add_file("src/proto/grpc/testing/control.proto", :syntax => :proto3) do
optional :offered_load, :double, 1 add_message "grpc.testing.PoissonParams" do
end optional :offered_load, :double, 1
add_message "grpc.testing.ClosedLoopParams" do
end
add_message "grpc.testing.LoadParams" do
oneof :load do
optional :closed_loop, :message, 1, "grpc.testing.ClosedLoopParams"
optional :poisson, :message, 2, "grpc.testing.PoissonParams"
end end
end add_message "grpc.testing.ClosedLoopParams" do
add_message "grpc.testing.SecurityParams" do
optional :use_test_ca, :bool, 1
optional :server_host_override, :string, 2
optional :cred_type, :string, 3
end
add_message "grpc.testing.ChannelArg" do
optional :name, :string, 1
oneof :value do
optional :str_value, :string, 2
optional :int_value, :int32, 3
end end
end add_message "grpc.testing.LoadParams" do
add_message "grpc.testing.ClientConfig" do oneof :load do
repeated :server_targets, :string, 1 optional :closed_loop, :message, 1, "grpc.testing.ClosedLoopParams"
optional :client_type, :enum, 2, "grpc.testing.ClientType" optional :poisson, :message, 2, "grpc.testing.PoissonParams"
optional :security_params, :message, 3, "grpc.testing.SecurityParams" end
optional :outstanding_rpcs_per_channel, :int32, 4
optional :client_channels, :int32, 5
optional :async_client_threads, :int32, 7
optional :rpc_type, :enum, 8, "grpc.testing.RpcType"
optional :load_params, :message, 10, "grpc.testing.LoadParams"
optional :payload_config, :message, 11, "grpc.testing.PayloadConfig"
optional :histogram_params, :message, 12, "grpc.testing.HistogramParams"
repeated :core_list, :int32, 13
optional :core_limit, :int32, 14
optional :other_client_api, :string, 15
repeated :channel_args, :message, 16, "grpc.testing.ChannelArg"
optional :threads_per_cq, :int32, 17
optional :messages_per_stream, :int32, 18
optional :use_coalesce_api, :bool, 19
end
add_message "grpc.testing.ClientStatus" do
optional :stats, :message, 1, "grpc.testing.ClientStats"
end
add_message "grpc.testing.Mark" do
optional :reset, :bool, 1
end
add_message "grpc.testing.ClientArgs" do
oneof :argtype do
optional :setup, :message, 1, "grpc.testing.ClientConfig"
optional :mark, :message, 2, "grpc.testing.Mark"
end end
end add_message "grpc.testing.SecurityParams" do
add_message "grpc.testing.ServerConfig" do optional :use_test_ca, :bool, 1
optional :server_type, :enum, 1, "grpc.testing.ServerType" optional :server_host_override, :string, 2
optional :security_params, :message, 2, "grpc.testing.SecurityParams" optional :cred_type, :string, 3
optional :port, :int32, 4 end
optional :async_server_threads, :int32, 7 add_message "grpc.testing.ChannelArg" do
optional :core_limit, :int32, 8 optional :name, :string, 1
optional :payload_config, :message, 9, "grpc.testing.PayloadConfig" oneof :value do
repeated :core_list, :int32, 10 optional :str_value, :string, 2
optional :other_server_api, :string, 11 optional :int_value, :int32, 3
optional :threads_per_cq, :int32, 12 end
optional :resource_quota_size, :int32, 1001 end
repeated :channel_args, :message, 1002, "grpc.testing.ChannelArg" add_message "grpc.testing.ClientConfig" do
end repeated :server_targets, :string, 1
add_message "grpc.testing.ServerArgs" do optional :client_type, :enum, 2, "grpc.testing.ClientType"
oneof :argtype do optional :security_params, :message, 3, "grpc.testing.SecurityParams"
optional :setup, :message, 1, "grpc.testing.ServerConfig" optional :outstanding_rpcs_per_channel, :int32, 4
optional :mark, :message, 2, "grpc.testing.Mark" optional :client_channels, :int32, 5
optional :async_client_threads, :int32, 7
optional :rpc_type, :enum, 8, "grpc.testing.RpcType"
optional :load_params, :message, 10, "grpc.testing.LoadParams"
optional :payload_config, :message, 11, "grpc.testing.PayloadConfig"
optional :histogram_params, :message, 12, "grpc.testing.HistogramParams"
repeated :core_list, :int32, 13
optional :core_limit, :int32, 14
optional :other_client_api, :string, 15
repeated :channel_args, :message, 16, "grpc.testing.ChannelArg"
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"
end
add_message "grpc.testing.Mark" do
optional :reset, :bool, 1
end
add_message "grpc.testing.ClientArgs" do
oneof :argtype do
optional :setup, :message, 1, "grpc.testing.ClientConfig"
optional :mark, :message, 2, "grpc.testing.Mark"
end
end
add_message "grpc.testing.ServerConfig" do
optional :server_type, :enum, 1, "grpc.testing.ServerType"
optional :security_params, :message, 2, "grpc.testing.SecurityParams"
optional :port, :int32, 4
optional :async_server_threads, :int32, 7
optional :core_limit, :int32, 8
optional :payload_config, :message, 9, "grpc.testing.PayloadConfig"
repeated :core_list, :int32, 10
optional :other_server_api, :string, 11
optional :threads_per_cq, :int32, 12
optional :resource_quota_size, :int32, 1001
repeated :channel_args, :message, 1002, "grpc.testing.ChannelArg"
end
add_message "grpc.testing.ServerArgs" do
oneof :argtype do
optional :setup, :message, 1, "grpc.testing.ServerConfig"
optional :mark, :message, 2, "grpc.testing.Mark"
end
end
add_message "grpc.testing.ServerStatus" do
optional :stats, :message, 1, "grpc.testing.ServerStats"
optional :port, :int32, 2
optional :cores, :int32, 3
end
add_message "grpc.testing.CoreRequest" do
end
add_message "grpc.testing.CoreResponse" do
optional :cores, :int32, 1
end
add_message "grpc.testing.Void" do
end
add_message "grpc.testing.Scenario" do
optional :name, :string, 1
optional :client_config, :message, 2, "grpc.testing.ClientConfig"
optional :num_clients, :int32, 3
optional :server_config, :message, 4, "grpc.testing.ServerConfig"
optional :num_servers, :int32, 5
optional :warmup_seconds, :int32, 6
optional :benchmark_seconds, :int32, 7
optional :spawn_local_worker_count, :int32, 8
end
add_message "grpc.testing.Scenarios" do
repeated :scenarios, :message, 1, "grpc.testing.Scenario"
end
add_message "grpc.testing.ScenarioResultSummary" do
optional :qps, :double, 1
optional :qps_per_server_core, :double, 2
optional :server_system_time, :double, 3
optional :server_user_time, :double, 4
optional :client_system_time, :double, 5
optional :client_user_time, :double, 6
optional :latency_50, :double, 7
optional :latency_90, :double, 8
optional :latency_95, :double, 9
optional :latency_99, :double, 10
optional :latency_999, :double, 11
optional :server_cpu_usage, :double, 12
optional :successful_requests_per_second, :double, 13
optional :failed_requests_per_second, :double, 14
optional :client_polls_per_request, :double, 15
optional :server_polls_per_request, :double, 16
optional :server_queries_per_cpu_sec, :double, 17
optional :client_queries_per_cpu_sec, :double, 18
end
add_message "grpc.testing.ScenarioResult" do
optional :scenario, :message, 1, "grpc.testing.Scenario"
optional :latencies, :message, 2, "grpc.testing.HistogramData"
repeated :client_stats, :message, 3, "grpc.testing.ClientStats"
repeated :server_stats, :message, 4, "grpc.testing.ServerStats"
repeated :server_cores, :int32, 5
optional :summary, :message, 6, "grpc.testing.ScenarioResultSummary"
repeated :client_success, :bool, 7
repeated :server_success, :bool, 8
repeated :request_results, :message, 9, "grpc.testing.RequestResultCount"
end
add_enum "grpc.testing.ClientType" 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
value :STREAMING, 1
value :STREAMING_FROM_CLIENT, 2
value :STREAMING_FROM_SERVER, 3
value :STREAMING_BOTH_WAYS, 4
end end
end
add_message "grpc.testing.ServerStatus" do
optional :stats, :message, 1, "grpc.testing.ServerStats"
optional :port, :int32, 2
optional :cores, :int32, 3
end
add_message "grpc.testing.CoreRequest" do
end
add_message "grpc.testing.CoreResponse" do
optional :cores, :int32, 1
end
add_message "grpc.testing.Void" do
end
add_message "grpc.testing.Scenario" do
optional :name, :string, 1
optional :client_config, :message, 2, "grpc.testing.ClientConfig"
optional :num_clients, :int32, 3
optional :server_config, :message, 4, "grpc.testing.ServerConfig"
optional :num_servers, :int32, 5
optional :warmup_seconds, :int32, 6
optional :benchmark_seconds, :int32, 7
optional :spawn_local_worker_count, :int32, 8
end
add_message "grpc.testing.Scenarios" do
repeated :scenarios, :message, 1, "grpc.testing.Scenario"
end
add_message "grpc.testing.ScenarioResultSummary" do
optional :qps, :double, 1
optional :qps_per_server_core, :double, 2
optional :server_system_time, :double, 3
optional :server_user_time, :double, 4
optional :client_system_time, :double, 5
optional :client_user_time, :double, 6
optional :latency_50, :double, 7
optional :latency_90, :double, 8
optional :latency_95, :double, 9
optional :latency_99, :double, 10
optional :latency_999, :double, 11
optional :server_cpu_usage, :double, 12
optional :successful_requests_per_second, :double, 13
optional :failed_requests_per_second, :double, 14
optional :client_polls_per_request, :double, 15
optional :server_polls_per_request, :double, 16
optional :server_queries_per_cpu_sec, :double, 17
optional :client_queries_per_cpu_sec, :double, 18
end
add_message "grpc.testing.ScenarioResult" do
optional :scenario, :message, 1, "grpc.testing.Scenario"
optional :latencies, :message, 2, "grpc.testing.HistogramData"
repeated :client_stats, :message, 3, "grpc.testing.ClientStats"
repeated :server_stats, :message, 4, "grpc.testing.ServerStats"
repeated :server_cores, :int32, 5
optional :summary, :message, 6, "grpc.testing.ScenarioResultSummary"
repeated :client_success, :bool, 7
repeated :server_success, :bool, 8
repeated :request_results, :message, 9, "grpc.testing.RequestResultCount"
end
add_enum "grpc.testing.ClientType" do
value :SYNC_CLIENT, 0
value :ASYNC_CLIENT, 1
value :OTHER_CLIENT, 2
end
add_enum "grpc.testing.ServerType" do
value :SYNC_SERVER, 0
value :ASYNC_SERVER, 1
value :ASYNC_GENERIC_SERVER, 2
value :OTHER_SERVER, 3
end
add_enum "grpc.testing.RpcType" do
value :UNARY, 0
value :STREAMING, 1
value :STREAMING_FROM_CLIENT, 2
value :STREAMING_FROM_SERVER, 3
value :STREAMING_BOTH_WAYS, 4
end end
end end

@ -4,62 +4,64 @@
require 'google/protobuf' require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "grpc.testing.BoolValue" do add_file("src/proto/grpc/testing/messages.proto", :syntax => :proto3) do
optional :value, :bool, 1 add_message "grpc.testing.BoolValue" do
end optional :value, :bool, 1
add_message "grpc.testing.Payload" do end
optional :type, :enum, 1, "grpc.testing.PayloadType" add_message "grpc.testing.Payload" do
optional :body, :bytes, 2 optional :type, :enum, 1, "grpc.testing.PayloadType"
end optional :body, :bytes, 2
add_message "grpc.testing.EchoStatus" do end
optional :code, :int32, 1 add_message "grpc.testing.EchoStatus" do
optional :message, :string, 2 optional :code, :int32, 1
end optional :message, :string, 2
add_message "grpc.testing.SimpleRequest" do end
optional :response_type, :enum, 1, "grpc.testing.PayloadType" add_message "grpc.testing.SimpleRequest" do
optional :response_size, :int32, 2 optional :response_type, :enum, 1, "grpc.testing.PayloadType"
optional :payload, :message, 3, "grpc.testing.Payload" optional :response_size, :int32, 2
optional :fill_username, :bool, 4 optional :payload, :message, 3, "grpc.testing.Payload"
optional :fill_oauth_scope, :bool, 5 optional :fill_username, :bool, 4
optional :response_compressed, :message, 6, "grpc.testing.BoolValue" optional :fill_oauth_scope, :bool, 5
optional :response_status, :message, 7, "grpc.testing.EchoStatus" optional :response_compressed, :message, 6, "grpc.testing.BoolValue"
optional :expect_compressed, :message, 8, "grpc.testing.BoolValue" optional :response_status, :message, 7, "grpc.testing.EchoStatus"
end optional :expect_compressed, :message, 8, "grpc.testing.BoolValue"
add_message "grpc.testing.SimpleResponse" do end
optional :payload, :message, 1, "grpc.testing.Payload" add_message "grpc.testing.SimpleResponse" do
optional :username, :string, 2 optional :payload, :message, 1, "grpc.testing.Payload"
optional :oauth_scope, :string, 3 optional :username, :string, 2
end optional :oauth_scope, :string, 3
add_message "grpc.testing.StreamingInputCallRequest" do end
optional :payload, :message, 1, "grpc.testing.Payload" add_message "grpc.testing.StreamingInputCallRequest" do
optional :expect_compressed, :message, 2, "grpc.testing.BoolValue" optional :payload, :message, 1, "grpc.testing.Payload"
end optional :expect_compressed, :message, 2, "grpc.testing.BoolValue"
add_message "grpc.testing.StreamingInputCallResponse" do end
optional :aggregated_payload_size, :int32, 1 add_message "grpc.testing.StreamingInputCallResponse" do
end optional :aggregated_payload_size, :int32, 1
add_message "grpc.testing.ResponseParameters" do end
optional :size, :int32, 1 add_message "grpc.testing.ResponseParameters" do
optional :interval_us, :int32, 2 optional :size, :int32, 1
optional :compressed, :message, 3, "grpc.testing.BoolValue" optional :interval_us, :int32, 2
end optional :compressed, :message, 3, "grpc.testing.BoolValue"
add_message "grpc.testing.StreamingOutputCallRequest" do end
optional :response_type, :enum, 1, "grpc.testing.PayloadType" add_message "grpc.testing.StreamingOutputCallRequest" do
repeated :response_parameters, :message, 2, "grpc.testing.ResponseParameters" optional :response_type, :enum, 1, "grpc.testing.PayloadType"
optional :payload, :message, 3, "grpc.testing.Payload" repeated :response_parameters, :message, 2, "grpc.testing.ResponseParameters"
optional :response_status, :message, 7, "grpc.testing.EchoStatus" optional :payload, :message, 3, "grpc.testing.Payload"
end optional :response_status, :message, 7, "grpc.testing.EchoStatus"
add_message "grpc.testing.StreamingOutputCallResponse" do end
optional :payload, :message, 1, "grpc.testing.Payload" add_message "grpc.testing.StreamingOutputCallResponse" do
end optional :payload, :message, 1, "grpc.testing.Payload"
add_message "grpc.testing.ReconnectParams" do end
optional :max_reconnect_backoff_ms, :int32, 1 add_message "grpc.testing.ReconnectParams" do
end optional :max_reconnect_backoff_ms, :int32, 1
add_message "grpc.testing.ReconnectInfo" do end
optional :passed, :bool, 1 add_message "grpc.testing.ReconnectInfo" do
repeated :backoff_ms, :int32, 2 optional :passed, :bool, 1
end repeated :backoff_ms, :int32, 2
add_enum "grpc.testing.PayloadType" do end
value :COMPRESSABLE, 0 add_enum "grpc.testing.PayloadType" do
value :COMPRESSABLE, 0
end
end end
end end

@ -4,21 +4,23 @@
require 'google/protobuf' require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "grpc.testing.ByteBufferParams" do add_file("src/proto/grpc/testing/payloads.proto", :syntax => :proto3) do
optional :req_size, :int32, 1 add_message "grpc.testing.ByteBufferParams" do
optional :resp_size, :int32, 2 optional :req_size, :int32, 1
end optional :resp_size, :int32, 2
add_message "grpc.testing.SimpleProtoParams" do end
optional :req_size, :int32, 1 add_message "grpc.testing.SimpleProtoParams" do
optional :resp_size, :int32, 2 optional :req_size, :int32, 1
end optional :resp_size, :int32, 2
add_message "grpc.testing.ComplexProtoParams" do end
end add_message "grpc.testing.ComplexProtoParams" do
add_message "grpc.testing.PayloadConfig" do end
oneof :payload do add_message "grpc.testing.PayloadConfig" do
optional :bytebuf_params, :message, 1, "grpc.testing.ByteBufferParams" oneof :payload do
optional :simple_params, :message, 2, "grpc.testing.SimpleProtoParams" optional :bytebuf_params, :message, 1, "grpc.testing.ByteBufferParams"
optional :complex_params, :message, 3, "grpc.testing.ComplexProtoParams" optional :simple_params, :message, 2, "grpc.testing.SimpleProtoParams"
optional :complex_params, :message, 3, "grpc.testing.ComplexProtoParams"
end
end end
end end
end end

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

@ -5,39 +5,41 @@ require 'google/protobuf'
require 'src/proto/grpc/core/stats_pb' require 'src/proto/grpc/core/stats_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "grpc.testing.ServerStats" do add_file("src/proto/grpc/testing/stats.proto", :syntax => :proto3) do
optional :time_elapsed, :double, 1 add_message "grpc.testing.ServerStats" do
optional :time_user, :double, 2 optional :time_elapsed, :double, 1
optional :time_system, :double, 3 optional :time_user, :double, 2
optional :total_cpu_time, :uint64, 4 optional :time_system, :double, 3
optional :idle_cpu_time, :uint64, 5 optional :total_cpu_time, :uint64, 4
optional :cq_poll_count, :uint64, 6 optional :idle_cpu_time, :uint64, 5
optional :core_stats, :message, 7, "grpc.core.Stats" optional :cq_poll_count, :uint64, 6
end optional :core_stats, :message, 7, "grpc.core.Stats"
add_message "grpc.testing.HistogramParams" do end
optional :resolution, :double, 1 add_message "grpc.testing.HistogramParams" do
optional :max_possible, :double, 2 optional :resolution, :double, 1
end optional :max_possible, :double, 2
add_message "grpc.testing.HistogramData" do end
repeated :bucket, :uint32, 1 add_message "grpc.testing.HistogramData" do
optional :min_seen, :double, 2 repeated :bucket, :uint32, 1
optional :max_seen, :double, 3 optional :min_seen, :double, 2
optional :sum, :double, 4 optional :max_seen, :double, 3
optional :sum_of_squares, :double, 5 optional :sum, :double, 4
optional :count, :double, 6 optional :sum_of_squares, :double, 5
end optional :count, :double, 6
add_message "grpc.testing.RequestResultCount" do end
optional :status_code, :int32, 1 add_message "grpc.testing.RequestResultCount" do
optional :count, :int64, 2 optional :status_code, :int32, 1
end optional :count, :int64, 2
add_message "grpc.testing.ClientStats" do end
optional :latencies, :message, 1, "grpc.testing.HistogramData" add_message "grpc.testing.ClientStats" do
optional :time_elapsed, :double, 2 optional :latencies, :message, 1, "grpc.testing.HistogramData"
optional :time_user, :double, 3 optional :time_elapsed, :double, 2
optional :time_system, :double, 4 optional :time_user, :double, 3
repeated :request_results, :message, 5, "grpc.testing.RequestResultCount" optional :time_system, :double, 4
optional :cq_poll_count, :uint64, 6 repeated :request_results, :message, 5, "grpc.testing.RequestResultCount"
optional :core_stats, :message, 7, "grpc.core.Stats" optional :cq_poll_count, :uint64, 6
optional :core_stats, :message, 7, "grpc.core.Stats"
end
end end
end end

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

@ -31,7 +31,7 @@
s.require_paths = %w( src/ruby/lib src/ruby/bin src/ruby/pb ) s.require_paths = %w( src/ruby/lib src/ruby/bin src/ruby/pb )
s.platform = Gem::Platform::RUBY 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_dependency 'googleapis-common-protos-types', '~> 1.0.0'
s.add_development_dependency 'bundler', '~> 1.9' s.add_development_dependency 'bundler', '~> 1.9'

@ -4,6 +4,6 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<GrpcCsharpVersion>${settings.csharp_version}</GrpcCsharpVersion> <GrpcCsharpVersion>${settings.csharp_version}</GrpcCsharpVersion>
<GoogleProtobufVersion>3.6.1</GoogleProtobufVersion> <GoogleProtobufVersion>3.7.0</GoogleProtobufVersion>
</PropertyGroup> </PropertyGroup>
</Project> </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) ec44c6c1675c25b9827aacd08c02433cccde7780 third_party/googletest (release-1.8.0)
6599cac0965be8e5a835ab7a5684bbef033d5ad0 third_party/libcxx (heads/release_60) 6599cac0965be8e5a835ab7a5684bbef033d5ad0 third_party/libcxx (heads/release_60)
9245d481eb3e890f708ff2d7dadf2a10c04748ba third_party/libcxxabi (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) e143189bf6f37b3957fb31743df6a1bcf4a8c685 third_party/protoc-gen-validate (v0.0.10)
9ce4a77f61c134bbed28bfd5be5cd7dc0e80f5e3 third_party/upb (heads/upbc-cpp) 9ce4a77f61c134bbed28bfd5be5cd7dc0e80f5e3 third_party/upb (heads/upbc-cpp)
cacf7f1d4e3d44d871b605da3b647f07d718623f third_party/zlib (v1.2.11) cacf7f1d4e3d44d871b605da3b647f07d718623f third_party/zlib (v1.2.11)

Loading…
Cancel
Save