dapr-ruby 0.4.4 → 1.13.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
1
1
  # frozen_string_literal: true
2
-
3
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
4
3
  # source: dapr/proto/runtime/v1/appcallback.proto
5
4
 
@@ -9,132 +8,57 @@ require 'google/protobuf/empty_pb'
9
8
  require 'dapr/proto/common/v1/common_pb'
10
9
  require 'google/protobuf/struct_pb'
11
10
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file('dapr/proto/runtime/v1/appcallback.proto', syntax: :proto3) do
14
- add_message 'dapr.proto.runtime.v1.TopicEventRequest' do
15
- optional :id, :string, 1
16
- optional :source, :string, 2
17
- optional :type, :string, 3
18
- optional :spec_version, :string, 4
19
- optional :data_content_type, :string, 5
20
- optional :data, :bytes, 7
21
- optional :topic, :string, 6
22
- optional :pubsub_name, :string, 8
23
- optional :path, :string, 9
24
- optional :extensions, :message, 10, 'google.protobuf.Struct'
25
- end
26
- add_message 'dapr.proto.runtime.v1.TopicEventResponse' do
27
- optional :status, :enum, 1, 'dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus'
28
- end
29
- add_enum 'dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus' do
30
- value :SUCCESS, 0
31
- value :RETRY, 1
32
- value :DROP, 2
33
- end
34
- add_message 'dapr.proto.runtime.v1.TopicEventCERequest' do
35
- optional :id, :string, 1
36
- optional :source, :string, 2
37
- optional :type, :string, 3
38
- optional :spec_version, :string, 4
39
- optional :data_content_type, :string, 5
40
- optional :data, :bytes, 6
41
- optional :extensions, :message, 7, 'google.protobuf.Struct'
42
- end
43
- add_message 'dapr.proto.runtime.v1.TopicEventBulkRequestEntry' do
44
- optional :entry_id, :string, 1
45
- optional :content_type, :string, 4
46
- map :metadata, :string, :string, 5
47
- oneof :event do
48
- optional :bytes, :bytes, 2
49
- optional :cloud_event, :message, 3, 'dapr.proto.runtime.v1.TopicEventCERequest'
50
- end
51
- end
52
- add_message 'dapr.proto.runtime.v1.TopicEventBulkRequest' do
53
- optional :id, :string, 1
54
- repeated :entries, :message, 2, 'dapr.proto.runtime.v1.TopicEventBulkRequestEntry'
55
- map :metadata, :string, :string, 3
56
- optional :topic, :string, 4
57
- optional :pubsub_name, :string, 5
58
- optional :type, :string, 6
59
- optional :path, :string, 7
60
- end
61
- add_message 'dapr.proto.runtime.v1.TopicEventBulkResponseEntry' do
62
- optional :entry_id, :string, 1
63
- optional :status, :enum, 2, 'dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus'
64
- end
65
- add_message 'dapr.proto.runtime.v1.TopicEventBulkResponse' do
66
- repeated :statuses, :message, 1, 'dapr.proto.runtime.v1.TopicEventBulkResponseEntry'
67
- end
68
- add_message 'dapr.proto.runtime.v1.BindingEventRequest' do
69
- optional :name, :string, 1
70
- optional :data, :bytes, 2
71
- map :metadata, :string, :string, 3
72
- end
73
- add_message 'dapr.proto.runtime.v1.BindingEventResponse' do
74
- optional :store_name, :string, 1
75
- repeated :states, :message, 2, 'dapr.proto.common.v1.StateItem'
76
- repeated :to, :string, 3
77
- optional :data, :bytes, 4
78
- optional :concurrency, :enum, 5, 'dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency'
79
- end
80
- add_enum 'dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency' do
81
- value :SEQUENTIAL, 0
82
- value :PARALLEL, 1
83
- end
84
- add_message 'dapr.proto.runtime.v1.ListTopicSubscriptionsResponse' do
85
- repeated :subscriptions, :message, 1, 'dapr.proto.runtime.v1.TopicSubscription'
86
- end
87
- add_message 'dapr.proto.runtime.v1.TopicSubscription' do
88
- optional :pubsub_name, :string, 1
89
- optional :topic, :string, 2
90
- map :metadata, :string, :string, 3
91
- optional :routes, :message, 5, 'dapr.proto.runtime.v1.TopicRoutes'
92
- optional :dead_letter_topic, :string, 6
93
- optional :bulk_subscribe, :message, 7, 'dapr.proto.runtime.v1.BulkSubscribeConfig'
94
- end
95
- add_message 'dapr.proto.runtime.v1.TopicRoutes' do
96
- repeated :rules, :message, 1, 'dapr.proto.runtime.v1.TopicRule'
97
- optional :default, :string, 2
98
- end
99
- add_message 'dapr.proto.runtime.v1.TopicRule' do
100
- optional :match, :string, 1
101
- optional :path, :string, 2
102
- end
103
- add_message 'dapr.proto.runtime.v1.BulkSubscribeConfig' do
104
- optional :enabled, :bool, 1
105
- optional :max_messages_count, :int32, 2
106
- optional :max_await_duration_ms, :int32, 3
107
- end
108
- add_message 'dapr.proto.runtime.v1.ListInputBindingsResponse' do
109
- repeated :bindings, :string, 1
110
- end
111
- add_message 'dapr.proto.runtime.v1.HealthCheckResponse' do
11
+
12
+ descriptor_data = "\n\'dapr/proto/runtime/v1/appcallback.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a!dapr/proto/common/v1/common.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xdb\x01\n\x11TopicEventRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x14\n\x0cspec_version\x18\x04 \x01(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x05 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x07 \x01(\x0c\x12\r\n\x05topic\x18\x06 \x01(\t\x12\x13\n\x0bpubsub_name\x18\x08 \x01(\t\x12\x0c\n\x04path\x18\t \x01(\t\x12+\n\nextensions\x18\n \x01(\x0b\x32\x17.google.protobuf.Struct\"\xa6\x01\n\x12TopicEventResponse\x12R\n\x06status\x18\x01 \x01(\x0e\x32\x42.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus\"<\n\x18TopicEventResponseStatus\x12\x0b\n\x07SUCCESS\x10\x00\x12\t\n\x05RETRY\x10\x01\x12\x08\n\x04\x44ROP\x10\x02\"\xab\x01\n\x13TopicEventCERequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x14\n\x0cspec_version\x18\x04 \x01(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x05 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x06 \x01(\x0c\x12+\n\nextensions\x18\x07 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xa5\x02\n\x1aTopicEventBulkRequestEntry\x12\x10\n\x08\x65ntry_id\x18\x01 \x01(\t\x12\x0f\n\x05\x62ytes\x18\x02 \x01(\x0cH\x00\x12\x41\n\x0b\x63loud_event\x18\x03 \x01(\x0b\x32*.dapr.proto.runtime.v1.TopicEventCERequestH\x00\x12\x14\n\x0c\x63ontent_type\x18\x04 \x01(\t\x12Q\n\x08metadata\x18\x05 \x03(\x0b\x32?.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x07\n\x05\x65vent\"\xa6\x02\n\x15TopicEventBulkRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x42\n\x07\x65ntries\x18\x02 \x03(\x0b\x32\x31.dapr.proto.runtime.v1.TopicEventBulkRequestEntry\x12L\n\x08metadata\x18\x03 \x03(\x0b\x32:.dapr.proto.runtime.v1.TopicEventBulkRequest.MetadataEntry\x12\r\n\x05topic\x18\x04 \x01(\t\x12\x13\n\x0bpubsub_name\x18\x05 \x01(\t\x12\x0c\n\x04type\x18\x06 \x01(\t\x12\x0c\n\x04path\x18\x07 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x83\x01\n\x1bTopicEventBulkResponseEntry\x12\x10\n\x08\x65ntry_id\x18\x01 \x01(\t\x12R\n\x06status\x18\x02 \x01(\x0e\x32\x42.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus\"^\n\x16TopicEventBulkResponse\x12\x44\n\x08statuses\x18\x01 \x03(\x0b\x32\x32.dapr.proto.runtime.v1.TopicEventBulkResponseEntry\"\xae\x01\n\x13\x42indingEventRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12J\n\x08metadata\x18\x03 \x03(\x0b\x32\x38.dapr.proto.runtime.v1.BindingEventRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x88\x02\n\x14\x42indingEventResponse\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12/\n\x06states\x18\x02 \x03(\x0b\x32\x1f.dapr.proto.common.v1.StateItem\x12\n\n\x02to\x18\x03 \x03(\t\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x12X\n\x0b\x63oncurrency\x18\x05 \x01(\x0e\x32\x43.dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency\"7\n\x17\x42indingEventConcurrency\x12\x0e\n\nSEQUENTIAL\x10\x00\x12\x0c\n\x08PARALLEL\x10\x01\"a\n\x1eListTopicSubscriptionsResponse\x12?\n\rsubscriptions\x18\x01 \x03(\x0b\x32(.dapr.proto.runtime.v1.TopicSubscription\"\xc5\x02\n\x11TopicSubscription\x12\x13\n\x0bpubsub_name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12H\n\x08metadata\x18\x03 \x03(\x0b\x32\x36.dapr.proto.runtime.v1.TopicSubscription.MetadataEntry\x12\x32\n\x06routes\x18\x05 \x01(\x0b\x32\".dapr.proto.runtime.v1.TopicRoutes\x12\x19\n\x11\x64\x65\x61\x64_letter_topic\x18\x06 \x01(\t\x12\x42\n\x0e\x62ulk_subscribe\x18\x07 \x01(\x0b\x32*.dapr.proto.runtime.v1.BulkSubscribeConfig\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"O\n\x0bTopicRoutes\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .dapr.proto.runtime.v1.TopicRule\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x02 \x01(\t\"(\n\tTopicRule\x12\r\n\x05match\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"a\n\x13\x42ulkSubscribeConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x1a\n\x12max_messages_count\x18\x02 \x01(\x05\x12\x1d\n\x15max_await_duration_ms\x18\x03 \x01(\x05\"-\n\x19ListInputBindingsResponse\x12\x10\n\x08\x62indings\x18\x01 \x03(\t\"\x15\n\x13HealthCheckResponse2\x86\x04\n\x0b\x41ppCallback\x12W\n\x08OnInvoke\x12#.dapr.proto.common.v1.InvokeRequest\x1a$.dapr.proto.common.v1.InvokeResponse\"\x00\x12i\n\x16ListTopicSubscriptions\x12\x16.google.protobuf.Empty\x1a\x35.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse\"\x00\x12\x65\n\x0cOnTopicEvent\x12(.dapr.proto.runtime.v1.TopicEventRequest\x1a).dapr.proto.runtime.v1.TopicEventResponse\"\x00\x12_\n\x11ListInputBindings\x12\x16.google.protobuf.Empty\x1a\x30.dapr.proto.runtime.v1.ListInputBindingsResponse\"\x00\x12k\n\x0eOnBindingEvent\x12*.dapr.proto.runtime.v1.BindingEventRequest\x1a+.dapr.proto.runtime.v1.BindingEventResponse\"\x00\x32m\n\x16\x41ppCallbackHealthCheck\x12S\n\x0bHealthCheck\x12\x16.google.protobuf.Empty\x1a*.dapr.proto.runtime.v1.HealthCheckResponse\"\x00\x32\x8b\x01\n\x10\x41ppCallbackAlpha\x12w\n\x16OnBulkTopicEventAlpha1\x12,.dapr.proto.runtime.v1.TopicEventBulkRequest\x1a-.dapr.proto.runtime.v1.TopicEventBulkResponse\"\x00\x42y\n\nio.dapr.v1B\x15\x44\x61prAppCallbackProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\xaa\x02 Dapr.AppCallback.Autogen.Grpc.v1b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError
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.Struct", "google/protobuf/struct.proto"],
28
+ ["dapr.proto.common.v1.StateItem", "dapr/proto/common/v1/common.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}"
112
34
  end
113
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."
114
38
  end
115
39
 
116
40
  module Dapr
117
41
  module Proto
118
42
  module Runtime
119
43
  module V1
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
44
+ TopicEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventRequest").msgclass
45
+ TopicEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventResponse").msgclass
46
+ TopicEventResponse::TopicEventResponseStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus").enummodule
47
+ TopicEventCERequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventCERequest").msgclass
48
+ TopicEventBulkRequestEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkRequestEntry").msgclass
49
+ TopicEventBulkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkRequest").msgclass
50
+ TopicEventBulkResponseEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkResponseEntry").msgclass
51
+ TopicEventBulkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkResponse").msgclass
52
+ BindingEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BindingEventRequest").msgclass
53
+ BindingEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BindingEventResponse").msgclass
54
+ BindingEventResponse::BindingEventConcurrency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency").enummodule
55
+ ListTopicSubscriptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.ListTopicSubscriptionsResponse").msgclass
56
+ TopicSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicSubscription").msgclass
57
+ TopicRoutes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicRoutes").msgclass
58
+ TopicRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicRule").msgclass
59
+ BulkSubscribeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BulkSubscribeConfig").msgclass
60
+ ListInputBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.ListInputBindingsResponse").msgclass
61
+ HealthCheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.HealthCheckResponse").msgclass
138
62
  end
139
63
  end
140
64
  end
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
4
2
  # Source: dapr/proto/runtime/v1/appcallback.proto for package 'dapr.proto.runtime.v1'
5
3
  # Original file comments:
@@ -28,6 +26,7 @@ module Dapr
28
26
  # User application needs to implement AppCallback service if it needs to
29
27
  # receive message from dapr runtime.
30
28
  class Service
29
+
31
30
  include ::GRPC::GenericService
32
31
 
33
32
  self.marshal_class_method = :encode
@@ -37,28 +36,25 @@ module Dapr
37
36
  # Invokes service method with InvokeRequest.
38
37
  rpc :OnInvoke, ::Dapr::Proto::Common::V1::InvokeRequest, ::Dapr::Proto::Common::V1::InvokeResponse
39
38
  # Lists all topics subscribed by this app.
40
- rpc :ListTopicSubscriptions, ::Google::Protobuf::Empty,
41
- ::Dapr::Proto::Runtime::V1::ListTopicSubscriptionsResponse
39
+ rpc :ListTopicSubscriptions, ::Google::Protobuf::Empty, ::Dapr::Proto::Runtime::V1::ListTopicSubscriptionsResponse
42
40
  # Subscribes events from Pubsub
43
- rpc :OnTopicEvent, ::Dapr::Proto::Runtime::V1::TopicEventRequest,
44
- ::Dapr::Proto::Runtime::V1::TopicEventResponse
41
+ rpc :OnTopicEvent, ::Dapr::Proto::Runtime::V1::TopicEventRequest, ::Dapr::Proto::Runtime::V1::TopicEventResponse
45
42
  # Lists all input bindings subscribed by this app.
46
43
  rpc :ListInputBindings, ::Google::Protobuf::Empty, ::Dapr::Proto::Runtime::V1::ListInputBindingsResponse
47
44
  # Listens events from the input bindings
48
45
  #
49
46
  # User application can save the states or send the events to the output
50
47
  # bindings optionally by returning BindingEventResponse.
51
- rpc :OnBindingEvent, ::Dapr::Proto::Runtime::V1::BindingEventRequest,
52
- ::Dapr::Proto::Runtime::V1::BindingEventResponse
48
+ rpc :OnBindingEvent, ::Dapr::Proto::Runtime::V1::BindingEventRequest, ::Dapr::Proto::Runtime::V1::BindingEventResponse
53
49
  end
54
50
 
55
51
  Stub = Service.rpc_stub_class
56
52
  end
57
-
58
53
  module AppCallbackHealthCheck
59
54
  # AppCallbackHealthCheck V1 is an optional extension to AppCallback V1 to implement
60
55
  # the HealthCheck method.
61
56
  class Service
57
+
62
58
  include ::GRPC::GenericService
63
59
 
64
60
  self.marshal_class_method = :encode
@@ -71,11 +67,11 @@ module Dapr
71
67
 
72
68
  Stub = Service.rpc_stub_class
73
69
  end
74
-
75
70
  module AppCallbackAlpha
76
71
  # AppCallbackAlpha V1 is an optional extension to AppCallback V1 to opt
77
72
  # for Alpha RPCs.
78
73
  class Service
74
+
79
75
  include ::GRPC::GenericService
80
76
 
81
77
  self.marshal_class_method = :encode
@@ -83,8 +79,7 @@ module Dapr
83
79
  self.service_name = 'dapr.proto.runtime.v1.AppCallbackAlpha'
84
80
 
85
81
  # Subscribes bulk events from Pubsub
86
- rpc :OnBulkTopicEventAlpha1, ::Dapr::Proto::Runtime::V1::TopicEventBulkRequest,
87
- ::Dapr::Proto::Runtime::V1::TopicEventBulkResponse
82
+ rpc :OnBulkTopicEventAlpha1, ::Dapr::Proto::Runtime::V1::TopicEventBulkRequest, ::Dapr::Proto::Runtime::V1::TopicEventBulkResponse
88
83
  end
89
84
 
90
85
  Stub = Service.rpc_stub_class