dapr-ruby 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
4
  # source: dapr/proto/runtime/v1/appcallback.proto
3
5
 
@@ -8,8 +10,8 @@ require 'dapr/proto/common/v1/common_pb'
8
10
  require 'google/protobuf/struct_pb'
9
11
 
10
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("dapr/proto/runtime/v1/appcallback.proto", :syntax => :proto3) do
12
- add_message "dapr.proto.runtime.v1.TopicEventRequest" do
13
+ add_file('dapr/proto/runtime/v1/appcallback.proto', syntax: :proto3) do
14
+ add_message 'dapr.proto.runtime.v1.TopicEventRequest' do
13
15
  optional :id, :string, 1
14
16
  optional :source, :string, 2
15
17
  optional :type, :string, 3
@@ -19,94 +21,94 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
19
21
  optional :topic, :string, 6
20
22
  optional :pubsub_name, :string, 8
21
23
  optional :path, :string, 9
22
- optional :extensions, :message, 10, "google.protobuf.Struct"
24
+ optional :extensions, :message, 10, 'google.protobuf.Struct'
23
25
  end
24
- add_message "dapr.proto.runtime.v1.TopicEventResponse" do
25
- optional :status, :enum, 1, "dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus"
26
+ add_message 'dapr.proto.runtime.v1.TopicEventResponse' do
27
+ optional :status, :enum, 1, 'dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus'
26
28
  end
27
- add_enum "dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus" do
29
+ add_enum 'dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus' do
28
30
  value :SUCCESS, 0
29
31
  value :RETRY, 1
30
32
  value :DROP, 2
31
33
  end
32
- add_message "dapr.proto.runtime.v1.TopicEventCERequest" do
34
+ add_message 'dapr.proto.runtime.v1.TopicEventCERequest' do
33
35
  optional :id, :string, 1
34
36
  optional :source, :string, 2
35
37
  optional :type, :string, 3
36
38
  optional :spec_version, :string, 4
37
39
  optional :data_content_type, :string, 5
38
40
  optional :data, :bytes, 6
39
- optional :extensions, :message, 7, "google.protobuf.Struct"
41
+ optional :extensions, :message, 7, 'google.protobuf.Struct'
40
42
  end
41
- add_message "dapr.proto.runtime.v1.TopicEventBulkRequestEntry" do
43
+ add_message 'dapr.proto.runtime.v1.TopicEventBulkRequestEntry' do
42
44
  optional :entry_id, :string, 1
43
45
  optional :content_type, :string, 4
44
46
  map :metadata, :string, :string, 5
45
47
  oneof :event do
46
48
  optional :bytes, :bytes, 2
47
- optional :cloud_event, :message, 3, "dapr.proto.runtime.v1.TopicEventCERequest"
49
+ optional :cloud_event, :message, 3, 'dapr.proto.runtime.v1.TopicEventCERequest'
48
50
  end
49
51
  end
50
- add_message "dapr.proto.runtime.v1.TopicEventBulkRequest" do
52
+ add_message 'dapr.proto.runtime.v1.TopicEventBulkRequest' do
51
53
  optional :id, :string, 1
52
- repeated :entries, :message, 2, "dapr.proto.runtime.v1.TopicEventBulkRequestEntry"
54
+ repeated :entries, :message, 2, 'dapr.proto.runtime.v1.TopicEventBulkRequestEntry'
53
55
  map :metadata, :string, :string, 3
54
56
  optional :topic, :string, 4
55
57
  optional :pubsub_name, :string, 5
56
58
  optional :type, :string, 6
57
59
  optional :path, :string, 7
58
60
  end
59
- add_message "dapr.proto.runtime.v1.TopicEventBulkResponseEntry" do
61
+ add_message 'dapr.proto.runtime.v1.TopicEventBulkResponseEntry' do
60
62
  optional :entry_id, :string, 1
61
- optional :status, :enum, 2, "dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus"
63
+ optional :status, :enum, 2, 'dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus'
62
64
  end
63
- add_message "dapr.proto.runtime.v1.TopicEventBulkResponse" do
64
- repeated :statuses, :message, 1, "dapr.proto.runtime.v1.TopicEventBulkResponseEntry"
65
+ add_message 'dapr.proto.runtime.v1.TopicEventBulkResponse' do
66
+ repeated :statuses, :message, 1, 'dapr.proto.runtime.v1.TopicEventBulkResponseEntry'
65
67
  end
66
- add_message "dapr.proto.runtime.v1.BindingEventRequest" do
68
+ add_message 'dapr.proto.runtime.v1.BindingEventRequest' do
67
69
  optional :name, :string, 1
68
70
  optional :data, :bytes, 2
69
71
  map :metadata, :string, :string, 3
70
72
  end
71
- add_message "dapr.proto.runtime.v1.BindingEventResponse" do
73
+ add_message 'dapr.proto.runtime.v1.BindingEventResponse' do
72
74
  optional :store_name, :string, 1
73
- repeated :states, :message, 2, "dapr.proto.common.v1.StateItem"
75
+ repeated :states, :message, 2, 'dapr.proto.common.v1.StateItem'
74
76
  repeated :to, :string, 3
75
77
  optional :data, :bytes, 4
76
- optional :concurrency, :enum, 5, "dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency"
78
+ optional :concurrency, :enum, 5, 'dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency'
77
79
  end
78
- add_enum "dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency" do
80
+ add_enum 'dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency' do
79
81
  value :SEQUENTIAL, 0
80
82
  value :PARALLEL, 1
81
83
  end
82
- add_message "dapr.proto.runtime.v1.ListTopicSubscriptionsResponse" do
83
- repeated :subscriptions, :message, 1, "dapr.proto.runtime.v1.TopicSubscription"
84
+ add_message 'dapr.proto.runtime.v1.ListTopicSubscriptionsResponse' do
85
+ repeated :subscriptions, :message, 1, 'dapr.proto.runtime.v1.TopicSubscription'
84
86
  end
85
- add_message "dapr.proto.runtime.v1.TopicSubscription" do
87
+ add_message 'dapr.proto.runtime.v1.TopicSubscription' do
86
88
  optional :pubsub_name, :string, 1
87
89
  optional :topic, :string, 2
88
90
  map :metadata, :string, :string, 3
89
- optional :routes, :message, 5, "dapr.proto.runtime.v1.TopicRoutes"
91
+ optional :routes, :message, 5, 'dapr.proto.runtime.v1.TopicRoutes'
90
92
  optional :dead_letter_topic, :string, 6
91
- optional :bulk_subscribe, :message, 7, "dapr.proto.runtime.v1.BulkSubscribeConfig"
93
+ optional :bulk_subscribe, :message, 7, 'dapr.proto.runtime.v1.BulkSubscribeConfig'
92
94
  end
93
- add_message "dapr.proto.runtime.v1.TopicRoutes" do
94
- repeated :rules, :message, 1, "dapr.proto.runtime.v1.TopicRule"
95
+ add_message 'dapr.proto.runtime.v1.TopicRoutes' do
96
+ repeated :rules, :message, 1, 'dapr.proto.runtime.v1.TopicRule'
95
97
  optional :default, :string, 2
96
98
  end
97
- add_message "dapr.proto.runtime.v1.TopicRule" do
99
+ add_message 'dapr.proto.runtime.v1.TopicRule' do
98
100
  optional :match, :string, 1
99
101
  optional :path, :string, 2
100
102
  end
101
- add_message "dapr.proto.runtime.v1.BulkSubscribeConfig" do
103
+ add_message 'dapr.proto.runtime.v1.BulkSubscribeConfig' do
102
104
  optional :enabled, :bool, 1
103
105
  optional :max_messages_count, :int32, 2
104
106
  optional :max_await_duration_ms, :int32, 3
105
107
  end
106
- add_message "dapr.proto.runtime.v1.ListInputBindingsResponse" do
108
+ add_message 'dapr.proto.runtime.v1.ListInputBindingsResponse' do
107
109
  repeated :bindings, :string, 1
108
110
  end
109
- add_message "dapr.proto.runtime.v1.HealthCheckResponse" do
111
+ add_message 'dapr.proto.runtime.v1.HealthCheckResponse' do
110
112
  end
111
113
  end
112
114
  end
@@ -115,24 +117,24 @@ module Dapr
115
117
  module Proto
116
118
  module Runtime
117
119
  module V1
118
- TopicEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventRequest").msgclass
119
- TopicEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventResponse").msgclass
120
- TopicEventResponse::TopicEventResponseStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus").enummodule
121
- TopicEventCERequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventCERequest").msgclass
122
- TopicEventBulkRequestEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkRequestEntry").msgclass
123
- TopicEventBulkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkRequest").msgclass
124
- TopicEventBulkResponseEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkResponseEntry").msgclass
125
- TopicEventBulkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkResponse").msgclass
126
- BindingEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BindingEventRequest").msgclass
127
- BindingEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BindingEventResponse").msgclass
128
- BindingEventResponse::BindingEventConcurrency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency").enummodule
129
- ListTopicSubscriptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.ListTopicSubscriptionsResponse").msgclass
130
- TopicSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicSubscription").msgclass
131
- TopicRoutes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicRoutes").msgclass
132
- TopicRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicRule").msgclass
133
- BulkSubscribeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BulkSubscribeConfig").msgclass
134
- ListInputBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.ListInputBindingsResponse").msgclass
135
- HealthCheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.HealthCheckResponse").msgclass
120
+ TopicEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.TopicEventRequest').msgclass
121
+ TopicEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.TopicEventResponse').msgclass
122
+ TopicEventResponse::TopicEventResponseStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus').enummodule
123
+ TopicEventCERequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.TopicEventCERequest').msgclass
124
+ TopicEventBulkRequestEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.TopicEventBulkRequestEntry').msgclass
125
+ TopicEventBulkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.TopicEventBulkRequest').msgclass
126
+ TopicEventBulkResponseEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.TopicEventBulkResponseEntry').msgclass
127
+ TopicEventBulkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.TopicEventBulkResponse').msgclass
128
+ BindingEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.BindingEventRequest').msgclass
129
+ BindingEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.BindingEventResponse').msgclass
130
+ BindingEventResponse::BindingEventConcurrency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency').enummodule
131
+ ListTopicSubscriptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.ListTopicSubscriptionsResponse').msgclass
132
+ TopicSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.TopicSubscription').msgclass
133
+ TopicRoutes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.TopicRoutes').msgclass
134
+ TopicRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.TopicRule').msgclass
135
+ BulkSubscribeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.BulkSubscribeConfig').msgclass
136
+ ListInputBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.ListInputBindingsResponse').msgclass
137
+ HealthCheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.runtime.v1.HealthCheckResponse').msgclass
136
138
  end
137
139
  end
138
140
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
4
  # Source: dapr/proto/runtime/v1/appcallback.proto for package 'dapr.proto.runtime.v1'
3
5
  # Original file comments:
@@ -26,7 +28,6 @@ module Dapr
26
28
  # User application needs to implement AppCallback service if it needs to
27
29
  # receive message from dapr runtime.
28
30
  class Service
29
-
30
31
  include ::GRPC::GenericService
31
32
 
32
33
  self.marshal_class_method = :encode
@@ -36,25 +37,28 @@ module Dapr
36
37
  # Invokes service method with InvokeRequest.
37
38
  rpc :OnInvoke, ::Dapr::Proto::Common::V1::InvokeRequest, ::Dapr::Proto::Common::V1::InvokeResponse
38
39
  # Lists all topics subscribed by this app.
39
- rpc :ListTopicSubscriptions, ::Google::Protobuf::Empty, ::Dapr::Proto::Runtime::V1::ListTopicSubscriptionsResponse
40
+ rpc :ListTopicSubscriptions, ::Google::Protobuf::Empty,
41
+ ::Dapr::Proto::Runtime::V1::ListTopicSubscriptionsResponse
40
42
  # Subscribes events from Pubsub
41
- rpc :OnTopicEvent, ::Dapr::Proto::Runtime::V1::TopicEventRequest, ::Dapr::Proto::Runtime::V1::TopicEventResponse
43
+ rpc :OnTopicEvent, ::Dapr::Proto::Runtime::V1::TopicEventRequest,
44
+ ::Dapr::Proto::Runtime::V1::TopicEventResponse
42
45
  # Lists all input bindings subscribed by this app.
43
46
  rpc :ListInputBindings, ::Google::Protobuf::Empty, ::Dapr::Proto::Runtime::V1::ListInputBindingsResponse
44
47
  # Listens events from the input bindings
45
48
  #
46
49
  # User application can save the states or send the events to the output
47
50
  # bindings optionally by returning BindingEventResponse.
48
- rpc :OnBindingEvent, ::Dapr::Proto::Runtime::V1::BindingEventRequest, ::Dapr::Proto::Runtime::V1::BindingEventResponse
51
+ rpc :OnBindingEvent, ::Dapr::Proto::Runtime::V1::BindingEventRequest,
52
+ ::Dapr::Proto::Runtime::V1::BindingEventResponse
49
53
  end
50
54
 
51
55
  Stub = Service.rpc_stub_class
52
56
  end
57
+
53
58
  module AppCallbackHealthCheck
54
59
  # AppCallbackHealthCheck V1 is an optional extension to AppCallback V1 to implement
55
60
  # the HealthCheck method.
56
61
  class Service
57
-
58
62
  include ::GRPC::GenericService
59
63
 
60
64
  self.marshal_class_method = :encode
@@ -67,11 +71,11 @@ module Dapr
67
71
 
68
72
  Stub = Service.rpc_stub_class
69
73
  end
74
+
70
75
  module AppCallbackAlpha
71
76
  # AppCallbackAlpha V1 is an optional extension to AppCallback V1 to opt
72
77
  # for Alpha RPCs.
73
78
  class Service
74
-
75
79
  include ::GRPC::GenericService
76
80
 
77
81
  self.marshal_class_method = :encode
@@ -79,7 +83,8 @@ module Dapr
79
83
  self.service_name = 'dapr.proto.runtime.v1.AppCallbackAlpha'
80
84
 
81
85
  # Subscribes bulk events from Pubsub
82
- rpc :OnBulkTopicEventAlpha1, ::Dapr::Proto::Runtime::V1::TopicEventBulkRequest, ::Dapr::Proto::Runtime::V1::TopicEventBulkResponse
86
+ rpc :OnBulkTopicEventAlpha1, ::Dapr::Proto::Runtime::V1::TopicEventBulkRequest,
87
+ ::Dapr::Proto::Runtime::V1::TopicEventBulkResponse
83
88
  end
84
89
 
85
90
  Stub = Service.rpc_stub_class