dapr-ruby 0.4.5 → 1.14.4

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/common/v1/common.proto
5
4
 
@@ -7,85 +6,27 @@ require 'google/protobuf'
7
6
 
8
7
  require 'google/protobuf/any_pb'
9
8
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file('dapr/proto/common/v1/common.proto', syntax: :proto3) do
12
- add_message 'dapr.proto.common.v1.HTTPExtension' do
13
- optional :verb, :enum, 1, 'dapr.proto.common.v1.HTTPExtension.Verb'
14
- optional :querystring, :string, 2
15
- end
16
- add_enum 'dapr.proto.common.v1.HTTPExtension.Verb' do
17
- value :NONE, 0
18
- value :GET, 1
19
- value :HEAD, 2
20
- value :POST, 3
21
- value :PUT, 4
22
- value :DELETE, 5
23
- value :CONNECT, 6
24
- value :OPTIONS, 7
25
- value :TRACE, 8
26
- value :PATCH, 9
27
- end
28
- add_message 'dapr.proto.common.v1.InvokeRequest' do
29
- optional :method, :string, 1
30
- optional :data, :message, 2, 'google.protobuf.Any'
31
- optional :content_type, :string, 3
32
- optional :http_extension, :message, 4, 'dapr.proto.common.v1.HTTPExtension'
33
- end
34
- add_message 'dapr.proto.common.v1.InvokeResponse' do
35
- optional :data, :message, 1, 'google.protobuf.Any'
36
- optional :content_type, :string, 2
37
- end
38
- add_message 'dapr.proto.common.v1.StreamPayload' do
39
- optional :data, :bytes, 1
40
- optional :seq, :uint64, 2
41
- end
42
- add_message 'dapr.proto.common.v1.StateItem' do
43
- optional :key, :string, 1
44
- optional :value, :bytes, 2
45
- optional :etag, :message, 3, 'dapr.proto.common.v1.Etag'
46
- map :metadata, :string, :string, 4
47
- optional :options, :message, 5, 'dapr.proto.common.v1.StateOptions'
48
- end
49
- add_message 'dapr.proto.common.v1.Etag' do
50
- optional :value, :string, 1
51
- end
52
- add_message 'dapr.proto.common.v1.StateOptions' do
53
- optional :concurrency, :enum, 1, 'dapr.proto.common.v1.StateOptions.StateConcurrency'
54
- optional :consistency, :enum, 2, 'dapr.proto.common.v1.StateOptions.StateConsistency'
55
- end
56
- add_enum 'dapr.proto.common.v1.StateOptions.StateConcurrency' do
57
- value :CONCURRENCY_UNSPECIFIED, 0
58
- value :CONCURRENCY_FIRST_WRITE, 1
59
- value :CONCURRENCY_LAST_WRITE, 2
60
- end
61
- add_enum 'dapr.proto.common.v1.StateOptions.StateConsistency' do
62
- value :CONSISTENCY_UNSPECIFIED, 0
63
- value :CONSISTENCY_EVENTUAL, 1
64
- value :CONSISTENCY_STRONG, 2
65
- end
66
- add_message 'dapr.proto.common.v1.ConfigurationItem' do
67
- optional :value, :string, 1
68
- optional :version, :string, 2
69
- map :metadata, :string, :string, 3
70
- end
71
- end
72
- end
9
+
10
+ descriptor_data = "\n!dapr/proto/common/v1/common.proto\x12\x14\x64\x61pr.proto.common.v1\x1a\x19google/protobuf/any.proto\"\xd0\x01\n\rHTTPExtension\x12\x36\n\x04verb\x18\x01 \x01(\x0e\x32(.dapr.proto.common.v1.HTTPExtension.Verb\x12\x13\n\x0bquerystring\x18\x02 \x01(\t\"r\n\x04Verb\x12\x08\n\x04NONE\x10\x00\x12\x07\n\x03GET\x10\x01\x12\x08\n\x04HEAD\x10\x02\x12\x08\n\x04POST\x10\x03\x12\x07\n\x03PUT\x10\x04\x12\n\n\x06\x44\x45LETE\x10\x05\x12\x0b\n\x07\x43ONNECT\x10\x06\x12\x0b\n\x07OPTIONS\x10\x07\x12\t\n\x05TRACE\x10\x08\x12\t\n\x05PATCH\x10\t\"\x96\x01\n\rInvokeRequest\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\"\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x14\n\x0c\x63ontent_type\x18\x03 \x01(\t\x12;\n\x0ehttp_extension\x18\x04 \x01(\x0b\x32#.dapr.proto.common.v1.HTTPExtension\"J\n\x0eInvokeResponse\x12\"\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x14\n\x0c\x63ontent_type\x18\x02 \x01(\t\"*\n\rStreamPayload\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x0b\n\x03seq\x18\x02 \x01(\x04\"\xf8\x01\n\tStateItem\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\x12(\n\x04\x65tag\x18\x03 \x01(\x0b\x32\x1a.dapr.proto.common.v1.Etag\x12?\n\x08metadata\x18\x04 \x03(\x0b\x32-.dapr.proto.common.v1.StateItem.MetadataEntry\x12\x33\n\x07options\x18\x05 \x01(\x0b\x32\".dapr.proto.common.v1.StateOptions\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x15\n\x04\x45tag\x12\r\n\x05value\x18\x01 \x01(\t\"\xef\x02\n\x0cStateOptions\x12H\n\x0b\x63oncurrency\x18\x01 \x01(\x0e\x32\x33.dapr.proto.common.v1.StateOptions.StateConcurrency\x12H\n\x0b\x63onsistency\x18\x02 \x01(\x0e\x32\x33.dapr.proto.common.v1.StateOptions.StateConsistency\"h\n\x10StateConcurrency\x12\x1b\n\x17\x43ONCURRENCY_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x43ONCURRENCY_FIRST_WRITE\x10\x01\x12\x1a\n\x16\x43ONCURRENCY_LAST_WRITE\x10\x02\"a\n\x10StateConsistency\x12\x1b\n\x17\x43ONSISTENCY_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43ONSISTENCY_EVENTUAL\x10\x01\x12\x16\n\x12\x43ONSISTENCY_STRONG\x10\x02\"\xad\x01\n\x11\x43onfigurationItem\x12\r\n\x05value\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12G\n\x08metadata\x18\x03 \x03(\x0b\x32\x35.dapr.proto.common.v1.ConfigurationItem.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42i\n\nio.dapr.v1B\x0c\x43ommonProtosZ/github.com/dapr/dapr/pkg/proto/common/v1;common\xaa\x02\x1b\x44\x61pr.Client.Autogen.Grpc.v1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
73
14
 
74
15
  module Dapr
75
16
  module Proto
76
17
  module Common
77
18
  module V1
78
- HTTPExtension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.common.v1.HTTPExtension').msgclass
79
- HTTPExtension::Verb = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.common.v1.HTTPExtension.Verb').enummodule
80
- InvokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.common.v1.InvokeRequest').msgclass
81
- InvokeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.common.v1.InvokeResponse').msgclass
82
- StreamPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.common.v1.StreamPayload').msgclass
83
- StateItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.common.v1.StateItem').msgclass
84
- Etag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.common.v1.Etag').msgclass
85
- StateOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.common.v1.StateOptions').msgclass
86
- StateOptions::StateConcurrency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.common.v1.StateOptions.StateConcurrency').enummodule
87
- StateOptions::StateConsistency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.common.v1.StateOptions.StateConsistency').enummodule
88
- ConfigurationItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('dapr.proto.common.v1.ConfigurationItem').msgclass
19
+ HTTPExtension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.HTTPExtension").msgclass
20
+ HTTPExtension::Verb = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.HTTPExtension.Verb").enummodule
21
+ InvokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.InvokeRequest").msgclass
22
+ InvokeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.InvokeResponse").msgclass
23
+ StreamPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.StreamPayload").msgclass
24
+ StateItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.StateItem").msgclass
25
+ Etag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.Etag").msgclass
26
+ StateOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.StateOptions").msgclass
27
+ StateOptions::StateConcurrency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.StateOptions.StateConcurrency").enummodule
28
+ StateOptions::StateConsistency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.StateOptions.StateConsistency").enummodule
29
+ ConfigurationItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.ConfigurationItem").msgclass
89
30
  end
90
31
  end
91
32
  end
@@ -1,140 +1,44 @@
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
 
6
5
  require 'google/protobuf'
7
6
 
7
+ require 'google/protobuf/any_pb'
8
8
  require 'google/protobuf/empty_pb'
9
9
  require 'dapr/proto/common/v1/common_pb'
10
10
  require 'google/protobuf/struct_pb'
11
11
 
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
112
- end
113
- end
114
- end
12
+
13
+ descriptor_data = "\n\'dapr/proto/runtime/v1/appcallback.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a!dapr/proto/common/v1/common.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa6\x01\n\x0fJobEventRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\"\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0e\n\x06method\x18\x03 \x01(\t\x12\x14\n\x0c\x63ontent_type\x18\x04 \x01(\t\x12;\n\x0ehttp_extension\x18\x05 \x01(\x0b\x32#.dapr.proto.common.v1.HTTPExtension\"\x12\n\x10JobEventResponse\"\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\xf0\x01\n\x10\x41ppCallbackAlpha\x12w\n\x16OnBulkTopicEventAlpha1\x12,.dapr.proto.runtime.v1.TopicEventBulkRequest\x1a-.dapr.proto.runtime.v1.TopicEventBulkResponse\"\x00\x12\x63\n\x10OnJobEventAlpha1\x12&.dapr.proto.runtime.v1.JobEventRequest\x1a\'.dapr.proto.runtime.v1.JobEventResponseBy\n\nio.dapr.v1B\x15\x44\x61prAppCallbackProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\xaa\x02 Dapr.AppCallback.Autogen.Grpc.v1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+ pool.add_serialized_file(descriptor_data)
115
17
 
116
18
  module Dapr
117
19
  module Proto
118
20
  module Runtime
119
21
  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
22
+ JobEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.JobEventRequest").msgclass
23
+ JobEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.JobEventResponse").msgclass
24
+ TopicEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventRequest").msgclass
25
+ TopicEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventResponse").msgclass
26
+ TopicEventResponse::TopicEventResponseStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus").enummodule
27
+ TopicEventCERequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventCERequest").msgclass
28
+ TopicEventBulkRequestEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkRequestEntry").msgclass
29
+ TopicEventBulkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkRequest").msgclass
30
+ TopicEventBulkResponseEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkResponseEntry").msgclass
31
+ TopicEventBulkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicEventBulkResponse").msgclass
32
+ BindingEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BindingEventRequest").msgclass
33
+ BindingEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BindingEventResponse").msgclass
34
+ BindingEventResponse::BindingEventConcurrency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency").enummodule
35
+ ListTopicSubscriptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.ListTopicSubscriptionsResponse").msgclass
36
+ TopicSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicSubscription").msgclass
37
+ TopicRoutes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicRoutes").msgclass
38
+ TopicRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.TopicRule").msgclass
39
+ BulkSubscribeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.BulkSubscribeConfig").msgclass
40
+ ListInputBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.ListInputBindingsResponse").msgclass
41
+ HealthCheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.HealthCheckResponse").msgclass
138
42
  end
139
43
  end
140
44
  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,9 @@ 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
83
+ # Sends job back to the app's endpoint at trigger time.
84
+ rpc :OnJobEventAlpha1, ::Dapr::Proto::Runtime::V1::JobEventRequest, ::Dapr::Proto::Runtime::V1::JobEventResponse
88
85
  end
89
86
 
90
87
  Stub = Service.rpc_stub_class