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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '01098df34c04109617a1800f150de03625e2d8aa89a8adebdda2990532a4d01b'
4
- data.tar.gz: c935b97aef96168e7bd2cf87c592574ba45fdb867b6798fd8d1f8e69614f1969
3
+ metadata.gz: 679e30c854a7b1671d843bc6db7df6586c16e781850c089d45132c199c052e9f
4
+ data.tar.gz: 8e75c679a0174942d66a0d13b79ccc7f0caf0ef619b61282e95b64dcd03b3878
5
5
  SHA512:
6
- metadata.gz: a8821931ded640a679bb308b39acfdda8ff61329cb3c4f14d92b006838a9862ac0246f896d22ee357281320bb29984787365cab0d2720d6cbcef0f5abdaf3c77
7
- data.tar.gz: 930eaa2d87677f20867e83c88666e73728105da1d61ce30ce829b63223b286fa59bee6b30c0caa4fe9f275ca3c0c633e18f96104dd8147e5ec5245ed9ea28640
6
+ metadata.gz: bc1b97e76829a8ab928352fa41e024902246d115e04b9ecf37ee768a00e4df9b148f006a5122f953badbbb99bf8a3e3e2dc7da0765b6c14e72943077b7db8241
7
+ data.tar.gz: f4851face293a76493ea6ce54a53546c13ddae672515c913a1a9fe400e97256cf9e47135267bdd6f43858bcc3146c97db1b73625250dce5b3baf02aec11f7525
data/.gitignore CHANGED
@@ -7,6 +7,8 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /components/
10
+ Gemfile.lock
10
11
 
12
+ Gemfile.lock
11
13
  # rspec failure tracking
12
14
  .rspec_status
data/Rakefile CHANGED
@@ -5,4 +5,8 @@ require 'rspec/core/rake_task'
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
8
- task default: :spec
8
+ task :wipelock do
9
+ system 'rm -f Gemfile.lock'
10
+ end
11
+
12
+ task default: %i[spec wipelock]
@@ -77,7 +77,7 @@ message InvokeRequest {
77
77
  HTTPExtension http_extension = 4;
78
78
  }
79
79
 
80
- // InvokeResponse is the response message inclduing data and its content type
80
+ // InvokeResponse is the response message including data and its content type
81
81
  // from app callback.
82
82
  // This message is used in InvokeService of Dapr gRPC Service and OnInvoke
83
83
  // of AppCallback gRPC service.
@@ -79,9 +79,6 @@ service Dapr {
79
79
  // Unregister an actor reminder.
80
80
  rpc UnregisterActorReminder(UnregisterActorReminderRequest) returns (google.protobuf.Empty) {}
81
81
 
82
- // Rename an actor reminder.
83
- rpc RenameActorReminder(RenameActorReminderRequest) returns (google.protobuf.Empty) {}
84
-
85
82
  // Gets the state for a specific actor.
86
83
  rpc GetActorState(GetActorStateRequest) returns (GetActorStateResponse) {}
87
84
 
@@ -122,7 +119,7 @@ service Dapr {
122
119
  rpc DecryptAlpha1(stream DecryptRequest) returns (stream DecryptResponse);
123
120
 
124
121
  // Gets metadata of the sidecar
125
- rpc GetMetadata (google.protobuf.Empty) returns (GetMetadataResponse) {}
122
+ rpc GetMetadata (GetMetadataRequest) returns (GetMetadataResponse) {}
126
123
 
127
124
  // Sets value in extended metadata of the sidecar
128
125
  rpc SetMetadata (SetMetadataRequest) returns (google.protobuf.Empty) {}
@@ -169,8 +166,28 @@ service Dapr {
169
166
  // Raise an event to a running workflow instance
170
167
  rpc RaiseEventWorkflowAlpha1 (RaiseEventWorkflowRequest) returns (google.protobuf.Empty) {}
171
168
 
169
+ // Starts a new instance of a workflow
170
+ rpc StartWorkflowBeta1 (StartWorkflowRequest) returns (StartWorkflowResponse) {}
171
+
172
+ // Gets details about a started workflow instance
173
+ rpc GetWorkflowBeta1 (GetWorkflowRequest) returns (GetWorkflowResponse) {}
174
+
175
+ // Purge Workflow
176
+ rpc PurgeWorkflowBeta1 (PurgeWorkflowRequest) returns (google.protobuf.Empty) {}
177
+
178
+ // Terminates a running workflow instance
179
+ rpc TerminateWorkflowBeta1 (TerminateWorkflowRequest) returns (google.protobuf.Empty) {}
180
+
181
+ // Pauses a running workflow instance
182
+ rpc PauseWorkflowBeta1 (PauseWorkflowRequest) returns (google.protobuf.Empty) {}
183
+
184
+ // Resumes a paused workflow instance
185
+ rpc ResumeWorkflowBeta1 (ResumeWorkflowRequest) returns (google.protobuf.Empty) {}
186
+
187
+ // Raise an event to a running workflow instance
188
+ rpc RaiseEventWorkflowBeta1 (RaiseEventWorkflowRequest) returns (google.protobuf.Empty) {}
172
189
  // Shutdown the sidecar
173
- rpc Shutdown (google.protobuf.Empty) returns (google.protobuf.Empty) {}
190
+ rpc Shutdown (ShutdownRequest) returns (google.protobuf.Empty) {}
174
191
  }
175
192
 
176
193
  // InvokeServiceRequest represents the request message for Service invocation.
@@ -387,7 +404,6 @@ message BulkPublishResponse {
387
404
 
388
405
  // BulkPublishResponseFailedEntry is the message containing the entryID and error of a failed event in BulkPublishEvent call
389
406
  message BulkPublishResponseFailedEntry {
390
-
391
407
  // The response scoped unique ID referring to this message
392
408
  string entry_id = 1;
393
409
 
@@ -395,7 +411,6 @@ message BulkPublishResponseFailedEntry {
395
411
  string error = 2;
396
412
  }
397
413
 
398
-
399
414
  // InvokeBindingRequest is the message to send data to output bindings
400
415
  message InvokeBindingRequest {
401
416
  // The name of the output binding to invoke.
@@ -524,14 +539,6 @@ message UnregisterActorReminderRequest {
524
539
  string name = 3;
525
540
  }
526
541
 
527
- // RenameActorReminderRequest is the message to rename an actor reminder.
528
- message RenameActorReminderRequest {
529
- string actor_type = 1;
530
- string actor_id = 2;
531
- string old_name = 3;
532
- string new_name = 4;
533
- }
534
-
535
542
  // GetActorStateRequest is the message to get key-value states from specific actor.
536
543
  message GetActorStateRequest {
537
544
  string actor_type = 1;
@@ -542,6 +549,9 @@ message GetActorStateRequest {
542
549
  // GetActorStateResponse is the response conveying the actor's state value.
543
550
  message GetActorStateResponse {
544
551
  bytes data = 1;
552
+
553
+ // The metadata which will be sent to app.
554
+ map<string, string> metadata = 2;
545
555
  }
546
556
 
547
557
  // ExecuteActorStateTransactionRequest is the message to execute multiple operations on a specified actor.
@@ -577,13 +587,45 @@ message InvokeActorResponse {
577
587
  bytes data = 1;
578
588
  }
579
589
 
580
- // GetMetadataResponse is a message that is returned on GetMetadata rpc call
590
+ // GetMetadataRequest is the message for the GetMetadata request.
591
+ message GetMetadataRequest {
592
+ // Empty
593
+ }
594
+
595
+ // GetMetadataResponse is a message that is returned on GetMetadata rpc call.
581
596
  message GetMetadataResponse {
582
597
  string id = 1;
583
- repeated ActiveActorsCount active_actors_count = 2;
584
- repeated RegisteredComponents registered_components = 3;
585
- map<string, string> extended_metadata = 4;
586
- repeated PubsubSubscription subscriptions = 5;
598
+ // Deprecated alias for actor_runtime.active_actors.
599
+ repeated ActiveActorsCount active_actors_count = 2 [json_name = "actors", deprecated = true];
600
+ repeated RegisteredComponents registered_components = 3 [json_name = "components"];
601
+ map<string, string> extended_metadata = 4 [json_name = "extended"];
602
+ repeated PubsubSubscription subscriptions = 5 [json_name = "subscriptions"];
603
+ repeated MetadataHTTPEndpoint http_endpoints = 6 [json_name = "httpEndpoints"];
604
+ AppConnectionProperties app_connection_properties = 7 [json_name = "appConnectionProperties"];
605
+ string runtime_version = 8 [json_name = "runtimeVersion"];
606
+ repeated string enabled_features = 9 [json_name = "enabledFeatures"];
607
+ ActorRuntime actor_runtime = 10 [json_name = "actorRuntime"];
608
+ }
609
+
610
+ message ActorRuntime {
611
+ enum ActorRuntimeStatus {
612
+ // Indicates that the actor runtime is still being initialized.
613
+ INITIALIZING = 0;
614
+ // Indicates that the actor runtime is disabled.
615
+ // This normally happens when Dapr is started without "placement-host-address"
616
+ DISABLED = 1;
617
+ // Indicates the actor runtime is running, either as an actor host or client.
618
+ RUNNING = 2;
619
+ }
620
+
621
+ // Contains an enum indicating whether the actor runtime has been initialized.
622
+ ActorRuntimeStatus runtime_status = 1 [json_name = "runtimeStatus"];
623
+ // Count of active actors per type.
624
+ repeated ActiveActorsCount active_actors = 2 [json_name = "activeActors"];
625
+ // Indicates whether the actor runtime is ready to host actors.
626
+ bool host_ready = 3 [json_name = "hostReady"];
627
+ // Custom message from the placement provider.
628
+ string placement = 4 [json_name = "placement"];
587
629
  }
588
630
 
589
631
  message ActiveActorsCount {
@@ -598,12 +640,31 @@ message RegisteredComponents {
598
640
  repeated string capabilities = 4;
599
641
  }
600
642
 
643
+ message MetadataHTTPEndpoint {
644
+ string name = 1 [json_name = "name"];
645
+ }
646
+
647
+ message AppConnectionProperties {
648
+ int32 port = 1;
649
+ string protocol = 2;
650
+ string channel_address = 3 [json_name = "channelAddress"];
651
+ int32 max_concurrency = 4 [json_name = "maxConcurrency"];
652
+ AppConnectionHealthProperties health = 5;
653
+ }
654
+
655
+ message AppConnectionHealthProperties {
656
+ string health_check_path = 1 [json_name = "healthCheckPath"];
657
+ string health_probe_interval = 2 [json_name = "healthProbeInterval"];
658
+ string health_probe_timeout = 3 [json_name = "healthProbeTimeout"];
659
+ int32 health_threshold = 4 [json_name = "healthThreshold"];
660
+ }
661
+
601
662
  message PubsubSubscription {
602
- string pubsub_name = 1;
603
- string topic = 2;
604
- map<string,string> metadata = 3;
605
- PubsubSubscriptionRules rules = 4;
606
- string dead_letter_topic = 5;
663
+ string pubsub_name = 1 [json_name = "pubsubname"];
664
+ string topic = 2 [json_name = "topic"];
665
+ map<string,string> metadata = 3 [json_name = "metadata"];
666
+ PubsubSubscriptionRules rules = 4 [json_name = "rules"];
667
+ string dead_letter_topic = 5 [json_name = "deadLetterTopic"];
607
668
  }
608
669
 
609
670
  message PubsubSubscriptionRules {
@@ -900,7 +961,7 @@ message EncryptRequest {
900
961
  // Request details. Must be present in the first message only.
901
962
  EncryptRequestOptions options = 1;
902
963
  // Chunk of data of arbitrary size.
903
- // common.v1.StreamPayload payload = 2; // TODO: Commented out since it was causing an issue
964
+ common.v1.StreamPayload payload = 2;
904
965
  }
905
966
 
906
967
  // EncryptRequestOptions contains options for the first message in the EncryptAlpha1 request.
@@ -928,7 +989,7 @@ message EncryptRequestOptions {
928
989
  // EncryptResponse is the response for EncryptAlpha1.
929
990
  message EncryptResponse {
930
991
  // Chunk of data.
931
- // common.v1.StreamPayload payload = 1; // TODO: Commented out since it was causing an issue
992
+ common.v1.StreamPayload payload = 1;
932
993
  }
933
994
 
934
995
  // DecryptRequest is the request for DecryptAlpha1.
@@ -936,7 +997,7 @@ message DecryptRequest {
936
997
  // Request details. Must be present in the first message only.
937
998
  DecryptRequestOptions options = 1;
938
999
  // Chunk of data of arbitrary size.
939
- // common.v1.StreamPayload payload = 2; // TODO: Commented out since it was causing an issue
1000
+ common.v1.StreamPayload payload = 2;
940
1001
  }
941
1002
 
942
1003
  // DecryptRequestOptions contains options for the first message in the DecryptAlpha1 request.
@@ -952,10 +1013,10 @@ message DecryptRequestOptions {
952
1013
  // DecryptResponse is the response for DecryptAlpha1.
953
1014
  message DecryptResponse {
954
1015
  // Chunk of data.
955
- // common.v1.StreamPayload payload = 1; // TODO: Commented out since it was causing an issue
1016
+ common.v1.StreamPayload payload = 1;
956
1017
  }
957
1018
 
958
- // GetWorkflowRequest is the request for GetWorkflowAlpha1.
1019
+ // GetWorkflowRequest is the request for GetWorkflowBeta1.
959
1020
  message GetWorkflowRequest {
960
1021
  // ID of the workflow instance to query.
961
1022
  string instance_id = 1 [json_name = "instanceID"];
@@ -963,7 +1024,7 @@ message GetWorkflowRequest {
963
1024
  string workflow_component = 2 [json_name = "workflowComponent"];
964
1025
  }
965
1026
 
966
- // GetWorkflowResponse is the response for GetWorkflowAlpha1.
1027
+ // GetWorkflowResponse is the response for GetWorkflowBeta1.
967
1028
  message GetWorkflowResponse {
968
1029
  // ID of the workflow instance.
969
1030
  string instance_id = 1 [json_name = "instanceID"];
@@ -979,7 +1040,7 @@ message GetWorkflowResponse {
979
1040
  map<string, string> properties = 6;
980
1041
  }
981
1042
 
982
- // StartWorkflowRequest is the request for StartWorkflowAlpha1.
1043
+ // StartWorkflowRequest is the request for StartWorkflowBeta1.
983
1044
  message StartWorkflowRequest {
984
1045
  // The ID to assign to the started workflow instance. If empty, a random ID is generated.
985
1046
  string instance_id = 1 [json_name = "instanceID"];
@@ -993,13 +1054,13 @@ message StartWorkflowRequest {
993
1054
  bytes input = 5;
994
1055
  }
995
1056
 
996
- // StartWorkflowResponse is the response for StartWorkflowAlpha1.
1057
+ // StartWorkflowResponse is the response for StartWorkflowBeta1.
997
1058
  message StartWorkflowResponse {
998
1059
  // ID of the started workflow instance.
999
1060
  string instance_id = 1 [json_name = "instanceID"];
1000
1061
  }
1001
1062
 
1002
- // TerminateWorkflowRequest is the request for TerminateWorkflowAlpha1.
1063
+ // TerminateWorkflowRequest is the request for TerminateWorkflowBeta1.
1003
1064
  message TerminateWorkflowRequest {
1004
1065
  // ID of the workflow instance to terminate.
1005
1066
  string instance_id = 1 [json_name = "instanceID"];
@@ -1007,7 +1068,7 @@ message TerminateWorkflowRequest {
1007
1068
  string workflow_component = 2 [json_name = "workflowComponent"];
1008
1069
  }
1009
1070
 
1010
- // PauseWorkflowRequest is the request for PauseWorkflowAlpha1.
1071
+ // PauseWorkflowRequest is the request for PauseWorkflowBeta1.
1011
1072
  message PauseWorkflowRequest {
1012
1073
  // ID of the workflow instance to pause.
1013
1074
  string instance_id = 1 [json_name = "instanceID"];
@@ -1015,7 +1076,7 @@ message PauseWorkflowRequest {
1015
1076
  string workflow_component = 2 [json_name = "workflowComponent"];
1016
1077
  }
1017
1078
 
1018
- // ResumeWorkflowRequest is the request for ResumeWorkflowAlpha1.
1079
+ // ResumeWorkflowRequest is the request for ResumeWorkflowBeta1.
1019
1080
  message ResumeWorkflowRequest {
1020
1081
  // ID of the workflow instance to resume.
1021
1082
  string instance_id = 1 [json_name = "instanceID"];
@@ -1023,7 +1084,7 @@ message ResumeWorkflowRequest {
1023
1084
  string workflow_component = 2 [json_name = "workflowComponent"];
1024
1085
  }
1025
1086
 
1026
- // RaiseEventWorkflowRequest is the request for RaiseEventWorkflowAlpha1.
1087
+ // RaiseEventWorkflowRequest is the request for RaiseEventWorkflowBeta1.
1027
1088
  message RaiseEventWorkflowRequest {
1028
1089
  // ID of the workflow instance to raise an event for.
1029
1090
  string instance_id = 1 [json_name = "instanceID"];
@@ -1035,10 +1096,15 @@ message RaiseEventWorkflowRequest {
1035
1096
  bytes event_data = 4;
1036
1097
  }
1037
1098
 
1038
- // PurgeWorkflowRequest is the request for PurgeWorkflowAlpha1.
1099
+ // PurgeWorkflowRequest is the request for PurgeWorkflowBeta1.
1039
1100
  message PurgeWorkflowRequest {
1040
1101
  // ID of the workflow instance to purge.
1041
1102
  string instance_id = 1 [json_name = "instanceID"];
1042
1103
  // Name of the workflow component.
1043
1104
  string workflow_component = 2 [json_name = "workflowComponent"];
1044
- }
1105
+ }
1106
+
1107
+ // ShutdownRequest is the request for Shutdown.
1108
+ message ShutdownRequest {
1109
+ // Empty
1110
+ }
@@ -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,49 @@ 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
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
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
70
31
  end
71
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
72
35
  end
73
36
 
74
37
  module Dapr
75
38
  module Proto
76
39
  module Common
77
40
  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
41
+ HTTPExtension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.HTTPExtension").msgclass
42
+ HTTPExtension::Verb = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.HTTPExtension.Verb").enummodule
43
+ InvokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.InvokeRequest").msgclass
44
+ InvokeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.InvokeResponse").msgclass
45
+ StreamPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.StreamPayload").msgclass
46
+ StateItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.StateItem").msgclass
47
+ Etag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.Etag").msgclass
48
+ StateOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.StateOptions").msgclass
49
+ StateOptions::StateConcurrency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.StateOptions.StateConcurrency").enummodule
50
+ StateOptions::StateConsistency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.StateOptions.StateConsistency").enummodule
51
+ ConfigurationItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.common.v1.ConfigurationItem").msgclass
89
52
  end
90
53
  end
91
54
  end