dapr-client 0.1.0 → 0.2.0
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.
- checksums.yaml +4 -4
 - data/.ruby-version +1 -1
 - data/CHANGELOG.md +3 -0
 - data/Gemfile.lock +1 -1
 - data/README.md +22 -5
 - data/bin/regen_client.sh +15 -0
 - data/dapr.gemspec +1 -1
 - data/dapr/proto/common/v1/common.proto +140 -0
 - data/dapr/proto/runtime/v1/appcallback.proto +131 -0
 - data/dapr/proto/runtime/v1/dapr.proto +155 -0
 - data/example.rb +1 -1
 - data/examples/app-callback/README.md +20 -0
 - data/examples/app-callback/app_callback_example.rb +15 -0
 - data/examples/app-callback/app_callback_service.rb +51 -0
 - data/examples/invoke-simple/README.md +17 -0
 - data/examples/invoke-simple/invoke-caller.rb +19 -0
 - data/examples/invoke-simple/invoke-receiver.rb +26 -0
 - data/examples/pubsub-simple/README.md +13 -0
 - data/examples/pubsub-simple/publisher.rb +15 -0
 - data/examples/pubsub-simple/subscriber.rb +28 -0
 - data/examples/state-store/README.md +7 -0
 - data/examples/state-store/state-store.rb +29 -0
 - data/lib/dapr/proto/common/v1/common_pb.rb +87 -0
 - data/lib/dapr/proto/runtime/v1/appcallback_pb.rb +62 -0
 - data/lib/dapr/proto/runtime/v1/appcallback_services_pb.rb +49 -0
 - data/lib/dapr/proto/runtime/v1/dapr_pb.rb +75 -0
 - data/lib/dapr/proto/runtime/v1/dapr_services_pb.rb +49 -0
 - data/lib/dapr/version.rb +1 -1
 - metadata +26 -13
 - data/lib/dapr/generated/dapr_pb.rb +0 -99
 - data/lib/dapr/generated/dapr_services_pb.rb +0 -29
 - data/lib/dapr/generated/daprclient_pb.rb +0 -72
 - data/lib/dapr/generated/daprclient_services_pb.rb +0 -27
 - data/proto/dapr.proto +0 -108
 - data/proto/daprclient.proto +0 -76
 
| 
         @@ -0,0 +1,75 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
      
 2 
     | 
    
         
            +
            # source: dapr/proto/runtime/v1/dapr.proto
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            require 'google/protobuf'
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            require 'google/protobuf/empty_pb'
         
     | 
| 
      
 7 
     | 
    
         
            +
            require 'dapr/proto/common/v1/common_pb'
         
     | 
| 
      
 8 
     | 
    
         
            +
            Google::Protobuf::DescriptorPool.generated_pool.build do
         
     | 
| 
      
 9 
     | 
    
         
            +
              add_file("dapr/proto/runtime/v1/dapr.proto", :syntax => :proto3) do
         
     | 
| 
      
 10 
     | 
    
         
            +
                add_message "dapr.proto.runtime.v1.InvokeServiceRequest" do
         
     | 
| 
      
 11 
     | 
    
         
            +
                  optional :id, :string, 1
         
     | 
| 
      
 12 
     | 
    
         
            +
                  optional :message, :message, 3, "dapr.proto.common.v1.InvokeRequest"
         
     | 
| 
      
 13 
     | 
    
         
            +
                end
         
     | 
| 
      
 14 
     | 
    
         
            +
                add_message "dapr.proto.runtime.v1.GetStateRequest" do
         
     | 
| 
      
 15 
     | 
    
         
            +
                  optional :store_name, :string, 1
         
     | 
| 
      
 16 
     | 
    
         
            +
                  optional :key, :string, 2
         
     | 
| 
      
 17 
     | 
    
         
            +
                  optional :consistency, :enum, 3, "dapr.proto.common.v1.StateOptions.StateConsistency"
         
     | 
| 
      
 18 
     | 
    
         
            +
                end
         
     | 
| 
      
 19 
     | 
    
         
            +
                add_message "dapr.proto.runtime.v1.GetStateResponse" do
         
     | 
| 
      
 20 
     | 
    
         
            +
                  optional :data, :bytes, 1
         
     | 
| 
      
 21 
     | 
    
         
            +
                  optional :etag, :string, 2
         
     | 
| 
      
 22 
     | 
    
         
            +
                end
         
     | 
| 
      
 23 
     | 
    
         
            +
                add_message "dapr.proto.runtime.v1.DeleteStateRequest" do
         
     | 
| 
      
 24 
     | 
    
         
            +
                  optional :store_name, :string, 1
         
     | 
| 
      
 25 
     | 
    
         
            +
                  optional :key, :string, 2
         
     | 
| 
      
 26 
     | 
    
         
            +
                  optional :etag, :string, 3
         
     | 
| 
      
 27 
     | 
    
         
            +
                  optional :options, :message, 4, "dapr.proto.common.v1.StateOptions"
         
     | 
| 
      
 28 
     | 
    
         
            +
                end
         
     | 
| 
      
 29 
     | 
    
         
            +
                add_message "dapr.proto.runtime.v1.SaveStateRequest" do
         
     | 
| 
      
 30 
     | 
    
         
            +
                  optional :store_name, :string, 1
         
     | 
| 
      
 31 
     | 
    
         
            +
                  repeated :states, :message, 2, "dapr.proto.common.v1.StateItem"
         
     | 
| 
      
 32 
     | 
    
         
            +
                end
         
     | 
| 
      
 33 
     | 
    
         
            +
                add_message "dapr.proto.runtime.v1.PublishEventRequest" do
         
     | 
| 
      
 34 
     | 
    
         
            +
                  optional :topic, :string, 1
         
     | 
| 
      
 35 
     | 
    
         
            +
                  optional :data, :bytes, 2
         
     | 
| 
      
 36 
     | 
    
         
            +
                end
         
     | 
| 
      
 37 
     | 
    
         
            +
                add_message "dapr.proto.runtime.v1.InvokeBindingRequest" do
         
     | 
| 
      
 38 
     | 
    
         
            +
                  optional :name, :string, 1
         
     | 
| 
      
 39 
     | 
    
         
            +
                  optional :data, :bytes, 2
         
     | 
| 
      
 40 
     | 
    
         
            +
                  map :metadata, :string, :string, 3
         
     | 
| 
      
 41 
     | 
    
         
            +
                  optional :operation, :string, 4
         
     | 
| 
      
 42 
     | 
    
         
            +
                end
         
     | 
| 
      
 43 
     | 
    
         
            +
                add_message "dapr.proto.runtime.v1.InvokeBindingResponse" do
         
     | 
| 
      
 44 
     | 
    
         
            +
                  optional :data, :bytes, 1
         
     | 
| 
      
 45 
     | 
    
         
            +
                  map :metadata, :string, :string, 2
         
     | 
| 
      
 46 
     | 
    
         
            +
                end
         
     | 
| 
      
 47 
     | 
    
         
            +
                add_message "dapr.proto.runtime.v1.GetSecretRequest" do
         
     | 
| 
      
 48 
     | 
    
         
            +
                  optional :store_name, :string, 1
         
     | 
| 
      
 49 
     | 
    
         
            +
                  optional :key, :string, 2
         
     | 
| 
      
 50 
     | 
    
         
            +
                  map :metadata, :string, :string, 3
         
     | 
| 
      
 51 
     | 
    
         
            +
                end
         
     | 
| 
      
 52 
     | 
    
         
            +
                add_message "dapr.proto.runtime.v1.GetSecretResponse" do
         
     | 
| 
      
 53 
     | 
    
         
            +
                  map :data, :string, :string, 1
         
     | 
| 
      
 54 
     | 
    
         
            +
                end
         
     | 
| 
      
 55 
     | 
    
         
            +
              end
         
     | 
| 
      
 56 
     | 
    
         
            +
            end
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
            module Dapr
         
     | 
| 
      
 59 
     | 
    
         
            +
              module Proto
         
     | 
| 
      
 60 
     | 
    
         
            +
                module Runtime
         
     | 
| 
      
 61 
     | 
    
         
            +
                  module V1
         
     | 
| 
      
 62 
     | 
    
         
            +
                    InvokeServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.InvokeServiceRequest").msgclass
         
     | 
| 
      
 63 
     | 
    
         
            +
                    GetStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.GetStateRequest").msgclass
         
     | 
| 
      
 64 
     | 
    
         
            +
                    GetStateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.GetStateResponse").msgclass
         
     | 
| 
      
 65 
     | 
    
         
            +
                    DeleteStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.DeleteStateRequest").msgclass
         
     | 
| 
      
 66 
     | 
    
         
            +
                    SaveStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.SaveStateRequest").msgclass
         
     | 
| 
      
 67 
     | 
    
         
            +
                    PublishEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.PublishEventRequest").msgclass
         
     | 
| 
      
 68 
     | 
    
         
            +
                    InvokeBindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.InvokeBindingRequest").msgclass
         
     | 
| 
      
 69 
     | 
    
         
            +
                    InvokeBindingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.InvokeBindingResponse").msgclass
         
     | 
| 
      
 70 
     | 
    
         
            +
                    GetSecretRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.GetSecretRequest").msgclass
         
     | 
| 
      
 71 
     | 
    
         
            +
                    GetSecretResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.proto.runtime.v1.GetSecretResponse").msgclass
         
     | 
| 
      
 72 
     | 
    
         
            +
                  end
         
     | 
| 
      
 73 
     | 
    
         
            +
                end
         
     | 
| 
      
 74 
     | 
    
         
            +
              end
         
     | 
| 
      
 75 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,49 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
      
 2 
     | 
    
         
            +
            # Source: dapr/proto/runtime/v1/dapr.proto for package 'dapr.proto.runtime.v1'
         
     | 
| 
      
 3 
     | 
    
         
            +
            # Original file comments:
         
     | 
| 
      
 4 
     | 
    
         
            +
            # ------------------------------------------------------------
         
     | 
| 
      
 5 
     | 
    
         
            +
            # Copyright (c) Microsoft Corporation.
         
     | 
| 
      
 6 
     | 
    
         
            +
            # Licensed under the MIT License.
         
     | 
| 
      
 7 
     | 
    
         
            +
            # ------------------------------------------------------------
         
     | 
| 
      
 8 
     | 
    
         
            +
            #
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            require 'grpc'
         
     | 
| 
      
 11 
     | 
    
         
            +
            require 'dapr/proto/runtime/v1/dapr_pb'
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            module Dapr
         
     | 
| 
      
 14 
     | 
    
         
            +
              module Proto
         
     | 
| 
      
 15 
     | 
    
         
            +
                module Runtime
         
     | 
| 
      
 16 
     | 
    
         
            +
                  module V1
         
     | 
| 
      
 17 
     | 
    
         
            +
                    module Dapr
         
     | 
| 
      
 18 
     | 
    
         
            +
                      # Dapr service provides APIs to user application to access Dapr building blocks.
         
     | 
| 
      
 19 
     | 
    
         
            +
                      class Service
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
                        include GRPC::GenericService
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
                        self.marshal_class_method = :encode
         
     | 
| 
      
 24 
     | 
    
         
            +
                        self.unmarshal_class_method = :decode
         
     | 
| 
      
 25 
     | 
    
         
            +
                        self.service_name = 'dapr.proto.runtime.v1.Dapr'
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                        # Invokes a method on a remote Dapr app.
         
     | 
| 
      
 28 
     | 
    
         
            +
                        # Nested Dapr modules are problematic so this must be prefixed as a top-level constant
         
     | 
| 
      
 29 
     | 
    
         
            +
                        rpc :InvokeService, InvokeServiceRequest, ::Dapr::Proto::Common::V1::InvokeResponse
         
     | 
| 
      
 30 
     | 
    
         
            +
                        # Gets the state for a specific key.
         
     | 
| 
      
 31 
     | 
    
         
            +
                        rpc :GetState, GetStateRequest, GetStateResponse
         
     | 
| 
      
 32 
     | 
    
         
            +
                        # Saves the state for a specific key.
         
     | 
| 
      
 33 
     | 
    
         
            +
                        rpc :SaveState, SaveStateRequest, Google::Protobuf::Empty
         
     | 
| 
      
 34 
     | 
    
         
            +
                        # Deletes the state for a specific key.
         
     | 
| 
      
 35 
     | 
    
         
            +
                        rpc :DeleteState, DeleteStateRequest, Google::Protobuf::Empty
         
     | 
| 
      
 36 
     | 
    
         
            +
                        # Publishes events to the specific topic.
         
     | 
| 
      
 37 
     | 
    
         
            +
                        rpc :PublishEvent, PublishEventRequest, Google::Protobuf::Empty
         
     | 
| 
      
 38 
     | 
    
         
            +
                        # Invokes binding data to specific output bindings
         
     | 
| 
      
 39 
     | 
    
         
            +
                        rpc :InvokeBinding, InvokeBindingRequest, InvokeBindingResponse
         
     | 
| 
      
 40 
     | 
    
         
            +
                        # Gets secrets from secret stores.
         
     | 
| 
      
 41 
     | 
    
         
            +
                        rpc :GetSecret, GetSecretRequest, GetSecretResponse
         
     | 
| 
      
 42 
     | 
    
         
            +
                      end
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
                      Stub = Service.rpc_stub_class
         
     | 
| 
      
 45 
     | 
    
         
            +
                    end
         
     | 
| 
      
 46 
     | 
    
         
            +
                  end
         
     | 
| 
      
 47 
     | 
    
         
            +
                end
         
     | 
| 
      
 48 
     | 
    
         
            +
              end
         
     | 
| 
      
 49 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/dapr/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: dapr-client
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.2.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - tjwp
         
     | 
| 
       8 
     | 
    
         
            -
            autorequire: 
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2020- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2020-07-16 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: google-protobuf
         
     | 
| 
         @@ -113,18 +113,32 @@ files: 
     | 
|
| 
       113 
113 
     | 
    
         
             
            - README.md
         
     | 
| 
       114 
114 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       115 
115 
     | 
    
         
             
            - bin/console
         
     | 
| 
      
 116 
     | 
    
         
            +
            - bin/regen_client.sh
         
     | 
| 
       116 
117 
     | 
    
         
             
            - bin/setup
         
     | 
| 
       117 
118 
     | 
    
         
             
            - dapr.gemspec
         
     | 
| 
      
 119 
     | 
    
         
            +
            - dapr/proto/common/v1/common.proto
         
     | 
| 
      
 120 
     | 
    
         
            +
            - dapr/proto/runtime/v1/appcallback.proto
         
     | 
| 
      
 121 
     | 
    
         
            +
            - dapr/proto/runtime/v1/dapr.proto
         
     | 
| 
       118 
122 
     | 
    
         
             
            - example.rb
         
     | 
| 
      
 123 
     | 
    
         
            +
            - examples/app-callback/README.md
         
     | 
| 
      
 124 
     | 
    
         
            +
            - examples/app-callback/app_callback_example.rb
         
     | 
| 
      
 125 
     | 
    
         
            +
            - examples/app-callback/app_callback_service.rb
         
     | 
| 
      
 126 
     | 
    
         
            +
            - examples/invoke-simple/README.md
         
     | 
| 
      
 127 
     | 
    
         
            +
            - examples/invoke-simple/invoke-caller.rb
         
     | 
| 
      
 128 
     | 
    
         
            +
            - examples/invoke-simple/invoke-receiver.rb
         
     | 
| 
      
 129 
     | 
    
         
            +
            - examples/pubsub-simple/README.md
         
     | 
| 
      
 130 
     | 
    
         
            +
            - examples/pubsub-simple/publisher.rb
         
     | 
| 
      
 131 
     | 
    
         
            +
            - examples/pubsub-simple/subscriber.rb
         
     | 
| 
      
 132 
     | 
    
         
            +
            - examples/state-store/README.md
         
     | 
| 
      
 133 
     | 
    
         
            +
            - examples/state-store/state-store.rb
         
     | 
| 
       119 
134 
     | 
    
         
             
            - lib/dapr-client.rb
         
     | 
| 
       120 
135 
     | 
    
         
             
            - lib/dapr.rb
         
     | 
| 
       121 
     | 
    
         
            -
            - lib/dapr/ 
     | 
| 
       122 
     | 
    
         
            -
            - lib/dapr/ 
     | 
| 
       123 
     | 
    
         
            -
            - lib/dapr/ 
     | 
| 
       124 
     | 
    
         
            -
            - lib/dapr/ 
     | 
| 
      
 136 
     | 
    
         
            +
            - lib/dapr/proto/common/v1/common_pb.rb
         
     | 
| 
      
 137 
     | 
    
         
            +
            - lib/dapr/proto/runtime/v1/appcallback_pb.rb
         
     | 
| 
      
 138 
     | 
    
         
            +
            - lib/dapr/proto/runtime/v1/appcallback_services_pb.rb
         
     | 
| 
      
 139 
     | 
    
         
            +
            - lib/dapr/proto/runtime/v1/dapr_pb.rb
         
     | 
| 
      
 140 
     | 
    
         
            +
            - lib/dapr/proto/runtime/v1/dapr_services_pb.rb
         
     | 
| 
       125 
141 
     | 
    
         
             
            - lib/dapr/version.rb
         
     | 
| 
       126 
     | 
    
         
            -
            - proto/dapr.proto
         
     | 
| 
       127 
     | 
    
         
            -
            - proto/daprclient.proto
         
     | 
| 
       128 
142 
     | 
    
         
             
            homepage: https://github.com/tjwp/dapr-ruby-sdk
         
     | 
| 
       129 
143 
     | 
    
         
             
            licenses:
         
     | 
| 
       130 
144 
     | 
    
         
             
            - MIT
         
     | 
| 
         @@ -134,11 +148,10 @@ metadata: 
     | 
|
| 
       134 
148 
     | 
    
         
             
              source_code_uri: https://github.com/tjwp/dapr-ruby-sdk
         
     | 
| 
       135 
149 
     | 
    
         
             
              changelog_uri: https://github.com/tjwp/dapr-ruby-sdk/CHANGELOG.md
         
     | 
| 
       136 
150 
     | 
    
         
             
              github_repo: ssh://github.com/tjwp/dapr-ruby-sdk
         
     | 
| 
       137 
     | 
    
         
            -
            post_install_message: 
     | 
| 
      
 151 
     | 
    
         
            +
            post_install_message:
         
     | 
| 
       138 
152 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       139 
153 
     | 
    
         
             
            require_paths:
         
     | 
| 
       140 
154 
     | 
    
         
             
            - lib
         
     | 
| 
       141 
     | 
    
         
            -
            - lib/dapr/generated
         
     | 
| 
       142 
155 
     | 
    
         
             
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
       143 
156 
     | 
    
         
             
              requirements:
         
     | 
| 
       144 
157 
     | 
    
         
             
              - - ">="
         
     | 
| 
         @@ -150,8 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       150 
163 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       151 
164 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       152 
165 
     | 
    
         
             
            requirements: []
         
     | 
| 
       153 
     | 
    
         
            -
            rubygems_version: 3.0. 
     | 
| 
       154 
     | 
    
         
            -
            signing_key: 
     | 
| 
      
 166 
     | 
    
         
            +
            rubygems_version: 3.0.3
         
     | 
| 
      
 167 
     | 
    
         
            +
            signing_key:
         
     | 
| 
       155 
168 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       156 
169 
     | 
    
         
             
            summary: Dapr SDK for Ruby
         
     | 
| 
       157 
170 
     | 
    
         
             
            test_files: []
         
     | 
| 
         @@ -1,99 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
     | 
    
         
            -
            # source: dapr.proto
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            require 'google/protobuf'
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            require 'google/protobuf/any_pb'
         
     | 
| 
       7 
     | 
    
         
            -
            require 'google/protobuf/empty_pb'
         
     | 
| 
       8 
     | 
    
         
            -
            require 'google/protobuf/duration_pb'
         
     | 
| 
       9 
     | 
    
         
            -
            Google::Protobuf::DescriptorPool.generated_pool.build do
         
     | 
| 
       10 
     | 
    
         
            -
              add_file("dapr.proto", :syntax => :proto3) do
         
     | 
| 
       11 
     | 
    
         
            -
                add_message "dapr.InvokeServiceResponseEnvelope" do
         
     | 
| 
       12 
     | 
    
         
            -
                  optional :data, :message, 1, "google.protobuf.Any"
         
     | 
| 
       13 
     | 
    
         
            -
                  map :metadata, :string, :string, 2
         
     | 
| 
       14 
     | 
    
         
            -
                end
         
     | 
| 
       15 
     | 
    
         
            -
                add_message "dapr.DeleteStateEnvelope" do
         
     | 
| 
       16 
     | 
    
         
            -
                  optional :storeName, :string, 1
         
     | 
| 
       17 
     | 
    
         
            -
                  optional :key, :string, 2
         
     | 
| 
       18 
     | 
    
         
            -
                  optional :etag, :string, 3
         
     | 
| 
       19 
     | 
    
         
            -
                  optional :options, :message, 4, "dapr.StateOptions"
         
     | 
| 
       20 
     | 
    
         
            -
                end
         
     | 
| 
       21 
     | 
    
         
            -
                add_message "dapr.SaveStateEnvelope" do
         
     | 
| 
       22 
     | 
    
         
            -
                  optional :storeName, :string, 1
         
     | 
| 
       23 
     | 
    
         
            -
                  repeated :requests, :message, 2, "dapr.StateRequest"
         
     | 
| 
       24 
     | 
    
         
            -
                end
         
     | 
| 
       25 
     | 
    
         
            -
                add_message "dapr.GetStateEnvelope" do
         
     | 
| 
       26 
     | 
    
         
            -
                  optional :storeName, :string, 1
         
     | 
| 
       27 
     | 
    
         
            -
                  optional :key, :string, 2
         
     | 
| 
       28 
     | 
    
         
            -
                  optional :consistency, :string, 3
         
     | 
| 
       29 
     | 
    
         
            -
                end
         
     | 
| 
       30 
     | 
    
         
            -
                add_message "dapr.GetStateResponseEnvelope" do
         
     | 
| 
       31 
     | 
    
         
            -
                  optional :data, :message, 1, "google.protobuf.Any"
         
     | 
| 
       32 
     | 
    
         
            -
                  optional :etag, :string, 2
         
     | 
| 
       33 
     | 
    
         
            -
                end
         
     | 
| 
       34 
     | 
    
         
            -
                add_message "dapr.GetSecretEnvelope" do
         
     | 
| 
       35 
     | 
    
         
            -
                  optional :storeName, :string, 1
         
     | 
| 
       36 
     | 
    
         
            -
                  optional :key, :string, 2
         
     | 
| 
       37 
     | 
    
         
            -
                  map :metadata, :string, :string, 3
         
     | 
| 
       38 
     | 
    
         
            -
                end
         
     | 
| 
       39 
     | 
    
         
            -
                add_message "dapr.GetSecretResponseEnvelope" do
         
     | 
| 
       40 
     | 
    
         
            -
                  map :data, :string, :string, 1
         
     | 
| 
       41 
     | 
    
         
            -
                end
         
     | 
| 
       42 
     | 
    
         
            -
                add_message "dapr.InvokeBindingEnvelope" do
         
     | 
| 
       43 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       44 
     | 
    
         
            -
                  optional :data, :message, 2, "google.protobuf.Any"
         
     | 
| 
       45 
     | 
    
         
            -
                  map :metadata, :string, :string, 3
         
     | 
| 
       46 
     | 
    
         
            -
                end
         
     | 
| 
       47 
     | 
    
         
            -
                add_message "dapr.InvokeServiceEnvelope" do
         
     | 
| 
       48 
     | 
    
         
            -
                  optional :id, :string, 1
         
     | 
| 
       49 
     | 
    
         
            -
                  optional :method, :string, 2
         
     | 
| 
       50 
     | 
    
         
            -
                  optional :data, :message, 3, "google.protobuf.Any"
         
     | 
| 
       51 
     | 
    
         
            -
                  map :metadata, :string, :string, 4
         
     | 
| 
       52 
     | 
    
         
            -
                end
         
     | 
| 
       53 
     | 
    
         
            -
                add_message "dapr.PublishEventEnvelope" do
         
     | 
| 
       54 
     | 
    
         
            -
                  optional :topic, :string, 1
         
     | 
| 
       55 
     | 
    
         
            -
                  optional :data, :message, 2, "google.protobuf.Any"
         
     | 
| 
       56 
     | 
    
         
            -
                end
         
     | 
| 
       57 
     | 
    
         
            -
                add_message "dapr.State" do
         
     | 
| 
       58 
     | 
    
         
            -
                  optional :key, :string, 1
         
     | 
| 
       59 
     | 
    
         
            -
                  optional :value, :message, 2, "google.protobuf.Any"
         
     | 
| 
       60 
     | 
    
         
            -
                  optional :etag, :string, 3
         
     | 
| 
       61 
     | 
    
         
            -
                  map :metadata, :string, :string, 4
         
     | 
| 
       62 
     | 
    
         
            -
                  optional :options, :message, 5, "dapr.StateOptions"
         
     | 
| 
       63 
     | 
    
         
            -
                end
         
     | 
| 
       64 
     | 
    
         
            -
                add_message "dapr.StateOptions" do
         
     | 
| 
       65 
     | 
    
         
            -
                  optional :concurrency, :string, 1
         
     | 
| 
       66 
     | 
    
         
            -
                  optional :consistency, :string, 2
         
     | 
| 
       67 
     | 
    
         
            -
                  optional :retryPolicy, :message, 3, "dapr.RetryPolicy"
         
     | 
| 
       68 
     | 
    
         
            -
                end
         
     | 
| 
       69 
     | 
    
         
            -
                add_message "dapr.RetryPolicy" do
         
     | 
| 
       70 
     | 
    
         
            -
                  optional :threshold, :int32, 1
         
     | 
| 
       71 
     | 
    
         
            -
                  optional :pattern, :string, 2
         
     | 
| 
       72 
     | 
    
         
            -
                  optional :interval, :message, 3, "google.protobuf.Duration"
         
     | 
| 
       73 
     | 
    
         
            -
                end
         
     | 
| 
       74 
     | 
    
         
            -
                add_message "dapr.StateRequest" do
         
     | 
| 
       75 
     | 
    
         
            -
                  optional :key, :string, 1
         
     | 
| 
       76 
     | 
    
         
            -
                  optional :value, :message, 2, "google.protobuf.Any"
         
     | 
| 
       77 
     | 
    
         
            -
                  optional :etag, :string, 3
         
     | 
| 
       78 
     | 
    
         
            -
                  map :metadata, :string, :string, 4
         
     | 
| 
       79 
     | 
    
         
            -
                  optional :options, :message, 5, "dapr.StateOptions"
         
     | 
| 
       80 
     | 
    
         
            -
                end
         
     | 
| 
       81 
     | 
    
         
            -
              end
         
     | 
| 
       82 
     | 
    
         
            -
            end
         
     | 
| 
       83 
     | 
    
         
            -
             
     | 
| 
       84 
     | 
    
         
            -
            module Dapr
         
     | 
| 
       85 
     | 
    
         
            -
              InvokeServiceResponseEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.InvokeServiceResponseEnvelope").msgclass
         
     | 
| 
       86 
     | 
    
         
            -
              DeleteStateEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.DeleteStateEnvelope").msgclass
         
     | 
| 
       87 
     | 
    
         
            -
              SaveStateEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.SaveStateEnvelope").msgclass
         
     | 
| 
       88 
     | 
    
         
            -
              GetStateEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.GetStateEnvelope").msgclass
         
     | 
| 
       89 
     | 
    
         
            -
              GetStateResponseEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.GetStateResponseEnvelope").msgclass
         
     | 
| 
       90 
     | 
    
         
            -
              GetSecretEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.GetSecretEnvelope").msgclass
         
     | 
| 
       91 
     | 
    
         
            -
              GetSecretResponseEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.GetSecretResponseEnvelope").msgclass
         
     | 
| 
       92 
     | 
    
         
            -
              InvokeBindingEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.InvokeBindingEnvelope").msgclass
         
     | 
| 
       93 
     | 
    
         
            -
              InvokeServiceEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.InvokeServiceEnvelope").msgclass
         
     | 
| 
       94 
     | 
    
         
            -
              PublishEventEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.PublishEventEnvelope").msgclass
         
     | 
| 
       95 
     | 
    
         
            -
              State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.State").msgclass
         
     | 
| 
       96 
     | 
    
         
            -
              StateOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.StateOptions").msgclass
         
     | 
| 
       97 
     | 
    
         
            -
              RetryPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.RetryPolicy").msgclass
         
     | 
| 
       98 
     | 
    
         
            -
              StateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dapr.StateRequest").msgclass
         
     | 
| 
       99 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,29 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
     | 
    
         
            -
            # Source: dapr.proto for package 'dapr'
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            require 'grpc'
         
     | 
| 
       5 
     | 
    
         
            -
            require 'dapr_pb'
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            module Dapr
         
     | 
| 
       8 
     | 
    
         
            -
              module Dapr
         
     | 
| 
       9 
     | 
    
         
            -
                # Dapr definitions
         
     | 
| 
       10 
     | 
    
         
            -
                class Service
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
                  include GRPC::GenericService
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
                  self.marshal_class_method = :encode
         
     | 
| 
       15 
     | 
    
         
            -
                  self.unmarshal_class_method = :decode
         
     | 
| 
       16 
     | 
    
         
            -
                  self.service_name = 'dapr.Dapr'
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
                  rpc :PublishEvent, PublishEventEnvelope, Google::Protobuf::Empty
         
     | 
| 
       19 
     | 
    
         
            -
                  rpc :InvokeService, InvokeServiceEnvelope, InvokeServiceResponseEnvelope
         
     | 
| 
       20 
     | 
    
         
            -
                  rpc :InvokeBinding, InvokeBindingEnvelope, Google::Protobuf::Empty
         
     | 
| 
       21 
     | 
    
         
            -
                  rpc :GetState, GetStateEnvelope, GetStateResponseEnvelope
         
     | 
| 
       22 
     | 
    
         
            -
                  rpc :GetSecret, GetSecretEnvelope, GetSecretResponseEnvelope
         
     | 
| 
       23 
     | 
    
         
            -
                  rpc :SaveState, SaveStateEnvelope, Google::Protobuf::Empty
         
     | 
| 
       24 
     | 
    
         
            -
                  rpc :DeleteState, DeleteStateEnvelope, Google::Protobuf::Empty
         
     | 
| 
       25 
     | 
    
         
            -
                end
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
                Stub = Service.rpc_stub_class
         
     | 
| 
       28 
     | 
    
         
            -
              end
         
     | 
| 
       29 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,72 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
     | 
    
         
            -
            # source: daprclient.proto
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            require 'google/protobuf'
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            require 'google/protobuf/any_pb'
         
     | 
| 
       7 
     | 
    
         
            -
            require 'google/protobuf/empty_pb'
         
     | 
| 
       8 
     | 
    
         
            -
            require 'google/protobuf/duration_pb'
         
     | 
| 
       9 
     | 
    
         
            -
            Google::Protobuf::DescriptorPool.generated_pool.build do
         
     | 
| 
       10 
     | 
    
         
            -
              add_file("daprclient.proto", :syntax => :proto3) do
         
     | 
| 
       11 
     | 
    
         
            -
                add_message "daprclient.CloudEventEnvelope" do
         
     | 
| 
       12 
     | 
    
         
            -
                  optional :id, :string, 1
         
     | 
| 
       13 
     | 
    
         
            -
                  optional :source, :string, 2
         
     | 
| 
       14 
     | 
    
         
            -
                  optional :type, :string, 3
         
     | 
| 
       15 
     | 
    
         
            -
                  optional :specVersion, :string, 4
         
     | 
| 
       16 
     | 
    
         
            -
                  optional :dataContentType, :string, 5
         
     | 
| 
       17 
     | 
    
         
            -
                  optional :topic, :string, 6
         
     | 
| 
       18 
     | 
    
         
            -
                  optional :data, :message, 7, "google.protobuf.Any"
         
     | 
| 
       19 
     | 
    
         
            -
                end
         
     | 
| 
       20 
     | 
    
         
            -
                add_message "daprclient.BindingEventEnvelope" do
         
     | 
| 
       21 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       22 
     | 
    
         
            -
                  optional :data, :message, 2, "google.protobuf.Any"
         
     | 
| 
       23 
     | 
    
         
            -
                  map :metadata, :string, :string, 3
         
     | 
| 
       24 
     | 
    
         
            -
                end
         
     | 
| 
       25 
     | 
    
         
            -
                add_message "daprclient.BindingResponseEnvelope" do
         
     | 
| 
       26 
     | 
    
         
            -
                  optional :data, :message, 1, "google.protobuf.Any"
         
     | 
| 
       27 
     | 
    
         
            -
                  repeated :to, :string, 2
         
     | 
| 
       28 
     | 
    
         
            -
                  repeated :state, :message, 3, "daprclient.State"
         
     | 
| 
       29 
     | 
    
         
            -
                  optional :concurrency, :string, 4
         
     | 
| 
       30 
     | 
    
         
            -
                end
         
     | 
| 
       31 
     | 
    
         
            -
                add_message "daprclient.InvokeEnvelope" do
         
     | 
| 
       32 
     | 
    
         
            -
                  optional :method, :string, 1
         
     | 
| 
       33 
     | 
    
         
            -
                  optional :data, :message, 2, "google.protobuf.Any"
         
     | 
| 
       34 
     | 
    
         
            -
                  map :metadata, :string, :string, 3
         
     | 
| 
       35 
     | 
    
         
            -
                end
         
     | 
| 
       36 
     | 
    
         
            -
                add_message "daprclient.GetTopicSubscriptionsEnvelope" do
         
     | 
| 
       37 
     | 
    
         
            -
                  repeated :topics, :string, 1
         
     | 
| 
       38 
     | 
    
         
            -
                end
         
     | 
| 
       39 
     | 
    
         
            -
                add_message "daprclient.GetBindingsSubscriptionsEnvelope" do
         
     | 
| 
       40 
     | 
    
         
            -
                  repeated :bindings, :string, 1
         
     | 
| 
       41 
     | 
    
         
            -
                end
         
     | 
| 
       42 
     | 
    
         
            -
                add_message "daprclient.State" do
         
     | 
| 
       43 
     | 
    
         
            -
                  optional :key, :string, 1
         
     | 
| 
       44 
     | 
    
         
            -
                  optional :value, :message, 2, "google.protobuf.Any"
         
     | 
| 
       45 
     | 
    
         
            -
                  optional :etag, :string, 3
         
     | 
| 
       46 
     | 
    
         
            -
                  map :metadata, :string, :string, 4
         
     | 
| 
       47 
     | 
    
         
            -
                  optional :options, :message, 5, "daprclient.StateOptions"
         
     | 
| 
       48 
     | 
    
         
            -
                end
         
     | 
| 
       49 
     | 
    
         
            -
                add_message "daprclient.StateOptions" do
         
     | 
| 
       50 
     | 
    
         
            -
                  optional :concurrency, :string, 1
         
     | 
| 
       51 
     | 
    
         
            -
                  optional :consistency, :string, 2
         
     | 
| 
       52 
     | 
    
         
            -
                  optional :retryPolicy, :message, 3, "daprclient.RetryPolicy"
         
     | 
| 
       53 
     | 
    
         
            -
                end
         
     | 
| 
       54 
     | 
    
         
            -
                add_message "daprclient.RetryPolicy" do
         
     | 
| 
       55 
     | 
    
         
            -
                  optional :threshold, :int32, 1
         
     | 
| 
       56 
     | 
    
         
            -
                  optional :pattern, :string, 2
         
     | 
| 
       57 
     | 
    
         
            -
                  optional :interval, :message, 3, "google.protobuf.Duration"
         
     | 
| 
       58 
     | 
    
         
            -
                end
         
     | 
| 
       59 
     | 
    
         
            -
              end
         
     | 
| 
       60 
     | 
    
         
            -
            end
         
     | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
       62 
     | 
    
         
            -
            module Daprclient
         
     | 
| 
       63 
     | 
    
         
            -
              CloudEventEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("daprclient.CloudEventEnvelope").msgclass
         
     | 
| 
       64 
     | 
    
         
            -
              BindingEventEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("daprclient.BindingEventEnvelope").msgclass
         
     | 
| 
       65 
     | 
    
         
            -
              BindingResponseEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("daprclient.BindingResponseEnvelope").msgclass
         
     | 
| 
       66 
     | 
    
         
            -
              InvokeEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("daprclient.InvokeEnvelope").msgclass
         
     | 
| 
       67 
     | 
    
         
            -
              GetTopicSubscriptionsEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("daprclient.GetTopicSubscriptionsEnvelope").msgclass
         
     | 
| 
       68 
     | 
    
         
            -
              GetBindingsSubscriptionsEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("daprclient.GetBindingsSubscriptionsEnvelope").msgclass
         
     | 
| 
       69 
     | 
    
         
            -
              State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("daprclient.State").msgclass
         
     | 
| 
       70 
     | 
    
         
            -
              StateOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("daprclient.StateOptions").msgclass
         
     | 
| 
       71 
     | 
    
         
            -
              RetryPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("daprclient.RetryPolicy").msgclass
         
     | 
| 
       72 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,27 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
     | 
    
         
            -
            # Source: daprclient.proto for package 'daprclient'
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            require 'grpc'
         
     | 
| 
       5 
     | 
    
         
            -
            require 'daprclient_pb'
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            module Daprclient
         
     | 
| 
       8 
     | 
    
         
            -
              module DaprClient
         
     | 
| 
       9 
     | 
    
         
            -
                # User Code definitions
         
     | 
| 
       10 
     | 
    
         
            -
                class Service
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
                  include GRPC::GenericService
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
                  self.marshal_class_method = :encode
         
     | 
| 
       15 
     | 
    
         
            -
                  self.unmarshal_class_method = :decode
         
     | 
| 
       16 
     | 
    
         
            -
                  self.service_name = 'daprclient.DaprClient'
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
                  rpc :OnInvoke, InvokeEnvelope, Google::Protobuf::Any
         
     | 
| 
       19 
     | 
    
         
            -
                  rpc :GetTopicSubscriptions, Google::Protobuf::Empty, GetTopicSubscriptionsEnvelope
         
     | 
| 
       20 
     | 
    
         
            -
                  rpc :GetBindingsSubscriptions, Google::Protobuf::Empty, GetBindingsSubscriptionsEnvelope
         
     | 
| 
       21 
     | 
    
         
            -
                  rpc :OnBindingEvent, BindingEventEnvelope, BindingResponseEnvelope
         
     | 
| 
       22 
     | 
    
         
            -
                  rpc :OnTopicEvent, CloudEventEnvelope, Google::Protobuf::Empty
         
     | 
| 
       23 
     | 
    
         
            -
                end
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
                Stub = Service.rpc_stub_class
         
     | 
| 
       26 
     | 
    
         
            -
              end
         
     | 
| 
       27 
     | 
    
         
            -
            end
         
     | 
    
        data/proto/dapr.proto
    DELETED
    
    | 
         @@ -1,108 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            syntax = "proto3";
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            package dapr;
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            import "google/protobuf/any.proto";
         
     | 
| 
       6 
     | 
    
         
            -
            import "google/protobuf/empty.proto";
         
     | 
| 
       7 
     | 
    
         
            -
            import "google/protobuf/duration.proto";
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            option java_outer_classname = "DaprProtos";
         
     | 
| 
       10 
     | 
    
         
            -
            option java_package = "io.dapr";
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
            option csharp_namespace = "Dapr.Client.Autogen.Grpc";
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            // Dapr definitions
         
     | 
| 
       16 
     | 
    
         
            -
            service Dapr {
         
     | 
| 
       17 
     | 
    
         
            -
              rpc PublishEvent(PublishEventEnvelope) returns (google.protobuf.Empty) {}
         
     | 
| 
       18 
     | 
    
         
            -
              rpc InvokeService(InvokeServiceEnvelope) returns (InvokeServiceResponseEnvelope) {}
         
     | 
| 
       19 
     | 
    
         
            -
              rpc InvokeBinding(InvokeBindingEnvelope) returns (google.protobuf.Empty) {}
         
     | 
| 
       20 
     | 
    
         
            -
              rpc GetState(GetStateEnvelope) returns (GetStateResponseEnvelope) {}
         
     | 
| 
       21 
     | 
    
         
            -
              rpc GetSecret(GetSecretEnvelope) returns (GetSecretResponseEnvelope) {}
         
     | 
| 
       22 
     | 
    
         
            -
              rpc SaveState(SaveStateEnvelope) returns (google.protobuf.Empty) {}
         
     | 
| 
       23 
     | 
    
         
            -
              rpc DeleteState(DeleteStateEnvelope) returns (google.protobuf.Empty) {}
         
     | 
| 
       24 
     | 
    
         
            -
            }
         
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
            message InvokeServiceResponseEnvelope {
         
     | 
| 
       27 
     | 
    
         
            -
              google.protobuf.Any data = 1;
         
     | 
| 
       28 
     | 
    
         
            -
              map<string,string> metadata = 2;
         
     | 
| 
       29 
     | 
    
         
            -
            }
         
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
            message DeleteStateEnvelope {
         
     | 
| 
       32 
     | 
    
         
            -
              string storeName = 1;
         
     | 
| 
       33 
     | 
    
         
            -
              string key = 2;
         
     | 
| 
       34 
     | 
    
         
            -
              string etag = 3;
         
     | 
| 
       35 
     | 
    
         
            -
              StateOptions options = 4;
         
     | 
| 
       36 
     | 
    
         
            -
            }
         
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
            message SaveStateEnvelope {
         
     | 
| 
       39 
     | 
    
         
            -
              string storeName = 1;
         
     | 
| 
       40 
     | 
    
         
            -
              repeated StateRequest requests = 2;
         
     | 
| 
       41 
     | 
    
         
            -
            }
         
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
            message GetStateEnvelope {
         
     | 
| 
       44 
     | 
    
         
            -
                string storeName = 1;
         
     | 
| 
       45 
     | 
    
         
            -
                string key = 2;
         
     | 
| 
       46 
     | 
    
         
            -
                string consistency = 3;
         
     | 
| 
       47 
     | 
    
         
            -
            }
         
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
            message GetStateResponseEnvelope {
         
     | 
| 
       50 
     | 
    
         
            -
              google.protobuf.Any data = 1;
         
     | 
| 
       51 
     | 
    
         
            -
              string etag = 2;
         
     | 
| 
       52 
     | 
    
         
            -
            }
         
     | 
| 
       53 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
            message GetSecretEnvelope {
         
     | 
| 
       55 
     | 
    
         
            -
              string storeName = 1;
         
     | 
| 
       56 
     | 
    
         
            -
              string key = 2;
         
     | 
| 
       57 
     | 
    
         
            -
              map<string,string> metadata = 3;
         
     | 
| 
       58 
     | 
    
         
            -
            }
         
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
       60 
     | 
    
         
            -
            message GetSecretResponseEnvelope {
         
     | 
| 
       61 
     | 
    
         
            -
              map<string,string> data = 1;
         
     | 
| 
       62 
     | 
    
         
            -
            }
         
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
            message InvokeBindingEnvelope {
         
     | 
| 
       65 
     | 
    
         
            -
              string name = 1;
         
     | 
| 
       66 
     | 
    
         
            -
              google.protobuf.Any data = 2;
         
     | 
| 
       67 
     | 
    
         
            -
              map<string,string> metadata = 3;
         
     | 
| 
       68 
     | 
    
         
            -
            }
         
     | 
| 
       69 
     | 
    
         
            -
             
     | 
| 
       70 
     | 
    
         
            -
            message InvokeServiceEnvelope {
         
     | 
| 
       71 
     | 
    
         
            -
              string id = 1;
         
     | 
| 
       72 
     | 
    
         
            -
              string method = 2;
         
     | 
| 
       73 
     | 
    
         
            -
              google.protobuf.Any data = 3;
         
     | 
| 
       74 
     | 
    
         
            -
              map<string,string> metadata = 4;
         
     | 
| 
       75 
     | 
    
         
            -
            }
         
     | 
| 
       76 
     | 
    
         
            -
             
     | 
| 
       77 
     | 
    
         
            -
            message PublishEventEnvelope {
         
     | 
| 
       78 
     | 
    
         
            -
                string topic = 1;
         
     | 
| 
       79 
     | 
    
         
            -
                google.protobuf.Any data = 2;
         
     | 
| 
       80 
     | 
    
         
            -
            }
         
     | 
| 
       81 
     | 
    
         
            -
             
     | 
| 
       82 
     | 
    
         
            -
            message State {
         
     | 
| 
       83 
     | 
    
         
            -
              string key = 1;
         
     | 
| 
       84 
     | 
    
         
            -
              google.protobuf.Any value = 2;
         
     | 
| 
       85 
     | 
    
         
            -
              string etag = 3;
         
     | 
| 
       86 
     | 
    
         
            -
              map<string,string> metadata = 4;
         
     | 
| 
       87 
     | 
    
         
            -
              StateOptions options = 5;
         
     | 
| 
       88 
     | 
    
         
            -
            }
         
     | 
| 
       89 
     | 
    
         
            -
             
     | 
| 
       90 
     | 
    
         
            -
            message StateOptions {
         
     | 
| 
       91 
     | 
    
         
            -
              string concurrency = 1;
         
     | 
| 
       92 
     | 
    
         
            -
              string consistency = 2;
         
     | 
| 
       93 
     | 
    
         
            -
              RetryPolicy retryPolicy = 3;
         
     | 
| 
       94 
     | 
    
         
            -
            }
         
     | 
| 
       95 
     | 
    
         
            -
             
     | 
| 
       96 
     | 
    
         
            -
            message RetryPolicy {
         
     | 
| 
       97 
     | 
    
         
            -
              int32 threshold = 1;
         
     | 
| 
       98 
     | 
    
         
            -
              string pattern = 2;
         
     | 
| 
       99 
     | 
    
         
            -
              google.protobuf.Duration interval = 3;
         
     | 
| 
       100 
     | 
    
         
            -
            }
         
     | 
| 
       101 
     | 
    
         
            -
             
     | 
| 
       102 
     | 
    
         
            -
            message StateRequest {
         
     | 
| 
       103 
     | 
    
         
            -
              string key = 1;
         
     | 
| 
       104 
     | 
    
         
            -
              google.protobuf.Any value = 2;
         
     | 
| 
       105 
     | 
    
         
            -
              string etag = 3;
         
     | 
| 
       106 
     | 
    
         
            -
              map<string,string> metadata = 4;
         
     | 
| 
       107 
     | 
    
         
            -
              StateOptions options = 5;
         
     | 
| 
       108 
     | 
    
         
            -
            }
         
     |