grpc 1.65.0.pre1 → 1.65.0.pre2

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: f5a7aae0d9fcb34e98a44bf96cf03b96ef05eb779b5a416a71cdad552415c1c8
4
- data.tar.gz: 74ec06033e3451543b0df606fc8a72ceb5ca25839f5e1d9a65933158e93bdb3d
3
+ metadata.gz: e1c684cfc2c4e1df05e4701975712425fac876386cea081d92d5183693e26117
4
+ data.tar.gz: 24d0aa0073447a1473138d065145692d60e700be516ff58d7a0660976436fe0d
5
5
  SHA512:
6
- metadata.gz: 20425109fc2d988ec6db9a8ecf7d0600f36015919b03b04aec014411cd94d5ff72439af7b174373232399f088096e236fa57f04004034410292dd36d43050caf
7
- data.tar.gz: 8c2de71570a2ed8480f5c503e23ae9ba47f6ce9966ad7b8cd6d17cdd0a8e559cd6ff74781175c378a406502374f5693e0a4c9e576bc0b97b55be652ff73e7ced
6
+ metadata.gz: de0f1955ca4d661808ec6577dc6f2a9813899a3b1efaf7c25944036a2ca772ce57fe6c7e5865221a08ba85e07bdb432aef22f8d3a8c3cff4fd73547e4fbed107
7
+ data.tar.gz: ccd6b4946c590e00b8b36abe813fb5301451b0489438a327a3df7ed4059ef9296964bf3bc0e38760806b6efd1069c0ca865521b1d055951cd5c9c117e4a72b84
data/Makefile CHANGED
@@ -368,7 +368,7 @@ Q = @
368
368
  endif
369
369
 
370
370
  CORE_VERSION = 42.0.0
371
- CPP_VERSION = 1.65.0-pre1
371
+ CPP_VERSION = 1.65.0-pre2
372
372
 
373
373
  CPPFLAGS_NO_ARCH += $(addprefix -I, $(INCLUDES)) $(addprefix -D, $(DEFINES))
374
374
  CPPFLAGS += $(CPPFLAGS_NO_ARCH) $(ARCH_FLAGS)
@@ -28,15 +28,10 @@
28
28
  extern "C" {
29
29
  #endif
30
30
 
31
- /** GPR log API.
32
-
33
- Usage (within grpc):
34
-
35
- int argument1 = 3;
36
- char* argument2 = "hello";
37
- gpr_log(GPR_DEBUG, "format string %d", argument1);
38
- gpr_log(GPR_INFO, "hello world");
39
- gpr_log(GPR_ERROR, "%d %s!!", argument1, argument2); */
31
+ /**
32
+ * Logging functions in this file are deprecated.
33
+ * Please use absl ABSL_LOG instead.
34
+ */
40
35
 
41
36
  /** The severity of a log message - use the #defines below when calling into
42
37
  gpr_log to additionally supply file and line data */
@@ -65,7 +60,7 @@ GPRAPI void gpr_log_message(const char* file, int line,
65
60
  gpr_log_severity severity, const char* message);
66
61
 
67
62
  /** Set global log verbosity */
68
- GPRAPI void gpr_set_log_verbosity(gpr_log_severity min_severity_to_print);
63
+ GPRAPI void gpr_set_log_verbosity(gpr_log_severity deprecated_setting);
69
64
 
70
65
  GPRAPI void gpr_log_verbosity_init(void);
71
66
 
@@ -83,7 +78,7 @@ typedef struct gpr_log_func_args gpr_log_func_args;
83
78
 
84
79
  typedef void (*gpr_log_func)(gpr_log_func_args* args);
85
80
 
86
- GPRAPI void gpr_set_log_function(gpr_log_func func);
81
+ GPRAPI void gpr_set_log_function(gpr_log_func deprecated_setting);
87
82
 
88
83
  GPRAPI void gpr_assertion_failed(const char* filename, int line,
89
84
  const char* message) GPR_ATTRIBUTE_NORETURN;
@@ -26,7 +26,7 @@
26
26
  #include "src/core/lib/config/load_config.h"
27
27
 
28
28
  #ifndef GPR_DEFAULT_LOG_VERBOSITY_STRING
29
- #define GPR_DEFAULT_LOG_VERBOSITY_STRING "ERROR"
29
+ #define GPR_DEFAULT_LOG_VERBOSITY_STRING ""
30
30
  #endif // !GPR_DEFAULT_LOG_VERBOSITY_STRING
31
31
 
32
32
  #ifdef GRPC_ENABLE_FORK_SUPPORT
data/src/core/util/log.cc CHANGED
@@ -35,18 +35,9 @@
35
35
  #include "src/core/lib/gprpp/crash.h"
36
36
  #include "src/core/util/string.h"
37
37
 
38
- #ifndef GPR_DEFAULT_LOG_VERBOSITY_STRING
39
- #define GPR_DEFAULT_LOG_VERBOSITY_STRING "ERROR"
40
- #endif // !GPR_DEFAULT_LOG_VERBOSITY_STRING
41
-
42
- static constexpr gpr_atm GPR_LOG_SEVERITY_UNSET = GPR_LOG_SEVERITY_ERROR + 10;
43
- static constexpr gpr_atm GPR_LOG_SEVERITY_NONE = GPR_LOG_SEVERITY_ERROR + 11;
44
-
45
38
  void gpr_default_log(gpr_log_func_args* args);
46
39
  void gpr_platform_log(gpr_log_func_args* args);
47
40
  static gpr_atm g_log_func = reinterpret_cast<gpr_atm>(gpr_default_log);
48
- static gpr_atm g_min_severity_to_print = GPR_LOG_SEVERITY_UNSET;
49
- static gpr_atm g_min_severity_to_print_stacktrace = GPR_LOG_SEVERITY_UNSET;
50
41
 
51
42
  void gpr_unreachable_code(const char* reason, const char* file, int line) {
52
43
  grpc_core::Crash(absl::StrCat("UNREACHABLE CODE: ", reason),
@@ -71,10 +62,22 @@ const char* gpr_log_severity_string(gpr_log_severity severity) {
71
62
  }
72
63
 
73
64
  int gpr_should_log(gpr_log_severity severity) {
74
- return static_cast<gpr_atm>(severity) >=
75
- gpr_atm_no_barrier_load(&g_min_severity_to_print)
76
- ? 1
77
- : 0;
65
+ switch (severity) {
66
+ case GPR_LOG_SEVERITY_ERROR:
67
+ return absl::MinLogLevel() <= absl::LogSeverityAtLeast::kError;
68
+ case GPR_LOG_SEVERITY_INFO:
69
+ // There is no documentation about how expensive or inexpensive
70
+ // MinLogLevel is. We could have saved this in a static const variable.
71
+ // But decided against it just in case anyone programatically sets absl
72
+ // min log level settings after this has been initialized.
73
+ // Same holds for VLOG_IS_ON(2).
74
+ return absl::MinLogLevel() <= absl::LogSeverityAtLeast::kInfo;
75
+ case GPR_LOG_SEVERITY_DEBUG:
76
+ return VLOG_IS_ON(2);
77
+ default:
78
+ DLOG(ERROR) << "Invalid gpr_log_severity.";
79
+ return true;
80
+ }
78
81
  }
79
82
 
80
83
  void gpr_default_log(gpr_log_func_args* args) {
@@ -111,25 +114,21 @@ void gpr_log_message(const char* file, int line, gpr_log_severity severity,
111
114
  reinterpret_cast<gpr_log_func>(gpr_atm_no_barrier_load(&g_log_func))(&lfargs);
112
115
  }
113
116
 
114
- void gpr_set_log_verbosity(gpr_log_severity min_severity_to_print) {
115
- gpr_atm_no_barrier_store(&g_min_severity_to_print,
116
- (gpr_atm)min_severity_to_print);
117
- }
118
-
119
- static gpr_atm parse_log_severity(absl::string_view str, gpr_atm error_value) {
120
- if (absl::EqualsIgnoreCase(str, "DEBUG")) return GPR_LOG_SEVERITY_DEBUG;
121
- if (absl::EqualsIgnoreCase(str, "INFO")) return GPR_LOG_SEVERITY_INFO;
122
- if (absl::EqualsIgnoreCase(str, "ERROR")) return GPR_LOG_SEVERITY_ERROR;
123
- if (absl::EqualsIgnoreCase(str, "NONE")) return GPR_LOG_SEVERITY_NONE;
124
- return error_value;
117
+ void gpr_set_log_verbosity(
118
+ [[maybe_unused]] gpr_log_severity deprecated_setting) {
119
+ LOG(ERROR)
120
+ << "This will not be set. Please set this via absl log level settings.";
125
121
  }
126
122
 
127
- void gpr_to_absl_verbosity_setting_init(void) {
123
+ void gpr_log_verbosity_init(void) {
128
124
  // This is enabled in Github only.
129
125
  // This ifndef is converted to ifdef internally by copybara.
130
126
  // Internally grpc verbosity is managed using absl settings.
131
127
  // So internally we avoid setting it like this.
132
128
  #ifndef GRPC_VERBOSITY_MACRO
129
+ // SetMinLogLevel sets the value for the entire binary, not just gRPC.
130
+ // This setting will change things for other libraries/code that is unrelated
131
+ // to grpc.
133
132
  absl::string_view verbosity = grpc_core::ConfigVars::Get().Verbosity();
134
133
  DVLOG(2) << "Log verbosity: " << verbosity;
135
134
  if (absl::EqualsIgnoreCase(verbosity, "INFO")) {
@@ -150,50 +149,17 @@ void gpr_to_absl_verbosity_setting_init(void) {
150
149
  } else if (absl::EqualsIgnoreCase(verbosity, "NONE")) {
151
150
  absl::SetVLogLevel("*grpc*/*", -1);
152
151
  absl::SetMinLogLevel(absl::LogSeverityAtLeast::kInfinity);
152
+ } else if (verbosity.empty()) {
153
+ // Do not alter absl settings if GRPC_VERBOSITY flag is not set.
153
154
  } else {
154
155
  LOG(ERROR) << "Unknown log verbosity: " << verbosity;
155
156
  }
156
157
  #endif // GRPC_VERBOSITY_MACRO
157
158
  }
158
159
 
159
- void gpr_log_verbosity_init() {
160
- // init verbosity when it hasn't been set
161
- if ((gpr_atm_no_barrier_load(&g_min_severity_to_print)) ==
162
- GPR_LOG_SEVERITY_UNSET) {
163
- auto verbosity = grpc_core::ConfigVars::Get().Verbosity();
164
- gpr_atm min_severity_to_print = GPR_LOG_SEVERITY_ERROR;
165
- if (!verbosity.empty()) {
166
- min_severity_to_print =
167
- parse_log_severity(verbosity, min_severity_to_print);
168
- }
169
- gpr_atm_no_barrier_store(&g_min_severity_to_print, min_severity_to_print);
170
- }
171
- // init stacktrace_minloglevel when it hasn't been set
172
- if ((gpr_atm_no_barrier_load(&g_min_severity_to_print_stacktrace)) ==
173
- GPR_LOG_SEVERITY_UNSET) {
174
- auto stacktrace_minloglevel =
175
- grpc_core::ConfigVars::Get().StacktraceMinloglevel();
176
- gpr_atm min_severity_to_print_stacktrace = GPR_LOG_SEVERITY_NONE;
177
- if (!stacktrace_minloglevel.empty()) {
178
- min_severity_to_print_stacktrace = parse_log_severity(
179
- stacktrace_minloglevel, min_severity_to_print_stacktrace);
180
- }
181
- gpr_atm_no_barrier_store(&g_min_severity_to_print_stacktrace,
182
- min_severity_to_print_stacktrace);
183
- }
184
- gpr_to_absl_verbosity_setting_init();
185
- }
186
-
187
- void gpr_set_log_function(gpr_log_func f) {
160
+ void gpr_set_log_function([[maybe_unused]] gpr_log_func deprecated_setting) {
188
161
  LOG(ERROR)
189
- << "This function is in the process of being deprecated. Your "
190
- "gpr_log_func will not work as expected. This is because only few "
191
- "instances of gpr_log remain in our code base. All instances of "
192
- "gpr_log will log via this custom function. Many of the gpr_log "
193
- "statements have been converted to ABSL_LOG statements. These will "
194
- "log to the default absl log sink. The gpr_set_log_function function "
195
- "will be deleted in the next gRPC release. We strongly advice against "
196
- "using this function. You may create a new absl LogSink with similar "
162
+ << "This function is deprecated. This function will be deleted in the "
163
+ "next gRPC release. You may create a new absl LogSink with similar "
197
164
  "functionality. gRFC: https://github.com/grpc/proposal/pull/425 ";
198
- gpr_atm_no_barrier_store(&g_log_func, (gpr_atm)(f ? f : gpr_default_log));
199
165
  }
@@ -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
@@ -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);
@@ -14,5 +14,5 @@
14
14
 
15
15
  # GRPC contains the General RPC module.
16
16
  module GRPC
17
- VERSION = '1.65.0.pre1'
17
+ VERSION = '1.65.0.pre2'
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.65.0.pre1
4
+ version: 1.65.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: 2024-06-14 00:00:00.000000000 Z
11
+ date: 2024-06-21 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
@@ -3575,7 +3581,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3575
3581
  - !ruby/object:Gem::Version
3576
3582
  version: '0'
3577
3583
  requirements: []
3578
- rubygems_version: 3.5.12
3584
+ rubygems_version: 3.5.13
3579
3585
  signing_key:
3580
3586
  specification_version: 4
3581
3587
  summary: GRPC system in Ruby