google-cloud-debugger-v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-debugger-v2.rb +21 -0
  7. data/lib/google/cloud/debugger/v2.rb +36 -0
  8. data/lib/google/cloud/debugger/v2/controller.rb +67 -0
  9. data/lib/google/cloud/debugger/v2/controller/client.rb +591 -0
  10. data/lib/google/cloud/debugger/v2/controller/credentials.rb +52 -0
  11. data/lib/google/cloud/debugger/v2/debugger.rb +59 -0
  12. data/lib/google/cloud/debugger/v2/debugger/client.rb +742 -0
  13. data/lib/google/cloud/debugger/v2/debugger/credentials.rb +52 -0
  14. data/lib/google/cloud/debugger/v2/version.rb +28 -0
  15. data/lib/google/devtools/clouddebugger/v2/controller_pb.rb +51 -0
  16. data/lib/google/devtools/clouddebugger/v2/controller_services_pb.rb +97 -0
  17. data/lib/google/devtools/clouddebugger/v2/data_pb.rb +109 -0
  18. data/lib/google/devtools/clouddebugger/v2/debugger_pb.rb +78 -0
  19. data/lib/google/devtools/clouddebugger/v2/debugger_services_pb.rb +65 -0
  20. data/lib/google/devtools/source/v1/source_context_pb.rb +91 -0
  21. data/proto_docs/README.md +4 -0
  22. data/proto_docs/google/api/field_behavior.rb +59 -0
  23. data/proto_docs/google/api/resource.rb +247 -0
  24. data/proto_docs/google/devtools/clouddebugger/v2/controller.rb +113 -0
  25. data/proto_docs/google/devtools/clouddebugger/v2/data.rb +486 -0
  26. data/proto_docs/google/devtools/clouddebugger/v2/debugger.rb +185 -0
  27. data/proto_docs/google/devtools/source/v1/source_context.rb +205 -0
  28. data/proto_docs/google/protobuf/empty.rb +36 -0
  29. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  30. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  31. metadata +218 -0
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Debugger
24
+ module V2
25
+ module Debugger
26
+ # Credentials for the Debugger API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/cloud-platform",
30
+ "https://www.googleapis.com/auth/cloud_debugger"
31
+ ]
32
+ self.env_vars = [
33
+ "DEBUGGER_CREDENTIALS",
34
+ "DEBUGGER_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS",
36
+ "GOOGLE_CLOUD_KEYFILE",
37
+ "GCLOUD_KEYFILE",
38
+ "DEBUGGER_CREDENTIALS_JSON",
39
+ "DEBUGGER_KEYFILE_JSON",
40
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
41
+ "GOOGLE_CLOUD_KEYFILE_JSON",
42
+ "GCLOUD_KEYFILE_JSON"
43
+ ]
44
+ self.paths = [
45
+ "~/.config/google_cloud/application_default_credentials.json"
46
+ ]
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Debugger
23
+ module V2
24
+ VERSION = "0.1.0"
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,51 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/devtools/clouddebugger/v2/controller.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/devtools/clouddebugger/v2/data_pb'
10
+ require 'google/protobuf/empty_pb'
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
34
+ end
35
+ end
36
+ end
37
+
38
+ module Google
39
+ module Cloud
40
+ module Debugger
41
+ module V2
42
+ RegisterDebuggeeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.RegisterDebuggeeRequest").msgclass
43
+ RegisterDebuggeeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.RegisterDebuggeeResponse").msgclass
44
+ ListActiveBreakpointsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListActiveBreakpointsRequest").msgclass
45
+ ListActiveBreakpointsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListActiveBreakpointsResponse").msgclass
46
+ UpdateActiveBreakpointRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.UpdateActiveBreakpointRequest").msgclass
47
+ UpdateActiveBreakpointResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.UpdateActiveBreakpointResponse").msgclass
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,97 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/devtools/clouddebugger/v2/controller.proto for package 'Google.Cloud.Debugger.V2'
3
+ # Original file comments:
4
+ # Copyright 2019 Google LLC.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+ #
19
+
20
+ require 'grpc'
21
+ require 'google/devtools/clouddebugger/v2/controller_pb'
22
+
23
+ module Google
24
+ module Cloud
25
+ module Debugger
26
+ module V2
27
+ module Controller2
28
+ # The Controller service provides the API for orchestrating a collection of
29
+ # debugger agents to perform debugging tasks. These agents are each attached
30
+ # to a process of an application which may include one or more replicas.
31
+ #
32
+ # The debugger agents register with the Controller to identify the application
33
+ # being debugged, the Debuggee. All agents that register with the same data,
34
+ # represent the same Debuggee, and are assigned the same `debuggee_id`.
35
+ #
36
+ # The debugger agents call the Controller to retrieve the list of active
37
+ # Breakpoints. Agents with the same `debuggee_id` get the same breakpoints
38
+ # list. An agent that can fulfill the breakpoint request updates the
39
+ # Controller with the breakpoint result. The controller selects the first
40
+ # result received and discards the rest of the results.
41
+ # Agents that poll again for active breakpoints will no longer have
42
+ # the completed breakpoint in the list and should remove that breakpoint from
43
+ # their attached process.
44
+ #
45
+ # The Controller service does not provide a way to retrieve the results of
46
+ # a completed breakpoint. This functionality is available using the Debugger
47
+ # service.
48
+ class Service
49
+
50
+ include GRPC::GenericService
51
+
52
+ self.marshal_class_method = :encode
53
+ self.unmarshal_class_method = :decode
54
+ self.service_name = 'google.devtools.clouddebugger.v2.Controller2'
55
+
56
+ # Registers the debuggee with the controller service.
57
+ #
58
+ # All agents attached to the same application must call this method with
59
+ # exactly the same request content to get back the same stable `debuggee_id`.
60
+ # Agents should call this method again whenever `google.rpc.Code.NOT_FOUND`
61
+ # is returned from any controller method.
62
+ #
63
+ # This protocol allows the controller service to disable debuggees, recover
64
+ # from data loss, or change the `debuggee_id` format. Agents must handle
65
+ # `debuggee_id` value changing upon re-registration.
66
+ rpc :RegisterDebuggee, Google::Cloud::Debugger::V2::RegisterDebuggeeRequest, Google::Cloud::Debugger::V2::RegisterDebuggeeResponse
67
+ # Returns the list of all active breakpoints for the debuggee.
68
+ #
69
+ # The breakpoint specification (`location`, `condition`, and `expressions`
70
+ # fields) is semantically immutable, although the field values may
71
+ # change. For example, an agent may update the location line number
72
+ # to reflect the actual line where the breakpoint was set, but this
73
+ # doesn't change the breakpoint semantics.
74
+ #
75
+ # This means that an agent does not need to check if a breakpoint has changed
76
+ # when it encounters the same breakpoint on a successive call.
77
+ # Moreover, an agent should remember the breakpoints that are completed
78
+ # until the controller removes them from the active list to avoid
79
+ # setting those breakpoints again.
80
+ rpc :ListActiveBreakpoints, Google::Cloud::Debugger::V2::ListActiveBreakpointsRequest, Google::Cloud::Debugger::V2::ListActiveBreakpointsResponse
81
+ # Updates the breakpoint state or mutable fields.
82
+ # The entire Breakpoint message must be sent back to the controller service.
83
+ #
84
+ # Updates to active breakpoint fields are only allowed if the new value
85
+ # does not change the breakpoint specification. Updates to the `location`,
86
+ # `condition` and `expressions` fields should not alter the breakpoint
87
+ # semantics. These may only make changes such as canonicalizing a value
88
+ # or snapping the location to the correct line of code.
89
+ rpc :UpdateActiveBreakpoint, Google::Cloud::Debugger::V2::UpdateActiveBreakpointRequest, Google::Cloud::Debugger::V2::UpdateActiveBreakpointResponse
90
+ end
91
+
92
+ Stub = Service.rpc_stub_class
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,109 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/devtools/clouddebugger/v2/data.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/devtools/source/v1/source_context_pb'
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'google/protobuf/wrappers_pb'
9
+ require 'google/api/annotations_pb'
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
88
+ end
89
+ end
90
+ end
91
+
92
+ module Google
93
+ module Cloud
94
+ module Debugger
95
+ module V2
96
+ FormatMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.FormatMessage").msgclass
97
+ StatusMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.StatusMessage").msgclass
98
+ StatusMessage::Reference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.StatusMessage.Reference").enummodule
99
+ SourceLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.SourceLocation").msgclass
100
+ Variable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Variable").msgclass
101
+ StackFrame = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.StackFrame").msgclass
102
+ Breakpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Breakpoint").msgclass
103
+ Breakpoint::Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Breakpoint.Action").enummodule
104
+ Breakpoint::LogLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Breakpoint.LogLevel").enummodule
105
+ Debuggee = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Debuggee").msgclass
106
+ end
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,78 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/devtools/clouddebugger/v2/debugger.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/client_pb'
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/devtools/clouddebugger/v2/data_pb'
9
+ require 'google/protobuf/empty_pb'
10
+ require 'google/api/annotations_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("google/devtools/clouddebugger/v2/debugger.proto", :syntax => :proto3) do
13
+ add_message "google.devtools.clouddebugger.v2.SetBreakpointRequest" do
14
+ optional :debuggee_id, :string, 1
15
+ optional :breakpoint, :message, 2, "google.devtools.clouddebugger.v2.Breakpoint"
16
+ optional :client_version, :string, 4
17
+ end
18
+ add_message "google.devtools.clouddebugger.v2.SetBreakpointResponse" do
19
+ optional :breakpoint, :message, 1, "google.devtools.clouddebugger.v2.Breakpoint"
20
+ end
21
+ add_message "google.devtools.clouddebugger.v2.GetBreakpointRequest" do
22
+ optional :debuggee_id, :string, 1
23
+ optional :breakpoint_id, :string, 2
24
+ optional :client_version, :string, 4
25
+ end
26
+ add_message "google.devtools.clouddebugger.v2.GetBreakpointResponse" do
27
+ optional :breakpoint, :message, 1, "google.devtools.clouddebugger.v2.Breakpoint"
28
+ end
29
+ add_message "google.devtools.clouddebugger.v2.DeleteBreakpointRequest" do
30
+ optional :debuggee_id, :string, 1
31
+ optional :breakpoint_id, :string, 2
32
+ optional :client_version, :string, 3
33
+ end
34
+ add_message "google.devtools.clouddebugger.v2.ListBreakpointsRequest" do
35
+ optional :debuggee_id, :string, 1
36
+ optional :include_all_users, :bool, 2
37
+ optional :include_inactive, :bool, 3
38
+ optional :action, :message, 4, "google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue"
39
+ optional :strip_results, :bool, 5
40
+ optional :wait_token, :string, 6
41
+ optional :client_version, :string, 8
42
+ end
43
+ add_message "google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue" do
44
+ optional :value, :enum, 1, "google.devtools.clouddebugger.v2.Breakpoint.Action"
45
+ end
46
+ add_message "google.devtools.clouddebugger.v2.ListBreakpointsResponse" do
47
+ repeated :breakpoints, :message, 1, "google.devtools.clouddebugger.v2.Breakpoint"
48
+ optional :next_wait_token, :string, 2
49
+ end
50
+ add_message "google.devtools.clouddebugger.v2.ListDebuggeesRequest" do
51
+ optional :project, :string, 2
52
+ optional :include_inactive, :bool, 3
53
+ optional :client_version, :string, 4
54
+ end
55
+ add_message "google.devtools.clouddebugger.v2.ListDebuggeesResponse" do
56
+ repeated :debuggees, :message, 1, "google.devtools.clouddebugger.v2.Debuggee"
57
+ end
58
+ end
59
+ end
60
+
61
+ module Google
62
+ module Cloud
63
+ module Debugger
64
+ module V2
65
+ SetBreakpointRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.SetBreakpointRequest").msgclass
66
+ SetBreakpointResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.SetBreakpointResponse").msgclass
67
+ GetBreakpointRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.GetBreakpointRequest").msgclass
68
+ GetBreakpointResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.GetBreakpointResponse").msgclass
69
+ DeleteBreakpointRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.DeleteBreakpointRequest").msgclass
70
+ ListBreakpointsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListBreakpointsRequest").msgclass
71
+ ListBreakpointsRequest::BreakpointActionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue").msgclass
72
+ ListBreakpointsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListBreakpointsResponse").msgclass
73
+ ListDebuggeesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListDebuggeesRequest").msgclass
74
+ ListDebuggeesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListDebuggeesResponse").msgclass
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,65 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/devtools/clouddebugger/v2/debugger.proto for package 'Google.Cloud.Debugger.V2'
3
+ # Original file comments:
4
+ # Copyright 2019 Google LLC.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+ #
19
+
20
+ require 'grpc'
21
+ require 'google/devtools/clouddebugger/v2/debugger_pb'
22
+
23
+ module Google
24
+ module Cloud
25
+ module Debugger
26
+ module V2
27
+ module Debugger2
28
+ # The Debugger service provides the API that allows users to collect run-time
29
+ # information from a running application, without stopping or slowing it down
30
+ # and without modifying its state. An application may include one or
31
+ # more replicated processes performing the same work.
32
+ #
33
+ # A debugged application is represented using the Debuggee concept. The
34
+ # Debugger service provides a way to query for available debuggees, but does
35
+ # not provide a way to create one. A debuggee is created using the Controller
36
+ # service, usually by running a debugger agent with the application.
37
+ #
38
+ # The Debugger service enables the client to set one or more Breakpoints on a
39
+ # Debuggee and collect the results of the set Breakpoints.
40
+ class Service
41
+
42
+ include GRPC::GenericService
43
+
44
+ self.marshal_class_method = :encode
45
+ self.unmarshal_class_method = :decode
46
+ self.service_name = 'google.devtools.clouddebugger.v2.Debugger2'
47
+
48
+ # Sets the breakpoint to the debuggee.
49
+ rpc :SetBreakpoint, Google::Cloud::Debugger::V2::SetBreakpointRequest, Google::Cloud::Debugger::V2::SetBreakpointResponse
50
+ # Gets breakpoint information.
51
+ rpc :GetBreakpoint, Google::Cloud::Debugger::V2::GetBreakpointRequest, Google::Cloud::Debugger::V2::GetBreakpointResponse
52
+ # Deletes the breakpoint from the debuggee.
53
+ rpc :DeleteBreakpoint, Google::Cloud::Debugger::V2::DeleteBreakpointRequest, Google::Protobuf::Empty
54
+ # Lists all breakpoints for the debuggee.
55
+ rpc :ListBreakpoints, Google::Cloud::Debugger::V2::ListBreakpointsRequest, Google::Cloud::Debugger::V2::ListBreakpointsResponse
56
+ # Lists all the debuggees that the user has access to.
57
+ rpc :ListDebuggees, Google::Cloud::Debugger::V2::ListDebuggeesRequest, Google::Cloud::Debugger::V2::ListDebuggeesResponse
58
+ end
59
+
60
+ Stub = Service.rpc_stub_class
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end