grpc 1.0.0.pre1 → 1.0.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Makefile +1 -37
- data/include/grpc/impl/codegen/compression_types.h +16 -1
- data/include/grpc/impl/codegen/grpc_types.h +23 -15
- data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c +4 -2
- data/src/core/ext/transport/chttp2/transport/chttp2_plugin.c +3 -0
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.c +305 -64
- data/src/core/ext/transport/chttp2/transport/internal.h +46 -19
- data/src/core/ext/transport/chttp2/transport/parsing.c +6 -5
- data/src/core/ext/transport/chttp2/transport/stream_lists.c +11 -9
- data/src/core/ext/transport/chttp2/transport/writing.c +13 -3
- data/src/core/lib/iomgr/endpoint.c +4 -0
- data/src/core/lib/iomgr/endpoint.h +4 -0
- data/src/core/lib/iomgr/ev_epoll_linux.c +161 -116
- data/src/core/lib/iomgr/ev_poll_and_epoll_posix.c +3 -0
- data/src/core/lib/iomgr/ev_poll_posix.c +3 -0
- data/src/core/lib/iomgr/ev_posix.c +4 -0
- data/src/core/lib/iomgr/ev_posix.h +4 -0
- data/src/core/lib/iomgr/exec_ctx.c +7 -3
- data/src/core/lib/iomgr/exec_ctx.h +5 -1
- data/src/core/lib/iomgr/iomgr.c +3 -0
- data/src/core/lib/iomgr/network_status_tracker.c +9 -6
- data/src/core/lib/iomgr/network_status_tracker.h +4 -0
- data/src/core/lib/iomgr/tcp_posix.c +14 -4
- data/src/core/lib/iomgr/tcp_server_posix.c +2 -1
- data/src/core/lib/iomgr/tcp_windows.c +10 -3
- data/src/core/lib/iomgr/workqueue.h +25 -14
- data/src/core/lib/iomgr/workqueue_posix.c +1 -7
- data/src/core/lib/iomgr/workqueue_posix.h +5 -0
- data/src/core/lib/iomgr/workqueue_windows.c +22 -0
- data/src/core/lib/security/transport/secure_endpoint.c +13 -5
- data/src/core/lib/support/log.c +10 -9
- data/src/core/lib/surface/server.c +45 -31
- data/src/core/lib/surface/version.c +1 -1
- data/src/core/lib/transport/connectivity_state.c +3 -0
- data/src/ruby/bin/math_client.rb +1 -1
- data/src/ruby/bin/{math.rb → math_pb.rb} +0 -0
- data/src/ruby/bin/math_server.rb +1 -1
- data/src/ruby/bin/{math_services.rb → math_services_pb.rb} +4 -4
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/grpc/health/checker.rb +1 -1
- data/src/ruby/pb/grpc/health/v1/{health.rb → health_pb.rb} +0 -0
- data/src/ruby/pb/grpc/health/v1/{health_services.rb → health_services_pb.rb} +1 -1
- data/src/ruby/pb/grpc/testing/duplicate/{echo_duplicate_services.rb → echo_duplicate_services_pb.rb} +2 -2
- data/src/ruby/pb/grpc/testing/{metrics.rb → metrics_pb.rb} +1 -1
- data/src/ruby/pb/grpc/testing/{metrics_services.rb → metrics_services_pb.rb} +2 -2
- data/src/ruby/pb/src/proto/grpc/testing/{empty.rb → empty_pb.rb} +0 -0
- data/src/ruby/pb/src/proto/grpc/testing/{messages.rb → messages_pb.rb} +8 -10
- data/src/ruby/pb/src/proto/grpc/testing/{test.rb → test_pb.rb} +2 -2
- data/src/ruby/pb/src/proto/grpc/testing/{test_services.rb → test_services_pb.rb} +1 -1
- data/src/ruby/pb/test/client.rb +3 -3
- data/src/ruby/pb/test/server.rb +3 -3
- data/src/ruby/spec/pb/duplicate/codegen_spec.rb +2 -2
- data/src/ruby/spec/pb/health/checker_spec.rb +4 -4
- metadata +15 -19
- data/src/ruby/pb/test/proto/empty.rb +0 -15
- data/src/ruby/pb/test/proto/messages.rb +0 -80
- data/src/ruby/pb/test/proto/test.rb +0 -14
- data/src/ruby/pb/test/proto/test_services.rb +0 -64
@@ -179,6 +179,9 @@ void grpc_connectivity_state_set(grpc_exec_ctx *exec_ctx,
|
|
179
179
|
while ((w = tracker->watchers) != NULL) {
|
180
180
|
*w->current = tracker->current_state;
|
181
181
|
tracker->watchers = w->next;
|
182
|
+
if (grpc_connectivity_state_trace) {
|
183
|
+
gpr_log(GPR_DEBUG, "NOTIFY: %p", w->notify);
|
184
|
+
}
|
182
185
|
grpc_exec_ctx_sched(exec_ctx, w->notify,
|
183
186
|
GRPC_ERROR_REF(tracker->current_error), NULL);
|
184
187
|
gpr_free(w);
|
data/src/ruby/bin/math_client.rb
CHANGED
@@ -40,7 +40,7 @@ $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
|
|
40
40
|
$LOAD_PATH.unshift(this_dir) unless $LOAD_PATH.include?(this_dir)
|
41
41
|
|
42
42
|
require 'grpc'
|
43
|
-
require '
|
43
|
+
require 'math_services_pb'
|
44
44
|
require 'optparse'
|
45
45
|
|
46
46
|
include GRPC::Core::TimeConsts
|
File without changes
|
data/src/ruby/bin/math_server.rb
CHANGED
@@ -42,7 +42,7 @@ $LOAD_PATH.unshift(this_dir) unless $LOAD_PATH.include?(this_dir)
|
|
42
42
|
require 'forwardable'
|
43
43
|
require 'grpc'
|
44
44
|
require 'logger'
|
45
|
-
require '
|
45
|
+
require 'math_services_pb'
|
46
46
|
require 'optparse'
|
47
47
|
|
48
48
|
# RubyLogger defines a logger for gRPC based on the standard ruby logger.
|
@@ -32,7 +32,7 @@
|
|
32
32
|
#
|
33
33
|
|
34
34
|
require 'grpc'
|
35
|
-
require '
|
35
|
+
require 'math_pb'
|
36
36
|
|
37
37
|
module Math
|
38
38
|
module Math
|
@@ -44,15 +44,15 @@ module Math
|
|
44
44
|
self.unmarshal_class_method = :decode
|
45
45
|
self.service_name = 'math.Math'
|
46
46
|
|
47
|
-
# Div divides
|
48
|
-
# remainder.
|
47
|
+
# Div divides DivArgs.dividend by DivArgs.divisor and returns the quotient
|
48
|
+
# and remainder.
|
49
49
|
rpc :Div, DivArgs, DivReply
|
50
50
|
# DivMany accepts an arbitrary number of division args from the client stream
|
51
51
|
# and sends back the results in the reply stream. The stream continues until
|
52
52
|
# the client closes its end; the server does the same after sending all the
|
53
53
|
# replies. The stream ends immediately if either end aborts.
|
54
54
|
rpc :DivMany, stream(DivArgs), stream(DivReply)
|
55
|
-
# Fib generates numbers in the Fibonacci sequence. If
|
55
|
+
# Fib generates numbers in the Fibonacci sequence. If FibArgs.limit > 0, Fib
|
56
56
|
# generates up to limit numbers; otherwise it continues until the call is
|
57
57
|
# canceled. Unlike Fib above, Fib has no final FibReply.
|
58
58
|
rpc :Fib, FibArgs, stream(Num)
|
File without changes
|
data/src/ruby/pb/grpc/testing/duplicate/{echo_duplicate_services.rb → echo_duplicate_services_pb.rb}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: grpc/testing/duplicate/echo_duplicate.proto for package 'grpc.testing.duplicate'
|
2
|
+
# Source: src/proto/grpc/testing/duplicate/echo_duplicate.proto for package 'grpc.testing.duplicate'
|
3
3
|
# Original file comments:
|
4
4
|
# Copyright 2015, Google Inc.
|
5
5
|
# All rights reserved.
|
@@ -34,7 +34,7 @@
|
|
34
34
|
#
|
35
35
|
|
36
36
|
require 'grpc'
|
37
|
-
require 'grpc/testing/duplicate/
|
37
|
+
require 'src/proto/grpc/testing/duplicate/echo_duplicate_pb'
|
38
38
|
|
39
39
|
module Grpc
|
40
40
|
module Testing
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: grpc/testing/metrics.proto for package 'grpc.testing'
|
2
|
+
# Source: src/proto/grpc/testing/metrics.proto for package 'grpc.testing'
|
3
3
|
# Original file comments:
|
4
4
|
# Copyright 2015-2016, Google Inc.
|
5
5
|
# All rights reserved.
|
@@ -38,7 +38,7 @@
|
|
38
38
|
# service.
|
39
39
|
|
40
40
|
require 'grpc'
|
41
|
-
require 'grpc/testing/
|
41
|
+
require 'src/proto/grpc/testing/metrics_pb'
|
42
42
|
|
43
43
|
module Grpc
|
44
44
|
module Testing
|
File without changes
|
@@ -4,6 +4,9 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "grpc.testing.BoolValue" do
|
8
|
+
optional :value, :bool, 1
|
9
|
+
end
|
7
10
|
add_message "grpc.testing.Payload" do
|
8
11
|
optional :type, :enum, 1, "grpc.testing.PayloadType"
|
9
12
|
optional :body, :bytes, 2
|
@@ -18,8 +21,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
18
21
|
optional :payload, :message, 3, "grpc.testing.Payload"
|
19
22
|
optional :fill_username, :bool, 4
|
20
23
|
optional :fill_oauth_scope, :bool, 5
|
21
|
-
optional :
|
24
|
+
optional :response_compressed, :message, 6, "grpc.testing.BoolValue"
|
22
25
|
optional :response_status, :message, 7, "grpc.testing.EchoStatus"
|
26
|
+
optional :expect_compressed, :message, 8, "grpc.testing.BoolValue"
|
23
27
|
end
|
24
28
|
add_message "grpc.testing.SimpleResponse" do
|
25
29
|
optional :payload, :message, 1, "grpc.testing.Payload"
|
@@ -28,6 +32,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
28
32
|
end
|
29
33
|
add_message "grpc.testing.StreamingInputCallRequest" do
|
30
34
|
optional :payload, :message, 1, "grpc.testing.Payload"
|
35
|
+
optional :expect_compressed, :message, 2, "grpc.testing.BoolValue"
|
31
36
|
end
|
32
37
|
add_message "grpc.testing.StreamingInputCallResponse" do
|
33
38
|
optional :aggregated_payload_size, :int32, 1
|
@@ -35,12 +40,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
35
40
|
add_message "grpc.testing.ResponseParameters" do
|
36
41
|
optional :size, :int32, 1
|
37
42
|
optional :interval_us, :int32, 2
|
43
|
+
optional :compressed, :message, 3, "grpc.testing.BoolValue"
|
38
44
|
end
|
39
45
|
add_message "grpc.testing.StreamingOutputCallRequest" do
|
40
46
|
optional :response_type, :enum, 1, "grpc.testing.PayloadType"
|
41
47
|
repeated :response_parameters, :message, 2, "grpc.testing.ResponseParameters"
|
42
48
|
optional :payload, :message, 3, "grpc.testing.Payload"
|
43
|
-
optional :response_compression, :enum, 6, "grpc.testing.CompressionType"
|
44
49
|
optional :response_status, :message, 7, "grpc.testing.EchoStatus"
|
45
50
|
end
|
46
51
|
add_message "grpc.testing.StreamingOutputCallResponse" do
|
@@ -55,18 +60,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
55
60
|
end
|
56
61
|
add_enum "grpc.testing.PayloadType" do
|
57
62
|
value :COMPRESSABLE, 0
|
58
|
-
value :UNCOMPRESSABLE, 1
|
59
|
-
value :RANDOM, 2
|
60
|
-
end
|
61
|
-
add_enum "grpc.testing.CompressionType" do
|
62
|
-
value :NONE, 0
|
63
|
-
value :GZIP, 1
|
64
|
-
value :DEFLATE, 2
|
65
63
|
end
|
66
64
|
end
|
67
65
|
|
68
66
|
module Grpc
|
69
67
|
module Testing
|
68
|
+
BoolValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.BoolValue").msgclass
|
70
69
|
Payload = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.Payload").msgclass
|
71
70
|
EchoStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.EchoStatus").msgclass
|
72
71
|
SimpleRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.SimpleRequest").msgclass
|
@@ -79,6 +78,5 @@ module Grpc
|
|
79
78
|
ReconnectParams = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ReconnectParams").msgclass
|
80
79
|
ReconnectInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ReconnectInfo").msgclass
|
81
80
|
PayloadType = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.PayloadType").enummodule
|
82
|
-
CompressionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.CompressionType").enummodule
|
83
81
|
end
|
84
82
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'src/proto/grpc/testing/
|
7
|
-
require 'src/proto/grpc/testing/
|
6
|
+
require 'src/proto/grpc/testing/empty_pb'
|
7
|
+
require 'src/proto/grpc/testing/messages_pb'
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
end
|
10
10
|
|
data/src/ruby/pb/test/client.rb
CHANGED
@@ -52,9 +52,9 @@ require_relative '../../lib/grpc'
|
|
52
52
|
require 'googleauth'
|
53
53
|
require 'google/protobuf'
|
54
54
|
|
55
|
-
require_relative 'proto/
|
56
|
-
require_relative 'proto/
|
57
|
-
require_relative 'proto/
|
55
|
+
require_relative '../src/proto/grpc/testing/empty_pb'
|
56
|
+
require_relative '../src/proto/grpc/testing/messages_pb'
|
57
|
+
require_relative '../src/proto/grpc/testing/test_services_pb'
|
58
58
|
|
59
59
|
AUTH_ENV = Google::Auth::CredentialsLoader::ENV_VAR
|
60
60
|
|
data/src/ruby/pb/test/server.rb
CHANGED
@@ -50,9 +50,9 @@ require 'optparse'
|
|
50
50
|
|
51
51
|
require 'grpc'
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
53
|
+
require_relative '../src/proto/grpc/testing/empty_pb'
|
54
|
+
require_relative '../src/proto/grpc/testing/messages_pb'
|
55
|
+
require_relative '../src/proto/grpc/testing/test_services_pb'
|
56
56
|
|
57
57
|
# DebugIsTruncated extends the default Logger to truncate debug messages
|
58
58
|
class DebugIsTruncated < Logger
|
@@ -44,7 +44,7 @@ describe 'Ping protobuf code generation' do
|
|
44
44
|
# Get the current content
|
45
45
|
service_path = File.join(root_dir, 'src', 'ruby', 'pb', 'grpc',
|
46
46
|
'testing', 'duplicate',
|
47
|
-
'
|
47
|
+
'echo_duplicate_services_pb.rb')
|
48
48
|
want = nil
|
49
49
|
File.open(service_path) { |f| want = f.read }
|
50
50
|
|
@@ -54,7 +54,7 @@ describe 'Ping protobuf code generation' do
|
|
54
54
|
got = nil
|
55
55
|
Dir.mktmpdir do |tmp_dir|
|
56
56
|
gen_out = File.join(tmp_dir, 'src', 'proto', 'grpc', 'testing',
|
57
|
-
'duplicate', '
|
57
|
+
'duplicate', 'echo_duplicate_services_pb.rb')
|
58
58
|
pid = spawn(
|
59
59
|
'protoc',
|
60
60
|
'-I.',
|
@@ -28,7 +28,7 @@
|
|
28
28
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
29
|
|
30
30
|
require 'grpc'
|
31
|
-
require 'grpc/health/v1/
|
31
|
+
require 'grpc/health/v1/health_pb'
|
32
32
|
require 'grpc/health/checker'
|
33
33
|
require 'open3'
|
34
34
|
require 'tmpdir'
|
@@ -43,7 +43,7 @@ describe 'Health protobuf code generation' do
|
|
43
43
|
skip 'protoc || grpc_ruby_plugin missing, cannot verify health code-gen'
|
44
44
|
else
|
45
45
|
it 'should already be loaded indirectly i.e, used by the other specs' do
|
46
|
-
expect(require('grpc/health/v1/
|
46
|
+
expect(require('grpc/health/v1/health_services_pb')).to be(false)
|
47
47
|
end
|
48
48
|
|
49
49
|
it 'should have the same content as created by code generation' do
|
@@ -52,7 +52,7 @@ describe 'Health protobuf code generation' do
|
|
52
52
|
|
53
53
|
# Get the current content
|
54
54
|
service_path = File.join(root_dir, 'ruby', 'pb', 'grpc',
|
55
|
-
'health', 'v1', '
|
55
|
+
'health', 'v1', 'health_services_pb.rb')
|
56
56
|
want = nil
|
57
57
|
File.open(service_path) { |f| want = f.read }
|
58
58
|
|
@@ -62,7 +62,7 @@ describe 'Health protobuf code generation' do
|
|
62
62
|
got = nil
|
63
63
|
Dir.mktmpdir do |tmp_dir|
|
64
64
|
gen_out = File.join(tmp_dir, 'grpc', 'health', 'v1',
|
65
|
-
'
|
65
|
+
'health_services_pb.rb')
|
66
66
|
pid = spawn(
|
67
67
|
'protoc',
|
68
68
|
'-I.',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gRPC Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: src/ruby/bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0
|
19
|
+
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: googleauth
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -643,10 +643,10 @@ files:
|
|
643
643
|
- src/ruby/bin/apis/pubsub_demo.rb
|
644
644
|
- src/ruby/bin/apis/tech/pubsub/proto/pubsub.rb
|
645
645
|
- src/ruby/bin/apis/tech/pubsub/proto/pubsub_services.rb
|
646
|
-
- src/ruby/bin/math.rb
|
647
646
|
- src/ruby/bin/math_client.rb
|
647
|
+
- src/ruby/bin/math_pb.rb
|
648
648
|
- src/ruby/bin/math_server.rb
|
649
|
-
- src/ruby/bin/
|
649
|
+
- src/ruby/bin/math_services_pb.rb
|
650
650
|
- src/ruby/bin/noproto_client.rb
|
651
651
|
- src/ruby/bin/noproto_server.rb
|
652
652
|
- src/ruby/ext/grpc/extconf.rb
|
@@ -692,20 +692,16 @@ files:
|
|
692
692
|
- src/ruby/pb/README.md
|
693
693
|
- src/ruby/pb/generate_proto_ruby.sh
|
694
694
|
- src/ruby/pb/grpc/health/checker.rb
|
695
|
-
- src/ruby/pb/grpc/health/v1/
|
696
|
-
- src/ruby/pb/grpc/health/v1/
|
697
|
-
- src/ruby/pb/grpc/testing/duplicate/
|
698
|
-
- src/ruby/pb/grpc/testing/
|
699
|
-
- src/ruby/pb/grpc/testing/
|
700
|
-
- src/ruby/pb/src/proto/grpc/testing/
|
701
|
-
- src/ruby/pb/src/proto/grpc/testing/
|
702
|
-
- src/ruby/pb/src/proto/grpc/testing/
|
703
|
-
- src/ruby/pb/src/proto/grpc/testing/
|
695
|
+
- src/ruby/pb/grpc/health/v1/health_pb.rb
|
696
|
+
- src/ruby/pb/grpc/health/v1/health_services_pb.rb
|
697
|
+
- src/ruby/pb/grpc/testing/duplicate/echo_duplicate_services_pb.rb
|
698
|
+
- src/ruby/pb/grpc/testing/metrics_pb.rb
|
699
|
+
- src/ruby/pb/grpc/testing/metrics_services_pb.rb
|
700
|
+
- src/ruby/pb/src/proto/grpc/testing/empty_pb.rb
|
701
|
+
- src/ruby/pb/src/proto/grpc/testing/messages_pb.rb
|
702
|
+
- src/ruby/pb/src/proto/grpc/testing/test_pb.rb
|
703
|
+
- src/ruby/pb/src/proto/grpc/testing/test_services_pb.rb
|
704
704
|
- src/ruby/pb/test/client.rb
|
705
|
-
- src/ruby/pb/test/proto/empty.rb
|
706
|
-
- src/ruby/pb/test/proto/messages.rb
|
707
|
-
- src/ruby/pb/test/proto/test.rb
|
708
|
-
- src/ruby/pb/test/proto/test_services.rb
|
709
705
|
- src/ruby/pb/test/server.rb
|
710
706
|
- src/ruby/spec/call_credentials_spec.rb
|
711
707
|
- src/ruby/spec/call_spec.rb
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: test/proto/empty.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
add_message "grpc.testing.Empty" do
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
module Grpc
|
12
|
-
module Testing
|
13
|
-
Empty = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.Empty").msgclass
|
14
|
-
end
|
15
|
-
end
|
@@ -1,80 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: test/proto/messages.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
add_message "grpc.testing.Payload" do
|
8
|
-
optional :type, :enum, 1, "grpc.testing.PayloadType"
|
9
|
-
optional :body, :bytes, 2
|
10
|
-
end
|
11
|
-
add_message "grpc.testing.EchoStatus" do
|
12
|
-
optional :code, :int32, 1
|
13
|
-
optional :message, :string, 2
|
14
|
-
end
|
15
|
-
add_message "grpc.testing.SimpleRequest" do
|
16
|
-
optional :response_type, :enum, 1, "grpc.testing.PayloadType"
|
17
|
-
optional :response_size, :int32, 2
|
18
|
-
optional :payload, :message, 3, "grpc.testing.Payload"
|
19
|
-
optional :fill_username, :bool, 4
|
20
|
-
optional :fill_oauth_scope, :bool, 5
|
21
|
-
optional :response_compression, :enum, 6, "grpc.testing.CompressionType"
|
22
|
-
optional :response_status, :message, 7, "grpc.testing.EchoStatus"
|
23
|
-
end
|
24
|
-
add_message "grpc.testing.SimpleResponse" do
|
25
|
-
optional :payload, :message, 1, "grpc.testing.Payload"
|
26
|
-
optional :username, :string, 2
|
27
|
-
optional :oauth_scope, :string, 3
|
28
|
-
end
|
29
|
-
add_message "grpc.testing.StreamingInputCallRequest" do
|
30
|
-
optional :payload, :message, 1, "grpc.testing.Payload"
|
31
|
-
end
|
32
|
-
add_message "grpc.testing.StreamingInputCallResponse" do
|
33
|
-
optional :aggregated_payload_size, :int32, 1
|
34
|
-
end
|
35
|
-
add_message "grpc.testing.ResponseParameters" do
|
36
|
-
optional :size, :int32, 1
|
37
|
-
optional :interval_us, :int32, 2
|
38
|
-
end
|
39
|
-
add_message "grpc.testing.StreamingOutputCallRequest" do
|
40
|
-
optional :response_type, :enum, 1, "grpc.testing.PayloadType"
|
41
|
-
repeated :response_parameters, :message, 2, "grpc.testing.ResponseParameters"
|
42
|
-
optional :payload, :message, 3, "grpc.testing.Payload"
|
43
|
-
optional :response_compression, :enum, 6, "grpc.testing.CompressionType"
|
44
|
-
optional :response_status, :message, 7, "grpc.testing.EchoStatus"
|
45
|
-
end
|
46
|
-
add_message "grpc.testing.StreamingOutputCallResponse" do
|
47
|
-
optional :payload, :message, 1, "grpc.testing.Payload"
|
48
|
-
end
|
49
|
-
add_message "grpc.testing.ReconnectInfo" do
|
50
|
-
optional :passed, :bool, 1
|
51
|
-
repeated :backoff_ms, :int32, 2
|
52
|
-
end
|
53
|
-
add_enum "grpc.testing.PayloadType" do
|
54
|
-
value :COMPRESSABLE, 0
|
55
|
-
value :UNCOMPRESSABLE, 1
|
56
|
-
value :RANDOM, 2
|
57
|
-
end
|
58
|
-
add_enum "grpc.testing.CompressionType" do
|
59
|
-
value :NONE, 0
|
60
|
-
value :GZIP, 1
|
61
|
-
value :DEFLATE, 2
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
module Grpc
|
66
|
-
module Testing
|
67
|
-
Payload = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.Payload").msgclass
|
68
|
-
EchoStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.EchoStatus").msgclass
|
69
|
-
SimpleRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.SimpleRequest").msgclass
|
70
|
-
SimpleResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.SimpleResponse").msgclass
|
71
|
-
StreamingInputCallRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.StreamingInputCallRequest").msgclass
|
72
|
-
StreamingInputCallResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.StreamingInputCallResponse").msgclass
|
73
|
-
ResponseParameters = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ResponseParameters").msgclass
|
74
|
-
StreamingOutputCallRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.StreamingOutputCallRequest").msgclass
|
75
|
-
StreamingOutputCallResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.StreamingOutputCallResponse").msgclass
|
76
|
-
ReconnectInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ReconnectInfo").msgclass
|
77
|
-
PayloadType = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.PayloadType").enummodule
|
78
|
-
CompressionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.CompressionType").enummodule
|
79
|
-
end
|
80
|
-
end
|