grpc 1.64.3-arm64-darwin → 1.65.0-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0f119c8a1398768902b39d673d9f7b947ffb4a6093b66117a2e28896b53929a
4
- data.tar.gz: 3edbdaa8f3ef8112c822fa99d7c6a77e64629fb4b8eaeb0af58e6fa70d815ba8
3
+ metadata.gz: e4fecd1bb4654ca289652b2624b2260a2a11c28f5783a63a623a86322f5dad6f
4
+ data.tar.gz: c980a7eb6dac616de03306faa4f0b138207e1dc38de1112358c1bfbebc24e4da
5
5
  SHA512:
6
- metadata.gz: 6c6af363296386c6ae0c41a7321bb65d8bc01e05c6fa4f2f311b4e6aa8e12ed7500e9026104b5dd7cc53c5f68e0bf56314aa2dc4fcdc11bd6058193e8c2cac6a
7
- data.tar.gz: 8e54993a51539194445620f5f8ad102152de8ed238fdbf997a2bb6ec3a7c71417a9dccdf9d2cfc4579f1c2d23052e2aede5c2e40ac1138d3694e2aea84a98717
6
+ metadata.gz: f148e35a97cd85b3f56ab6efec6531a11d7f2b430981b4c70e0bcf433991a9ea621d13983029e635712431396962232bbff443a65c250eb22c3cd4a48f2b2c70
7
+ data.tar.gz: 72ede8d33a9a853b6b4255b33509d1e9ae66b0a6baa33863bfbf68e4c0be0876ef5f13d3ecd317647bc6cd8045cbb091ca5903d021dff36f2e2ca539fc3d766a
@@ -8,28 +8,7 @@ require 'google/protobuf'
8
8
  descriptor_data = "\n\nmath.proto\x12\x04math\",\n\x07\x44ivArgs\x12\x10\n\x08\x64ividend\x18\x01 \x01(\x03\x12\x0f\n\x07\x64ivisor\x18\x02 \x01(\x03\"/\n\x08\x44ivReply\x12\x10\n\x08quotient\x18\x01 \x01(\x03\x12\x11\n\tremainder\x18\x02 \x01(\x03\"\x18\n\x07\x46ibArgs\x12\r\n\x05limit\x18\x01 \x01(\x03\"\x12\n\x03Num\x12\x0b\n\x03num\x18\x01 \x01(\x03\"\x19\n\x08\x46ibReply\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x32\xa4\x01\n\x04Math\x12&\n\x03\x44iv\x12\r.math.DivArgs\x1a\x0e.math.DivReply\"\x00\x12.\n\x07\x44ivMany\x12\r.math.DivArgs\x1a\x0e.math.DivReply\"\x00(\x01\x30\x01\x12#\n\x03\x46ib\x12\r.math.FibArgs\x1a\t.math.Num\"\x00\x30\x01\x12\x1f\n\x03Sum\x12\t.math.Num\x1a\t.math.Num\"\x00(\x01\x62\x06proto3"
9
9
 
10
10
  pool = Google::Protobuf::DescriptorPool.generated_pool
11
-
12
- begin
13
- pool.add_serialized_file(descriptor_data)
14
- rescue TypeError
15
- # Compatibility code: will be removed in the next major version.
16
- require 'google/protobuf/descriptor_pb'
17
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
- parsed.clear_dependency
19
- serialized = parsed.class.encode(parsed)
20
- file = pool.add_serialized_file(serialized)
21
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
- imports = [
23
- ]
24
- imports.each do |type_name, expected_filename|
25
- import_file = pool.lookup(type_name).file_descriptor
26
- if import_file.name != expected_filename
27
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
- end
29
- end
30
- warn "Each proto file must use a consistent fully-qualified name."
31
- warn "This will become an error in the next major version."
32
- end
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Math
35
14
  DivArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("math.DivArgs").msgclass
@@ -808,6 +808,12 @@ struct call_run_batch_args {
808
808
  run_batch_stack* st;
809
809
  };
810
810
 
811
+ static void cancel_call_unblock_func(void* arg) {
812
+ gpr_log(GPR_INFO, "GRPC_RUBY: cancel_call_unblock_func");
813
+ grpc_call* call = (grpc_call*)arg;
814
+ grpc_call_cancel(call, NULL);
815
+ }
816
+
811
817
  static VALUE grpc_rb_call_run_batch_try(VALUE value_args) {
812
818
  grpc_rb_fork_unsafe_begin();
813
819
  struct call_run_batch_args* args = (struct call_run_batch_args*)value_args;
@@ -830,7 +836,8 @@ static VALUE grpc_rb_call_run_batch_try(VALUE value_args) {
830
836
  grpc_call_error_detail_of(err), err);
831
837
  }
832
838
  ev = rb_completion_queue_pluck(args->call->queue, tag,
833
- gpr_inf_future(GPR_CLOCK_REALTIME), NULL);
839
+ gpr_inf_future(GPR_CLOCK_REALTIME),
840
+ cancel_call_unblock_func, args->call->wrapped);
834
841
  if (!ev.success) {
835
842
  rb_raise(grpc_rb_eCallError, "call#run_batch failed somehow");
836
843
  }
@@ -35,23 +35,15 @@ typedef struct next_call_stack {
35
35
  grpc_event event;
36
36
  gpr_timespec timeout;
37
37
  void* tag;
38
- volatile int interrupted;
38
+ void (*unblock_func)(void*);
39
+ void* unblock_func_arg;
39
40
  } next_call_stack;
40
41
 
41
42
  /* Calls grpc_completion_queue_pluck without holding the ruby GIL */
42
43
  static void* grpc_rb_completion_queue_pluck_no_gil(void* param) {
43
44
  next_call_stack* const next_call = (next_call_stack*)param;
44
- gpr_timespec increment = gpr_time_from_millis(20, GPR_TIMESPAN);
45
- gpr_timespec deadline;
46
- do {
47
- deadline = gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), increment);
48
- next_call->event = grpc_completion_queue_pluck(
49
- next_call->cq, next_call->tag, deadline, NULL);
50
- if (next_call->event.type != GRPC_QUEUE_TIMEOUT ||
51
- gpr_time_cmp(deadline, next_call->timeout) > 0) {
52
- break;
53
- }
54
- } while (!next_call->interrupted);
45
+ next_call->event = grpc_completion_queue_pluck(next_call->cq, next_call->tag,
46
+ next_call->timeout, NULL);
55
47
  return NULL;
56
48
  }
57
49
 
@@ -65,37 +57,28 @@ void grpc_rb_completion_queue_destroy(grpc_completion_queue* cq) {
65
57
  grpc_completion_queue_destroy(cq);
66
58
  }
67
59
 
68
- static void unblock_func(void* param) {
60
+ static void outer_unblock_func(void* param) {
69
61
  next_call_stack* const next_call = (next_call_stack*)param;
70
- next_call->interrupted = 1;
62
+ if (next_call->unblock_func == NULL) return;
63
+ next_call->unblock_func(next_call->unblock_func_arg);
71
64
  }
72
65
 
73
66
  /* Does the same thing as grpc_completion_queue_pluck, while properly releasing
74
67
  the GVL and handling interrupts */
75
68
  grpc_event rb_completion_queue_pluck(grpc_completion_queue* queue, void* tag,
76
- gpr_timespec deadline, void* reserved) {
69
+ gpr_timespec deadline,
70
+ void (*unblock_func)(void* param),
71
+ void* unblock_func_arg) {
77
72
  next_call_stack next_call;
78
73
  MEMZERO(&next_call, next_call_stack, 1);
79
74
  next_call.cq = queue;
80
75
  next_call.timeout = deadline;
81
76
  next_call.tag = tag;
82
77
  next_call.event.type = GRPC_QUEUE_TIMEOUT;
83
- (void)reserved;
84
- /* Loop until we finish a pluck without an interruption. The internal
85
- pluck function runs either until it is interrupted or it gets an
86
- event, or time runs out.
87
-
88
- The basic reason we need this relatively complicated construction is that
89
- we need to re-acquire the GVL when an interrupt comes in, so that the ruby
90
- interpreter can do what it needs to do with the interrupt. But we also need
91
- to get back to plucking when the interrupt has been handled. */
92
- do {
93
- next_call.interrupted = 0;
94
- rb_thread_call_without_gvl(grpc_rb_completion_queue_pluck_no_gil,
95
- (void*)&next_call, unblock_func,
96
- (void*)&next_call);
97
- /* If an interrupt prevented pluck from returning useful information, then
98
- any plucks that did complete must have timed out */
99
- } while (next_call.interrupted && next_call.event.type == GRPC_QUEUE_TIMEOUT);
78
+ next_call.unblock_func = unblock_func;
79
+ next_call.unblock_func_arg = unblock_func_arg;
80
+ rb_thread_call_without_gvl(grpc_rb_completion_queue_pluck_no_gil,
81
+ (void*)&next_call, outer_unblock_func,
82
+ (void*)&next_call);
100
83
  return next_call.event;
101
84
  }
@@ -29,8 +29,14 @@ void grpc_rb_completion_queue_destroy(grpc_completion_queue* cq);
29
29
  * Makes the implementation of CompletionQueue#pluck available in other files
30
30
  *
31
31
  * This avoids having code that holds the GIL repeated at multiple sites.
32
+ *
33
+ * unblock_func is invoked with the provided argument to unblock the CQ
34
+ * operation in the event of process termination (e.g. a signal), but
35
+ * unblock_func may be NULL in which case it's unused.
32
36
  */
33
37
  grpc_event rb_completion_queue_pluck(grpc_completion_queue* queue, void* tag,
34
- gpr_timespec deadline, void* reserved);
38
+ gpr_timespec deadline,
39
+ void (*unblock_func)(void* param),
40
+ void* unblock_func_arg);
35
41
 
36
42
  #endif /* GRPC_RB_COMPLETION_QUEUE_H_ */
@@ -747,13 +747,13 @@ extern gpr_should_log_type gpr_should_log_import;
747
747
  typedef void(*gpr_log_message_type)(const char* file, int line, gpr_log_severity severity, const char* message);
748
748
  extern gpr_log_message_type gpr_log_message_import;
749
749
  #define gpr_log_message gpr_log_message_import
750
- typedef void(*gpr_set_log_verbosity_type)(gpr_log_severity min_severity_to_print);
750
+ typedef void(*gpr_set_log_verbosity_type)(gpr_log_severity deprecated_setting);
751
751
  extern gpr_set_log_verbosity_type gpr_set_log_verbosity_import;
752
752
  #define gpr_set_log_verbosity gpr_set_log_verbosity_import
753
753
  typedef void(*gpr_log_verbosity_init_type)(void);
754
754
  extern gpr_log_verbosity_init_type gpr_log_verbosity_init_import;
755
755
  #define gpr_log_verbosity_init gpr_log_verbosity_init_import
756
- typedef void(*gpr_set_log_function_type)(gpr_log_func func);
756
+ typedef void(*gpr_set_log_function_type)(gpr_log_func deprecated_setting);
757
757
  extern gpr_set_log_function_type gpr_set_log_function_import;
758
758
  #define gpr_set_log_function gpr_set_log_function_import
759
759
  typedef void(*gpr_assertion_failed_type)(const char* filename, int line, const char* message);
@@ -49,29 +49,28 @@ typedef struct grpc_rb_server {
49
49
  /* The actual server */
50
50
  grpc_server* wrapped;
51
51
  grpc_completion_queue* queue;
52
- int shutdown_and_notify_done;
53
52
  int destroy_done;
54
53
  } grpc_rb_server;
55
54
 
56
- static void grpc_rb_server_maybe_shutdown_and_notify(grpc_rb_server* server,
57
- gpr_timespec deadline) {
55
+ static void grpc_rb_server_shutdown_and_notify_internal(grpc_rb_server* server,
56
+ gpr_timespec deadline) {
58
57
  grpc_event ev;
59
58
  void* tag = &ev;
60
- if (!server->shutdown_and_notify_done) {
61
- server->shutdown_and_notify_done = 1;
62
- if (server->wrapped != NULL) {
63
- grpc_server_shutdown_and_notify(server->wrapped, server->queue, tag);
64
- ev = rb_completion_queue_pluck(server->queue, tag, deadline, NULL);
65
- if (ev.type == GRPC_QUEUE_TIMEOUT) {
66
- grpc_server_cancel_all_calls(server->wrapped);
67
- ev = rb_completion_queue_pluck(
68
- server->queue, tag, gpr_inf_future(GPR_CLOCK_REALTIME), NULL);
69
- }
70
- if (ev.type != GRPC_OP_COMPLETE) {
71
- gpr_log(GPR_INFO,
72
- "GRPC_RUBY: bad grpc_server_shutdown_and_notify result:%d",
73
- ev.type);
74
- }
59
+ if (server->wrapped != NULL) {
60
+ grpc_server_shutdown_and_notify(server->wrapped, server->queue, tag);
61
+ // Following pluck calls will release the GIL and block but cannot
62
+ // be interrupted. They should terminate quickly enough though b/c
63
+ // we will cancel all server calls after the deadline.
64
+ ev = rb_completion_queue_pluck(server->queue, tag, deadline, NULL, NULL);
65
+ if (ev.type == GRPC_QUEUE_TIMEOUT) {
66
+ grpc_server_cancel_all_calls(server->wrapped);
67
+ ev = rb_completion_queue_pluck(
68
+ server->queue, tag, gpr_inf_future(GPR_CLOCK_REALTIME), NULL, NULL);
69
+ }
70
+ if (ev.type != GRPC_OP_COMPLETE) {
71
+ gpr_log(GPR_INFO,
72
+ "GRPC_RUBY: bad grpc_server_shutdown_and_notify result:%d",
73
+ ev.type);
75
74
  }
76
75
  }
77
76
  }
@@ -100,7 +99,7 @@ static void grpc_rb_server_free_internal(void* p) {
100
99
  deadline = gpr_time_add(gpr_now(GPR_CLOCK_REALTIME),
101
100
  gpr_time_from_seconds(2, GPR_TIMESPAN));
102
101
 
103
- grpc_rb_server_maybe_shutdown_and_notify(svr, deadline);
102
+ grpc_rb_server_shutdown_and_notify_internal(svr, deadline);
104
103
  grpc_rb_server_maybe_destroy(svr);
105
104
 
106
105
  xfree(p);
@@ -132,7 +131,6 @@ static VALUE grpc_rb_server_alloc(VALUE cls) {
132
131
  grpc_rb_server* wrapper = ALLOC(grpc_rb_server);
133
132
  wrapper->wrapped = NULL;
134
133
  wrapper->destroy_done = 0;
135
- wrapper->shutdown_and_notify_done = 0;
136
134
  return TypedData_Wrap_Struct(cls, &grpc_rb_server_data_type, wrapper);
137
135
  }
138
136
 
@@ -192,6 +190,24 @@ struct server_request_call_args {
192
190
  request_call_stack st;
193
191
  };
194
192
 
193
+ static void shutdown_server_unblock_func(void* arg) {
194
+ grpc_rb_server* server = (grpc_rb_server*)arg;
195
+ gpr_log(GPR_INFO, "GRPC_RUBY: shutdown_server_unblock_func");
196
+ GPR_ASSERT(server->wrapped != NULL);
197
+ grpc_event event;
198
+ void* tag = &event;
199
+ grpc_server_shutdown_and_notify(server->wrapped, server->queue, tag);
200
+ grpc_server_cancel_all_calls(server->wrapped);
201
+ // Following call is blocking, but should finish quickly since we've
202
+ // cancelled all calls.
203
+ event = grpc_completion_queue_pluck(server->queue, tag,
204
+ gpr_inf_future(GPR_CLOCK_REALTIME), NULL);
205
+ gpr_log(GPR_INFO,
206
+ "GRPC_RUBY: shutdown_server_unblock_func pluck event.type: %d "
207
+ "event.success: %d",
208
+ event.type, event.success);
209
+ }
210
+
195
211
  static VALUE grpc_rb_server_request_call_try(VALUE value_args) {
196
212
  grpc_rb_fork_unsafe_begin();
197
213
  struct server_request_call_args* args =
@@ -215,7 +231,8 @@ static VALUE grpc_rb_server_request_call_try(VALUE value_args) {
215
231
  }
216
232
 
217
233
  grpc_event ev = rb_completion_queue_pluck(
218
- args->server->queue, tag, gpr_inf_future(GPR_CLOCK_REALTIME), NULL);
234
+ args->server->queue, tag, gpr_inf_future(GPR_CLOCK_REALTIME),
235
+ shutdown_server_unblock_func, args->server);
219
236
  if (!ev.success) {
220
237
  rb_raise(grpc_rb_eCallError, "request_call completion failed");
221
238
  }
@@ -288,7 +305,7 @@ static VALUE grpc_rb_server_shutdown_and_notify(VALUE self, VALUE timeout) {
288
305
  deadline = grpc_rb_time_timeval(timeout, /* absolute time*/ 0);
289
306
  }
290
307
 
291
- grpc_rb_server_maybe_shutdown_and_notify(s, deadline);
308
+ grpc_rb_server_shutdown_and_notify_internal(s, deadline);
292
309
 
293
310
  return Qnil;
294
311
  }
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -14,5 +14,5 @@
14
14
 
15
15
  # GRPC contains the General RPC module.
16
16
  module GRPC
17
- VERSION = '1.64.3'
17
+ VERSION = '1.65.0'
18
18
  end
@@ -8,28 +8,7 @@ require 'google/protobuf'
8
8
  descriptor_data = "\n\x1bgrpc/health/v1/health.proto\x12\x0egrpc.health.v1\"%\n\x12HealthCheckRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\"\xa9\x01\n\x13HealthCheckResponse\x12\x41\n\x06status\x18\x01 \x01(\x0e\x32\x31.grpc.health.v1.HealthCheckResponse.ServingStatus\"O\n\rServingStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07SERVING\x10\x01\x12\x0f\n\x0bNOT_SERVING\x10\x02\x12\x13\n\x0fSERVICE_UNKNOWN\x10\x03\x32\xae\x01\n\x06Health\x12P\n\x05\x43heck\x12\".grpc.health.v1.HealthCheckRequest\x1a#.grpc.health.v1.HealthCheckResponse\x12R\n\x05Watch\x12\".grpc.health.v1.HealthCheckRequest\x1a#.grpc.health.v1.HealthCheckResponse0\x01\x42\x61\n\x11io.grpc.health.v1B\x0bHealthProtoP\x01Z,google.golang.org/grpc/health/grpc_health_v1\xaa\x02\x0eGrpc.Health.V1b\x06proto3"
9
9
 
10
10
  pool = Google::Protobuf::DescriptorPool.generated_pool
11
-
12
- begin
13
- pool.add_serialized_file(descriptor_data)
14
- rescue TypeError
15
- # Compatibility code: will be removed in the next major version.
16
- require 'google/protobuf/descriptor_pb'
17
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
- parsed.clear_dependency
19
- serialized = parsed.class.encode(parsed)
20
- file = pool.add_serialized_file(serialized)
21
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
- imports = [
23
- ]
24
- imports.each do |type_name, expected_filename|
25
- import_file = pool.lookup(type_name).file_descriptor
26
- if import_file.name != expected_filename
27
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
- end
29
- end
30
- warn "Each proto file must use a consistent fully-qualified name."
31
- warn "This will become an error in the next major version."
32
- end
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Grpc
35
14
  module Health
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: src/proto/grpc/testing/duplicate/echo_duplicate.proto for package 'grpc.testing.duplicate'
2
+ # Source: grpc/testing/duplicate/echo_duplicate.proto for package 'grpc.testing.duplicate'
3
3
  # Original file comments:
4
4
  # Copyright 2015 gRPC authors.
5
5
  #
@@ -19,7 +19,7 @@
19
19
  #
20
20
 
21
21
  require 'grpc'
22
- require 'src/proto/grpc/testing/duplicate/echo_duplicate_pb'
22
+ require 'grpc/testing/duplicate/echo_duplicate_pb'
23
23
 
24
24
  module Grpc
25
25
  module Testing
@@ -27,14 +27,14 @@ module Grpc
27
27
  module EchoTestService
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
34
34
  self.service_name = 'grpc.testing.duplicate.EchoTestService'
35
35
 
36
- rpc :Echo, Grpc::Testing::EchoRequest, Grpc::Testing::EchoResponse
37
- rpc :ResponseStream, Grpc::Testing::EchoRequest, stream(Grpc::Testing::EchoResponse)
36
+ rpc :Echo, ::Grpc::Testing::EchoRequest, ::Grpc::Testing::EchoResponse
37
+ rpc :ResponseStream, ::Grpc::Testing::EchoRequest, stream(::Grpc::Testing::EchoResponse)
38
38
  end
39
39
 
40
40
  Stub = Service.rpc_stub_class
@@ -1,28 +1,19 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: src/proto/grpc/testing/metrics.proto
3
+ # source: grpc/testing/metrics.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "grpc.testing.GaugeResponse" do
8
- optional :name, :string, 1
9
- oneof :value do
10
- optional :long_value, :int64, 2
11
- optional :double_value, :double, 3
12
- optional :string_value, :string, 4
13
- end
14
- end
15
- add_message "grpc.testing.GaugeRequest" do
16
- optional :name, :string, 1
17
- end
18
- add_message "grpc.testing.EmptyMessage" do
19
- end
20
- end
7
+
8
+ descriptor_data = "\n\x1agrpc/testing/metrics.proto\x12\x0cgrpc.testing\"l\n\rGaugeResponse\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\nlong_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x42\x07\n\x05value\"\x1c\n\x0cGaugeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x0e\n\x0c\x45mptyMessage2\xa0\x01\n\x0eMetricsService\x12I\n\x0cGetAllGauges\x12\x1a.grpc.testing.EmptyMessage\x1a\x1b.grpc.testing.GaugeResponse0\x01\x12\x43\n\x08GetGauge\x12\x1a.grpc.testing.GaugeRequest\x1a\x1b.grpc.testing.GaugeResponseb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
21
12
 
22
13
  module Grpc
23
14
  module Testing
24
- GaugeResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.GaugeResponse").msgclass
25
- GaugeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.GaugeRequest").msgclass
26
- EmptyMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.EmptyMessage").msgclass
15
+ GaugeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.GaugeResponse").msgclass
16
+ GaugeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.GaugeRequest").msgclass
17
+ EmptyMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.EmptyMessage").msgclass
27
18
  end
28
19
  end
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: src/proto/grpc/testing/metrics.proto for package 'grpc.testing'
2
+ # Source: grpc/testing/metrics.proto for package 'grpc.testing'
3
3
  # Original file comments:
4
4
  # Copyright 2015-2016 gRPC authors.
5
5
  #
@@ -23,14 +23,14 @@
23
23
  # service.
24
24
 
25
25
  require 'grpc'
26
- require 'src/proto/grpc/testing/metrics_pb'
26
+ require 'grpc/testing/metrics_pb'
27
27
 
28
28
  module Grpc
29
29
  module Testing
30
30
  module MetricsService
31
31
  class Service
32
32
 
33
- include GRPC::GenericService
33
+ include ::GRPC::GenericService
34
34
 
35
35
  self.marshal_class_method = :encode
36
36
  self.unmarshal_class_method = :decode
@@ -38,9 +38,9 @@ module Grpc
38
38
 
39
39
  # Returns the values of all the gauges that are currently being maintained by
40
40
  # the service
41
- rpc :GetAllGauges, EmptyMessage, stream(GaugeResponse)
41
+ rpc :GetAllGauges, ::Grpc::Testing::EmptyMessage, stream(::Grpc::Testing::GaugeResponse)
42
42
  # Returns the value of one gauge
43
- rpc :GetGauge, GaugeRequest, GaugeResponse
43
+ rpc :GetGauge, ::Grpc::Testing::GaugeRequest, ::Grpc::Testing::GaugeResponse
44
44
  end
45
45
 
46
46
  Stub = Service.rpc_stub_class
@@ -8,28 +8,7 @@ require 'google/protobuf'
8
8
  descriptor_data = "\n\"src/proto/grpc/testing/empty.proto\x12\x0cgrpc.testing\"\x07\n\x05\x45mptyb\x06proto3"
9
9
 
10
10
  pool = Google::Protobuf::DescriptorPool.generated_pool
11
-
12
- begin
13
- pool.add_serialized_file(descriptor_data)
14
- rescue TypeError
15
- # Compatibility code: will be removed in the next major version.
16
- require 'google/protobuf/descriptor_pb'
17
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
- parsed.clear_dependency
19
- serialized = parsed.class.encode(parsed)
20
- file = pool.add_serialized_file(serialized)
21
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
- imports = [
23
- ]
24
- imports.each do |type_name, expected_filename|
25
- import_file = pool.lookup(type_name).file_descriptor
26
- if import_file.name != expected_filename
27
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
- end
29
- end
30
- warn "Each proto file must use a consistent fully-qualified name."
31
- warn "This will become an error in the next major version."
32
- end
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Grpc
35
14
  module Testing
@@ -8,28 +8,7 @@ require 'google/protobuf'
8
8
  descriptor_data = "\n%src/proto/grpc/testing/messages.proto\x12\x0cgrpc.testing\"\x1a\n\tBoolValue\x12\r\n\x05value\x18\x01 \x01(\x08\"@\n\x07Payload\x12\'\n\x04type\x18\x01 \x01(\x0e\x32\x19.grpc.testing.PayloadType\x12\x0c\n\x04\x62ody\x18\x02 \x01(\x0c\"+\n\nEchoStatus\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xc3\x03\n\rSimpleRequest\x12\x30\n\rresponse_type\x18\x01 \x01(\x0e\x32\x19.grpc.testing.PayloadType\x12\x15\n\rresponse_size\x18\x02 \x01(\x05\x12&\n\x07payload\x18\x03 \x01(\x0b\x32\x15.grpc.testing.Payload\x12\x15\n\rfill_username\x18\x04 \x01(\x08\x12\x18\n\x10\x66ill_oauth_scope\x18\x05 \x01(\x08\x12\x34\n\x13response_compressed\x18\x06 \x01(\x0b\x32\x17.grpc.testing.BoolValue\x12\x31\n\x0fresponse_status\x18\x07 \x01(\x0b\x32\x18.grpc.testing.EchoStatus\x12\x32\n\x11\x65xpect_compressed\x18\x08 \x01(\x0b\x32\x17.grpc.testing.BoolValue\x12\x16\n\x0e\x66ill_server_id\x18\t \x01(\x08\x12\x1e\n\x16\x66ill_grpclb_route_type\x18\n \x01(\x08\x12;\n\x15orca_per_query_report\x18\x0b \x01(\x0b\x32\x1c.grpc.testing.TestOrcaReport\"\xbe\x01\n\x0eSimpleResponse\x12&\n\x07payload\x18\x01 \x01(\x0b\x32\x15.grpc.testing.Payload\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x13\n\x0boauth_scope\x18\x03 \x01(\t\x12\x11\n\tserver_id\x18\x04 \x01(\t\x12\x38\n\x11grpclb_route_type\x18\x05 \x01(\x0e\x32\x1d.grpc.testing.GrpclbRouteType\x12\x10\n\x08hostname\x18\x06 \x01(\t\"w\n\x19StreamingInputCallRequest\x12&\n\x07payload\x18\x01 \x01(\x0b\x32\x15.grpc.testing.Payload\x12\x32\n\x11\x65xpect_compressed\x18\x02 \x01(\x0b\x32\x17.grpc.testing.BoolValue\"=\n\x1aStreamingInputCallResponse\x12\x1f\n\x17\x61ggregated_payload_size\x18\x01 \x01(\x05\"d\n\x12ResponseParameters\x12\x0c\n\x04size\x18\x01 \x01(\x05\x12\x13\n\x0binterval_us\x18\x02 \x01(\x05\x12+\n\ncompressed\x18\x03 \x01(\x0b\x32\x17.grpc.testing.BoolValue\"\x9f\x02\n\x1aStreamingOutputCallRequest\x12\x30\n\rresponse_type\x18\x01 \x01(\x0e\x32\x19.grpc.testing.PayloadType\x12=\n\x13response_parameters\x18\x02 \x03(\x0b\x32 .grpc.testing.ResponseParameters\x12&\n\x07payload\x18\x03 \x01(\x0b\x32\x15.grpc.testing.Payload\x12\x31\n\x0fresponse_status\x18\x07 \x01(\x0b\x32\x18.grpc.testing.EchoStatus\x12\x35\n\x0forca_oob_report\x18\x08 \x01(\x0b\x32\x1c.grpc.testing.TestOrcaReport\"E\n\x1bStreamingOutputCallResponse\x12&\n\x07payload\x18\x01 \x01(\x0b\x32\x15.grpc.testing.Payload\"3\n\x0fReconnectParams\x12 \n\x18max_reconnect_backoff_ms\x18\x01 \x01(\x05\"3\n\rReconnectInfo\x12\x0e\n\x06passed\x18\x01 \x01(\x08\x12\x12\n\nbackoff_ms\x18\x02 \x03(\x05\"X\n\x18LoadBalancerStatsRequest\x12\x10\n\x08num_rpcs\x18\x01 \x01(\x05\x12\x13\n\x0btimeout_sec\x18\x02 \x01(\x05\x12\x15\n\rmetadata_keys\x18\x03 \x03(\t\"\xb2\x08\n\x19LoadBalancerStatsResponse\x12M\n\x0crpcs_by_peer\x18\x01 \x03(\x0b\x32\x37.grpc.testing.LoadBalancerStatsResponse.RpcsByPeerEntry\x12\x14\n\x0cnum_failures\x18\x02 \x01(\x05\x12Q\n\x0erpcs_by_method\x18\x03 \x03(\x0b\x32\x39.grpc.testing.LoadBalancerStatsResponse.RpcsByMethodEntry\x12W\n\x11metadatas_by_peer\x18\x04 \x03(\x0b\x32<.grpc.testing.LoadBalancerStatsResponse.MetadatasByPeerEntry\x1ao\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x42\n\x04type\x18\x03 \x01(\x0e\x32\x34.grpc.testing.LoadBalancerStatsResponse.MetadataType\x1aV\n\x0bRpcMetadata\x12G\n\x08metadata\x18\x01 \x03(\x0b\x32\x35.grpc.testing.LoadBalancerStatsResponse.MetadataEntry\x1a[\n\x0eMetadataByPeer\x12I\n\x0crpc_metadata\x18\x01 \x03(\x0b\x32\x33.grpc.testing.LoadBalancerStatsResponse.RpcMetadata\x1a\x99\x01\n\nRpcsByPeer\x12X\n\x0crpcs_by_peer\x18\x01 \x03(\x0b\x32\x42.grpc.testing.LoadBalancerStatsResponse.RpcsByPeer.RpcsByPeerEntry\x1a\x31\n\x0fRpcsByPeerEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x1a\x31\n\x0fRpcsByPeerEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x1ag\n\x11RpcsByMethodEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.grpc.testing.LoadBalancerStatsResponse.RpcsByPeer:\x02\x38\x01\x1an\n\x14MetadatasByPeerEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.grpc.testing.LoadBalancerStatsResponse.MetadataByPeer:\x02\x38\x01\"6\n\x0cMetadataType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07INITIAL\x10\x01\x12\x0c\n\x08TRAILING\x10\x02\"%\n#LoadBalancerAccumulatedStatsRequest\"\xd8\x07\n$LoadBalancerAccumulatedStatsResponse\x12v\n\x1anum_rpcs_started_by_method\x18\x01 \x03(\x0b\x32N.grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsStartedByMethodEntryB\x02\x18\x01\x12z\n\x1cnum_rpcs_succeeded_by_method\x18\x02 \x03(\x0b\x32P.grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsSucceededByMethodEntryB\x02\x18\x01\x12t\n\x19num_rpcs_failed_by_method\x18\x03 \x03(\x0b\x32M.grpc.testing.LoadBalancerAccumulatedStatsResponse.NumRpcsFailedByMethodEntryB\x02\x18\x01\x12`\n\x10stats_per_method\x18\x04 \x03(\x0b\x32\x46.grpc.testing.LoadBalancerAccumulatedStatsResponse.StatsPerMethodEntry\x1a=\n\x1bNumRpcsStartedByMethodEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x1a?\n\x1dNumRpcsSucceededByMethodEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x1a<\n\x1aNumRpcsFailedByMethodEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x1a\xae\x01\n\x0bMethodStats\x12\x14\n\x0crpcs_started\x18\x01 \x01(\x05\x12Z\n\x06result\x18\x02 \x03(\x0b\x32J.grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats.ResultEntry\x1a-\n\x0bResultEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x1au\n\x13StatsPerMethodEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12M\n\x05value\x18\x02 \x01(\x0b\x32>.grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats:\x02\x38\x01\"\xba\x02\n\x16\x43lientConfigureRequest\x12;\n\x05types\x18\x01 \x03(\x0e\x32,.grpc.testing.ClientConfigureRequest.RpcType\x12?\n\x08metadata\x18\x02 \x03(\x0b\x32-.grpc.testing.ClientConfigureRequest.Metadata\x12\x13\n\x0btimeout_sec\x18\x03 \x01(\x05\x1a\x62\n\x08Metadata\x12:\n\x04type\x18\x01 \x01(\x0e\x32,.grpc.testing.ClientConfigureRequest.RpcType\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\")\n\x07RpcType\x12\x0e\n\nEMPTY_CALL\x10\x00\x12\x0e\n\nUNARY_CALL\x10\x01\"\x19\n\x17\x43lientConfigureResponse\"\x19\n\nMemorySize\x12\x0b\n\x03rss\x18\x01 \x01(\x03\"\xb6\x02\n\x0eTestOrcaReport\x12\x17\n\x0f\x63pu_utilization\x18\x01 \x01(\x01\x12\x1a\n\x12memory_utilization\x18\x02 \x01(\x01\x12\x43\n\x0crequest_cost\x18\x03 \x03(\x0b\x32-.grpc.testing.TestOrcaReport.RequestCostEntry\x12\x42\n\x0butilization\x18\x04 \x03(\x0b\x32-.grpc.testing.TestOrcaReport.UtilizationEntry\x1a\x32\n\x10RequestCostEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01:\x02\x38\x01\x1a\x32\n\x10UtilizationEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01:\x02\x38\x01\"V\n\x16SetReturnStatusRequest\x12\x1b\n\x13grpc_code_to_return\x18\x01 \x01(\x05\x12\x1f\n\x17grpc_status_description\x18\x02 \x01(\t\"\xe7\x01\n\x0bHookRequest\x12=\n\x07\x63ommand\x18\x01 \x01(\x0e\x32,.grpc.testing.HookRequest.HookRequestCommand\x12\x1b\n\x13grpc_code_to_return\x18\x02 \x01(\x05\x12\x1f\n\x17grpc_status_description\x18\x03 \x01(\t\x12\x13\n\x0bserver_port\x18\x04 \x01(\x05\"F\n\x12HookRequestCommand\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\t\n\x05START\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\n\n\x06RETURN\x10\x03\"\x0e\n\x0cHookResponse*\x1f\n\x0bPayloadType\x12\x10\n\x0c\x43OMPRESSABLE\x10\x00*o\n\x0fGrpclbRouteType\x12\x1d\n\x19GRPCLB_ROUTE_TYPE_UNKNOWN\x10\x00\x12\x1e\n\x1aGRPCLB_ROUTE_TYPE_FALLBACK\x10\x01\x12\x1d\n\x19GRPCLB_ROUTE_TYPE_BACKEND\x10\x02\x42\x1d\n\x1bio.grpc.testing.integrationb\x06proto3"
9
9
 
10
10
  pool = Google::Protobuf::DescriptorPool.generated_pool
11
-
12
- begin
13
- pool.add_serialized_file(descriptor_data)
14
- rescue TypeError
15
- # Compatibility code: will be removed in the next major version.
16
- require 'google/protobuf/descriptor_pb'
17
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
- parsed.clear_dependency
19
- serialized = parsed.class.encode(parsed)
20
- file = pool.add_serialized_file(serialized)
21
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
- imports = [
23
- ]
24
- imports.each do |type_name, expected_filename|
25
- import_file = pool.lookup(type_name).file_descriptor
26
- if import_file.name != expected_filename
27
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
- end
29
- end
30
- warn "Each proto file must use a consistent fully-qualified name."
31
- warn "This will become an error in the next major version."
32
- end
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Grpc
35
14
  module Testing
@@ -11,28 +11,7 @@ require 'src/proto/grpc/testing/messages_pb'
11
11
  descriptor_data = "\n!src/proto/grpc/testing/test.proto\x12\x0cgrpc.testing\x1a\"src/proto/grpc/testing/empty.proto\x1a%src/proto/grpc/testing/messages.proto2\xcb\x05\n\x0bTestService\x12\x35\n\tEmptyCall\x12\x13.grpc.testing.Empty\x1a\x13.grpc.testing.Empty\x12\x46\n\tUnaryCall\x12\x1b.grpc.testing.SimpleRequest\x1a\x1c.grpc.testing.SimpleResponse\x12O\n\x12\x43\x61\x63heableUnaryCall\x12\x1b.grpc.testing.SimpleRequest\x1a\x1c.grpc.testing.SimpleResponse\x12l\n\x13StreamingOutputCall\x12(.grpc.testing.StreamingOutputCallRequest\x1a).grpc.testing.StreamingOutputCallResponse0\x01\x12i\n\x12StreamingInputCall\x12\'.grpc.testing.StreamingInputCallRequest\x1a(.grpc.testing.StreamingInputCallResponse(\x01\x12i\n\x0e\x46ullDuplexCall\x12(.grpc.testing.StreamingOutputCallRequest\x1a).grpc.testing.StreamingOutputCallResponse(\x01\x30\x01\x12i\n\x0eHalfDuplexCall\x12(.grpc.testing.StreamingOutputCallRequest\x1a).grpc.testing.StreamingOutputCallResponse(\x01\x30\x01\x12=\n\x11UnimplementedCall\x12\x13.grpc.testing.Empty\x1a\x13.grpc.testing.Empty2U\n\x14UnimplementedService\x12=\n\x11UnimplementedCall\x12\x13.grpc.testing.Empty\x1a\x13.grpc.testing.Empty2\x89\x01\n\x10ReconnectService\x12;\n\x05Start\x12\x1d.grpc.testing.ReconnectParams\x1a\x13.grpc.testing.Empty\x12\x38\n\x04Stop\x12\x13.grpc.testing.Empty\x1a\x1b.grpc.testing.ReconnectInfo2\x86\x02\n\x18LoadBalancerStatsService\x12\x63\n\x0eGetClientStats\x12&.grpc.testing.LoadBalancerStatsRequest\x1a\'.grpc.testing.LoadBalancerStatsResponse\"\x00\x12\x84\x01\n\x19GetClientAccumulatedStats\x12\x31.grpc.testing.LoadBalancerAccumulatedStatsRequest\x1a\x32.grpc.testing.LoadBalancerAccumulatedStatsResponse\"\x00\x32\xcc\x01\n\x0bHookService\x12\x30\n\x04Hook\x12\x13.grpc.testing.Empty\x1a\x13.grpc.testing.Empty\x12L\n\x0fSetReturnStatus\x12$.grpc.testing.SetReturnStatusRequest\x1a\x13.grpc.testing.Empty\x12=\n\x11\x43learReturnStatus\x12\x13.grpc.testing.Empty\x1a\x13.grpc.testing.Empty2\xd5\x01\n\x16XdsUpdateHealthService\x12\x36\n\nSetServing\x12\x13.grpc.testing.Empty\x1a\x13.grpc.testing.Empty\x12\x39\n\rSetNotServing\x12\x13.grpc.testing.Empty\x1a\x13.grpc.testing.Empty\x12H\n\x0fSendHookRequest\x12\x19.grpc.testing.HookRequest\x1a\x1a.grpc.testing.HookResponse2{\n\x1fXdsUpdateClientConfigureService\x12X\n\tConfigure\x12$.grpc.testing.ClientConfigureRequest\x1a%.grpc.testing.ClientConfigureResponseB\x1d\n\x1bio.grpc.testing.integrationb\x06proto3"
12
12
 
13
13
  pool = Google::Protobuf::DescriptorPool.generated_pool
14
-
15
- begin
16
- pool.add_serialized_file(descriptor_data)
17
- rescue TypeError
18
- # Compatibility code: will be removed in the next major version.
19
- require 'google/protobuf/descriptor_pb'
20
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
- parsed.clear_dependency
22
- serialized = parsed.class.encode(parsed)
23
- file = pool.add_serialized_file(serialized)
24
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
- imports = [
26
- ]
27
- imports.each do |type_name, expected_filename|
28
- import_file = pool.lookup(type_name).file_descriptor
29
- if import_file.name != expected_filename
30
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
- end
32
- end
33
- warn "Each proto file must use a consistent fully-qualified name."
34
- warn "This will become an error in the next major version."
35
- end
14
+ pool.add_serialized_file(descriptor_data)
36
15
 
37
16
  module Grpc
38
17
  module Testing
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.64.3
4
+ version: 1.65.0
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - gRPC Authors
8
8
  autorequire:
9
9
  bindir: src/ruby/bin
10
10
  cert_chain: []
11
- date: 2024-08-02 00:00:00.000000000 Z
11
+ date: 2024-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.25'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.25'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: googleapis-common-protos-types
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -353,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
353
359
  - !ruby/object:Gem::Version
354
360
  version: '0'
355
361
  requirements: []
356
- rubygems_version: 3.5.17
362
+ rubygems_version: 3.5.14
357
363
  signing_key:
358
364
  specification_version: 4
359
365
  summary: GRPC system in Ruby