google-cloud-debugger-v2 0.5.0 → 0.6.0

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: 43b17d3d8af8517dc60116251089fbbeaa8bb95daca51435bf680d5798bb46fb
4
- data.tar.gz: 138ea1e48659d088445e4fc49a658d14f8a06794510991fe8ef9cce6bbd2937c
3
+ metadata.gz: 00d52de0c2a483dbb1393fc6c264e0c257be815f19051a491da4aed207ba00b4
4
+ data.tar.gz: 8aaff86d7fb95771b623585e12435e01adfbb222b05118e2773ae72687707de0
5
5
  SHA512:
6
- metadata.gz: 21a1d99f193e2e3a6a1f3efc4c2380fd88a8802a5313459f3c73cf274c55b437a111a758a8b5fb1718cf7fbd6c91ccefaef2f9f3e3cfb297a0a2227adb113c9b
7
- data.tar.gz: f8a355a4c5979e2f6c5021a50a14237287013ca70aecb03aefa2afcd9fd39080fd181b1667976155e9bbdb084a4af11d7c3f1c7829ec991a990e386cce0adddf
6
+ metadata.gz: 1a38b7b1f9b5a8cd76c0ae4fe6f8441d13e66292ec3f43c9b4008139f9a2b5f419d9950b3109acd5ba4abb6db33deffaffb9feb9a15919c8960a54a25ff6fc36
7
+ data.tar.gz: dd8f40d334c9f78cbf4aa4660f8cb13e7252f0675ce1b8c417dcae606b76f9564f79dac233645f64fe750604f1f56909484c214ff519df507d2bc05a44212c32
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -152,7 +152,7 @@ module Google
152
152
  credentials = @config.credentials
153
153
  # Use self-signed JWT if the endpoint is unchanged from default,
154
154
  # but only if the default endpoint does not have a region prefix.
155
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
155
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
156
156
  !@config.endpoint.split(".").first.include?("-")
157
157
  credentials ||= Credentials.default scope: @config.scope,
158
158
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -507,9 +507,9 @@ module Google
507
507
  # * (`String`) The path to a service account key file in JSON format
508
508
  # * (`Hash`) A service account key as a Hash
509
509
  # * (`Google::Auth::Credentials`) A googleauth credentials object
510
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
510
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
511
511
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
512
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
512
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
513
513
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
514
514
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
515
515
  # * (`nil`) indicating no credentials
@@ -551,7 +551,9 @@ module Google
551
551
  class Configuration
552
552
  extend ::Gapic::Config
553
553
 
554
- config_attr :endpoint, "clouddebugger.googleapis.com", ::String
554
+ DEFAULT_ENDPOINT = "clouddebugger.googleapis.com"
555
+
556
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
555
557
  config_attr :credentials, nil do |value|
556
558
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
557
559
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -148,7 +148,7 @@ module Google
148
148
  credentials = @config.credentials
149
149
  # Use self-signed JWT if the endpoint is unchanged from default,
150
150
  # but only if the default endpoint does not have a region prefix.
151
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
151
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
152
152
  !@config.endpoint.split(".").first.include?("-")
153
153
  credentials ||= Credentials.default scope: @config.scope,
154
154
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -434,9 +434,9 @@ module Google
434
434
  # * (`String`) The path to a service account key file in JSON format
435
435
  # * (`Hash`) A service account key as a Hash
436
436
  # * (`Google::Auth::Credentials`) A googleauth credentials object
437
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
437
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
438
438
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
439
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
439
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
440
440
  # * (`nil`) indicating no credentials
441
441
  # @return [::Object]
442
442
  # @!attribute [rw] scope
@@ -469,7 +469,9 @@ module Google
469
469
  class Configuration
470
470
  extend ::Gapic::Config
471
471
 
472
- config_attr :endpoint, "clouddebugger.googleapis.com", ::String
472
+ DEFAULT_ENDPOINT = "clouddebugger.googleapis.com"
473
+
474
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
473
475
  config_attr :credentials, nil do |value|
474
476
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
475
477
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_register_debuggee_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_list_active_breakpoints_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_update_active_breakpoint_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -154,7 +154,7 @@ module Google
154
154
  credentials = @config.credentials
155
155
  # Use self-signed JWT if the endpoint is unchanged from default,
156
156
  # but only if the default endpoint does not have a region prefix.
157
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
157
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
158
158
  !@config.endpoint.split(".").first.include?("-")
159
159
  credentials ||= Credentials.default scope: @config.scope,
160
160
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -678,9 +678,9 @@ module Google
678
678
  # * (`String`) The path to a service account key file in JSON format
679
679
  # * (`Hash`) A service account key as a Hash
680
680
  # * (`Google::Auth::Credentials`) A googleauth credentials object
681
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
681
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
682
682
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
683
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
683
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
684
684
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
685
685
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
686
686
  # * (`nil`) indicating no credentials
@@ -722,7 +722,9 @@ module Google
722
722
  class Configuration
723
723
  extend ::Gapic::Config
724
724
 
725
- config_attr :endpoint, "clouddebugger.googleapis.com", ::String
725
+ DEFAULT_ENDPOINT = "clouddebugger.googleapis.com"
726
+
727
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
726
728
  config_attr :credentials, nil do |value|
727
729
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
728
730
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -150,7 +150,7 @@ module Google
150
150
  credentials = @config.credentials
151
151
  # Use self-signed JWT if the endpoint is unchanged from default,
152
152
  # but only if the default endpoint does not have a region prefix.
153
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
153
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
154
154
  !@config.endpoint.split(".").first.include?("-")
155
155
  credentials ||= Credentials.default scope: @config.scope,
156
156
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -556,9 +556,9 @@ module Google
556
556
  # * (`String`) The path to a service account key file in JSON format
557
557
  # * (`Hash`) A service account key as a Hash
558
558
  # * (`Google::Auth::Credentials`) A googleauth credentials object
559
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
559
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
560
560
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
561
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
561
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
562
562
  # * (`nil`) indicating no credentials
563
563
  # @return [::Object]
564
564
  # @!attribute [rw] scope
@@ -591,7 +591,9 @@ module Google
591
591
  class Configuration
592
592
  extend ::Gapic::Config
593
593
 
594
- config_attr :endpoint, "clouddebugger.googleapis.com", ::String
594
+ DEFAULT_ENDPOINT = "clouddebugger.googleapis.com"
595
+
596
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
595
597
  config_attr :credentials, nil do |value|
596
598
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
597
599
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_set_breakpoint_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_breakpoint_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_breakpoint_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_list_breakpoints_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_list_debuggees_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Debugger
23
23
  module V2
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/devtools/clouddebugger/v2/controller.proto
3
4
 
@@ -8,31 +9,32 @@ require 'google/api/client_pb'
8
9
  require 'google/api/field_behavior_pb'
9
10
  require 'google/devtools/clouddebugger/v2/data_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/devtools/clouddebugger/v2/controller.proto", :syntax => :proto3) do
13
- add_message "google.devtools.clouddebugger.v2.RegisterDebuggeeRequest" do
14
- optional :debuggee, :message, 1, "google.devtools.clouddebugger.v2.Debuggee"
15
- end
16
- add_message "google.devtools.clouddebugger.v2.RegisterDebuggeeResponse" do
17
- optional :debuggee, :message, 1, "google.devtools.clouddebugger.v2.Debuggee"
18
- end
19
- add_message "google.devtools.clouddebugger.v2.ListActiveBreakpointsRequest" do
20
- optional :debuggee_id, :string, 1
21
- optional :wait_token, :string, 2
22
- optional :success_on_timeout, :bool, 3
23
- end
24
- add_message "google.devtools.clouddebugger.v2.ListActiveBreakpointsResponse" do
25
- repeated :breakpoints, :message, 1, "google.devtools.clouddebugger.v2.Breakpoint"
26
- optional :next_wait_token, :string, 2
27
- optional :wait_expired, :bool, 3
28
- end
29
- add_message "google.devtools.clouddebugger.v2.UpdateActiveBreakpointRequest" do
30
- optional :debuggee_id, :string, 1
31
- optional :breakpoint, :message, 2, "google.devtools.clouddebugger.v2.Breakpoint"
32
- end
33
- add_message "google.devtools.clouddebugger.v2.UpdateActiveBreakpointResponse" do
12
+
13
+ descriptor_data = "\n1google/devtools/clouddebugger/v2/controller.proto\x12 google.devtools.clouddebugger.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a+google/devtools/clouddebugger/v2/data.proto\"\\\n\x17RegisterDebuggeeRequest\x12\x41\n\x08\x64\x65\x62uggee\x18\x01 \x01(\x0b\x32*.google.devtools.clouddebugger.v2.DebuggeeB\x03\xe0\x41\x02\"X\n\x18RegisterDebuggeeResponse\x12<\n\x08\x64\x65\x62uggee\x18\x01 \x01(\x0b\x32*.google.devtools.clouddebugger.v2.Debuggee\"h\n\x1cListActiveBreakpointsRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nwait_token\x18\x02 \x01(\t\x12\x1a\n\x12success_on_timeout\x18\x03 \x01(\x08\"\x91\x01\n\x1dListActiveBreakpointsResponse\x12\x41\n\x0b\x62reakpoints\x18\x01 \x03(\x0b\x32,.google.devtools.clouddebugger.v2.Breakpoint\x12\x17\n\x0fnext_wait_token\x18\x02 \x01(\t\x12\x14\n\x0cwait_expired\x18\x03 \x01(\x08\"\x80\x01\n\x1dUpdateActiveBreakpointRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\nbreakpoint\x18\x02 \x01(\x0b\x32,.google.devtools.clouddebugger.v2.BreakpointB\x03\xe0\x41\x02\" \n\x1eUpdateActiveBreakpointResponse2\xbe\x06\n\x0b\x43ontroller2\x12\xc2\x01\n\x10RegisterDebuggee\x12\x39.google.devtools.clouddebugger.v2.RegisterDebuggeeRequest\x1a:.google.devtools.clouddebugger.v2.RegisterDebuggeeResponse\"7\x82\xd3\xe4\x93\x02&\"!/v2/controller/debuggees/register:\x01*\xda\x41\x08\x64\x65\x62uggee\x12\xe2\x01\n\x15ListActiveBreakpoints\x12>.google.devtools.clouddebugger.v2.ListActiveBreakpointsRequest\x1a?.google.devtools.clouddebugger.v2.ListActiveBreakpointsResponse\"H\x82\xd3\xe4\x93\x02\x34\x12\x32/v2/controller/debuggees/{debuggee_id}/breakpoints\xda\x41\x0b\x64\x65\x62uggee_id\x12\x83\x02\n\x16UpdateActiveBreakpoint\x12?.google.devtools.clouddebugger.v2.UpdateActiveBreakpointRequest\x1a@.google.devtools.clouddebugger.v2.UpdateActiveBreakpointResponse\"f\x82\xd3\xe4\x93\x02G\x1a\x42/v2/controller/debuggees/{debuggee_id}/breakpoints/{breakpoint.id}:\x01*\xda\x41\x16\x64\x65\x62uggee_id,breakpoint\x1a\x7f\xca\x41\x1c\x63louddebugger.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud_debuggerB\xc7\x01\n$com.google.devtools.clouddebugger.v2B\x0f\x43ontrollerProtoP\x01Z8cloud.google.com/go/debugger/apiv2/debuggerpb;debuggerpb\xaa\x02\x18Google.Cloud.Debugger.V2\xca\x02\x18Google\\Cloud\\Debugger\\V2\xea\x02\x1bGoogle::Cloud::Debugger::V2b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.devtools.clouddebugger.v2.Debuggee", "google/devtools/clouddebugger/v2/data.proto"],
29
+ ]
30
+ imports.each do |type_name, expected_filename|
31
+ import_file = pool.lookup(type_name).file_descriptor
32
+ if import_file.name != expected_filename
33
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
34
34
  end
35
35
  end
36
+ warn "Each proto file must use a consistent fully-qualified name."
37
+ warn "This will become an error in the next major version."
36
38
  end
37
39
 
38
40
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/devtools/clouddebugger/v2/data.proto
3
4
 
@@ -7,86 +8,34 @@ require 'google/devtools/source/v1/source_context_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
  require 'google/protobuf/wrappers_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/devtools/clouddebugger/v2/data.proto", :syntax => :proto3) do
12
- add_message "google.devtools.clouddebugger.v2.FormatMessage" do
13
- optional :format, :string, 1
14
- repeated :parameters, :string, 2
15
- end
16
- add_message "google.devtools.clouddebugger.v2.StatusMessage" do
17
- optional :is_error, :bool, 1
18
- optional :refers_to, :enum, 2, "google.devtools.clouddebugger.v2.StatusMessage.Reference"
19
- optional :description, :message, 3, "google.devtools.clouddebugger.v2.FormatMessage"
20
- end
21
- add_enum "google.devtools.clouddebugger.v2.StatusMessage.Reference" do
22
- value :UNSPECIFIED, 0
23
- value :BREAKPOINT_SOURCE_LOCATION, 3
24
- value :BREAKPOINT_CONDITION, 4
25
- value :BREAKPOINT_EXPRESSION, 7
26
- value :BREAKPOINT_AGE, 8
27
- value :VARIABLE_NAME, 5
28
- value :VARIABLE_VALUE, 6
29
- end
30
- add_message "google.devtools.clouddebugger.v2.SourceLocation" do
31
- optional :path, :string, 1
32
- optional :line, :int32, 2
33
- optional :column, :int32, 3
34
- end
35
- add_message "google.devtools.clouddebugger.v2.Variable" do
36
- optional :name, :string, 1
37
- optional :value, :string, 2
38
- optional :type, :string, 6
39
- repeated :members, :message, 3, "google.devtools.clouddebugger.v2.Variable"
40
- optional :var_table_index, :message, 4, "google.protobuf.Int32Value"
41
- optional :status, :message, 5, "google.devtools.clouddebugger.v2.StatusMessage"
42
- end
43
- add_message "google.devtools.clouddebugger.v2.StackFrame" do
44
- optional :function, :string, 1
45
- optional :location, :message, 2, "google.devtools.clouddebugger.v2.SourceLocation"
46
- repeated :arguments, :message, 3, "google.devtools.clouddebugger.v2.Variable"
47
- repeated :locals, :message, 4, "google.devtools.clouddebugger.v2.Variable"
48
- end
49
- add_message "google.devtools.clouddebugger.v2.Breakpoint" do
50
- optional :id, :string, 1
51
- optional :action, :enum, 13, "google.devtools.clouddebugger.v2.Breakpoint.Action"
52
- optional :location, :message, 2, "google.devtools.clouddebugger.v2.SourceLocation"
53
- optional :condition, :string, 3
54
- repeated :expressions, :string, 4
55
- optional :log_message_format, :string, 14
56
- optional :log_level, :enum, 15, "google.devtools.clouddebugger.v2.Breakpoint.LogLevel"
57
- optional :is_final_state, :bool, 5
58
- optional :create_time, :message, 11, "google.protobuf.Timestamp"
59
- optional :final_time, :message, 12, "google.protobuf.Timestamp"
60
- optional :user_email, :string, 16
61
- optional :status, :message, 10, "google.devtools.clouddebugger.v2.StatusMessage"
62
- repeated :stack_frames, :message, 7, "google.devtools.clouddebugger.v2.StackFrame"
63
- repeated :evaluated_expressions, :message, 8, "google.devtools.clouddebugger.v2.Variable"
64
- repeated :variable_table, :message, 9, "google.devtools.clouddebugger.v2.Variable"
65
- map :labels, :string, :string, 17
66
- end
67
- add_enum "google.devtools.clouddebugger.v2.Breakpoint.Action" do
68
- value :CAPTURE, 0
69
- value :LOG, 1
70
- end
71
- add_enum "google.devtools.clouddebugger.v2.Breakpoint.LogLevel" do
72
- value :INFO, 0
73
- value :WARNING, 1
74
- value :ERROR, 2
75
- end
76
- add_message "google.devtools.clouddebugger.v2.Debuggee" do
77
- optional :id, :string, 1
78
- optional :project, :string, 2
79
- optional :uniquifier, :string, 3
80
- optional :description, :string, 4
81
- optional :is_inactive, :bool, 5
82
- optional :agent_version, :string, 6
83
- optional :is_disabled, :bool, 7
84
- optional :status, :message, 8, "google.devtools.clouddebugger.v2.StatusMessage"
85
- repeated :source_contexts, :message, 9, "google.devtools.source.v1.SourceContext"
86
- repeated :ext_source_contexts, :message, 13, "google.devtools.source.v1.ExtendedSourceContext"
87
- map :labels, :string, :string, 11
11
+
12
+ descriptor_data = "\n+google/devtools/clouddebugger/v2/data.proto\x12 google.devtools.clouddebugger.v2\x1a.google/devtools/source/v1/source_context.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"3\n\rFormatMessage\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\x12\n\nparameters\x18\x02 \x03(\t\"\xe4\x02\n\rStatusMessage\x12\x10\n\x08is_error\x18\x01 \x01(\x08\x12L\n\trefers_to\x18\x02 \x01(\x0e\x32\x39.google.devtools.clouddebugger.v2.StatusMessage.Reference\x12\x44\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32/.google.devtools.clouddebugger.v2.FormatMessage\"\xac\x01\n\tReference\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x1e\n\x1a\x42REAKPOINT_SOURCE_LOCATION\x10\x03\x12\x18\n\x14\x42REAKPOINT_CONDITION\x10\x04\x12\x19\n\x15\x42REAKPOINT_EXPRESSION\x10\x07\x12\x12\n\x0e\x42REAKPOINT_AGE\x10\x08\x12\x11\n\rVARIABLE_NAME\x10\x05\x12\x12\n\x0eVARIABLE_VALUE\x10\x06\"<\n\x0eSourceLocation\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0c\n\x04line\x18\x02 \x01(\x05\x12\x0e\n\x06\x63olumn\x18\x03 \x01(\x05\"\xe9\x01\n\x08Variable\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x06 \x01(\t\x12;\n\x07members\x18\x03 \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Variable\x12\x34\n\x0fvar_table_index\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12?\n\x06status\x18\x05 \x01(\x0b\x32/.google.devtools.clouddebugger.v2.StatusMessage\"\xdd\x01\n\nStackFrame\x12\x10\n\x08\x66unction\x18\x01 \x01(\t\x12\x42\n\x08location\x18\x02 \x01(\x0b\x32\x30.google.devtools.clouddebugger.v2.SourceLocation\x12=\n\targuments\x18\x03 \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Variable\x12:\n\x06locals\x18\x04 \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Variable\"\x97\x07\n\nBreakpoint\x12\n\n\x02id\x18\x01 \x01(\t\x12\x43\n\x06\x61\x63tion\x18\r \x01(\x0e\x32\x33.google.devtools.clouddebugger.v2.Breakpoint.Action\x12\x42\n\x08location\x18\x02 \x01(\x0b\x32\x30.google.devtools.clouddebugger.v2.SourceLocation\x12\x11\n\tcondition\x18\x03 \x01(\t\x12\x13\n\x0b\x65xpressions\x18\x04 \x03(\t\x12\x1a\n\x12log_message_format\x18\x0e \x01(\t\x12H\n\tlog_level\x18\x0f \x01(\x0e\x32\x35.google.devtools.clouddebugger.v2.Breakpoint.LogLevel\x12\x16\n\x0eis_final_state\x18\x05 \x01(\x08\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nfinal_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nuser_email\x18\x10 \x01(\t\x12?\n\x06status\x18\n \x01(\x0b\x32/.google.devtools.clouddebugger.v2.StatusMessage\x12\x42\n\x0cstack_frames\x18\x07 \x03(\x0b\x32,.google.devtools.clouddebugger.v2.StackFrame\x12I\n\x15\x65valuated_expressions\x18\x08 \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Variable\x12\x42\n\x0evariable_table\x18\t \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Variable\x12H\n\x06labels\x18\x11 \x03(\x0b\x32\x38.google.devtools.clouddebugger.v2.Breakpoint.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1e\n\x06\x41\x63tion\x12\x0b\n\x07\x43\x41PTURE\x10\x00\x12\x07\n\x03LOG\x10\x01\",\n\x08LogLevel\x12\x08\n\x04INFO\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"\xdf\x03\n\x08\x44\x65\x62uggee\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x12\n\nuniquifier\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x13\n\x0bis_inactive\x18\x05 \x01(\x08\x12\x15\n\ragent_version\x18\x06 \x01(\t\x12\x13\n\x0bis_disabled\x18\x07 \x01(\x08\x12?\n\x06status\x18\x08 \x01(\x0b\x32/.google.devtools.clouddebugger.v2.StatusMessage\x12\x41\n\x0fsource_contexts\x18\t \x03(\x0b\x32(.google.devtools.source.v1.SourceContext\x12Q\n\x13\x65xt_source_contexts\x18\r \x03(\x0b\x32\x30.google.devtools.source.v1.ExtendedSourceContextB\x02\x18\x01\x12\x46\n\x06labels\x18\x0b \x03(\x0b\x32\x36.google.devtools.clouddebugger.v2.Debuggee.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\xc4\x01\n$com.google.devtools.clouddebugger.v2B\tDataProtoP\x01Z8cloud.google.com/go/debugger/apiv2/debuggerpb;debuggerpb\xf8\x01\x01\xaa\x02\x18Google.Cloud.Debugger.V2\xca\x02\x18Google\\Cloud\\Debugger\\V2\xea\x02\x1bGoogle::Cloud::Debugger::V2b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.Int32Value", "google/protobuf/wrappers.proto"],
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.devtools.source.v1.SourceContext", "google/devtools/source/v1/source_context.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
88
35
  end
89
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
90
39
  end
91
40
 
92
41
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/devtools/clouddebugger/v2/debugger.proto
3
4
 
@@ -9,54 +10,32 @@ require 'google/devtools/clouddebugger/v2/data_pb'
9
10
  require 'google/protobuf/empty_pb'
10
11
  require 'google/api/annotations_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/devtools/clouddebugger/v2/debugger.proto", :syntax => :proto3) do
14
- add_message "google.devtools.clouddebugger.v2.SetBreakpointRequest" do
15
- optional :debuggee_id, :string, 1
16
- optional :breakpoint, :message, 2, "google.devtools.clouddebugger.v2.Breakpoint"
17
- optional :client_version, :string, 4
18
- end
19
- add_message "google.devtools.clouddebugger.v2.SetBreakpointResponse" do
20
- optional :breakpoint, :message, 1, "google.devtools.clouddebugger.v2.Breakpoint"
21
- end
22
- add_message "google.devtools.clouddebugger.v2.GetBreakpointRequest" do
23
- optional :debuggee_id, :string, 1
24
- optional :breakpoint_id, :string, 2
25
- optional :client_version, :string, 4
26
- end
27
- add_message "google.devtools.clouddebugger.v2.GetBreakpointResponse" do
28
- optional :breakpoint, :message, 1, "google.devtools.clouddebugger.v2.Breakpoint"
29
- end
30
- add_message "google.devtools.clouddebugger.v2.DeleteBreakpointRequest" do
31
- optional :debuggee_id, :string, 1
32
- optional :breakpoint_id, :string, 2
33
- optional :client_version, :string, 3
34
- end
35
- add_message "google.devtools.clouddebugger.v2.ListBreakpointsRequest" do
36
- optional :debuggee_id, :string, 1
37
- optional :include_all_users, :bool, 2
38
- optional :include_inactive, :bool, 3
39
- optional :action, :message, 4, "google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue"
40
- optional :strip_results, :bool, 5
41
- optional :wait_token, :string, 6
42
- optional :client_version, :string, 8
43
- end
44
- add_message "google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue" do
45
- optional :value, :enum, 1, "google.devtools.clouddebugger.v2.Breakpoint.Action"
46
- end
47
- add_message "google.devtools.clouddebugger.v2.ListBreakpointsResponse" do
48
- repeated :breakpoints, :message, 1, "google.devtools.clouddebugger.v2.Breakpoint"
49
- optional :next_wait_token, :string, 2
50
- end
51
- add_message "google.devtools.clouddebugger.v2.ListDebuggeesRequest" do
52
- optional :project, :string, 2
53
- optional :include_inactive, :bool, 3
54
- optional :client_version, :string, 4
55
- end
56
- add_message "google.devtools.clouddebugger.v2.ListDebuggeesResponse" do
57
- repeated :debuggees, :message, 1, "google.devtools.clouddebugger.v2.Debuggee"
13
+
14
+ descriptor_data = "\n/google/devtools/clouddebugger/v2/debugger.proto\x12 google.devtools.clouddebugger.v2\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a+google/devtools/clouddebugger/v2/data.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/api/annotations.proto\"\x94\x01\n\x14SetBreakpointRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\nbreakpoint\x18\x02 \x01(\x0b\x32,.google.devtools.clouddebugger.v2.BreakpointB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63lient_version\x18\x04 \x01(\tB\x03\xe0\x41\x02\"Y\n\x15SetBreakpointResponse\x12@\n\nbreakpoint\x18\x01 \x01(\x0b\x32,.google.devtools.clouddebugger.v2.Breakpoint\"i\n\x14GetBreakpointRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rbreakpoint_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63lient_version\x18\x04 \x01(\tB\x03\xe0\x41\x02\"Y\n\x15GetBreakpointResponse\x12@\n\nbreakpoint\x18\x01 \x01(\x0b\x32,.google.devtools.clouddebugger.v2.Breakpoint\"l\n\x17\x44\x65leteBreakpointRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rbreakpoint_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63lient_version\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xf0\x02\n\x16ListBreakpointsRequest\x12\x18\n\x0b\x64\x65\x62uggee_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x11include_all_users\x18\x02 \x01(\x08\x12\x18\n\x10include_inactive\x18\x03 \x01(\x08\x12^\n\x06\x61\x63tion\x18\x04 \x01(\x0b\x32N.google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue\x12\x19\n\rstrip_results\x18\x05 \x01(\x08\x42\x02\x18\x01\x12\x12\n\nwait_token\x18\x06 \x01(\t\x12\x1b\n\x0e\x63lient_version\x18\x08 \x01(\tB\x03\xe0\x41\x02\x1a[\n\x15\x42reakpointActionValue\x12\x42\n\x05value\x18\x01 \x01(\x0e\x32\x33.google.devtools.clouddebugger.v2.Breakpoint.Action\"u\n\x17ListBreakpointsResponse\x12\x41\n\x0b\x62reakpoints\x18\x01 \x03(\x0b\x32,.google.devtools.clouddebugger.v2.Breakpoint\x12\x17\n\x0fnext_wait_token\x18\x02 \x01(\t\"c\n\x14ListDebuggeesRequest\x12\x14\n\x07project\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10include_inactive\x18\x03 \x01(\x08\x12\x1b\n\x0e\x63lient_version\x18\x04 \x01(\tB\x03\xe0\x41\x02\"V\n\x15ListDebuggeesResponse\x12=\n\tdebuggees\x18\x01 \x03(\x0b\x32*.google.devtools.clouddebugger.v2.Debuggee2\xf2\t\n\tDebugger2\x12\xf2\x01\n\rSetBreakpoint\x12\x36.google.devtools.clouddebugger.v2.SetBreakpointRequest\x1a\x37.google.devtools.clouddebugger.v2.SetBreakpointResponse\"p\x82\xd3\xe4\x93\x02\x42\"4/v2/debugger/debuggees/{debuggee_id}/breakpoints/set:\nbreakpoint\xda\x41%debuggee_id,breakpoint,client_version\x12\xf5\x01\n\rGetBreakpoint\x12\x36.google.devtools.clouddebugger.v2.GetBreakpointRequest\x1a\x37.google.devtools.clouddebugger.v2.GetBreakpointResponse\"s\x82\xd3\xe4\x93\x02\x42\x12@/v2/debugger/debuggees/{debuggee_id}/breakpoints/{breakpoint_id}\xda\x41(debuggee_id,breakpoint_id,client_version\x12\xda\x01\n\x10\x44\x65leteBreakpoint\x12\x39.google.devtools.clouddebugger.v2.DeleteBreakpointRequest\x1a\x16.google.protobuf.Empty\"s\x82\xd3\xe4\x93\x02\x42*@/v2/debugger/debuggees/{debuggee_id}/breakpoints/{breakpoint_id}\xda\x41(debuggee_id,breakpoint_id,client_version\x12\xdd\x01\n\x0fListBreakpoints\x12\x38.google.devtools.clouddebugger.v2.ListBreakpointsRequest\x1a\x39.google.devtools.clouddebugger.v2.ListBreakpointsResponse\"U\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/debugger/debuggees/{debuggee_id}/breakpoints\xda\x41\x1a\x64\x65\x62uggee_id,client_version\x12\xb9\x01\n\rListDebuggees\x12\x36.google.devtools.clouddebugger.v2.ListDebuggeesRequest\x1a\x37.google.devtools.clouddebugger.v2.ListDebuggeesResponse\"7\x82\xd3\xe4\x93\x02\x18\x12\x16/v2/debugger/debuggees\xda\x41\x16project,client_version\x1a\x7f\xca\x41\x1c\x63louddebugger.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud_debuggerB\xc5\x01\n$com.google.devtools.clouddebugger.v2B\rDebuggerProtoP\x01Z8cloud.google.com/go/debugger/apiv2/debuggerpb;debuggerpb\xaa\x02\x18Google.Cloud.Debugger.V2\xca\x02\x18Google\\Cloud\\Debugger\\V2\xea\x02\x1bGoogle::Cloud::Debugger::V2b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.devtools.clouddebugger.v2.Breakpoint", "google/devtools/clouddebugger/v2/data.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
58
35
  end
59
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
60
39
  end
61
40
 
62
41
  module Google
@@ -1,72 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/devtools/source/v1/source_context.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/devtools/source/v1/source_context.proto", :syntax => :proto3) do
8
- add_message "google.devtools.source.v1.SourceContext" do
9
- oneof :context do
10
- optional :cloud_repo, :message, 1, "google.devtools.source.v1.CloudRepoSourceContext"
11
- optional :cloud_workspace, :message, 2, "google.devtools.source.v1.CloudWorkspaceSourceContext"
12
- optional :gerrit, :message, 3, "google.devtools.source.v1.GerritSourceContext"
13
- optional :git, :message, 6, "google.devtools.source.v1.GitSourceContext"
14
- end
15
- end
16
- add_message "google.devtools.source.v1.ExtendedSourceContext" do
17
- optional :context, :message, 1, "google.devtools.source.v1.SourceContext"
18
- map :labels, :string, :string, 2
19
- end
20
- add_message "google.devtools.source.v1.AliasContext" do
21
- optional :kind, :enum, 1, "google.devtools.source.v1.AliasContext.Kind"
22
- optional :name, :string, 2
23
- end
24
- add_enum "google.devtools.source.v1.AliasContext.Kind" do
25
- value :ANY, 0
26
- value :FIXED, 1
27
- value :MOVABLE, 2
28
- value :OTHER, 4
29
- end
30
- add_message "google.devtools.source.v1.CloudRepoSourceContext" do
31
- optional :repo_id, :message, 1, "google.devtools.source.v1.RepoId"
32
- oneof :revision do
33
- optional :revision_id, :string, 2
34
- optional :alias_name, :string, 3
35
- optional :alias_context, :message, 4, "google.devtools.source.v1.AliasContext"
36
- end
37
- end
38
- add_message "google.devtools.source.v1.CloudWorkspaceSourceContext" do
39
- optional :workspace_id, :message, 1, "google.devtools.source.v1.CloudWorkspaceId"
40
- optional :snapshot_id, :string, 2
41
- end
42
- add_message "google.devtools.source.v1.GerritSourceContext" do
43
- optional :host_uri, :string, 1
44
- optional :gerrit_project, :string, 2
45
- oneof :revision do
46
- optional :revision_id, :string, 3
47
- optional :alias_name, :string, 4
48
- optional :alias_context, :message, 5, "google.devtools.source.v1.AliasContext"
49
- end
50
- end
51
- add_message "google.devtools.source.v1.GitSourceContext" do
52
- optional :url, :string, 1
53
- optional :revision_id, :string, 2
54
- end
55
- add_message "google.devtools.source.v1.RepoId" do
56
- oneof :id do
57
- optional :project_repo_id, :message, 1, "google.devtools.source.v1.ProjectRepoId"
58
- optional :uid, :string, 2
59
- end
60
- end
61
- add_message "google.devtools.source.v1.ProjectRepoId" do
62
- optional :project_id, :string, 1
63
- optional :repo_name, :string, 2
64
- end
65
- add_message "google.devtools.source.v1.CloudWorkspaceId" do
66
- optional :repo_id, :message, 1, "google.devtools.source.v1.RepoId"
67
- optional :name, :string, 2
7
+
8
+ descriptor_data = "\n.google/devtools/source/v1/source_context.proto\x12\x19google.devtools.source.v1\"\xb4\x02\n\rSourceContext\x12G\n\ncloud_repo\x18\x01 \x01(\x0b\x32\x31.google.devtools.source.v1.CloudRepoSourceContextH\x00\x12Q\n\x0f\x63loud_workspace\x18\x02 \x01(\x0b\x32\x36.google.devtools.source.v1.CloudWorkspaceSourceContextH\x00\x12@\n\x06gerrit\x18\x03 \x01(\x0b\x32..google.devtools.source.v1.GerritSourceContextH\x00\x12:\n\x03git\x18\x06 \x01(\x0b\x32+.google.devtools.source.v1.GitSourceContextH\x00\x42\t\n\x07\x63ontext\"\xcf\x01\n\x15\x45xtendedSourceContext\x12\x39\n\x07\x63ontext\x18\x01 \x01(\x0b\x32(.google.devtools.source.v1.SourceContext\x12L\n\x06labels\x18\x02 \x03(\x0b\x32<.google.devtools.source.v1.ExtendedSourceContext.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8c\x01\n\x0c\x41liasContext\x12:\n\x04kind\x18\x01 \x01(\x0e\x32,.google.devtools.source.v1.AliasContext.Kind\x12\x0c\n\x04name\x18\x02 \x01(\t\"2\n\x04Kind\x12\x07\n\x03\x41NY\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x12\x0b\n\x07MOVABLE\x10\x02\x12\t\n\x05OTHER\x10\x04\"\xcb\x01\n\x16\x43loudRepoSourceContext\x12\x32\n\x07repo_id\x18\x01 \x01(\x0b\x32!.google.devtools.source.v1.RepoId\x12\x15\n\x0brevision_id\x18\x02 \x01(\tH\x00\x12\x18\n\nalias_name\x18\x03 \x01(\tB\x02\x18\x01H\x00\x12@\n\ralias_context\x18\x04 \x01(\x0b\x32\'.google.devtools.source.v1.AliasContextH\x00\x42\n\n\x08revision\"u\n\x1b\x43loudWorkspaceSourceContext\x12\x41\n\x0cworkspace_id\x18\x01 \x01(\x0b\x32+.google.devtools.source.v1.CloudWorkspaceId\x12\x13\n\x0bsnapshot_id\x18\x02 \x01(\t\"\xbe\x01\n\x13GerritSourceContext\x12\x10\n\x08host_uri\x18\x01 \x01(\t\x12\x16\n\x0egerrit_project\x18\x02 \x01(\t\x12\x15\n\x0brevision_id\x18\x03 \x01(\tH\x00\x12\x18\n\nalias_name\x18\x04 \x01(\tB\x02\x18\x01H\x00\x12@\n\ralias_context\x18\x05 \x01(\x0b\x32\'.google.devtools.source.v1.AliasContextH\x00\x42\n\n\x08revision\"4\n\x10GitSourceContext\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x13\n\x0brevision_id\x18\x02 \x01(\t\"b\n\x06RepoId\x12\x43\n\x0fproject_repo_id\x18\x01 \x01(\x0b\x32(.google.devtools.source.v1.ProjectRepoIdH\x00\x12\r\n\x03uid\x18\x02 \x01(\tH\x00\x42\x04\n\x02id\"6\n\rProjectRepoId\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x11\n\trepo_name\x18\x02 \x01(\t\"T\n\x10\x43loudWorkspaceId\x12\x32\n\x07repo_id\x18\x01 \x01(\x0b\x32!.google.devtools.source.v1.RepoId\x12\x0c\n\x04name\x18\x02 \x01(\tB\xbd\x01\n\x1d\x63om.google.devtools.source.v1B\x12SourceContextProtoP\x01Z?google.golang.org/genproto/googleapis/devtools/source/v1;source\xf8\x01\x01\xaa\x02\x1fGoogle.Cloud.DevTools.Source.V1\xca\x02\x1fGoogle\\Cloud\\DevTools\\Source\\V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
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}"
68
28
  end
69
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."
70
32
  end
71
33
 
72
34
  module Google
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-debugger-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a