diff --git a/Makefile b/Makefile index 145e1b7..ae6afcc 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,9 @@ vpath %.proto $(PROTOS_PATH) all: system-check libdapr.so -libdapr.so : ./src/dapr/proto/common/v1/common.pb.o ./src/dapr/proto/dapr/v1/dapr.pb.o ./src/dapr/proto/dapr/v1/dapr.grpc.pb.o ./src/dapr/proto/daprclient/v1/daprclient.pb.o ./src/dapr/proto/daprclient/v1/daprclient.grpc.pb.o +libdapr.so : ./src/dapr/proto/common/v1/common.pb.o ./src/dapr/proto/runtime/v1/dapr.pb.o ./src/dapr/proto/runtime/v1/dapr.grpc.pb.o ./src/dapr/proto/runtime/v1/appcallback.pb.o ./src/dapr/proto/runtime/v1/appcallback.grpc.pb.o -mkdir ./out - $(CXX) -shared -Wl,-soname,libdapr.so.0 -o ./out/libdapr.0.2.0.so ./src/dapr/proto/dapr/v1/*.o ./src/dapr/proto/daprclient/v1/*.o ./src/dapr/proto/common/v1/*.o + $(CXX) -shared -Wl,-soname,libdapr.so.0 -o ./out/libdapr.0.2.0.so ./src/dapr/proto/runtime/v1/*.o ./src/dapr/proto/common/v1/*.o %.o : %.cc $(CXX) -c -fPIC -I./src $< -o $@ @@ -30,7 +30,7 @@ libdapr.so : ./src/dapr/proto/common/v1/common.pb.o ./src/dapr/proto/dapr/v1/dap $(PROTOC) -I $(PROTOS_PATH) --cpp_out=./src/ $< clean: - rm -f ./src/dapr/*.o ./src/daprclient/*.o + rm -f ./src/dapr/proto/common/v1/*.o ./src/dapr/proto/runtime/v1/*.o rm -rf ./out # The following is to test your system and ensure a smoother experience. diff --git a/README.md b/README.md index 0d85fae..ba7b2bf 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,10 @@ Alpha quality. 3. Generate client ```bash make ./dapr/proto/common/v1/common.pb.cc - make ./dapr/proto/dapr/v1/dapr.grpc.pb.cc - make ./dapr/proto/dapr/v1/dapr.pb.cc - make ./dapr/proto/daprclient/v1/daprclient.grpc.pb.cc - make ./dapr/proto/daprclient/v1/daprclient.pb.cc + make ./dapr/proto/runtime/v1/dapr.grpc.pb.cc + make ./dapr/proto/runtime/v1/dapr.pb.cc + make ./dapr/proto/runtime/v1/appcallback.grpc.pb.cc + make ./dapr/proto/runtime/v1/appcallback.pb.cc ``` ### Build library diff --git a/dapr/proto/common/v1/common.proto b/dapr/proto/common/v1/common.proto index 2072e45..f2f047f 100644 --- a/dapr/proto/common/v1/common.proto +++ b/dapr/proto/common/v1/common.proto @@ -8,11 +8,12 @@ syntax = "proto3"; package dapr.proto.common.v1; import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; option csharp_namespace = "Dapr.Client.Autogen.Grpc.v1"; option java_outer_classname = "CommonProtos"; option java_package = "io.dapr.v1"; -option go_package = "github.com/dapr/dapr/pkg/proto/common/v1"; +option go_package = "github.com/dapr/dapr/pkg/proto/common/v1;common"; // HTTPExtension includes HTTP verb and querystring // when Dapr runtime delivers HTTP content. @@ -36,48 +37,104 @@ message HTTPExtension { TRACE = 8; } - // verb is HTTP verb. - // - // This is required. + // Required. HTTP verb. Verb verb = 1; // querystring includes HTTP querystring. map querystring = 2; } +// InvokeRequest is the message to invoke a method with the data. +// This message is used in InvokeService of Dapr gRPC Service and OnInvoke +// of AppCallback gRPC service. message InvokeRequest { - // method is a method name which will be invoked by caller. - // - // This field is required. + // Required. method is a method name which will be invoked by caller. string method = 1; - // data conveys bytes value or Protobuf message which caller sent. + // Required. Bytes value or Protobuf message which caller sent. // Dapr treats Any.value as bytes type if Any.type_url is unset. - // - // This field is required. google.protobuf.Any data = 2; - // content_type is the type of data content. + // The type of data content. // // This field is required if data delivers http request body // Otherwise, this is optional. string content_type = 3; - // http_extension includes http specific fields if request conveys - // http-compatible request. + // HTTP specific fields if request conveys http-compatible request. // - // This field is optional. + // This field is required for http-compatible request. Otherwise, + // this field is optional. HTTPExtension http_extension = 4; } +// InvokeResponse is the response message inclduing data and its content type +// from app callback. +// This message is used in InvokeService of Dapr gRPC Service and OnInvoke +// of AppCallback gRPC service. message InvokeResponse { - // data conveys the content body of InvokeService response. - // - // This field is required. + // Required. The content body of InvokeService response. google.protobuf.Any data = 1; - // content_type is the type of data content. - // - // This field is required. + // Required. The type of data content. string content_type = 2; } + +// StateSaveRequest represents state and options to save the state value. +message StateSaveRequest { + // Required. The state key + string key = 1; + + // Required. The state data for key + bytes value = 2; + + // The entity tag which represents the specific version of data. + // The exact ETag format is defined by the corresponding data store. + string etag = 3; + + // The metadata which will be passed to state store component. + map metadata = 4; + + // Options for concurrency, consistency, and retry_policy to save the state. + StateOptions options = 5; +} + +// StateOptions configures concurrency, consistency, and retry policy for state operations +message StateOptions { + // Enum describing the supported concurrency for state. + enum StateConcurrency { + CONCURRENCY_UNSPECIFIED = 0; + CONCURRENCY_FIRST_WRITE = 1; + CONCURRENCY_LAST_WRITE = 2; + } + + // Enum describing the supported consistency for state. + enum StateConsistency { + CONSISTENCY_UNSPECIFIED = 0; + CONSISTENCY_EVENTUAL = 1; + CONSISTENCY_STRONG = 2; + } + + StateConcurrency concurrency = 1; + StateConsistency consistency = 2; + StateRetryPolicy retry_policy = 3; +} + +// StateRetryPolicy represents retry policy to set and delete state operations. +message StateRetryPolicy { + // Enum describing the support retry pattern + enum RetryPattern { + RETRY_UNSPECIFIED = 0; + RETRY_LINEAR = 1; + RETRY_EXPONENTIAL = 2; + } + + // Maximum number of retries. + int32 threshold = 1; + + // Retry pattern. + RetryPattern pattern = 2; + + // Initial delay between retries. + google.protobuf.Duration interval = 3; +} diff --git a/dapr/proto/dapr/v1/dapr.proto b/dapr/proto/dapr/v1/dapr.proto deleted file mode 100644 index 17451c5..0000000 --- a/dapr/proto/dapr/v1/dapr.proto +++ /dev/null @@ -1,114 +0,0 @@ -// ------------------------------------------------------------ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -// ------------------------------------------------------------ - -syntax = "proto3"; - -package dapr.proto.dapr.v1; - -import "google/protobuf/any.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/duration.proto"; -import "dapr/proto/common/v1/common.proto"; - -option csharp_namespace = "Dapr.Client.Autogen.Grpc.v1"; -option java_outer_classname = "DaprProtos"; -option java_package = "io.dapr.v1"; -option go_package = "github.com/dapr/dapr/pkg/proto/dapr/v1"; - -// Dapr service provides APIs to user application to access Dapr building blocks. -service Dapr { - rpc PublishEvent(PublishEventEnvelope) returns (google.protobuf.Empty) {} - rpc InvokeService(InvokeServiceRequest) returns (common.v1.InvokeResponse) {} - rpc InvokeBinding(InvokeBindingEnvelope) returns (google.protobuf.Empty) {} - rpc GetState(GetStateEnvelope) returns (GetStateResponseEnvelope) {} - rpc GetSecret(GetSecretEnvelope) returns (GetSecretResponseEnvelope) {} - rpc SaveState(SaveStateEnvelope) returns (google.protobuf.Empty) {} - rpc DeleteState(DeleteStateEnvelope) returns (google.protobuf.Empty) {} -} - -// InvokeServiceRequest represents the request message for Service invocation. -message InvokeServiceRequest { - // id specifies callee's app id. - // - // This field is required. - string id = 1; - - // message which will be delivered to callee. - // - // This field is required. - common.v1.InvokeRequest message = 3; -} - -message DeleteStateEnvelope { - string store_name = 1; - string key = 2; - string etag = 3; - StateOptions options = 4; -} - -message SaveStateEnvelope { - string store_name = 1; - repeated StateRequest requests = 2; -} - -message GetStateEnvelope { - string store_name = 1; - string key = 2; - string consistency = 3; -} - -message GetStateResponseEnvelope { - google.protobuf.Any data = 1; - string etag = 2; -} - -message GetSecretEnvelope { - string store_name = 1; - string key = 2; - map metadata = 3; -} - -message GetSecretResponseEnvelope { - map data = 1; -} - -message InvokeBindingEnvelope { - string name = 1; - google.protobuf.Any data = 2; - map metadata = 3; -} - -message PublishEventEnvelope { - string topic = 1; - google.protobuf.Any data = 2; -} - -message State { - string key = 1; - google.protobuf.Any value = 2; - string etag = 3; - map metadata = 4; - StateOptions options = 5; -} - -message StateOptions { - string concurrency = 1; - string consistency = 2; - RetryPolicy retry_policy = 3; -} - -message RetryPolicy { - int32 threshold = 1; - string pattern = 2; - google.protobuf.Duration interval = 3; -} - -message StateRequest { - string key = 1; - google.protobuf.Any value = 2; - string etag = 3; - map metadata = 4; - StateOptions options = 5; -} \ No newline at end of file diff --git a/dapr/proto/daprclient/v1/daprclient.proto b/dapr/proto/daprclient/v1/daprclient.proto deleted file mode 100644 index 739cb6b..0000000 --- a/dapr/proto/daprclient/v1/daprclient.proto +++ /dev/null @@ -1,81 +0,0 @@ -// ------------------------------------------------------------ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -// ------------------------------------------------------------ - -syntax = "proto3"; - -package dapr.proto.daprclient.v1; - -import "google/protobuf/any.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/duration.proto"; -import "dapr/proto/common/v1/common.proto"; - -option csharp_namespace = "Dapr.Client.Autogen.Grpc.v1"; -option java_outer_classname = "DaprClientProtos"; -option java_package = "io.dapr.v1"; -option go_package = "github.com/dapr/dapr/pkg/proto/daprclient/v1"; - -// DaprClient service allows user application to interact with Dapr runtime. -// User application needs to implement DaprClient service if it needs to -// receive message from dapr runtime. -service DaprClient { - rpc OnInvoke (common.v1.InvokeRequest) returns (common.v1.InvokeResponse) {} - rpc GetTopicSubscriptions(google.protobuf.Empty) returns (GetTopicSubscriptionsEnvelope) {} - rpc GetBindingsSubscriptions(google.protobuf.Empty) returns (GetBindingsSubscriptionsEnvelope) {} - rpc OnBindingEvent(BindingEventEnvelope) returns (BindingResponseEnvelope) {} - rpc OnTopicEvent(CloudEventEnvelope) returns (google.protobuf.Empty) {} -} - -message CloudEventEnvelope { - string id = 1; - string source = 2; - string type = 3; - string specVersion = 4; - string data_content_type = 5; - string topic = 6; - google.protobuf.Any data = 7; -} - -message BindingEventEnvelope { - string name = 1; - google.protobuf.Any data = 2; - map metadata = 3; -} - -message BindingResponseEnvelope { - google.protobuf.Any data = 1; - repeated string to = 2; - repeated State state = 3; - string concurrency = 4; -} - - -message GetTopicSubscriptionsEnvelope { - repeated string topics = 1; -} - -message GetBindingsSubscriptionsEnvelope { - repeated string bindings = 1; -} - -message State { - string key = 1; - google.protobuf.Any value = 2; - string etag = 3; - map metadata = 4; - StateOptions options = 5; -} - -message StateOptions { - string concurrency = 1; - string consistency = 2; - RetryPolicy retry_policy = 3; -} - -message RetryPolicy { - int32 threshold = 1; - string pattern = 2; - google.protobuf.Duration interval = 3; -} diff --git a/dapr/proto/runtime/v1/appcallback.proto b/dapr/proto/runtime/v1/appcallback.proto new file mode 100644 index 0000000..ce53291 --- /dev/null +++ b/dapr/proto/runtime/v1/appcallback.proto @@ -0,0 +1,130 @@ +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// ------------------------------------------------------------ + +syntax = "proto3"; + +package dapr.proto.runtime.v1; + +import "google/protobuf/empty.proto"; +import "dapr/proto/common/v1/common.proto"; + +option csharp_namespace = "Dapr.AppCallback.Autogen.Grpc.v1"; +option java_outer_classname = "DaprAppCallbackProtos"; +option java_package = "io.dapr.v1"; +option go_package = "github.com/dapr/dapr/pkg/proto/runtime/v1;runtime"; + +// AppCallback V1 allows user application to interact with Dapr runtime. +// User application needs to implement AppCallback service if it needs to +// receive message from dapr runtime. +service AppCallback { + // Invokes service method with InvokeRequest. + rpc OnInvoke (common.v1.InvokeRequest) returns (common.v1.InvokeResponse) {} + + // Lists all topics subscribed by this app. + rpc ListTopicSubscriptions(google.protobuf.Empty) returns (ListTopicSubscriptionsResponse) {} + + // Subscribes events from Pubsub + rpc OnTopicEvent(TopicEventRequest) returns (google.protobuf.Empty) {} + + // Lists all input bindings subscribed by this app. + rpc ListInputBindings(google.protobuf.Empty) returns (ListInputBindingsResponse) {} + + // Listens events from the input bindings + // + // User application can save the states or send the events to the output + // bindings optionally by returning BindingEventResponse. + rpc OnBindingEvent(BindingEventRequest) returns (BindingEventResponse) {} +} + +// TopicEventRequest message is compatiable with CloudEvent spec v1.0 +// https://github.com/cloudevents/spec/blob/v1.0/spec.md +message TopicEventRequest { + // id identifies the event. Producers MUST ensure that source + id + // is unique for each distinct event. If a duplicate event is re-sent + // (e.g. due to a network error) it MAY have the same id. + string id = 1; + + // source identifies the context in which an event happened. + // Often this will include information such as the type of the + // event source, the organization publishing the event or the process + // that produced the event. The exact syntax and semantics behind + // the data encoded in the URI is defined by the event producer. + string source = 2; + + // The type of event related to the originating occurrence. + string type = 3; + + // The version of the CloudEvents specification. + string spec_version = 4; + + // The content type of data value. + string data_content_type = 5; + + // The content of the event. + bytes data = 7; + + // The pubsub topic which publisher sent to. + string topic = 6; +} + +// BindingEventRequest represents input bindings event. +message BindingEventRequest { + // Requried. The name of the input binding component. + string name = 1; + + // Required. The payload that the input bindings sent + bytes data = 2; + + // The metadata set by the input binging components. + map metadata = 3; +} + +// BindingEventResponse includes operations to save state or +// send data to output bindings optionally. +message BindingEventResponse { + // The name of state store where states are saved. + string store_name = 1; + + // The state key values which will be stored in store_name. + repeated common.v1.StateSaveRequest states = 2; + + // BindingEventConcurrency is the kind of concurrency + enum BindingEventConcurrency { + // SEQUENTIAL sends data to output bindings specified in "to" sequentially. + SEQUENTIAL = 0; + // PARALLEL sends data to output bindings specified in "to" in parallel. + PARALLEL = 1; + } + + // The list of output bindings. + repeated string to = 3; + + // The content which will be sent to "to" output bindings. + bytes data = 4; + + // The concurrency of output bindings to send data to + // "to" output bindings list. The default is SEQUENTIAL. + BindingEventConcurrency concurrency = 5; +} + +// ListTopicSubscriptionsResponse is the message including the list of the subscribing topics. +message ListTopicSubscriptionsResponse { + // The list of topics. + repeated TopicSubscription subscriptions = 1; +} + +// TopicSubscription represents topic and metadata. +message TopicSubscription { + // The name of topic which will be subscribed + string topic = 1; + + map metadata = 2; +} + +// ListInputBindingsResponse is the message including the list of input bindings. +message ListInputBindingsResponse { + // The list of input bindings. + repeated string bindings = 1; +} diff --git a/dapr/proto/runtime/v1/dapr.proto b/dapr/proto/runtime/v1/dapr.proto new file mode 100644 index 0000000..f82ca6c --- /dev/null +++ b/dapr/proto/runtime/v1/dapr.proto @@ -0,0 +1,143 @@ +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// ------------------------------------------------------------ + +syntax = "proto3"; + +package dapr.proto.runtime.v1; + +import "google/protobuf/empty.proto"; +import "dapr/proto/common/v1/common.proto"; + +option csharp_namespace = "Dapr.Client.Autogen.Grpc.v1"; +option java_outer_classname = "DaprProtos"; +option java_package = "io.dapr.v1"; +option go_package = "github.com/dapr/dapr/pkg/proto/runtime/v1;runtime"; + +// Dapr service provides APIs to user application to access Dapr building blocks. +service Dapr { + // Invokes a method on a remote Dapr app. + rpc InvokeService(InvokeServiceRequest) returns (common.v1.InvokeResponse) {} + + // Gets the state for a specific key. + rpc GetState(GetStateRequest) returns (GetStateResponse) {} + + // Saves the state for a specific key. + rpc SaveState(SaveStateRequest) returns (google.protobuf.Empty) {} + + // Deletes the state for a specific key. + rpc DeleteState(DeleteStateRequest) returns (google.protobuf.Empty) {} + + // Publishes events to the specific topic. + rpc PublishEvent(PublishEventRequest) returns (google.protobuf.Empty) {} + + // Invokes binding data to specific output bindings + rpc InvokeBinding(InvokeBindingRequest) returns (google.protobuf.Empty) {} + + // Gets secrets from secret stores. + rpc GetSecret(GetSecretRequest) returns (GetSecretResponse) {} +} + +// InvokeServiceRequest represents the request message for Service invocation. +message InvokeServiceRequest { + // Required. Callee's app id. + string id = 1; + + // Required. message which will be delivered to callee. + common.v1.InvokeRequest message = 3; +} + +// GetStateRequest is the message to get key-value states from specific state store. +message GetStateRequest { + // The name of state store. + string store_name = 1; + + // The key of the desired state + string key = 2; + + // The read consistency of the state store. + common.v1.StateOptions.StateConsistency consistency = 3; +} + +// GetStateResponse is the response conveying the state value and etag. +message GetStateResponse { + // The byte array data + bytes data = 1; + + // The entity tag which represents the specific version of data. + // ETag format is defined by the corresponding data store. + string etag = 2; +} + +// DeleteStateRequest is the message to delete key-value states in the specific state store. +message DeleteStateRequest { + // The name of state store. + string store_name = 1; + + // The key of the desired state + string key = 2; + + // The entity tag which represents the specific version of data. + // The exact ETag format is defined by the corresponding data store. + string etag = 3; + + // State operation options which includes concurrency/ + // consistency/retry_policy. + common.v1.StateOptions options = 4; +} + +// SaveStateRequest is the message to save multiple states into state store. +message SaveStateRequest { + // The name of state store. + string store_name = 1; + + // The array of the state key values. + repeated common.v1.StateSaveRequest requests = 2; +} + +// PublishEventRequest is the message to publish event data to pubsub topic +message PublishEventRequest { + // The pubsub topic + string topic = 1; + + // The data which will be published to topic. + bytes data = 2; +} + +// InvokeBindingRequest is the message to send data to output bindings +message InvokeBindingRequest { + // The name of the output binding to invoke. + string name = 1; + + // The data which will be sent to output binding. + bytes data = 2; + + // The metadata passing to output binding components + // + // Common metadata property: + // - ttlInSeconds : the time to live in seconds for the message. + // If set in the binding definition will cause all messages to + // have a default time to live. The message ttl overrides any value + // in the binding definition. + map metadata = 3; +} + +// GetSecretRequest is the message to get secret from secret store. +message GetSecretRequest { + // The name of secret store. + string store_name = 1; + + // The name of secret key. + string key = 2; + + // The metadata which will be sent to secret store components. + map metadata = 3; +} + +// GetSecretResponse is the response mesage to convey the requested secret. +message GetSecretResponse { + // data is the secret value. Some secret store, such as kubernetes secret + // store, can save multiple secrets for single secret key. + map data = 1; +} diff --git a/examples/echo_app/Makefile b/examples/echo_app/Makefile index 449bcfc..5dc1da2 100644 --- a/examples/echo_app/Makefile +++ b/examples/echo_app/Makefile @@ -24,7 +24,7 @@ DAPR_SRC_ROOT = ../../src/dapr/proto all: echo_app -echo_app: $(DAPR_SRC_ROOT)/common/v1/common.pb.o $(DAPR_SRC_ROOT)/dapr/v1/dapr.pb.o $(DAPR_SRC_ROOT)/dapr/v1/dapr.grpc.pb.o $(DAPR_SRC_ROOT)/daprclient/v1/daprclient.pb.o $(DAPR_SRC_ROOT)/daprclient/v1/daprclient.grpc.pb.o echo_app_server_impl.o echo_app.o +echo_app: $(DAPR_SRC_ROOT)/common/v1/common.pb.o $(DAPR_SRC_ROOT)/runtime/v1/dapr.pb.o $(DAPR_SRC_ROOT)/runtime/v1/dapr.grpc.pb.o $(DAPR_SRC_ROOT)/runtime/v1/appcallback.pb.o $(DAPR_SRC_ROOT)/runtime/v1/appcallback.grpc.pb.o echo_app_server_impl.o echo_app.o $(CXX) $^ $(LDFLAGS) -o $@ clean: diff --git a/examples/echo_app/echo_app.cc b/examples/echo_app/echo_app.cc index 1c50407..70d30ea 100644 --- a/examples/echo_app/echo_app.cc +++ b/examples/echo_app/echo_app.cc @@ -14,10 +14,10 @@ #include #include "echo_app_server_impl.h" -#include "dapr/proto/dapr/v1/dapr.grpc.pb.h" +#include "dapr/proto/runtime/v1/dapr.grpc.pb.h" -using dapr::proto::dapr::v1::Dapr; -using dapr::proto::dapr::v1::InvokeServiceRequest; +using dapr::proto::runtime::v1::Dapr; +using dapr::proto::runtime::v1::InvokeServiceRequest; using dapr::proto::common::v1::InvokeRequest; using dapr::proto::common::v1::InvokeResponse; diff --git a/examples/echo_app/echo_app_server_impl.cc b/examples/echo_app/echo_app_server_impl.cc index b2bfae9..e43a034 100644 --- a/examples/echo_app/echo_app_server_impl.cc +++ b/examples/echo_app/echo_app_server_impl.cc @@ -17,11 +17,11 @@ using google::protobuf::Empty; using dapr::proto::common::v1::InvokeRequest; using dapr::proto::common::v1::InvokeResponse; -using dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope; -using dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope; -using dapr::proto::daprclient::v1::BindingEventEnvelope; -using dapr::proto::daprclient::v1::BindingResponseEnvelope; -using dapr::proto::daprclient::v1::CloudEventEnvelope; +using dapr::proto::runtime::v1::ListTopicSubscriptionsResponse; +using dapr::proto::runtime::v1::ListInputBindingsResponse; +using dapr::proto::runtime::v1::BindingEventRequest; +using dapr::proto::runtime::v1::BindingEventResponse; +using dapr::proto::runtime::v1::TopicEventRequest; namespace dapr_cpp_echo_example { @@ -41,33 +41,33 @@ Status EchoAppServerImpl::OnInvoke( return Status::OK; } -Status EchoAppServerImpl::GetTopicSubscriptions( +Status EchoAppServerImpl::ListTopicSubscriptions( ServerContext* context, const Empty* request, - GetTopicSubscriptionsEnvelope* response) { - std::cout << "GetTopicSubscriptions() is called" << std::endl; + ListTopicSubscriptionsResponse* response) { + std::cout << "ListTopicSubscriptions() is called" << std::endl; return Status::OK; } -Status EchoAppServerImpl::GetBindingsSubscriptions( +Status EchoAppServerImpl::ListInputBindings( ServerContext* context, const Empty* request, - GetBindingsSubscriptionsEnvelope* response) { - std::cout << "GetBindingsSubscriptions() is called" << std::endl; + ListInputBindingsResponse* response) { + std::cout << "ListInputBindings() is called" << std::endl; return Status::OK; } Status EchoAppServerImpl::OnBindingEvent( ServerContext* context, - const BindingEventEnvelope* request, - BindingResponseEnvelope* response) { + const BindingEventRequest* request, + BindingEventResponse* response) { std::cout << "OnBindingEvent() is called" << std::endl; return Status::OK; } Status EchoAppServerImpl::OnTopicEvent( ServerContext* context, - const CloudEventEnvelope* request, + const TopicEventRequest* request, Empty* response) { std::cout << "OnBindingEvent() is called" << std::endl; return Status::OK; diff --git a/examples/echo_app/echo_app_server_impl.h b/examples/echo_app/echo_app_server_impl.h index 969b7c0..8e12dce 100644 --- a/examples/echo_app/echo_app_server_impl.h +++ b/examples/echo_app/echo_app_server_impl.h @@ -6,7 +6,7 @@ #include #include "dapr/proto/common/v1/common.pb.h" -#include "dapr/proto/daprclient/v1/daprclient.grpc.pb.h" +#include "dapr/proto/runtime/v1/appcallback.grpc.pb.h" using grpc::ServerContext; using grpc::Status; @@ -16,22 +16,22 @@ using google::protobuf::Empty; using dapr::proto::common::v1::InvokeRequest; using dapr::proto::common::v1::InvokeResponse; -using dapr::proto::daprclient::v1::DaprClient; -using dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope; -using dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope; -using dapr::proto::daprclient::v1::BindingEventEnvelope; -using dapr::proto::daprclient::v1::BindingResponseEnvelope; -using dapr::proto::daprclient::v1::CloudEventEnvelope; +using dapr::proto::runtime::v1::AppCallback; +using dapr::proto::runtime::v1::ListTopicSubscriptionsResponse; +using dapr::proto::runtime::v1::ListInputBindingsResponse; +using dapr::proto::runtime::v1::BindingEventRequest; +using dapr::proto::runtime::v1::BindingEventResponse; +using dapr::proto::runtime::v1::TopicEventRequest; namespace dapr_cpp_echo_example { -class EchoAppServerImpl final : public DaprClient::Service { +class EchoAppServerImpl final : public AppCallback::Service { public: Status OnInvoke(ServerContext* context, const InvokeRequest* request, InvokeResponse* response) override; - Status GetTopicSubscriptions(ServerContext* context, const Empty* request, GetTopicSubscriptionsEnvelope* response) override; - Status GetBindingsSubscriptions(ServerContext* context, const Empty* request, GetBindingsSubscriptionsEnvelope* response) override; - Status OnBindingEvent(ServerContext* context, const BindingEventEnvelope* request, BindingResponseEnvelope* response) override; - Status OnTopicEvent(ServerContext* context, const CloudEventEnvelope* request, Empty* response) override; + Status ListTopicSubscriptions(ServerContext* context, const Empty* request, ListTopicSubscriptionsResponse* response) override; + Status ListInputBindings(ServerContext* context, const Empty* request, ListInputBindingsResponse* response) override; + Status OnBindingEvent(ServerContext* context, const BindingEventRequest* request, BindingEventResponse* response) override; + Status OnTopicEvent(ServerContext* context, const TopicEventRequest* request, Empty* response) override; }; } // namespace dapr_cpp_echo_example diff --git a/src/dapr/proto/common/v1/common.pb.cc b/src/dapr/proto/common/v1/common.pb.cc index c279437..65508d9 100644 --- a/src/dapr/proto/common/v1/common.pb.cc +++ b/src/dapr/proto/common/v1/common.pb.cc @@ -21,11 +21,17 @@ namespace protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto { extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HTTPExtension_QuerystringEntry_DoNotUse; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StateSaveRequest_MetadataEntry_DoNotUse; extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_HTTPExtension; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StateOptions; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StateRetryPolicy; } // namespace protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto namespace protobuf_google_2fprotobuf_2fany_2eproto { extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fany_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Any; } // namespace protobuf_google_2fprotobuf_2fany_2eproto +namespace protobuf_google_2fprotobuf_2fduration_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration; +} // namespace protobuf_google_2fprotobuf_2fduration_2eproto namespace dapr { namespace proto { namespace common { @@ -50,6 +56,26 @@ class InvokeResponseDefaultTypeInternal { ::google::protobuf::internal::ExplicitlyConstructed _instance; } _InvokeResponse_default_instance_; +class StateSaveRequest_MetadataEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StateSaveRequest_MetadataEntry_DoNotUse_default_instance_; +class StateSaveRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StateSaveRequest_default_instance_; +class StateOptionsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StateOptions_default_instance_; +class StateRetryPolicyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _StateRetryPolicy_default_instance_; } // namespace v1 } // namespace common } // namespace proto @@ -114,15 +140,78 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_InvokeResponse = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsInvokeResponse}, { &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base,}}; +static void InitDefaultsStateSaveRequest_MetadataEntry_DoNotUse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::common::v1::_StateSaveRequest_MetadataEntry_DoNotUse_default_instance_; + new (ptr) ::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse(); + } + ::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StateSaveRequest_MetadataEntry_DoNotUse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStateSaveRequest_MetadataEntry_DoNotUse}, {}}; + +static void InitDefaultsStateSaveRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::common::v1::_StateSaveRequest_default_instance_; + new (ptr) ::dapr::proto::common::v1::StateSaveRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::common::v1::StateSaveRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_StateSaveRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsStateSaveRequest}, { + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateSaveRequest_MetadataEntry_DoNotUse.base, + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateOptions.base,}}; + +static void InitDefaultsStateOptions() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::common::v1::_StateOptions_default_instance_; + new (ptr) ::dapr::proto::common::v1::StateOptions(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::common::v1::StateOptions::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_StateOptions = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStateOptions}, { + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateRetryPolicy.base,}}; + +static void InitDefaultsStateRetryPolicy() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::common::v1::_StateRetryPolicy_default_instance_; + new (ptr) ::dapr::proto::common::v1::StateRetryPolicy(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::common::v1::StateRetryPolicy::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_StateRetryPolicy = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStateRetryPolicy}, { + &protobuf_google_2fprotobuf_2fduration_2eproto::scc_info_Duration.base,}}; + void InitDefaults() { ::google::protobuf::internal::InitSCC(&scc_info_HTTPExtension_QuerystringEntry_DoNotUse.base); ::google::protobuf::internal::InitSCC(&scc_info_HTTPExtension.base); ::google::protobuf::internal::InitSCC(&scc_info_InvokeRequest.base); ::google::protobuf::internal::InitSCC(&scc_info_InvokeResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_StateSaveRequest_MetadataEntry_DoNotUse.base); + ::google::protobuf::internal::InitSCC(&scc_info_StateSaveRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_StateOptions.base); + ::google::protobuf::internal::InitSCC(&scc_info_StateRetryPolicy.base); } -::google::protobuf::Metadata file_level_metadata[4]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; +::google::protobuf::Metadata file_level_metadata[8]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[4]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::HTTPExtension_QuerystringEntry_DoNotUse, _has_bits_), @@ -157,12 +246,51 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::InvokeResponse, data_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::InvokeResponse, content_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateSaveRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateSaveRequest, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateSaveRequest, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateSaveRequest, etag_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateSaveRequest, metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateSaveRequest, options_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateOptions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateOptions, concurrency_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateOptions, consistency_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateOptions, retry_policy_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateRetryPolicy, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateRetryPolicy, threshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateRetryPolicy, pattern_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::StateRetryPolicy, interval_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 7, sizeof(::dapr::proto::common::v1::HTTPExtension_QuerystringEntry_DoNotUse)}, { 9, -1, sizeof(::dapr::proto::common::v1::HTTPExtension)}, { 16, -1, sizeof(::dapr::proto::common::v1::InvokeRequest)}, { 25, -1, sizeof(::dapr::proto::common::v1::InvokeResponse)}, + { 32, 39, sizeof(::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse)}, + { 41, -1, sizeof(::dapr::proto::common::v1::StateSaveRequest)}, + { 51, -1, sizeof(::dapr::proto::common::v1::StateOptions)}, + { 59, -1, sizeof(::dapr::proto::common::v1::StateRetryPolicy)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -170,6 +298,10 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::dapr::proto::common::v1::_HTTPExtension_default_instance_), reinterpret_cast(&::dapr::proto::common::v1::_InvokeRequest_default_instance_), reinterpret_cast(&::dapr::proto::common::v1::_InvokeResponse_default_instance_), + reinterpret_cast(&::dapr::proto::common::v1::_StateSaveRequest_MetadataEntry_DoNotUse_default_instance_), + reinterpret_cast(&::dapr::proto::common::v1::_StateSaveRequest_default_instance_), + reinterpret_cast(&::dapr::proto::common::v1::_StateOptions_default_instance_), + reinterpret_cast(&::dapr::proto::common::v1::_StateRetryPolicy_default_instance_), }; void protobuf_AssignDescriptors() { @@ -187,7 +319,7 @@ void protobuf_AssignDescriptorsOnce() { void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); - ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 8); } void AddDescriptorsImpl() { @@ -195,29 +327,53 @@ void AddDescriptorsImpl() { static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n!dapr/proto/common/v1/common.proto\022\024dap" "r.proto.common.v1\032\031google/protobuf/any.p" - "roto\"\257\002\n\rHTTPExtension\0226\n\004verb\030\001 \001(\0162(.d" - "apr.proto.common.v1.HTTPExtension.Verb\022I" - "\n\013querystring\030\002 \003(\01324.dapr.proto.common." - "v1.HTTPExtension.QuerystringEntry\0322\n\020Que" - "rystringEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - "\t:\0028\001\"g\n\004Verb\022\010\n\004NONE\020\000\022\007\n\003GET\020\001\022\010\n\004HEAD" - "\020\002\022\010\n\004POST\020\003\022\007\n\003PUT\020\004\022\n\n\006DELETE\020\005\022\013\n\007CON" - "NECT\020\006\022\013\n\007OPTIONS\020\007\022\t\n\005TRACE\020\010\"\226\001\n\rInvok" - "eRequest\022\016\n\006method\030\001 \001(\t\022\"\n\004data\030\002 \001(\0132\024" - ".google.protobuf.Any\022\024\n\014content_type\030\003 \001" - "(\t\022;\n\016http_extension\030\004 \001(\0132#.dapr.proto." - "common.v1.HTTPExtension\"J\n\016InvokeRespons" - "e\022\"\n\004data\030\001 \001(\0132\024.google.protobuf.Any\022\024\n" - "\014content_type\030\002 \001(\tBb\n\nio.dapr.v1B\014Commo" - "nProtosZ(github.com/dapr/dapr/pkg/proto/" - "common/v1\252\002\033Dapr.Client.Autogen.Grpc.v1b" - "\006proto3" + "roto\032\036google/protobuf/duration.proto\"\257\002\n" + "\rHTTPExtension\0226\n\004verb\030\001 \001(\0162(.dapr.prot" + "o.common.v1.HTTPExtension.Verb\022I\n\013querys" + "tring\030\002 \003(\01324.dapr.proto.common.v1.HTTPE" + "xtension.QuerystringEntry\0322\n\020Querystring" + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"g\n" + "\004Verb\022\010\n\004NONE\020\000\022\007\n\003GET\020\001\022\010\n\004HEAD\020\002\022\010\n\004PO" + "ST\020\003\022\007\n\003PUT\020\004\022\n\n\006DELETE\020\005\022\013\n\007CONNECT\020\006\022\013" + "\n\007OPTIONS\020\007\022\t\n\005TRACE\020\010\"\226\001\n\rInvokeRequest" + "\022\016\n\006method\030\001 \001(\t\022\"\n\004data\030\002 \001(\0132\024.google." + "protobuf.Any\022\024\n\014content_type\030\003 \001(\t\022;\n\016ht" + "tp_extension\030\004 \001(\0132#.dapr.proto.common.v" + "1.HTTPExtension\"J\n\016InvokeResponse\022\"\n\004dat" + "a\030\001 \001(\0132\024.google.protobuf.Any\022\024\n\014content" + "_type\030\002 \001(\t\"\352\001\n\020StateSaveRequest\022\013\n\003key\030" + "\001 \001(\t\022\r\n\005value\030\002 \001(\014\022\014\n\004etag\030\003 \001(\t\022F\n\010me" + "tadata\030\004 \003(\01324.dapr.proto.common.v1.Stat" + "eSaveRequest.MetadataEntry\0223\n\007options\030\005 " + "\001(\0132\".dapr.proto.common.v1.StateOptions\032" + "/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + " \001(\t:\0028\001\"\255\003\n\014StateOptions\022H\n\013concurrency" + "\030\001 \001(\01623.dapr.proto.common.v1.StateOptio" + "ns.StateConcurrency\022H\n\013consistency\030\002 \001(\016" + "23.dapr.proto.common.v1.StateOptions.Sta" + "teConsistency\022<\n\014retry_policy\030\003 \001(\0132&.da" + "pr.proto.common.v1.StateRetryPolicy\"h\n\020S" + "tateConcurrency\022\033\n\027CONCURRENCY_UNSPECIFI" + "ED\020\000\022\033\n\027CONCURRENCY_FIRST_WRITE\020\001\022\032\n\026CON" + "CURRENCY_LAST_WRITE\020\002\"a\n\020StateConsistenc" + "y\022\033\n\027CONSISTENCY_UNSPECIFIED\020\000\022\030\n\024CONSIS" + "TENCY_EVENTUAL\020\001\022\026\n\022CONSISTENCY_STRONG\020\002" + "\"\350\001\n\020StateRetryPolicy\022\021\n\tthreshold\030\001 \001(\005" + "\022D\n\007pattern\030\002 \001(\01623.dapr.proto.common.v1" + ".StateRetryPolicy.RetryPattern\022+\n\010interv" + "al\030\003 \001(\0132\031.google.protobuf.Duration\"N\n\014R" + "etryPattern\022\025\n\021RETRY_UNSPECIFIED\020\000\022\020\n\014RE" + "TRY_LINEAR\020\001\022\025\n\021RETRY_EXPONENTIAL\020\002Bi\n\ni" + "o.dapr.v1B\014CommonProtosZ/github.com/dapr" + "/dapr/pkg/proto/common/v1;common\252\002\033Dapr." + "Client.Autogen.Grpc.v1b\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 727); + descriptor, 1670); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "dapr/proto/common/v1/common.proto", &protobuf_RegisterTypes); ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors(); } void AddDescriptors() { @@ -270,6 +426,75 @@ const HTTPExtension_Verb HTTPExtension::Verb_MIN; const HTTPExtension_Verb HTTPExtension::Verb_MAX; const int HTTPExtension::Verb_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* StateOptions_StateConcurrency_descriptor() { + protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::file_level_enum_descriptors[1]; +} +bool StateOptions_StateConcurrency_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const StateOptions_StateConcurrency StateOptions::CONCURRENCY_UNSPECIFIED; +const StateOptions_StateConcurrency StateOptions::CONCURRENCY_FIRST_WRITE; +const StateOptions_StateConcurrency StateOptions::CONCURRENCY_LAST_WRITE; +const StateOptions_StateConcurrency StateOptions::StateConcurrency_MIN; +const StateOptions_StateConcurrency StateOptions::StateConcurrency_MAX; +const int StateOptions::StateConcurrency_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* StateOptions_StateConsistency_descriptor() { + protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::file_level_enum_descriptors[2]; +} +bool StateOptions_StateConsistency_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const StateOptions_StateConsistency StateOptions::CONSISTENCY_UNSPECIFIED; +const StateOptions_StateConsistency StateOptions::CONSISTENCY_EVENTUAL; +const StateOptions_StateConsistency StateOptions::CONSISTENCY_STRONG; +const StateOptions_StateConsistency StateOptions::StateConsistency_MIN; +const StateOptions_StateConsistency StateOptions::StateConsistency_MAX; +const int StateOptions::StateConsistency_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* StateRetryPolicy_RetryPattern_descriptor() { + protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::file_level_enum_descriptors[3]; +} +bool StateRetryPolicy_RetryPattern_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const StateRetryPolicy_RetryPattern StateRetryPolicy::RETRY_UNSPECIFIED; +const StateRetryPolicy_RetryPattern StateRetryPolicy::RETRY_LINEAR; +const StateRetryPolicy_RetryPattern StateRetryPolicy::RETRY_EXPONENTIAL; +const StateRetryPolicy_RetryPattern StateRetryPolicy::RetryPattern_MIN; +const StateRetryPolicy_RetryPattern StateRetryPolicy::RetryPattern_MAX; +const int StateRetryPolicy::RetryPattern_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 // =================================================================== @@ -1374,24 +1599,1245 @@ ::google::protobuf::Metadata InvokeResponse::GetMetadata() const { } -// @@protoc_insertion_point(namespace_scope) -} // namespace v1 -} // namespace common -} // namespace proto -} // namespace dapr -namespace google { -namespace protobuf { -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::HTTPExtension_QuerystringEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::HTTPExtension_QuerystringEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::common::v1::HTTPExtension_QuerystringEntry_DoNotUse >(arena); +// =================================================================== + +StateSaveRequest_MetadataEntry_DoNotUse::StateSaveRequest_MetadataEntry_DoNotUse() {} +StateSaveRequest_MetadataEntry_DoNotUse::StateSaveRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void StateSaveRequest_MetadataEntry_DoNotUse::MergeFrom(const StateSaveRequest_MetadataEntry_DoNotUse& other) { + MergeFromInternal(other); } -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::HTTPExtension* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::HTTPExtension >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::common::v1::HTTPExtension >(arena); +::google::protobuf::Metadata StateSaveRequest_MetadataEntry_DoNotUse::GetMetadata() const { + ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::file_level_metadata[4]; } -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::InvokeRequest* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::InvokeRequest >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::common::v1::InvokeRequest >(arena); +void StateSaveRequest_MetadataEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); } -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::InvokeResponse* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::InvokeResponse >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::common::v1::InvokeResponse >(arena); + + +// =================================================================== + +void StateSaveRequest::InitAsDefaultInstance() { + ::dapr::proto::common::v1::_StateSaveRequest_default_instance_._instance.get_mutable()->options_ = const_cast< ::dapr::proto::common::v1::StateOptions*>( + ::dapr::proto::common::v1::StateOptions::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StateSaveRequest::kKeyFieldNumber; +const int StateSaveRequest::kValueFieldNumber; +const int StateSaveRequest::kEtagFieldNumber; +const int StateSaveRequest::kMetadataFieldNumber; +const int StateSaveRequest::kOptionsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StateSaveRequest::StateSaveRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateSaveRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.common.v1.StateSaveRequest) +} +StateSaveRequest::StateSaveRequest(const StateSaveRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + metadata_.MergeFrom(from.metadata_); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.etag().size() > 0) { + etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); + } + if (from.has_options()) { + options_ = new ::dapr::proto::common::v1::StateOptions(*from.options_); + } else { + options_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:dapr.proto.common.v1.StateSaveRequest) +} + +void StateSaveRequest::SharedCtor() { + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + options_ = NULL; +} + +StateSaveRequest::~StateSaveRequest() { + // @@protoc_insertion_point(destructor:dapr.proto.common.v1.StateSaveRequest) + SharedDtor(); +} + +void StateSaveRequest::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + etag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete options_; +} + +void StateSaveRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StateSaveRequest::descriptor() { + ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StateSaveRequest& StateSaveRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateSaveRequest.base); + return *internal_default_instance(); +} + + +void StateSaveRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.common.v1.StateSaveRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metadata_.Clear(); + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && options_ != NULL) { + delete options_; + } + options_ = NULL; + _internal_metadata_.Clear(); +} + +bool StateSaveRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.common.v1.StateSaveRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.common.v1.StateSaveRequest.key")); + } else { + goto handle_unusual; + } + break; + } + + // bytes value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + // string etag = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_etag())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->etag().data(), static_cast(this->etag().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.common.v1.StateSaveRequest.etag")); + } else { + goto handle_unusual; + } + break; + } + + // map metadata = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + StateSaveRequest_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + StateSaveRequest_MetadataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.common.v1.StateSaveRequest.MetadataEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.common.v1.StateSaveRequest.MetadataEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // .dapr.proto.common.v1.StateOptions options = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_options())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.common.v1.StateSaveRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.common.v1.StateSaveRequest) + return false; +#undef DO_ +} + +void StateSaveRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.common.v1.StateSaveRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.common.v1.StateSaveRequest.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->key(), output); + } + + // bytes value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->value(), output); + } + + // string etag = 3; + if (this->etag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->etag().data(), static_cast(this->etag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.common.v1.StateSaveRequest.etag"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->etag(), output); + } + + // map metadata = 4; + if (!this->metadata().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.common.v1.StateSaveRequest.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.common.v1.StateSaveRequest.MetadataEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->metadata().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->metadata().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(metadata_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + // .dapr.proto.common.v1.StateOptions options = 5; + if (this->has_options()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->_internal_options(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.common.v1.StateSaveRequest) +} + +::google::protobuf::uint8* StateSaveRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.common.v1.StateSaveRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.common.v1.StateSaveRequest.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->key(), target); + } + + // bytes value = 2; + if (this->value().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->value(), target); + } + + // string etag = 3; + if (this->etag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->etag().data(), static_cast(this->etag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.common.v1.StateSaveRequest.etag"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->etag(), target); + } + + // map metadata = 4; + if (!this->metadata().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.common.v1.StateSaveRequest.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.common.v1.StateSaveRequest.MetadataEntry.value"); + } + }; + + if (deterministic && + this->metadata().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->metadata().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(metadata_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 4, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 4, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + // .dapr.proto.common.v1.StateOptions options = 5; + if (this->has_options()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->_internal_options(), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.common.v1.StateSaveRequest) + return target; +} + +size_t StateSaveRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.common.v1.StateSaveRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map metadata = 4; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->metadata_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string key = 1; + if (this->key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // bytes value = 2; + if (this->value().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + // string etag = 3; + if (this->etag().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->etag()); + } + + // .dapr.proto.common.v1.StateOptions options = 5; + if (this->has_options()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *options_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StateSaveRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.common.v1.StateSaveRequest) + GOOGLE_DCHECK_NE(&from, this); + const StateSaveRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.common.v1.StateSaveRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.common.v1.StateSaveRequest) + MergeFrom(*source); + } +} + +void StateSaveRequest::MergeFrom(const StateSaveRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.common.v1.StateSaveRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + metadata_.MergeFrom(from.metadata_); + if (from.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + if (from.etag().size() > 0) { + + etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); + } + if (from.has_options()) { + mutable_options()->::dapr::proto::common::v1::StateOptions::MergeFrom(from.options()); + } +} + +void StateSaveRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.common.v1.StateSaveRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StateSaveRequest::CopyFrom(const StateSaveRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.common.v1.StateSaveRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StateSaveRequest::IsInitialized() const { + return true; +} + +void StateSaveRequest::Swap(StateSaveRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StateSaveRequest::InternalSwap(StateSaveRequest* other) { + using std::swap; + metadata_.Swap(&other->metadata_); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + etag_.Swap(&other->etag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(options_, other->options_); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StateSaveRequest::GetMetadata() const { + protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StateOptions::InitAsDefaultInstance() { + ::dapr::proto::common::v1::_StateOptions_default_instance_._instance.get_mutable()->retry_policy_ = const_cast< ::dapr::proto::common::v1::StateRetryPolicy*>( + ::dapr::proto::common::v1::StateRetryPolicy::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StateOptions::kConcurrencyFieldNumber; +const int StateOptions::kConsistencyFieldNumber; +const int StateOptions::kRetryPolicyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StateOptions::StateOptions() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateOptions.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.common.v1.StateOptions) +} +StateOptions::StateOptions(const StateOptions& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_retry_policy()) { + retry_policy_ = new ::dapr::proto::common::v1::StateRetryPolicy(*from.retry_policy_); + } else { + retry_policy_ = NULL; + } + ::memcpy(&concurrency_, &from.concurrency_, + static_cast(reinterpret_cast(&consistency_) - + reinterpret_cast(&concurrency_)) + sizeof(consistency_)); + // @@protoc_insertion_point(copy_constructor:dapr.proto.common.v1.StateOptions) +} + +void StateOptions::SharedCtor() { + ::memset(&retry_policy_, 0, static_cast( + reinterpret_cast(&consistency_) - + reinterpret_cast(&retry_policy_)) + sizeof(consistency_)); +} + +StateOptions::~StateOptions() { + // @@protoc_insertion_point(destructor:dapr.proto.common.v1.StateOptions) + SharedDtor(); +} + +void StateOptions::SharedDtor() { + if (this != internal_default_instance()) delete retry_policy_; +} + +void StateOptions::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StateOptions::descriptor() { + ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StateOptions& StateOptions::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateOptions.base); + return *internal_default_instance(); +} + + +void StateOptions::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.common.v1.StateOptions) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && retry_policy_ != NULL) { + delete retry_policy_; + } + retry_policy_ = NULL; + ::memset(&concurrency_, 0, static_cast( + reinterpret_cast(&consistency_) - + reinterpret_cast(&concurrency_)) + sizeof(consistency_)); + _internal_metadata_.Clear(); +} + +bool StateOptions::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.common.v1.StateOptions) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_concurrency(static_cast< ::dapr::proto::common::v1::StateOptions_StateConcurrency >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_consistency(static_cast< ::dapr::proto::common::v1::StateOptions_StateConsistency >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .dapr.proto.common.v1.StateRetryPolicy retry_policy = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_retry_policy())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.common.v1.StateOptions) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.common.v1.StateOptions) + return false; +#undef DO_ +} + +void StateOptions::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.common.v1.StateOptions) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; + if (this->concurrency() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->concurrency(), output); + } + + // .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; + if (this->consistency() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->consistency(), output); + } + + // .dapr.proto.common.v1.StateRetryPolicy retry_policy = 3; + if (this->has_retry_policy()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_retry_policy(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.common.v1.StateOptions) +} + +::google::protobuf::uint8* StateOptions::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.common.v1.StateOptions) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; + if (this->concurrency() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->concurrency(), target); + } + + // .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; + if (this->consistency() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->consistency(), target); + } + + // .dapr.proto.common.v1.StateRetryPolicy retry_policy = 3; + if (this->has_retry_policy()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_retry_policy(), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.common.v1.StateOptions) + return target; +} + +size_t StateOptions::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.common.v1.StateOptions) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .dapr.proto.common.v1.StateRetryPolicy retry_policy = 3; + if (this->has_retry_policy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *retry_policy_); + } + + // .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; + if (this->concurrency() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->concurrency()); + } + + // .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; + if (this->consistency() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->consistency()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StateOptions::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.common.v1.StateOptions) + GOOGLE_DCHECK_NE(&from, this); + const StateOptions* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.common.v1.StateOptions) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.common.v1.StateOptions) + MergeFrom(*source); + } +} + +void StateOptions::MergeFrom(const StateOptions& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.common.v1.StateOptions) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_retry_policy()) { + mutable_retry_policy()->::dapr::proto::common::v1::StateRetryPolicy::MergeFrom(from.retry_policy()); + } + if (from.concurrency() != 0) { + set_concurrency(from.concurrency()); + } + if (from.consistency() != 0) { + set_consistency(from.consistency()); + } +} + +void StateOptions::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.common.v1.StateOptions) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StateOptions::CopyFrom(const StateOptions& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.common.v1.StateOptions) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StateOptions::IsInitialized() const { + return true; +} + +void StateOptions::Swap(StateOptions* other) { + if (other == this) return; + InternalSwap(other); +} +void StateOptions::InternalSwap(StateOptions* other) { + using std::swap; + swap(retry_policy_, other->retry_policy_); + swap(concurrency_, other->concurrency_); + swap(consistency_, other->consistency_); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StateOptions::GetMetadata() const { + protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void StateRetryPolicy::InitAsDefaultInstance() { + ::dapr::proto::common::v1::_StateRetryPolicy_default_instance_._instance.get_mutable()->interval_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); +} +void StateRetryPolicy::clear_interval() { + if (GetArenaNoVirtual() == NULL && interval_ != NULL) { + delete interval_; + } + interval_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StateRetryPolicy::kThresholdFieldNumber; +const int StateRetryPolicy::kPatternFieldNumber; +const int StateRetryPolicy::kIntervalFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StateRetryPolicy::StateRetryPolicy() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateRetryPolicy.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.common.v1.StateRetryPolicy) +} +StateRetryPolicy::StateRetryPolicy(const StateRetryPolicy& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_interval()) { + interval_ = new ::google::protobuf::Duration(*from.interval_); + } else { + interval_ = NULL; + } + ::memcpy(&threshold_, &from.threshold_, + static_cast(reinterpret_cast(&pattern_) - + reinterpret_cast(&threshold_)) + sizeof(pattern_)); + // @@protoc_insertion_point(copy_constructor:dapr.proto.common.v1.StateRetryPolicy) +} + +void StateRetryPolicy::SharedCtor() { + ::memset(&interval_, 0, static_cast( + reinterpret_cast(&pattern_) - + reinterpret_cast(&interval_)) + sizeof(pattern_)); +} + +StateRetryPolicy::~StateRetryPolicy() { + // @@protoc_insertion_point(destructor:dapr.proto.common.v1.StateRetryPolicy) + SharedDtor(); +} + +void StateRetryPolicy::SharedDtor() { + if (this != internal_default_instance()) delete interval_; +} + +void StateRetryPolicy::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* StateRetryPolicy::descriptor() { + ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StateRetryPolicy& StateRetryPolicy::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateRetryPolicy.base); + return *internal_default_instance(); +} + + +void StateRetryPolicy::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.common.v1.StateRetryPolicy) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && interval_ != NULL) { + delete interval_; + } + interval_ = NULL; + ::memset(&threshold_, 0, static_cast( + reinterpret_cast(&pattern_) - + reinterpret_cast(&threshold_)) + sizeof(pattern_)); + _internal_metadata_.Clear(); +} + +bool StateRetryPolicy::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.common.v1.StateRetryPolicy) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int32 threshold = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &threshold_))); + } else { + goto handle_unusual; + } + break; + } + + // .dapr.proto.common.v1.StateRetryPolicy.RetryPattern pattern = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_pattern(static_cast< ::dapr::proto::common::v1::StateRetryPolicy_RetryPattern >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration interval = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_interval())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.common.v1.StateRetryPolicy) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.common.v1.StateRetryPolicy) + return false; +#undef DO_ +} + +void StateRetryPolicy::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.common.v1.StateRetryPolicy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 threshold = 1; + if (this->threshold() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->threshold(), output); + } + + // .dapr.proto.common.v1.StateRetryPolicy.RetryPattern pattern = 2; + if (this->pattern() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->pattern(), output); + } + + // .google.protobuf.Duration interval = 3; + if (this->has_interval()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_interval(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.common.v1.StateRetryPolicy) +} + +::google::protobuf::uint8* StateRetryPolicy::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.common.v1.StateRetryPolicy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 threshold = 1; + if (this->threshold() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->threshold(), target); + } + + // .dapr.proto.common.v1.StateRetryPolicy.RetryPattern pattern = 2; + if (this->pattern() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->pattern(), target); + } + + // .google.protobuf.Duration interval = 3; + if (this->has_interval()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_interval(), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.common.v1.StateRetryPolicy) + return target; +} + +size_t StateRetryPolicy::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.common.v1.StateRetryPolicy) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .google.protobuf.Duration interval = 3; + if (this->has_interval()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *interval_); + } + + // int32 threshold = 1; + if (this->threshold() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->threshold()); + } + + // .dapr.proto.common.v1.StateRetryPolicy.RetryPattern pattern = 2; + if (this->pattern() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->pattern()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StateRetryPolicy::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.common.v1.StateRetryPolicy) + GOOGLE_DCHECK_NE(&from, this); + const StateRetryPolicy* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.common.v1.StateRetryPolicy) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.common.v1.StateRetryPolicy) + MergeFrom(*source); + } +} + +void StateRetryPolicy::MergeFrom(const StateRetryPolicy& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.common.v1.StateRetryPolicy) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_interval()) { + mutable_interval()->::google::protobuf::Duration::MergeFrom(from.interval()); + } + if (from.threshold() != 0) { + set_threshold(from.threshold()); + } + if (from.pattern() != 0) { + set_pattern(from.pattern()); + } +} + +void StateRetryPolicy::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.common.v1.StateRetryPolicy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StateRetryPolicy::CopyFrom(const StateRetryPolicy& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.common.v1.StateRetryPolicy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StateRetryPolicy::IsInitialized() const { + return true; +} + +void StateRetryPolicy::Swap(StateRetryPolicy* other) { + if (other == this) return; + InternalSwap(other); +} +void StateRetryPolicy::InternalSwap(StateRetryPolicy* other) { + using std::swap; + swap(interval_, other->interval_); + swap(threshold_, other->threshold_); + swap(pattern_, other->pattern_); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata StateRetryPolicy::GetMetadata() const { + protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace common +} // namespace proto +} // namespace dapr +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::HTTPExtension_QuerystringEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::HTTPExtension_QuerystringEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::common::v1::HTTPExtension_QuerystringEntry_DoNotUse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::HTTPExtension* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::HTTPExtension >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::common::v1::HTTPExtension >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::InvokeRequest* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::InvokeRequest >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::common::v1::InvokeRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::InvokeResponse* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::InvokeResponse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::common::v1::InvokeResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::StateSaveRequest* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::StateSaveRequest >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::common::v1::StateSaveRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::StateOptions* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::StateOptions >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::common::v1::StateOptions >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::common::v1::StateRetryPolicy* Arena::CreateMaybeMessage< ::dapr::proto::common::v1::StateRetryPolicy >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::common::v1::StateRetryPolicy >(arena); } } // namespace protobuf } // namespace google diff --git a/src/dapr/proto/common/v1/common.pb.h b/src/dapr/proto/common/v1/common.pb.h index e16d493..138ceb7 100644 --- a/src/dapr/proto/common/v1/common.pb.h +++ b/src/dapr/proto/common/v1/common.pb.h @@ -35,6 +35,7 @@ #include #include #include +#include // @@protoc_insertion_point(includes) #define PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto @@ -43,7 +44,7 @@ namespace protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto { struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[4]; + static const ::google::protobuf::internal::ParseTable schema[8]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; @@ -66,6 +67,18 @@ extern InvokeRequestDefaultTypeInternal _InvokeRequest_default_instance_; class InvokeResponse; class InvokeResponseDefaultTypeInternal; extern InvokeResponseDefaultTypeInternal _InvokeResponse_default_instance_; +class StateOptions; +class StateOptionsDefaultTypeInternal; +extern StateOptionsDefaultTypeInternal _StateOptions_default_instance_; +class StateRetryPolicy; +class StateRetryPolicyDefaultTypeInternal; +extern StateRetryPolicyDefaultTypeInternal _StateRetryPolicy_default_instance_; +class StateSaveRequest; +class StateSaveRequestDefaultTypeInternal; +extern StateSaveRequestDefaultTypeInternal _StateSaveRequest_default_instance_; +class StateSaveRequest_MetadataEntry_DoNotUse; +class StateSaveRequest_MetadataEntry_DoNotUseDefaultTypeInternal; +extern StateSaveRequest_MetadataEntry_DoNotUseDefaultTypeInternal _StateSaveRequest_MetadataEntry_DoNotUse_default_instance_; } // namespace v1 } // namespace common } // namespace proto @@ -76,6 +89,10 @@ template<> ::dapr::proto::common::v1::HTTPExtension* Arena::CreateMaybeMessage<: template<> ::dapr::proto::common::v1::HTTPExtension_QuerystringEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::common::v1::HTTPExtension_QuerystringEntry_DoNotUse>(Arena*); template<> ::dapr::proto::common::v1::InvokeRequest* Arena::CreateMaybeMessage<::dapr::proto::common::v1::InvokeRequest>(Arena*); template<> ::dapr::proto::common::v1::InvokeResponse* Arena::CreateMaybeMessage<::dapr::proto::common::v1::InvokeResponse>(Arena*); +template<> ::dapr::proto::common::v1::StateOptions* Arena::CreateMaybeMessage<::dapr::proto::common::v1::StateOptions>(Arena*); +template<> ::dapr::proto::common::v1::StateRetryPolicy* Arena::CreateMaybeMessage<::dapr::proto::common::v1::StateRetryPolicy>(Arena*); +template<> ::dapr::proto::common::v1::StateSaveRequest* Arena::CreateMaybeMessage<::dapr::proto::common::v1::StateSaveRequest>(Arena*); +template<> ::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::common::v1::StateSaveRequest_MetadataEntry_DoNotUse>(Arena*); } // namespace protobuf } // namespace google namespace dapr { @@ -111,6 +128,72 @@ inline bool HTTPExtension_Verb_Parse( return ::google::protobuf::internal::ParseNamedEnum( HTTPExtension_Verb_descriptor(), name, value); } +enum StateOptions_StateConcurrency { + StateOptions_StateConcurrency_CONCURRENCY_UNSPECIFIED = 0, + StateOptions_StateConcurrency_CONCURRENCY_FIRST_WRITE = 1, + StateOptions_StateConcurrency_CONCURRENCY_LAST_WRITE = 2, + StateOptions_StateConcurrency_StateOptions_StateConcurrency_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + StateOptions_StateConcurrency_StateOptions_StateConcurrency_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool StateOptions_StateConcurrency_IsValid(int value); +const StateOptions_StateConcurrency StateOptions_StateConcurrency_StateConcurrency_MIN = StateOptions_StateConcurrency_CONCURRENCY_UNSPECIFIED; +const StateOptions_StateConcurrency StateOptions_StateConcurrency_StateConcurrency_MAX = StateOptions_StateConcurrency_CONCURRENCY_LAST_WRITE; +const int StateOptions_StateConcurrency_StateConcurrency_ARRAYSIZE = StateOptions_StateConcurrency_StateConcurrency_MAX + 1; + +const ::google::protobuf::EnumDescriptor* StateOptions_StateConcurrency_descriptor(); +inline const ::std::string& StateOptions_StateConcurrency_Name(StateOptions_StateConcurrency value) { + return ::google::protobuf::internal::NameOfEnum( + StateOptions_StateConcurrency_descriptor(), value); +} +inline bool StateOptions_StateConcurrency_Parse( + const ::std::string& name, StateOptions_StateConcurrency* value) { + return ::google::protobuf::internal::ParseNamedEnum( + StateOptions_StateConcurrency_descriptor(), name, value); +} +enum StateOptions_StateConsistency { + StateOptions_StateConsistency_CONSISTENCY_UNSPECIFIED = 0, + StateOptions_StateConsistency_CONSISTENCY_EVENTUAL = 1, + StateOptions_StateConsistency_CONSISTENCY_STRONG = 2, + StateOptions_StateConsistency_StateOptions_StateConsistency_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + StateOptions_StateConsistency_StateOptions_StateConsistency_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool StateOptions_StateConsistency_IsValid(int value); +const StateOptions_StateConsistency StateOptions_StateConsistency_StateConsistency_MIN = StateOptions_StateConsistency_CONSISTENCY_UNSPECIFIED; +const StateOptions_StateConsistency StateOptions_StateConsistency_StateConsistency_MAX = StateOptions_StateConsistency_CONSISTENCY_STRONG; +const int StateOptions_StateConsistency_StateConsistency_ARRAYSIZE = StateOptions_StateConsistency_StateConsistency_MAX + 1; + +const ::google::protobuf::EnumDescriptor* StateOptions_StateConsistency_descriptor(); +inline const ::std::string& StateOptions_StateConsistency_Name(StateOptions_StateConsistency value) { + return ::google::protobuf::internal::NameOfEnum( + StateOptions_StateConsistency_descriptor(), value); +} +inline bool StateOptions_StateConsistency_Parse( + const ::std::string& name, StateOptions_StateConsistency* value) { + return ::google::protobuf::internal::ParseNamedEnum( + StateOptions_StateConsistency_descriptor(), name, value); +} +enum StateRetryPolicy_RetryPattern { + StateRetryPolicy_RetryPattern_RETRY_UNSPECIFIED = 0, + StateRetryPolicy_RetryPattern_RETRY_LINEAR = 1, + StateRetryPolicy_RetryPattern_RETRY_EXPONENTIAL = 2, + StateRetryPolicy_RetryPattern_StateRetryPolicy_RetryPattern_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + StateRetryPolicy_RetryPattern_StateRetryPolicy_RetryPattern_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool StateRetryPolicy_RetryPattern_IsValid(int value); +const StateRetryPolicy_RetryPattern StateRetryPolicy_RetryPattern_RetryPattern_MIN = StateRetryPolicy_RetryPattern_RETRY_UNSPECIFIED; +const StateRetryPolicy_RetryPattern StateRetryPolicy_RetryPattern_RetryPattern_MAX = StateRetryPolicy_RetryPattern_RETRY_EXPONENTIAL; +const int StateRetryPolicy_RetryPattern_RetryPattern_ARRAYSIZE = StateRetryPolicy_RetryPattern_RetryPattern_MAX + 1; + +const ::google::protobuf::EnumDescriptor* StateRetryPolicy_RetryPattern_descriptor(); +inline const ::std::string& StateRetryPolicy_RetryPattern_Name(StateRetryPolicy_RetryPattern value) { + return ::google::protobuf::internal::NameOfEnum( + StateRetryPolicy_RetryPattern_descriptor(), value); +} +inline bool StateRetryPolicy_RetryPattern_Parse( + const ::std::string& name, StateRetryPolicy_RetryPattern* value) { + return ::google::protobuf::internal::ParseNamedEnum( + StateRetryPolicy_RetryPattern_descriptor(), name, value); +} // =================================================================== class HTTPExtension_QuerystringEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + StateSaveRequest_MetadataEntry_DoNotUse(); + StateSaveRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const StateSaveRequest_MetadataEntry_DoNotUse& other); + static const StateSaveRequest_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_StateSaveRequest_MetadataEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class StateSaveRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.common.v1.StateSaveRequest) */ { + public: + StateSaveRequest(); + virtual ~StateSaveRequest(); + + StateSaveRequest(const StateSaveRequest& from); + + inline StateSaveRequest& operator=(const StateSaveRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StateSaveRequest(StateSaveRequest&& from) noexcept + : StateSaveRequest() { + *this = ::std::move(from); + } + + inline StateSaveRequest& operator=(StateSaveRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StateSaveRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StateSaveRequest* internal_default_instance() { + return reinterpret_cast( + &_StateSaveRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(StateSaveRequest* other); + friend void swap(StateSaveRequest& a, StateSaveRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StateSaveRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + StateSaveRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StateSaveRequest& from); + void MergeFrom(const StateSaveRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StateSaveRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map metadata = 4; + int metadata_size() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 4; + const ::google::protobuf::Map< ::std::string, ::std::string >& + metadata() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_metadata(); + + // string key = 1; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // bytes value = 2; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const void* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // string etag = 3; + void clear_etag(); + static const int kEtagFieldNumber = 3; + const ::std::string& etag() const; + void set_etag(const ::std::string& value); + #if LANG_CXX11 + void set_etag(::std::string&& value); + #endif + void set_etag(const char* value); + void set_etag(const char* value, size_t size); + ::std::string* mutable_etag(); + ::std::string* release_etag(); + void set_allocated_etag(::std::string* etag); + + // .dapr.proto.common.v1.StateOptions options = 5; + bool has_options() const; + void clear_options(); + static const int kOptionsFieldNumber = 5; + private: + const ::dapr::proto::common::v1::StateOptions& _internal_options() const; + public: + const ::dapr::proto::common::v1::StateOptions& options() const; + ::dapr::proto::common::v1::StateOptions* release_options(); + ::dapr::proto::common::v1::StateOptions* mutable_options(); + void set_allocated_options(::dapr::proto::common::v1::StateOptions* options); + + // @@protoc_insertion_point(class_scope:dapr.proto.common.v1.StateSaveRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + StateSaveRequest_MetadataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > metadata_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + ::google::protobuf::internal::ArenaStringPtr etag_; + ::dapr::proto::common::v1::StateOptions* options_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StateOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.common.v1.StateOptions) */ { + public: + StateOptions(); + virtual ~StateOptions(); + + StateOptions(const StateOptions& from); + + inline StateOptions& operator=(const StateOptions& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StateOptions(StateOptions&& from) noexcept + : StateOptions() { + *this = ::std::move(from); + } + + inline StateOptions& operator=(StateOptions&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StateOptions& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StateOptions* internal_default_instance() { + return reinterpret_cast( + &_StateOptions_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(StateOptions* other); + friend void swap(StateOptions& a, StateOptions& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StateOptions* New() const final { + return CreateMaybeMessage(NULL); + } + + StateOptions* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StateOptions& from); + void MergeFrom(const StateOptions& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StateOptions* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef StateOptions_StateConcurrency StateConcurrency; + static const StateConcurrency CONCURRENCY_UNSPECIFIED = + StateOptions_StateConcurrency_CONCURRENCY_UNSPECIFIED; + static const StateConcurrency CONCURRENCY_FIRST_WRITE = + StateOptions_StateConcurrency_CONCURRENCY_FIRST_WRITE; + static const StateConcurrency CONCURRENCY_LAST_WRITE = + StateOptions_StateConcurrency_CONCURRENCY_LAST_WRITE; + static inline bool StateConcurrency_IsValid(int value) { + return StateOptions_StateConcurrency_IsValid(value); + } + static const StateConcurrency StateConcurrency_MIN = + StateOptions_StateConcurrency_StateConcurrency_MIN; + static const StateConcurrency StateConcurrency_MAX = + StateOptions_StateConcurrency_StateConcurrency_MAX; + static const int StateConcurrency_ARRAYSIZE = + StateOptions_StateConcurrency_StateConcurrency_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + StateConcurrency_descriptor() { + return StateOptions_StateConcurrency_descriptor(); + } + static inline const ::std::string& StateConcurrency_Name(StateConcurrency value) { + return StateOptions_StateConcurrency_Name(value); + } + static inline bool StateConcurrency_Parse(const ::std::string& name, + StateConcurrency* value) { + return StateOptions_StateConcurrency_Parse(name, value); + } + + typedef StateOptions_StateConsistency StateConsistency; + static const StateConsistency CONSISTENCY_UNSPECIFIED = + StateOptions_StateConsistency_CONSISTENCY_UNSPECIFIED; + static const StateConsistency CONSISTENCY_EVENTUAL = + StateOptions_StateConsistency_CONSISTENCY_EVENTUAL; + static const StateConsistency CONSISTENCY_STRONG = + StateOptions_StateConsistency_CONSISTENCY_STRONG; + static inline bool StateConsistency_IsValid(int value) { + return StateOptions_StateConsistency_IsValid(value); + } + static const StateConsistency StateConsistency_MIN = + StateOptions_StateConsistency_StateConsistency_MIN; + static const StateConsistency StateConsistency_MAX = + StateOptions_StateConsistency_StateConsistency_MAX; + static const int StateConsistency_ARRAYSIZE = + StateOptions_StateConsistency_StateConsistency_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + StateConsistency_descriptor() { + return StateOptions_StateConsistency_descriptor(); + } + static inline const ::std::string& StateConsistency_Name(StateConsistency value) { + return StateOptions_StateConsistency_Name(value); + } + static inline bool StateConsistency_Parse(const ::std::string& name, + StateConsistency* value) { + return StateOptions_StateConsistency_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .dapr.proto.common.v1.StateRetryPolicy retry_policy = 3; + bool has_retry_policy() const; + void clear_retry_policy(); + static const int kRetryPolicyFieldNumber = 3; + private: + const ::dapr::proto::common::v1::StateRetryPolicy& _internal_retry_policy() const; + public: + const ::dapr::proto::common::v1::StateRetryPolicy& retry_policy() const; + ::dapr::proto::common::v1::StateRetryPolicy* release_retry_policy(); + ::dapr::proto::common::v1::StateRetryPolicy* mutable_retry_policy(); + void set_allocated_retry_policy(::dapr::proto::common::v1::StateRetryPolicy* retry_policy); + + // .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; + void clear_concurrency(); + static const int kConcurrencyFieldNumber = 1; + ::dapr::proto::common::v1::StateOptions_StateConcurrency concurrency() const; + void set_concurrency(::dapr::proto::common::v1::StateOptions_StateConcurrency value); + + // .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; + void clear_consistency(); + static const int kConsistencyFieldNumber = 2; + ::dapr::proto::common::v1::StateOptions_StateConsistency consistency() const; + void set_consistency(::dapr::proto::common::v1::StateOptions_StateConsistency value); + + // @@protoc_insertion_point(class_scope:dapr.proto.common.v1.StateOptions) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::dapr::proto::common::v1::StateRetryPolicy* retry_policy_; + int concurrency_; + int consistency_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class StateRetryPolicy : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.common.v1.StateRetryPolicy) */ { + public: + StateRetryPolicy(); + virtual ~StateRetryPolicy(); + + StateRetryPolicy(const StateRetryPolicy& from); + + inline StateRetryPolicy& operator=(const StateRetryPolicy& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StateRetryPolicy(StateRetryPolicy&& from) noexcept + : StateRetryPolicy() { + *this = ::std::move(from); + } + + inline StateRetryPolicy& operator=(StateRetryPolicy&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StateRetryPolicy& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StateRetryPolicy* internal_default_instance() { + return reinterpret_cast( + &_StateRetryPolicy_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(StateRetryPolicy* other); + friend void swap(StateRetryPolicy& a, StateRetryPolicy& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StateRetryPolicy* New() const final { + return CreateMaybeMessage(NULL); + } + + StateRetryPolicy* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StateRetryPolicy& from); + void MergeFrom(const StateRetryPolicy& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StateRetryPolicy* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef StateRetryPolicy_RetryPattern RetryPattern; + static const RetryPattern RETRY_UNSPECIFIED = + StateRetryPolicy_RetryPattern_RETRY_UNSPECIFIED; + static const RetryPattern RETRY_LINEAR = + StateRetryPolicy_RetryPattern_RETRY_LINEAR; + static const RetryPattern RETRY_EXPONENTIAL = + StateRetryPolicy_RetryPattern_RETRY_EXPONENTIAL; + static inline bool RetryPattern_IsValid(int value) { + return StateRetryPolicy_RetryPattern_IsValid(value); + } + static const RetryPattern RetryPattern_MIN = + StateRetryPolicy_RetryPattern_RetryPattern_MIN; + static const RetryPattern RetryPattern_MAX = + StateRetryPolicy_RetryPattern_RetryPattern_MAX; + static const int RetryPattern_ARRAYSIZE = + StateRetryPolicy_RetryPattern_RetryPattern_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RetryPattern_descriptor() { + return StateRetryPolicy_RetryPattern_descriptor(); + } + static inline const ::std::string& RetryPattern_Name(RetryPattern value) { + return StateRetryPolicy_RetryPattern_Name(value); + } + static inline bool RetryPattern_Parse(const ::std::string& name, + RetryPattern* value) { + return StateRetryPolicy_RetryPattern_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .google.protobuf.Duration interval = 3; + bool has_interval() const; + void clear_interval(); + static const int kIntervalFieldNumber = 3; + private: + const ::google::protobuf::Duration& _internal_interval() const; + public: + const ::google::protobuf::Duration& interval() const; + ::google::protobuf::Duration* release_interval(); + ::google::protobuf::Duration* mutable_interval(); + void set_allocated_interval(::google::protobuf::Duration* interval); + + // int32 threshold = 1; + void clear_threshold(); + static const int kThresholdFieldNumber = 1; + ::google::protobuf::int32 threshold() const; + void set_threshold(::google::protobuf::int32 value); + + // .dapr.proto.common.v1.StateRetryPolicy.RetryPattern pattern = 2; + void clear_pattern(); + static const int kPatternFieldNumber = 2; + ::dapr::proto::common::v1::StateRetryPolicy_RetryPattern pattern() const; + void set_pattern(::dapr::proto::common::v1::StateRetryPolicy_RetryPattern value); + + // @@protoc_insertion_point(class_scope:dapr.proto.common.v1.StateRetryPolicy) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::Duration* interval_; + ::google::protobuf::int32 threshold_; + int pattern_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::TableStruct; +}; // =================================================================== @@ -929,6 +1533,410 @@ inline void InvokeResponse::set_allocated_content_type(::std::string* content_ty // @@protoc_insertion_point(field_set_allocated:dapr.proto.common.v1.InvokeResponse.content_type) } +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// StateSaveRequest + +// string key = 1; +inline void StateSaveRequest::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StateSaveRequest::key() const { + // @@protoc_insertion_point(field_get:dapr.proto.common.v1.StateSaveRequest.key) + return key_.GetNoArena(); +} +inline void StateSaveRequest::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.common.v1.StateSaveRequest.key) +} +#if LANG_CXX11 +inline void StateSaveRequest::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.common.v1.StateSaveRequest.key) +} +#endif +inline void StateSaveRequest::set_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.common.v1.StateSaveRequest.key) +} +inline void StateSaveRequest::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.common.v1.StateSaveRequest.key) +} +inline ::std::string* StateSaveRequest::mutable_key() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.common.v1.StateSaveRequest.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StateSaveRequest::release_key() { + // @@protoc_insertion_point(field_release:dapr.proto.common.v1.StateSaveRequest.key) + + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StateSaveRequest::set_allocated_key(::std::string* key) { + if (key != NULL) { + + } else { + + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.common.v1.StateSaveRequest.key) +} + +// bytes value = 2; +inline void StateSaveRequest::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StateSaveRequest::value() const { + // @@protoc_insertion_point(field_get:dapr.proto.common.v1.StateSaveRequest.value) + return value_.GetNoArena(); +} +inline void StateSaveRequest::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.common.v1.StateSaveRequest.value) +} +#if LANG_CXX11 +inline void StateSaveRequest::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.common.v1.StateSaveRequest.value) +} +#endif +inline void StateSaveRequest::set_value(const char* value) { + GOOGLE_DCHECK(value != NULL); + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.common.v1.StateSaveRequest.value) +} +inline void StateSaveRequest::set_value(const void* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.common.v1.StateSaveRequest.value) +} +inline ::std::string* StateSaveRequest::mutable_value() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.common.v1.StateSaveRequest.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StateSaveRequest::release_value() { + // @@protoc_insertion_point(field_release:dapr.proto.common.v1.StateSaveRequest.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StateSaveRequest::set_allocated_value(::std::string* value) { + if (value != NULL) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.common.v1.StateSaveRequest.value) +} + +// string etag = 3; +inline void StateSaveRequest::clear_etag() { + etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StateSaveRequest::etag() const { + // @@protoc_insertion_point(field_get:dapr.proto.common.v1.StateSaveRequest.etag) + return etag_.GetNoArena(); +} +inline void StateSaveRequest::set_etag(const ::std::string& value) { + + etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.common.v1.StateSaveRequest.etag) +} +#if LANG_CXX11 +inline void StateSaveRequest::set_etag(::std::string&& value) { + + etag_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.common.v1.StateSaveRequest.etag) +} +#endif +inline void StateSaveRequest::set_etag(const char* value) { + GOOGLE_DCHECK(value != NULL); + + etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.common.v1.StateSaveRequest.etag) +} +inline void StateSaveRequest::set_etag(const char* value, size_t size) { + + etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.common.v1.StateSaveRequest.etag) +} +inline ::std::string* StateSaveRequest::mutable_etag() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.common.v1.StateSaveRequest.etag) + return etag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StateSaveRequest::release_etag() { + // @@protoc_insertion_point(field_release:dapr.proto.common.v1.StateSaveRequest.etag) + + return etag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StateSaveRequest::set_allocated_etag(::std::string* etag) { + if (etag != NULL) { + + } else { + + } + etag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), etag); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.common.v1.StateSaveRequest.etag) +} + +// map metadata = 4; +inline int StateSaveRequest::metadata_size() const { + return metadata_.size(); +} +inline void StateSaveRequest::clear_metadata() { + metadata_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +StateSaveRequest::metadata() const { + // @@protoc_insertion_point(field_map:dapr.proto.common.v1.StateSaveRequest.metadata) + return metadata_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +StateSaveRequest::mutable_metadata() { + // @@protoc_insertion_point(field_mutable_map:dapr.proto.common.v1.StateSaveRequest.metadata) + return metadata_.MutableMap(); +} + +// .dapr.proto.common.v1.StateOptions options = 5; +inline bool StateSaveRequest::has_options() const { + return this != internal_default_instance() && options_ != NULL; +} +inline void StateSaveRequest::clear_options() { + if (GetArenaNoVirtual() == NULL && options_ != NULL) { + delete options_; + } + options_ = NULL; +} +inline const ::dapr::proto::common::v1::StateOptions& StateSaveRequest::_internal_options() const { + return *options_; +} +inline const ::dapr::proto::common::v1::StateOptions& StateSaveRequest::options() const { + const ::dapr::proto::common::v1::StateOptions* p = options_; + // @@protoc_insertion_point(field_get:dapr.proto.common.v1.StateSaveRequest.options) + return p != NULL ? *p : *reinterpret_cast( + &::dapr::proto::common::v1::_StateOptions_default_instance_); +} +inline ::dapr::proto::common::v1::StateOptions* StateSaveRequest::release_options() { + // @@protoc_insertion_point(field_release:dapr.proto.common.v1.StateSaveRequest.options) + + ::dapr::proto::common::v1::StateOptions* temp = options_; + options_ = NULL; + return temp; +} +inline ::dapr::proto::common::v1::StateOptions* StateSaveRequest::mutable_options() { + + if (options_ == NULL) { + auto* p = CreateMaybeMessage<::dapr::proto::common::v1::StateOptions>(GetArenaNoVirtual()); + options_ = p; + } + // @@protoc_insertion_point(field_mutable:dapr.proto.common.v1.StateSaveRequest.options) + return options_; +} +inline void StateSaveRequest::set_allocated_options(::dapr::proto::common::v1::StateOptions* options) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete options_; + } + if (options) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + options = ::google::protobuf::internal::GetOwnedMessage( + message_arena, options, submessage_arena); + } + + } else { + + } + options_ = options; + // @@protoc_insertion_point(field_set_allocated:dapr.proto.common.v1.StateSaveRequest.options) +} + +// ------------------------------------------------------------------- + +// StateOptions + +// .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; +inline void StateOptions::clear_concurrency() { + concurrency_ = 0; +} +inline ::dapr::proto::common::v1::StateOptions_StateConcurrency StateOptions::concurrency() const { + // @@protoc_insertion_point(field_get:dapr.proto.common.v1.StateOptions.concurrency) + return static_cast< ::dapr::proto::common::v1::StateOptions_StateConcurrency >(concurrency_); +} +inline void StateOptions::set_concurrency(::dapr::proto::common::v1::StateOptions_StateConcurrency value) { + + concurrency_ = value; + // @@protoc_insertion_point(field_set:dapr.proto.common.v1.StateOptions.concurrency) +} + +// .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; +inline void StateOptions::clear_consistency() { + consistency_ = 0; +} +inline ::dapr::proto::common::v1::StateOptions_StateConsistency StateOptions::consistency() const { + // @@protoc_insertion_point(field_get:dapr.proto.common.v1.StateOptions.consistency) + return static_cast< ::dapr::proto::common::v1::StateOptions_StateConsistency >(consistency_); +} +inline void StateOptions::set_consistency(::dapr::proto::common::v1::StateOptions_StateConsistency value) { + + consistency_ = value; + // @@protoc_insertion_point(field_set:dapr.proto.common.v1.StateOptions.consistency) +} + +// .dapr.proto.common.v1.StateRetryPolicy retry_policy = 3; +inline bool StateOptions::has_retry_policy() const { + return this != internal_default_instance() && retry_policy_ != NULL; +} +inline void StateOptions::clear_retry_policy() { + if (GetArenaNoVirtual() == NULL && retry_policy_ != NULL) { + delete retry_policy_; + } + retry_policy_ = NULL; +} +inline const ::dapr::proto::common::v1::StateRetryPolicy& StateOptions::_internal_retry_policy() const { + return *retry_policy_; +} +inline const ::dapr::proto::common::v1::StateRetryPolicy& StateOptions::retry_policy() const { + const ::dapr::proto::common::v1::StateRetryPolicy* p = retry_policy_; + // @@protoc_insertion_point(field_get:dapr.proto.common.v1.StateOptions.retry_policy) + return p != NULL ? *p : *reinterpret_cast( + &::dapr::proto::common::v1::_StateRetryPolicy_default_instance_); +} +inline ::dapr::proto::common::v1::StateRetryPolicy* StateOptions::release_retry_policy() { + // @@protoc_insertion_point(field_release:dapr.proto.common.v1.StateOptions.retry_policy) + + ::dapr::proto::common::v1::StateRetryPolicy* temp = retry_policy_; + retry_policy_ = NULL; + return temp; +} +inline ::dapr::proto::common::v1::StateRetryPolicy* StateOptions::mutable_retry_policy() { + + if (retry_policy_ == NULL) { + auto* p = CreateMaybeMessage<::dapr::proto::common::v1::StateRetryPolicy>(GetArenaNoVirtual()); + retry_policy_ = p; + } + // @@protoc_insertion_point(field_mutable:dapr.proto.common.v1.StateOptions.retry_policy) + return retry_policy_; +} +inline void StateOptions::set_allocated_retry_policy(::dapr::proto::common::v1::StateRetryPolicy* retry_policy) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete retry_policy_; + } + if (retry_policy) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + retry_policy = ::google::protobuf::internal::GetOwnedMessage( + message_arena, retry_policy, submessage_arena); + } + + } else { + + } + retry_policy_ = retry_policy; + // @@protoc_insertion_point(field_set_allocated:dapr.proto.common.v1.StateOptions.retry_policy) +} + +// ------------------------------------------------------------------- + +// StateRetryPolicy + +// int32 threshold = 1; +inline void StateRetryPolicy::clear_threshold() { + threshold_ = 0; +} +inline ::google::protobuf::int32 StateRetryPolicy::threshold() const { + // @@protoc_insertion_point(field_get:dapr.proto.common.v1.StateRetryPolicy.threshold) + return threshold_; +} +inline void StateRetryPolicy::set_threshold(::google::protobuf::int32 value) { + + threshold_ = value; + // @@protoc_insertion_point(field_set:dapr.proto.common.v1.StateRetryPolicy.threshold) +} + +// .dapr.proto.common.v1.StateRetryPolicy.RetryPattern pattern = 2; +inline void StateRetryPolicy::clear_pattern() { + pattern_ = 0; +} +inline ::dapr::proto::common::v1::StateRetryPolicy_RetryPattern StateRetryPolicy::pattern() const { + // @@protoc_insertion_point(field_get:dapr.proto.common.v1.StateRetryPolicy.pattern) + return static_cast< ::dapr::proto::common::v1::StateRetryPolicy_RetryPattern >(pattern_); +} +inline void StateRetryPolicy::set_pattern(::dapr::proto::common::v1::StateRetryPolicy_RetryPattern value) { + + pattern_ = value; + // @@protoc_insertion_point(field_set:dapr.proto.common.v1.StateRetryPolicy.pattern) +} + +// .google.protobuf.Duration interval = 3; +inline bool StateRetryPolicy::has_interval() const { + return this != internal_default_instance() && interval_ != NULL; +} +inline const ::google::protobuf::Duration& StateRetryPolicy::_internal_interval() const { + return *interval_; +} +inline const ::google::protobuf::Duration& StateRetryPolicy::interval() const { + const ::google::protobuf::Duration* p = interval_; + // @@protoc_insertion_point(field_get:dapr.proto.common.v1.StateRetryPolicy.interval) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* StateRetryPolicy::release_interval() { + // @@protoc_insertion_point(field_release:dapr.proto.common.v1.StateRetryPolicy.interval) + + ::google::protobuf::Duration* temp = interval_; + interval_ = NULL; + return temp; +} +inline ::google::protobuf::Duration* StateRetryPolicy::mutable_interval() { + + if (interval_ == NULL) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + interval_ = p; + } + // @@protoc_insertion_point(field_mutable:dapr.proto.common.v1.StateRetryPolicy.interval) + return interval_; +} +inline void StateRetryPolicy::set_allocated_interval(::google::protobuf::Duration* interval) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(interval_); + } + if (interval) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(interval)->GetArena(); + if (message_arena != submessage_arena) { + interval = ::google::protobuf::internal::GetOwnedMessage( + message_arena, interval, submessage_arena); + } + + } else { + + } + interval_ = interval; + // @@protoc_insertion_point(field_set_allocated:dapr.proto.common.v1.StateRetryPolicy.interval) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -938,6 +1946,14 @@ inline void InvokeResponse::set_allocated_content_type(::std::string* content_ty // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -954,6 +1970,21 @@ template <> inline const EnumDescriptor* GetEnumDescriptor< ::dapr::proto::common::v1::HTTPExtension_Verb>() { return ::dapr::proto::common::v1::HTTPExtension_Verb_descriptor(); } +template <> struct is_proto_enum< ::dapr::proto::common::v1::StateOptions_StateConcurrency> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::dapr::proto::common::v1::StateOptions_StateConcurrency>() { + return ::dapr::proto::common::v1::StateOptions_StateConcurrency_descriptor(); +} +template <> struct is_proto_enum< ::dapr::proto::common::v1::StateOptions_StateConsistency> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::dapr::proto::common::v1::StateOptions_StateConsistency>() { + return ::dapr::proto::common::v1::StateOptions_StateConsistency_descriptor(); +} +template <> struct is_proto_enum< ::dapr::proto::common::v1::StateRetryPolicy_RetryPattern> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::dapr::proto::common::v1::StateRetryPolicy_RetryPattern>() { + return ::dapr::proto::common::v1::StateRetryPolicy_RetryPattern_descriptor(); +} } // namespace protobuf } // namespace google diff --git a/src/dapr/proto/dapr/v1/dapr.pb.cc b/src/dapr/proto/dapr/v1/dapr.pb.cc deleted file mode 100644 index 7eb52c5..0000000 --- a/src/dapr/proto/dapr/v1/dapr.pb.cc +++ /dev/null @@ -1,5894 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dapr/proto/dapr/v1/dapr.proto - -#include "dapr/proto/dapr/v1/dapr.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// This is a temporary google only hack -#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS -#include "third_party/protobuf/version.h" -#endif -// @@protoc_insertion_point(includes) - -namespace protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_InvokeRequest; -} // namespace protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto -namespace protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GetSecretEnvelope_MetadataEntry_DoNotUse; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GetSecretResponseEnvelope_DataEntry_DoNotUse; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InvokeBindingEnvelope_MetadataEntry_DoNotUse; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StateRequest_MetadataEntry_DoNotUse; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_State_MetadataEntry_DoNotUse; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_RetryPolicy; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StateOptions; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_StateRequest; -} // namespace protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto -namespace protobuf_google_2fprotobuf_2fany_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fany_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Any; -} // namespace protobuf_google_2fprotobuf_2fany_2eproto -namespace protobuf_google_2fprotobuf_2fduration_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration; -} // namespace protobuf_google_2fprotobuf_2fduration_2eproto -namespace dapr { -namespace proto { -namespace dapr { -namespace v1 { -class InvokeServiceRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _InvokeServiceRequest_default_instance_; -class DeleteStateEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _DeleteStateEnvelope_default_instance_; -class SaveStateEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _SaveStateEnvelope_default_instance_; -class GetStateEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _GetStateEnvelope_default_instance_; -class GetStateResponseEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _GetStateResponseEnvelope_default_instance_; -class GetSecretEnvelope_MetadataEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _GetSecretEnvelope_MetadataEntry_DoNotUse_default_instance_; -class GetSecretEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _GetSecretEnvelope_default_instance_; -class GetSecretResponseEnvelope_DataEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _GetSecretResponseEnvelope_DataEntry_DoNotUse_default_instance_; -class GetSecretResponseEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _GetSecretResponseEnvelope_default_instance_; -class InvokeBindingEnvelope_MetadataEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _InvokeBindingEnvelope_MetadataEntry_DoNotUse_default_instance_; -class InvokeBindingEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _InvokeBindingEnvelope_default_instance_; -class PublishEventEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _PublishEventEnvelope_default_instance_; -class State_MetadataEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _State_MetadataEntry_DoNotUse_default_instance_; -class StateDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _State_default_instance_; -class StateOptionsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _StateOptions_default_instance_; -class RetryPolicyDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _RetryPolicy_default_instance_; -class StateRequest_MetadataEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _StateRequest_MetadataEntry_DoNotUse_default_instance_; -class StateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _StateRequest_default_instance_; -} // namespace v1 -} // namespace dapr -} // namespace proto -} // namespace dapr -namespace protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto { -static void InitDefaultsInvokeServiceRequest() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_InvokeServiceRequest_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::InvokeServiceRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::InvokeServiceRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_InvokeServiceRequest = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsInvokeServiceRequest}, { - &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_InvokeRequest.base,}}; - -static void InitDefaultsDeleteStateEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_DeleteStateEnvelope_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::DeleteStateEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::DeleteStateEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_DeleteStateEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDeleteStateEnvelope}, { - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_StateOptions.base,}}; - -static void InitDefaultsSaveStateEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_SaveStateEnvelope_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::SaveStateEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::SaveStateEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_SaveStateEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSaveStateEnvelope}, { - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_StateRequest.base,}}; - -static void InitDefaultsGetStateEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_GetStateEnvelope_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::GetStateEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::GetStateEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GetStateEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetStateEnvelope}, {}}; - -static void InitDefaultsGetStateResponseEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_GetStateResponseEnvelope_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::GetStateResponseEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::GetStateResponseEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetStateResponseEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetStateResponseEnvelope}, { - &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base,}}; - -static void InitDefaultsGetSecretEnvelope_MetadataEntry_DoNotUse() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_GetSecretEnvelope_MetadataEntry_DoNotUse_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse(); - } - ::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GetSecretEnvelope_MetadataEntry_DoNotUse = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetSecretEnvelope_MetadataEntry_DoNotUse}, {}}; - -static void InitDefaultsGetSecretEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_GetSecretEnvelope_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::GetSecretEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::GetSecretEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetSecretEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetSecretEnvelope}, { - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_GetSecretEnvelope_MetadataEntry_DoNotUse.base,}}; - -static void InitDefaultsGetSecretResponseEnvelope_DataEntry_DoNotUse() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_GetSecretResponseEnvelope_DataEntry_DoNotUse_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse(); - } - ::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GetSecretResponseEnvelope_DataEntry_DoNotUse = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetSecretResponseEnvelope_DataEntry_DoNotUse}, {}}; - -static void InitDefaultsGetSecretResponseEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_GetSecretResponseEnvelope_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::GetSecretResponseEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::GetSecretResponseEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetSecretResponseEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetSecretResponseEnvelope}, { - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_GetSecretResponseEnvelope_DataEntry_DoNotUse.base,}}; - -static void InitDefaultsInvokeBindingEnvelope_MetadataEntry_DoNotUse() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_InvokeBindingEnvelope_MetadataEntry_DoNotUse_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse(); - } - ::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_InvokeBindingEnvelope_MetadataEntry_DoNotUse = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInvokeBindingEnvelope_MetadataEntry_DoNotUse}, {}}; - -static void InitDefaultsInvokeBindingEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_InvokeBindingEnvelope_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::InvokeBindingEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::InvokeBindingEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_InvokeBindingEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsInvokeBindingEnvelope}, { - &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base, - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_InvokeBindingEnvelope_MetadataEntry_DoNotUse.base,}}; - -static void InitDefaultsPublishEventEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_PublishEventEnvelope_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::PublishEventEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::PublishEventEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_PublishEventEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPublishEventEnvelope}, { - &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base,}}; - -static void InitDefaultsState_MetadataEntry_DoNotUse() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_State_MetadataEntry_DoNotUse_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse(); - } - ::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_State_MetadataEntry_DoNotUse = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsState_MetadataEntry_DoNotUse}, {}}; - -static void InitDefaultsState() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_State_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::State(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::State::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_State = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsState}, { - &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base, - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_State_MetadataEntry_DoNotUse.base, - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_StateOptions.base,}}; - -static void InitDefaultsStateOptions() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_StateOptions_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::StateOptions(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::StateOptions::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_StateOptions = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStateOptions}, { - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_RetryPolicy.base,}}; - -static void InitDefaultsRetryPolicy() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_RetryPolicy_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::RetryPolicy(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::RetryPolicy::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_RetryPolicy = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRetryPolicy}, { - &protobuf_google_2fprotobuf_2fduration_2eproto::scc_info_Duration.base,}}; - -static void InitDefaultsStateRequest_MetadataEntry_DoNotUse() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_StateRequest_MetadataEntry_DoNotUse_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse(); - } - ::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_StateRequest_MetadataEntry_DoNotUse = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStateRequest_MetadataEntry_DoNotUse}, {}}; - -static void InitDefaultsStateRequest() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::dapr::v1::_StateRequest_default_instance_; - new (ptr) ::dapr::proto::dapr::v1::StateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::dapr::v1::StateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_StateRequest = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsStateRequest}, { - &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base, - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_StateRequest_MetadataEntry_DoNotUse.base, - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_StateOptions.base,}}; - -void InitDefaults() { - ::google::protobuf::internal::InitSCC(&scc_info_InvokeServiceRequest.base); - ::google::protobuf::internal::InitSCC(&scc_info_DeleteStateEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_SaveStateEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetStateEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetStateResponseEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetSecretEnvelope_MetadataEntry_DoNotUse.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetSecretEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetSecretResponseEnvelope_DataEntry_DoNotUse.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetSecretResponseEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_InvokeBindingEnvelope_MetadataEntry_DoNotUse.base); - ::google::protobuf::internal::InitSCC(&scc_info_InvokeBindingEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_PublishEventEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_State_MetadataEntry_DoNotUse.base); - ::google::protobuf::internal::InitSCC(&scc_info_State.base); - ::google::protobuf::internal::InitSCC(&scc_info_StateOptions.base); - ::google::protobuf::internal::InitSCC(&scc_info_RetryPolicy.base); - ::google::protobuf::internal::InitSCC(&scc_info_StateRequest_MetadataEntry_DoNotUse.base); - ::google::protobuf::internal::InitSCC(&scc_info_StateRequest.base); -} - -::google::protobuf::Metadata file_level_metadata[18]; - -const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::InvokeServiceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::InvokeServiceRequest, id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::InvokeServiceRequest, message_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::DeleteStateEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::DeleteStateEnvelope, store_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::DeleteStateEnvelope, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::DeleteStateEnvelope, etag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::DeleteStateEnvelope, options_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::SaveStateEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::SaveStateEnvelope, store_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::SaveStateEnvelope, requests_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetStateEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetStateEnvelope, store_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetStateEnvelope, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetStateEnvelope, consistency_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetStateResponseEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetStateResponseEnvelope, data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetStateResponseEnvelope, etag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse, _has_bits_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretEnvelope, store_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretEnvelope, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretEnvelope, metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse, _has_bits_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretResponseEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::GetSecretResponseEnvelope, data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse, _has_bits_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::InvokeBindingEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::InvokeBindingEnvelope, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::InvokeBindingEnvelope, data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::InvokeBindingEnvelope, metadata_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::PublishEventEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::PublishEventEnvelope, topic_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::PublishEventEnvelope, data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse, _has_bits_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::State, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::State, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::State, value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::State, etag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::State, metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::State, options_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateOptions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateOptions, concurrency_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateOptions, consistency_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateOptions, retry_policy_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::RetryPolicy, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::RetryPolicy, threshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::RetryPolicy, pattern_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::RetryPolicy, interval_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse, _has_bits_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateRequest, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateRequest, value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateRequest, etag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateRequest, metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::dapr::v1::StateRequest, options_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::dapr::proto::dapr::v1::InvokeServiceRequest)}, - { 7, -1, sizeof(::dapr::proto::dapr::v1::DeleteStateEnvelope)}, - { 16, -1, sizeof(::dapr::proto::dapr::v1::SaveStateEnvelope)}, - { 23, -1, sizeof(::dapr::proto::dapr::v1::GetStateEnvelope)}, - { 31, -1, sizeof(::dapr::proto::dapr::v1::GetStateResponseEnvelope)}, - { 38, 45, sizeof(::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse)}, - { 47, -1, sizeof(::dapr::proto::dapr::v1::GetSecretEnvelope)}, - { 55, 62, sizeof(::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse)}, - { 64, -1, sizeof(::dapr::proto::dapr::v1::GetSecretResponseEnvelope)}, - { 70, 77, sizeof(::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse)}, - { 79, -1, sizeof(::dapr::proto::dapr::v1::InvokeBindingEnvelope)}, - { 87, -1, sizeof(::dapr::proto::dapr::v1::PublishEventEnvelope)}, - { 94, 101, sizeof(::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse)}, - { 103, -1, sizeof(::dapr::proto::dapr::v1::State)}, - { 113, -1, sizeof(::dapr::proto::dapr::v1::StateOptions)}, - { 121, -1, sizeof(::dapr::proto::dapr::v1::RetryPolicy)}, - { 129, 136, sizeof(::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse)}, - { 138, -1, sizeof(::dapr::proto::dapr::v1::StateRequest)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::dapr::proto::dapr::v1::_InvokeServiceRequest_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_DeleteStateEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_SaveStateEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_GetStateEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_GetStateResponseEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_GetSecretEnvelope_MetadataEntry_DoNotUse_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_GetSecretEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_GetSecretResponseEnvelope_DataEntry_DoNotUse_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_GetSecretResponseEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_InvokeBindingEnvelope_MetadataEntry_DoNotUse_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_InvokeBindingEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_PublishEventEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_State_MetadataEntry_DoNotUse_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_State_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_StateOptions_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_RetryPolicy_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_StateRequest_MetadataEntry_DoNotUse_default_instance_), - reinterpret_cast(&::dapr::proto::dapr::v1::_StateRequest_default_instance_), -}; - -void protobuf_AssignDescriptors() { - AddDescriptors(); - AssignDescriptors( - "dapr/proto/dapr/v1/dapr.proto", schemas, file_default_instances, TableStruct::offsets, - file_level_metadata, NULL, NULL); -} - -void protobuf_AssignDescriptorsOnce() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 18); -} - -void AddDescriptorsImpl() { - InitDefaults(); - static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n\035dapr/proto/dapr/v1/dapr.proto\022\022dapr.pr" - "oto.dapr.v1\032\031google/protobuf/any.proto\032\033" - "google/protobuf/empty.proto\032\036google/prot" - "obuf/duration.proto\032!dapr/proto/common/v" - "1/common.proto\"X\n\024InvokeServiceRequest\022\n" - "\n\002id\030\001 \001(\t\0224\n\007message\030\003 \001(\0132#.dapr.proto" - ".common.v1.InvokeRequest\"w\n\023DeleteStateE" - "nvelope\022\022\n\nstore_name\030\001 \001(\t\022\013\n\003key\030\002 \001(\t" - "\022\014\n\004etag\030\003 \001(\t\0221\n\007options\030\004 \001(\0132 .dapr.p" - "roto.dapr.v1.StateOptions\"[\n\021SaveStateEn" - "velope\022\022\n\nstore_name\030\001 \001(\t\0222\n\010requests\030\002" - " \003(\0132 .dapr.proto.dapr.v1.StateRequest\"H" - "\n\020GetStateEnvelope\022\022\n\nstore_name\030\001 \001(\t\022\013" - "\n\003key\030\002 \001(\t\022\023\n\013consistency\030\003 \001(\t\"L\n\030GetS" - "tateResponseEnvelope\022\"\n\004data\030\001 \001(\0132\024.goo" - "gle.protobuf.Any\022\014\n\004etag\030\002 \001(\t\"\254\001\n\021GetSe" - "cretEnvelope\022\022\n\nstore_name\030\001 \001(\t\022\013\n\003key\030" - "\002 \001(\t\022E\n\010metadata\030\003 \003(\01323.dapr.proto.dap" - "r.v1.GetSecretEnvelope.MetadataEntry\032/\n\r" - "MetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - "\t:\0028\001\"\217\001\n\031GetSecretResponseEnvelope\022E\n\004d" - "ata\030\001 \003(\01327.dapr.proto.dapr.v1.GetSecret" - "ResponseEnvelope.DataEntry\032+\n\tDataEntry\022" - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\305\001\n\025Invo" - "keBindingEnvelope\022\014\n\004name\030\001 \001(\t\022\"\n\004data\030" - "\002 \001(\0132\024.google.protobuf.Any\022I\n\010metadata\030" - "\003 \003(\01327.dapr.proto.dapr.v1.InvokeBinding" - "Envelope.MetadataEntry\032/\n\rMetadataEntry\022" - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"I\n\024Publi" - "shEventEnvelope\022\r\n\005topic\030\001 \001(\t\022\"\n\004data\030\002" - " \001(\0132\024.google.protobuf.Any\"\346\001\n\005State\022\013\n\003" - "key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.google.protob" - "uf.Any\022\014\n\004etag\030\003 \001(\t\0229\n\010metadata\030\004 \003(\0132\'" - ".dapr.proto.dapr.v1.State.MetadataEntry\022" - "1\n\007options\030\005 \001(\0132 .dapr.proto.dapr.v1.St" - "ateOptions\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t" - "\022\r\n\005value\030\002 \001(\t:\0028\001\"o\n\014StateOptions\022\023\n\013c" - "oncurrency\030\001 \001(\t\022\023\n\013consistency\030\002 \001(\t\0225\n" - "\014retry_policy\030\003 \001(\0132\037.dapr.proto.dapr.v1" - ".RetryPolicy\"^\n\013RetryPolicy\022\021\n\tthreshold" - "\030\001 \001(\005\022\017\n\007pattern\030\002 \001(\t\022+\n\010interval\030\003 \001(" - "\0132\031.google.protobuf.Duration\"\364\001\n\014StateRe" - "quest\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.goog" - "le.protobuf.Any\022\014\n\004etag\030\003 \001(\t\022@\n\010metadat" - "a\030\004 \003(\0132..dapr.proto.dapr.v1.StateReques" - "t.MetadataEntry\0221\n\007options\030\005 \001(\0132 .dapr." - "proto.dapr.v1.StateOptions\032/\n\rMetadataEn" - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\372\004\n\004" - "Dapr\022R\n\014PublishEvent\022(.dapr.proto.dapr.v" - "1.PublishEventEnvelope\032\026.google.protobuf" - ".Empty\"\000\022a\n\rInvokeService\022(.dapr.proto.d" - "apr.v1.InvokeServiceRequest\032$.dapr.proto" - ".common.v1.InvokeResponse\"\000\022T\n\rInvokeBin" - "ding\022).dapr.proto.dapr.v1.InvokeBindingE" - "nvelope\032\026.google.protobuf.Empty\"\000\022`\n\010Get" - "State\022$.dapr.proto.dapr.v1.GetStateEnvel" - "ope\032,.dapr.proto.dapr.v1.GetStateRespons" - "eEnvelope\"\000\022c\n\tGetSecret\022%.dapr.proto.da" - "pr.v1.GetSecretEnvelope\032-.dapr.proto.dap" - "r.v1.GetSecretResponseEnvelope\"\000\022L\n\tSave" - "State\022%.dapr.proto.dapr.v1.SaveStateEnve" - "lope\032\026.google.protobuf.Empty\"\000\022P\n\013Delete" - "State\022\'.dapr.proto.dapr.v1.DeleteStateEn" - "velope\032\026.google.protobuf.Empty\"\000B^\n\nio.d" - "apr.v1B\nDaprProtosZ&github.com/dapr/dapr" - "/pkg/proto/dapr/v1\252\002\033Dapr.Client.Autogen" - ".Grpc.v1b\006proto3" - }; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 2656); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "dapr/proto/dapr/v1/dapr.proto", &protobuf_RegisterTypes); - ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors(); - ::protobuf_google_2fprotobuf_2fempty_2eproto::AddDescriptors(); - ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors(); - ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::AddDescriptors(); -} - -void AddDescriptors() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); -} -// Force AddDescriptors() to be called at dynamic initialization time. -struct StaticDescriptorInitializer { - StaticDescriptorInitializer() { - AddDescriptors(); - } -} static_descriptor_initializer; -} // namespace protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto -namespace dapr { -namespace proto { -namespace dapr { -namespace v1 { - -// =================================================================== - -void InvokeServiceRequest::InitAsDefaultInstance() { - ::dapr::proto::dapr::v1::_InvokeServiceRequest_default_instance_._instance.get_mutable()->message_ = const_cast< ::dapr::proto::common::v1::InvokeRequest*>( - ::dapr::proto::common::v1::InvokeRequest::internal_default_instance()); -} -void InvokeServiceRequest::clear_message() { - if (GetArenaNoVirtual() == NULL && message_ != NULL) { - delete message_; - } - message_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InvokeServiceRequest::kIdFieldNumber; -const int InvokeServiceRequest::kMessageFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InvokeServiceRequest::InvokeServiceRequest() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_InvokeServiceRequest.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.InvokeServiceRequest) -} -InvokeServiceRequest::InvokeServiceRequest(const InvokeServiceRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.id().size() > 0) { - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - if (from.has_message()) { - message_ = new ::dapr::proto::common::v1::InvokeRequest(*from.message_); - } else { - message_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.InvokeServiceRequest) -} - -void InvokeServiceRequest::SharedCtor() { - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - message_ = NULL; -} - -InvokeServiceRequest::~InvokeServiceRequest() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.InvokeServiceRequest) - SharedDtor(); -} - -void InvokeServiceRequest::SharedDtor() { - id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete message_; -} - -void InvokeServiceRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* InvokeServiceRequest::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const InvokeServiceRequest& InvokeServiceRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_InvokeServiceRequest.base); - return *internal_default_instance(); -} - - -void InvokeServiceRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.InvokeServiceRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && message_ != NULL) { - delete message_; - } - message_ = NULL; - _internal_metadata_.Clear(); -} - -bool InvokeServiceRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.InvokeServiceRequest) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.InvokeServiceRequest.id")); - } else { - goto handle_unusual; - } - break; - } - - // .dapr.proto.common.v1.InvokeRequest message = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_message())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.InvokeServiceRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.InvokeServiceRequest) - return false; -#undef DO_ -} - -void InvokeServiceRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.InvokeServiceRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.InvokeServiceRequest.id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->id(), output); - } - - // .dapr.proto.common.v1.InvokeRequest message = 3; - if (this->has_message()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->_internal_message(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.InvokeServiceRequest) -} - -::google::protobuf::uint8* InvokeServiceRequest::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.InvokeServiceRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.InvokeServiceRequest.id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); - } - - // .dapr.proto.common.v1.InvokeRequest message = 3; - if (this->has_message()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->_internal_message(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.InvokeServiceRequest) - return target; -} - -size_t InvokeServiceRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.InvokeServiceRequest) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // string id = 1; - if (this->id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); - } - - // .dapr.proto.common.v1.InvokeRequest message = 3; - if (this->has_message()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *message_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void InvokeServiceRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.InvokeServiceRequest) - GOOGLE_DCHECK_NE(&from, this); - const InvokeServiceRequest* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.InvokeServiceRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.InvokeServiceRequest) - MergeFrom(*source); - } -} - -void InvokeServiceRequest::MergeFrom(const InvokeServiceRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.InvokeServiceRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.id().size() > 0) { - - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - if (from.has_message()) { - mutable_message()->::dapr::proto::common::v1::InvokeRequest::MergeFrom(from.message()); - } -} - -void InvokeServiceRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.InvokeServiceRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InvokeServiceRequest::CopyFrom(const InvokeServiceRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.InvokeServiceRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InvokeServiceRequest::IsInitialized() const { - return true; -} - -void InvokeServiceRequest::Swap(InvokeServiceRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void InvokeServiceRequest::InternalSwap(InvokeServiceRequest* other) { - using std::swap; - id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(message_, other->message_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata InvokeServiceRequest::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void DeleteStateEnvelope::InitAsDefaultInstance() { - ::dapr::proto::dapr::v1::_DeleteStateEnvelope_default_instance_._instance.get_mutable()->options_ = const_cast< ::dapr::proto::dapr::v1::StateOptions*>( - ::dapr::proto::dapr::v1::StateOptions::internal_default_instance()); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DeleteStateEnvelope::kStoreNameFieldNumber; -const int DeleteStateEnvelope::kKeyFieldNumber; -const int DeleteStateEnvelope::kEtagFieldNumber; -const int DeleteStateEnvelope::kOptionsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DeleteStateEnvelope::DeleteStateEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_DeleteStateEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.DeleteStateEnvelope) -} -DeleteStateEnvelope::DeleteStateEnvelope(const DeleteStateEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.store_name().size() > 0) { - store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); - } - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.etag().size() > 0) { - etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); - } - if (from.has_options()) { - options_ = new ::dapr::proto::dapr::v1::StateOptions(*from.options_); - } else { - options_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.DeleteStateEnvelope) -} - -void DeleteStateEnvelope::SharedCtor() { - store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - options_ = NULL; -} - -DeleteStateEnvelope::~DeleteStateEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.DeleteStateEnvelope) - SharedDtor(); -} - -void DeleteStateEnvelope::SharedDtor() { - store_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete options_; -} - -void DeleteStateEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* DeleteStateEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const DeleteStateEnvelope& DeleteStateEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_DeleteStateEnvelope.base); - return *internal_default_instance(); -} - - -void DeleteStateEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.DeleteStateEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && options_ != NULL) { - delete options_; - } - options_ = NULL; - _internal_metadata_.Clear(); -} - -bool DeleteStateEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.DeleteStateEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string store_name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_store_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.DeleteStateEnvelope.store_name")); - } else { - goto handle_unusual; - } - break; - } - - // string key = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.DeleteStateEnvelope.key")); - } else { - goto handle_unusual; - } - break; - } - - // string etag = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_etag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.DeleteStateEnvelope.etag")); - } else { - goto handle_unusual; - } - break; - } - - // .dapr.proto.dapr.v1.StateOptions options = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_options())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.DeleteStateEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.DeleteStateEnvelope) - return false; -#undef DO_ -} - -void DeleteStateEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.DeleteStateEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string store_name = 1; - if (this->store_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.DeleteStateEnvelope.store_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->store_name(), output); - } - - // string key = 2; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.DeleteStateEnvelope.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->key(), output); - } - - // string etag = 3; - if (this->etag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.DeleteStateEnvelope.etag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->etag(), output); - } - - // .dapr.proto.dapr.v1.StateOptions options = 4; - if (this->has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->_internal_options(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.DeleteStateEnvelope) -} - -::google::protobuf::uint8* DeleteStateEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.DeleteStateEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string store_name = 1; - if (this->store_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.DeleteStateEnvelope.store_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->store_name(), target); - } - - // string key = 2; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.DeleteStateEnvelope.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->key(), target); - } - - // string etag = 3; - if (this->etag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.DeleteStateEnvelope.etag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->etag(), target); - } - - // .dapr.proto.dapr.v1.StateOptions options = 4; - if (this->has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->_internal_options(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.DeleteStateEnvelope) - return target; -} - -size_t DeleteStateEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.DeleteStateEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // string store_name = 1; - if (this->store_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->store_name()); - } - - // string key = 2; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // string etag = 3; - if (this->etag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->etag()); - } - - // .dapr.proto.dapr.v1.StateOptions options = 4; - if (this->has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *options_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DeleteStateEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.DeleteStateEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const DeleteStateEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.DeleteStateEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.DeleteStateEnvelope) - MergeFrom(*source); - } -} - -void DeleteStateEnvelope::MergeFrom(const DeleteStateEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.DeleteStateEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.store_name().size() > 0) { - - store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); - } - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.etag().size() > 0) { - - etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); - } - if (from.has_options()) { - mutable_options()->::dapr::proto::dapr::v1::StateOptions::MergeFrom(from.options()); - } -} - -void DeleteStateEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.DeleteStateEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeleteStateEnvelope::CopyFrom(const DeleteStateEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.DeleteStateEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeleteStateEnvelope::IsInitialized() const { - return true; -} - -void DeleteStateEnvelope::Swap(DeleteStateEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void DeleteStateEnvelope::InternalSwap(DeleteStateEnvelope* other) { - using std::swap; - store_name_.Swap(&other->store_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - etag_.Swap(&other->etag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(options_, other->options_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata DeleteStateEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void SaveStateEnvelope::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SaveStateEnvelope::kStoreNameFieldNumber; -const int SaveStateEnvelope::kRequestsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SaveStateEnvelope::SaveStateEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_SaveStateEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.SaveStateEnvelope) -} -SaveStateEnvelope::SaveStateEnvelope(const SaveStateEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL), - requests_(from.requests_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.store_name().size() > 0) { - store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.SaveStateEnvelope) -} - -void SaveStateEnvelope::SharedCtor() { - store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -SaveStateEnvelope::~SaveStateEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.SaveStateEnvelope) - SharedDtor(); -} - -void SaveStateEnvelope::SharedDtor() { - store_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void SaveStateEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* SaveStateEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const SaveStateEnvelope& SaveStateEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_SaveStateEnvelope.base); - return *internal_default_instance(); -} - - -void SaveStateEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.SaveStateEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - requests_.Clear(); - store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -bool SaveStateEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.SaveStateEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string store_name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_store_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.SaveStateEnvelope.store_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .dapr.proto.dapr.v1.StateRequest requests = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_requests())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.SaveStateEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.SaveStateEnvelope) - return false; -#undef DO_ -} - -void SaveStateEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.SaveStateEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string store_name = 1; - if (this->store_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.SaveStateEnvelope.store_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->store_name(), output); - } - - // repeated .dapr.proto.dapr.v1.StateRequest requests = 2; - for (unsigned int i = 0, - n = static_cast(this->requests_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->requests(static_cast(i)), - output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.SaveStateEnvelope) -} - -::google::protobuf::uint8* SaveStateEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.SaveStateEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string store_name = 1; - if (this->store_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.SaveStateEnvelope.store_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->store_name(), target); - } - - // repeated .dapr.proto.dapr.v1.StateRequest requests = 2; - for (unsigned int i = 0, - n = static_cast(this->requests_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->requests(static_cast(i)), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.SaveStateEnvelope) - return target; -} - -size_t SaveStateEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.SaveStateEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // repeated .dapr.proto.dapr.v1.StateRequest requests = 2; - { - unsigned int count = static_cast(this->requests_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->requests(static_cast(i))); - } - } - - // string store_name = 1; - if (this->store_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->store_name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SaveStateEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.SaveStateEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const SaveStateEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.SaveStateEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.SaveStateEnvelope) - MergeFrom(*source); - } -} - -void SaveStateEnvelope::MergeFrom(const SaveStateEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.SaveStateEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - requests_.MergeFrom(from.requests_); - if (from.store_name().size() > 0) { - - store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); - } -} - -void SaveStateEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.SaveStateEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SaveStateEnvelope::CopyFrom(const SaveStateEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.SaveStateEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SaveStateEnvelope::IsInitialized() const { - return true; -} - -void SaveStateEnvelope::Swap(SaveStateEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void SaveStateEnvelope::InternalSwap(SaveStateEnvelope* other) { - using std::swap; - CastToBase(&requests_)->InternalSwap(CastToBase(&other->requests_)); - store_name_.Swap(&other->store_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata SaveStateEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetStateEnvelope::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetStateEnvelope::kStoreNameFieldNumber; -const int GetStateEnvelope::kKeyFieldNumber; -const int GetStateEnvelope::kConsistencyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetStateEnvelope::GetStateEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_GetStateEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.GetStateEnvelope) -} -GetStateEnvelope::GetStateEnvelope(const GetStateEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.store_name().size() > 0) { - store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); - } - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - consistency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.consistency().size() > 0) { - consistency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.consistency_); - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.GetStateEnvelope) -} - -void GetStateEnvelope::SharedCtor() { - store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - consistency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -GetStateEnvelope::~GetStateEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.GetStateEnvelope) - SharedDtor(); -} - -void GetStateEnvelope::SharedDtor() { - store_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - consistency_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void GetStateEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* GetStateEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const GetStateEnvelope& GetStateEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_GetStateEnvelope.base); - return *internal_default_instance(); -} - - -void GetStateEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.GetStateEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - consistency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -bool GetStateEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.GetStateEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string store_name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_store_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.GetStateEnvelope.store_name")); - } else { - goto handle_unusual; - } - break; - } - - // string key = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.GetStateEnvelope.key")); - } else { - goto handle_unusual; - } - break; - } - - // string consistency = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_consistency())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->consistency().data(), static_cast(this->consistency().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.GetStateEnvelope.consistency")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.GetStateEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.GetStateEnvelope) - return false; -#undef DO_ -} - -void GetStateEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.GetStateEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string store_name = 1; - if (this->store_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetStateEnvelope.store_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->store_name(), output); - } - - // string key = 2; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetStateEnvelope.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->key(), output); - } - - // string consistency = 3; - if (this->consistency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->consistency().data(), static_cast(this->consistency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetStateEnvelope.consistency"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->consistency(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.GetStateEnvelope) -} - -::google::protobuf::uint8* GetStateEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.GetStateEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string store_name = 1; - if (this->store_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetStateEnvelope.store_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->store_name(), target); - } - - // string key = 2; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetStateEnvelope.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->key(), target); - } - - // string consistency = 3; - if (this->consistency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->consistency().data(), static_cast(this->consistency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetStateEnvelope.consistency"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->consistency(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.GetStateEnvelope) - return target; -} - -size_t GetStateEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.GetStateEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // string store_name = 1; - if (this->store_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->store_name()); - } - - // string key = 2; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // string consistency = 3; - if (this->consistency().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->consistency()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetStateEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.GetStateEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const GetStateEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.GetStateEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.GetStateEnvelope) - MergeFrom(*source); - } -} - -void GetStateEnvelope::MergeFrom(const GetStateEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.GetStateEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.store_name().size() > 0) { - - store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); - } - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.consistency().size() > 0) { - - consistency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.consistency_); - } -} - -void GetStateEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.GetStateEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStateEnvelope::CopyFrom(const GetStateEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.GetStateEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStateEnvelope::IsInitialized() const { - return true; -} - -void GetStateEnvelope::Swap(GetStateEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void GetStateEnvelope::InternalSwap(GetStateEnvelope* other) { - using std::swap; - store_name_.Swap(&other->store_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - consistency_.Swap(&other->consistency_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata GetStateEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetStateResponseEnvelope::InitAsDefaultInstance() { - ::dapr::proto::dapr::v1::_GetStateResponseEnvelope_default_instance_._instance.get_mutable()->data_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); -} -void GetStateResponseEnvelope::clear_data() { - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetStateResponseEnvelope::kDataFieldNumber; -const int GetStateResponseEnvelope::kEtagFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetStateResponseEnvelope::GetStateResponseEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_GetStateResponseEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.GetStateResponseEnvelope) -} -GetStateResponseEnvelope::GetStateResponseEnvelope(const GetStateResponseEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.etag().size() > 0) { - etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); - } - if (from.has_data()) { - data_ = new ::google::protobuf::Any(*from.data_); - } else { - data_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.GetStateResponseEnvelope) -} - -void GetStateResponseEnvelope::SharedCtor() { - etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - data_ = NULL; -} - -GetStateResponseEnvelope::~GetStateResponseEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.GetStateResponseEnvelope) - SharedDtor(); -} - -void GetStateResponseEnvelope::SharedDtor() { - etag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete data_; -} - -void GetStateResponseEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* GetStateResponseEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const GetStateResponseEnvelope& GetStateResponseEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_GetStateResponseEnvelope.base); - return *internal_default_instance(); -} - - -void GetStateResponseEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.GetStateResponseEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; - _internal_metadata_.Clear(); -} - -bool GetStateResponseEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.GetStateResponseEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .google.protobuf.Any data = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_data())); - } else { - goto handle_unusual; - } - break; - } - - // string etag = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_etag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.GetStateResponseEnvelope.etag")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.GetStateResponseEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.GetStateResponseEnvelope) - return false; -#undef DO_ -} - -void GetStateResponseEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.GetStateResponseEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Any data = 1; - if (this->has_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->_internal_data(), output); - } - - // string etag = 2; - if (this->etag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetStateResponseEnvelope.etag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->etag(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.GetStateResponseEnvelope) -} - -::google::protobuf::uint8* GetStateResponseEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.GetStateResponseEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Any data = 1; - if (this->has_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->_internal_data(), deterministic, target); - } - - // string etag = 2; - if (this->etag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetStateResponseEnvelope.etag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->etag(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.GetStateResponseEnvelope) - return target; -} - -size_t GetStateResponseEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.GetStateResponseEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // string etag = 2; - if (this->etag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->etag()); - } - - // .google.protobuf.Any data = 1; - if (this->has_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetStateResponseEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.GetStateResponseEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const GetStateResponseEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.GetStateResponseEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.GetStateResponseEnvelope) - MergeFrom(*source); - } -} - -void GetStateResponseEnvelope::MergeFrom(const GetStateResponseEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.GetStateResponseEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.etag().size() > 0) { - - etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); - } - if (from.has_data()) { - mutable_data()->::google::protobuf::Any::MergeFrom(from.data()); - } -} - -void GetStateResponseEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.GetStateResponseEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetStateResponseEnvelope::CopyFrom(const GetStateResponseEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.GetStateResponseEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetStateResponseEnvelope::IsInitialized() const { - return true; -} - -void GetStateResponseEnvelope::Swap(GetStateResponseEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void GetStateResponseEnvelope::InternalSwap(GetStateResponseEnvelope* other) { - using std::swap; - etag_.Swap(&other->etag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(data_, other->data_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata GetStateResponseEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -GetSecretEnvelope_MetadataEntry_DoNotUse::GetSecretEnvelope_MetadataEntry_DoNotUse() {} -GetSecretEnvelope_MetadataEntry_DoNotUse::GetSecretEnvelope_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void GetSecretEnvelope_MetadataEntry_DoNotUse::MergeFrom(const GetSecretEnvelope_MetadataEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata GetSecretEnvelope_MetadataEntry_DoNotUse::GetMetadata() const { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[5]; -} -void GetSecretEnvelope_MetadataEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - - -// =================================================================== - -void GetSecretEnvelope::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetSecretEnvelope::kStoreNameFieldNumber; -const int GetSecretEnvelope::kKeyFieldNumber; -const int GetSecretEnvelope::kMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetSecretEnvelope::GetSecretEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_GetSecretEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.GetSecretEnvelope) -} -GetSecretEnvelope::GetSecretEnvelope(const GetSecretEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - metadata_.MergeFrom(from.metadata_); - store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.store_name().size() > 0) { - store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); - } - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.GetSecretEnvelope) -} - -void GetSecretEnvelope::SharedCtor() { - store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -GetSecretEnvelope::~GetSecretEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.GetSecretEnvelope) - SharedDtor(); -} - -void GetSecretEnvelope::SharedDtor() { - store_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void GetSecretEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* GetSecretEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const GetSecretEnvelope& GetSecretEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_GetSecretEnvelope.base); - return *internal_default_instance(); -} - - -void GetSecretEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.GetSecretEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metadata_.Clear(); - store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -bool GetSecretEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.GetSecretEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string store_name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_store_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.GetSecretEnvelope.store_name")); - } else { - goto handle_unusual; - } - break; - } - - // string key = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.GetSecretEnvelope.key")); - } else { - goto handle_unusual; - } - break; - } - - // map metadata = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - GetSecretEnvelope_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - GetSecretEnvelope_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.GetSecretEnvelope.MetadataEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.GetSecretEnvelope.MetadataEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.GetSecretEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.GetSecretEnvelope) - return false; -#undef DO_ -} - -void GetSecretEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.GetSecretEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string store_name = 1; - if (this->store_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretEnvelope.store_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->store_name(), output); - } - - // string key = 2; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretEnvelope.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->key(), output); - } - - // map metadata = 3; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretEnvelope.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretEnvelope.MetadataEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *entry, output); - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *entry, output); - Utf8Check::Check(&*it); - } - } - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.GetSecretEnvelope) -} - -::google::protobuf::uint8* GetSecretEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.GetSecretEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string store_name = 1; - if (this->store_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->store_name().data(), static_cast(this->store_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretEnvelope.store_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->store_name(), target); - } - - // string key = 2; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretEnvelope.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->key(), target); - } - - // map metadata = 3; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretEnvelope.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretEnvelope.MetadataEntry.value"); - } - }; - - if (deterministic && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *entry, deterministic, target); -; - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *entry, deterministic, target); -; - Utf8Check::Check(&*it); - } - } - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.GetSecretEnvelope) - return target; -} - -size_t GetSecretEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.GetSecretEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // map metadata = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->metadata_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string store_name = 1; - if (this->store_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->store_name()); - } - - // string key = 2; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetSecretEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.GetSecretEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const GetSecretEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.GetSecretEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.GetSecretEnvelope) - MergeFrom(*source); - } -} - -void GetSecretEnvelope::MergeFrom(const GetSecretEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.GetSecretEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - metadata_.MergeFrom(from.metadata_); - if (from.store_name().size() > 0) { - - store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); - } - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } -} - -void GetSecretEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.GetSecretEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetSecretEnvelope::CopyFrom(const GetSecretEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.GetSecretEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetSecretEnvelope::IsInitialized() const { - return true; -} - -void GetSecretEnvelope::Swap(GetSecretEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void GetSecretEnvelope::InternalSwap(GetSecretEnvelope* other) { - using std::swap; - metadata_.Swap(&other->metadata_); - store_name_.Swap(&other->store_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata GetSecretEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -GetSecretResponseEnvelope_DataEntry_DoNotUse::GetSecretResponseEnvelope_DataEntry_DoNotUse() {} -GetSecretResponseEnvelope_DataEntry_DoNotUse::GetSecretResponseEnvelope_DataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void GetSecretResponseEnvelope_DataEntry_DoNotUse::MergeFrom(const GetSecretResponseEnvelope_DataEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata GetSecretResponseEnvelope_DataEntry_DoNotUse::GetMetadata() const { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[7]; -} -void GetSecretResponseEnvelope_DataEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - - -// =================================================================== - -void GetSecretResponseEnvelope::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetSecretResponseEnvelope::kDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetSecretResponseEnvelope::GetSecretResponseEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_GetSecretResponseEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.GetSecretResponseEnvelope) -} -GetSecretResponseEnvelope::GetSecretResponseEnvelope(const GetSecretResponseEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - data_.MergeFrom(from.data_); - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.GetSecretResponseEnvelope) -} - -void GetSecretResponseEnvelope::SharedCtor() { -} - -GetSecretResponseEnvelope::~GetSecretResponseEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - SharedDtor(); -} - -void GetSecretResponseEnvelope::SharedDtor() { -} - -void GetSecretResponseEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* GetSecretResponseEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const GetSecretResponseEnvelope& GetSecretResponseEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_GetSecretResponseEnvelope.base); - return *internal_default_instance(); -} - - -void GetSecretResponseEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - data_.Clear(); - _internal_metadata_.Clear(); -} - -bool GetSecretResponseEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // map data = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - GetSecretResponseEnvelope_DataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - GetSecretResponseEnvelope_DataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&data_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.GetSecretResponseEnvelope.DataEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.GetSecretResponseEnvelope.DataEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - return false; -#undef DO_ -} - -void GetSecretResponseEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map data = 1; - if (!this->data().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretResponseEnvelope.DataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretResponseEnvelope.DataEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->data().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->data().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->data().begin(); - it != this->data().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(data_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *entry, output); - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->data().begin(); - it != this->data().end(); ++it) { - entry.reset(data_.NewEntryWrapper( - it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *entry, output); - Utf8Check::Check(&*it); - } - } - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.GetSecretResponseEnvelope) -} - -::google::protobuf::uint8* GetSecretResponseEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map data = 1; - if (!this->data().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretResponseEnvelope.DataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.GetSecretResponseEnvelope.DataEntry.value"); - } - }; - - if (deterministic && - this->data().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->data().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->data().begin(); - it != this->data().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(data_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *entry, deterministic, target); -; - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->data().begin(); - it != this->data().end(); ++it) { - entry.reset(data_.NewEntryWrapper( - it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *entry, deterministic, target); -; - Utf8Check::Check(&*it); - } - } - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - return target; -} - -size_t GetSecretResponseEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // map data = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->data_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->data().begin(); - it != this->data().end(); ++it) { - entry.reset(data_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetSecretResponseEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const GetSecretResponseEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - MergeFrom(*source); - } -} - -void GetSecretResponseEnvelope::MergeFrom(const GetSecretResponseEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - data_.MergeFrom(from.data_); -} - -void GetSecretResponseEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetSecretResponseEnvelope::CopyFrom(const GetSecretResponseEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetSecretResponseEnvelope::IsInitialized() const { - return true; -} - -void GetSecretResponseEnvelope::Swap(GetSecretResponseEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void GetSecretResponseEnvelope::InternalSwap(GetSecretResponseEnvelope* other) { - using std::swap; - data_.Swap(&other->data_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata GetSecretResponseEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -InvokeBindingEnvelope_MetadataEntry_DoNotUse::InvokeBindingEnvelope_MetadataEntry_DoNotUse() {} -InvokeBindingEnvelope_MetadataEntry_DoNotUse::InvokeBindingEnvelope_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void InvokeBindingEnvelope_MetadataEntry_DoNotUse::MergeFrom(const InvokeBindingEnvelope_MetadataEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata InvokeBindingEnvelope_MetadataEntry_DoNotUse::GetMetadata() const { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[9]; -} -void InvokeBindingEnvelope_MetadataEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - - -// =================================================================== - -void InvokeBindingEnvelope::InitAsDefaultInstance() { - ::dapr::proto::dapr::v1::_InvokeBindingEnvelope_default_instance_._instance.get_mutable()->data_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); -} -void InvokeBindingEnvelope::clear_data() { - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InvokeBindingEnvelope::kNameFieldNumber; -const int InvokeBindingEnvelope::kDataFieldNumber; -const int InvokeBindingEnvelope::kMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InvokeBindingEnvelope::InvokeBindingEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_InvokeBindingEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.InvokeBindingEnvelope) -} -InvokeBindingEnvelope::InvokeBindingEnvelope(const InvokeBindingEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - metadata_.MergeFrom(from.metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_data()) { - data_ = new ::google::protobuf::Any(*from.data_); - } else { - data_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.InvokeBindingEnvelope) -} - -void InvokeBindingEnvelope::SharedCtor() { - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - data_ = NULL; -} - -InvokeBindingEnvelope::~InvokeBindingEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.InvokeBindingEnvelope) - SharedDtor(); -} - -void InvokeBindingEnvelope::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete data_; -} - -void InvokeBindingEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* InvokeBindingEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const InvokeBindingEnvelope& InvokeBindingEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_InvokeBindingEnvelope.base); - return *internal_default_instance(); -} - - -void InvokeBindingEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.InvokeBindingEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metadata_.Clear(); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; - _internal_metadata_.Clear(); -} - -bool InvokeBindingEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.InvokeBindingEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.InvokeBindingEnvelope.name")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Any data = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_data())); - } else { - goto handle_unusual; - } - break; - } - - // map metadata = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - InvokeBindingEnvelope_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - InvokeBindingEnvelope_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.InvokeBindingEnvelope.MetadataEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.InvokeBindingEnvelope.MetadataEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.InvokeBindingEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.InvokeBindingEnvelope) - return false; -#undef DO_ -} - -void InvokeBindingEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.InvokeBindingEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.InvokeBindingEnvelope.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // .google.protobuf.Any data = 2; - if (this->has_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->_internal_data(), output); - } - - // map metadata = 3; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.InvokeBindingEnvelope.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.InvokeBindingEnvelope.MetadataEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *entry, output); - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *entry, output); - Utf8Check::Check(&*it); - } - } - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.InvokeBindingEnvelope) -} - -::google::protobuf::uint8* InvokeBindingEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.InvokeBindingEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.InvokeBindingEnvelope.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // .google.protobuf.Any data = 2; - if (this->has_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->_internal_data(), deterministic, target); - } - - // map metadata = 3; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.InvokeBindingEnvelope.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.InvokeBindingEnvelope.MetadataEntry.value"); - } - }; - - if (deterministic && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *entry, deterministic, target); -; - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *entry, deterministic, target); -; - Utf8Check::Check(&*it); - } - } - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.InvokeBindingEnvelope) - return target; -} - -size_t InvokeBindingEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.InvokeBindingEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // map metadata = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->metadata_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // .google.protobuf.Any data = 2; - if (this->has_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void InvokeBindingEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.InvokeBindingEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const InvokeBindingEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.InvokeBindingEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.InvokeBindingEnvelope) - MergeFrom(*source); - } -} - -void InvokeBindingEnvelope::MergeFrom(const InvokeBindingEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.InvokeBindingEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - metadata_.MergeFrom(from.metadata_); - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_data()) { - mutable_data()->::google::protobuf::Any::MergeFrom(from.data()); - } -} - -void InvokeBindingEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.InvokeBindingEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InvokeBindingEnvelope::CopyFrom(const InvokeBindingEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.InvokeBindingEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InvokeBindingEnvelope::IsInitialized() const { - return true; -} - -void InvokeBindingEnvelope::Swap(InvokeBindingEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void InvokeBindingEnvelope::InternalSwap(InvokeBindingEnvelope* other) { - using std::swap; - metadata_.Swap(&other->metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(data_, other->data_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata InvokeBindingEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void PublishEventEnvelope::InitAsDefaultInstance() { - ::dapr::proto::dapr::v1::_PublishEventEnvelope_default_instance_._instance.get_mutable()->data_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); -} -void PublishEventEnvelope::clear_data() { - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PublishEventEnvelope::kTopicFieldNumber; -const int PublishEventEnvelope::kDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PublishEventEnvelope::PublishEventEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_PublishEventEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.PublishEventEnvelope) -} -PublishEventEnvelope::PublishEventEnvelope(const PublishEventEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.topic().size() > 0) { - topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_); - } - if (from.has_data()) { - data_ = new ::google::protobuf::Any(*from.data_); - } else { - data_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.PublishEventEnvelope) -} - -void PublishEventEnvelope::SharedCtor() { - topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - data_ = NULL; -} - -PublishEventEnvelope::~PublishEventEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.PublishEventEnvelope) - SharedDtor(); -} - -void PublishEventEnvelope::SharedDtor() { - topic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete data_; -} - -void PublishEventEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* PublishEventEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const PublishEventEnvelope& PublishEventEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_PublishEventEnvelope.base); - return *internal_default_instance(); -} - - -void PublishEventEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.PublishEventEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; - _internal_metadata_.Clear(); -} - -bool PublishEventEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.PublishEventEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string topic = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_topic())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic().data(), static_cast(this->topic().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.PublishEventEnvelope.topic")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Any data = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_data())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.PublishEventEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.PublishEventEnvelope) - return false; -#undef DO_ -} - -void PublishEventEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.PublishEventEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string topic = 1; - if (this->topic().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic().data(), static_cast(this->topic().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.PublishEventEnvelope.topic"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->topic(), output); - } - - // .google.protobuf.Any data = 2; - if (this->has_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->_internal_data(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.PublishEventEnvelope) -} - -::google::protobuf::uint8* PublishEventEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.PublishEventEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string topic = 1; - if (this->topic().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic().data(), static_cast(this->topic().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.PublishEventEnvelope.topic"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->topic(), target); - } - - // .google.protobuf.Any data = 2; - if (this->has_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->_internal_data(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.PublishEventEnvelope) - return target; -} - -size_t PublishEventEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.PublishEventEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // string topic = 1; - if (this->topic().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->topic()); - } - - // .google.protobuf.Any data = 2; - if (this->has_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PublishEventEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.PublishEventEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const PublishEventEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.PublishEventEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.PublishEventEnvelope) - MergeFrom(*source); - } -} - -void PublishEventEnvelope::MergeFrom(const PublishEventEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.PublishEventEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.topic().size() > 0) { - - topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_); - } - if (from.has_data()) { - mutable_data()->::google::protobuf::Any::MergeFrom(from.data()); - } -} - -void PublishEventEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.PublishEventEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PublishEventEnvelope::CopyFrom(const PublishEventEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.PublishEventEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PublishEventEnvelope::IsInitialized() const { - return true; -} - -void PublishEventEnvelope::Swap(PublishEventEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void PublishEventEnvelope::InternalSwap(PublishEventEnvelope* other) { - using std::swap; - topic_.Swap(&other->topic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(data_, other->data_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata PublishEventEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -State_MetadataEntry_DoNotUse::State_MetadataEntry_DoNotUse() {} -State_MetadataEntry_DoNotUse::State_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void State_MetadataEntry_DoNotUse::MergeFrom(const State_MetadataEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata State_MetadataEntry_DoNotUse::GetMetadata() const { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[12]; -} -void State_MetadataEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - - -// =================================================================== - -void State::InitAsDefaultInstance() { - ::dapr::proto::dapr::v1::_State_default_instance_._instance.get_mutable()->value_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); - ::dapr::proto::dapr::v1::_State_default_instance_._instance.get_mutable()->options_ = const_cast< ::dapr::proto::dapr::v1::StateOptions*>( - ::dapr::proto::dapr::v1::StateOptions::internal_default_instance()); -} -void State::clear_value() { - if (GetArenaNoVirtual() == NULL && value_ != NULL) { - delete value_; - } - value_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int State::kKeyFieldNumber; -const int State::kValueFieldNumber; -const int State::kEtagFieldNumber; -const int State::kMetadataFieldNumber; -const int State::kOptionsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -State::State() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_State.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.State) -} -State::State(const State& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - metadata_.MergeFrom(from.metadata_); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.etag().size() > 0) { - etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); - } - if (from.has_value()) { - value_ = new ::google::protobuf::Any(*from.value_); - } else { - value_ = NULL; - } - if (from.has_options()) { - options_ = new ::dapr::proto::dapr::v1::StateOptions(*from.options_); - } else { - options_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.State) -} - -void State::SharedCtor() { - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&value_, 0, static_cast( - reinterpret_cast(&options_) - - reinterpret_cast(&value_)) + sizeof(options_)); -} - -State::~State() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.State) - SharedDtor(); -} - -void State::SharedDtor() { - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete value_; - if (this != internal_default_instance()) delete options_; -} - -void State::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* State::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const State& State::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_State.base); - return *internal_default_instance(); -} - - -void State::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.State) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metadata_.Clear(); - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && value_ != NULL) { - delete value_; - } - value_ = NULL; - if (GetArenaNoVirtual() == NULL && options_ != NULL) { - delete options_; - } - options_ = NULL; - _internal_metadata_.Clear(); -} - -bool State::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.State) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string key = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.State.key")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Any value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_value())); - } else { - goto handle_unusual; - } - break; - } - - // string etag = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_etag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.State.etag")); - } else { - goto handle_unusual; - } - break; - } - - // map metadata = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { - State_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - State_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.State.MetadataEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.State.MetadataEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // .dapr.proto.dapr.v1.StateOptions options = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_options())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.State) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.State) - return false; -#undef DO_ -} - -void State::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.State) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.State.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); - } - - // .google.protobuf.Any value = 2; - if (this->has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->_internal_value(), output); - } - - // string etag = 3; - if (this->etag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.State.etag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->etag(), output); - } - - // map metadata = 4; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.State.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.State.MetadataEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *entry, output); - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *entry, output); - Utf8Check::Check(&*it); - } - } - } - - // .dapr.proto.dapr.v1.StateOptions options = 5; - if (this->has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->_internal_options(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.State) -} - -::google::protobuf::uint8* State::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.State) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.State.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), target); - } - - // .google.protobuf.Any value = 2; - if (this->has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->_internal_value(), deterministic, target); - } - - // string etag = 3; - if (this->etag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.State.etag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->etag(), target); - } - - // map metadata = 4; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.State.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.State.MetadataEntry.value"); - } - }; - - if (deterministic && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *entry, deterministic, target); -; - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *entry, deterministic, target); -; - Utf8Check::Check(&*it); - } - } - } - - // .dapr.proto.dapr.v1.StateOptions options = 5; - if (this->has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->_internal_options(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.State) - return target; -} - -size_t State::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.State) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // map metadata = 4; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->metadata_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // string etag = 3; - if (this->etag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->etag()); - } - - // .google.protobuf.Any value = 2; - if (this->has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_); - } - - // .dapr.proto.dapr.v1.StateOptions options = 5; - if (this->has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *options_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void State::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.State) - GOOGLE_DCHECK_NE(&from, this); - const State* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.State) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.State) - MergeFrom(*source); - } -} - -void State::MergeFrom(const State& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.State) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - metadata_.MergeFrom(from.metadata_); - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.etag().size() > 0) { - - etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); - } - if (from.has_value()) { - mutable_value()->::google::protobuf::Any::MergeFrom(from.value()); - } - if (from.has_options()) { - mutable_options()->::dapr::proto::dapr::v1::StateOptions::MergeFrom(from.options()); - } -} - -void State::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.State) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void State::CopyFrom(const State& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.State) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool State::IsInitialized() const { - return true; -} - -void State::Swap(State* other) { - if (other == this) return; - InternalSwap(other); -} -void State::InternalSwap(State* other) { - using std::swap; - metadata_.Swap(&other->metadata_); - key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - etag_.Swap(&other->etag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(value_, other->value_); - swap(options_, other->options_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata State::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void StateOptions::InitAsDefaultInstance() { - ::dapr::proto::dapr::v1::_StateOptions_default_instance_._instance.get_mutable()->retry_policy_ = const_cast< ::dapr::proto::dapr::v1::RetryPolicy*>( - ::dapr::proto::dapr::v1::RetryPolicy::internal_default_instance()); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StateOptions::kConcurrencyFieldNumber; -const int StateOptions::kConsistencyFieldNumber; -const int StateOptions::kRetryPolicyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StateOptions::StateOptions() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_StateOptions.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.StateOptions) -} -StateOptions::StateOptions(const StateOptions& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - concurrency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.concurrency().size() > 0) { - concurrency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.concurrency_); - } - consistency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.consistency().size() > 0) { - consistency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.consistency_); - } - if (from.has_retry_policy()) { - retry_policy_ = new ::dapr::proto::dapr::v1::RetryPolicy(*from.retry_policy_); - } else { - retry_policy_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.StateOptions) -} - -void StateOptions::SharedCtor() { - concurrency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - consistency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - retry_policy_ = NULL; -} - -StateOptions::~StateOptions() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.StateOptions) - SharedDtor(); -} - -void StateOptions::SharedDtor() { - concurrency_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - consistency_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete retry_policy_; -} - -void StateOptions::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* StateOptions::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const StateOptions& StateOptions::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_StateOptions.base); - return *internal_default_instance(); -} - - -void StateOptions::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.StateOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - concurrency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - consistency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && retry_policy_ != NULL) { - delete retry_policy_; - } - retry_policy_ = NULL; - _internal_metadata_.Clear(); -} - -bool StateOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.StateOptions) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string concurrency = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_concurrency())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->concurrency().data(), static_cast(this->concurrency().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.StateOptions.concurrency")); - } else { - goto handle_unusual; - } - break; - } - - // string consistency = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_consistency())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->consistency().data(), static_cast(this->consistency().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.StateOptions.consistency")); - } else { - goto handle_unusual; - } - break; - } - - // .dapr.proto.dapr.v1.RetryPolicy retry_policy = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_retry_policy())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.StateOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.StateOptions) - return false; -#undef DO_ -} - -void StateOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.StateOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string concurrency = 1; - if (this->concurrency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->concurrency().data(), static_cast(this->concurrency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateOptions.concurrency"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->concurrency(), output); - } - - // string consistency = 2; - if (this->consistency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->consistency().data(), static_cast(this->consistency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateOptions.consistency"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->consistency(), output); - } - - // .dapr.proto.dapr.v1.RetryPolicy retry_policy = 3; - if (this->has_retry_policy()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->_internal_retry_policy(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.StateOptions) -} - -::google::protobuf::uint8* StateOptions::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.StateOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string concurrency = 1; - if (this->concurrency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->concurrency().data(), static_cast(this->concurrency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateOptions.concurrency"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->concurrency(), target); - } - - // string consistency = 2; - if (this->consistency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->consistency().data(), static_cast(this->consistency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateOptions.consistency"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->consistency(), target); - } - - // .dapr.proto.dapr.v1.RetryPolicy retry_policy = 3; - if (this->has_retry_policy()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->_internal_retry_policy(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.StateOptions) - return target; -} - -size_t StateOptions::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.StateOptions) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // string concurrency = 1; - if (this->concurrency().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->concurrency()); - } - - // string consistency = 2; - if (this->consistency().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->consistency()); - } - - // .dapr.proto.dapr.v1.RetryPolicy retry_policy = 3; - if (this->has_retry_policy()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *retry_policy_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StateOptions::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.StateOptions) - GOOGLE_DCHECK_NE(&from, this); - const StateOptions* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.StateOptions) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.StateOptions) - MergeFrom(*source); - } -} - -void StateOptions::MergeFrom(const StateOptions& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.StateOptions) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.concurrency().size() > 0) { - - concurrency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.concurrency_); - } - if (from.consistency().size() > 0) { - - consistency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.consistency_); - } - if (from.has_retry_policy()) { - mutable_retry_policy()->::dapr::proto::dapr::v1::RetryPolicy::MergeFrom(from.retry_policy()); - } -} - -void StateOptions::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.StateOptions) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StateOptions::CopyFrom(const StateOptions& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.StateOptions) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StateOptions::IsInitialized() const { - return true; -} - -void StateOptions::Swap(StateOptions* other) { - if (other == this) return; - InternalSwap(other); -} -void StateOptions::InternalSwap(StateOptions* other) { - using std::swap; - concurrency_.Swap(&other->concurrency_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - consistency_.Swap(&other->consistency_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(retry_policy_, other->retry_policy_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata StateOptions::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void RetryPolicy::InitAsDefaultInstance() { - ::dapr::proto::dapr::v1::_RetryPolicy_default_instance_._instance.get_mutable()->interval_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); -} -void RetryPolicy::clear_interval() { - if (GetArenaNoVirtual() == NULL && interval_ != NULL) { - delete interval_; - } - interval_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RetryPolicy::kThresholdFieldNumber; -const int RetryPolicy::kPatternFieldNumber; -const int RetryPolicy::kIntervalFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RetryPolicy::RetryPolicy() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_RetryPolicy.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.RetryPolicy) -} -RetryPolicy::RetryPolicy(const RetryPolicy& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - pattern_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.pattern().size() > 0) { - pattern_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pattern_); - } - if (from.has_interval()) { - interval_ = new ::google::protobuf::Duration(*from.interval_); - } else { - interval_ = NULL; - } - threshold_ = from.threshold_; - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.RetryPolicy) -} - -void RetryPolicy::SharedCtor() { - pattern_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&interval_, 0, static_cast( - reinterpret_cast(&threshold_) - - reinterpret_cast(&interval_)) + sizeof(threshold_)); -} - -RetryPolicy::~RetryPolicy() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.RetryPolicy) - SharedDtor(); -} - -void RetryPolicy::SharedDtor() { - pattern_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete interval_; -} - -void RetryPolicy::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* RetryPolicy::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const RetryPolicy& RetryPolicy::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_RetryPolicy.base); - return *internal_default_instance(); -} - - -void RetryPolicy::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.RetryPolicy) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - pattern_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && interval_ != NULL) { - delete interval_; - } - interval_ = NULL; - threshold_ = 0; - _internal_metadata_.Clear(); -} - -bool RetryPolicy::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.RetryPolicy) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int32 threshold = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &threshold_))); - } else { - goto handle_unusual; - } - break; - } - - // string pattern = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_pattern())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->pattern().data(), static_cast(this->pattern().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.RetryPolicy.pattern")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration interval = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_interval())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.RetryPolicy) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.RetryPolicy) - return false; -#undef DO_ -} - -void RetryPolicy::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.RetryPolicy) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 threshold = 1; - if (this->threshold() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->threshold(), output); - } - - // string pattern = 2; - if (this->pattern().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->pattern().data(), static_cast(this->pattern().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.RetryPolicy.pattern"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->pattern(), output); - } - - // .google.protobuf.Duration interval = 3; - if (this->has_interval()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->_internal_interval(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.RetryPolicy) -} - -::google::protobuf::uint8* RetryPolicy::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.RetryPolicy) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 threshold = 1; - if (this->threshold() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->threshold(), target); - } - - // string pattern = 2; - if (this->pattern().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->pattern().data(), static_cast(this->pattern().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.RetryPolicy.pattern"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->pattern(), target); - } - - // .google.protobuf.Duration interval = 3; - if (this->has_interval()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->_internal_interval(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.RetryPolicy) - return target; -} - -size_t RetryPolicy::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.RetryPolicy) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // string pattern = 2; - if (this->pattern().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->pattern()); - } - - // .google.protobuf.Duration interval = 3; - if (this->has_interval()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *interval_); - } - - // int32 threshold = 1; - if (this->threshold() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->threshold()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RetryPolicy::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.RetryPolicy) - GOOGLE_DCHECK_NE(&from, this); - const RetryPolicy* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.RetryPolicy) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.RetryPolicy) - MergeFrom(*source); - } -} - -void RetryPolicy::MergeFrom(const RetryPolicy& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.RetryPolicy) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.pattern().size() > 0) { - - pattern_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pattern_); - } - if (from.has_interval()) { - mutable_interval()->::google::protobuf::Duration::MergeFrom(from.interval()); - } - if (from.threshold() != 0) { - set_threshold(from.threshold()); - } -} - -void RetryPolicy::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.RetryPolicy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RetryPolicy::CopyFrom(const RetryPolicy& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.RetryPolicy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RetryPolicy::IsInitialized() const { - return true; -} - -void RetryPolicy::Swap(RetryPolicy* other) { - if (other == this) return; - InternalSwap(other); -} -void RetryPolicy::InternalSwap(RetryPolicy* other) { - using std::swap; - pattern_.Swap(&other->pattern_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(interval_, other->interval_); - swap(threshold_, other->threshold_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata RetryPolicy::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -StateRequest_MetadataEntry_DoNotUse::StateRequest_MetadataEntry_DoNotUse() {} -StateRequest_MetadataEntry_DoNotUse::StateRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void StateRequest_MetadataEntry_DoNotUse::MergeFrom(const StateRequest_MetadataEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata StateRequest_MetadataEntry_DoNotUse::GetMetadata() const { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[16]; -} -void StateRequest_MetadataEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - - -// =================================================================== - -void StateRequest::InitAsDefaultInstance() { - ::dapr::proto::dapr::v1::_StateRequest_default_instance_._instance.get_mutable()->value_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); - ::dapr::proto::dapr::v1::_StateRequest_default_instance_._instance.get_mutable()->options_ = const_cast< ::dapr::proto::dapr::v1::StateOptions*>( - ::dapr::proto::dapr::v1::StateOptions::internal_default_instance()); -} -void StateRequest::clear_value() { - if (GetArenaNoVirtual() == NULL && value_ != NULL) { - delete value_; - } - value_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StateRequest::kKeyFieldNumber; -const int StateRequest::kValueFieldNumber; -const int StateRequest::kEtagFieldNumber; -const int StateRequest::kMetadataFieldNumber; -const int StateRequest::kOptionsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StateRequest::StateRequest() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_StateRequest.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.dapr.v1.StateRequest) -} -StateRequest::StateRequest(const StateRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - metadata_.MergeFrom(from.metadata_); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.etag().size() > 0) { - etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); - } - if (from.has_value()) { - value_ = new ::google::protobuf::Any(*from.value_); - } else { - value_ = NULL; - } - if (from.has_options()) { - options_ = new ::dapr::proto::dapr::v1::StateOptions(*from.options_); - } else { - options_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.dapr.v1.StateRequest) -} - -void StateRequest::SharedCtor() { - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&value_, 0, static_cast( - reinterpret_cast(&options_) - - reinterpret_cast(&value_)) + sizeof(options_)); -} - -StateRequest::~StateRequest() { - // @@protoc_insertion_point(destructor:dapr.proto.dapr.v1.StateRequest) - SharedDtor(); -} - -void StateRequest::SharedDtor() { - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete value_; - if (this != internal_default_instance()) delete options_; -} - -void StateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* StateRequest::descriptor() { - ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const StateRequest& StateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::scc_info_StateRequest.base); - return *internal_default_instance(); -} - - -void StateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.dapr.v1.StateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metadata_.Clear(); - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && value_ != NULL) { - delete value_; - } - value_ = NULL; - if (GetArenaNoVirtual() == NULL && options_ != NULL) { - delete options_; - } - options_ = NULL; - _internal_metadata_.Clear(); -} - -bool StateRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.dapr.v1.StateRequest) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string key = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.StateRequest.key")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Any value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_value())); - } else { - goto handle_unusual; - } - break; - } - - // string etag = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_etag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.StateRequest.etag")); - } else { - goto handle_unusual; - } - break; - } - - // map metadata = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { - StateRequest_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - StateRequest_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.StateRequest.MetadataEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.dapr.v1.StateRequest.MetadataEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // .dapr.proto.dapr.v1.StateOptions options = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_options())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.dapr.v1.StateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.dapr.v1.StateRequest) - return false; -#undef DO_ -} - -void StateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.dapr.v1.StateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateRequest.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); - } - - // .google.protobuf.Any value = 2; - if (this->has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->_internal_value(), output); - } - - // string etag = 3; - if (this->etag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateRequest.etag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->etag(), output); - } - - // map metadata = 4; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateRequest.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateRequest.MetadataEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *entry, output); - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *entry, output); - Utf8Check::Check(&*it); - } - } - } - - // .dapr.proto.dapr.v1.StateOptions options = 5; - if (this->has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->_internal_options(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.dapr.v1.StateRequest) -} - -::google::protobuf::uint8* StateRequest::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.dapr.v1.StateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateRequest.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), target); - } - - // .google.protobuf.Any value = 2; - if (this->has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->_internal_value(), deterministic, target); - } - - // string etag = 3; - if (this->etag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateRequest.etag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->etag(), target); - } - - // map metadata = 4; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateRequest.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.dapr.v1.StateRequest.MetadataEntry.value"); - } - }; - - if (deterministic && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *entry, deterministic, target); -; - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *entry, deterministic, target); -; - Utf8Check::Check(&*it); - } - } - } - - // .dapr.proto.dapr.v1.StateOptions options = 5; - if (this->has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->_internal_options(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.dapr.v1.StateRequest) - return target; -} - -size_t StateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.dapr.v1.StateRequest) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // map metadata = 4; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->metadata_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // string etag = 3; - if (this->etag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->etag()); - } - - // .google.protobuf.Any value = 2; - if (this->has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_); - } - - // .dapr.proto.dapr.v1.StateOptions options = 5; - if (this->has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *options_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.dapr.v1.StateRequest) - GOOGLE_DCHECK_NE(&from, this); - const StateRequest* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.dapr.v1.StateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.dapr.v1.StateRequest) - MergeFrom(*source); - } -} - -void StateRequest::MergeFrom(const StateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.dapr.v1.StateRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - metadata_.MergeFrom(from.metadata_); - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.etag().size() > 0) { - - etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); - } - if (from.has_value()) { - mutable_value()->::google::protobuf::Any::MergeFrom(from.value()); - } - if (from.has_options()) { - mutable_options()->::dapr::proto::dapr::v1::StateOptions::MergeFrom(from.options()); - } -} - -void StateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.dapr.v1.StateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StateRequest::CopyFrom(const StateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.dapr.v1.StateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StateRequest::IsInitialized() const { - return true; -} - -void StateRequest::Swap(StateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void StateRequest::InternalSwap(StateRequest* other) { - using std::swap; - metadata_.Swap(&other->metadata_); - key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - etag_.Swap(&other->etag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(value_, other->value_); - swap(options_, other->options_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata StateRequest::GetMetadata() const { - protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace v1 -} // namespace dapr -} // namespace proto -} // namespace dapr -namespace google { -namespace protobuf { -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::InvokeServiceRequest* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::InvokeServiceRequest >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::InvokeServiceRequest >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::DeleteStateEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::DeleteStateEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::DeleteStateEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::SaveStateEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::SaveStateEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::SaveStateEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::GetStateEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::GetStateEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::GetStateEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::GetStateResponseEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::GetStateResponseEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::GetStateResponseEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::GetSecretEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::GetSecretEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::GetSecretEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::InvokeBindingEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::InvokeBindingEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::InvokeBindingEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::PublishEventEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::PublishEventEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::PublishEventEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::State* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::State >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::State >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::StateOptions* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::StateOptions >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::StateOptions >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::RetryPolicy* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::RetryPolicy >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::RetryPolicy >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::dapr::v1::StateRequest* Arena::CreateMaybeMessage< ::dapr::proto::dapr::v1::StateRequest >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::dapr::v1::StateRequest >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) diff --git a/src/dapr/proto/dapr/v1/dapr.pb.h b/src/dapr/proto/dapr/v1/dapr.pb.h deleted file mode 100644 index 1398e15..0000000 --- a/src/dapr/proto/dapr/v1/dapr.pb.h +++ /dev/null @@ -1,3903 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dapr/proto/dapr/v1/dapr.proto - -#ifndef PROTOBUF_INCLUDED_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto -#define PROTOBUF_INCLUDED_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006001 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include -#include -#include "dapr/proto/common/v1/common.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto - -namespace protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[18]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto -namespace dapr { -namespace proto { -namespace dapr { -namespace v1 { -class DeleteStateEnvelope; -class DeleteStateEnvelopeDefaultTypeInternal; -extern DeleteStateEnvelopeDefaultTypeInternal _DeleteStateEnvelope_default_instance_; -class GetSecretEnvelope; -class GetSecretEnvelopeDefaultTypeInternal; -extern GetSecretEnvelopeDefaultTypeInternal _GetSecretEnvelope_default_instance_; -class GetSecretEnvelope_MetadataEntry_DoNotUse; -class GetSecretEnvelope_MetadataEntry_DoNotUseDefaultTypeInternal; -extern GetSecretEnvelope_MetadataEntry_DoNotUseDefaultTypeInternal _GetSecretEnvelope_MetadataEntry_DoNotUse_default_instance_; -class GetSecretResponseEnvelope; -class GetSecretResponseEnvelopeDefaultTypeInternal; -extern GetSecretResponseEnvelopeDefaultTypeInternal _GetSecretResponseEnvelope_default_instance_; -class GetSecretResponseEnvelope_DataEntry_DoNotUse; -class GetSecretResponseEnvelope_DataEntry_DoNotUseDefaultTypeInternal; -extern GetSecretResponseEnvelope_DataEntry_DoNotUseDefaultTypeInternal _GetSecretResponseEnvelope_DataEntry_DoNotUse_default_instance_; -class GetStateEnvelope; -class GetStateEnvelopeDefaultTypeInternal; -extern GetStateEnvelopeDefaultTypeInternal _GetStateEnvelope_default_instance_; -class GetStateResponseEnvelope; -class GetStateResponseEnvelopeDefaultTypeInternal; -extern GetStateResponseEnvelopeDefaultTypeInternal _GetStateResponseEnvelope_default_instance_; -class InvokeBindingEnvelope; -class InvokeBindingEnvelopeDefaultTypeInternal; -extern InvokeBindingEnvelopeDefaultTypeInternal _InvokeBindingEnvelope_default_instance_; -class InvokeBindingEnvelope_MetadataEntry_DoNotUse; -class InvokeBindingEnvelope_MetadataEntry_DoNotUseDefaultTypeInternal; -extern InvokeBindingEnvelope_MetadataEntry_DoNotUseDefaultTypeInternal _InvokeBindingEnvelope_MetadataEntry_DoNotUse_default_instance_; -class InvokeServiceRequest; -class InvokeServiceRequestDefaultTypeInternal; -extern InvokeServiceRequestDefaultTypeInternal _InvokeServiceRequest_default_instance_; -class PublishEventEnvelope; -class PublishEventEnvelopeDefaultTypeInternal; -extern PublishEventEnvelopeDefaultTypeInternal _PublishEventEnvelope_default_instance_; -class RetryPolicy; -class RetryPolicyDefaultTypeInternal; -extern RetryPolicyDefaultTypeInternal _RetryPolicy_default_instance_; -class SaveStateEnvelope; -class SaveStateEnvelopeDefaultTypeInternal; -extern SaveStateEnvelopeDefaultTypeInternal _SaveStateEnvelope_default_instance_; -class State; -class StateDefaultTypeInternal; -extern StateDefaultTypeInternal _State_default_instance_; -class StateOptions; -class StateOptionsDefaultTypeInternal; -extern StateOptionsDefaultTypeInternal _StateOptions_default_instance_; -class StateRequest; -class StateRequestDefaultTypeInternal; -extern StateRequestDefaultTypeInternal _StateRequest_default_instance_; -class StateRequest_MetadataEntry_DoNotUse; -class StateRequest_MetadataEntry_DoNotUseDefaultTypeInternal; -extern StateRequest_MetadataEntry_DoNotUseDefaultTypeInternal _StateRequest_MetadataEntry_DoNotUse_default_instance_; -class State_MetadataEntry_DoNotUse; -class State_MetadataEntry_DoNotUseDefaultTypeInternal; -extern State_MetadataEntry_DoNotUseDefaultTypeInternal _State_MetadataEntry_DoNotUse_default_instance_; -} // namespace v1 -} // namespace dapr -} // namespace proto -} // namespace dapr -namespace google { -namespace protobuf { -template<> ::dapr::proto::dapr::v1::DeleteStateEnvelope* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::DeleteStateEnvelope>(Arena*); -template<> ::dapr::proto::dapr::v1::GetSecretEnvelope* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::GetSecretEnvelope>(Arena*); -template<> ::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::GetSecretEnvelope_MetadataEntry_DoNotUse>(Arena*); -template<> ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::GetSecretResponseEnvelope>(Arena*); -template<> ::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::GetSecretResponseEnvelope_DataEntry_DoNotUse>(Arena*); -template<> ::dapr::proto::dapr::v1::GetStateEnvelope* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::GetStateEnvelope>(Arena*); -template<> ::dapr::proto::dapr::v1::GetStateResponseEnvelope* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::GetStateResponseEnvelope>(Arena*); -template<> ::dapr::proto::dapr::v1::InvokeBindingEnvelope* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::InvokeBindingEnvelope>(Arena*); -template<> ::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::InvokeBindingEnvelope_MetadataEntry_DoNotUse>(Arena*); -template<> ::dapr::proto::dapr::v1::InvokeServiceRequest* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::InvokeServiceRequest>(Arena*); -template<> ::dapr::proto::dapr::v1::PublishEventEnvelope* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::PublishEventEnvelope>(Arena*); -template<> ::dapr::proto::dapr::v1::RetryPolicy* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::RetryPolicy>(Arena*); -template<> ::dapr::proto::dapr::v1::SaveStateEnvelope* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::SaveStateEnvelope>(Arena*); -template<> ::dapr::proto::dapr::v1::State* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::State>(Arena*); -template<> ::dapr::proto::dapr::v1::StateOptions* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::StateOptions>(Arena*); -template<> ::dapr::proto::dapr::v1::StateRequest* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::StateRequest>(Arena*); -template<> ::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::StateRequest_MetadataEntry_DoNotUse>(Arena*); -template<> ::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::dapr::v1::State_MetadataEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google -namespace dapr { -namespace proto { -namespace dapr { -namespace v1 { - -// =================================================================== - -class InvokeServiceRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.InvokeServiceRequest) */ { - public: - InvokeServiceRequest(); - virtual ~InvokeServiceRequest(); - - InvokeServiceRequest(const InvokeServiceRequest& from); - - inline InvokeServiceRequest& operator=(const InvokeServiceRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - InvokeServiceRequest(InvokeServiceRequest&& from) noexcept - : InvokeServiceRequest() { - *this = ::std::move(from); - } - - inline InvokeServiceRequest& operator=(InvokeServiceRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const InvokeServiceRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InvokeServiceRequest* internal_default_instance() { - return reinterpret_cast( - &_InvokeServiceRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(InvokeServiceRequest* other); - friend void swap(InvokeServiceRequest& a, InvokeServiceRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline InvokeServiceRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - InvokeServiceRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const InvokeServiceRequest& from); - void MergeFrom(const InvokeServiceRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(InvokeServiceRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::std::string& id() const; - void set_id(const ::std::string& value); - #if LANG_CXX11 - void set_id(::std::string&& value); - #endif - void set_id(const char* value); - void set_id(const char* value, size_t size); - ::std::string* mutable_id(); - ::std::string* release_id(); - void set_allocated_id(::std::string* id); - - // .dapr.proto.common.v1.InvokeRequest message = 3; - bool has_message() const; - void clear_message(); - static const int kMessageFieldNumber = 3; - private: - const ::dapr::proto::common::v1::InvokeRequest& _internal_message() const; - public: - const ::dapr::proto::common::v1::InvokeRequest& message() const; - ::dapr::proto::common::v1::InvokeRequest* release_message(); - ::dapr::proto::common::v1::InvokeRequest* mutable_message(); - void set_allocated_message(::dapr::proto::common::v1::InvokeRequest* message); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.InvokeServiceRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::dapr::proto::common::v1::InvokeRequest* message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DeleteStateEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.DeleteStateEnvelope) */ { - public: - DeleteStateEnvelope(); - virtual ~DeleteStateEnvelope(); - - DeleteStateEnvelope(const DeleteStateEnvelope& from); - - inline DeleteStateEnvelope& operator=(const DeleteStateEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeleteStateEnvelope(DeleteStateEnvelope&& from) noexcept - : DeleteStateEnvelope() { - *this = ::std::move(from); - } - - inline DeleteStateEnvelope& operator=(DeleteStateEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const DeleteStateEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeleteStateEnvelope* internal_default_instance() { - return reinterpret_cast( - &_DeleteStateEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(DeleteStateEnvelope* other); - friend void swap(DeleteStateEnvelope& a, DeleteStateEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeleteStateEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - DeleteStateEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DeleteStateEnvelope& from); - void MergeFrom(const DeleteStateEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeleteStateEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string store_name = 1; - void clear_store_name(); - static const int kStoreNameFieldNumber = 1; - const ::std::string& store_name() const; - void set_store_name(const ::std::string& value); - #if LANG_CXX11 - void set_store_name(::std::string&& value); - #endif - void set_store_name(const char* value); - void set_store_name(const char* value, size_t size); - ::std::string* mutable_store_name(); - ::std::string* release_store_name(); - void set_allocated_store_name(::std::string* store_name); - - // string key = 2; - void clear_key(); - static const int kKeyFieldNumber = 2; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - - // string etag = 3; - void clear_etag(); - static const int kEtagFieldNumber = 3; - const ::std::string& etag() const; - void set_etag(const ::std::string& value); - #if LANG_CXX11 - void set_etag(::std::string&& value); - #endif - void set_etag(const char* value); - void set_etag(const char* value, size_t size); - ::std::string* mutable_etag(); - ::std::string* release_etag(); - void set_allocated_etag(::std::string* etag); - - // .dapr.proto.dapr.v1.StateOptions options = 4; - bool has_options() const; - void clear_options(); - static const int kOptionsFieldNumber = 4; - private: - const ::dapr::proto::dapr::v1::StateOptions& _internal_options() const; - public: - const ::dapr::proto::dapr::v1::StateOptions& options() const; - ::dapr::proto::dapr::v1::StateOptions* release_options(); - ::dapr::proto::dapr::v1::StateOptions* mutable_options(); - void set_allocated_options(::dapr::proto::dapr::v1::StateOptions* options); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.DeleteStateEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr store_name_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr etag_; - ::dapr::proto::dapr::v1::StateOptions* options_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class SaveStateEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.SaveStateEnvelope) */ { - public: - SaveStateEnvelope(); - virtual ~SaveStateEnvelope(); - - SaveStateEnvelope(const SaveStateEnvelope& from); - - inline SaveStateEnvelope& operator=(const SaveStateEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SaveStateEnvelope(SaveStateEnvelope&& from) noexcept - : SaveStateEnvelope() { - *this = ::std::move(from); - } - - inline SaveStateEnvelope& operator=(SaveStateEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const SaveStateEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SaveStateEnvelope* internal_default_instance() { - return reinterpret_cast( - &_SaveStateEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(SaveStateEnvelope* other); - friend void swap(SaveStateEnvelope& a, SaveStateEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SaveStateEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - SaveStateEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const SaveStateEnvelope& from); - void MergeFrom(const SaveStateEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SaveStateEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .dapr.proto.dapr.v1.StateRequest requests = 2; - int requests_size() const; - void clear_requests(); - static const int kRequestsFieldNumber = 2; - ::dapr::proto::dapr::v1::StateRequest* mutable_requests(int index); - ::google::protobuf::RepeatedPtrField< ::dapr::proto::dapr::v1::StateRequest >* - mutable_requests(); - const ::dapr::proto::dapr::v1::StateRequest& requests(int index) const; - ::dapr::proto::dapr::v1::StateRequest* add_requests(); - const ::google::protobuf::RepeatedPtrField< ::dapr::proto::dapr::v1::StateRequest >& - requests() const; - - // string store_name = 1; - void clear_store_name(); - static const int kStoreNameFieldNumber = 1; - const ::std::string& store_name() const; - void set_store_name(const ::std::string& value); - #if LANG_CXX11 - void set_store_name(::std::string&& value); - #endif - void set_store_name(const char* value); - void set_store_name(const char* value, size_t size); - ::std::string* mutable_store_name(); - ::std::string* release_store_name(); - void set_allocated_store_name(::std::string* store_name); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.SaveStateEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::dapr::proto::dapr::v1::StateRequest > requests_; - ::google::protobuf::internal::ArenaStringPtr store_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GetStateEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.GetStateEnvelope) */ { - public: - GetStateEnvelope(); - virtual ~GetStateEnvelope(); - - GetStateEnvelope(const GetStateEnvelope& from); - - inline GetStateEnvelope& operator=(const GetStateEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetStateEnvelope(GetStateEnvelope&& from) noexcept - : GetStateEnvelope() { - *this = ::std::move(from); - } - - inline GetStateEnvelope& operator=(GetStateEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const GetStateEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetStateEnvelope* internal_default_instance() { - return reinterpret_cast( - &_GetStateEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(GetStateEnvelope* other); - friend void swap(GetStateEnvelope& a, GetStateEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetStateEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - GetStateEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetStateEnvelope& from); - void MergeFrom(const GetStateEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetStateEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string store_name = 1; - void clear_store_name(); - static const int kStoreNameFieldNumber = 1; - const ::std::string& store_name() const; - void set_store_name(const ::std::string& value); - #if LANG_CXX11 - void set_store_name(::std::string&& value); - #endif - void set_store_name(const char* value); - void set_store_name(const char* value, size_t size); - ::std::string* mutable_store_name(); - ::std::string* release_store_name(); - void set_allocated_store_name(::std::string* store_name); - - // string key = 2; - void clear_key(); - static const int kKeyFieldNumber = 2; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - - // string consistency = 3; - void clear_consistency(); - static const int kConsistencyFieldNumber = 3; - const ::std::string& consistency() const; - void set_consistency(const ::std::string& value); - #if LANG_CXX11 - void set_consistency(::std::string&& value); - #endif - void set_consistency(const char* value); - void set_consistency(const char* value, size_t size); - ::std::string* mutable_consistency(); - ::std::string* release_consistency(); - void set_allocated_consistency(::std::string* consistency); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.GetStateEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr store_name_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr consistency_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GetStateResponseEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.GetStateResponseEnvelope) */ { - public: - GetStateResponseEnvelope(); - virtual ~GetStateResponseEnvelope(); - - GetStateResponseEnvelope(const GetStateResponseEnvelope& from); - - inline GetStateResponseEnvelope& operator=(const GetStateResponseEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetStateResponseEnvelope(GetStateResponseEnvelope&& from) noexcept - : GetStateResponseEnvelope() { - *this = ::std::move(from); - } - - inline GetStateResponseEnvelope& operator=(GetStateResponseEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const GetStateResponseEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetStateResponseEnvelope* internal_default_instance() { - return reinterpret_cast( - &_GetStateResponseEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(GetStateResponseEnvelope* other); - friend void swap(GetStateResponseEnvelope& a, GetStateResponseEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetStateResponseEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - GetStateResponseEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetStateResponseEnvelope& from); - void MergeFrom(const GetStateResponseEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetStateResponseEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string etag = 2; - void clear_etag(); - static const int kEtagFieldNumber = 2; - const ::std::string& etag() const; - void set_etag(const ::std::string& value); - #if LANG_CXX11 - void set_etag(::std::string&& value); - #endif - void set_etag(const char* value); - void set_etag(const char* value, size_t size); - ::std::string* mutable_etag(); - ::std::string* release_etag(); - void set_allocated_etag(::std::string* etag); - - // .google.protobuf.Any data = 1; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 1; - private: - const ::google::protobuf::Any& _internal_data() const; - public: - const ::google::protobuf::Any& data() const; - ::google::protobuf::Any* release_data(); - ::google::protobuf::Any* mutable_data(); - void set_allocated_data(::google::protobuf::Any* data); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.GetStateResponseEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr etag_; - ::google::protobuf::Any* data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GetSecretEnvelope_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - GetSecretEnvelope_MetadataEntry_DoNotUse(); - GetSecretEnvelope_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const GetSecretEnvelope_MetadataEntry_DoNotUse& other); - static const GetSecretEnvelope_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetSecretEnvelope_MetadataEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class GetSecretEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.GetSecretEnvelope) */ { - public: - GetSecretEnvelope(); - virtual ~GetSecretEnvelope(); - - GetSecretEnvelope(const GetSecretEnvelope& from); - - inline GetSecretEnvelope& operator=(const GetSecretEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetSecretEnvelope(GetSecretEnvelope&& from) noexcept - : GetSecretEnvelope() { - *this = ::std::move(from); - } - - inline GetSecretEnvelope& operator=(GetSecretEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const GetSecretEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetSecretEnvelope* internal_default_instance() { - return reinterpret_cast( - &_GetSecretEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(GetSecretEnvelope* other); - friend void swap(GetSecretEnvelope& a, GetSecretEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetSecretEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - GetSecretEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetSecretEnvelope& from); - void MergeFrom(const GetSecretEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetSecretEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map metadata = 3; - int metadata_size() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 3; - const ::google::protobuf::Map< ::std::string, ::std::string >& - metadata() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_metadata(); - - // string store_name = 1; - void clear_store_name(); - static const int kStoreNameFieldNumber = 1; - const ::std::string& store_name() const; - void set_store_name(const ::std::string& value); - #if LANG_CXX11 - void set_store_name(::std::string&& value); - #endif - void set_store_name(const char* value); - void set_store_name(const char* value, size_t size); - ::std::string* mutable_store_name(); - ::std::string* release_store_name(); - void set_allocated_store_name(::std::string* store_name); - - // string key = 2; - void clear_key(); - static const int kKeyFieldNumber = 2; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.GetSecretEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - GetSecretEnvelope_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > metadata_; - ::google::protobuf::internal::ArenaStringPtr store_name_; - ::google::protobuf::internal::ArenaStringPtr key_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GetSecretResponseEnvelope_DataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - GetSecretResponseEnvelope_DataEntry_DoNotUse(); - GetSecretResponseEnvelope_DataEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const GetSecretResponseEnvelope_DataEntry_DoNotUse& other); - static const GetSecretResponseEnvelope_DataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetSecretResponseEnvelope_DataEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class GetSecretResponseEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.GetSecretResponseEnvelope) */ { - public: - GetSecretResponseEnvelope(); - virtual ~GetSecretResponseEnvelope(); - - GetSecretResponseEnvelope(const GetSecretResponseEnvelope& from); - - inline GetSecretResponseEnvelope& operator=(const GetSecretResponseEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetSecretResponseEnvelope(GetSecretResponseEnvelope&& from) noexcept - : GetSecretResponseEnvelope() { - *this = ::std::move(from); - } - - inline GetSecretResponseEnvelope& operator=(GetSecretResponseEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const GetSecretResponseEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetSecretResponseEnvelope* internal_default_instance() { - return reinterpret_cast( - &_GetSecretResponseEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(GetSecretResponseEnvelope* other); - friend void swap(GetSecretResponseEnvelope& a, GetSecretResponseEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetSecretResponseEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - GetSecretResponseEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetSecretResponseEnvelope& from); - void MergeFrom(const GetSecretResponseEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetSecretResponseEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map data = 1; - int data_size() const; - void clear_data(); - static const int kDataFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::std::string >& - data() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_data(); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.GetSecretResponseEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - GetSecretResponseEnvelope_DataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class InvokeBindingEnvelope_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - InvokeBindingEnvelope_MetadataEntry_DoNotUse(); - InvokeBindingEnvelope_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const InvokeBindingEnvelope_MetadataEntry_DoNotUse& other); - static const InvokeBindingEnvelope_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_InvokeBindingEnvelope_MetadataEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class InvokeBindingEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.InvokeBindingEnvelope) */ { - public: - InvokeBindingEnvelope(); - virtual ~InvokeBindingEnvelope(); - - InvokeBindingEnvelope(const InvokeBindingEnvelope& from); - - inline InvokeBindingEnvelope& operator=(const InvokeBindingEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - InvokeBindingEnvelope(InvokeBindingEnvelope&& from) noexcept - : InvokeBindingEnvelope() { - *this = ::std::move(from); - } - - inline InvokeBindingEnvelope& operator=(InvokeBindingEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const InvokeBindingEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InvokeBindingEnvelope* internal_default_instance() { - return reinterpret_cast( - &_InvokeBindingEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(InvokeBindingEnvelope* other); - friend void swap(InvokeBindingEnvelope& a, InvokeBindingEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline InvokeBindingEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - InvokeBindingEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const InvokeBindingEnvelope& from); - void MergeFrom(const InvokeBindingEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(InvokeBindingEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map metadata = 3; - int metadata_size() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 3; - const ::google::protobuf::Map< ::std::string, ::std::string >& - metadata() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_metadata(); - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // .google.protobuf.Any data = 2; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 2; - private: - const ::google::protobuf::Any& _internal_data() const; - public: - const ::google::protobuf::Any& data() const; - ::google::protobuf::Any* release_data(); - ::google::protobuf::Any* mutable_data(); - void set_allocated_data(::google::protobuf::Any* data); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.InvokeBindingEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - InvokeBindingEnvelope_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Any* data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class PublishEventEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.PublishEventEnvelope) */ { - public: - PublishEventEnvelope(); - virtual ~PublishEventEnvelope(); - - PublishEventEnvelope(const PublishEventEnvelope& from); - - inline PublishEventEnvelope& operator=(const PublishEventEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PublishEventEnvelope(PublishEventEnvelope&& from) noexcept - : PublishEventEnvelope() { - *this = ::std::move(from); - } - - inline PublishEventEnvelope& operator=(PublishEventEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const PublishEventEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PublishEventEnvelope* internal_default_instance() { - return reinterpret_cast( - &_PublishEventEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(PublishEventEnvelope* other); - friend void swap(PublishEventEnvelope& a, PublishEventEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PublishEventEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - PublishEventEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const PublishEventEnvelope& from); - void MergeFrom(const PublishEventEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PublishEventEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string topic = 1; - void clear_topic(); - static const int kTopicFieldNumber = 1; - const ::std::string& topic() const; - void set_topic(const ::std::string& value); - #if LANG_CXX11 - void set_topic(::std::string&& value); - #endif - void set_topic(const char* value); - void set_topic(const char* value, size_t size); - ::std::string* mutable_topic(); - ::std::string* release_topic(); - void set_allocated_topic(::std::string* topic); - - // .google.protobuf.Any data = 2; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 2; - private: - const ::google::protobuf::Any& _internal_data() const; - public: - const ::google::protobuf::Any& data() const; - ::google::protobuf::Any* release_data(); - ::google::protobuf::Any* mutable_data(); - void set_allocated_data(::google::protobuf::Any* data); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.PublishEventEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr topic_; - ::google::protobuf::Any* data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class State_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - State_MetadataEntry_DoNotUse(); - State_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const State_MetadataEntry_DoNotUse& other); - static const State_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_State_MetadataEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class State : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.State) */ { - public: - State(); - virtual ~State(); - - State(const State& from); - - inline State& operator=(const State& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - State(State&& from) noexcept - : State() { - *this = ::std::move(from); - } - - inline State& operator=(State&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const State& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const State* internal_default_instance() { - return reinterpret_cast( - &_State_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - void Swap(State* other); - friend void swap(State& a, State& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline State* New() const final { - return CreateMaybeMessage(NULL); - } - - State* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const State& from); - void MergeFrom(const State& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(State* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map metadata = 4; - int metadata_size() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 4; - const ::google::protobuf::Map< ::std::string, ::std::string >& - metadata() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_metadata(); - - // string key = 1; - void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - - // string etag = 3; - void clear_etag(); - static const int kEtagFieldNumber = 3; - const ::std::string& etag() const; - void set_etag(const ::std::string& value); - #if LANG_CXX11 - void set_etag(::std::string&& value); - #endif - void set_etag(const char* value); - void set_etag(const char* value, size_t size); - ::std::string* mutable_etag(); - ::std::string* release_etag(); - void set_allocated_etag(::std::string* etag); - - // .google.protobuf.Any value = 2; - bool has_value() const; - void clear_value(); - static const int kValueFieldNumber = 2; - private: - const ::google::protobuf::Any& _internal_value() const; - public: - const ::google::protobuf::Any& value() const; - ::google::protobuf::Any* release_value(); - ::google::protobuf::Any* mutable_value(); - void set_allocated_value(::google::protobuf::Any* value); - - // .dapr.proto.dapr.v1.StateOptions options = 5; - bool has_options() const; - void clear_options(); - static const int kOptionsFieldNumber = 5; - private: - const ::dapr::proto::dapr::v1::StateOptions& _internal_options() const; - public: - const ::dapr::proto::dapr::v1::StateOptions& options() const; - ::dapr::proto::dapr::v1::StateOptions* release_options(); - ::dapr::proto::dapr::v1::StateOptions* mutable_options(); - void set_allocated_options(::dapr::proto::dapr::v1::StateOptions* options); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.State) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - State_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > metadata_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr etag_; - ::google::protobuf::Any* value_; - ::dapr::proto::dapr::v1::StateOptions* options_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class StateOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.StateOptions) */ { - public: - StateOptions(); - virtual ~StateOptions(); - - StateOptions(const StateOptions& from); - - inline StateOptions& operator=(const StateOptions& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - StateOptions(StateOptions&& from) noexcept - : StateOptions() { - *this = ::std::move(from); - } - - inline StateOptions& operator=(StateOptions&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const StateOptions& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StateOptions* internal_default_instance() { - return reinterpret_cast( - &_StateOptions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - void Swap(StateOptions* other); - friend void swap(StateOptions& a, StateOptions& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline StateOptions* New() const final { - return CreateMaybeMessage(NULL); - } - - StateOptions* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const StateOptions& from); - void MergeFrom(const StateOptions& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StateOptions* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string concurrency = 1; - void clear_concurrency(); - static const int kConcurrencyFieldNumber = 1; - const ::std::string& concurrency() const; - void set_concurrency(const ::std::string& value); - #if LANG_CXX11 - void set_concurrency(::std::string&& value); - #endif - void set_concurrency(const char* value); - void set_concurrency(const char* value, size_t size); - ::std::string* mutable_concurrency(); - ::std::string* release_concurrency(); - void set_allocated_concurrency(::std::string* concurrency); - - // string consistency = 2; - void clear_consistency(); - static const int kConsistencyFieldNumber = 2; - const ::std::string& consistency() const; - void set_consistency(const ::std::string& value); - #if LANG_CXX11 - void set_consistency(::std::string&& value); - #endif - void set_consistency(const char* value); - void set_consistency(const char* value, size_t size); - ::std::string* mutable_consistency(); - ::std::string* release_consistency(); - void set_allocated_consistency(::std::string* consistency); - - // .dapr.proto.dapr.v1.RetryPolicy retry_policy = 3; - bool has_retry_policy() const; - void clear_retry_policy(); - static const int kRetryPolicyFieldNumber = 3; - private: - const ::dapr::proto::dapr::v1::RetryPolicy& _internal_retry_policy() const; - public: - const ::dapr::proto::dapr::v1::RetryPolicy& retry_policy() const; - ::dapr::proto::dapr::v1::RetryPolicy* release_retry_policy(); - ::dapr::proto::dapr::v1::RetryPolicy* mutable_retry_policy(); - void set_allocated_retry_policy(::dapr::proto::dapr::v1::RetryPolicy* retry_policy); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.StateOptions) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr concurrency_; - ::google::protobuf::internal::ArenaStringPtr consistency_; - ::dapr::proto::dapr::v1::RetryPolicy* retry_policy_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class RetryPolicy : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.RetryPolicy) */ { - public: - RetryPolicy(); - virtual ~RetryPolicy(); - - RetryPolicy(const RetryPolicy& from); - - inline RetryPolicy& operator=(const RetryPolicy& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RetryPolicy(RetryPolicy&& from) noexcept - : RetryPolicy() { - *this = ::std::move(from); - } - - inline RetryPolicy& operator=(RetryPolicy&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const RetryPolicy& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RetryPolicy* internal_default_instance() { - return reinterpret_cast( - &_RetryPolicy_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - void Swap(RetryPolicy* other); - friend void swap(RetryPolicy& a, RetryPolicy& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RetryPolicy* New() const final { - return CreateMaybeMessage(NULL); - } - - RetryPolicy* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const RetryPolicy& from); - void MergeFrom(const RetryPolicy& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RetryPolicy* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string pattern = 2; - void clear_pattern(); - static const int kPatternFieldNumber = 2; - const ::std::string& pattern() const; - void set_pattern(const ::std::string& value); - #if LANG_CXX11 - void set_pattern(::std::string&& value); - #endif - void set_pattern(const char* value); - void set_pattern(const char* value, size_t size); - ::std::string* mutable_pattern(); - ::std::string* release_pattern(); - void set_allocated_pattern(::std::string* pattern); - - // .google.protobuf.Duration interval = 3; - bool has_interval() const; - void clear_interval(); - static const int kIntervalFieldNumber = 3; - private: - const ::google::protobuf::Duration& _internal_interval() const; - public: - const ::google::protobuf::Duration& interval() const; - ::google::protobuf::Duration* release_interval(); - ::google::protobuf::Duration* mutable_interval(); - void set_allocated_interval(::google::protobuf::Duration* interval); - - // int32 threshold = 1; - void clear_threshold(); - static const int kThresholdFieldNumber = 1; - ::google::protobuf::int32 threshold() const; - void set_threshold(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.RetryPolicy) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr pattern_; - ::google::protobuf::Duration* interval_; - ::google::protobuf::int32 threshold_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class StateRequest_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - StateRequest_MetadataEntry_DoNotUse(); - StateRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const StateRequest_MetadataEntry_DoNotUse& other); - static const StateRequest_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_StateRequest_MetadataEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class StateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.dapr.v1.StateRequest) */ { - public: - StateRequest(); - virtual ~StateRequest(); - - StateRequest(const StateRequest& from); - - inline StateRequest& operator=(const StateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - StateRequest(StateRequest&& from) noexcept - : StateRequest() { - *this = ::std::move(from); - } - - inline StateRequest& operator=(StateRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const StateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StateRequest* internal_default_instance() { - return reinterpret_cast( - &_StateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void Swap(StateRequest* other); - friend void swap(StateRequest& a, StateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline StateRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - StateRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const StateRequest& from); - void MergeFrom(const StateRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StateRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map metadata = 4; - int metadata_size() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 4; - const ::google::protobuf::Map< ::std::string, ::std::string >& - metadata() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_metadata(); - - // string key = 1; - void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - - // string etag = 3; - void clear_etag(); - static const int kEtagFieldNumber = 3; - const ::std::string& etag() const; - void set_etag(const ::std::string& value); - #if LANG_CXX11 - void set_etag(::std::string&& value); - #endif - void set_etag(const char* value); - void set_etag(const char* value, size_t size); - ::std::string* mutable_etag(); - ::std::string* release_etag(); - void set_allocated_etag(::std::string* etag); - - // .google.protobuf.Any value = 2; - bool has_value() const; - void clear_value(); - static const int kValueFieldNumber = 2; - private: - const ::google::protobuf::Any& _internal_value() const; - public: - const ::google::protobuf::Any& value() const; - ::google::protobuf::Any* release_value(); - ::google::protobuf::Any* mutable_value(); - void set_allocated_value(::google::protobuf::Any* value); - - // .dapr.proto.dapr.v1.StateOptions options = 5; - bool has_options() const; - void clear_options(); - static const int kOptionsFieldNumber = 5; - private: - const ::dapr::proto::dapr::v1::StateOptions& _internal_options() const; - public: - const ::dapr::proto::dapr::v1::StateOptions& options() const; - ::dapr::proto::dapr::v1::StateOptions* release_options(); - ::dapr::proto::dapr::v1::StateOptions* mutable_options(); - void set_allocated_options(::dapr::proto::dapr::v1::StateOptions* options); - - // @@protoc_insertion_point(class_scope:dapr.proto.dapr.v1.StateRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - StateRequest_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > metadata_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr etag_; - ::google::protobuf::Any* value_; - ::dapr::proto::dapr::v1::StateOptions* options_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// InvokeServiceRequest - -// string id = 1; -inline void InvokeServiceRequest::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& InvokeServiceRequest::id() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.InvokeServiceRequest.id) - return id_.GetNoArena(); -} -inline void InvokeServiceRequest::set_id(const ::std::string& value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.InvokeServiceRequest.id) -} -#if LANG_CXX11 -inline void InvokeServiceRequest::set_id(::std::string&& value) { - - id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.InvokeServiceRequest.id) -} -#endif -inline void InvokeServiceRequest::set_id(const char* value) { - GOOGLE_DCHECK(value != NULL); - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.InvokeServiceRequest.id) -} -inline void InvokeServiceRequest::set_id(const char* value, size_t size) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.InvokeServiceRequest.id) -} -inline ::std::string* InvokeServiceRequest::mutable_id() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.InvokeServiceRequest.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* InvokeServiceRequest::release_id() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.InvokeServiceRequest.id) - - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InvokeServiceRequest::set_allocated_id(::std::string* id) { - if (id != NULL) { - - } else { - - } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.InvokeServiceRequest.id) -} - -// .dapr.proto.common.v1.InvokeRequest message = 3; -inline bool InvokeServiceRequest::has_message() const { - return this != internal_default_instance() && message_ != NULL; -} -inline const ::dapr::proto::common::v1::InvokeRequest& InvokeServiceRequest::_internal_message() const { - return *message_; -} -inline const ::dapr::proto::common::v1::InvokeRequest& InvokeServiceRequest::message() const { - const ::dapr::proto::common::v1::InvokeRequest* p = message_; - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.InvokeServiceRequest.message) - return p != NULL ? *p : *reinterpret_cast( - &::dapr::proto::common::v1::_InvokeRequest_default_instance_); -} -inline ::dapr::proto::common::v1::InvokeRequest* InvokeServiceRequest::release_message() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.InvokeServiceRequest.message) - - ::dapr::proto::common::v1::InvokeRequest* temp = message_; - message_ = NULL; - return temp; -} -inline ::dapr::proto::common::v1::InvokeRequest* InvokeServiceRequest::mutable_message() { - - if (message_ == NULL) { - auto* p = CreateMaybeMessage<::dapr::proto::common::v1::InvokeRequest>(GetArenaNoVirtual()); - message_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.InvokeServiceRequest.message) - return message_; -} -inline void InvokeServiceRequest::set_allocated_message(::dapr::proto::common::v1::InvokeRequest* message) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(message_); - } - if (message) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - message = ::google::protobuf::internal::GetOwnedMessage( - message_arena, message, submessage_arena); - } - - } else { - - } - message_ = message; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.InvokeServiceRequest.message) -} - -// ------------------------------------------------------------------- - -// DeleteStateEnvelope - -// string store_name = 1; -inline void DeleteStateEnvelope::clear_store_name() { - store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DeleteStateEnvelope::store_name() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.DeleteStateEnvelope.store_name) - return store_name_.GetNoArena(); -} -inline void DeleteStateEnvelope::set_store_name(const ::std::string& value) { - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.DeleteStateEnvelope.store_name) -} -#if LANG_CXX11 -inline void DeleteStateEnvelope::set_store_name(::std::string&& value) { - - store_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.DeleteStateEnvelope.store_name) -} -#endif -inline void DeleteStateEnvelope::set_store_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.DeleteStateEnvelope.store_name) -} -inline void DeleteStateEnvelope::set_store_name(const char* value, size_t size) { - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.DeleteStateEnvelope.store_name) -} -inline ::std::string* DeleteStateEnvelope::mutable_store_name() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.DeleteStateEnvelope.store_name) - return store_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DeleteStateEnvelope::release_store_name() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.DeleteStateEnvelope.store_name) - - return store_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DeleteStateEnvelope::set_allocated_store_name(::std::string* store_name) { - if (store_name != NULL) { - - } else { - - } - store_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), store_name); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.DeleteStateEnvelope.store_name) -} - -// string key = 2; -inline void DeleteStateEnvelope::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DeleteStateEnvelope::key() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.DeleteStateEnvelope.key) - return key_.GetNoArena(); -} -inline void DeleteStateEnvelope::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.DeleteStateEnvelope.key) -} -#if LANG_CXX11 -inline void DeleteStateEnvelope::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.DeleteStateEnvelope.key) -} -#endif -inline void DeleteStateEnvelope::set_key(const char* value) { - GOOGLE_DCHECK(value != NULL); - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.DeleteStateEnvelope.key) -} -inline void DeleteStateEnvelope::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.DeleteStateEnvelope.key) -} -inline ::std::string* DeleteStateEnvelope::mutable_key() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.DeleteStateEnvelope.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DeleteStateEnvelope::release_key() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.DeleteStateEnvelope.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DeleteStateEnvelope::set_allocated_key(::std::string* key) { - if (key != NULL) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.DeleteStateEnvelope.key) -} - -// string etag = 3; -inline void DeleteStateEnvelope::clear_etag() { - etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DeleteStateEnvelope::etag() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.DeleteStateEnvelope.etag) - return etag_.GetNoArena(); -} -inline void DeleteStateEnvelope::set_etag(const ::std::string& value) { - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.DeleteStateEnvelope.etag) -} -#if LANG_CXX11 -inline void DeleteStateEnvelope::set_etag(::std::string&& value) { - - etag_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.DeleteStateEnvelope.etag) -} -#endif -inline void DeleteStateEnvelope::set_etag(const char* value) { - GOOGLE_DCHECK(value != NULL); - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.DeleteStateEnvelope.etag) -} -inline void DeleteStateEnvelope::set_etag(const char* value, size_t size) { - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.DeleteStateEnvelope.etag) -} -inline ::std::string* DeleteStateEnvelope::mutable_etag() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.DeleteStateEnvelope.etag) - return etag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DeleteStateEnvelope::release_etag() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.DeleteStateEnvelope.etag) - - return etag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DeleteStateEnvelope::set_allocated_etag(::std::string* etag) { - if (etag != NULL) { - - } else { - - } - etag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), etag); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.DeleteStateEnvelope.etag) -} - -// .dapr.proto.dapr.v1.StateOptions options = 4; -inline bool DeleteStateEnvelope::has_options() const { - return this != internal_default_instance() && options_ != NULL; -} -inline void DeleteStateEnvelope::clear_options() { - if (GetArenaNoVirtual() == NULL && options_ != NULL) { - delete options_; - } - options_ = NULL; -} -inline const ::dapr::proto::dapr::v1::StateOptions& DeleteStateEnvelope::_internal_options() const { - return *options_; -} -inline const ::dapr::proto::dapr::v1::StateOptions& DeleteStateEnvelope::options() const { - const ::dapr::proto::dapr::v1::StateOptions* p = options_; - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.DeleteStateEnvelope.options) - return p != NULL ? *p : *reinterpret_cast( - &::dapr::proto::dapr::v1::_StateOptions_default_instance_); -} -inline ::dapr::proto::dapr::v1::StateOptions* DeleteStateEnvelope::release_options() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.DeleteStateEnvelope.options) - - ::dapr::proto::dapr::v1::StateOptions* temp = options_; - options_ = NULL; - return temp; -} -inline ::dapr::proto::dapr::v1::StateOptions* DeleteStateEnvelope::mutable_options() { - - if (options_ == NULL) { - auto* p = CreateMaybeMessage<::dapr::proto::dapr::v1::StateOptions>(GetArenaNoVirtual()); - options_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.DeleteStateEnvelope.options) - return options_; -} -inline void DeleteStateEnvelope::set_allocated_options(::dapr::proto::dapr::v1::StateOptions* options) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete options_; - } - if (options) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - options = ::google::protobuf::internal::GetOwnedMessage( - message_arena, options, submessage_arena); - } - - } else { - - } - options_ = options; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.DeleteStateEnvelope.options) -} - -// ------------------------------------------------------------------- - -// SaveStateEnvelope - -// string store_name = 1; -inline void SaveStateEnvelope::clear_store_name() { - store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SaveStateEnvelope::store_name() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.SaveStateEnvelope.store_name) - return store_name_.GetNoArena(); -} -inline void SaveStateEnvelope::set_store_name(const ::std::string& value) { - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.SaveStateEnvelope.store_name) -} -#if LANG_CXX11 -inline void SaveStateEnvelope::set_store_name(::std::string&& value) { - - store_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.SaveStateEnvelope.store_name) -} -#endif -inline void SaveStateEnvelope::set_store_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.SaveStateEnvelope.store_name) -} -inline void SaveStateEnvelope::set_store_name(const char* value, size_t size) { - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.SaveStateEnvelope.store_name) -} -inline ::std::string* SaveStateEnvelope::mutable_store_name() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.SaveStateEnvelope.store_name) - return store_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SaveStateEnvelope::release_store_name() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.SaveStateEnvelope.store_name) - - return store_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SaveStateEnvelope::set_allocated_store_name(::std::string* store_name) { - if (store_name != NULL) { - - } else { - - } - store_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), store_name); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.SaveStateEnvelope.store_name) -} - -// repeated .dapr.proto.dapr.v1.StateRequest requests = 2; -inline int SaveStateEnvelope::requests_size() const { - return requests_.size(); -} -inline void SaveStateEnvelope::clear_requests() { - requests_.Clear(); -} -inline ::dapr::proto::dapr::v1::StateRequest* SaveStateEnvelope::mutable_requests(int index) { - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.SaveStateEnvelope.requests) - return requests_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::dapr::proto::dapr::v1::StateRequest >* -SaveStateEnvelope::mutable_requests() { - // @@protoc_insertion_point(field_mutable_list:dapr.proto.dapr.v1.SaveStateEnvelope.requests) - return &requests_; -} -inline const ::dapr::proto::dapr::v1::StateRequest& SaveStateEnvelope::requests(int index) const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.SaveStateEnvelope.requests) - return requests_.Get(index); -} -inline ::dapr::proto::dapr::v1::StateRequest* SaveStateEnvelope::add_requests() { - // @@protoc_insertion_point(field_add:dapr.proto.dapr.v1.SaveStateEnvelope.requests) - return requests_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::dapr::proto::dapr::v1::StateRequest >& -SaveStateEnvelope::requests() const { - // @@protoc_insertion_point(field_list:dapr.proto.dapr.v1.SaveStateEnvelope.requests) - return requests_; -} - -// ------------------------------------------------------------------- - -// GetStateEnvelope - -// string store_name = 1; -inline void GetStateEnvelope::clear_store_name() { - store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetStateEnvelope::store_name() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.GetStateEnvelope.store_name) - return store_name_.GetNoArena(); -} -inline void GetStateEnvelope::set_store_name(const ::std::string& value) { - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.GetStateEnvelope.store_name) -} -#if LANG_CXX11 -inline void GetStateEnvelope::set_store_name(::std::string&& value) { - - store_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.GetStateEnvelope.store_name) -} -#endif -inline void GetStateEnvelope::set_store_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.GetStateEnvelope.store_name) -} -inline void GetStateEnvelope::set_store_name(const char* value, size_t size) { - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.GetStateEnvelope.store_name) -} -inline ::std::string* GetStateEnvelope::mutable_store_name() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.GetStateEnvelope.store_name) - return store_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetStateEnvelope::release_store_name() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.GetStateEnvelope.store_name) - - return store_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetStateEnvelope::set_allocated_store_name(::std::string* store_name) { - if (store_name != NULL) { - - } else { - - } - store_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), store_name); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.GetStateEnvelope.store_name) -} - -// string key = 2; -inline void GetStateEnvelope::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetStateEnvelope::key() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.GetStateEnvelope.key) - return key_.GetNoArena(); -} -inline void GetStateEnvelope::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.GetStateEnvelope.key) -} -#if LANG_CXX11 -inline void GetStateEnvelope::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.GetStateEnvelope.key) -} -#endif -inline void GetStateEnvelope::set_key(const char* value) { - GOOGLE_DCHECK(value != NULL); - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.GetStateEnvelope.key) -} -inline void GetStateEnvelope::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.GetStateEnvelope.key) -} -inline ::std::string* GetStateEnvelope::mutable_key() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.GetStateEnvelope.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetStateEnvelope::release_key() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.GetStateEnvelope.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetStateEnvelope::set_allocated_key(::std::string* key) { - if (key != NULL) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.GetStateEnvelope.key) -} - -// string consistency = 3; -inline void GetStateEnvelope::clear_consistency() { - consistency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetStateEnvelope::consistency() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.GetStateEnvelope.consistency) - return consistency_.GetNoArena(); -} -inline void GetStateEnvelope::set_consistency(const ::std::string& value) { - - consistency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.GetStateEnvelope.consistency) -} -#if LANG_CXX11 -inline void GetStateEnvelope::set_consistency(::std::string&& value) { - - consistency_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.GetStateEnvelope.consistency) -} -#endif -inline void GetStateEnvelope::set_consistency(const char* value) { - GOOGLE_DCHECK(value != NULL); - - consistency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.GetStateEnvelope.consistency) -} -inline void GetStateEnvelope::set_consistency(const char* value, size_t size) { - - consistency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.GetStateEnvelope.consistency) -} -inline ::std::string* GetStateEnvelope::mutable_consistency() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.GetStateEnvelope.consistency) - return consistency_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetStateEnvelope::release_consistency() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.GetStateEnvelope.consistency) - - return consistency_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetStateEnvelope::set_allocated_consistency(::std::string* consistency) { - if (consistency != NULL) { - - } else { - - } - consistency_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), consistency); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.GetStateEnvelope.consistency) -} - -// ------------------------------------------------------------------- - -// GetStateResponseEnvelope - -// .google.protobuf.Any data = 1; -inline bool GetStateResponseEnvelope::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::google::protobuf::Any& GetStateResponseEnvelope::_internal_data() const { - return *data_; -} -inline const ::google::protobuf::Any& GetStateResponseEnvelope::data() const { - const ::google::protobuf::Any* p = data_; - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.GetStateResponseEnvelope.data) - return p != NULL ? *p : *reinterpret_cast( - &::google::protobuf::_Any_default_instance_); -} -inline ::google::protobuf::Any* GetStateResponseEnvelope::release_data() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.GetStateResponseEnvelope.data) - - ::google::protobuf::Any* temp = data_; - data_ = NULL; - return temp; -} -inline ::google::protobuf::Any* GetStateResponseEnvelope::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.GetStateResponseEnvelope.data) - return data_; -} -inline void GetStateResponseEnvelope::set_allocated_data(::google::protobuf::Any* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.GetStateResponseEnvelope.data) -} - -// string etag = 2; -inline void GetStateResponseEnvelope::clear_etag() { - etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetStateResponseEnvelope::etag() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.GetStateResponseEnvelope.etag) - return etag_.GetNoArena(); -} -inline void GetStateResponseEnvelope::set_etag(const ::std::string& value) { - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.GetStateResponseEnvelope.etag) -} -#if LANG_CXX11 -inline void GetStateResponseEnvelope::set_etag(::std::string&& value) { - - etag_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.GetStateResponseEnvelope.etag) -} -#endif -inline void GetStateResponseEnvelope::set_etag(const char* value) { - GOOGLE_DCHECK(value != NULL); - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.GetStateResponseEnvelope.etag) -} -inline void GetStateResponseEnvelope::set_etag(const char* value, size_t size) { - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.GetStateResponseEnvelope.etag) -} -inline ::std::string* GetStateResponseEnvelope::mutable_etag() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.GetStateResponseEnvelope.etag) - return etag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetStateResponseEnvelope::release_etag() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.GetStateResponseEnvelope.etag) - - return etag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetStateResponseEnvelope::set_allocated_etag(::std::string* etag) { - if (etag != NULL) { - - } else { - - } - etag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), etag); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.GetStateResponseEnvelope.etag) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// GetSecretEnvelope - -// string store_name = 1; -inline void GetSecretEnvelope::clear_store_name() { - store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetSecretEnvelope::store_name() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.GetSecretEnvelope.store_name) - return store_name_.GetNoArena(); -} -inline void GetSecretEnvelope::set_store_name(const ::std::string& value) { - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.GetSecretEnvelope.store_name) -} -#if LANG_CXX11 -inline void GetSecretEnvelope::set_store_name(::std::string&& value) { - - store_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.GetSecretEnvelope.store_name) -} -#endif -inline void GetSecretEnvelope::set_store_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.GetSecretEnvelope.store_name) -} -inline void GetSecretEnvelope::set_store_name(const char* value, size_t size) { - - store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.GetSecretEnvelope.store_name) -} -inline ::std::string* GetSecretEnvelope::mutable_store_name() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.GetSecretEnvelope.store_name) - return store_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetSecretEnvelope::release_store_name() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.GetSecretEnvelope.store_name) - - return store_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetSecretEnvelope::set_allocated_store_name(::std::string* store_name) { - if (store_name != NULL) { - - } else { - - } - store_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), store_name); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.GetSecretEnvelope.store_name) -} - -// string key = 2; -inline void GetSecretEnvelope::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetSecretEnvelope::key() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.GetSecretEnvelope.key) - return key_.GetNoArena(); -} -inline void GetSecretEnvelope::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.GetSecretEnvelope.key) -} -#if LANG_CXX11 -inline void GetSecretEnvelope::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.GetSecretEnvelope.key) -} -#endif -inline void GetSecretEnvelope::set_key(const char* value) { - GOOGLE_DCHECK(value != NULL); - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.GetSecretEnvelope.key) -} -inline void GetSecretEnvelope::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.GetSecretEnvelope.key) -} -inline ::std::string* GetSecretEnvelope::mutable_key() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.GetSecretEnvelope.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetSecretEnvelope::release_key() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.GetSecretEnvelope.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetSecretEnvelope::set_allocated_key(::std::string* key) { - if (key != NULL) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.GetSecretEnvelope.key) -} - -// map metadata = 3; -inline int GetSecretEnvelope::metadata_size() const { - return metadata_.size(); -} -inline void GetSecretEnvelope::clear_metadata() { - metadata_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -GetSecretEnvelope::metadata() const { - // @@protoc_insertion_point(field_map:dapr.proto.dapr.v1.GetSecretEnvelope.metadata) - return metadata_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -GetSecretEnvelope::mutable_metadata() { - // @@protoc_insertion_point(field_mutable_map:dapr.proto.dapr.v1.GetSecretEnvelope.metadata) - return metadata_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// GetSecretResponseEnvelope - -// map data = 1; -inline int GetSecretResponseEnvelope::data_size() const { - return data_.size(); -} -inline void GetSecretResponseEnvelope::clear_data() { - data_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -GetSecretResponseEnvelope::data() const { - // @@protoc_insertion_point(field_map:dapr.proto.dapr.v1.GetSecretResponseEnvelope.data) - return data_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -GetSecretResponseEnvelope::mutable_data() { - // @@protoc_insertion_point(field_mutable_map:dapr.proto.dapr.v1.GetSecretResponseEnvelope.data) - return data_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// InvokeBindingEnvelope - -// string name = 1; -inline void InvokeBindingEnvelope::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& InvokeBindingEnvelope::name() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.InvokeBindingEnvelope.name) - return name_.GetNoArena(); -} -inline void InvokeBindingEnvelope::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.InvokeBindingEnvelope.name) -} -#if LANG_CXX11 -inline void InvokeBindingEnvelope::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.InvokeBindingEnvelope.name) -} -#endif -inline void InvokeBindingEnvelope::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.InvokeBindingEnvelope.name) -} -inline void InvokeBindingEnvelope::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.InvokeBindingEnvelope.name) -} -inline ::std::string* InvokeBindingEnvelope::mutable_name() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.InvokeBindingEnvelope.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* InvokeBindingEnvelope::release_name() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.InvokeBindingEnvelope.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InvokeBindingEnvelope::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.InvokeBindingEnvelope.name) -} - -// .google.protobuf.Any data = 2; -inline bool InvokeBindingEnvelope::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::google::protobuf::Any& InvokeBindingEnvelope::_internal_data() const { - return *data_; -} -inline const ::google::protobuf::Any& InvokeBindingEnvelope::data() const { - const ::google::protobuf::Any* p = data_; - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.InvokeBindingEnvelope.data) - return p != NULL ? *p : *reinterpret_cast( - &::google::protobuf::_Any_default_instance_); -} -inline ::google::protobuf::Any* InvokeBindingEnvelope::release_data() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.InvokeBindingEnvelope.data) - - ::google::protobuf::Any* temp = data_; - data_ = NULL; - return temp; -} -inline ::google::protobuf::Any* InvokeBindingEnvelope::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.InvokeBindingEnvelope.data) - return data_; -} -inline void InvokeBindingEnvelope::set_allocated_data(::google::protobuf::Any* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.InvokeBindingEnvelope.data) -} - -// map metadata = 3; -inline int InvokeBindingEnvelope::metadata_size() const { - return metadata_.size(); -} -inline void InvokeBindingEnvelope::clear_metadata() { - metadata_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -InvokeBindingEnvelope::metadata() const { - // @@protoc_insertion_point(field_map:dapr.proto.dapr.v1.InvokeBindingEnvelope.metadata) - return metadata_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -InvokeBindingEnvelope::mutable_metadata() { - // @@protoc_insertion_point(field_mutable_map:dapr.proto.dapr.v1.InvokeBindingEnvelope.metadata) - return metadata_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// PublishEventEnvelope - -// string topic = 1; -inline void PublishEventEnvelope::clear_topic() { - topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PublishEventEnvelope::topic() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.PublishEventEnvelope.topic) - return topic_.GetNoArena(); -} -inline void PublishEventEnvelope::set_topic(const ::std::string& value) { - - topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.PublishEventEnvelope.topic) -} -#if LANG_CXX11 -inline void PublishEventEnvelope::set_topic(::std::string&& value) { - - topic_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.PublishEventEnvelope.topic) -} -#endif -inline void PublishEventEnvelope::set_topic(const char* value) { - GOOGLE_DCHECK(value != NULL); - - topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.PublishEventEnvelope.topic) -} -inline void PublishEventEnvelope::set_topic(const char* value, size_t size) { - - topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.PublishEventEnvelope.topic) -} -inline ::std::string* PublishEventEnvelope::mutable_topic() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.PublishEventEnvelope.topic) - return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PublishEventEnvelope::release_topic() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.PublishEventEnvelope.topic) - - return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PublishEventEnvelope::set_allocated_topic(::std::string* topic) { - if (topic != NULL) { - - } else { - - } - topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.PublishEventEnvelope.topic) -} - -// .google.protobuf.Any data = 2; -inline bool PublishEventEnvelope::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::google::protobuf::Any& PublishEventEnvelope::_internal_data() const { - return *data_; -} -inline const ::google::protobuf::Any& PublishEventEnvelope::data() const { - const ::google::protobuf::Any* p = data_; - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.PublishEventEnvelope.data) - return p != NULL ? *p : *reinterpret_cast( - &::google::protobuf::_Any_default_instance_); -} -inline ::google::protobuf::Any* PublishEventEnvelope::release_data() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.PublishEventEnvelope.data) - - ::google::protobuf::Any* temp = data_; - data_ = NULL; - return temp; -} -inline ::google::protobuf::Any* PublishEventEnvelope::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.PublishEventEnvelope.data) - return data_; -} -inline void PublishEventEnvelope::set_allocated_data(::google::protobuf::Any* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.PublishEventEnvelope.data) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// State - -// string key = 1; -inline void State::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& State::key() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.State.key) - return key_.GetNoArena(); -} -inline void State::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.State.key) -} -#if LANG_CXX11 -inline void State::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.State.key) -} -#endif -inline void State::set_key(const char* value) { - GOOGLE_DCHECK(value != NULL); - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.State.key) -} -inline void State::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.State.key) -} -inline ::std::string* State::mutable_key() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.State.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* State::release_key() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.State.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void State::set_allocated_key(::std::string* key) { - if (key != NULL) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.State.key) -} - -// .google.protobuf.Any value = 2; -inline bool State::has_value() const { - return this != internal_default_instance() && value_ != NULL; -} -inline const ::google::protobuf::Any& State::_internal_value() const { - return *value_; -} -inline const ::google::protobuf::Any& State::value() const { - const ::google::protobuf::Any* p = value_; - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.State.value) - return p != NULL ? *p : *reinterpret_cast( - &::google::protobuf::_Any_default_instance_); -} -inline ::google::protobuf::Any* State::release_value() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.State.value) - - ::google::protobuf::Any* temp = value_; - value_ = NULL; - return temp; -} -inline ::google::protobuf::Any* State::mutable_value() { - - if (value_ == NULL) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); - value_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.State.value) - return value_; -} -inline void State::set_allocated_value(::google::protobuf::Any* value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); - } - if (value) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, value, submessage_arena); - } - - } else { - - } - value_ = value; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.State.value) -} - -// string etag = 3; -inline void State::clear_etag() { - etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& State::etag() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.State.etag) - return etag_.GetNoArena(); -} -inline void State::set_etag(const ::std::string& value) { - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.State.etag) -} -#if LANG_CXX11 -inline void State::set_etag(::std::string&& value) { - - etag_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.State.etag) -} -#endif -inline void State::set_etag(const char* value) { - GOOGLE_DCHECK(value != NULL); - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.State.etag) -} -inline void State::set_etag(const char* value, size_t size) { - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.State.etag) -} -inline ::std::string* State::mutable_etag() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.State.etag) - return etag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* State::release_etag() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.State.etag) - - return etag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void State::set_allocated_etag(::std::string* etag) { - if (etag != NULL) { - - } else { - - } - etag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), etag); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.State.etag) -} - -// map metadata = 4; -inline int State::metadata_size() const { - return metadata_.size(); -} -inline void State::clear_metadata() { - metadata_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -State::metadata() const { - // @@protoc_insertion_point(field_map:dapr.proto.dapr.v1.State.metadata) - return metadata_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -State::mutable_metadata() { - // @@protoc_insertion_point(field_mutable_map:dapr.proto.dapr.v1.State.metadata) - return metadata_.MutableMap(); -} - -// .dapr.proto.dapr.v1.StateOptions options = 5; -inline bool State::has_options() const { - return this != internal_default_instance() && options_ != NULL; -} -inline void State::clear_options() { - if (GetArenaNoVirtual() == NULL && options_ != NULL) { - delete options_; - } - options_ = NULL; -} -inline const ::dapr::proto::dapr::v1::StateOptions& State::_internal_options() const { - return *options_; -} -inline const ::dapr::proto::dapr::v1::StateOptions& State::options() const { - const ::dapr::proto::dapr::v1::StateOptions* p = options_; - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.State.options) - return p != NULL ? *p : *reinterpret_cast( - &::dapr::proto::dapr::v1::_StateOptions_default_instance_); -} -inline ::dapr::proto::dapr::v1::StateOptions* State::release_options() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.State.options) - - ::dapr::proto::dapr::v1::StateOptions* temp = options_; - options_ = NULL; - return temp; -} -inline ::dapr::proto::dapr::v1::StateOptions* State::mutable_options() { - - if (options_ == NULL) { - auto* p = CreateMaybeMessage<::dapr::proto::dapr::v1::StateOptions>(GetArenaNoVirtual()); - options_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.State.options) - return options_; -} -inline void State::set_allocated_options(::dapr::proto::dapr::v1::StateOptions* options) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete options_; - } - if (options) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - options = ::google::protobuf::internal::GetOwnedMessage( - message_arena, options, submessage_arena); - } - - } else { - - } - options_ = options; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.State.options) -} - -// ------------------------------------------------------------------- - -// StateOptions - -// string concurrency = 1; -inline void StateOptions::clear_concurrency() { - concurrency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StateOptions::concurrency() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.StateOptions.concurrency) - return concurrency_.GetNoArena(); -} -inline void StateOptions::set_concurrency(const ::std::string& value) { - - concurrency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.StateOptions.concurrency) -} -#if LANG_CXX11 -inline void StateOptions::set_concurrency(::std::string&& value) { - - concurrency_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.StateOptions.concurrency) -} -#endif -inline void StateOptions::set_concurrency(const char* value) { - GOOGLE_DCHECK(value != NULL); - - concurrency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.StateOptions.concurrency) -} -inline void StateOptions::set_concurrency(const char* value, size_t size) { - - concurrency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.StateOptions.concurrency) -} -inline ::std::string* StateOptions::mutable_concurrency() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.StateOptions.concurrency) - return concurrency_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StateOptions::release_concurrency() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.StateOptions.concurrency) - - return concurrency_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StateOptions::set_allocated_concurrency(::std::string* concurrency) { - if (concurrency != NULL) { - - } else { - - } - concurrency_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), concurrency); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.StateOptions.concurrency) -} - -// string consistency = 2; -inline void StateOptions::clear_consistency() { - consistency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StateOptions::consistency() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.StateOptions.consistency) - return consistency_.GetNoArena(); -} -inline void StateOptions::set_consistency(const ::std::string& value) { - - consistency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.StateOptions.consistency) -} -#if LANG_CXX11 -inline void StateOptions::set_consistency(::std::string&& value) { - - consistency_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.StateOptions.consistency) -} -#endif -inline void StateOptions::set_consistency(const char* value) { - GOOGLE_DCHECK(value != NULL); - - consistency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.StateOptions.consistency) -} -inline void StateOptions::set_consistency(const char* value, size_t size) { - - consistency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.StateOptions.consistency) -} -inline ::std::string* StateOptions::mutable_consistency() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.StateOptions.consistency) - return consistency_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StateOptions::release_consistency() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.StateOptions.consistency) - - return consistency_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StateOptions::set_allocated_consistency(::std::string* consistency) { - if (consistency != NULL) { - - } else { - - } - consistency_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), consistency); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.StateOptions.consistency) -} - -// .dapr.proto.dapr.v1.RetryPolicy retry_policy = 3; -inline bool StateOptions::has_retry_policy() const { - return this != internal_default_instance() && retry_policy_ != NULL; -} -inline void StateOptions::clear_retry_policy() { - if (GetArenaNoVirtual() == NULL && retry_policy_ != NULL) { - delete retry_policy_; - } - retry_policy_ = NULL; -} -inline const ::dapr::proto::dapr::v1::RetryPolicy& StateOptions::_internal_retry_policy() const { - return *retry_policy_; -} -inline const ::dapr::proto::dapr::v1::RetryPolicy& StateOptions::retry_policy() const { - const ::dapr::proto::dapr::v1::RetryPolicy* p = retry_policy_; - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.StateOptions.retry_policy) - return p != NULL ? *p : *reinterpret_cast( - &::dapr::proto::dapr::v1::_RetryPolicy_default_instance_); -} -inline ::dapr::proto::dapr::v1::RetryPolicy* StateOptions::release_retry_policy() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.StateOptions.retry_policy) - - ::dapr::proto::dapr::v1::RetryPolicy* temp = retry_policy_; - retry_policy_ = NULL; - return temp; -} -inline ::dapr::proto::dapr::v1::RetryPolicy* StateOptions::mutable_retry_policy() { - - if (retry_policy_ == NULL) { - auto* p = CreateMaybeMessage<::dapr::proto::dapr::v1::RetryPolicy>(GetArenaNoVirtual()); - retry_policy_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.StateOptions.retry_policy) - return retry_policy_; -} -inline void StateOptions::set_allocated_retry_policy(::dapr::proto::dapr::v1::RetryPolicy* retry_policy) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete retry_policy_; - } - if (retry_policy) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - retry_policy = ::google::protobuf::internal::GetOwnedMessage( - message_arena, retry_policy, submessage_arena); - } - - } else { - - } - retry_policy_ = retry_policy; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.StateOptions.retry_policy) -} - -// ------------------------------------------------------------------- - -// RetryPolicy - -// int32 threshold = 1; -inline void RetryPolicy::clear_threshold() { - threshold_ = 0; -} -inline ::google::protobuf::int32 RetryPolicy::threshold() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.RetryPolicy.threshold) - return threshold_; -} -inline void RetryPolicy::set_threshold(::google::protobuf::int32 value) { - - threshold_ = value; - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.RetryPolicy.threshold) -} - -// string pattern = 2; -inline void RetryPolicy::clear_pattern() { - pattern_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& RetryPolicy::pattern() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.RetryPolicy.pattern) - return pattern_.GetNoArena(); -} -inline void RetryPolicy::set_pattern(const ::std::string& value) { - - pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.RetryPolicy.pattern) -} -#if LANG_CXX11 -inline void RetryPolicy::set_pattern(::std::string&& value) { - - pattern_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.RetryPolicy.pattern) -} -#endif -inline void RetryPolicy::set_pattern(const char* value) { - GOOGLE_DCHECK(value != NULL); - - pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.RetryPolicy.pattern) -} -inline void RetryPolicy::set_pattern(const char* value, size_t size) { - - pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.RetryPolicy.pattern) -} -inline ::std::string* RetryPolicy::mutable_pattern() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.RetryPolicy.pattern) - return pattern_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* RetryPolicy::release_pattern() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.RetryPolicy.pattern) - - return pattern_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void RetryPolicy::set_allocated_pattern(::std::string* pattern) { - if (pattern != NULL) { - - } else { - - } - pattern_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pattern); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.RetryPolicy.pattern) -} - -// .google.protobuf.Duration interval = 3; -inline bool RetryPolicy::has_interval() const { - return this != internal_default_instance() && interval_ != NULL; -} -inline const ::google::protobuf::Duration& RetryPolicy::_internal_interval() const { - return *interval_; -} -inline const ::google::protobuf::Duration& RetryPolicy::interval() const { - const ::google::protobuf::Duration* p = interval_; - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.RetryPolicy.interval) - return p != NULL ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* RetryPolicy::release_interval() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.RetryPolicy.interval) - - ::google::protobuf::Duration* temp = interval_; - interval_ = NULL; - return temp; -} -inline ::google::protobuf::Duration* RetryPolicy::mutable_interval() { - - if (interval_ == NULL) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - interval_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.RetryPolicy.interval) - return interval_; -} -inline void RetryPolicy::set_allocated_interval(::google::protobuf::Duration* interval) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(interval_); - } - if (interval) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(interval)->GetArena(); - if (message_arena != submessage_arena) { - interval = ::google::protobuf::internal::GetOwnedMessage( - message_arena, interval, submessage_arena); - } - - } else { - - } - interval_ = interval; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.RetryPolicy.interval) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// StateRequest - -// string key = 1; -inline void StateRequest::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StateRequest::key() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.StateRequest.key) - return key_.GetNoArena(); -} -inline void StateRequest::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.StateRequest.key) -} -#if LANG_CXX11 -inline void StateRequest::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.StateRequest.key) -} -#endif -inline void StateRequest::set_key(const char* value) { - GOOGLE_DCHECK(value != NULL); - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.StateRequest.key) -} -inline void StateRequest::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.StateRequest.key) -} -inline ::std::string* StateRequest::mutable_key() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.StateRequest.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StateRequest::release_key() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.StateRequest.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StateRequest::set_allocated_key(::std::string* key) { - if (key != NULL) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.StateRequest.key) -} - -// .google.protobuf.Any value = 2; -inline bool StateRequest::has_value() const { - return this != internal_default_instance() && value_ != NULL; -} -inline const ::google::protobuf::Any& StateRequest::_internal_value() const { - return *value_; -} -inline const ::google::protobuf::Any& StateRequest::value() const { - const ::google::protobuf::Any* p = value_; - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.StateRequest.value) - return p != NULL ? *p : *reinterpret_cast( - &::google::protobuf::_Any_default_instance_); -} -inline ::google::protobuf::Any* StateRequest::release_value() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.StateRequest.value) - - ::google::protobuf::Any* temp = value_; - value_ = NULL; - return temp; -} -inline ::google::protobuf::Any* StateRequest::mutable_value() { - - if (value_ == NULL) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); - value_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.StateRequest.value) - return value_; -} -inline void StateRequest::set_allocated_value(::google::protobuf::Any* value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); - } - if (value) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, value, submessage_arena); - } - - } else { - - } - value_ = value; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.StateRequest.value) -} - -// string etag = 3; -inline void StateRequest::clear_etag() { - etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StateRequest::etag() const { - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.StateRequest.etag) - return etag_.GetNoArena(); -} -inline void StateRequest::set_etag(const ::std::string& value) { - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.dapr.v1.StateRequest.etag) -} -#if LANG_CXX11 -inline void StateRequest::set_etag(::std::string&& value) { - - etag_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.dapr.v1.StateRequest.etag) -} -#endif -inline void StateRequest::set_etag(const char* value) { - GOOGLE_DCHECK(value != NULL); - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.dapr.v1.StateRequest.etag) -} -inline void StateRequest::set_etag(const char* value, size_t size) { - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.dapr.v1.StateRequest.etag) -} -inline ::std::string* StateRequest::mutable_etag() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.StateRequest.etag) - return etag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StateRequest::release_etag() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.StateRequest.etag) - - return etag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StateRequest::set_allocated_etag(::std::string* etag) { - if (etag != NULL) { - - } else { - - } - etag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), etag); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.StateRequest.etag) -} - -// map metadata = 4; -inline int StateRequest::metadata_size() const { - return metadata_.size(); -} -inline void StateRequest::clear_metadata() { - metadata_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -StateRequest::metadata() const { - // @@protoc_insertion_point(field_map:dapr.proto.dapr.v1.StateRequest.metadata) - return metadata_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -StateRequest::mutable_metadata() { - // @@protoc_insertion_point(field_mutable_map:dapr.proto.dapr.v1.StateRequest.metadata) - return metadata_.MutableMap(); -} - -// .dapr.proto.dapr.v1.StateOptions options = 5; -inline bool StateRequest::has_options() const { - return this != internal_default_instance() && options_ != NULL; -} -inline void StateRequest::clear_options() { - if (GetArenaNoVirtual() == NULL && options_ != NULL) { - delete options_; - } - options_ = NULL; -} -inline const ::dapr::proto::dapr::v1::StateOptions& StateRequest::_internal_options() const { - return *options_; -} -inline const ::dapr::proto::dapr::v1::StateOptions& StateRequest::options() const { - const ::dapr::proto::dapr::v1::StateOptions* p = options_; - // @@protoc_insertion_point(field_get:dapr.proto.dapr.v1.StateRequest.options) - return p != NULL ? *p : *reinterpret_cast( - &::dapr::proto::dapr::v1::_StateOptions_default_instance_); -} -inline ::dapr::proto::dapr::v1::StateOptions* StateRequest::release_options() { - // @@protoc_insertion_point(field_release:dapr.proto.dapr.v1.StateRequest.options) - - ::dapr::proto::dapr::v1::StateOptions* temp = options_; - options_ = NULL; - return temp; -} -inline ::dapr::proto::dapr::v1::StateOptions* StateRequest::mutable_options() { - - if (options_ == NULL) { - auto* p = CreateMaybeMessage<::dapr::proto::dapr::v1::StateOptions>(GetArenaNoVirtual()); - options_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.dapr.v1.StateRequest.options) - return options_; -} -inline void StateRequest::set_allocated_options(::dapr::proto::dapr::v1::StateOptions* options) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete options_; - } - if (options) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - options = ::google::protobuf::internal::GetOwnedMessage( - message_arena, options, submessage_arena); - } - - } else { - - } - options_ = options; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.dapr.v1.StateRequest.options) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace v1 -} // namespace dapr -} // namespace proto -} // namespace dapr - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto diff --git a/src/dapr/proto/daprclient/v1/daprclient.grpc.pb.cc b/src/dapr/proto/daprclient/v1/daprclient.grpc.pb.cc deleted file mode 100644 index b5de97a..0000000 --- a/src/dapr/proto/daprclient/v1/daprclient.grpc.pb.cc +++ /dev/null @@ -1,196 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: dapr/proto/daprclient/v1/daprclient.proto - -#include "dapr/proto/daprclient/v1/daprclient.pb.h" -#include "dapr/proto/daprclient/v1/daprclient.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace dapr { -namespace proto { -namespace daprclient { -namespace v1 { - -static const char* DaprClient_method_names[] = { - "/dapr.proto.daprclient.v1.DaprClient/OnInvoke", - "/dapr.proto.daprclient.v1.DaprClient/GetTopicSubscriptions", - "/dapr.proto.daprclient.v1.DaprClient/GetBindingsSubscriptions", - "/dapr.proto.daprclient.v1.DaprClient/OnBindingEvent", - "/dapr.proto.daprclient.v1.DaprClient/OnTopicEvent", -}; - -std::unique_ptr< DaprClient::Stub> DaprClient::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< DaprClient::Stub> stub(new DaprClient::Stub(channel)); - return stub; -} - -DaprClient::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_OnInvoke_(DaprClient_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetTopicSubscriptions_(DaprClient_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetBindingsSubscriptions_(DaprClient_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OnBindingEvent_(DaprClient_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OnTopicEvent_(DaprClient_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status DaprClient::Stub::OnInvoke(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::dapr::proto::common::v1::InvokeResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_OnInvoke_, context, request, response); -} - -void DaprClient::Stub::experimental_async::OnInvoke(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest* request, ::dapr::proto::common::v1::InvokeResponse* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OnInvoke_, context, request, response, std::move(f)); -} - -::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* DaprClient::Stub::AsyncOnInvokeRaw(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::common::v1::InvokeResponse>::Create(channel_.get(), cq, rpcmethod_OnInvoke_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* DaprClient::Stub::PrepareAsyncOnInvokeRaw(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::common::v1::InvokeResponse>::Create(channel_.get(), cq, rpcmethod_OnInvoke_, context, request, false); -} - -::grpc::Status DaprClient::Stub::GetTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTopicSubscriptions_, context, request, response); -} - -void DaprClient::Stub::experimental_async::GetTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTopicSubscriptions_, context, request, response, std::move(f)); -} - -::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>* DaprClient::Stub::AsyncGetTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>::Create(channel_.get(), cq, rpcmethod_GetTopicSubscriptions_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>* DaprClient::Stub::PrepareAsyncGetTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>::Create(channel_.get(), cq, rpcmethod_GetTopicSubscriptions_, context, request, false); -} - -::grpc::Status DaprClient::Stub::GetBindingsSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetBindingsSubscriptions_, context, request, response); -} - -void DaprClient::Stub::experimental_async::GetBindingsSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetBindingsSubscriptions_, context, request, response, std::move(f)); -} - -::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>* DaprClient::Stub::AsyncGetBindingsSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>::Create(channel_.get(), cq, rpcmethod_GetBindingsSubscriptions_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>* DaprClient::Stub::PrepareAsyncGetBindingsSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>::Create(channel_.get(), cq, rpcmethod_GetBindingsSubscriptions_, context, request, false); -} - -::grpc::Status DaprClient::Stub::OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_OnBindingEvent_, context, request, response); -} - -void DaprClient::Stub::experimental_async::OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope* request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OnBindingEvent_, context, request, response, std::move(f)); -} - -::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>* DaprClient::Stub::AsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>::Create(channel_.get(), cq, rpcmethod_OnBindingEvent_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>* DaprClient::Stub::PrepareAsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>::Create(channel_.get(), cq, rpcmethod_OnBindingEvent_, context, request, false); -} - -::grpc::Status DaprClient::Stub::OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::google::protobuf::Empty* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_OnTopicEvent_, context, request, response); -} - -void DaprClient::Stub::experimental_async::OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope* request, ::google::protobuf::Empty* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OnTopicEvent_, context, request, response, std::move(f)); -} - -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* DaprClient::Stub::AsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_OnTopicEvent_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* DaprClient::Stub::PrepareAsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_OnTopicEvent_, context, request, false); -} - -DaprClient::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - DaprClient_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DaprClient::Service, ::dapr::proto::common::v1::InvokeRequest, ::dapr::proto::common::v1::InvokeResponse>( - std::mem_fn(&DaprClient::Service::OnInvoke), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DaprClient_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DaprClient::Service, ::google::protobuf::Empty, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>( - std::mem_fn(&DaprClient::Service::GetTopicSubscriptions), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DaprClient_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DaprClient::Service, ::google::protobuf::Empty, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>( - std::mem_fn(&DaprClient::Service::GetBindingsSubscriptions), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DaprClient_method_names[3], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DaprClient::Service, ::dapr::proto::daprclient::v1::BindingEventEnvelope, ::dapr::proto::daprclient::v1::BindingResponseEnvelope>( - std::mem_fn(&DaprClient::Service::OnBindingEvent), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DaprClient_method_names[4], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DaprClient::Service, ::dapr::proto::daprclient::v1::CloudEventEnvelope, ::google::protobuf::Empty>( - std::mem_fn(&DaprClient::Service::OnTopicEvent), this))); -} - -DaprClient::Service::~Service() { -} - -::grpc::Status DaprClient::Service::OnInvoke(::grpc::ServerContext* context, const ::dapr::proto::common::v1::InvokeRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DaprClient::Service::GetTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DaprClient::Service::GetBindingsSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DaprClient::Service::OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope* request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DaprClient::Service::OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope* request, ::google::protobuf::Empty* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace dapr -} // namespace proto -} // namespace daprclient -} // namespace v1 - diff --git a/src/dapr/proto/daprclient/v1/daprclient.pb.cc b/src/dapr/proto/daprclient/v1/daprclient.pb.cc deleted file mode 100644 index f0a17b4..0000000 --- a/src/dapr/proto/daprclient/v1/daprclient.pb.cc +++ /dev/null @@ -1,3694 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dapr/proto/daprclient/v1/daprclient.proto - -#include "dapr/proto/daprclient/v1/daprclient.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// This is a temporary google only hack -#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS -#include "third_party/protobuf/version.h" -#endif -// @@protoc_insertion_point(includes) - -namespace protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BindingEventEnvelope_MetadataEntry_DoNotUse; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_State_MetadataEntry_DoNotUse; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_RetryPolicy; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StateOptions; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_State; -} // namespace protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto -namespace protobuf_google_2fprotobuf_2fany_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fany_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Any; -} // namespace protobuf_google_2fprotobuf_2fany_2eproto -namespace protobuf_google_2fprotobuf_2fduration_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration; -} // namespace protobuf_google_2fprotobuf_2fduration_2eproto -namespace dapr { -namespace proto { -namespace daprclient { -namespace v1 { -class CloudEventEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _CloudEventEnvelope_default_instance_; -class BindingEventEnvelope_MetadataEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _BindingEventEnvelope_MetadataEntry_DoNotUse_default_instance_; -class BindingEventEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _BindingEventEnvelope_default_instance_; -class BindingResponseEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _BindingResponseEnvelope_default_instance_; -class GetTopicSubscriptionsEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _GetTopicSubscriptionsEnvelope_default_instance_; -class GetBindingsSubscriptionsEnvelopeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _GetBindingsSubscriptionsEnvelope_default_instance_; -class State_MetadataEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _State_MetadataEntry_DoNotUse_default_instance_; -class StateDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _State_default_instance_; -class StateOptionsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _StateOptions_default_instance_; -class RetryPolicyDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _RetryPolicy_default_instance_; -} // namespace v1 -} // namespace daprclient -} // namespace proto -} // namespace dapr -namespace protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto { -static void InitDefaultsCloudEventEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::daprclient::v1::_CloudEventEnvelope_default_instance_; - new (ptr) ::dapr::proto::daprclient::v1::CloudEventEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::daprclient::v1::CloudEventEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CloudEventEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCloudEventEnvelope}, { - &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base,}}; - -static void InitDefaultsBindingEventEnvelope_MetadataEntry_DoNotUse() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::daprclient::v1::_BindingEventEnvelope_MetadataEntry_DoNotUse_default_instance_; - new (ptr) ::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse(); - } - ::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_BindingEventEnvelope_MetadataEntry_DoNotUse = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBindingEventEnvelope_MetadataEntry_DoNotUse}, {}}; - -static void InitDefaultsBindingEventEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::daprclient::v1::_BindingEventEnvelope_default_instance_; - new (ptr) ::dapr::proto::daprclient::v1::BindingEventEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::daprclient::v1::BindingEventEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_BindingEventEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsBindingEventEnvelope}, { - &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base, - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_BindingEventEnvelope_MetadataEntry_DoNotUse.base,}}; - -static void InitDefaultsBindingResponseEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::daprclient::v1::_BindingResponseEnvelope_default_instance_; - new (ptr) ::dapr::proto::daprclient::v1::BindingResponseEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::daprclient::v1::BindingResponseEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_BindingResponseEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsBindingResponseEnvelope}, { - &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base, - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_State.base,}}; - -static void InitDefaultsGetTopicSubscriptionsEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::daprclient::v1::_GetTopicSubscriptionsEnvelope_default_instance_; - new (ptr) ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GetTopicSubscriptionsEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetTopicSubscriptionsEnvelope}, {}}; - -static void InitDefaultsGetBindingsSubscriptionsEnvelope() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::daprclient::v1::_GetBindingsSubscriptionsEnvelope_default_instance_; - new (ptr) ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GetBindingsSubscriptionsEnvelope = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetBindingsSubscriptionsEnvelope}, {}}; - -static void InitDefaultsState_MetadataEntry_DoNotUse() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::daprclient::v1::_State_MetadataEntry_DoNotUse_default_instance_; - new (ptr) ::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse(); - } - ::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_State_MetadataEntry_DoNotUse = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsState_MetadataEntry_DoNotUse}, {}}; - -static void InitDefaultsState() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::daprclient::v1::_State_default_instance_; - new (ptr) ::dapr::proto::daprclient::v1::State(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::daprclient::v1::State::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_State = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsState}, { - &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base, - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_State_MetadataEntry_DoNotUse.base, - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_StateOptions.base,}}; - -static void InitDefaultsStateOptions() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::daprclient::v1::_StateOptions_default_instance_; - new (ptr) ::dapr::proto::daprclient::v1::StateOptions(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::daprclient::v1::StateOptions::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_StateOptions = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStateOptions}, { - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_RetryPolicy.base,}}; - -static void InitDefaultsRetryPolicy() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::dapr::proto::daprclient::v1::_RetryPolicy_default_instance_; - new (ptr) ::dapr::proto::daprclient::v1::RetryPolicy(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::dapr::proto::daprclient::v1::RetryPolicy::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_RetryPolicy = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRetryPolicy}, { - &protobuf_google_2fprotobuf_2fduration_2eproto::scc_info_Duration.base,}}; - -void InitDefaults() { - ::google::protobuf::internal::InitSCC(&scc_info_CloudEventEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_BindingEventEnvelope_MetadataEntry_DoNotUse.base); - ::google::protobuf::internal::InitSCC(&scc_info_BindingEventEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_BindingResponseEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetTopicSubscriptionsEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetBindingsSubscriptionsEnvelope.base); - ::google::protobuf::internal::InitSCC(&scc_info_State_MetadataEntry_DoNotUse.base); - ::google::protobuf::internal::InitSCC(&scc_info_State.base); - ::google::protobuf::internal::InitSCC(&scc_info_StateOptions.base); - ::google::protobuf::internal::InitSCC(&scc_info_RetryPolicy.base); -} - -::google::protobuf::Metadata file_level_metadata[10]; - -const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::CloudEventEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::CloudEventEnvelope, id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::CloudEventEnvelope, source_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::CloudEventEnvelope, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::CloudEventEnvelope, specversion_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::CloudEventEnvelope, data_content_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::CloudEventEnvelope, topic_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::CloudEventEnvelope, data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse, _has_bits_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingEventEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingEventEnvelope, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingEventEnvelope, data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingEventEnvelope, metadata_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingResponseEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingResponseEnvelope, data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingResponseEnvelope, to_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingResponseEnvelope, state_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::BindingResponseEnvelope, concurrency_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope, topics_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope, bindings_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse, _has_bits_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::State, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::State, key_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::State, value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::State, etag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::State, metadata_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::State, options_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::StateOptions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::StateOptions, concurrency_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::StateOptions, consistency_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::StateOptions, retry_policy_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::RetryPolicy, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::RetryPolicy, threshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::RetryPolicy, pattern_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::daprclient::v1::RetryPolicy, interval_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::dapr::proto::daprclient::v1::CloudEventEnvelope)}, - { 12, 19, sizeof(::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse)}, - { 21, -1, sizeof(::dapr::proto::daprclient::v1::BindingEventEnvelope)}, - { 29, -1, sizeof(::dapr::proto::daprclient::v1::BindingResponseEnvelope)}, - { 38, -1, sizeof(::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope)}, - { 44, -1, sizeof(::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope)}, - { 50, 57, sizeof(::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse)}, - { 59, -1, sizeof(::dapr::proto::daprclient::v1::State)}, - { 69, -1, sizeof(::dapr::proto::daprclient::v1::StateOptions)}, - { 77, -1, sizeof(::dapr::proto::daprclient::v1::RetryPolicy)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::dapr::proto::daprclient::v1::_CloudEventEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::daprclient::v1::_BindingEventEnvelope_MetadataEntry_DoNotUse_default_instance_), - reinterpret_cast(&::dapr::proto::daprclient::v1::_BindingEventEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::daprclient::v1::_BindingResponseEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::daprclient::v1::_GetTopicSubscriptionsEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::daprclient::v1::_GetBindingsSubscriptionsEnvelope_default_instance_), - reinterpret_cast(&::dapr::proto::daprclient::v1::_State_MetadataEntry_DoNotUse_default_instance_), - reinterpret_cast(&::dapr::proto::daprclient::v1::_State_default_instance_), - reinterpret_cast(&::dapr::proto::daprclient::v1::_StateOptions_default_instance_), - reinterpret_cast(&::dapr::proto::daprclient::v1::_RetryPolicy_default_instance_), -}; - -void protobuf_AssignDescriptors() { - AddDescriptors(); - AssignDescriptors( - "dapr/proto/daprclient/v1/daprclient.proto", schemas, file_default_instances, TableStruct::offsets, - file_level_metadata, NULL, NULL); -} - -void protobuf_AssignDescriptorsOnce() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 10); -} - -void AddDescriptorsImpl() { - InitDefaults(); - static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n)dapr/proto/daprclient/v1/daprclient.pr" - "oto\022\030dapr.proto.daprclient.v1\032\031google/pr" - "otobuf/any.proto\032\033google/protobuf/empty." - "proto\032\036google/protobuf/duration.proto\032!d" - "apr/proto/common/v1/common.proto\"\241\001\n\022Clo" - "udEventEnvelope\022\n\n\002id\030\001 \001(\t\022\016\n\006source\030\002 " - "\001(\t\022\014\n\004type\030\003 \001(\t\022\023\n\013specVersion\030\004 \001(\t\022\031" - "\n\021data_content_type\030\005 \001(\t\022\r\n\005topic\030\006 \001(\t" - "\022\"\n\004data\030\007 \001(\0132\024.google.protobuf.Any\"\311\001\n" - "\024BindingEventEnvelope\022\014\n\004name\030\001 \001(\t\022\"\n\004d" - "ata\030\002 \001(\0132\024.google.protobuf.Any\022N\n\010metad" - "ata\030\003 \003(\0132<.dapr.proto.daprclient.v1.Bin" - "dingEventEnvelope.MetadataEntry\032/\n\rMetad" - "ataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - "\"\216\001\n\027BindingResponseEnvelope\022\"\n\004data\030\001 \001" - "(\0132\024.google.protobuf.Any\022\n\n\002to\030\002 \003(\t\022.\n\005" - "state\030\003 \003(\0132\037.dapr.proto.daprclient.v1.S" - "tate\022\023\n\013concurrency\030\004 \001(\t\"/\n\035GetTopicSub" - "scriptionsEnvelope\022\016\n\006topics\030\001 \003(\t\"4\n Ge" - "tBindingsSubscriptionsEnvelope\022\020\n\010bindin" - "gs\030\001 \003(\t\"\362\001\n\005State\022\013\n\003key\030\001 \001(\t\022#\n\005value" - "\030\002 \001(\0132\024.google.protobuf.Any\022\014\n\004etag\030\003 \001" - "(\t\022\?\n\010metadata\030\004 \003(\0132-.dapr.proto.daprcl" - "ient.v1.State.MetadataEntry\0227\n\007options\030\005" - " \001(\0132&.dapr.proto.daprclient.v1.StateOpt" - "ions\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - "lue\030\002 \001(\t:\0028\001\"u\n\014StateOptions\022\023\n\013concurr" - "ency\030\001 \001(\t\022\023\n\013consistency\030\002 \001(\t\022;\n\014retry" - "_policy\030\003 \001(\0132%.dapr.proto.daprclient.v1" - ".RetryPolicy\"^\n\013RetryPolicy\022\021\n\tthreshold" - "\030\001 \001(\005\022\017\n\007pattern\030\002 \001(\t\022+\n\010interval\030\003 \001(" - "\0132\031.google.protobuf.Duration2\222\004\n\nDaprCli" - "ent\022W\n\010OnInvoke\022#.dapr.proto.common.v1.I" - "nvokeRequest\032$.dapr.proto.common.v1.Invo" - "keResponse\"\000\022j\n\025GetTopicSubscriptions\022\026." - "google.protobuf.Empty\0327.dapr.proto.daprc" - "lient.v1.GetTopicSubscriptionsEnvelope\"\000" - "\022p\n\030GetBindingsSubscriptions\022\026.google.pr" - "otobuf.Empty\032:.dapr.proto.daprclient.v1." - "GetBindingsSubscriptionsEnvelope\"\000\022u\n\016On" - "BindingEvent\022..dapr.proto.daprclient.v1." - "BindingEventEnvelope\0321.dapr.proto.daprcl" - "ient.v1.BindingResponseEnvelope\"\000\022V\n\014OnT" - "opicEvent\022,.dapr.proto.daprclient.v1.Clo" - "udEventEnvelope\032\026.google.protobuf.Empty\"" - "\000Bj\n\nio.dapr.v1B\020DaprClientProtosZ,githu" - "b.com/dapr/dapr/pkg/proto/daprclient/v1\252" - "\002\033Dapr.Client.Autogen.Grpc.v1b\006proto3" - }; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 1917); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "dapr/proto/daprclient/v1/daprclient.proto", &protobuf_RegisterTypes); - ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors(); - ::protobuf_google_2fprotobuf_2fempty_2eproto::AddDescriptors(); - ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors(); - ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::AddDescriptors(); -} - -void AddDescriptors() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); -} -// Force AddDescriptors() to be called at dynamic initialization time. -struct StaticDescriptorInitializer { - StaticDescriptorInitializer() { - AddDescriptors(); - } -} static_descriptor_initializer; -} // namespace protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto -namespace dapr { -namespace proto { -namespace daprclient { -namespace v1 { - -// =================================================================== - -void CloudEventEnvelope::InitAsDefaultInstance() { - ::dapr::proto::daprclient::v1::_CloudEventEnvelope_default_instance_._instance.get_mutable()->data_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); -} -void CloudEventEnvelope::clear_data() { - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CloudEventEnvelope::kIdFieldNumber; -const int CloudEventEnvelope::kSourceFieldNumber; -const int CloudEventEnvelope::kTypeFieldNumber; -const int CloudEventEnvelope::kSpecVersionFieldNumber; -const int CloudEventEnvelope::kDataContentTypeFieldNumber; -const int CloudEventEnvelope::kTopicFieldNumber; -const int CloudEventEnvelope::kDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CloudEventEnvelope::CloudEventEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_CloudEventEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.daprclient.v1.CloudEventEnvelope) -} -CloudEventEnvelope::CloudEventEnvelope(const CloudEventEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.id().size() > 0) { - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.source().size() > 0) { - source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); - } - type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.type().size() > 0) { - type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); - } - specversion_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.specversion().size() > 0) { - specversion_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.specversion_); - } - data_content_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.data_content_type().size() > 0) { - data_content_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_content_type_); - } - topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.topic().size() > 0) { - topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_); - } - if (from.has_data()) { - data_ = new ::google::protobuf::Any(*from.data_); - } else { - data_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.daprclient.v1.CloudEventEnvelope) -} - -void CloudEventEnvelope::SharedCtor() { - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - specversion_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - data_content_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - data_ = NULL; -} - -CloudEventEnvelope::~CloudEventEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.daprclient.v1.CloudEventEnvelope) - SharedDtor(); -} - -void CloudEventEnvelope::SharedDtor() { - id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - specversion_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - data_content_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - topic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete data_; -} - -void CloudEventEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* CloudEventEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const CloudEventEnvelope& CloudEventEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_CloudEventEnvelope.base); - return *internal_default_instance(); -} - - -void CloudEventEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.daprclient.v1.CloudEventEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - specversion_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - data_content_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; - _internal_metadata_.Clear(); -} - -bool CloudEventEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.daprclient.v1.CloudEventEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.id")); - } else { - goto handle_unusual; - } - break; - } - - // string source = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->source().data(), static_cast(this->source().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.source")); - } else { - goto handle_unusual; - } - break; - } - - // string type = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type().data(), static_cast(this->type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.type")); - } else { - goto handle_unusual; - } - break; - } - - // string specVersion = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_specversion())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->specversion().data(), static_cast(this->specversion().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.specVersion")); - } else { - goto handle_unusual; - } - break; - } - - // string data_content_type = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_data_content_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->data_content_type().data(), static_cast(this->data_content_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.data_content_type")); - } else { - goto handle_unusual; - } - break; - } - - // string topic = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_topic())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic().data(), static_cast(this->topic().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.topic")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Any data = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_data())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.daprclient.v1.CloudEventEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.daprclient.v1.CloudEventEnvelope) - return false; -#undef DO_ -} - -void CloudEventEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.daprclient.v1.CloudEventEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->id(), output); - } - - // string source = 2; - if (this->source().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->source().data(), static_cast(this->source().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.source"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->source(), output); - } - - // string type = 3; - if (this->type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type().data(), static_cast(this->type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->type(), output); - } - - // string specVersion = 4; - if (this->specversion().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->specversion().data(), static_cast(this->specversion().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.specVersion"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->specversion(), output); - } - - // string data_content_type = 5; - if (this->data_content_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->data_content_type().data(), static_cast(this->data_content_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.data_content_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->data_content_type(), output); - } - - // string topic = 6; - if (this->topic().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic().data(), static_cast(this->topic().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.topic"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->topic(), output); - } - - // .google.protobuf.Any data = 7; - if (this->has_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->_internal_data(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.daprclient.v1.CloudEventEnvelope) -} - -::google::protobuf::uint8* CloudEventEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.daprclient.v1.CloudEventEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); - } - - // string source = 2; - if (this->source().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->source().data(), static_cast(this->source().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.source"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->source(), target); - } - - // string type = 3; - if (this->type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type().data(), static_cast(this->type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->type(), target); - } - - // string specVersion = 4; - if (this->specversion().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->specversion().data(), static_cast(this->specversion().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.specVersion"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->specversion(), target); - } - - // string data_content_type = 5; - if (this->data_content_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->data_content_type().data(), static_cast(this->data_content_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.data_content_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->data_content_type(), target); - } - - // string topic = 6; - if (this->topic().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topic().data(), static_cast(this->topic().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.CloudEventEnvelope.topic"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->topic(), target); - } - - // .google.protobuf.Any data = 7; - if (this->has_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, this->_internal_data(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.daprclient.v1.CloudEventEnvelope) - return target; -} - -size_t CloudEventEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.daprclient.v1.CloudEventEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // string id = 1; - if (this->id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); - } - - // string source = 2; - if (this->source().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->source()); - } - - // string type = 3; - if (this->type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->type()); - } - - // string specVersion = 4; - if (this->specversion().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->specversion()); - } - - // string data_content_type = 5; - if (this->data_content_type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->data_content_type()); - } - - // string topic = 6; - if (this->topic().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->topic()); - } - - // .google.protobuf.Any data = 7; - if (this->has_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CloudEventEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.daprclient.v1.CloudEventEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const CloudEventEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.daprclient.v1.CloudEventEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.daprclient.v1.CloudEventEnvelope) - MergeFrom(*source); - } -} - -void CloudEventEnvelope::MergeFrom(const CloudEventEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.daprclient.v1.CloudEventEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.id().size() > 0) { - - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - if (from.source().size() > 0) { - - source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); - } - if (from.type().size() > 0) { - - type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); - } - if (from.specversion().size() > 0) { - - specversion_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.specversion_); - } - if (from.data_content_type().size() > 0) { - - data_content_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_content_type_); - } - if (from.topic().size() > 0) { - - topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_); - } - if (from.has_data()) { - mutable_data()->::google::protobuf::Any::MergeFrom(from.data()); - } -} - -void CloudEventEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.daprclient.v1.CloudEventEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CloudEventEnvelope::CopyFrom(const CloudEventEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.daprclient.v1.CloudEventEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CloudEventEnvelope::IsInitialized() const { - return true; -} - -void CloudEventEnvelope::Swap(CloudEventEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void CloudEventEnvelope::InternalSwap(CloudEventEnvelope* other) { - using std::swap; - id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - source_.Swap(&other->source_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - type_.Swap(&other->type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - specversion_.Swap(&other->specversion_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - data_content_type_.Swap(&other->data_content_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - topic_.Swap(&other->topic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(data_, other->data_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata CloudEventEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -BindingEventEnvelope_MetadataEntry_DoNotUse::BindingEventEnvelope_MetadataEntry_DoNotUse() {} -BindingEventEnvelope_MetadataEntry_DoNotUse::BindingEventEnvelope_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void BindingEventEnvelope_MetadataEntry_DoNotUse::MergeFrom(const BindingEventEnvelope_MetadataEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata BindingEventEnvelope_MetadataEntry_DoNotUse::GetMetadata() const { - ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[1]; -} -void BindingEventEnvelope_MetadataEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - - -// =================================================================== - -void BindingEventEnvelope::InitAsDefaultInstance() { - ::dapr::proto::daprclient::v1::_BindingEventEnvelope_default_instance_._instance.get_mutable()->data_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); -} -void BindingEventEnvelope::clear_data() { - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BindingEventEnvelope::kNameFieldNumber; -const int BindingEventEnvelope::kDataFieldNumber; -const int BindingEventEnvelope::kMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BindingEventEnvelope::BindingEventEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_BindingEventEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.daprclient.v1.BindingEventEnvelope) -} -BindingEventEnvelope::BindingEventEnvelope(const BindingEventEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - metadata_.MergeFrom(from.metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_data()) { - data_ = new ::google::protobuf::Any(*from.data_); - } else { - data_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.daprclient.v1.BindingEventEnvelope) -} - -void BindingEventEnvelope::SharedCtor() { - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - data_ = NULL; -} - -BindingEventEnvelope::~BindingEventEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.daprclient.v1.BindingEventEnvelope) - SharedDtor(); -} - -void BindingEventEnvelope::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete data_; -} - -void BindingEventEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* BindingEventEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const BindingEventEnvelope& BindingEventEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_BindingEventEnvelope.base); - return *internal_default_instance(); -} - - -void BindingEventEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.daprclient.v1.BindingEventEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metadata_.Clear(); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; - _internal_metadata_.Clear(); -} - -bool BindingEventEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.daprclient.v1.BindingEventEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.BindingEventEnvelope.name")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Any data = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_data())); - } else { - goto handle_unusual; - } - break; - } - - // map metadata = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - BindingEventEnvelope_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - BindingEventEnvelope_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.BindingEventEnvelope.MetadataEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.BindingEventEnvelope.MetadataEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.daprclient.v1.BindingEventEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.daprclient.v1.BindingEventEnvelope) - return false; -#undef DO_ -} - -void BindingEventEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.daprclient.v1.BindingEventEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.BindingEventEnvelope.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // .google.protobuf.Any data = 2; - if (this->has_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->_internal_data(), output); - } - - // map metadata = 3; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.BindingEventEnvelope.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.BindingEventEnvelope.MetadataEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *entry, output); - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *entry, output); - Utf8Check::Check(&*it); - } - } - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.daprclient.v1.BindingEventEnvelope) -} - -::google::protobuf::uint8* BindingEventEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.daprclient.v1.BindingEventEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.BindingEventEnvelope.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // .google.protobuf.Any data = 2; - if (this->has_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->_internal_data(), deterministic, target); - } - - // map metadata = 3; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.BindingEventEnvelope.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.BindingEventEnvelope.MetadataEntry.value"); - } - }; - - if (deterministic && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *entry, deterministic, target); -; - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *entry, deterministic, target); -; - Utf8Check::Check(&*it); - } - } - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.daprclient.v1.BindingEventEnvelope) - return target; -} - -size_t BindingEventEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.daprclient.v1.BindingEventEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // map metadata = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->metadata_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // .google.protobuf.Any data = 2; - if (this->has_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BindingEventEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.daprclient.v1.BindingEventEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const BindingEventEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.daprclient.v1.BindingEventEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.daprclient.v1.BindingEventEnvelope) - MergeFrom(*source); - } -} - -void BindingEventEnvelope::MergeFrom(const BindingEventEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.daprclient.v1.BindingEventEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - metadata_.MergeFrom(from.metadata_); - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_data()) { - mutable_data()->::google::protobuf::Any::MergeFrom(from.data()); - } -} - -void BindingEventEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.daprclient.v1.BindingEventEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BindingEventEnvelope::CopyFrom(const BindingEventEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.daprclient.v1.BindingEventEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BindingEventEnvelope::IsInitialized() const { - return true; -} - -void BindingEventEnvelope::Swap(BindingEventEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void BindingEventEnvelope::InternalSwap(BindingEventEnvelope* other) { - using std::swap; - metadata_.Swap(&other->metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(data_, other->data_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata BindingEventEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void BindingResponseEnvelope::InitAsDefaultInstance() { - ::dapr::proto::daprclient::v1::_BindingResponseEnvelope_default_instance_._instance.get_mutable()->data_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); -} -void BindingResponseEnvelope::clear_data() { - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BindingResponseEnvelope::kDataFieldNumber; -const int BindingResponseEnvelope::kToFieldNumber; -const int BindingResponseEnvelope::kStateFieldNumber; -const int BindingResponseEnvelope::kConcurrencyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BindingResponseEnvelope::BindingResponseEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_BindingResponseEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.daprclient.v1.BindingResponseEnvelope) -} -BindingResponseEnvelope::BindingResponseEnvelope(const BindingResponseEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL), - to_(from.to_), - state_(from.state_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - concurrency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.concurrency().size() > 0) { - concurrency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.concurrency_); - } - if (from.has_data()) { - data_ = new ::google::protobuf::Any(*from.data_); - } else { - data_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.daprclient.v1.BindingResponseEnvelope) -} - -void BindingResponseEnvelope::SharedCtor() { - concurrency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - data_ = NULL; -} - -BindingResponseEnvelope::~BindingResponseEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.daprclient.v1.BindingResponseEnvelope) - SharedDtor(); -} - -void BindingResponseEnvelope::SharedDtor() { - concurrency_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete data_; -} - -void BindingResponseEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* BindingResponseEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const BindingResponseEnvelope& BindingResponseEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_BindingResponseEnvelope.base); - return *internal_default_instance(); -} - - -void BindingResponseEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.daprclient.v1.BindingResponseEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - to_.Clear(); - state_.Clear(); - concurrency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && data_ != NULL) { - delete data_; - } - data_ = NULL; - _internal_metadata_.Clear(); -} - -bool BindingResponseEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.daprclient.v1.BindingResponseEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .google.protobuf.Any data = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_data())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string to = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_to())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->to(this->to_size() - 1).data(), - static_cast(this->to(this->to_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.BindingResponseEnvelope.to")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .dapr.proto.daprclient.v1.State state = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_state())); - } else { - goto handle_unusual; - } - break; - } - - // string concurrency = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_concurrency())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->concurrency().data(), static_cast(this->concurrency().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.BindingResponseEnvelope.concurrency")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.daprclient.v1.BindingResponseEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.daprclient.v1.BindingResponseEnvelope) - return false; -#undef DO_ -} - -void BindingResponseEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.daprclient.v1.BindingResponseEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Any data = 1; - if (this->has_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->_internal_data(), output); - } - - // repeated string to = 2; - for (int i = 0, n = this->to_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->to(i).data(), static_cast(this->to(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.BindingResponseEnvelope.to"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->to(i), output); - } - - // repeated .dapr.proto.daprclient.v1.State state = 3; - for (unsigned int i = 0, - n = static_cast(this->state_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->state(static_cast(i)), - output); - } - - // string concurrency = 4; - if (this->concurrency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->concurrency().data(), static_cast(this->concurrency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.BindingResponseEnvelope.concurrency"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->concurrency(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.daprclient.v1.BindingResponseEnvelope) -} - -::google::protobuf::uint8* BindingResponseEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.daprclient.v1.BindingResponseEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Any data = 1; - if (this->has_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->_internal_data(), deterministic, target); - } - - // repeated string to = 2; - for (int i = 0, n = this->to_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->to(i).data(), static_cast(this->to(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.BindingResponseEnvelope.to"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->to(i), target); - } - - // repeated .dapr.proto.daprclient.v1.State state = 3; - for (unsigned int i = 0, - n = static_cast(this->state_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->state(static_cast(i)), deterministic, target); - } - - // string concurrency = 4; - if (this->concurrency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->concurrency().data(), static_cast(this->concurrency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.BindingResponseEnvelope.concurrency"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->concurrency(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.daprclient.v1.BindingResponseEnvelope) - return target; -} - -size_t BindingResponseEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.daprclient.v1.BindingResponseEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // repeated string to = 2; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->to_size()); - for (int i = 0, n = this->to_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->to(i)); - } - - // repeated .dapr.proto.daprclient.v1.State state = 3; - { - unsigned int count = static_cast(this->state_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->state(static_cast(i))); - } - } - - // string concurrency = 4; - if (this->concurrency().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->concurrency()); - } - - // .google.protobuf.Any data = 1; - if (this->has_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BindingResponseEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.daprclient.v1.BindingResponseEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const BindingResponseEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.daprclient.v1.BindingResponseEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.daprclient.v1.BindingResponseEnvelope) - MergeFrom(*source); - } -} - -void BindingResponseEnvelope::MergeFrom(const BindingResponseEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.daprclient.v1.BindingResponseEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - to_.MergeFrom(from.to_); - state_.MergeFrom(from.state_); - if (from.concurrency().size() > 0) { - - concurrency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.concurrency_); - } - if (from.has_data()) { - mutable_data()->::google::protobuf::Any::MergeFrom(from.data()); - } -} - -void BindingResponseEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.daprclient.v1.BindingResponseEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BindingResponseEnvelope::CopyFrom(const BindingResponseEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.daprclient.v1.BindingResponseEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BindingResponseEnvelope::IsInitialized() const { - return true; -} - -void BindingResponseEnvelope::Swap(BindingResponseEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void BindingResponseEnvelope::InternalSwap(BindingResponseEnvelope* other) { - using std::swap; - to_.InternalSwap(CastToBase(&other->to_)); - CastToBase(&state_)->InternalSwap(CastToBase(&other->state_)); - concurrency_.Swap(&other->concurrency_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(data_, other->data_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata BindingResponseEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetTopicSubscriptionsEnvelope::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetTopicSubscriptionsEnvelope::kTopicsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetTopicSubscriptionsEnvelope::GetTopicSubscriptionsEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_GetTopicSubscriptionsEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) -} -GetTopicSubscriptionsEnvelope::GetTopicSubscriptionsEnvelope(const GetTopicSubscriptionsEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL), - topics_(from.topics_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) -} - -void GetTopicSubscriptionsEnvelope::SharedCtor() { -} - -GetTopicSubscriptionsEnvelope::~GetTopicSubscriptionsEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - SharedDtor(); -} - -void GetTopicSubscriptionsEnvelope::SharedDtor() { -} - -void GetTopicSubscriptionsEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* GetTopicSubscriptionsEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const GetTopicSubscriptionsEnvelope& GetTopicSubscriptionsEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_GetTopicSubscriptionsEnvelope.base); - return *internal_default_instance(); -} - - -void GetTopicSubscriptionsEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - topics_.Clear(); - _internal_metadata_.Clear(); -} - -bool GetTopicSubscriptionsEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string topics = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_topics())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topics(this->topics_size() - 1).data(), - static_cast(this->topics(this->topics_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - return false; -#undef DO_ -} - -void GetTopicSubscriptionsEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string topics = 1; - for (int i = 0, n = this->topics_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topics(i).data(), static_cast(this->topics(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->topics(i), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) -} - -::google::protobuf::uint8* GetTopicSubscriptionsEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string topics = 1; - for (int i = 0, n = this->topics_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topics(i).data(), static_cast(this->topics(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->topics(i), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - return target; -} - -size_t GetTopicSubscriptionsEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // repeated string topics = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->topics_size()); - for (int i = 0, n = this->topics_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->topics(i)); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetTopicSubscriptionsEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const GetTopicSubscriptionsEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - MergeFrom(*source); - } -} - -void GetTopicSubscriptionsEnvelope::MergeFrom(const GetTopicSubscriptionsEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - topics_.MergeFrom(from.topics_); -} - -void GetTopicSubscriptionsEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetTopicSubscriptionsEnvelope::CopyFrom(const GetTopicSubscriptionsEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetTopicSubscriptionsEnvelope::IsInitialized() const { - return true; -} - -void GetTopicSubscriptionsEnvelope::Swap(GetTopicSubscriptionsEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void GetTopicSubscriptionsEnvelope::InternalSwap(GetTopicSubscriptionsEnvelope* other) { - using std::swap; - topics_.InternalSwap(CastToBase(&other->topics_)); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata GetTopicSubscriptionsEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetBindingsSubscriptionsEnvelope::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetBindingsSubscriptionsEnvelope::kBindingsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetBindingsSubscriptionsEnvelope::GetBindingsSubscriptionsEnvelope() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_GetBindingsSubscriptionsEnvelope.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) -} -GetBindingsSubscriptionsEnvelope::GetBindingsSubscriptionsEnvelope(const GetBindingsSubscriptionsEnvelope& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL), - bindings_(from.bindings_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) -} - -void GetBindingsSubscriptionsEnvelope::SharedCtor() { -} - -GetBindingsSubscriptionsEnvelope::~GetBindingsSubscriptionsEnvelope() { - // @@protoc_insertion_point(destructor:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - SharedDtor(); -} - -void GetBindingsSubscriptionsEnvelope::SharedDtor() { -} - -void GetBindingsSubscriptionsEnvelope::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* GetBindingsSubscriptionsEnvelope::descriptor() { - ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const GetBindingsSubscriptionsEnvelope& GetBindingsSubscriptionsEnvelope::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_GetBindingsSubscriptionsEnvelope.base); - return *internal_default_instance(); -} - - -void GetBindingsSubscriptionsEnvelope::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - bindings_.Clear(); - _internal_metadata_.Clear(); -} - -bool GetBindingsSubscriptionsEnvelope::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string bindings = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_bindings())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->bindings(this->bindings_size() - 1).data(), - static_cast(this->bindings(this->bindings_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - return false; -#undef DO_ -} - -void GetBindingsSubscriptionsEnvelope::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string bindings = 1; - for (int i = 0, n = this->bindings_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->bindings(i).data(), static_cast(this->bindings(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->bindings(i), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) -} - -::google::protobuf::uint8* GetBindingsSubscriptionsEnvelope::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string bindings = 1; - for (int i = 0, n = this->bindings_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->bindings(i).data(), static_cast(this->bindings(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->bindings(i), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - return target; -} - -size_t GetBindingsSubscriptionsEnvelope::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // repeated string bindings = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->bindings_size()); - for (int i = 0, n = this->bindings_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->bindings(i)); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetBindingsSubscriptionsEnvelope::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - GOOGLE_DCHECK_NE(&from, this); - const GetBindingsSubscriptionsEnvelope* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - MergeFrom(*source); - } -} - -void GetBindingsSubscriptionsEnvelope::MergeFrom(const GetBindingsSubscriptionsEnvelope& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - bindings_.MergeFrom(from.bindings_); -} - -void GetBindingsSubscriptionsEnvelope::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetBindingsSubscriptionsEnvelope::CopyFrom(const GetBindingsSubscriptionsEnvelope& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetBindingsSubscriptionsEnvelope::IsInitialized() const { - return true; -} - -void GetBindingsSubscriptionsEnvelope::Swap(GetBindingsSubscriptionsEnvelope* other) { - if (other == this) return; - InternalSwap(other); -} -void GetBindingsSubscriptionsEnvelope::InternalSwap(GetBindingsSubscriptionsEnvelope* other) { - using std::swap; - bindings_.InternalSwap(CastToBase(&other->bindings_)); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata GetBindingsSubscriptionsEnvelope::GetMetadata() const { - protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -State_MetadataEntry_DoNotUse::State_MetadataEntry_DoNotUse() {} -State_MetadataEntry_DoNotUse::State_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void State_MetadataEntry_DoNotUse::MergeFrom(const State_MetadataEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata State_MetadataEntry_DoNotUse::GetMetadata() const { - ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[6]; -} -void State_MetadataEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - - -// =================================================================== - -void State::InitAsDefaultInstance() { - ::dapr::proto::daprclient::v1::_State_default_instance_._instance.get_mutable()->value_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); - ::dapr::proto::daprclient::v1::_State_default_instance_._instance.get_mutable()->options_ = const_cast< ::dapr::proto::daprclient::v1::StateOptions*>( - ::dapr::proto::daprclient::v1::StateOptions::internal_default_instance()); -} -void State::clear_value() { - if (GetArenaNoVirtual() == NULL && value_ != NULL) { - delete value_; - } - value_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int State::kKeyFieldNumber; -const int State::kValueFieldNumber; -const int State::kEtagFieldNumber; -const int State::kMetadataFieldNumber; -const int State::kOptionsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -State::State() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_State.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.daprclient.v1.State) -} -State::State(const State& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - metadata_.MergeFrom(from.metadata_); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.etag().size() > 0) { - etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); - } - if (from.has_value()) { - value_ = new ::google::protobuf::Any(*from.value_); - } else { - value_ = NULL; - } - if (from.has_options()) { - options_ = new ::dapr::proto::daprclient::v1::StateOptions(*from.options_); - } else { - options_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.daprclient.v1.State) -} - -void State::SharedCtor() { - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&value_, 0, static_cast( - reinterpret_cast(&options_) - - reinterpret_cast(&value_)) + sizeof(options_)); -} - -State::~State() { - // @@protoc_insertion_point(destructor:dapr.proto.daprclient.v1.State) - SharedDtor(); -} - -void State::SharedDtor() { - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete value_; - if (this != internal_default_instance()) delete options_; -} - -void State::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* State::descriptor() { - ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const State& State::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_State.base); - return *internal_default_instance(); -} - - -void State::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.daprclient.v1.State) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metadata_.Clear(); - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && value_ != NULL) { - delete value_; - } - value_ = NULL; - if (GetArenaNoVirtual() == NULL && options_ != NULL) { - delete options_; - } - options_ = NULL; - _internal_metadata_.Clear(); -} - -bool State::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.daprclient.v1.State) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string key = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.State.key")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Any value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_value())); - } else { - goto handle_unusual; - } - break; - } - - // string etag = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_etag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.State.etag")); - } else { - goto handle_unusual; - } - break; - } - - // map metadata = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { - State_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - State_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.State.MetadataEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.State.MetadataEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // .dapr.proto.daprclient.v1.StateOptions options = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_options())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.daprclient.v1.State) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.daprclient.v1.State) - return false; -#undef DO_ -} - -void State::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.daprclient.v1.State) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.State.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); - } - - // .google.protobuf.Any value = 2; - if (this->has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->_internal_value(), output); - } - - // string etag = 3; - if (this->etag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.State.etag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->etag(), output); - } - - // map metadata = 4; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.State.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.State.MetadataEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *entry, output); - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *entry, output); - Utf8Check::Check(&*it); - } - } - } - - // .dapr.proto.daprclient.v1.StateOptions options = 5; - if (this->has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->_internal_options(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.daprclient.v1.State) -} - -::google::protobuf::uint8* State::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.daprclient.v1.State) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.State.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), target); - } - - // .google.protobuf.Any value = 2; - if (this->has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->_internal_value(), deterministic, target); - } - - // string etag = 3; - if (this->etag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->etag().data(), static_cast(this->etag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.State.etag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->etag(), target); - } - - // map metadata = 4; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.State.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.State.MetadataEntry.value"); - } - }; - - if (deterministic && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper( - items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *entry, deterministic, target); -; - Utf8Check::Check(items[static_cast(i)]); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper( - it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *entry, deterministic, target); -; - Utf8Check::Check(&*it); - } - } - } - - // .dapr.proto.daprclient.v1.StateOptions options = 5; - if (this->has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->_internal_options(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.daprclient.v1.State) - return target; -} - -size_t State::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.daprclient.v1.State) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // map metadata = 4; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->metadata_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // string etag = 3; - if (this->etag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->etag()); - } - - // .google.protobuf.Any value = 2; - if (this->has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_); - } - - // .dapr.proto.daprclient.v1.StateOptions options = 5; - if (this->has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *options_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void State::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.daprclient.v1.State) - GOOGLE_DCHECK_NE(&from, this); - const State* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.daprclient.v1.State) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.daprclient.v1.State) - MergeFrom(*source); - } -} - -void State::MergeFrom(const State& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.daprclient.v1.State) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - metadata_.MergeFrom(from.metadata_); - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.etag().size() > 0) { - - etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); - } - if (from.has_value()) { - mutable_value()->::google::protobuf::Any::MergeFrom(from.value()); - } - if (from.has_options()) { - mutable_options()->::dapr::proto::daprclient::v1::StateOptions::MergeFrom(from.options()); - } -} - -void State::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.daprclient.v1.State) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void State::CopyFrom(const State& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.daprclient.v1.State) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool State::IsInitialized() const { - return true; -} - -void State::Swap(State* other) { - if (other == this) return; - InternalSwap(other); -} -void State::InternalSwap(State* other) { - using std::swap; - metadata_.Swap(&other->metadata_); - key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - etag_.Swap(&other->etag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(value_, other->value_); - swap(options_, other->options_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata State::GetMetadata() const { - protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void StateOptions::InitAsDefaultInstance() { - ::dapr::proto::daprclient::v1::_StateOptions_default_instance_._instance.get_mutable()->retry_policy_ = const_cast< ::dapr::proto::daprclient::v1::RetryPolicy*>( - ::dapr::proto::daprclient::v1::RetryPolicy::internal_default_instance()); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StateOptions::kConcurrencyFieldNumber; -const int StateOptions::kConsistencyFieldNumber; -const int StateOptions::kRetryPolicyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StateOptions::StateOptions() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_StateOptions.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.daprclient.v1.StateOptions) -} -StateOptions::StateOptions(const StateOptions& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - concurrency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.concurrency().size() > 0) { - concurrency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.concurrency_); - } - consistency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.consistency().size() > 0) { - consistency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.consistency_); - } - if (from.has_retry_policy()) { - retry_policy_ = new ::dapr::proto::daprclient::v1::RetryPolicy(*from.retry_policy_); - } else { - retry_policy_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:dapr.proto.daprclient.v1.StateOptions) -} - -void StateOptions::SharedCtor() { - concurrency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - consistency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - retry_policy_ = NULL; -} - -StateOptions::~StateOptions() { - // @@protoc_insertion_point(destructor:dapr.proto.daprclient.v1.StateOptions) - SharedDtor(); -} - -void StateOptions::SharedDtor() { - concurrency_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - consistency_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete retry_policy_; -} - -void StateOptions::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* StateOptions::descriptor() { - ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const StateOptions& StateOptions::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_StateOptions.base); - return *internal_default_instance(); -} - - -void StateOptions::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.daprclient.v1.StateOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - concurrency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - consistency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && retry_policy_ != NULL) { - delete retry_policy_; - } - retry_policy_ = NULL; - _internal_metadata_.Clear(); -} - -bool StateOptions::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.daprclient.v1.StateOptions) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string concurrency = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_concurrency())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->concurrency().data(), static_cast(this->concurrency().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.StateOptions.concurrency")); - } else { - goto handle_unusual; - } - break; - } - - // string consistency = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_consistency())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->consistency().data(), static_cast(this->consistency().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.StateOptions.consistency")); - } else { - goto handle_unusual; - } - break; - } - - // .dapr.proto.daprclient.v1.RetryPolicy retry_policy = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_retry_policy())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.daprclient.v1.StateOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.daprclient.v1.StateOptions) - return false; -#undef DO_ -} - -void StateOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.daprclient.v1.StateOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string concurrency = 1; - if (this->concurrency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->concurrency().data(), static_cast(this->concurrency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.StateOptions.concurrency"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->concurrency(), output); - } - - // string consistency = 2; - if (this->consistency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->consistency().data(), static_cast(this->consistency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.StateOptions.consistency"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->consistency(), output); - } - - // .dapr.proto.daprclient.v1.RetryPolicy retry_policy = 3; - if (this->has_retry_policy()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->_internal_retry_policy(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.daprclient.v1.StateOptions) -} - -::google::protobuf::uint8* StateOptions::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.daprclient.v1.StateOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string concurrency = 1; - if (this->concurrency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->concurrency().data(), static_cast(this->concurrency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.StateOptions.concurrency"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->concurrency(), target); - } - - // string consistency = 2; - if (this->consistency().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->consistency().data(), static_cast(this->consistency().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.StateOptions.consistency"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->consistency(), target); - } - - // .dapr.proto.daprclient.v1.RetryPolicy retry_policy = 3; - if (this->has_retry_policy()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->_internal_retry_policy(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.daprclient.v1.StateOptions) - return target; -} - -size_t StateOptions::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.daprclient.v1.StateOptions) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // string concurrency = 1; - if (this->concurrency().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->concurrency()); - } - - // string consistency = 2; - if (this->consistency().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->consistency()); - } - - // .dapr.proto.daprclient.v1.RetryPolicy retry_policy = 3; - if (this->has_retry_policy()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *retry_policy_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StateOptions::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.daprclient.v1.StateOptions) - GOOGLE_DCHECK_NE(&from, this); - const StateOptions* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.daprclient.v1.StateOptions) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.daprclient.v1.StateOptions) - MergeFrom(*source); - } -} - -void StateOptions::MergeFrom(const StateOptions& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.daprclient.v1.StateOptions) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.concurrency().size() > 0) { - - concurrency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.concurrency_); - } - if (from.consistency().size() > 0) { - - consistency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.consistency_); - } - if (from.has_retry_policy()) { - mutable_retry_policy()->::dapr::proto::daprclient::v1::RetryPolicy::MergeFrom(from.retry_policy()); - } -} - -void StateOptions::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.daprclient.v1.StateOptions) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StateOptions::CopyFrom(const StateOptions& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.daprclient.v1.StateOptions) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StateOptions::IsInitialized() const { - return true; -} - -void StateOptions::Swap(StateOptions* other) { - if (other == this) return; - InternalSwap(other); -} -void StateOptions::InternalSwap(StateOptions* other) { - using std::swap; - concurrency_.Swap(&other->concurrency_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - consistency_.Swap(&other->consistency_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(retry_policy_, other->retry_policy_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata StateOptions::GetMetadata() const { - protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void RetryPolicy::InitAsDefaultInstance() { - ::dapr::proto::daprclient::v1::_RetryPolicy_default_instance_._instance.get_mutable()->interval_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); -} -void RetryPolicy::clear_interval() { - if (GetArenaNoVirtual() == NULL && interval_ != NULL) { - delete interval_; - } - interval_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RetryPolicy::kThresholdFieldNumber; -const int RetryPolicy::kPatternFieldNumber; -const int RetryPolicy::kIntervalFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RetryPolicy::RetryPolicy() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_RetryPolicy.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:dapr.proto.daprclient.v1.RetryPolicy) -} -RetryPolicy::RetryPolicy(const RetryPolicy& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - pattern_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.pattern().size() > 0) { - pattern_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pattern_); - } - if (from.has_interval()) { - interval_ = new ::google::protobuf::Duration(*from.interval_); - } else { - interval_ = NULL; - } - threshold_ = from.threshold_; - // @@protoc_insertion_point(copy_constructor:dapr.proto.daprclient.v1.RetryPolicy) -} - -void RetryPolicy::SharedCtor() { - pattern_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&interval_, 0, static_cast( - reinterpret_cast(&threshold_) - - reinterpret_cast(&interval_)) + sizeof(threshold_)); -} - -RetryPolicy::~RetryPolicy() { - // @@protoc_insertion_point(destructor:dapr.proto.daprclient.v1.RetryPolicy) - SharedDtor(); -} - -void RetryPolicy::SharedDtor() { - pattern_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete interval_; -} - -void RetryPolicy::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* RetryPolicy::descriptor() { - ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const RetryPolicy& RetryPolicy::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::scc_info_RetryPolicy.base); - return *internal_default_instance(); -} - - -void RetryPolicy::Clear() { -// @@protoc_insertion_point(message_clear_start:dapr.proto.daprclient.v1.RetryPolicy) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - pattern_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == NULL && interval_ != NULL) { - delete interval_; - } - interval_ = NULL; - threshold_ = 0; - _internal_metadata_.Clear(); -} - -bool RetryPolicy::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:dapr.proto.daprclient.v1.RetryPolicy) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int32 threshold = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &threshold_))); - } else { - goto handle_unusual; - } - break; - } - - // string pattern = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_pattern())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->pattern().data(), static_cast(this->pattern().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "dapr.proto.daprclient.v1.RetryPolicy.pattern")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration interval = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_interval())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:dapr.proto.daprclient.v1.RetryPolicy) - return true; -failure: - // @@protoc_insertion_point(parse_failure:dapr.proto.daprclient.v1.RetryPolicy) - return false; -#undef DO_ -} - -void RetryPolicy::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:dapr.proto.daprclient.v1.RetryPolicy) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 threshold = 1; - if (this->threshold() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->threshold(), output); - } - - // string pattern = 2; - if (this->pattern().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->pattern().data(), static_cast(this->pattern().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.RetryPolicy.pattern"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->pattern(), output); - } - - // .google.protobuf.Duration interval = 3; - if (this->has_interval()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->_internal_interval(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:dapr.proto.daprclient.v1.RetryPolicy) -} - -::google::protobuf::uint8* RetryPolicy::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.daprclient.v1.RetryPolicy) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 threshold = 1; - if (this->threshold() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->threshold(), target); - } - - // string pattern = 2; - if (this->pattern().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->pattern().data(), static_cast(this->pattern().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "dapr.proto.daprclient.v1.RetryPolicy.pattern"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->pattern(), target); - } - - // .google.protobuf.Duration interval = 3; - if (this->has_interval()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->_internal_interval(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.daprclient.v1.RetryPolicy) - return target; -} - -size_t RetryPolicy::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:dapr.proto.daprclient.v1.RetryPolicy) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // string pattern = 2; - if (this->pattern().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->pattern()); - } - - // .google.protobuf.Duration interval = 3; - if (this->has_interval()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *interval_); - } - - // int32 threshold = 1; - if (this->threshold() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->threshold()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RetryPolicy::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.daprclient.v1.RetryPolicy) - GOOGLE_DCHECK_NE(&from, this); - const RetryPolicy* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.daprclient.v1.RetryPolicy) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.daprclient.v1.RetryPolicy) - MergeFrom(*source); - } -} - -void RetryPolicy::MergeFrom(const RetryPolicy& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.daprclient.v1.RetryPolicy) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.pattern().size() > 0) { - - pattern_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pattern_); - } - if (from.has_interval()) { - mutable_interval()->::google::protobuf::Duration::MergeFrom(from.interval()); - } - if (from.threshold() != 0) { - set_threshold(from.threshold()); - } -} - -void RetryPolicy::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.daprclient.v1.RetryPolicy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RetryPolicy::CopyFrom(const RetryPolicy& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.daprclient.v1.RetryPolicy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RetryPolicy::IsInitialized() const { - return true; -} - -void RetryPolicy::Swap(RetryPolicy* other) { - if (other == this) return; - InternalSwap(other); -} -void RetryPolicy::InternalSwap(RetryPolicy* other) { - using std::swap; - pattern_.Swap(&other->pattern_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(interval_, other->interval_); - swap(threshold_, other->threshold_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata RetryPolicy::GetMetadata() const { - protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace v1 -} // namespace daprclient -} // namespace proto -} // namespace dapr -namespace google { -namespace protobuf { -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::daprclient::v1::CloudEventEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::daprclient::v1::CloudEventEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::daprclient::v1::CloudEventEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::daprclient::v1::BindingEventEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::daprclient::v1::BindingEventEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::daprclient::v1::BindingEventEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::daprclient::v1::BindingResponseEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::daprclient::v1::BindingResponseEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::daprclient::v1::BindingResponseEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* Arena::CreateMaybeMessage< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::daprclient::v1::State* Arena::CreateMaybeMessage< ::dapr::proto::daprclient::v1::State >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::daprclient::v1::State >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::daprclient::v1::StateOptions* Arena::CreateMaybeMessage< ::dapr::proto::daprclient::v1::StateOptions >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::daprclient::v1::StateOptions >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::daprclient::v1::RetryPolicy* Arena::CreateMaybeMessage< ::dapr::proto::daprclient::v1::RetryPolicy >(Arena* arena) { - return Arena::CreateInternal< ::dapr::proto::daprclient::v1::RetryPolicy >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) diff --git a/src/dapr/proto/daprclient/v1/daprclient.pb.h b/src/dapr/proto/daprclient/v1/daprclient.pb.h deleted file mode 100644 index a0c46f7..0000000 --- a/src/dapr/proto/daprclient/v1/daprclient.pb.h +++ /dev/null @@ -1,2728 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dapr/proto/daprclient/v1/daprclient.proto - -#ifndef PROTOBUF_INCLUDED_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto -#define PROTOBUF_INCLUDED_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006001 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include -#include -#include "dapr/proto/common/v1/common.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto - -namespace protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[10]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto -namespace dapr { -namespace proto { -namespace daprclient { -namespace v1 { -class BindingEventEnvelope; -class BindingEventEnvelopeDefaultTypeInternal; -extern BindingEventEnvelopeDefaultTypeInternal _BindingEventEnvelope_default_instance_; -class BindingEventEnvelope_MetadataEntry_DoNotUse; -class BindingEventEnvelope_MetadataEntry_DoNotUseDefaultTypeInternal; -extern BindingEventEnvelope_MetadataEntry_DoNotUseDefaultTypeInternal _BindingEventEnvelope_MetadataEntry_DoNotUse_default_instance_; -class BindingResponseEnvelope; -class BindingResponseEnvelopeDefaultTypeInternal; -extern BindingResponseEnvelopeDefaultTypeInternal _BindingResponseEnvelope_default_instance_; -class CloudEventEnvelope; -class CloudEventEnvelopeDefaultTypeInternal; -extern CloudEventEnvelopeDefaultTypeInternal _CloudEventEnvelope_default_instance_; -class GetBindingsSubscriptionsEnvelope; -class GetBindingsSubscriptionsEnvelopeDefaultTypeInternal; -extern GetBindingsSubscriptionsEnvelopeDefaultTypeInternal _GetBindingsSubscriptionsEnvelope_default_instance_; -class GetTopicSubscriptionsEnvelope; -class GetTopicSubscriptionsEnvelopeDefaultTypeInternal; -extern GetTopicSubscriptionsEnvelopeDefaultTypeInternal _GetTopicSubscriptionsEnvelope_default_instance_; -class RetryPolicy; -class RetryPolicyDefaultTypeInternal; -extern RetryPolicyDefaultTypeInternal _RetryPolicy_default_instance_; -class State; -class StateDefaultTypeInternal; -extern StateDefaultTypeInternal _State_default_instance_; -class StateOptions; -class StateOptionsDefaultTypeInternal; -extern StateOptionsDefaultTypeInternal _StateOptions_default_instance_; -class State_MetadataEntry_DoNotUse; -class State_MetadataEntry_DoNotUseDefaultTypeInternal; -extern State_MetadataEntry_DoNotUseDefaultTypeInternal _State_MetadataEntry_DoNotUse_default_instance_; -} // namespace v1 -} // namespace daprclient -} // namespace proto -} // namespace dapr -namespace google { -namespace protobuf { -template<> ::dapr::proto::daprclient::v1::BindingEventEnvelope* Arena::CreateMaybeMessage<::dapr::proto::daprclient::v1::BindingEventEnvelope>(Arena*); -template<> ::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::daprclient::v1::BindingEventEnvelope_MetadataEntry_DoNotUse>(Arena*); -template<> ::dapr::proto::daprclient::v1::BindingResponseEnvelope* Arena::CreateMaybeMessage<::dapr::proto::daprclient::v1::BindingResponseEnvelope>(Arena*); -template<> ::dapr::proto::daprclient::v1::CloudEventEnvelope* Arena::CreateMaybeMessage<::dapr::proto::daprclient::v1::CloudEventEnvelope>(Arena*); -template<> ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* Arena::CreateMaybeMessage<::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>(Arena*); -template<> ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* Arena::CreateMaybeMessage<::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>(Arena*); -template<> ::dapr::proto::daprclient::v1::RetryPolicy* Arena::CreateMaybeMessage<::dapr::proto::daprclient::v1::RetryPolicy>(Arena*); -template<> ::dapr::proto::daprclient::v1::State* Arena::CreateMaybeMessage<::dapr::proto::daprclient::v1::State>(Arena*); -template<> ::dapr::proto::daprclient::v1::StateOptions* Arena::CreateMaybeMessage<::dapr::proto::daprclient::v1::StateOptions>(Arena*); -template<> ::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::daprclient::v1::State_MetadataEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google -namespace dapr { -namespace proto { -namespace daprclient { -namespace v1 { - -// =================================================================== - -class CloudEventEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.daprclient.v1.CloudEventEnvelope) */ { - public: - CloudEventEnvelope(); - virtual ~CloudEventEnvelope(); - - CloudEventEnvelope(const CloudEventEnvelope& from); - - inline CloudEventEnvelope& operator=(const CloudEventEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CloudEventEnvelope(CloudEventEnvelope&& from) noexcept - : CloudEventEnvelope() { - *this = ::std::move(from); - } - - inline CloudEventEnvelope& operator=(CloudEventEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const CloudEventEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CloudEventEnvelope* internal_default_instance() { - return reinterpret_cast( - &_CloudEventEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(CloudEventEnvelope* other); - friend void swap(CloudEventEnvelope& a, CloudEventEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CloudEventEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - CloudEventEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CloudEventEnvelope& from); - void MergeFrom(const CloudEventEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CloudEventEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::std::string& id() const; - void set_id(const ::std::string& value); - #if LANG_CXX11 - void set_id(::std::string&& value); - #endif - void set_id(const char* value); - void set_id(const char* value, size_t size); - ::std::string* mutable_id(); - ::std::string* release_id(); - void set_allocated_id(::std::string* id); - - // string source = 2; - void clear_source(); - static const int kSourceFieldNumber = 2; - const ::std::string& source() const; - void set_source(const ::std::string& value); - #if LANG_CXX11 - void set_source(::std::string&& value); - #endif - void set_source(const char* value); - void set_source(const char* value, size_t size); - ::std::string* mutable_source(); - ::std::string* release_source(); - void set_allocated_source(::std::string* source); - - // string type = 3; - void clear_type(); - static const int kTypeFieldNumber = 3; - const ::std::string& type() const; - void set_type(const ::std::string& value); - #if LANG_CXX11 - void set_type(::std::string&& value); - #endif - void set_type(const char* value); - void set_type(const char* value, size_t size); - ::std::string* mutable_type(); - ::std::string* release_type(); - void set_allocated_type(::std::string* type); - - // string specVersion = 4; - void clear_specversion(); - static const int kSpecVersionFieldNumber = 4; - const ::std::string& specversion() const; - void set_specversion(const ::std::string& value); - #if LANG_CXX11 - void set_specversion(::std::string&& value); - #endif - void set_specversion(const char* value); - void set_specversion(const char* value, size_t size); - ::std::string* mutable_specversion(); - ::std::string* release_specversion(); - void set_allocated_specversion(::std::string* specversion); - - // string data_content_type = 5; - void clear_data_content_type(); - static const int kDataContentTypeFieldNumber = 5; - const ::std::string& data_content_type() const; - void set_data_content_type(const ::std::string& value); - #if LANG_CXX11 - void set_data_content_type(::std::string&& value); - #endif - void set_data_content_type(const char* value); - void set_data_content_type(const char* value, size_t size); - ::std::string* mutable_data_content_type(); - ::std::string* release_data_content_type(); - void set_allocated_data_content_type(::std::string* data_content_type); - - // string topic = 6; - void clear_topic(); - static const int kTopicFieldNumber = 6; - const ::std::string& topic() const; - void set_topic(const ::std::string& value); - #if LANG_CXX11 - void set_topic(::std::string&& value); - #endif - void set_topic(const char* value); - void set_topic(const char* value, size_t size); - ::std::string* mutable_topic(); - ::std::string* release_topic(); - void set_allocated_topic(::std::string* topic); - - // .google.protobuf.Any data = 7; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 7; - private: - const ::google::protobuf::Any& _internal_data() const; - public: - const ::google::protobuf::Any& data() const; - ::google::protobuf::Any* release_data(); - ::google::protobuf::Any* mutable_data(); - void set_allocated_data(::google::protobuf::Any* data); - - // @@protoc_insertion_point(class_scope:dapr.proto.daprclient.v1.CloudEventEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr source_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr specversion_; - ::google::protobuf::internal::ArenaStringPtr data_content_type_; - ::google::protobuf::internal::ArenaStringPtr topic_; - ::google::protobuf::Any* data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class BindingEventEnvelope_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - BindingEventEnvelope_MetadataEntry_DoNotUse(); - BindingEventEnvelope_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const BindingEventEnvelope_MetadataEntry_DoNotUse& other); - static const BindingEventEnvelope_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_BindingEventEnvelope_MetadataEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class BindingEventEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.daprclient.v1.BindingEventEnvelope) */ { - public: - BindingEventEnvelope(); - virtual ~BindingEventEnvelope(); - - BindingEventEnvelope(const BindingEventEnvelope& from); - - inline BindingEventEnvelope& operator=(const BindingEventEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BindingEventEnvelope(BindingEventEnvelope&& from) noexcept - : BindingEventEnvelope() { - *this = ::std::move(from); - } - - inline BindingEventEnvelope& operator=(BindingEventEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const BindingEventEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BindingEventEnvelope* internal_default_instance() { - return reinterpret_cast( - &_BindingEventEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(BindingEventEnvelope* other); - friend void swap(BindingEventEnvelope& a, BindingEventEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BindingEventEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - BindingEventEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const BindingEventEnvelope& from); - void MergeFrom(const BindingEventEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BindingEventEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map metadata = 3; - int metadata_size() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 3; - const ::google::protobuf::Map< ::std::string, ::std::string >& - metadata() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_metadata(); - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // .google.protobuf.Any data = 2; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 2; - private: - const ::google::protobuf::Any& _internal_data() const; - public: - const ::google::protobuf::Any& data() const; - ::google::protobuf::Any* release_data(); - ::google::protobuf::Any* mutable_data(); - void set_allocated_data(::google::protobuf::Any* data); - - // @@protoc_insertion_point(class_scope:dapr.proto.daprclient.v1.BindingEventEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - BindingEventEnvelope_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Any* data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class BindingResponseEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.daprclient.v1.BindingResponseEnvelope) */ { - public: - BindingResponseEnvelope(); - virtual ~BindingResponseEnvelope(); - - BindingResponseEnvelope(const BindingResponseEnvelope& from); - - inline BindingResponseEnvelope& operator=(const BindingResponseEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BindingResponseEnvelope(BindingResponseEnvelope&& from) noexcept - : BindingResponseEnvelope() { - *this = ::std::move(from); - } - - inline BindingResponseEnvelope& operator=(BindingResponseEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const BindingResponseEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BindingResponseEnvelope* internal_default_instance() { - return reinterpret_cast( - &_BindingResponseEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(BindingResponseEnvelope* other); - friend void swap(BindingResponseEnvelope& a, BindingResponseEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BindingResponseEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - BindingResponseEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const BindingResponseEnvelope& from); - void MergeFrom(const BindingResponseEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BindingResponseEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string to = 2; - int to_size() const; - void clear_to(); - static const int kToFieldNumber = 2; - const ::std::string& to(int index) const; - ::std::string* mutable_to(int index); - void set_to(int index, const ::std::string& value); - #if LANG_CXX11 - void set_to(int index, ::std::string&& value); - #endif - void set_to(int index, const char* value); - void set_to(int index, const char* value, size_t size); - ::std::string* add_to(); - void add_to(const ::std::string& value); - #if LANG_CXX11 - void add_to(::std::string&& value); - #endif - void add_to(const char* value); - void add_to(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& to() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_to(); - - // repeated .dapr.proto.daprclient.v1.State state = 3; - int state_size() const; - void clear_state(); - static const int kStateFieldNumber = 3; - ::dapr::proto::daprclient::v1::State* mutable_state(int index); - ::google::protobuf::RepeatedPtrField< ::dapr::proto::daprclient::v1::State >* - mutable_state(); - const ::dapr::proto::daprclient::v1::State& state(int index) const; - ::dapr::proto::daprclient::v1::State* add_state(); - const ::google::protobuf::RepeatedPtrField< ::dapr::proto::daprclient::v1::State >& - state() const; - - // string concurrency = 4; - void clear_concurrency(); - static const int kConcurrencyFieldNumber = 4; - const ::std::string& concurrency() const; - void set_concurrency(const ::std::string& value); - #if LANG_CXX11 - void set_concurrency(::std::string&& value); - #endif - void set_concurrency(const char* value); - void set_concurrency(const char* value, size_t size); - ::std::string* mutable_concurrency(); - ::std::string* release_concurrency(); - void set_allocated_concurrency(::std::string* concurrency); - - // .google.protobuf.Any data = 1; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 1; - private: - const ::google::protobuf::Any& _internal_data() const; - public: - const ::google::protobuf::Any& data() const; - ::google::protobuf::Any* release_data(); - ::google::protobuf::Any* mutable_data(); - void set_allocated_data(::google::protobuf::Any* data); - - // @@protoc_insertion_point(class_scope:dapr.proto.daprclient.v1.BindingResponseEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::std::string> to_; - ::google::protobuf::RepeatedPtrField< ::dapr::proto::daprclient::v1::State > state_; - ::google::protobuf::internal::ArenaStringPtr concurrency_; - ::google::protobuf::Any* data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GetTopicSubscriptionsEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) */ { - public: - GetTopicSubscriptionsEnvelope(); - virtual ~GetTopicSubscriptionsEnvelope(); - - GetTopicSubscriptionsEnvelope(const GetTopicSubscriptionsEnvelope& from); - - inline GetTopicSubscriptionsEnvelope& operator=(const GetTopicSubscriptionsEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetTopicSubscriptionsEnvelope(GetTopicSubscriptionsEnvelope&& from) noexcept - : GetTopicSubscriptionsEnvelope() { - *this = ::std::move(from); - } - - inline GetTopicSubscriptionsEnvelope& operator=(GetTopicSubscriptionsEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const GetTopicSubscriptionsEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetTopicSubscriptionsEnvelope* internal_default_instance() { - return reinterpret_cast( - &_GetTopicSubscriptionsEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(GetTopicSubscriptionsEnvelope* other); - friend void swap(GetTopicSubscriptionsEnvelope& a, GetTopicSubscriptionsEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetTopicSubscriptionsEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - GetTopicSubscriptionsEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetTopicSubscriptionsEnvelope& from); - void MergeFrom(const GetTopicSubscriptionsEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetTopicSubscriptionsEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string topics = 1; - int topics_size() const; - void clear_topics(); - static const int kTopicsFieldNumber = 1; - const ::std::string& topics(int index) const; - ::std::string* mutable_topics(int index); - void set_topics(int index, const ::std::string& value); - #if LANG_CXX11 - void set_topics(int index, ::std::string&& value); - #endif - void set_topics(int index, const char* value); - void set_topics(int index, const char* value, size_t size); - ::std::string* add_topics(); - void add_topics(const ::std::string& value); - #if LANG_CXX11 - void add_topics(::std::string&& value); - #endif - void add_topics(const char* value); - void add_topics(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& topics() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_topics(); - - // @@protoc_insertion_point(class_scope:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::std::string> topics_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GetBindingsSubscriptionsEnvelope : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) */ { - public: - GetBindingsSubscriptionsEnvelope(); - virtual ~GetBindingsSubscriptionsEnvelope(); - - GetBindingsSubscriptionsEnvelope(const GetBindingsSubscriptionsEnvelope& from); - - inline GetBindingsSubscriptionsEnvelope& operator=(const GetBindingsSubscriptionsEnvelope& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetBindingsSubscriptionsEnvelope(GetBindingsSubscriptionsEnvelope&& from) noexcept - : GetBindingsSubscriptionsEnvelope() { - *this = ::std::move(from); - } - - inline GetBindingsSubscriptionsEnvelope& operator=(GetBindingsSubscriptionsEnvelope&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const GetBindingsSubscriptionsEnvelope& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetBindingsSubscriptionsEnvelope* internal_default_instance() { - return reinterpret_cast( - &_GetBindingsSubscriptionsEnvelope_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(GetBindingsSubscriptionsEnvelope* other); - friend void swap(GetBindingsSubscriptionsEnvelope& a, GetBindingsSubscriptionsEnvelope& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetBindingsSubscriptionsEnvelope* New() const final { - return CreateMaybeMessage(NULL); - } - - GetBindingsSubscriptionsEnvelope* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetBindingsSubscriptionsEnvelope& from); - void MergeFrom(const GetBindingsSubscriptionsEnvelope& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetBindingsSubscriptionsEnvelope* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string bindings = 1; - int bindings_size() const; - void clear_bindings(); - static const int kBindingsFieldNumber = 1; - const ::std::string& bindings(int index) const; - ::std::string* mutable_bindings(int index); - void set_bindings(int index, const ::std::string& value); - #if LANG_CXX11 - void set_bindings(int index, ::std::string&& value); - #endif - void set_bindings(int index, const char* value); - void set_bindings(int index, const char* value, size_t size); - ::std::string* add_bindings(); - void add_bindings(const ::std::string& value); - #if LANG_CXX11 - void add_bindings(::std::string&& value); - #endif - void add_bindings(const char* value); - void add_bindings(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& bindings() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_bindings(); - - // @@protoc_insertion_point(class_scope:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::std::string> bindings_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class State_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - State_MetadataEntry_DoNotUse(); - State_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const State_MetadataEntry_DoNotUse& other); - static const State_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_State_MetadataEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class State : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.daprclient.v1.State) */ { - public: - State(); - virtual ~State(); - - State(const State& from); - - inline State& operator=(const State& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - State(State&& from) noexcept - : State() { - *this = ::std::move(from); - } - - inline State& operator=(State&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const State& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const State* internal_default_instance() { - return reinterpret_cast( - &_State_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(State* other); - friend void swap(State& a, State& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline State* New() const final { - return CreateMaybeMessage(NULL); - } - - State* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const State& from); - void MergeFrom(const State& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(State* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map metadata = 4; - int metadata_size() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 4; - const ::google::protobuf::Map< ::std::string, ::std::string >& - metadata() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_metadata(); - - // string key = 1; - void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - - // string etag = 3; - void clear_etag(); - static const int kEtagFieldNumber = 3; - const ::std::string& etag() const; - void set_etag(const ::std::string& value); - #if LANG_CXX11 - void set_etag(::std::string&& value); - #endif - void set_etag(const char* value); - void set_etag(const char* value, size_t size); - ::std::string* mutable_etag(); - ::std::string* release_etag(); - void set_allocated_etag(::std::string* etag); - - // .google.protobuf.Any value = 2; - bool has_value() const; - void clear_value(); - static const int kValueFieldNumber = 2; - private: - const ::google::protobuf::Any& _internal_value() const; - public: - const ::google::protobuf::Any& value() const; - ::google::protobuf::Any* release_value(); - ::google::protobuf::Any* mutable_value(); - void set_allocated_value(::google::protobuf::Any* value); - - // .dapr.proto.daprclient.v1.StateOptions options = 5; - bool has_options() const; - void clear_options(); - static const int kOptionsFieldNumber = 5; - private: - const ::dapr::proto::daprclient::v1::StateOptions& _internal_options() const; - public: - const ::dapr::proto::daprclient::v1::StateOptions& options() const; - ::dapr::proto::daprclient::v1::StateOptions* release_options(); - ::dapr::proto::daprclient::v1::StateOptions* mutable_options(); - void set_allocated_options(::dapr::proto::daprclient::v1::StateOptions* options); - - // @@protoc_insertion_point(class_scope:dapr.proto.daprclient.v1.State) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - State_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > metadata_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr etag_; - ::google::protobuf::Any* value_; - ::dapr::proto::daprclient::v1::StateOptions* options_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class StateOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.daprclient.v1.StateOptions) */ { - public: - StateOptions(); - virtual ~StateOptions(); - - StateOptions(const StateOptions& from); - - inline StateOptions& operator=(const StateOptions& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - StateOptions(StateOptions&& from) noexcept - : StateOptions() { - *this = ::std::move(from); - } - - inline StateOptions& operator=(StateOptions&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const StateOptions& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StateOptions* internal_default_instance() { - return reinterpret_cast( - &_StateOptions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(StateOptions* other); - friend void swap(StateOptions& a, StateOptions& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline StateOptions* New() const final { - return CreateMaybeMessage(NULL); - } - - StateOptions* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const StateOptions& from); - void MergeFrom(const StateOptions& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StateOptions* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string concurrency = 1; - void clear_concurrency(); - static const int kConcurrencyFieldNumber = 1; - const ::std::string& concurrency() const; - void set_concurrency(const ::std::string& value); - #if LANG_CXX11 - void set_concurrency(::std::string&& value); - #endif - void set_concurrency(const char* value); - void set_concurrency(const char* value, size_t size); - ::std::string* mutable_concurrency(); - ::std::string* release_concurrency(); - void set_allocated_concurrency(::std::string* concurrency); - - // string consistency = 2; - void clear_consistency(); - static const int kConsistencyFieldNumber = 2; - const ::std::string& consistency() const; - void set_consistency(const ::std::string& value); - #if LANG_CXX11 - void set_consistency(::std::string&& value); - #endif - void set_consistency(const char* value); - void set_consistency(const char* value, size_t size); - ::std::string* mutable_consistency(); - ::std::string* release_consistency(); - void set_allocated_consistency(::std::string* consistency); - - // .dapr.proto.daprclient.v1.RetryPolicy retry_policy = 3; - bool has_retry_policy() const; - void clear_retry_policy(); - static const int kRetryPolicyFieldNumber = 3; - private: - const ::dapr::proto::daprclient::v1::RetryPolicy& _internal_retry_policy() const; - public: - const ::dapr::proto::daprclient::v1::RetryPolicy& retry_policy() const; - ::dapr::proto::daprclient::v1::RetryPolicy* release_retry_policy(); - ::dapr::proto::daprclient::v1::RetryPolicy* mutable_retry_policy(); - void set_allocated_retry_policy(::dapr::proto::daprclient::v1::RetryPolicy* retry_policy); - - // @@protoc_insertion_point(class_scope:dapr.proto.daprclient.v1.StateOptions) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr concurrency_; - ::google::protobuf::internal::ArenaStringPtr consistency_; - ::dapr::proto::daprclient::v1::RetryPolicy* retry_policy_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class RetryPolicy : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.daprclient.v1.RetryPolicy) */ { - public: - RetryPolicy(); - virtual ~RetryPolicy(); - - RetryPolicy(const RetryPolicy& from); - - inline RetryPolicy& operator=(const RetryPolicy& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RetryPolicy(RetryPolicy&& from) noexcept - : RetryPolicy() { - *this = ::std::move(from); - } - - inline RetryPolicy& operator=(RetryPolicy&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const RetryPolicy& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RetryPolicy* internal_default_instance() { - return reinterpret_cast( - &_RetryPolicy_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(RetryPolicy* other); - friend void swap(RetryPolicy& a, RetryPolicy& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RetryPolicy* New() const final { - return CreateMaybeMessage(NULL); - } - - RetryPolicy* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const RetryPolicy& from); - void MergeFrom(const RetryPolicy& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RetryPolicy* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string pattern = 2; - void clear_pattern(); - static const int kPatternFieldNumber = 2; - const ::std::string& pattern() const; - void set_pattern(const ::std::string& value); - #if LANG_CXX11 - void set_pattern(::std::string&& value); - #endif - void set_pattern(const char* value); - void set_pattern(const char* value, size_t size); - ::std::string* mutable_pattern(); - ::std::string* release_pattern(); - void set_allocated_pattern(::std::string* pattern); - - // .google.protobuf.Duration interval = 3; - bool has_interval() const; - void clear_interval(); - static const int kIntervalFieldNumber = 3; - private: - const ::google::protobuf::Duration& _internal_interval() const; - public: - const ::google::protobuf::Duration& interval() const; - ::google::protobuf::Duration* release_interval(); - ::google::protobuf::Duration* mutable_interval(); - void set_allocated_interval(::google::protobuf::Duration* interval); - - // int32 threshold = 1; - void clear_threshold(); - static const int kThresholdFieldNumber = 1; - ::google::protobuf::int32 threshold() const; - void set_threshold(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:dapr.proto.daprclient.v1.RetryPolicy) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr pattern_; - ::google::protobuf::Duration* interval_; - ::google::protobuf::int32 threshold_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// CloudEventEnvelope - -// string id = 1; -inline void CloudEventEnvelope::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CloudEventEnvelope::id() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.CloudEventEnvelope.id) - return id_.GetNoArena(); -} -inline void CloudEventEnvelope::set_id(const ::std::string& value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.CloudEventEnvelope.id) -} -#if LANG_CXX11 -inline void CloudEventEnvelope::set_id(::std::string&& value) { - - id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.CloudEventEnvelope.id) -} -#endif -inline void CloudEventEnvelope::set_id(const char* value) { - GOOGLE_DCHECK(value != NULL); - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.CloudEventEnvelope.id) -} -inline void CloudEventEnvelope::set_id(const char* value, size_t size) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.CloudEventEnvelope.id) -} -inline ::std::string* CloudEventEnvelope::mutable_id() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.CloudEventEnvelope.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CloudEventEnvelope::release_id() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.CloudEventEnvelope.id) - - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CloudEventEnvelope::set_allocated_id(::std::string* id) { - if (id != NULL) { - - } else { - - } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.CloudEventEnvelope.id) -} - -// string source = 2; -inline void CloudEventEnvelope::clear_source() { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CloudEventEnvelope::source() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.CloudEventEnvelope.source) - return source_.GetNoArena(); -} -inline void CloudEventEnvelope::set_source(const ::std::string& value) { - - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.CloudEventEnvelope.source) -} -#if LANG_CXX11 -inline void CloudEventEnvelope::set_source(::std::string&& value) { - - source_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.CloudEventEnvelope.source) -} -#endif -inline void CloudEventEnvelope::set_source(const char* value) { - GOOGLE_DCHECK(value != NULL); - - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.CloudEventEnvelope.source) -} -inline void CloudEventEnvelope::set_source(const char* value, size_t size) { - - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.CloudEventEnvelope.source) -} -inline ::std::string* CloudEventEnvelope::mutable_source() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.CloudEventEnvelope.source) - return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CloudEventEnvelope::release_source() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.CloudEventEnvelope.source) - - return source_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CloudEventEnvelope::set_allocated_source(::std::string* source) { - if (source != NULL) { - - } else { - - } - source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.CloudEventEnvelope.source) -} - -// string type = 3; -inline void CloudEventEnvelope::clear_type() { - type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CloudEventEnvelope::type() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.CloudEventEnvelope.type) - return type_.GetNoArena(); -} -inline void CloudEventEnvelope::set_type(const ::std::string& value) { - - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.CloudEventEnvelope.type) -} -#if LANG_CXX11 -inline void CloudEventEnvelope::set_type(::std::string&& value) { - - type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.CloudEventEnvelope.type) -} -#endif -inline void CloudEventEnvelope::set_type(const char* value) { - GOOGLE_DCHECK(value != NULL); - - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.CloudEventEnvelope.type) -} -inline void CloudEventEnvelope::set_type(const char* value, size_t size) { - - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.CloudEventEnvelope.type) -} -inline ::std::string* CloudEventEnvelope::mutable_type() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.CloudEventEnvelope.type) - return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CloudEventEnvelope::release_type() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.CloudEventEnvelope.type) - - return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CloudEventEnvelope::set_allocated_type(::std::string* type) { - if (type != NULL) { - - } else { - - } - type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.CloudEventEnvelope.type) -} - -// string specVersion = 4; -inline void CloudEventEnvelope::clear_specversion() { - specversion_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CloudEventEnvelope::specversion() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.CloudEventEnvelope.specVersion) - return specversion_.GetNoArena(); -} -inline void CloudEventEnvelope::set_specversion(const ::std::string& value) { - - specversion_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.CloudEventEnvelope.specVersion) -} -#if LANG_CXX11 -inline void CloudEventEnvelope::set_specversion(::std::string&& value) { - - specversion_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.CloudEventEnvelope.specVersion) -} -#endif -inline void CloudEventEnvelope::set_specversion(const char* value) { - GOOGLE_DCHECK(value != NULL); - - specversion_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.CloudEventEnvelope.specVersion) -} -inline void CloudEventEnvelope::set_specversion(const char* value, size_t size) { - - specversion_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.CloudEventEnvelope.specVersion) -} -inline ::std::string* CloudEventEnvelope::mutable_specversion() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.CloudEventEnvelope.specVersion) - return specversion_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CloudEventEnvelope::release_specversion() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.CloudEventEnvelope.specVersion) - - return specversion_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CloudEventEnvelope::set_allocated_specversion(::std::string* specversion) { - if (specversion != NULL) { - - } else { - - } - specversion_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), specversion); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.CloudEventEnvelope.specVersion) -} - -// string data_content_type = 5; -inline void CloudEventEnvelope::clear_data_content_type() { - data_content_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CloudEventEnvelope::data_content_type() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.CloudEventEnvelope.data_content_type) - return data_content_type_.GetNoArena(); -} -inline void CloudEventEnvelope::set_data_content_type(const ::std::string& value) { - - data_content_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.CloudEventEnvelope.data_content_type) -} -#if LANG_CXX11 -inline void CloudEventEnvelope::set_data_content_type(::std::string&& value) { - - data_content_type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.CloudEventEnvelope.data_content_type) -} -#endif -inline void CloudEventEnvelope::set_data_content_type(const char* value) { - GOOGLE_DCHECK(value != NULL); - - data_content_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.CloudEventEnvelope.data_content_type) -} -inline void CloudEventEnvelope::set_data_content_type(const char* value, size_t size) { - - data_content_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.CloudEventEnvelope.data_content_type) -} -inline ::std::string* CloudEventEnvelope::mutable_data_content_type() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.CloudEventEnvelope.data_content_type) - return data_content_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CloudEventEnvelope::release_data_content_type() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.CloudEventEnvelope.data_content_type) - - return data_content_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CloudEventEnvelope::set_allocated_data_content_type(::std::string* data_content_type) { - if (data_content_type != NULL) { - - } else { - - } - data_content_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_content_type); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.CloudEventEnvelope.data_content_type) -} - -// string topic = 6; -inline void CloudEventEnvelope::clear_topic() { - topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CloudEventEnvelope::topic() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.CloudEventEnvelope.topic) - return topic_.GetNoArena(); -} -inline void CloudEventEnvelope::set_topic(const ::std::string& value) { - - topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.CloudEventEnvelope.topic) -} -#if LANG_CXX11 -inline void CloudEventEnvelope::set_topic(::std::string&& value) { - - topic_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.CloudEventEnvelope.topic) -} -#endif -inline void CloudEventEnvelope::set_topic(const char* value) { - GOOGLE_DCHECK(value != NULL); - - topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.CloudEventEnvelope.topic) -} -inline void CloudEventEnvelope::set_topic(const char* value, size_t size) { - - topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.CloudEventEnvelope.topic) -} -inline ::std::string* CloudEventEnvelope::mutable_topic() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.CloudEventEnvelope.topic) - return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CloudEventEnvelope::release_topic() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.CloudEventEnvelope.topic) - - return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CloudEventEnvelope::set_allocated_topic(::std::string* topic) { - if (topic != NULL) { - - } else { - - } - topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.CloudEventEnvelope.topic) -} - -// .google.protobuf.Any data = 7; -inline bool CloudEventEnvelope::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::google::protobuf::Any& CloudEventEnvelope::_internal_data() const { - return *data_; -} -inline const ::google::protobuf::Any& CloudEventEnvelope::data() const { - const ::google::protobuf::Any* p = data_; - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.CloudEventEnvelope.data) - return p != NULL ? *p : *reinterpret_cast( - &::google::protobuf::_Any_default_instance_); -} -inline ::google::protobuf::Any* CloudEventEnvelope::release_data() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.CloudEventEnvelope.data) - - ::google::protobuf::Any* temp = data_; - data_ = NULL; - return temp; -} -inline ::google::protobuf::Any* CloudEventEnvelope::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.CloudEventEnvelope.data) - return data_; -} -inline void CloudEventEnvelope::set_allocated_data(::google::protobuf::Any* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.CloudEventEnvelope.data) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// BindingEventEnvelope - -// string name = 1; -inline void BindingEventEnvelope::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& BindingEventEnvelope::name() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.BindingEventEnvelope.name) - return name_.GetNoArena(); -} -inline void BindingEventEnvelope::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.BindingEventEnvelope.name) -} -#if LANG_CXX11 -inline void BindingEventEnvelope::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.BindingEventEnvelope.name) -} -#endif -inline void BindingEventEnvelope::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.BindingEventEnvelope.name) -} -inline void BindingEventEnvelope::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.BindingEventEnvelope.name) -} -inline ::std::string* BindingEventEnvelope::mutable_name() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.BindingEventEnvelope.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* BindingEventEnvelope::release_name() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.BindingEventEnvelope.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void BindingEventEnvelope::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.BindingEventEnvelope.name) -} - -// .google.protobuf.Any data = 2; -inline bool BindingEventEnvelope::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::google::protobuf::Any& BindingEventEnvelope::_internal_data() const { - return *data_; -} -inline const ::google::protobuf::Any& BindingEventEnvelope::data() const { - const ::google::protobuf::Any* p = data_; - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.BindingEventEnvelope.data) - return p != NULL ? *p : *reinterpret_cast( - &::google::protobuf::_Any_default_instance_); -} -inline ::google::protobuf::Any* BindingEventEnvelope::release_data() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.BindingEventEnvelope.data) - - ::google::protobuf::Any* temp = data_; - data_ = NULL; - return temp; -} -inline ::google::protobuf::Any* BindingEventEnvelope::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.BindingEventEnvelope.data) - return data_; -} -inline void BindingEventEnvelope::set_allocated_data(::google::protobuf::Any* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.BindingEventEnvelope.data) -} - -// map metadata = 3; -inline int BindingEventEnvelope::metadata_size() const { - return metadata_.size(); -} -inline void BindingEventEnvelope::clear_metadata() { - metadata_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -BindingEventEnvelope::metadata() const { - // @@protoc_insertion_point(field_map:dapr.proto.daprclient.v1.BindingEventEnvelope.metadata) - return metadata_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -BindingEventEnvelope::mutable_metadata() { - // @@protoc_insertion_point(field_mutable_map:dapr.proto.daprclient.v1.BindingEventEnvelope.metadata) - return metadata_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// BindingResponseEnvelope - -// .google.protobuf.Any data = 1; -inline bool BindingResponseEnvelope::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::google::protobuf::Any& BindingResponseEnvelope::_internal_data() const { - return *data_; -} -inline const ::google::protobuf::Any& BindingResponseEnvelope::data() const { - const ::google::protobuf::Any* p = data_; - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.BindingResponseEnvelope.data) - return p != NULL ? *p : *reinterpret_cast( - &::google::protobuf::_Any_default_instance_); -} -inline ::google::protobuf::Any* BindingResponseEnvelope::release_data() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.BindingResponseEnvelope.data) - - ::google::protobuf::Any* temp = data_; - data_ = NULL; - return temp; -} -inline ::google::protobuf::Any* BindingResponseEnvelope::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.BindingResponseEnvelope.data) - return data_; -} -inline void BindingResponseEnvelope::set_allocated_data(::google::protobuf::Any* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.BindingResponseEnvelope.data) -} - -// repeated string to = 2; -inline int BindingResponseEnvelope::to_size() const { - return to_.size(); -} -inline void BindingResponseEnvelope::clear_to() { - to_.Clear(); -} -inline const ::std::string& BindingResponseEnvelope::to(int index) const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) - return to_.Get(index); -} -inline ::std::string* BindingResponseEnvelope::mutable_to(int index) { - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) - return to_.Mutable(index); -} -inline void BindingResponseEnvelope::set_to(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) - to_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void BindingResponseEnvelope::set_to(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) - to_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void BindingResponseEnvelope::set_to(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - to_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) -} -inline void BindingResponseEnvelope::set_to(int index, const char* value, size_t size) { - to_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) -} -inline ::std::string* BindingResponseEnvelope::add_to() { - // @@protoc_insertion_point(field_add_mutable:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) - return to_.Add(); -} -inline void BindingResponseEnvelope::add_to(const ::std::string& value) { - to_.Add()->assign(value); - // @@protoc_insertion_point(field_add:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) -} -#if LANG_CXX11 -inline void BindingResponseEnvelope::add_to(::std::string&& value) { - to_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) -} -#endif -inline void BindingResponseEnvelope::add_to(const char* value) { - GOOGLE_DCHECK(value != NULL); - to_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) -} -inline void BindingResponseEnvelope::add_to(const char* value, size_t size) { - to_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -BindingResponseEnvelope::to() const { - // @@protoc_insertion_point(field_list:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) - return to_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -BindingResponseEnvelope::mutable_to() { - // @@protoc_insertion_point(field_mutable_list:dapr.proto.daprclient.v1.BindingResponseEnvelope.to) - return &to_; -} - -// repeated .dapr.proto.daprclient.v1.State state = 3; -inline int BindingResponseEnvelope::state_size() const { - return state_.size(); -} -inline void BindingResponseEnvelope::clear_state() { - state_.Clear(); -} -inline ::dapr::proto::daprclient::v1::State* BindingResponseEnvelope::mutable_state(int index) { - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.BindingResponseEnvelope.state) - return state_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::dapr::proto::daprclient::v1::State >* -BindingResponseEnvelope::mutable_state() { - // @@protoc_insertion_point(field_mutable_list:dapr.proto.daprclient.v1.BindingResponseEnvelope.state) - return &state_; -} -inline const ::dapr::proto::daprclient::v1::State& BindingResponseEnvelope::state(int index) const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.BindingResponseEnvelope.state) - return state_.Get(index); -} -inline ::dapr::proto::daprclient::v1::State* BindingResponseEnvelope::add_state() { - // @@protoc_insertion_point(field_add:dapr.proto.daprclient.v1.BindingResponseEnvelope.state) - return state_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::dapr::proto::daprclient::v1::State >& -BindingResponseEnvelope::state() const { - // @@protoc_insertion_point(field_list:dapr.proto.daprclient.v1.BindingResponseEnvelope.state) - return state_; -} - -// string concurrency = 4; -inline void BindingResponseEnvelope::clear_concurrency() { - concurrency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& BindingResponseEnvelope::concurrency() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.BindingResponseEnvelope.concurrency) - return concurrency_.GetNoArena(); -} -inline void BindingResponseEnvelope::set_concurrency(const ::std::string& value) { - - concurrency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.BindingResponseEnvelope.concurrency) -} -#if LANG_CXX11 -inline void BindingResponseEnvelope::set_concurrency(::std::string&& value) { - - concurrency_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.BindingResponseEnvelope.concurrency) -} -#endif -inline void BindingResponseEnvelope::set_concurrency(const char* value) { - GOOGLE_DCHECK(value != NULL); - - concurrency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.BindingResponseEnvelope.concurrency) -} -inline void BindingResponseEnvelope::set_concurrency(const char* value, size_t size) { - - concurrency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.BindingResponseEnvelope.concurrency) -} -inline ::std::string* BindingResponseEnvelope::mutable_concurrency() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.BindingResponseEnvelope.concurrency) - return concurrency_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* BindingResponseEnvelope::release_concurrency() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.BindingResponseEnvelope.concurrency) - - return concurrency_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void BindingResponseEnvelope::set_allocated_concurrency(::std::string* concurrency) { - if (concurrency != NULL) { - - } else { - - } - concurrency_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), concurrency); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.BindingResponseEnvelope.concurrency) -} - -// ------------------------------------------------------------------- - -// GetTopicSubscriptionsEnvelope - -// repeated string topics = 1; -inline int GetTopicSubscriptionsEnvelope::topics_size() const { - return topics_.size(); -} -inline void GetTopicSubscriptionsEnvelope::clear_topics() { - topics_.Clear(); -} -inline const ::std::string& GetTopicSubscriptionsEnvelope::topics(int index) const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) - return topics_.Get(index); -} -inline ::std::string* GetTopicSubscriptionsEnvelope::mutable_topics(int index) { - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) - return topics_.Mutable(index); -} -inline void GetTopicSubscriptionsEnvelope::set_topics(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) - topics_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void GetTopicSubscriptionsEnvelope::set_topics(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) - topics_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void GetTopicSubscriptionsEnvelope::set_topics(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - topics_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) -} -inline void GetTopicSubscriptionsEnvelope::set_topics(int index, const char* value, size_t size) { - topics_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) -} -inline ::std::string* GetTopicSubscriptionsEnvelope::add_topics() { - // @@protoc_insertion_point(field_add_mutable:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) - return topics_.Add(); -} -inline void GetTopicSubscriptionsEnvelope::add_topics(const ::std::string& value) { - topics_.Add()->assign(value); - // @@protoc_insertion_point(field_add:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) -} -#if LANG_CXX11 -inline void GetTopicSubscriptionsEnvelope::add_topics(::std::string&& value) { - topics_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) -} -#endif -inline void GetTopicSubscriptionsEnvelope::add_topics(const char* value) { - GOOGLE_DCHECK(value != NULL); - topics_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) -} -inline void GetTopicSubscriptionsEnvelope::add_topics(const char* value, size_t size) { - topics_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -GetTopicSubscriptionsEnvelope::topics() const { - // @@protoc_insertion_point(field_list:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) - return topics_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -GetTopicSubscriptionsEnvelope::mutable_topics() { - // @@protoc_insertion_point(field_mutable_list:dapr.proto.daprclient.v1.GetTopicSubscriptionsEnvelope.topics) - return &topics_; -} - -// ------------------------------------------------------------------- - -// GetBindingsSubscriptionsEnvelope - -// repeated string bindings = 1; -inline int GetBindingsSubscriptionsEnvelope::bindings_size() const { - return bindings_.size(); -} -inline void GetBindingsSubscriptionsEnvelope::clear_bindings() { - bindings_.Clear(); -} -inline const ::std::string& GetBindingsSubscriptionsEnvelope::bindings(int index) const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) - return bindings_.Get(index); -} -inline ::std::string* GetBindingsSubscriptionsEnvelope::mutable_bindings(int index) { - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) - return bindings_.Mutable(index); -} -inline void GetBindingsSubscriptionsEnvelope::set_bindings(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) - bindings_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void GetBindingsSubscriptionsEnvelope::set_bindings(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) - bindings_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void GetBindingsSubscriptionsEnvelope::set_bindings(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - bindings_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) -} -inline void GetBindingsSubscriptionsEnvelope::set_bindings(int index, const char* value, size_t size) { - bindings_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) -} -inline ::std::string* GetBindingsSubscriptionsEnvelope::add_bindings() { - // @@protoc_insertion_point(field_add_mutable:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) - return bindings_.Add(); -} -inline void GetBindingsSubscriptionsEnvelope::add_bindings(const ::std::string& value) { - bindings_.Add()->assign(value); - // @@protoc_insertion_point(field_add:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) -} -#if LANG_CXX11 -inline void GetBindingsSubscriptionsEnvelope::add_bindings(::std::string&& value) { - bindings_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) -} -#endif -inline void GetBindingsSubscriptionsEnvelope::add_bindings(const char* value) { - GOOGLE_DCHECK(value != NULL); - bindings_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) -} -inline void GetBindingsSubscriptionsEnvelope::add_bindings(const char* value, size_t size) { - bindings_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -GetBindingsSubscriptionsEnvelope::bindings() const { - // @@protoc_insertion_point(field_list:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) - return bindings_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -GetBindingsSubscriptionsEnvelope::mutable_bindings() { - // @@protoc_insertion_point(field_mutable_list:dapr.proto.daprclient.v1.GetBindingsSubscriptionsEnvelope.bindings) - return &bindings_; -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// State - -// string key = 1; -inline void State::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& State::key() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.State.key) - return key_.GetNoArena(); -} -inline void State::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.State.key) -} -#if LANG_CXX11 -inline void State::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.State.key) -} -#endif -inline void State::set_key(const char* value) { - GOOGLE_DCHECK(value != NULL); - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.State.key) -} -inline void State::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.State.key) -} -inline ::std::string* State::mutable_key() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.State.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* State::release_key() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.State.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void State::set_allocated_key(::std::string* key) { - if (key != NULL) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.State.key) -} - -// .google.protobuf.Any value = 2; -inline bool State::has_value() const { - return this != internal_default_instance() && value_ != NULL; -} -inline const ::google::protobuf::Any& State::_internal_value() const { - return *value_; -} -inline const ::google::protobuf::Any& State::value() const { - const ::google::protobuf::Any* p = value_; - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.State.value) - return p != NULL ? *p : *reinterpret_cast( - &::google::protobuf::_Any_default_instance_); -} -inline ::google::protobuf::Any* State::release_value() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.State.value) - - ::google::protobuf::Any* temp = value_; - value_ = NULL; - return temp; -} -inline ::google::protobuf::Any* State::mutable_value() { - - if (value_ == NULL) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); - value_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.State.value) - return value_; -} -inline void State::set_allocated_value(::google::protobuf::Any* value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); - } - if (value) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, value, submessage_arena); - } - - } else { - - } - value_ = value; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.State.value) -} - -// string etag = 3; -inline void State::clear_etag() { - etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& State::etag() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.State.etag) - return etag_.GetNoArena(); -} -inline void State::set_etag(const ::std::string& value) { - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.State.etag) -} -#if LANG_CXX11 -inline void State::set_etag(::std::string&& value) { - - etag_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.State.etag) -} -#endif -inline void State::set_etag(const char* value) { - GOOGLE_DCHECK(value != NULL); - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.State.etag) -} -inline void State::set_etag(const char* value, size_t size) { - - etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.State.etag) -} -inline ::std::string* State::mutable_etag() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.State.etag) - return etag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* State::release_etag() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.State.etag) - - return etag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void State::set_allocated_etag(::std::string* etag) { - if (etag != NULL) { - - } else { - - } - etag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), etag); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.State.etag) -} - -// map metadata = 4; -inline int State::metadata_size() const { - return metadata_.size(); -} -inline void State::clear_metadata() { - metadata_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -State::metadata() const { - // @@protoc_insertion_point(field_map:dapr.proto.daprclient.v1.State.metadata) - return metadata_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -State::mutable_metadata() { - // @@protoc_insertion_point(field_mutable_map:dapr.proto.daprclient.v1.State.metadata) - return metadata_.MutableMap(); -} - -// .dapr.proto.daprclient.v1.StateOptions options = 5; -inline bool State::has_options() const { - return this != internal_default_instance() && options_ != NULL; -} -inline void State::clear_options() { - if (GetArenaNoVirtual() == NULL && options_ != NULL) { - delete options_; - } - options_ = NULL; -} -inline const ::dapr::proto::daprclient::v1::StateOptions& State::_internal_options() const { - return *options_; -} -inline const ::dapr::proto::daprclient::v1::StateOptions& State::options() const { - const ::dapr::proto::daprclient::v1::StateOptions* p = options_; - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.State.options) - return p != NULL ? *p : *reinterpret_cast( - &::dapr::proto::daprclient::v1::_StateOptions_default_instance_); -} -inline ::dapr::proto::daprclient::v1::StateOptions* State::release_options() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.State.options) - - ::dapr::proto::daprclient::v1::StateOptions* temp = options_; - options_ = NULL; - return temp; -} -inline ::dapr::proto::daprclient::v1::StateOptions* State::mutable_options() { - - if (options_ == NULL) { - auto* p = CreateMaybeMessage<::dapr::proto::daprclient::v1::StateOptions>(GetArenaNoVirtual()); - options_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.State.options) - return options_; -} -inline void State::set_allocated_options(::dapr::proto::daprclient::v1::StateOptions* options) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete options_; - } - if (options) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - options = ::google::protobuf::internal::GetOwnedMessage( - message_arena, options, submessage_arena); - } - - } else { - - } - options_ = options; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.State.options) -} - -// ------------------------------------------------------------------- - -// StateOptions - -// string concurrency = 1; -inline void StateOptions::clear_concurrency() { - concurrency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StateOptions::concurrency() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.StateOptions.concurrency) - return concurrency_.GetNoArena(); -} -inline void StateOptions::set_concurrency(const ::std::string& value) { - - concurrency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.StateOptions.concurrency) -} -#if LANG_CXX11 -inline void StateOptions::set_concurrency(::std::string&& value) { - - concurrency_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.StateOptions.concurrency) -} -#endif -inline void StateOptions::set_concurrency(const char* value) { - GOOGLE_DCHECK(value != NULL); - - concurrency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.StateOptions.concurrency) -} -inline void StateOptions::set_concurrency(const char* value, size_t size) { - - concurrency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.StateOptions.concurrency) -} -inline ::std::string* StateOptions::mutable_concurrency() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.StateOptions.concurrency) - return concurrency_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StateOptions::release_concurrency() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.StateOptions.concurrency) - - return concurrency_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StateOptions::set_allocated_concurrency(::std::string* concurrency) { - if (concurrency != NULL) { - - } else { - - } - concurrency_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), concurrency); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.StateOptions.concurrency) -} - -// string consistency = 2; -inline void StateOptions::clear_consistency() { - consistency_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StateOptions::consistency() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.StateOptions.consistency) - return consistency_.GetNoArena(); -} -inline void StateOptions::set_consistency(const ::std::string& value) { - - consistency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.StateOptions.consistency) -} -#if LANG_CXX11 -inline void StateOptions::set_consistency(::std::string&& value) { - - consistency_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.StateOptions.consistency) -} -#endif -inline void StateOptions::set_consistency(const char* value) { - GOOGLE_DCHECK(value != NULL); - - consistency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.StateOptions.consistency) -} -inline void StateOptions::set_consistency(const char* value, size_t size) { - - consistency_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.StateOptions.consistency) -} -inline ::std::string* StateOptions::mutable_consistency() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.StateOptions.consistency) - return consistency_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StateOptions::release_consistency() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.StateOptions.consistency) - - return consistency_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StateOptions::set_allocated_consistency(::std::string* consistency) { - if (consistency != NULL) { - - } else { - - } - consistency_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), consistency); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.StateOptions.consistency) -} - -// .dapr.proto.daprclient.v1.RetryPolicy retry_policy = 3; -inline bool StateOptions::has_retry_policy() const { - return this != internal_default_instance() && retry_policy_ != NULL; -} -inline void StateOptions::clear_retry_policy() { - if (GetArenaNoVirtual() == NULL && retry_policy_ != NULL) { - delete retry_policy_; - } - retry_policy_ = NULL; -} -inline const ::dapr::proto::daprclient::v1::RetryPolicy& StateOptions::_internal_retry_policy() const { - return *retry_policy_; -} -inline const ::dapr::proto::daprclient::v1::RetryPolicy& StateOptions::retry_policy() const { - const ::dapr::proto::daprclient::v1::RetryPolicy* p = retry_policy_; - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.StateOptions.retry_policy) - return p != NULL ? *p : *reinterpret_cast( - &::dapr::proto::daprclient::v1::_RetryPolicy_default_instance_); -} -inline ::dapr::proto::daprclient::v1::RetryPolicy* StateOptions::release_retry_policy() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.StateOptions.retry_policy) - - ::dapr::proto::daprclient::v1::RetryPolicy* temp = retry_policy_; - retry_policy_ = NULL; - return temp; -} -inline ::dapr::proto::daprclient::v1::RetryPolicy* StateOptions::mutable_retry_policy() { - - if (retry_policy_ == NULL) { - auto* p = CreateMaybeMessage<::dapr::proto::daprclient::v1::RetryPolicy>(GetArenaNoVirtual()); - retry_policy_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.StateOptions.retry_policy) - return retry_policy_; -} -inline void StateOptions::set_allocated_retry_policy(::dapr::proto::daprclient::v1::RetryPolicy* retry_policy) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete retry_policy_; - } - if (retry_policy) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - retry_policy = ::google::protobuf::internal::GetOwnedMessage( - message_arena, retry_policy, submessage_arena); - } - - } else { - - } - retry_policy_ = retry_policy; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.StateOptions.retry_policy) -} - -// ------------------------------------------------------------------- - -// RetryPolicy - -// int32 threshold = 1; -inline void RetryPolicy::clear_threshold() { - threshold_ = 0; -} -inline ::google::protobuf::int32 RetryPolicy::threshold() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.RetryPolicy.threshold) - return threshold_; -} -inline void RetryPolicy::set_threshold(::google::protobuf::int32 value) { - - threshold_ = value; - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.RetryPolicy.threshold) -} - -// string pattern = 2; -inline void RetryPolicy::clear_pattern() { - pattern_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& RetryPolicy::pattern() const { - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.RetryPolicy.pattern) - return pattern_.GetNoArena(); -} -inline void RetryPolicy::set_pattern(const ::std::string& value) { - - pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.daprclient.v1.RetryPolicy.pattern) -} -#if LANG_CXX11 -inline void RetryPolicy::set_pattern(::std::string&& value) { - - pattern_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.daprclient.v1.RetryPolicy.pattern) -} -#endif -inline void RetryPolicy::set_pattern(const char* value) { - GOOGLE_DCHECK(value != NULL); - - pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:dapr.proto.daprclient.v1.RetryPolicy.pattern) -} -inline void RetryPolicy::set_pattern(const char* value, size_t size) { - - pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:dapr.proto.daprclient.v1.RetryPolicy.pattern) -} -inline ::std::string* RetryPolicy::mutable_pattern() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.RetryPolicy.pattern) - return pattern_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* RetryPolicy::release_pattern() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.RetryPolicy.pattern) - - return pattern_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void RetryPolicy::set_allocated_pattern(::std::string* pattern) { - if (pattern != NULL) { - - } else { - - } - pattern_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pattern); - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.RetryPolicy.pattern) -} - -// .google.protobuf.Duration interval = 3; -inline bool RetryPolicy::has_interval() const { - return this != internal_default_instance() && interval_ != NULL; -} -inline const ::google::protobuf::Duration& RetryPolicy::_internal_interval() const { - return *interval_; -} -inline const ::google::protobuf::Duration& RetryPolicy::interval() const { - const ::google::protobuf::Duration* p = interval_; - // @@protoc_insertion_point(field_get:dapr.proto.daprclient.v1.RetryPolicy.interval) - return p != NULL ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* RetryPolicy::release_interval() { - // @@protoc_insertion_point(field_release:dapr.proto.daprclient.v1.RetryPolicy.interval) - - ::google::protobuf::Duration* temp = interval_; - interval_ = NULL; - return temp; -} -inline ::google::protobuf::Duration* RetryPolicy::mutable_interval() { - - if (interval_ == NULL) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - interval_ = p; - } - // @@protoc_insertion_point(field_mutable:dapr.proto.daprclient.v1.RetryPolicy.interval) - return interval_; -} -inline void RetryPolicy::set_allocated_interval(::google::protobuf::Duration* interval) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(interval_); - } - if (interval) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(interval)->GetArena(); - if (message_arena != submessage_arena) { - interval = ::google::protobuf::internal::GetOwnedMessage( - message_arena, interval, submessage_arena); - } - - } else { - - } - interval_ = interval; - // @@protoc_insertion_point(field_set_allocated:dapr.proto.daprclient.v1.RetryPolicy.interval) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace v1 -} // namespace daprclient -} // namespace proto -} // namespace dapr - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto diff --git a/src/dapr/proto/runtime/v1/appcallback.grpc.pb.cc b/src/dapr/proto/runtime/v1/appcallback.grpc.pb.cc new file mode 100644 index 0000000..e79ec6a --- /dev/null +++ b/src/dapr/proto/runtime/v1/appcallback.grpc.pb.cc @@ -0,0 +1,196 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: dapr/proto/runtime/v1/appcallback.proto + +#include "dapr/proto/runtime/v1/appcallback.pb.h" +#include "dapr/proto/runtime/v1/appcallback.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace dapr { +namespace proto { +namespace runtime { +namespace v1 { + +static const char* AppCallback_method_names[] = { + "/dapr.proto.runtime.v1.AppCallback/OnInvoke", + "/dapr.proto.runtime.v1.AppCallback/ListTopicSubscriptions", + "/dapr.proto.runtime.v1.AppCallback/OnTopicEvent", + "/dapr.proto.runtime.v1.AppCallback/ListInputBindings", + "/dapr.proto.runtime.v1.AppCallback/OnBindingEvent", +}; + +std::unique_ptr< AppCallback::Stub> AppCallback::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< AppCallback::Stub> stub(new AppCallback::Stub(channel)); + return stub; +} + +AppCallback::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_OnInvoke_(AppCallback_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListTopicSubscriptions_(AppCallback_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_OnTopicEvent_(AppCallback_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListInputBindings_(AppCallback_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_OnBindingEvent_(AppCallback_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status AppCallback::Stub::OnInvoke(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::dapr::proto::common::v1::InvokeResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_OnInvoke_, context, request, response); +} + +void AppCallback::Stub::experimental_async::OnInvoke(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest* request, ::dapr::proto::common::v1::InvokeResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OnInvoke_, context, request, response, std::move(f)); +} + +::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* AppCallback::Stub::AsyncOnInvokeRaw(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::common::v1::InvokeResponse>::Create(channel_.get(), cq, rpcmethod_OnInvoke_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* AppCallback::Stub::PrepareAsyncOnInvokeRaw(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::common::v1::InvokeResponse>::Create(channel_.get(), cq, rpcmethod_OnInvoke_, context, request, false); +} + +::grpc::Status AppCallback::Stub::ListTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListTopicSubscriptions_, context, request, response); +} + +void AppCallback::Stub::experimental_async::ListTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTopicSubscriptions_, context, request, response, std::move(f)); +} + +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>* AppCallback::Stub::AsyncListTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>::Create(channel_.get(), cq, rpcmethod_ListTopicSubscriptions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>* AppCallback::Stub::PrepareAsyncListTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>::Create(channel_.get(), cq, rpcmethod_ListTopicSubscriptions_, context, request, false); +} + +::grpc::Status AppCallback::Stub::OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::google::protobuf::Empty* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_OnTopicEvent_, context, request, response); +} + +void AppCallback::Stub::experimental_async::OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest* request, ::google::protobuf::Empty* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OnTopicEvent_, context, request, response, std::move(f)); +} + +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AppCallback::Stub::AsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_OnTopicEvent_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AppCallback::Stub::PrepareAsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_OnTopicEvent_, context, request, false); +} + +::grpc::Status AppCallback::Stub::ListInputBindings(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListInputBindings_, context, request, response); +} + +void AppCallback::Stub::experimental_async::ListInputBindings(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListInputBindings_, context, request, response, std::move(f)); +} + +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListInputBindingsResponse>* AppCallback::Stub::AsyncListInputBindingsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::ListInputBindingsResponse>::Create(channel_.get(), cq, rpcmethod_ListInputBindings_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListInputBindingsResponse>* AppCallback::Stub::PrepareAsyncListInputBindingsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::ListInputBindingsResponse>::Create(channel_.get(), cq, rpcmethod_ListInputBindings_, context, request, false); +} + +::grpc::Status AppCallback::Stub::OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::dapr::proto::runtime::v1::BindingEventResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_OnBindingEvent_, context, request, response); +} + +void AppCallback::Stub::experimental_async::OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest* request, ::dapr::proto::runtime::v1::BindingEventResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OnBindingEvent_, context, request, response, std::move(f)); +} + +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::BindingEventResponse>* AppCallback::Stub::AsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::BindingEventResponse>::Create(channel_.get(), cq, rpcmethod_OnBindingEvent_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::BindingEventResponse>* AppCallback::Stub::PrepareAsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::BindingEventResponse>::Create(channel_.get(), cq, rpcmethod_OnBindingEvent_, context, request, false); +} + +AppCallback::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppCallback_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppCallback::Service, ::dapr::proto::common::v1::InvokeRequest, ::dapr::proto::common::v1::InvokeResponse>( + std::mem_fn(&AppCallback::Service::OnInvoke), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppCallback_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppCallback::Service, ::google::protobuf::Empty, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>( + std::mem_fn(&AppCallback::Service::ListTopicSubscriptions), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppCallback_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppCallback::Service, ::dapr::proto::runtime::v1::TopicEventRequest, ::google::protobuf::Empty>( + std::mem_fn(&AppCallback::Service::OnTopicEvent), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppCallback_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppCallback::Service, ::google::protobuf::Empty, ::dapr::proto::runtime::v1::ListInputBindingsResponse>( + std::mem_fn(&AppCallback::Service::ListInputBindings), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppCallback_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppCallback::Service, ::dapr::proto::runtime::v1::BindingEventRequest, ::dapr::proto::runtime::v1::BindingEventResponse>( + std::mem_fn(&AppCallback::Service::OnBindingEvent), this))); +} + +AppCallback::Service::~Service() { +} + +::grpc::Status AppCallback::Service::OnInvoke(::grpc::ServerContext* context, const ::dapr::proto::common::v1::InvokeRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppCallback::Service::ListTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppCallback::Service::OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest* request, ::google::protobuf::Empty* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppCallback::Service::ListInputBindings(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppCallback::Service::OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest* request, ::dapr::proto::runtime::v1::BindingEventResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace dapr +} // namespace proto +} // namespace runtime +} // namespace v1 + diff --git a/src/dapr/proto/daprclient/v1/daprclient.grpc.pb.h b/src/dapr/proto/runtime/v1/appcallback.grpc.pb.h similarity index 55% rename from src/dapr/proto/daprclient/v1/daprclient.grpc.pb.h rename to src/dapr/proto/runtime/v1/appcallback.grpc.pb.h index bfcfa2d..b519b09 100644 --- a/src/dapr/proto/daprclient/v1/daprclient.grpc.pb.h +++ b/src/dapr/proto/runtime/v1/appcallback.grpc.pb.h @@ -1,16 +1,16 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: dapr/proto/daprclient/v1/daprclient.proto +// source: dapr/proto/runtime/v1/appcallback.proto // Original file comments: // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // ------------------------------------------------------------ // -#ifndef GRPC_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto__INCLUDED -#define GRPC_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto__INCLUDED +#ifndef GRPC_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto__INCLUDED +#define GRPC_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto__INCLUDED -#include "dapr/proto/daprclient/v1/daprclient.pb.h" +#include "dapr/proto/runtime/v1/appcallback.pb.h" #include #include @@ -33,20 +33,21 @@ class ServerContext; namespace dapr { namespace proto { -namespace daprclient { +namespace runtime { namespace v1 { -// DaprClient service allows user application to interact with Dapr runtime. -// User application needs to implement DaprClient service if it needs to +// AppCallback V1 allows user application to interact with Dapr runtime. +// User application needs to implement AppCallback service if it needs to // receive message from dapr runtime. -class DaprClient final { +class AppCallback final { public: static constexpr char const* service_full_name() { - return "dapr.proto.daprclient.v1.DaprClient"; + return "dapr.proto.runtime.v1.AppCallback"; } class StubInterface { public: virtual ~StubInterface() {} + // Invokes service method with InvokeRequest. virtual ::grpc::Status OnInvoke(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::dapr::proto::common::v1::InvokeResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>> AsyncOnInvoke(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>>(AsyncOnInvokeRaw(context, request, cq)); @@ -54,55 +55,70 @@ class DaprClient final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>> PrepareAsyncOnInvoke(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>>(PrepareAsyncOnInvokeRaw(context, request, cq)); } - virtual ::grpc::Status GetTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>> AsyncGetTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>>(AsyncGetTopicSubscriptionsRaw(context, request, cq)); + // Lists all topics subscribed by this app. + virtual ::grpc::Status ListTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>> AsyncListTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>>(AsyncListTopicSubscriptionsRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>> PrepareAsyncGetTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>>(PrepareAsyncGetTopicSubscriptionsRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>> PrepareAsyncListTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>>(PrepareAsyncListTopicSubscriptionsRaw(context, request, cq)); } - virtual ::grpc::Status GetBindingsSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>> AsyncGetBindingsSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>>(AsyncGetBindingsSubscriptionsRaw(context, request, cq)); + // Subscribes events from Pubsub + virtual ::grpc::Status OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::google::protobuf::Empty* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncOnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncOnTopicEventRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>> PrepareAsyncGetBindingsSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>>(PrepareAsyncGetBindingsSubscriptionsRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncOnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncOnTopicEventRaw(context, request, cq)); } - virtual ::grpc::Status OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>> AsyncOnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>>(AsyncOnBindingEventRaw(context, request, cq)); + // Lists all input bindings subscribed by this app. + virtual ::grpc::Status ListInputBindings(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListInputBindingsResponse>> AsyncListInputBindings(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListInputBindingsResponse>>(AsyncListInputBindingsRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>> PrepareAsyncOnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>>(PrepareAsyncOnBindingEventRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListInputBindingsResponse>> PrepareAsyncListInputBindings(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListInputBindingsResponse>>(PrepareAsyncListInputBindingsRaw(context, request, cq)); } - virtual ::grpc::Status OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::google::protobuf::Empty* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncOnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncOnTopicEventRaw(context, request, cq)); + // Listens events from the input bindings + // + // User application can save the states or send the events to the output + // bindings optionally by returning BindingEventResponse. + virtual ::grpc::Status OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::dapr::proto::runtime::v1::BindingEventResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::BindingEventResponse>> AsyncOnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::BindingEventResponse>>(AsyncOnBindingEventRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncOnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncOnTopicEventRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::BindingEventResponse>> PrepareAsyncOnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::BindingEventResponse>>(PrepareAsyncOnBindingEventRaw(context, request, cq)); } class experimental_async_interface { public: virtual ~experimental_async_interface() {} + // Invokes service method with InvokeRequest. virtual void OnInvoke(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest* request, ::dapr::proto::common::v1::InvokeResponse* response, std::function) = 0; - virtual void GetTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response, std::function) = 0; - virtual void GetBindingsSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response, std::function) = 0; - virtual void OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope* request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response, std::function) = 0; - virtual void OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope* request, ::google::protobuf::Empty* response, std::function) = 0; + // Lists all topics subscribed by this app. + virtual void ListTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response, std::function) = 0; + // Subscribes events from Pubsub + virtual void OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest* request, ::google::protobuf::Empty* response, std::function) = 0; + // Lists all input bindings subscribed by this app. + virtual void ListInputBindings(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response, std::function) = 0; + // Listens events from the input bindings + // + // User application can save the states or send the events to the output + // bindings optionally by returning BindingEventResponse. + virtual void OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest* request, ::dapr::proto::runtime::v1::BindingEventResponse* response, std::function) = 0; }; virtual class experimental_async_interface* experimental_async() { return nullptr; } private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>* AsyncOnInvokeRaw(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>* PrepareAsyncOnInvokeRaw(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>* AsyncGetTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>* PrepareAsyncGetTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>* AsyncGetBindingsSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>* PrepareAsyncGetBindingsSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>* AsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>* PrepareAsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>* AsyncListTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>* PrepareAsyncListTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListInputBindingsResponse>* AsyncListInputBindingsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::ListInputBindingsResponse>* PrepareAsyncListInputBindingsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::BindingEventResponse>* AsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::BindingEventResponse>* PrepareAsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -114,42 +130,42 @@ class DaprClient final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>> PrepareAsyncOnInvoke(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>>(PrepareAsyncOnInvokeRaw(context, request, cq)); } - ::grpc::Status GetTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>> AsyncGetTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>>(AsyncGetTopicSubscriptionsRaw(context, request, cq)); + ::grpc::Status ListTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>> AsyncListTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>>(AsyncListTopicSubscriptionsRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>> PrepareAsyncGetTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>>(PrepareAsyncGetTopicSubscriptionsRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>> PrepareAsyncListTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>>(PrepareAsyncListTopicSubscriptionsRaw(context, request, cq)); } - ::grpc::Status GetBindingsSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>> AsyncGetBindingsSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>>(AsyncGetBindingsSubscriptionsRaw(context, request, cq)); + ::grpc::Status OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::google::protobuf::Empty* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncOnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncOnTopicEventRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>> PrepareAsyncGetBindingsSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>>(PrepareAsyncGetBindingsSubscriptionsRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncOnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncOnTopicEventRaw(context, request, cq)); } - ::grpc::Status OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>> AsyncOnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>>(AsyncOnBindingEventRaw(context, request, cq)); + ::grpc::Status ListInputBindings(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListInputBindingsResponse>> AsyncListInputBindings(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListInputBindingsResponse>>(AsyncListInputBindingsRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>> PrepareAsyncOnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>>(PrepareAsyncOnBindingEventRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListInputBindingsResponse>> PrepareAsyncListInputBindings(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListInputBindingsResponse>>(PrepareAsyncListInputBindingsRaw(context, request, cq)); } - ::grpc::Status OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::google::protobuf::Empty* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncOnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncOnTopicEventRaw(context, request, cq)); + ::grpc::Status OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::dapr::proto::runtime::v1::BindingEventResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::BindingEventResponse>> AsyncOnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::BindingEventResponse>>(AsyncOnBindingEventRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncOnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncOnTopicEventRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::BindingEventResponse>> PrepareAsyncOnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::BindingEventResponse>>(PrepareAsyncOnBindingEventRaw(context, request, cq)); } class experimental_async final : public StubInterface::experimental_async_interface { public: void OnInvoke(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest* request, ::dapr::proto::common::v1::InvokeResponse* response, std::function) override; - void GetTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response, std::function) override; - void GetBindingsSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response, std::function) override; - void OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope* request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response, std::function) override; - void OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope* request, ::google::protobuf::Empty* response, std::function) override; + void ListTopicSubscriptions(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response, std::function) override; + void OnTopicEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest* request, ::google::protobuf::Empty* response, std::function) override; + void ListInputBindings(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response, std::function) override; + void OnBindingEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest* request, ::dapr::proto::runtime::v1::BindingEventResponse* response, std::function) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -163,19 +179,19 @@ class DaprClient final { class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* AsyncOnInvokeRaw(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* PrepareAsyncOnInvokeRaw(::grpc::ClientContext* context, const ::dapr::proto::common::v1::InvokeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>* AsyncGetTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>* PrepareAsyncGetTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>* AsyncGetBindingsSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>* PrepareAsyncGetBindingsSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>* AsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>* PrepareAsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>* AsyncListTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>* PrepareAsyncListTopicSubscriptionsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncOnTopicEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListInputBindingsResponse>* AsyncListInputBindingsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::ListInputBindingsResponse>* PrepareAsyncListInputBindingsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::BindingEventResponse>* AsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::BindingEventResponse>* PrepareAsyncOnBindingEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_OnInvoke_; - const ::grpc::internal::RpcMethod rpcmethod_GetTopicSubscriptions_; - const ::grpc::internal::RpcMethod rpcmethod_GetBindingsSubscriptions_; - const ::grpc::internal::RpcMethod rpcmethod_OnBindingEvent_; + const ::grpc::internal::RpcMethod rpcmethod_ListTopicSubscriptions_; const ::grpc::internal::RpcMethod rpcmethod_OnTopicEvent_; + const ::grpc::internal::RpcMethod rpcmethod_ListInputBindings_; + const ::grpc::internal::RpcMethod rpcmethod_OnBindingEvent_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -183,11 +199,19 @@ class DaprClient final { public: Service(); virtual ~Service(); + // Invokes service method with InvokeRequest. virtual ::grpc::Status OnInvoke(::grpc::ServerContext* context, const ::dapr::proto::common::v1::InvokeRequest* request, ::dapr::proto::common::v1::InvokeResponse* response); - virtual ::grpc::Status GetTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response); - virtual ::grpc::Status GetBindingsSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response); - virtual ::grpc::Status OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope* request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response); - virtual ::grpc::Status OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope* request, ::google::protobuf::Empty* response); + // Lists all topics subscribed by this app. + virtual ::grpc::Status ListTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response); + // Subscribes events from Pubsub + virtual ::grpc::Status OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest* request, ::google::protobuf::Empty* response); + // Lists all input bindings subscribed by this app. + virtual ::grpc::Status ListInputBindings(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response); + // Listens events from the input bindings + // + // User application can save the states or send the events to the output + // bindings optionally by returning BindingEventResponse. + virtual ::grpc::Status OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest* request, ::dapr::proto::runtime::v1::BindingEventResponse* response); }; template class WithAsyncMethod_OnInvoke : public BaseClass { @@ -210,86 +234,86 @@ class DaprClient final { } }; template - class WithAsyncMethod_GetTopicSubscriptions : public BaseClass { + class WithAsyncMethod_ListTopicSubscriptions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_GetTopicSubscriptions() { + WithAsyncMethod_ListTopicSubscriptions() { ::grpc::Service::MarkMethodAsync(1); } - ~WithAsyncMethod_GetTopicSubscriptions() override { + ~WithAsyncMethod_ListTopicSubscriptions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response) override { + ::grpc::Status ListTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetTopicSubscriptions(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestListTopicSubscriptions(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_GetBindingsSubscriptions : public BaseClass { + class WithAsyncMethod_OnTopicEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_GetBindingsSubscriptions() { + WithAsyncMethod_OnTopicEvent() { ::grpc::Service::MarkMethodAsync(2); } - ~WithAsyncMethod_GetBindingsSubscriptions() override { + ~WithAsyncMethod_OnTopicEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetBindingsSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response) override { + ::grpc::Status OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetBindingsSubscriptions(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestOnTopicEvent(::grpc::ServerContext* context, ::dapr::proto::runtime::v1::TopicEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_OnBindingEvent : public BaseClass { + class WithAsyncMethod_ListInputBindings : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_OnBindingEvent() { + WithAsyncMethod_ListInputBindings() { ::grpc::Service::MarkMethodAsync(3); } - ~WithAsyncMethod_OnBindingEvent() override { + ~WithAsyncMethod_ListInputBindings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope* request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response) override { + ::grpc::Status ListInputBindings(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestOnBindingEvent(::grpc::ServerContext* context, ::dapr::proto::daprclient::v1::BindingEventEnvelope* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::daprclient::v1::BindingResponseEnvelope>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestListInputBindings(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::runtime::v1::ListInputBindingsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_OnTopicEvent : public BaseClass { + class WithAsyncMethod_OnBindingEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_OnTopicEvent() { + WithAsyncMethod_OnBindingEvent() { ::grpc::Service::MarkMethodAsync(4); } - ~WithAsyncMethod_OnTopicEvent() override { + ~WithAsyncMethod_OnBindingEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest* request, ::dapr::proto::runtime::v1::BindingEventResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestOnTopicEvent(::grpc::ServerContext* context, ::dapr::proto::daprclient::v1::CloudEventEnvelope* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestOnBindingEvent(::grpc::ServerContext* context, ::dapr::proto::runtime::v1::BindingEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::runtime::v1::BindingEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_OnInvoke > > > > AsyncService; + typedef WithAsyncMethod_OnInvoke > > > > AsyncService; template class WithGenericMethod_OnInvoke : public BaseClass { private: @@ -308,69 +332,69 @@ class DaprClient final { } }; template - class WithGenericMethod_GetTopicSubscriptions : public BaseClass { + class WithGenericMethod_ListTopicSubscriptions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_GetTopicSubscriptions() { + WithGenericMethod_ListTopicSubscriptions() { ::grpc::Service::MarkMethodGeneric(1); } - ~WithGenericMethod_GetTopicSubscriptions() override { + ~WithGenericMethod_ListTopicSubscriptions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response) override { + ::grpc::Status ListTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_GetBindingsSubscriptions : public BaseClass { + class WithGenericMethod_OnTopicEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_GetBindingsSubscriptions() { + WithGenericMethod_OnTopicEvent() { ::grpc::Service::MarkMethodGeneric(2); } - ~WithGenericMethod_GetBindingsSubscriptions() override { + ~WithGenericMethod_OnTopicEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetBindingsSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response) override { + ::grpc::Status OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_OnBindingEvent : public BaseClass { + class WithGenericMethod_ListInputBindings : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_OnBindingEvent() { + WithGenericMethod_ListInputBindings() { ::grpc::Service::MarkMethodGeneric(3); } - ~WithGenericMethod_OnBindingEvent() override { + ~WithGenericMethod_ListInputBindings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope* request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response) override { + ::grpc::Status ListInputBindings(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_OnTopicEvent : public BaseClass { + class WithGenericMethod_OnBindingEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_OnTopicEvent() { + WithGenericMethod_OnBindingEvent() { ::grpc::Service::MarkMethodGeneric(4); } - ~WithGenericMethod_OnTopicEvent() override { + ~WithGenericMethod_OnBindingEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest* request, ::dapr::proto::runtime::v1::BindingEventResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -396,82 +420,82 @@ class DaprClient final { } }; template - class WithRawMethod_GetTopicSubscriptions : public BaseClass { + class WithRawMethod_ListTopicSubscriptions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_GetTopicSubscriptions() { + WithRawMethod_ListTopicSubscriptions() { ::grpc::Service::MarkMethodRaw(1); } - ~WithRawMethod_GetTopicSubscriptions() override { + ~WithRawMethod_ListTopicSubscriptions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response) override { + ::grpc::Status ListTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetTopicSubscriptions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestListTopicSubscriptions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_GetBindingsSubscriptions : public BaseClass { + class WithRawMethod_OnTopicEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_GetBindingsSubscriptions() { + WithRawMethod_OnTopicEvent() { ::grpc::Service::MarkMethodRaw(2); } - ~WithRawMethod_GetBindingsSubscriptions() override { + ~WithRawMethod_OnTopicEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetBindingsSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response) override { + ::grpc::Status OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetBindingsSubscriptions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestOnTopicEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_OnBindingEvent : public BaseClass { + class WithRawMethod_ListInputBindings : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_OnBindingEvent() { + WithRawMethod_ListInputBindings() { ::grpc::Service::MarkMethodRaw(3); } - ~WithRawMethod_OnBindingEvent() override { + ~WithRawMethod_ListInputBindings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope* request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response) override { + ::grpc::Status ListInputBindings(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestOnBindingEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestListInputBindings(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_OnTopicEvent : public BaseClass { + class WithRawMethod_OnBindingEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_OnTopicEvent() { + WithRawMethod_OnBindingEvent() { ::grpc::Service::MarkMethodRaw(4); } - ~WithRawMethod_OnTopicEvent() override { + ~WithRawMethod_OnBindingEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest* request, ::dapr::proto::runtime::v1::BindingEventResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestOnTopicEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestOnBindingEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -496,94 +520,94 @@ class DaprClient final { virtual ::grpc::Status StreamedOnInvoke(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::common::v1::InvokeRequest,::dapr::proto::common::v1::InvokeResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetTopicSubscriptions : public BaseClass { + class WithStreamedUnaryMethod_ListTopicSubscriptions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_GetTopicSubscriptions() { + WithStreamedUnaryMethod_ListTopicSubscriptions() { ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>(std::bind(&WithStreamedUnaryMethod_GetTopicSubscriptions::StreamedGetTopicSubscriptions, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>(std::bind(&WithStreamedUnaryMethod_ListTopicSubscriptions::StreamedListTopicSubscriptions, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_GetTopicSubscriptions() override { + ~WithStreamedUnaryMethod_ListTopicSubscriptions() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope* response) override { + ::grpc::Status ListTopicSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetTopicSubscriptions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::dapr::proto::daprclient::v1::GetTopicSubscriptionsEnvelope>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedListTopicSubscriptions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetBindingsSubscriptions : public BaseClass { + class WithStreamedUnaryMethod_OnTopicEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_GetBindingsSubscriptions() { + WithStreamedUnaryMethod_OnTopicEvent() { ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>(std::bind(&WithStreamedUnaryMethod_GetBindingsSubscriptions::StreamedGetBindingsSubscriptions, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::runtime::v1::TopicEventRequest, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_OnTopicEvent::StreamedOnTopicEvent, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_GetBindingsSubscriptions() override { + ~WithStreamedUnaryMethod_OnTopicEvent() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetBindingsSubscriptions(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope* response) override { + ::grpc::Status OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::TopicEventRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetBindingsSubscriptions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::dapr::proto::daprclient::v1::GetBindingsSubscriptionsEnvelope>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedOnTopicEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::runtime::v1::TopicEventRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_OnBindingEvent : public BaseClass { + class WithStreamedUnaryMethod_ListInputBindings : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_OnBindingEvent() { + WithStreamedUnaryMethod_ListInputBindings() { ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::daprclient::v1::BindingEventEnvelope, ::dapr::proto::daprclient::v1::BindingResponseEnvelope>(std::bind(&WithStreamedUnaryMethod_OnBindingEvent::StreamedOnBindingEvent, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::dapr::proto::runtime::v1::ListInputBindingsResponse>(std::bind(&WithStreamedUnaryMethod_ListInputBindings::StreamedListInputBindings, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_OnBindingEvent() override { + ~WithStreamedUnaryMethod_ListInputBindings() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::BindingEventEnvelope* request, ::dapr::proto::daprclient::v1::BindingResponseEnvelope* response) override { + ::grpc::Status ListInputBindings(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::ListInputBindingsResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOnBindingEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::daprclient::v1::BindingEventEnvelope,::dapr::proto::daprclient::v1::BindingResponseEnvelope>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedListInputBindings(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::dapr::proto::runtime::v1::ListInputBindingsResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_OnTopicEvent : public BaseClass { + class WithStreamedUnaryMethod_OnBindingEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_OnTopicEvent() { + WithStreamedUnaryMethod_OnBindingEvent() { ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::daprclient::v1::CloudEventEnvelope, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_OnTopicEvent::StreamedOnTopicEvent, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::runtime::v1::BindingEventRequest, ::dapr::proto::runtime::v1::BindingEventResponse>(std::bind(&WithStreamedUnaryMethod_OnBindingEvent::StreamedOnBindingEvent, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_OnTopicEvent() override { + ~WithStreamedUnaryMethod_OnBindingEvent() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status OnTopicEvent(::grpc::ServerContext* context, const ::dapr::proto::daprclient::v1::CloudEventEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status OnBindingEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::BindingEventRequest* request, ::dapr::proto::runtime::v1::BindingEventResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOnTopicEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::daprclient::v1::CloudEventEnvelope,::google::protobuf::Empty>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedOnBindingEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::runtime::v1::BindingEventRequest,::dapr::proto::runtime::v1::BindingEventResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_OnInvoke > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_OnInvoke > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_OnInvoke > > > > StreamedService; + typedef WithStreamedUnaryMethod_OnInvoke > > > > StreamedService; }; } // namespace v1 -} // namespace daprclient +} // namespace runtime } // namespace proto } // namespace dapr -#endif // GRPC_dapr_2fproto_2fdaprclient_2fv1_2fdaprclient_2eproto__INCLUDED +#endif // GRPC_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto__INCLUDED diff --git a/src/dapr/proto/runtime/v1/appcallback.pb.cc b/src/dapr/proto/runtime/v1/appcallback.pb.cc new file mode 100644 index 0000000..1785db4 --- /dev/null +++ b/src/dapr/proto/runtime/v1/appcallback.pb.cc @@ -0,0 +1,2785 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: dapr/proto/runtime/v1/appcallback.proto + +#include "dapr/proto/runtime/v1/appcallback.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_StateSaveRequest; +} // namespace protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto +namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BindingEventRequest_MetadataEntry_DoNotUse; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TopicSubscription_MetadataEntry_DoNotUse; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TopicSubscription; +} // namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto +namespace dapr { +namespace proto { +namespace runtime { +namespace v1 { +class TopicEventRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TopicEventRequest_default_instance_; +class BindingEventRequest_MetadataEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BindingEventRequest_MetadataEntry_DoNotUse_default_instance_; +class BindingEventRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BindingEventRequest_default_instance_; +class BindingEventResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BindingEventResponse_default_instance_; +class ListTopicSubscriptionsResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ListTopicSubscriptionsResponse_default_instance_; +class TopicSubscription_MetadataEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TopicSubscription_MetadataEntry_DoNotUse_default_instance_; +class TopicSubscriptionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TopicSubscription_default_instance_; +class ListInputBindingsResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ListInputBindingsResponse_default_instance_; +} // namespace v1 +} // namespace runtime +} // namespace proto +} // namespace dapr +namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto { +static void InitDefaultsTopicEventRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_TopicEventRequest_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::TopicEventRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::TopicEventRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TopicEventRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTopicEventRequest}, {}}; + +static void InitDefaultsBindingEventRequest_MetadataEntry_DoNotUse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_BindingEventRequest_MetadataEntry_DoNotUse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse(); + } + ::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BindingEventRequest_MetadataEntry_DoNotUse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBindingEventRequest_MetadataEntry_DoNotUse}, {}}; + +static void InitDefaultsBindingEventRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_BindingEventRequest_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::BindingEventRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::BindingEventRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_BindingEventRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBindingEventRequest}, { + &protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_BindingEventRequest_MetadataEntry_DoNotUse.base,}}; + +static void InitDefaultsBindingEventResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_BindingEventResponse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::BindingEventResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::BindingEventResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_BindingEventResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBindingEventResponse}, { + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateSaveRequest.base,}}; + +static void InitDefaultsListTopicSubscriptionsResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_ListTopicSubscriptionsResponse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ListTopicSubscriptionsResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListTopicSubscriptionsResponse}, { + &protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_TopicSubscription.base,}}; + +static void InitDefaultsTopicSubscription_MetadataEntry_DoNotUse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_TopicSubscription_MetadataEntry_DoNotUse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse(); + } + ::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TopicSubscription_MetadataEntry_DoNotUse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTopicSubscription_MetadataEntry_DoNotUse}, {}}; + +static void InitDefaultsTopicSubscription() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_TopicSubscription_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::TopicSubscription(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::TopicSubscription::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TopicSubscription = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTopicSubscription}, { + &protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_TopicSubscription_MetadataEntry_DoNotUse.base,}}; + +static void InitDefaultsListInputBindingsResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_ListInputBindingsResponse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::ListInputBindingsResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::ListInputBindingsResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ListInputBindingsResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsListInputBindingsResponse}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_TopicEventRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BindingEventRequest_MetadataEntry_DoNotUse.base); + ::google::protobuf::internal::InitSCC(&scc_info_BindingEventRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_BindingEventResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListTopicSubscriptionsResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_TopicSubscription_MetadataEntry_DoNotUse.base); + ::google::protobuf::internal::InitSCC(&scc_info_TopicSubscription.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListInputBindingsResponse.base); +} + +::google::protobuf::Metadata file_level_metadata[8]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicEventRequest, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicEventRequest, source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicEventRequest, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicEventRequest, spec_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicEventRequest, data_content_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicEventRequest, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicEventRequest, topic_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventRequest, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventRequest, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventRequest, metadata_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventResponse, store_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventResponse, states_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventResponse, to_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventResponse, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::BindingEventResponse, concurrency_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse, subscriptions_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicSubscription, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicSubscription, topic_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TopicSubscription, metadata_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::ListInputBindingsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::ListInputBindingsResponse, bindings_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::dapr::proto::runtime::v1::TopicEventRequest)}, + { 12, 19, sizeof(::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse)}, + { 21, -1, sizeof(::dapr::proto::runtime::v1::BindingEventRequest)}, + { 29, -1, sizeof(::dapr::proto::runtime::v1::BindingEventResponse)}, + { 39, -1, sizeof(::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse)}, + { 45, 52, sizeof(::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse)}, + { 54, -1, sizeof(::dapr::proto::runtime::v1::TopicSubscription)}, + { 61, -1, sizeof(::dapr::proto::runtime::v1::ListInputBindingsResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::dapr::proto::runtime::v1::_TopicEventRequest_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_BindingEventRequest_MetadataEntry_DoNotUse_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_BindingEventRequest_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_BindingEventResponse_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_ListTopicSubscriptionsResponse_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_TopicSubscription_MetadataEntry_DoNotUse_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_TopicSubscription_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_ListInputBindingsResponse_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "dapr/proto/runtime/v1/appcallback.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 8); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\'dapr/proto/runtime/v1/appcallback.prot" + "o\022\025dapr.proto.runtime.v1\032\033google/protobu" + "f/empty.proto\032!dapr/proto/common/v1/comm" + "on.proto\"\213\001\n\021TopicEventRequest\022\n\n\002id\030\001 \001" + "(\t\022\016\n\006source\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\022\024\n\014spec" + "_version\030\004 \001(\t\022\031\n\021data_content_type\030\005 \001(" + "\t\022\014\n\004data\030\007 \001(\014\022\r\n\005topic\030\006 \001(\t\"\256\001\n\023Bindi" + "ngEventRequest\022\014\n\004name\030\001 \001(\t\022\014\n\004data\030\002 \001" + "(\014\022J\n\010metadata\030\003 \003(\01328.dapr.proto.runtim" + "e.v1.BindingEventRequest.MetadataEntry\032/" + "\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\t:\0028\001\"\217\002\n\024BindingEventResponse\022\022\n\nstor" + "e_name\030\001 \001(\t\0226\n\006states\030\002 \003(\0132&.dapr.prot" + "o.common.v1.StateSaveRequest\022\n\n\002to\030\003 \003(\t" + "\022\014\n\004data\030\004 \001(\014\022X\n\013concurrency\030\005 \001(\0162C.da" + "pr.proto.runtime.v1.BindingEventResponse" + ".BindingEventConcurrency\"7\n\027BindingEvent" + "Concurrency\022\016\n\nSEQUENTIAL\020\000\022\014\n\010PARALLEL\020" + "\001\"a\n\036ListTopicSubscriptionsResponse\022\?\n\rs" + "ubscriptions\030\001 \003(\0132(.dapr.proto.runtime." + "v1.TopicSubscription\"\235\001\n\021TopicSubscripti" + "on\022\r\n\005topic\030\001 \001(\t\022H\n\010metadata\030\002 \003(\01326.da" + "pr.proto.runtime.v1.TopicSubscription.Me" + "tadataEntry\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(" + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"-\n\031ListInputBinding" + "sResponse\022\020\n\010bindings\030\001 \003(\t2\363\003\n\013AppCallb" + "ack\022W\n\010OnInvoke\022#.dapr.proto.common.v1.I" + "nvokeRequest\032$.dapr.proto.common.v1.Invo" + "keResponse\"\000\022i\n\026ListTopicSubscriptions\022\026" + ".google.protobuf.Empty\0325.dapr.proto.runt" + "ime.v1.ListTopicSubscriptionsResponse\"\000\022" + "R\n\014OnTopicEvent\022(.dapr.proto.runtime.v1." + "TopicEventRequest\032\026.google.protobuf.Empt" + "y\"\000\022_\n\021ListInputBindings\022\026.google.protob" + "uf.Empty\0320.dapr.proto.runtime.v1.ListInp" + "utBindingsResponse\"\000\022k\n\016OnBindingEvent\022*" + ".dapr.proto.runtime.v1.BindingEventReque" + "st\032+.dapr.proto.runtime.v1.BindingEventR" + "esponse\"\000By\n\nio.dapr.v1B\025DaprAppCallback" + "ProtosZ1github.com/dapr/dapr/pkg/proto/r" + "untime/v1;runtime\252\002 Dapr.AppCallback.Aut" + "ogen.Grpc.v1b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1660); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "dapr/proto/runtime/v1/appcallback.proto", &protobuf_RegisterTypes); + ::protobuf_google_2fprotobuf_2fempty_2eproto::AddDescriptors(); + ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto +namespace dapr { +namespace proto { +namespace runtime { +namespace v1 { +const ::google::protobuf::EnumDescriptor* BindingEventResponse_BindingEventConcurrency_descriptor() { + protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_enum_descriptors[0]; +} +bool BindingEventResponse_BindingEventConcurrency_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const BindingEventResponse_BindingEventConcurrency BindingEventResponse::SEQUENTIAL; +const BindingEventResponse_BindingEventConcurrency BindingEventResponse::PARALLEL; +const BindingEventResponse_BindingEventConcurrency BindingEventResponse::BindingEventConcurrency_MIN; +const BindingEventResponse_BindingEventConcurrency BindingEventResponse::BindingEventConcurrency_MAX; +const int BindingEventResponse::BindingEventConcurrency_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void TopicEventRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TopicEventRequest::kIdFieldNumber; +const int TopicEventRequest::kSourceFieldNumber; +const int TopicEventRequest::kTypeFieldNumber; +const int TopicEventRequest::kSpecVersionFieldNumber; +const int TopicEventRequest::kDataContentTypeFieldNumber; +const int TopicEventRequest::kDataFieldNumber; +const int TopicEventRequest::kTopicFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TopicEventRequest::TopicEventRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_TopicEventRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.TopicEventRequest) +} +TopicEventRequest::TopicEventRequest(const TopicEventRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.source().size() > 0) { + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.type().size() > 0) { + type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); + } + spec_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.spec_version().size() > 0) { + spec_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spec_version_); + } + data_content_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.data_content_type().size() > 0) { + data_content_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_content_type_); + } + topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.topic().size() > 0) { + topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_); + } + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.data().size() > 0) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.TopicEventRequest) +} + +void TopicEventRequest::SharedCtor() { + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spec_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_content_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TopicEventRequest::~TopicEventRequest() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.TopicEventRequest) + SharedDtor(); +} + +void TopicEventRequest::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spec_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_content_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + topic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TopicEventRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TopicEventRequest::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TopicEventRequest& TopicEventRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_TopicEventRequest.base); + return *internal_default_instance(); +} + + +void TopicEventRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.TopicEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spec_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_content_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool TopicEventRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.TopicEventRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.TopicEventRequest.id")); + } else { + goto handle_unusual; + } + break; + } + + // string source = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.TopicEventRequest.source")); + } else { + goto handle_unusual; + } + break; + } + + // string type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.TopicEventRequest.type")); + } else { + goto handle_unusual; + } + break; + } + + // string spec_version = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_spec_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->spec_version().data(), static_cast(this->spec_version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.TopicEventRequest.spec_version")); + } else { + goto handle_unusual; + } + break; + } + + // string data_content_type = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_data_content_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->data_content_type().data(), static_cast(this->data_content_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.TopicEventRequest.data_content_type")); + } else { + goto handle_unusual; + } + break; + } + + // string topic = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_topic())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->topic().data(), static_cast(this->topic().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.TopicEventRequest.topic")); + } else { + goto handle_unusual; + } + break; + } + + // bytes data = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.TopicEventRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.TopicEventRequest) + return false; +#undef DO_ +} + +void TopicEventRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.TopicEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->id(), output); + } + + // string source = 2; + if (this->source().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.source"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->source(), output); + } + + // string type = 3; + if (this->type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->type(), output); + } + + // string spec_version = 4; + if (this->spec_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->spec_version().data(), static_cast(this->spec_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.spec_version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->spec_version(), output); + } + + // string data_content_type = 5; + if (this->data_content_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->data_content_type().data(), static_cast(this->data_content_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.data_content_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->data_content_type(), output); + } + + // string topic = 6; + if (this->topic().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->topic().data(), static_cast(this->topic().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.topic"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->topic(), output); + } + + // bytes data = 7; + if (this->data().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 7, this->data(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.TopicEventRequest) +} + +::google::protobuf::uint8* TopicEventRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.TopicEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->id(), target); + } + + // string source = 2; + if (this->source().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.source"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->source(), target); + } + + // string type = 3; + if (this->type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->type(), target); + } + + // string spec_version = 4; + if (this->spec_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->spec_version().data(), static_cast(this->spec_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.spec_version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->spec_version(), target); + } + + // string data_content_type = 5; + if (this->data_content_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->data_content_type().data(), static_cast(this->data_content_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.data_content_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->data_content_type(), target); + } + + // string topic = 6; + if (this->topic().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->topic().data(), static_cast(this->topic().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicEventRequest.topic"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->topic(), target); + } + + // bytes data = 7; + if (this->data().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 7, this->data(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.TopicEventRequest) + return target; +} + +size_t TopicEventRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.TopicEventRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string id = 1; + if (this->id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->id()); + } + + // string source = 2; + if (this->source().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source()); + } + + // string type = 3; + if (this->type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->type()); + } + + // string spec_version = 4; + if (this->spec_version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->spec_version()); + } + + // string data_content_type = 5; + if (this->data_content_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->data_content_type()); + } + + // string topic = 6; + if (this->topic().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->topic()); + } + + // bytes data = 7; + if (this->data().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TopicEventRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.TopicEventRequest) + GOOGLE_DCHECK_NE(&from, this); + const TopicEventRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.TopicEventRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.TopicEventRequest) + MergeFrom(*source); + } +} + +void TopicEventRequest::MergeFrom(const TopicEventRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.TopicEventRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.source().size() > 0) { + + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + if (from.type().size() > 0) { + + type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); + } + if (from.spec_version().size() > 0) { + + spec_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spec_version_); + } + if (from.data_content_type().size() > 0) { + + data_content_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_content_type_); + } + if (from.topic().size() > 0) { + + topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_); + } + if (from.data().size() > 0) { + + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } +} + +void TopicEventRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.TopicEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TopicEventRequest::CopyFrom(const TopicEventRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.TopicEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TopicEventRequest::IsInitialized() const { + return true; +} + +void TopicEventRequest::Swap(TopicEventRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TopicEventRequest::InternalSwap(TopicEventRequest* other) { + using std::swap; + id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + source_.Swap(&other->source_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + type_.Swap(&other->type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + spec_version_.Swap(&other->spec_version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + data_content_type_.Swap(&other->data_content_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + topic_.Swap(&other->topic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TopicEventRequest::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +BindingEventRequest_MetadataEntry_DoNotUse::BindingEventRequest_MetadataEntry_DoNotUse() {} +BindingEventRequest_MetadataEntry_DoNotUse::BindingEventRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void BindingEventRequest_MetadataEntry_DoNotUse::MergeFrom(const BindingEventRequest_MetadataEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata BindingEventRequest_MetadataEntry_DoNotUse::GetMetadata() const { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[1]; +} +void BindingEventRequest_MetadataEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void BindingEventRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BindingEventRequest::kNameFieldNumber; +const int BindingEventRequest::kDataFieldNumber; +const int BindingEventRequest::kMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BindingEventRequest::BindingEventRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_BindingEventRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.BindingEventRequest) +} +BindingEventRequest::BindingEventRequest(const BindingEventRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + metadata_.MergeFrom(from.metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.data().size() > 0) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.BindingEventRequest) +} + +void BindingEventRequest::SharedCtor() { + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +BindingEventRequest::~BindingEventRequest() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.BindingEventRequest) + SharedDtor(); +} + +void BindingEventRequest::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BindingEventRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BindingEventRequest::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BindingEventRequest& BindingEventRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_BindingEventRequest.base); + return *internal_default_instance(); +} + + +void BindingEventRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.BindingEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metadata_.Clear(); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool BindingEventRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.BindingEventRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.BindingEventRequest.name")); + } else { + goto handle_unusual; + } + break; + } + + // bytes data = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + // map metadata = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + BindingEventRequest_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + BindingEventRequest_MetadataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.BindingEventRequest.MetadataEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.BindingEventRequest.MetadataEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.BindingEventRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.BindingEventRequest) + return false; +#undef DO_ +} + +void BindingEventRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.BindingEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.BindingEventRequest.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // bytes data = 2; + if (this->data().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->data(), output); + } + + // map metadata = 3; + if (!this->metadata().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.BindingEventRequest.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.BindingEventRequest.MetadataEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->metadata().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->metadata().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(metadata_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.BindingEventRequest) +} + +::google::protobuf::uint8* BindingEventRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.BindingEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.BindingEventRequest.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // bytes data = 2; + if (this->data().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->data(), target); + } + + // map metadata = 3; + if (!this->metadata().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.BindingEventRequest.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.BindingEventRequest.MetadataEntry.value"); + } + }; + + if (deterministic && + this->metadata().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->metadata().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(metadata_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 3, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 3, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.BindingEventRequest) + return target; +} + +size_t BindingEventRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.BindingEventRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map metadata = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->metadata_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // bytes data = 2; + if (this->data().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BindingEventRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.BindingEventRequest) + GOOGLE_DCHECK_NE(&from, this); + const BindingEventRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.BindingEventRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.BindingEventRequest) + MergeFrom(*source); + } +} + +void BindingEventRequest::MergeFrom(const BindingEventRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.BindingEventRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + metadata_.MergeFrom(from.metadata_); + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.data().size() > 0) { + + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } +} + +void BindingEventRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.BindingEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BindingEventRequest::CopyFrom(const BindingEventRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.BindingEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BindingEventRequest::IsInitialized() const { + return true; +} + +void BindingEventRequest::Swap(BindingEventRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void BindingEventRequest::InternalSwap(BindingEventRequest* other) { + using std::swap; + metadata_.Swap(&other->metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BindingEventRequest::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BindingEventResponse::InitAsDefaultInstance() { +} +void BindingEventResponse::clear_states() { + states_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BindingEventResponse::kStoreNameFieldNumber; +const int BindingEventResponse::kStatesFieldNumber; +const int BindingEventResponse::kToFieldNumber; +const int BindingEventResponse::kDataFieldNumber; +const int BindingEventResponse::kConcurrencyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BindingEventResponse::BindingEventResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_BindingEventResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.BindingEventResponse) +} +BindingEventResponse::BindingEventResponse(const BindingEventResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + states_(from.states_), + to_(from.to_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.store_name().size() > 0) { + store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); + } + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.data().size() > 0) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + concurrency_ = from.concurrency_; + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.BindingEventResponse) +} + +void BindingEventResponse::SharedCtor() { + store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + concurrency_ = 0; +} + +BindingEventResponse::~BindingEventResponse() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.BindingEventResponse) + SharedDtor(); +} + +void BindingEventResponse::SharedDtor() { + store_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BindingEventResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* BindingEventResponse::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BindingEventResponse& BindingEventResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_BindingEventResponse.base); + return *internal_default_instance(); +} + + +void BindingEventResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.BindingEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + states_.Clear(); + to_.Clear(); + store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + concurrency_ = 0; + _internal_metadata_.Clear(); +} + +bool BindingEventResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.BindingEventResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string store_name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_store_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.BindingEventResponse.store_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .dapr.proto.common.v1.StateSaveRequest states = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_states())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string to = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_to())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->to(this->to_size() - 1).data(), + static_cast(this->to(this->to_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.BindingEventResponse.to")); + } else { + goto handle_unusual; + } + break; + } + + // bytes data = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + // .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_concurrency(static_cast< ::dapr::proto::runtime::v1::BindingEventResponse_BindingEventConcurrency >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.BindingEventResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.BindingEventResponse) + return false; +#undef DO_ +} + +void BindingEventResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.BindingEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string store_name = 1; + if (this->store_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.BindingEventResponse.store_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->store_name(), output); + } + + // repeated .dapr.proto.common.v1.StateSaveRequest states = 2; + for (unsigned int i = 0, + n = static_cast(this->states_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->states(static_cast(i)), + output); + } + + // repeated string to = 3; + for (int i = 0, n = this->to_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->to(i).data(), static_cast(this->to(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.BindingEventResponse.to"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->to(i), output); + } + + // bytes data = 4; + if (this->data().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->data(), output); + } + + // .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5; + if (this->concurrency() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->concurrency(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.BindingEventResponse) +} + +::google::protobuf::uint8* BindingEventResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.BindingEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string store_name = 1; + if (this->store_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.BindingEventResponse.store_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->store_name(), target); + } + + // repeated .dapr.proto.common.v1.StateSaveRequest states = 2; + for (unsigned int i = 0, + n = static_cast(this->states_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->states(static_cast(i)), deterministic, target); + } + + // repeated string to = 3; + for (int i = 0, n = this->to_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->to(i).data(), static_cast(this->to(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.BindingEventResponse.to"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->to(i), target); + } + + // bytes data = 4; + if (this->data().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->data(), target); + } + + // .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5; + if (this->concurrency() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->concurrency(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.BindingEventResponse) + return target; +} + +size_t BindingEventResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.BindingEventResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .dapr.proto.common.v1.StateSaveRequest states = 2; + { + unsigned int count = static_cast(this->states_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->states(static_cast(i))); + } + } + + // repeated string to = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->to_size()); + for (int i = 0, n = this->to_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->to(i)); + } + + // string store_name = 1; + if (this->store_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->store_name()); + } + + // bytes data = 4; + if (this->data().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + // .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5; + if (this->concurrency() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->concurrency()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BindingEventResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.BindingEventResponse) + GOOGLE_DCHECK_NE(&from, this); + const BindingEventResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.BindingEventResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.BindingEventResponse) + MergeFrom(*source); + } +} + +void BindingEventResponse::MergeFrom(const BindingEventResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.BindingEventResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + states_.MergeFrom(from.states_); + to_.MergeFrom(from.to_); + if (from.store_name().size() > 0) { + + store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); + } + if (from.data().size() > 0) { + + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + if (from.concurrency() != 0) { + set_concurrency(from.concurrency()); + } +} + +void BindingEventResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.BindingEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BindingEventResponse::CopyFrom(const BindingEventResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.BindingEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BindingEventResponse::IsInitialized() const { + return true; +} + +void BindingEventResponse::Swap(BindingEventResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void BindingEventResponse::InternalSwap(BindingEventResponse* other) { + using std::swap; + CastToBase(&states_)->InternalSwap(CastToBase(&other->states_)); + to_.InternalSwap(CastToBase(&other->to_)); + store_name_.Swap(&other->store_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(concurrency_, other->concurrency_); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata BindingEventResponse::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListTopicSubscriptionsResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListTopicSubscriptionsResponse::kSubscriptionsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListTopicSubscriptionsResponse::ListTopicSubscriptionsResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_ListTopicSubscriptionsResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) +} +ListTopicSubscriptionsResponse::ListTopicSubscriptionsResponse(const ListTopicSubscriptionsResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + subscriptions_(from.subscriptions_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) +} + +void ListTopicSubscriptionsResponse::SharedCtor() { +} + +ListTopicSubscriptionsResponse::~ListTopicSubscriptionsResponse() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + SharedDtor(); +} + +void ListTopicSubscriptionsResponse::SharedDtor() { +} + +void ListTopicSubscriptionsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* ListTopicSubscriptionsResponse::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ListTopicSubscriptionsResponse& ListTopicSubscriptionsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_ListTopicSubscriptionsResponse.base); + return *internal_default_instance(); +} + + +void ListTopicSubscriptionsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + subscriptions_.Clear(); + _internal_metadata_.Clear(); +} + +bool ListTopicSubscriptionsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .dapr.proto.runtime.v1.TopicSubscription subscriptions = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_subscriptions())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + return false; +#undef DO_ +} + +void ListTopicSubscriptionsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .dapr.proto.runtime.v1.TopicSubscription subscriptions = 1; + for (unsigned int i = 0, + n = static_cast(this->subscriptions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->subscriptions(static_cast(i)), + output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) +} + +::google::protobuf::uint8* ListTopicSubscriptionsResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .dapr.proto.runtime.v1.TopicSubscription subscriptions = 1; + for (unsigned int i = 0, + n = static_cast(this->subscriptions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->subscriptions(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + return target; +} + +size_t ListTopicSubscriptionsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .dapr.proto.runtime.v1.TopicSubscription subscriptions = 1; + { + unsigned int count = static_cast(this->subscriptions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->subscriptions(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListTopicSubscriptionsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListTopicSubscriptionsResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + MergeFrom(*source); + } +} + +void ListTopicSubscriptionsResponse::MergeFrom(const ListTopicSubscriptionsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + subscriptions_.MergeFrom(from.subscriptions_); +} + +void ListTopicSubscriptionsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListTopicSubscriptionsResponse::CopyFrom(const ListTopicSubscriptionsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListTopicSubscriptionsResponse::IsInitialized() const { + return true; +} + +void ListTopicSubscriptionsResponse::Swap(ListTopicSubscriptionsResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ListTopicSubscriptionsResponse::InternalSwap(ListTopicSubscriptionsResponse* other) { + using std::swap; + CastToBase(&subscriptions_)->InternalSwap(CastToBase(&other->subscriptions_)); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ListTopicSubscriptionsResponse::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +TopicSubscription_MetadataEntry_DoNotUse::TopicSubscription_MetadataEntry_DoNotUse() {} +TopicSubscription_MetadataEntry_DoNotUse::TopicSubscription_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void TopicSubscription_MetadataEntry_DoNotUse::MergeFrom(const TopicSubscription_MetadataEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata TopicSubscription_MetadataEntry_DoNotUse::GetMetadata() const { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[5]; +} +void TopicSubscription_MetadataEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void TopicSubscription::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TopicSubscription::kTopicFieldNumber; +const int TopicSubscription::kMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TopicSubscription::TopicSubscription() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_TopicSubscription.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.TopicSubscription) +} +TopicSubscription::TopicSubscription(const TopicSubscription& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + metadata_.MergeFrom(from.metadata_); + topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.topic().size() > 0) { + topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_); + } + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.TopicSubscription) +} + +void TopicSubscription::SharedCtor() { + topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TopicSubscription::~TopicSubscription() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.TopicSubscription) + SharedDtor(); +} + +void TopicSubscription::SharedDtor() { + topic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TopicSubscription::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* TopicSubscription::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TopicSubscription& TopicSubscription::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_TopicSubscription.base); + return *internal_default_instance(); +} + + +void TopicSubscription::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.TopicSubscription) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metadata_.Clear(); + topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool TopicSubscription::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.TopicSubscription) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string topic = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_topic())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->topic().data(), static_cast(this->topic().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.TopicSubscription.topic")); + } else { + goto handle_unusual; + } + break; + } + + // map metadata = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + TopicSubscription_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + TopicSubscription_MetadataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.TopicSubscription.MetadataEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.TopicSubscription.MetadataEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.TopicSubscription) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.TopicSubscription) + return false; +#undef DO_ +} + +void TopicSubscription::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.TopicSubscription) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string topic = 1; + if (this->topic().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->topic().data(), static_cast(this->topic().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicSubscription.topic"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->topic(), output); + } + + // map metadata = 2; + if (!this->metadata().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicSubscription.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicSubscription.MetadataEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->metadata().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->metadata().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(metadata_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.TopicSubscription) +} + +::google::protobuf::uint8* TopicSubscription::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.TopicSubscription) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string topic = 1; + if (this->topic().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->topic().data(), static_cast(this->topic().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicSubscription.topic"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->topic(), target); + } + + // map metadata = 2; + if (!this->metadata().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicSubscription.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.TopicSubscription.MetadataEntry.value"); + } + }; + + if (deterministic && + this->metadata().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->metadata().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(metadata_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.TopicSubscription) + return target; +} + +size_t TopicSubscription::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.TopicSubscription) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map metadata = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->metadata_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string topic = 1; + if (this->topic().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->topic()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TopicSubscription::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.TopicSubscription) + GOOGLE_DCHECK_NE(&from, this); + const TopicSubscription* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.TopicSubscription) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.TopicSubscription) + MergeFrom(*source); + } +} + +void TopicSubscription::MergeFrom(const TopicSubscription& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.TopicSubscription) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + metadata_.MergeFrom(from.metadata_); + if (from.topic().size() > 0) { + + topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_); + } +} + +void TopicSubscription::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.TopicSubscription) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TopicSubscription::CopyFrom(const TopicSubscription& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.TopicSubscription) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TopicSubscription::IsInitialized() const { + return true; +} + +void TopicSubscription::Swap(TopicSubscription* other) { + if (other == this) return; + InternalSwap(other); +} +void TopicSubscription::InternalSwap(TopicSubscription* other) { + using std::swap; + metadata_.Swap(&other->metadata_); + topic_.Swap(&other->topic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TopicSubscription::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListInputBindingsResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListInputBindingsResponse::kBindingsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListInputBindingsResponse::ListInputBindingsResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_ListInputBindingsResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.ListInputBindingsResponse) +} +ListInputBindingsResponse::ListInputBindingsResponse(const ListInputBindingsResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + bindings_(from.bindings_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.ListInputBindingsResponse) +} + +void ListInputBindingsResponse::SharedCtor() { +} + +ListInputBindingsResponse::~ListInputBindingsResponse() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.ListInputBindingsResponse) + SharedDtor(); +} + +void ListInputBindingsResponse::SharedDtor() { +} + +void ListInputBindingsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* ListInputBindingsResponse::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ListInputBindingsResponse& ListInputBindingsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_ListInputBindingsResponse.base); + return *internal_default_instance(); +} + + +void ListInputBindingsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.ListInputBindingsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + bindings_.Clear(); + _internal_metadata_.Clear(); +} + +bool ListInputBindingsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.ListInputBindingsResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string bindings = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_bindings())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->bindings(this->bindings_size() - 1).data(), + static_cast(this->bindings(this->bindings_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.ListInputBindingsResponse.bindings")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.ListInputBindingsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.ListInputBindingsResponse) + return false; +#undef DO_ +} + +void ListInputBindingsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.ListInputBindingsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string bindings = 1; + for (int i = 0, n = this->bindings_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->bindings(i).data(), static_cast(this->bindings(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.ListInputBindingsResponse.bindings"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->bindings(i), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.ListInputBindingsResponse) +} + +::google::protobuf::uint8* ListInputBindingsResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.ListInputBindingsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string bindings = 1; + for (int i = 0, n = this->bindings_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->bindings(i).data(), static_cast(this->bindings(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.ListInputBindingsResponse.bindings"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->bindings(i), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.ListInputBindingsResponse) + return target; +} + +size_t ListInputBindingsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.ListInputBindingsResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated string bindings = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->bindings_size()); + for (int i = 0, n = this->bindings_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->bindings(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListInputBindingsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.ListInputBindingsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListInputBindingsResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.ListInputBindingsResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.ListInputBindingsResponse) + MergeFrom(*source); + } +} + +void ListInputBindingsResponse::MergeFrom(const ListInputBindingsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.ListInputBindingsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + bindings_.MergeFrom(from.bindings_); +} + +void ListInputBindingsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.ListInputBindingsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListInputBindingsResponse::CopyFrom(const ListInputBindingsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.ListInputBindingsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListInputBindingsResponse::IsInitialized() const { + return true; +} + +void ListInputBindingsResponse::Swap(ListInputBindingsResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ListInputBindingsResponse::InternalSwap(ListInputBindingsResponse* other) { + using std::swap; + bindings_.InternalSwap(CastToBase(&other->bindings_)); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ListInputBindingsResponse::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace runtime +} // namespace proto +} // namespace dapr +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::TopicEventRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::TopicEventRequest >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::TopicEventRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::BindingEventRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::BindingEventRequest >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::BindingEventRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::BindingEventResponse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::BindingEventResponse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::BindingEventResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::TopicSubscription* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::TopicSubscription >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::TopicSubscription >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::ListInputBindingsResponse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::ListInputBindingsResponse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::ListInputBindingsResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/dapr/proto/runtime/v1/appcallback.pb.h b/src/dapr/proto/runtime/v1/appcallback.pb.h new file mode 100644 index 0000000..17ddebe --- /dev/null +++ b/src/dapr/proto/runtime/v1/appcallback.pb.h @@ -0,0 +1,2014 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: dapr/proto/runtime/v1/appcallback.proto + +#ifndef PROTOBUF_INCLUDED_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto +#define PROTOBUF_INCLUDED_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include +#include "dapr/proto/common/v1/common.pb.h" +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto + +namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[8]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto +namespace dapr { +namespace proto { +namespace runtime { +namespace v1 { +class BindingEventRequest; +class BindingEventRequestDefaultTypeInternal; +extern BindingEventRequestDefaultTypeInternal _BindingEventRequest_default_instance_; +class BindingEventRequest_MetadataEntry_DoNotUse; +class BindingEventRequest_MetadataEntry_DoNotUseDefaultTypeInternal; +extern BindingEventRequest_MetadataEntry_DoNotUseDefaultTypeInternal _BindingEventRequest_MetadataEntry_DoNotUse_default_instance_; +class BindingEventResponse; +class BindingEventResponseDefaultTypeInternal; +extern BindingEventResponseDefaultTypeInternal _BindingEventResponse_default_instance_; +class ListInputBindingsResponse; +class ListInputBindingsResponseDefaultTypeInternal; +extern ListInputBindingsResponseDefaultTypeInternal _ListInputBindingsResponse_default_instance_; +class ListTopicSubscriptionsResponse; +class ListTopicSubscriptionsResponseDefaultTypeInternal; +extern ListTopicSubscriptionsResponseDefaultTypeInternal _ListTopicSubscriptionsResponse_default_instance_; +class TopicEventRequest; +class TopicEventRequestDefaultTypeInternal; +extern TopicEventRequestDefaultTypeInternal _TopicEventRequest_default_instance_; +class TopicSubscription; +class TopicSubscriptionDefaultTypeInternal; +extern TopicSubscriptionDefaultTypeInternal _TopicSubscription_default_instance_; +class TopicSubscription_MetadataEntry_DoNotUse; +class TopicSubscription_MetadataEntry_DoNotUseDefaultTypeInternal; +extern TopicSubscription_MetadataEntry_DoNotUseDefaultTypeInternal _TopicSubscription_MetadataEntry_DoNotUse_default_instance_; +} // namespace v1 +} // namespace runtime +} // namespace proto +} // namespace dapr +namespace google { +namespace protobuf { +template<> ::dapr::proto::runtime::v1::BindingEventRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::BindingEventRequest>(Arena*); +template<> ::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::BindingEventRequest_MetadataEntry_DoNotUse>(Arena*); +template<> ::dapr::proto::runtime::v1::BindingEventResponse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::BindingEventResponse>(Arena*); +template<> ::dapr::proto::runtime::v1::ListInputBindingsResponse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::ListInputBindingsResponse>(Arena*); +template<> ::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::ListTopicSubscriptionsResponse>(Arena*); +template<> ::dapr::proto::runtime::v1::TopicEventRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::TopicEventRequest>(Arena*); +template<> ::dapr::proto::runtime::v1::TopicSubscription* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::TopicSubscription>(Arena*); +template<> ::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::TopicSubscription_MetadataEntry_DoNotUse>(Arena*); +} // namespace protobuf +} // namespace google +namespace dapr { +namespace proto { +namespace runtime { +namespace v1 { + +enum BindingEventResponse_BindingEventConcurrency { + BindingEventResponse_BindingEventConcurrency_SEQUENTIAL = 0, + BindingEventResponse_BindingEventConcurrency_PARALLEL = 1, + BindingEventResponse_BindingEventConcurrency_BindingEventResponse_BindingEventConcurrency_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + BindingEventResponse_BindingEventConcurrency_BindingEventResponse_BindingEventConcurrency_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool BindingEventResponse_BindingEventConcurrency_IsValid(int value); +const BindingEventResponse_BindingEventConcurrency BindingEventResponse_BindingEventConcurrency_BindingEventConcurrency_MIN = BindingEventResponse_BindingEventConcurrency_SEQUENTIAL; +const BindingEventResponse_BindingEventConcurrency BindingEventResponse_BindingEventConcurrency_BindingEventConcurrency_MAX = BindingEventResponse_BindingEventConcurrency_PARALLEL; +const int BindingEventResponse_BindingEventConcurrency_BindingEventConcurrency_ARRAYSIZE = BindingEventResponse_BindingEventConcurrency_BindingEventConcurrency_MAX + 1; + +const ::google::protobuf::EnumDescriptor* BindingEventResponse_BindingEventConcurrency_descriptor(); +inline const ::std::string& BindingEventResponse_BindingEventConcurrency_Name(BindingEventResponse_BindingEventConcurrency value) { + return ::google::protobuf::internal::NameOfEnum( + BindingEventResponse_BindingEventConcurrency_descriptor(), value); +} +inline bool BindingEventResponse_BindingEventConcurrency_Parse( + const ::std::string& name, BindingEventResponse_BindingEventConcurrency* value) { + return ::google::protobuf::internal::ParseNamedEnum( + BindingEventResponse_BindingEventConcurrency_descriptor(), name, value); +} +// =================================================================== + +class TopicEventRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.TopicEventRequest) */ { + public: + TopicEventRequest(); + virtual ~TopicEventRequest(); + + TopicEventRequest(const TopicEventRequest& from); + + inline TopicEventRequest& operator=(const TopicEventRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TopicEventRequest(TopicEventRequest&& from) noexcept + : TopicEventRequest() { + *this = ::std::move(from); + } + + inline TopicEventRequest& operator=(TopicEventRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TopicEventRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TopicEventRequest* internal_default_instance() { + return reinterpret_cast( + &_TopicEventRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(TopicEventRequest* other); + friend void swap(TopicEventRequest& a, TopicEventRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TopicEventRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + TopicEventRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TopicEventRequest& from); + void MergeFrom(const TopicEventRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TopicEventRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // string source = 2; + void clear_source(); + static const int kSourceFieldNumber = 2; + const ::std::string& source() const; + void set_source(const ::std::string& value); + #if LANG_CXX11 + void set_source(::std::string&& value); + #endif + void set_source(const char* value); + void set_source(const char* value, size_t size); + ::std::string* mutable_source(); + ::std::string* release_source(); + void set_allocated_source(::std::string* source); + + // string type = 3; + void clear_type(); + static const int kTypeFieldNumber = 3; + const ::std::string& type() const; + void set_type(const ::std::string& value); + #if LANG_CXX11 + void set_type(::std::string&& value); + #endif + void set_type(const char* value); + void set_type(const char* value, size_t size); + ::std::string* mutable_type(); + ::std::string* release_type(); + void set_allocated_type(::std::string* type); + + // string spec_version = 4; + void clear_spec_version(); + static const int kSpecVersionFieldNumber = 4; + const ::std::string& spec_version() const; + void set_spec_version(const ::std::string& value); + #if LANG_CXX11 + void set_spec_version(::std::string&& value); + #endif + void set_spec_version(const char* value); + void set_spec_version(const char* value, size_t size); + ::std::string* mutable_spec_version(); + ::std::string* release_spec_version(); + void set_allocated_spec_version(::std::string* spec_version); + + // string data_content_type = 5; + void clear_data_content_type(); + static const int kDataContentTypeFieldNumber = 5; + const ::std::string& data_content_type() const; + void set_data_content_type(const ::std::string& value); + #if LANG_CXX11 + void set_data_content_type(::std::string&& value); + #endif + void set_data_content_type(const char* value); + void set_data_content_type(const char* value, size_t size); + ::std::string* mutable_data_content_type(); + ::std::string* release_data_content_type(); + void set_allocated_data_content_type(::std::string* data_content_type); + + // string topic = 6; + void clear_topic(); + static const int kTopicFieldNumber = 6; + const ::std::string& topic() const; + void set_topic(const ::std::string& value); + #if LANG_CXX11 + void set_topic(::std::string&& value); + #endif + void set_topic(const char* value); + void set_topic(const char* value, size_t size); + ::std::string* mutable_topic(); + ::std::string* release_topic(); + void set_allocated_topic(::std::string* topic); + + // bytes data = 7; + void clear_data(); + static const int kDataFieldNumber = 7; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const void* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.TopicEventRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::google::protobuf::internal::ArenaStringPtr source_; + ::google::protobuf::internal::ArenaStringPtr type_; + ::google::protobuf::internal::ArenaStringPtr spec_version_; + ::google::protobuf::internal::ArenaStringPtr data_content_type_; + ::google::protobuf::internal::ArenaStringPtr topic_; + ::google::protobuf::internal::ArenaStringPtr data_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BindingEventRequest_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + BindingEventRequest_MetadataEntry_DoNotUse(); + BindingEventRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const BindingEventRequest_MetadataEntry_DoNotUse& other); + static const BindingEventRequest_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_BindingEventRequest_MetadataEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class BindingEventRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.BindingEventRequest) */ { + public: + BindingEventRequest(); + virtual ~BindingEventRequest(); + + BindingEventRequest(const BindingEventRequest& from); + + inline BindingEventRequest& operator=(const BindingEventRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BindingEventRequest(BindingEventRequest&& from) noexcept + : BindingEventRequest() { + *this = ::std::move(from); + } + + inline BindingEventRequest& operator=(BindingEventRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const BindingEventRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BindingEventRequest* internal_default_instance() { + return reinterpret_cast( + &_BindingEventRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(BindingEventRequest* other); + friend void swap(BindingEventRequest& a, BindingEventRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BindingEventRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + BindingEventRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BindingEventRequest& from); + void MergeFrom(const BindingEventRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BindingEventRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map metadata = 3; + int metadata_size() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 3; + const ::google::protobuf::Map< ::std::string, ::std::string >& + metadata() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_metadata(); + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // bytes data = 2; + void clear_data(); + static const int kDataFieldNumber = 2; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const void* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.BindingEventRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + BindingEventRequest_MetadataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr data_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class BindingEventResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.BindingEventResponse) */ { + public: + BindingEventResponse(); + virtual ~BindingEventResponse(); + + BindingEventResponse(const BindingEventResponse& from); + + inline BindingEventResponse& operator=(const BindingEventResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BindingEventResponse(BindingEventResponse&& from) noexcept + : BindingEventResponse() { + *this = ::std::move(from); + } + + inline BindingEventResponse& operator=(BindingEventResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const BindingEventResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BindingEventResponse* internal_default_instance() { + return reinterpret_cast( + &_BindingEventResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(BindingEventResponse* other); + friend void swap(BindingEventResponse& a, BindingEventResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BindingEventResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + BindingEventResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BindingEventResponse& from); + void MergeFrom(const BindingEventResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BindingEventResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef BindingEventResponse_BindingEventConcurrency BindingEventConcurrency; + static const BindingEventConcurrency SEQUENTIAL = + BindingEventResponse_BindingEventConcurrency_SEQUENTIAL; + static const BindingEventConcurrency PARALLEL = + BindingEventResponse_BindingEventConcurrency_PARALLEL; + static inline bool BindingEventConcurrency_IsValid(int value) { + return BindingEventResponse_BindingEventConcurrency_IsValid(value); + } + static const BindingEventConcurrency BindingEventConcurrency_MIN = + BindingEventResponse_BindingEventConcurrency_BindingEventConcurrency_MIN; + static const BindingEventConcurrency BindingEventConcurrency_MAX = + BindingEventResponse_BindingEventConcurrency_BindingEventConcurrency_MAX; + static const int BindingEventConcurrency_ARRAYSIZE = + BindingEventResponse_BindingEventConcurrency_BindingEventConcurrency_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + BindingEventConcurrency_descriptor() { + return BindingEventResponse_BindingEventConcurrency_descriptor(); + } + static inline const ::std::string& BindingEventConcurrency_Name(BindingEventConcurrency value) { + return BindingEventResponse_BindingEventConcurrency_Name(value); + } + static inline bool BindingEventConcurrency_Parse(const ::std::string& name, + BindingEventConcurrency* value) { + return BindingEventResponse_BindingEventConcurrency_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // repeated .dapr.proto.common.v1.StateSaveRequest states = 2; + int states_size() const; + void clear_states(); + static const int kStatesFieldNumber = 2; + ::dapr::proto::common::v1::StateSaveRequest* mutable_states(int index); + ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::StateSaveRequest >* + mutable_states(); + const ::dapr::proto::common::v1::StateSaveRequest& states(int index) const; + ::dapr::proto::common::v1::StateSaveRequest* add_states(); + const ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::StateSaveRequest >& + states() const; + + // repeated string to = 3; + int to_size() const; + void clear_to(); + static const int kToFieldNumber = 3; + const ::std::string& to(int index) const; + ::std::string* mutable_to(int index); + void set_to(int index, const ::std::string& value); + #if LANG_CXX11 + void set_to(int index, ::std::string&& value); + #endif + void set_to(int index, const char* value); + void set_to(int index, const char* value, size_t size); + ::std::string* add_to(); + void add_to(const ::std::string& value); + #if LANG_CXX11 + void add_to(::std::string&& value); + #endif + void add_to(const char* value); + void add_to(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& to() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_to(); + + // string store_name = 1; + void clear_store_name(); + static const int kStoreNameFieldNumber = 1; + const ::std::string& store_name() const; + void set_store_name(const ::std::string& value); + #if LANG_CXX11 + void set_store_name(::std::string&& value); + #endif + void set_store_name(const char* value); + void set_store_name(const char* value, size_t size); + ::std::string* mutable_store_name(); + ::std::string* release_store_name(); + void set_allocated_store_name(::std::string* store_name); + + // bytes data = 4; + void clear_data(); + static const int kDataFieldNumber = 4; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const void* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5; + void clear_concurrency(); + static const int kConcurrencyFieldNumber = 5; + ::dapr::proto::runtime::v1::BindingEventResponse_BindingEventConcurrency concurrency() const; + void set_concurrency(::dapr::proto::runtime::v1::BindingEventResponse_BindingEventConcurrency value); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.BindingEventResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::StateSaveRequest > states_; + ::google::protobuf::RepeatedPtrField< ::std::string> to_; + ::google::protobuf::internal::ArenaStringPtr store_name_; + ::google::protobuf::internal::ArenaStringPtr data_; + int concurrency_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class ListTopicSubscriptionsResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) */ { + public: + ListTopicSubscriptionsResponse(); + virtual ~ListTopicSubscriptionsResponse(); + + ListTopicSubscriptionsResponse(const ListTopicSubscriptionsResponse& from); + + inline ListTopicSubscriptionsResponse& operator=(const ListTopicSubscriptionsResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ListTopicSubscriptionsResponse(ListTopicSubscriptionsResponse&& from) noexcept + : ListTopicSubscriptionsResponse() { + *this = ::std::move(from); + } + + inline ListTopicSubscriptionsResponse& operator=(ListTopicSubscriptionsResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ListTopicSubscriptionsResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ListTopicSubscriptionsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListTopicSubscriptionsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(ListTopicSubscriptionsResponse* other); + friend void swap(ListTopicSubscriptionsResponse& a, ListTopicSubscriptionsResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ListTopicSubscriptionsResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + ListTopicSubscriptionsResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ListTopicSubscriptionsResponse& from); + void MergeFrom(const ListTopicSubscriptionsResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListTopicSubscriptionsResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .dapr.proto.runtime.v1.TopicSubscription subscriptions = 1; + int subscriptions_size() const; + void clear_subscriptions(); + static const int kSubscriptionsFieldNumber = 1; + ::dapr::proto::runtime::v1::TopicSubscription* mutable_subscriptions(int index); + ::google::protobuf::RepeatedPtrField< ::dapr::proto::runtime::v1::TopicSubscription >* + mutable_subscriptions(); + const ::dapr::proto::runtime::v1::TopicSubscription& subscriptions(int index) const; + ::dapr::proto::runtime::v1::TopicSubscription* add_subscriptions(); + const ::google::protobuf::RepeatedPtrField< ::dapr::proto::runtime::v1::TopicSubscription >& + subscriptions() const; + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::dapr::proto::runtime::v1::TopicSubscription > subscriptions_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class TopicSubscription_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + TopicSubscription_MetadataEntry_DoNotUse(); + TopicSubscription_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const TopicSubscription_MetadataEntry_DoNotUse& other); + static const TopicSubscription_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TopicSubscription_MetadataEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class TopicSubscription : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.TopicSubscription) */ { + public: + TopicSubscription(); + virtual ~TopicSubscription(); + + TopicSubscription(const TopicSubscription& from); + + inline TopicSubscription& operator=(const TopicSubscription& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TopicSubscription(TopicSubscription&& from) noexcept + : TopicSubscription() { + *this = ::std::move(from); + } + + inline TopicSubscription& operator=(TopicSubscription&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TopicSubscription& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TopicSubscription* internal_default_instance() { + return reinterpret_cast( + &_TopicSubscription_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(TopicSubscription* other); + friend void swap(TopicSubscription& a, TopicSubscription& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TopicSubscription* New() const final { + return CreateMaybeMessage(NULL); + } + + TopicSubscription* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TopicSubscription& from); + void MergeFrom(const TopicSubscription& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TopicSubscription* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map metadata = 2; + int metadata_size() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 2; + const ::google::protobuf::Map< ::std::string, ::std::string >& + metadata() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_metadata(); + + // string topic = 1; + void clear_topic(); + static const int kTopicFieldNumber = 1; + const ::std::string& topic() const; + void set_topic(const ::std::string& value); + #if LANG_CXX11 + void set_topic(::std::string&& value); + #endif + void set_topic(const char* value); + void set_topic(const char* value, size_t size); + ::std::string* mutable_topic(); + ::std::string* release_topic(); + void set_allocated_topic(::std::string* topic); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.TopicSubscription) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + TopicSubscription_MetadataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > metadata_; + ::google::protobuf::internal::ArenaStringPtr topic_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class ListInputBindingsResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.ListInputBindingsResponse) */ { + public: + ListInputBindingsResponse(); + virtual ~ListInputBindingsResponse(); + + ListInputBindingsResponse(const ListInputBindingsResponse& from); + + inline ListInputBindingsResponse& operator=(const ListInputBindingsResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ListInputBindingsResponse(ListInputBindingsResponse&& from) noexcept + : ListInputBindingsResponse() { + *this = ::std::move(from); + } + + inline ListInputBindingsResponse& operator=(ListInputBindingsResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ListInputBindingsResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ListInputBindingsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListInputBindingsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(ListInputBindingsResponse* other); + friend void swap(ListInputBindingsResponse& a, ListInputBindingsResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ListInputBindingsResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + ListInputBindingsResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ListInputBindingsResponse& from); + void MergeFrom(const ListInputBindingsResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListInputBindingsResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string bindings = 1; + int bindings_size() const; + void clear_bindings(); + static const int kBindingsFieldNumber = 1; + const ::std::string& bindings(int index) const; + ::std::string* mutable_bindings(int index); + void set_bindings(int index, const ::std::string& value); + #if LANG_CXX11 + void set_bindings(int index, ::std::string&& value); + #endif + void set_bindings(int index, const char* value); + void set_bindings(int index, const char* value, size_t size); + ::std::string* add_bindings(); + void add_bindings(const ::std::string& value); + #if LANG_CXX11 + void add_bindings(::std::string&& value); + #endif + void add_bindings(const char* value); + void add_bindings(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& bindings() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_bindings(); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.ListInputBindingsResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::std::string> bindings_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// TopicEventRequest + +// string id = 1; +inline void TopicEventRequest::clear_id() { + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TopicEventRequest::id() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.TopicEventRequest.id) + return id_.GetNoArena(); +} +inline void TopicEventRequest::set_id(const ::std::string& value) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.TopicEventRequest.id) +} +#if LANG_CXX11 +inline void TopicEventRequest::set_id(::std::string&& value) { + + id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.TopicEventRequest.id) +} +#endif +inline void TopicEventRequest::set_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.TopicEventRequest.id) +} +inline void TopicEventRequest::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.TopicEventRequest.id) +} +inline ::std::string* TopicEventRequest::mutable_id() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.TopicEventRequest.id) + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TopicEventRequest::release_id() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.TopicEventRequest.id) + + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TopicEventRequest::set_allocated_id(::std::string* id) { + if (id != NULL) { + + } else { + + } + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.TopicEventRequest.id) +} + +// string source = 2; +inline void TopicEventRequest::clear_source() { + source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TopicEventRequest::source() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.TopicEventRequest.source) + return source_.GetNoArena(); +} +inline void TopicEventRequest::set_source(const ::std::string& value) { + + source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.TopicEventRequest.source) +} +#if LANG_CXX11 +inline void TopicEventRequest::set_source(::std::string&& value) { + + source_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.TopicEventRequest.source) +} +#endif +inline void TopicEventRequest::set_source(const char* value) { + GOOGLE_DCHECK(value != NULL); + + source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.TopicEventRequest.source) +} +inline void TopicEventRequest::set_source(const char* value, size_t size) { + + source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.TopicEventRequest.source) +} +inline ::std::string* TopicEventRequest::mutable_source() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.TopicEventRequest.source) + return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TopicEventRequest::release_source() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.TopicEventRequest.source) + + return source_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TopicEventRequest::set_allocated_source(::std::string* source) { + if (source != NULL) { + + } else { + + } + source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.TopicEventRequest.source) +} + +// string type = 3; +inline void TopicEventRequest::clear_type() { + type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TopicEventRequest::type() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.TopicEventRequest.type) + return type_.GetNoArena(); +} +inline void TopicEventRequest::set_type(const ::std::string& value) { + + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.TopicEventRequest.type) +} +#if LANG_CXX11 +inline void TopicEventRequest::set_type(::std::string&& value) { + + type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.TopicEventRequest.type) +} +#endif +inline void TopicEventRequest::set_type(const char* value) { + GOOGLE_DCHECK(value != NULL); + + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.TopicEventRequest.type) +} +inline void TopicEventRequest::set_type(const char* value, size_t size) { + + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.TopicEventRequest.type) +} +inline ::std::string* TopicEventRequest::mutable_type() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.TopicEventRequest.type) + return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TopicEventRequest::release_type() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.TopicEventRequest.type) + + return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TopicEventRequest::set_allocated_type(::std::string* type) { + if (type != NULL) { + + } else { + + } + type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.TopicEventRequest.type) +} + +// string spec_version = 4; +inline void TopicEventRequest::clear_spec_version() { + spec_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TopicEventRequest::spec_version() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.TopicEventRequest.spec_version) + return spec_version_.GetNoArena(); +} +inline void TopicEventRequest::set_spec_version(const ::std::string& value) { + + spec_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.TopicEventRequest.spec_version) +} +#if LANG_CXX11 +inline void TopicEventRequest::set_spec_version(::std::string&& value) { + + spec_version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.TopicEventRequest.spec_version) +} +#endif +inline void TopicEventRequest::set_spec_version(const char* value) { + GOOGLE_DCHECK(value != NULL); + + spec_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.TopicEventRequest.spec_version) +} +inline void TopicEventRequest::set_spec_version(const char* value, size_t size) { + + spec_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.TopicEventRequest.spec_version) +} +inline ::std::string* TopicEventRequest::mutable_spec_version() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.TopicEventRequest.spec_version) + return spec_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TopicEventRequest::release_spec_version() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.TopicEventRequest.spec_version) + + return spec_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TopicEventRequest::set_allocated_spec_version(::std::string* spec_version) { + if (spec_version != NULL) { + + } else { + + } + spec_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), spec_version); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.TopicEventRequest.spec_version) +} + +// string data_content_type = 5; +inline void TopicEventRequest::clear_data_content_type() { + data_content_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TopicEventRequest::data_content_type() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.TopicEventRequest.data_content_type) + return data_content_type_.GetNoArena(); +} +inline void TopicEventRequest::set_data_content_type(const ::std::string& value) { + + data_content_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.TopicEventRequest.data_content_type) +} +#if LANG_CXX11 +inline void TopicEventRequest::set_data_content_type(::std::string&& value) { + + data_content_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.TopicEventRequest.data_content_type) +} +#endif +inline void TopicEventRequest::set_data_content_type(const char* value) { + GOOGLE_DCHECK(value != NULL); + + data_content_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.TopicEventRequest.data_content_type) +} +inline void TopicEventRequest::set_data_content_type(const char* value, size_t size) { + + data_content_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.TopicEventRequest.data_content_type) +} +inline ::std::string* TopicEventRequest::mutable_data_content_type() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.TopicEventRequest.data_content_type) + return data_content_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TopicEventRequest::release_data_content_type() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.TopicEventRequest.data_content_type) + + return data_content_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TopicEventRequest::set_allocated_data_content_type(::std::string* data_content_type) { + if (data_content_type != NULL) { + + } else { + + } + data_content_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_content_type); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.TopicEventRequest.data_content_type) +} + +// bytes data = 7; +inline void TopicEventRequest::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TopicEventRequest::data() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.TopicEventRequest.data) + return data_.GetNoArena(); +} +inline void TopicEventRequest::set_data(const ::std::string& value) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.TopicEventRequest.data) +} +#if LANG_CXX11 +inline void TopicEventRequest::set_data(::std::string&& value) { + + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.TopicEventRequest.data) +} +#endif +inline void TopicEventRequest::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.TopicEventRequest.data) +} +inline void TopicEventRequest::set_data(const void* value, size_t size) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.TopicEventRequest.data) +} +inline ::std::string* TopicEventRequest::mutable_data() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.TopicEventRequest.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TopicEventRequest::release_data() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.TopicEventRequest.data) + + return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TopicEventRequest::set_allocated_data(::std::string* data) { + if (data != NULL) { + + } else { + + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.TopicEventRequest.data) +} + +// string topic = 6; +inline void TopicEventRequest::clear_topic() { + topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TopicEventRequest::topic() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.TopicEventRequest.topic) + return topic_.GetNoArena(); +} +inline void TopicEventRequest::set_topic(const ::std::string& value) { + + topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.TopicEventRequest.topic) +} +#if LANG_CXX11 +inline void TopicEventRequest::set_topic(::std::string&& value) { + + topic_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.TopicEventRequest.topic) +} +#endif +inline void TopicEventRequest::set_topic(const char* value) { + GOOGLE_DCHECK(value != NULL); + + topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.TopicEventRequest.topic) +} +inline void TopicEventRequest::set_topic(const char* value, size_t size) { + + topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.TopicEventRequest.topic) +} +inline ::std::string* TopicEventRequest::mutable_topic() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.TopicEventRequest.topic) + return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TopicEventRequest::release_topic() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.TopicEventRequest.topic) + + return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TopicEventRequest::set_allocated_topic(::std::string* topic) { + if (topic != NULL) { + + } else { + + } + topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.TopicEventRequest.topic) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// BindingEventRequest + +// string name = 1; +inline void BindingEventRequest::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& BindingEventRequest::name() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.BindingEventRequest.name) + return name_.GetNoArena(); +} +inline void BindingEventRequest::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.BindingEventRequest.name) +} +#if LANG_CXX11 +inline void BindingEventRequest::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.BindingEventRequest.name) +} +#endif +inline void BindingEventRequest::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.BindingEventRequest.name) +} +inline void BindingEventRequest::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.BindingEventRequest.name) +} +inline ::std::string* BindingEventRequest::mutable_name() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.BindingEventRequest.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BindingEventRequest::release_name() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.BindingEventRequest.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BindingEventRequest::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.BindingEventRequest.name) +} + +// bytes data = 2; +inline void BindingEventRequest::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& BindingEventRequest::data() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.BindingEventRequest.data) + return data_.GetNoArena(); +} +inline void BindingEventRequest::set_data(const ::std::string& value) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.BindingEventRequest.data) +} +#if LANG_CXX11 +inline void BindingEventRequest::set_data(::std::string&& value) { + + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.BindingEventRequest.data) +} +#endif +inline void BindingEventRequest::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.BindingEventRequest.data) +} +inline void BindingEventRequest::set_data(const void* value, size_t size) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.BindingEventRequest.data) +} +inline ::std::string* BindingEventRequest::mutable_data() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.BindingEventRequest.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BindingEventRequest::release_data() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.BindingEventRequest.data) + + return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BindingEventRequest::set_allocated_data(::std::string* data) { + if (data != NULL) { + + } else { + + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.BindingEventRequest.data) +} + +// map metadata = 3; +inline int BindingEventRequest::metadata_size() const { + return metadata_.size(); +} +inline void BindingEventRequest::clear_metadata() { + metadata_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +BindingEventRequest::metadata() const { + // @@protoc_insertion_point(field_map:dapr.proto.runtime.v1.BindingEventRequest.metadata) + return metadata_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +BindingEventRequest::mutable_metadata() { + // @@protoc_insertion_point(field_mutable_map:dapr.proto.runtime.v1.BindingEventRequest.metadata) + return metadata_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// BindingEventResponse + +// string store_name = 1; +inline void BindingEventResponse::clear_store_name() { + store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& BindingEventResponse::store_name() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.BindingEventResponse.store_name) + return store_name_.GetNoArena(); +} +inline void BindingEventResponse::set_store_name(const ::std::string& value) { + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.BindingEventResponse.store_name) +} +#if LANG_CXX11 +inline void BindingEventResponse::set_store_name(::std::string&& value) { + + store_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.BindingEventResponse.store_name) +} +#endif +inline void BindingEventResponse::set_store_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.BindingEventResponse.store_name) +} +inline void BindingEventResponse::set_store_name(const char* value, size_t size) { + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.BindingEventResponse.store_name) +} +inline ::std::string* BindingEventResponse::mutable_store_name() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.BindingEventResponse.store_name) + return store_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BindingEventResponse::release_store_name() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.BindingEventResponse.store_name) + + return store_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BindingEventResponse::set_allocated_store_name(::std::string* store_name) { + if (store_name != NULL) { + + } else { + + } + store_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), store_name); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.BindingEventResponse.store_name) +} + +// repeated .dapr.proto.common.v1.StateSaveRequest states = 2; +inline int BindingEventResponse::states_size() const { + return states_.size(); +} +inline ::dapr::proto::common::v1::StateSaveRequest* BindingEventResponse::mutable_states(int index) { + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.BindingEventResponse.states) + return states_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::StateSaveRequest >* +BindingEventResponse::mutable_states() { + // @@protoc_insertion_point(field_mutable_list:dapr.proto.runtime.v1.BindingEventResponse.states) + return &states_; +} +inline const ::dapr::proto::common::v1::StateSaveRequest& BindingEventResponse::states(int index) const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.BindingEventResponse.states) + return states_.Get(index); +} +inline ::dapr::proto::common::v1::StateSaveRequest* BindingEventResponse::add_states() { + // @@protoc_insertion_point(field_add:dapr.proto.runtime.v1.BindingEventResponse.states) + return states_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::StateSaveRequest >& +BindingEventResponse::states() const { + // @@protoc_insertion_point(field_list:dapr.proto.runtime.v1.BindingEventResponse.states) + return states_; +} + +// repeated string to = 3; +inline int BindingEventResponse::to_size() const { + return to_.size(); +} +inline void BindingEventResponse::clear_to() { + to_.Clear(); +} +inline const ::std::string& BindingEventResponse::to(int index) const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.BindingEventResponse.to) + return to_.Get(index); +} +inline ::std::string* BindingEventResponse::mutable_to(int index) { + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.BindingEventResponse.to) + return to_.Mutable(index); +} +inline void BindingEventResponse::set_to(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.BindingEventResponse.to) + to_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void BindingEventResponse::set_to(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.BindingEventResponse.to) + to_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void BindingEventResponse::set_to(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + to_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.BindingEventResponse.to) +} +inline void BindingEventResponse::set_to(int index, const char* value, size_t size) { + to_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.BindingEventResponse.to) +} +inline ::std::string* BindingEventResponse::add_to() { + // @@protoc_insertion_point(field_add_mutable:dapr.proto.runtime.v1.BindingEventResponse.to) + return to_.Add(); +} +inline void BindingEventResponse::add_to(const ::std::string& value) { + to_.Add()->assign(value); + // @@protoc_insertion_point(field_add:dapr.proto.runtime.v1.BindingEventResponse.to) +} +#if LANG_CXX11 +inline void BindingEventResponse::add_to(::std::string&& value) { + to_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:dapr.proto.runtime.v1.BindingEventResponse.to) +} +#endif +inline void BindingEventResponse::add_to(const char* value) { + GOOGLE_DCHECK(value != NULL); + to_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:dapr.proto.runtime.v1.BindingEventResponse.to) +} +inline void BindingEventResponse::add_to(const char* value, size_t size) { + to_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:dapr.proto.runtime.v1.BindingEventResponse.to) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +BindingEventResponse::to() const { + // @@protoc_insertion_point(field_list:dapr.proto.runtime.v1.BindingEventResponse.to) + return to_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +BindingEventResponse::mutable_to() { + // @@protoc_insertion_point(field_mutable_list:dapr.proto.runtime.v1.BindingEventResponse.to) + return &to_; +} + +// bytes data = 4; +inline void BindingEventResponse::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& BindingEventResponse::data() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.BindingEventResponse.data) + return data_.GetNoArena(); +} +inline void BindingEventResponse::set_data(const ::std::string& value) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.BindingEventResponse.data) +} +#if LANG_CXX11 +inline void BindingEventResponse::set_data(::std::string&& value) { + + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.BindingEventResponse.data) +} +#endif +inline void BindingEventResponse::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.BindingEventResponse.data) +} +inline void BindingEventResponse::set_data(const void* value, size_t size) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.BindingEventResponse.data) +} +inline ::std::string* BindingEventResponse::mutable_data() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.BindingEventResponse.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BindingEventResponse::release_data() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.BindingEventResponse.data) + + return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BindingEventResponse::set_allocated_data(::std::string* data) { + if (data != NULL) { + + } else { + + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.BindingEventResponse.data) +} + +// .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5; +inline void BindingEventResponse::clear_concurrency() { + concurrency_ = 0; +} +inline ::dapr::proto::runtime::v1::BindingEventResponse_BindingEventConcurrency BindingEventResponse::concurrency() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.BindingEventResponse.concurrency) + return static_cast< ::dapr::proto::runtime::v1::BindingEventResponse_BindingEventConcurrency >(concurrency_); +} +inline void BindingEventResponse::set_concurrency(::dapr::proto::runtime::v1::BindingEventResponse_BindingEventConcurrency value) { + + concurrency_ = value; + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.BindingEventResponse.concurrency) +} + +// ------------------------------------------------------------------- + +// ListTopicSubscriptionsResponse + +// repeated .dapr.proto.runtime.v1.TopicSubscription subscriptions = 1; +inline int ListTopicSubscriptionsResponse::subscriptions_size() const { + return subscriptions_.size(); +} +inline void ListTopicSubscriptionsResponse::clear_subscriptions() { + subscriptions_.Clear(); +} +inline ::dapr::proto::runtime::v1::TopicSubscription* ListTopicSubscriptionsResponse::mutable_subscriptions(int index) { + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.subscriptions) + return subscriptions_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::dapr::proto::runtime::v1::TopicSubscription >* +ListTopicSubscriptionsResponse::mutable_subscriptions() { + // @@protoc_insertion_point(field_mutable_list:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.subscriptions) + return &subscriptions_; +} +inline const ::dapr::proto::runtime::v1::TopicSubscription& ListTopicSubscriptionsResponse::subscriptions(int index) const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.subscriptions) + return subscriptions_.Get(index); +} +inline ::dapr::proto::runtime::v1::TopicSubscription* ListTopicSubscriptionsResponse::add_subscriptions() { + // @@protoc_insertion_point(field_add:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.subscriptions) + return subscriptions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::dapr::proto::runtime::v1::TopicSubscription >& +ListTopicSubscriptionsResponse::subscriptions() const { + // @@protoc_insertion_point(field_list:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.subscriptions) + return subscriptions_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// TopicSubscription + +// string topic = 1; +inline void TopicSubscription::clear_topic() { + topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TopicSubscription::topic() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.TopicSubscription.topic) + return topic_.GetNoArena(); +} +inline void TopicSubscription::set_topic(const ::std::string& value) { + + topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.TopicSubscription.topic) +} +#if LANG_CXX11 +inline void TopicSubscription::set_topic(::std::string&& value) { + + topic_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.TopicSubscription.topic) +} +#endif +inline void TopicSubscription::set_topic(const char* value) { + GOOGLE_DCHECK(value != NULL); + + topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.TopicSubscription.topic) +} +inline void TopicSubscription::set_topic(const char* value, size_t size) { + + topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.TopicSubscription.topic) +} +inline ::std::string* TopicSubscription::mutable_topic() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.TopicSubscription.topic) + return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TopicSubscription::release_topic() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.TopicSubscription.topic) + + return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TopicSubscription::set_allocated_topic(::std::string* topic) { + if (topic != NULL) { + + } else { + + } + topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.TopicSubscription.topic) +} + +// map metadata = 2; +inline int TopicSubscription::metadata_size() const { + return metadata_.size(); +} +inline void TopicSubscription::clear_metadata() { + metadata_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +TopicSubscription::metadata() const { + // @@protoc_insertion_point(field_map:dapr.proto.runtime.v1.TopicSubscription.metadata) + return metadata_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +TopicSubscription::mutable_metadata() { + // @@protoc_insertion_point(field_mutable_map:dapr.proto.runtime.v1.TopicSubscription.metadata) + return metadata_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// ListInputBindingsResponse + +// repeated string bindings = 1; +inline int ListInputBindingsResponse::bindings_size() const { + return bindings_.size(); +} +inline void ListInputBindingsResponse::clear_bindings() { + bindings_.Clear(); +} +inline const ::std::string& ListInputBindingsResponse::bindings(int index) const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) + return bindings_.Get(index); +} +inline ::std::string* ListInputBindingsResponse::mutable_bindings(int index) { + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) + return bindings_.Mutable(index); +} +inline void ListInputBindingsResponse::set_bindings(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) + bindings_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void ListInputBindingsResponse::set_bindings(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) + bindings_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void ListInputBindingsResponse::set_bindings(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + bindings_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) +} +inline void ListInputBindingsResponse::set_bindings(int index, const char* value, size_t size) { + bindings_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) +} +inline ::std::string* ListInputBindingsResponse::add_bindings() { + // @@protoc_insertion_point(field_add_mutable:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) + return bindings_.Add(); +} +inline void ListInputBindingsResponse::add_bindings(const ::std::string& value) { + bindings_.Add()->assign(value); + // @@protoc_insertion_point(field_add:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) +} +#if LANG_CXX11 +inline void ListInputBindingsResponse::add_bindings(::std::string&& value) { + bindings_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) +} +#endif +inline void ListInputBindingsResponse::add_bindings(const char* value) { + GOOGLE_DCHECK(value != NULL); + bindings_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) +} +inline void ListInputBindingsResponse::add_bindings(const char* value, size_t size) { + bindings_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +ListInputBindingsResponse::bindings() const { + // @@protoc_insertion_point(field_list:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) + return bindings_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +ListInputBindingsResponse::mutable_bindings() { + // @@protoc_insertion_point(field_mutable_list:dapr.proto.runtime.v1.ListInputBindingsResponse.bindings) + return &bindings_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace runtime +} // namespace proto +} // namespace dapr + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::dapr::proto::runtime::v1::BindingEventResponse_BindingEventConcurrency> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::dapr::proto::runtime::v1::BindingEventResponse_BindingEventConcurrency>() { + return ::dapr::proto::runtime::v1::BindingEventResponse_BindingEventConcurrency_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto diff --git a/src/dapr/proto/dapr/v1/dapr.grpc.pb.cc b/src/dapr/proto/runtime/v1/dapr.grpc.pb.cc similarity index 63% rename from src/dapr/proto/dapr/v1/dapr.grpc.pb.cc rename to src/dapr/proto/runtime/v1/dapr.grpc.pb.cc index a37dadd..38a0d68 100644 --- a/src/dapr/proto/dapr/v1/dapr.grpc.pb.cc +++ b/src/dapr/proto/runtime/v1/dapr.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: dapr/proto/dapr/v1/dapr.proto +// source: dapr/proto/runtime/v1/dapr.proto -#include "dapr/proto/dapr/v1/dapr.pb.h" -#include "dapr/proto/dapr/v1/dapr.grpc.pb.h" +#include "dapr/proto/runtime/v1/dapr.pb.h" +#include "dapr/proto/runtime/v1/dapr.grpc.pb.h" #include #include @@ -17,17 +17,17 @@ #include namespace dapr { namespace proto { -namespace dapr { +namespace runtime { namespace v1 { static const char* Dapr_method_names[] = { - "/dapr.proto.dapr.v1.Dapr/PublishEvent", - "/dapr.proto.dapr.v1.Dapr/InvokeService", - "/dapr.proto.dapr.v1.Dapr/InvokeBinding", - "/dapr.proto.dapr.v1.Dapr/GetState", - "/dapr.proto.dapr.v1.Dapr/GetSecret", - "/dapr.proto.dapr.v1.Dapr/SaveState", - "/dapr.proto.dapr.v1.Dapr/DeleteState", + "/dapr.proto.runtime.v1.Dapr/InvokeService", + "/dapr.proto.runtime.v1.Dapr/GetState", + "/dapr.proto.runtime.v1.Dapr/SaveState", + "/dapr.proto.runtime.v1.Dapr/DeleteState", + "/dapr.proto.runtime.v1.Dapr/PublishEvent", + "/dapr.proto.runtime.v1.Dapr/InvokeBinding", + "/dapr.proto.runtime.v1.Dapr/GetSecret", }; std::unique_ptr< Dapr::Stub> Dapr::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -37,211 +37,211 @@ std::unique_ptr< Dapr::Stub> Dapr::NewStub(const std::shared_ptr< ::grpc::Channe } Dapr::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_PublishEvent_(Dapr_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_InvokeService_(Dapr_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_InvokeBinding_(Dapr_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetState_(Dapr_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetSecret_(Dapr_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SaveState_(Dapr_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteState_(Dapr_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + : channel_(channel), rpcmethod_InvokeService_(Dapr_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetState_(Dapr_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SaveState_(Dapr_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteState_(Dapr_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PublishEvent_(Dapr_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_InvokeBinding_(Dapr_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetSecret_(Dapr_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} -::grpc::Status Dapr::Stub::PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::google::protobuf::Empty* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_PublishEvent_, context, request, response); +::grpc::Status Dapr::Stub::InvokeService(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::dapr::proto::common::v1::InvokeResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_InvokeService_, context, request, response); } -void Dapr::Stub::experimental_async::PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope* request, ::google::protobuf::Empty* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PublishEvent_, context, request, response, std::move(f)); +void Dapr::Stub::experimental_async::InvokeService(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InvokeService_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::AsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_PublishEvent_, context, request, true); +::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* Dapr::Stub::AsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::common::v1::InvokeResponse>::Create(channel_.get(), cq, rpcmethod_InvokeService_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::PrepareAsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_PublishEvent_, context, request, false); +::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* Dapr::Stub::PrepareAsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::common::v1::InvokeResponse>::Create(channel_.get(), cq, rpcmethod_InvokeService_, context, request, false); } -::grpc::Status Dapr::Stub::InvokeService(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::dapr::proto::common::v1::InvokeResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_InvokeService_, context, request, response); +::grpc::Status Dapr::Stub::GetState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::dapr::proto::runtime::v1::GetStateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetState_, context, request, response); } -void Dapr::Stub::experimental_async::InvokeService(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InvokeService_, context, request, response, std::move(f)); +void Dapr::Stub::experimental_async::GetState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest* request, ::dapr::proto::runtime::v1::GetStateResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetState_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* Dapr::Stub::AsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::common::v1::InvokeResponse>::Create(channel_.get(), cq, rpcmethod_InvokeService_, context, request, true); +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetStateResponse>* Dapr::Stub::AsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::GetStateResponse>::Create(channel_.get(), cq, rpcmethod_GetState_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* Dapr::Stub::PrepareAsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::common::v1::InvokeResponse>::Create(channel_.get(), cq, rpcmethod_InvokeService_, context, request, false); +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetStateResponse>* Dapr::Stub::PrepareAsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::GetStateResponse>::Create(channel_.get(), cq, rpcmethod_GetState_, context, request, false); } -::grpc::Status Dapr::Stub::InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::google::protobuf::Empty* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_InvokeBinding_, context, request, response); +::grpc::Status Dapr::Stub::SaveState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::google::protobuf::Empty* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SaveState_, context, request, response); } -void Dapr::Stub::experimental_async::InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope* request, ::google::protobuf::Empty* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InvokeBinding_, context, request, response, std::move(f)); +void Dapr::Stub::experimental_async::SaveState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest* request, ::google::protobuf::Empty* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SaveState_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::AsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_InvokeBinding_, context, request, true); +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::AsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_SaveState_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::PrepareAsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_InvokeBinding_, context, request, false); +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::PrepareAsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_SaveState_, context, request, false); } -::grpc::Status Dapr::Stub::GetState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetState_, context, request, response); +::grpc::Status Dapr::Stub::DeleteState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::google::protobuf::Empty* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteState_, context, request, response); } -void Dapr::Stub::experimental_async::GetState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope* request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetState_, context, request, response, std::move(f)); +void Dapr::Stub::experimental_async::DeleteState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest* request, ::google::protobuf::Empty* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteState_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>* Dapr::Stub::AsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>::Create(channel_.get(), cq, rpcmethod_GetState_, context, request, true); +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::AsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_DeleteState_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>* Dapr::Stub::PrepareAsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>::Create(channel_.get(), cq, rpcmethod_GetState_, context, request, false); +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::PrepareAsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_DeleteState_, context, request, false); } -::grpc::Status Dapr::Stub::GetSecret(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetSecret_, context, request, response); +::grpc::Status Dapr::Stub::PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::google::protobuf::Empty* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_PublishEvent_, context, request, response); } -void Dapr::Stub::experimental_async::GetSecret(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope* request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetSecret_, context, request, response, std::move(f)); +void Dapr::Stub::experimental_async::PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest* request, ::google::protobuf::Empty* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PublishEvent_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>* Dapr::Stub::AsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>::Create(channel_.get(), cq, rpcmethod_GetSecret_, context, request, true); +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::AsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_PublishEvent_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>* Dapr::Stub::PrepareAsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>::Create(channel_.get(), cq, rpcmethod_GetSecret_, context, request, false); +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::PrepareAsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_PublishEvent_, context, request, false); } -::grpc::Status Dapr::Stub::SaveState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::google::protobuf::Empty* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SaveState_, context, request, response); +::grpc::Status Dapr::Stub::InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::google::protobuf::Empty* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_InvokeBinding_, context, request, response); } -void Dapr::Stub::experimental_async::SaveState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope* request, ::google::protobuf::Empty* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SaveState_, context, request, response, std::move(f)); +void Dapr::Stub::experimental_async::InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest* request, ::google::protobuf::Empty* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InvokeBinding_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::AsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_SaveState_, context, request, true); +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::AsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_InvokeBinding_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::PrepareAsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_SaveState_, context, request, false); +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::PrepareAsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_InvokeBinding_, context, request, false); } -::grpc::Status Dapr::Stub::DeleteState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::google::protobuf::Empty* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteState_, context, request, response); +::grpc::Status Dapr::Stub::GetSecret(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::dapr::proto::runtime::v1::GetSecretResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetSecret_, context, request, response); } -void Dapr::Stub::experimental_async::DeleteState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope* request, ::google::protobuf::Empty* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteState_, context, request, response, std::move(f)); +void Dapr::Stub::experimental_async::GetSecret(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest* request, ::dapr::proto::runtime::v1::GetSecretResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetSecret_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::AsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_DeleteState_, context, request, true); +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetSecretResponse>* Dapr::Stub::AsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::GetSecretResponse>::Create(channel_.get(), cq, rpcmethod_GetSecret_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Dapr::Stub::PrepareAsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_DeleteState_, context, request, false); +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetSecretResponse>* Dapr::Stub::PrepareAsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::GetSecretResponse>::Create(channel_.get(), cq, rpcmethod_GetSecret_, context, request, false); } Dapr::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( Dapr_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::dapr::v1::PublishEventEnvelope, ::google::protobuf::Empty>( - std::mem_fn(&Dapr::Service::PublishEvent), this))); + new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::runtime::v1::InvokeServiceRequest, ::dapr::proto::common::v1::InvokeResponse>( + std::mem_fn(&Dapr::Service::InvokeService), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Dapr_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::dapr::v1::InvokeServiceRequest, ::dapr::proto::common::v1::InvokeResponse>( - std::mem_fn(&Dapr::Service::InvokeService), this))); + new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::runtime::v1::GetStateRequest, ::dapr::proto::runtime::v1::GetStateResponse>( + std::mem_fn(&Dapr::Service::GetState), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Dapr_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::dapr::v1::InvokeBindingEnvelope, ::google::protobuf::Empty>( - std::mem_fn(&Dapr::Service::InvokeBinding), this))); + new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::runtime::v1::SaveStateRequest, ::google::protobuf::Empty>( + std::mem_fn(&Dapr::Service::SaveState), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Dapr_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::dapr::v1::GetStateEnvelope, ::dapr::proto::dapr::v1::GetStateResponseEnvelope>( - std::mem_fn(&Dapr::Service::GetState), this))); + new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::runtime::v1::DeleteStateRequest, ::google::protobuf::Empty>( + std::mem_fn(&Dapr::Service::DeleteState), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Dapr_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::dapr::v1::GetSecretEnvelope, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>( - std::mem_fn(&Dapr::Service::GetSecret), this))); + new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::runtime::v1::PublishEventRequest, ::google::protobuf::Empty>( + std::mem_fn(&Dapr::Service::PublishEvent), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Dapr_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::dapr::v1::SaveStateEnvelope, ::google::protobuf::Empty>( - std::mem_fn(&Dapr::Service::SaveState), this))); + new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::runtime::v1::InvokeBindingRequest, ::google::protobuf::Empty>( + std::mem_fn(&Dapr::Service::InvokeBinding), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Dapr_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::dapr::v1::DeleteStateEnvelope, ::google::protobuf::Empty>( - std::mem_fn(&Dapr::Service::DeleteState), this))); + new ::grpc::internal::RpcMethodHandler< Dapr::Service, ::dapr::proto::runtime::v1::GetSecretRequest, ::dapr::proto::runtime::v1::GetSecretResponse>( + std::mem_fn(&Dapr::Service::GetSecret), this))); } Dapr::Service::~Service() { } -::grpc::Status Dapr::Service::PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope* request, ::google::protobuf::Empty* response) { +::grpc::Status Dapr::Service::InvokeService(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Dapr::Service::InvokeService(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) { +::grpc::Status Dapr::Service::GetState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetStateRequest* request, ::dapr::proto::runtime::v1::GetStateResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Dapr::Service::InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope* request, ::google::protobuf::Empty* response) { +::grpc::Status Dapr::Service::SaveState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest* request, ::google::protobuf::Empty* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Dapr::Service::GetState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope* request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response) { +::grpc::Status Dapr::Service::DeleteState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest* request, ::google::protobuf::Empty* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Dapr::Service::GetSecret(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope* request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response) { +::grpc::Status Dapr::Service::PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest* request, ::google::protobuf::Empty* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Dapr::Service::SaveState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope* request, ::google::protobuf::Empty* response) { +::grpc::Status Dapr::Service::InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest* request, ::google::protobuf::Empty* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Dapr::Service::DeleteState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope* request, ::google::protobuf::Empty* response) { +::grpc::Status Dapr::Service::GetSecret(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest* request, ::dapr::proto::runtime::v1::GetSecretResponse* response) { (void) context; (void) request; (void) response; @@ -251,6 +251,6 @@ ::grpc::Status Dapr::Service::DeleteState(::grpc::ServerContext* context, const } // namespace dapr } // namespace proto -} // namespace dapr +} // namespace runtime } // namespace v1 diff --git a/src/dapr/proto/dapr/v1/dapr.grpc.pb.h b/src/dapr/proto/runtime/v1/dapr.grpc.pb.h similarity index 64% rename from src/dapr/proto/dapr/v1/dapr.grpc.pb.h rename to src/dapr/proto/runtime/v1/dapr.grpc.pb.h index 470fc6a..6ad78bd 100644 --- a/src/dapr/proto/dapr/v1/dapr.grpc.pb.h +++ b/src/dapr/proto/runtime/v1/dapr.grpc.pb.h @@ -1,16 +1,16 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: dapr/proto/dapr/v1/dapr.proto +// source: dapr/proto/runtime/v1/dapr.proto // Original file comments: // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // ------------------------------------------------------------ // -#ifndef GRPC_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto__INCLUDED -#define GRPC_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto__INCLUDED +#ifndef GRPC_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto__INCLUDED +#define GRPC_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto__INCLUDED -#include "dapr/proto/dapr/v1/dapr.pb.h" +#include "dapr/proto/runtime/v1/dapr.pb.h" #include #include @@ -33,157 +33,171 @@ class ServerContext; namespace dapr { namespace proto { -namespace dapr { +namespace runtime { namespace v1 { // Dapr service provides APIs to user application to access Dapr building blocks. class Dapr final { public: static constexpr char const* service_full_name() { - return "dapr.proto.dapr.v1.Dapr"; + return "dapr.proto.runtime.v1.Dapr"; } class StubInterface { public: virtual ~StubInterface() {} - virtual ::grpc::Status PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::google::protobuf::Empty* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncPublishEvent(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncPublishEventRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncPublishEvent(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncPublishEventRaw(context, request, cq)); - } - virtual ::grpc::Status InvokeService(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::dapr::proto::common::v1::InvokeResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>> AsyncInvokeService(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { + // Invokes a method on a remote Dapr app. + virtual ::grpc::Status InvokeService(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::dapr::proto::common::v1::InvokeResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>> AsyncInvokeService(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>>(AsyncInvokeServiceRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>> PrepareAsyncInvokeService(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>> PrepareAsyncInvokeService(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>>(PrepareAsyncInvokeServiceRaw(context, request, cq)); } - virtual ::grpc::Status InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::google::protobuf::Empty* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncInvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncInvokeBindingRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncInvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncInvokeBindingRaw(context, request, cq)); + // Gets the state for a specific key. + virtual ::grpc::Status GetState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::dapr::proto::runtime::v1::GetStateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetStateResponse>> AsyncGetState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetStateResponse>>(AsyncGetStateRaw(context, request, cq)); } - virtual ::grpc::Status GetState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>> AsyncGetState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>>(AsyncGetStateRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetStateResponse>> PrepareAsyncGetState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetStateResponse>>(PrepareAsyncGetStateRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>> PrepareAsyncGetState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>>(PrepareAsyncGetStateRaw(context, request, cq)); - } - virtual ::grpc::Status GetSecret(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>> AsyncGetSecret(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>>(AsyncGetSecretRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>> PrepareAsyncGetSecret(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>>(PrepareAsyncGetSecretRaw(context, request, cq)); - } - virtual ::grpc::Status SaveState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::google::protobuf::Empty* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncSaveState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::grpc::CompletionQueue* cq) { + // Saves the state for a specific key. + virtual ::grpc::Status SaveState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::google::protobuf::Empty* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncSaveState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncSaveStateRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncSaveState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::grpc::CompletionQueue* cq) { + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncSaveState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncSaveStateRaw(context, request, cq)); } - virtual ::grpc::Status DeleteState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::google::protobuf::Empty* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncDeleteState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::grpc::CompletionQueue* cq) { + // Deletes the state for a specific key. + virtual ::grpc::Status DeleteState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::google::protobuf::Empty* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncDeleteState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncDeleteStateRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncDeleteState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::grpc::CompletionQueue* cq) { + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncDeleteState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncDeleteStateRaw(context, request, cq)); } + // Publishes events to the specific topic. + virtual ::grpc::Status PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::google::protobuf::Empty* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncPublishEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncPublishEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncPublishEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncPublishEventRaw(context, request, cq)); + } + // Invokes binding data to specific output bindings + virtual ::grpc::Status InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::google::protobuf::Empty* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncInvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncInvokeBindingRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncInvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncInvokeBindingRaw(context, request, cq)); + } + // Gets secrets from secret stores. + virtual ::grpc::Status GetSecret(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::dapr::proto::runtime::v1::GetSecretResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetSecretResponse>> AsyncGetSecret(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetSecretResponse>>(AsyncGetSecretRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetSecretResponse>> PrepareAsyncGetSecret(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetSecretResponse>>(PrepareAsyncGetSecretRaw(context, request, cq)); + } class experimental_async_interface { public: virtual ~experimental_async_interface() {} - virtual void PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope* request, ::google::protobuf::Empty* response, std::function) = 0; - virtual void InvokeService(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response, std::function) = 0; - virtual void InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope* request, ::google::protobuf::Empty* response, std::function) = 0; - virtual void GetState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope* request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response, std::function) = 0; - virtual void GetSecret(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope* request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response, std::function) = 0; - virtual void SaveState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope* request, ::google::protobuf::Empty* response, std::function) = 0; - virtual void DeleteState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope* request, ::google::protobuf::Empty* response, std::function) = 0; + // Invokes a method on a remote Dapr app. + virtual void InvokeService(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response, std::function) = 0; + // Gets the state for a specific key. + virtual void GetState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest* request, ::dapr::proto::runtime::v1::GetStateResponse* response, std::function) = 0; + // Saves the state for a specific key. + virtual void SaveState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest* request, ::google::protobuf::Empty* response, std::function) = 0; + // Deletes the state for a specific key. + virtual void DeleteState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest* request, ::google::protobuf::Empty* response, std::function) = 0; + // Publishes events to the specific topic. + virtual void PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest* request, ::google::protobuf::Empty* response, std::function) = 0; + // Invokes binding data to specific output bindings + virtual void InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest* request, ::google::protobuf::Empty* response, std::function) = 0; + // Gets secrets from secret stores. + virtual void GetSecret(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest* request, ::dapr::proto::runtime::v1::GetSecretResponse* response, std::function) = 0; }; virtual class experimental_async_interface* experimental_async() { return nullptr; } private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>* AsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>* PrepareAsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>* AsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>* PrepareAsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>* AsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>* PrepareAsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>* AsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::common::v1::InvokeResponse>* PrepareAsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetStateResponse>* AsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetStateResponse>* PrepareAsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetSecretResponse>* AsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::GetSecretResponse>* PrepareAsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::google::protobuf::Empty* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncPublishEvent(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncPublishEventRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncPublishEvent(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncPublishEventRaw(context, request, cq)); - } - ::grpc::Status InvokeService(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::dapr::proto::common::v1::InvokeResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>> AsyncInvokeService(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { + ::grpc::Status InvokeService(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::dapr::proto::common::v1::InvokeResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>> AsyncInvokeService(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>>(AsyncInvokeServiceRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>> PrepareAsyncInvokeService(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>> PrepareAsyncInvokeService(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>>(PrepareAsyncInvokeServiceRaw(context, request, cq)); } - ::grpc::Status InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::google::protobuf::Empty* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncInvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncInvokeBindingRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncInvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncInvokeBindingRaw(context, request, cq)); - } - ::grpc::Status GetState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>> AsyncGetState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>>(AsyncGetStateRaw(context, request, cq)); + ::grpc::Status GetState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::dapr::proto::runtime::v1::GetStateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetStateResponse>> AsyncGetState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetStateResponse>>(AsyncGetStateRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>> PrepareAsyncGetState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>>(PrepareAsyncGetStateRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetStateResponse>> PrepareAsyncGetState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetStateResponse>>(PrepareAsyncGetStateRaw(context, request, cq)); } - ::grpc::Status GetSecret(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>> AsyncGetSecret(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>>(AsyncGetSecretRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>> PrepareAsyncGetSecret(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>>(PrepareAsyncGetSecretRaw(context, request, cq)); - } - ::grpc::Status SaveState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::google::protobuf::Empty* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncSaveState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::grpc::CompletionQueue* cq) { + ::grpc::Status SaveState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::google::protobuf::Empty* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncSaveState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncSaveStateRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncSaveState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::grpc::CompletionQueue* cq) { + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncSaveState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncSaveStateRaw(context, request, cq)); } - ::grpc::Status DeleteState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::google::protobuf::Empty* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncDeleteState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::grpc::CompletionQueue* cq) { + ::grpc::Status DeleteState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::google::protobuf::Empty* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncDeleteState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncDeleteStateRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncDeleteState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::grpc::CompletionQueue* cq) { + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncDeleteState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncDeleteStateRaw(context, request, cq)); } + ::grpc::Status PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::google::protobuf::Empty* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncPublishEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncPublishEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncPublishEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncPublishEventRaw(context, request, cq)); + } + ::grpc::Status InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::google::protobuf::Empty* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncInvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncInvokeBindingRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncInvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncInvokeBindingRaw(context, request, cq)); + } + ::grpc::Status GetSecret(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::dapr::proto::runtime::v1::GetSecretResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetSecretResponse>> AsyncGetSecret(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetSecretResponse>>(AsyncGetSecretRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetSecretResponse>> PrepareAsyncGetSecret(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetSecretResponse>>(PrepareAsyncGetSecretRaw(context, request, cq)); + } class experimental_async final : public StubInterface::experimental_async_interface { public: - void PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope* request, ::google::protobuf::Empty* response, std::function) override; - void InvokeService(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response, std::function) override; - void InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope* request, ::google::protobuf::Empty* response, std::function) override; - void GetState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope* request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response, std::function) override; - void GetSecret(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope* request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response, std::function) override; - void SaveState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope* request, ::google::protobuf::Empty* response, std::function) override; - void DeleteState(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope* request, ::google::protobuf::Empty* response, std::function) override; + void InvokeService(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response, std::function) override; + void GetState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest* request, ::dapr::proto::runtime::v1::GetStateResponse* response, std::function) override; + void SaveState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest* request, ::google::protobuf::Empty* response, std::function) override; + void DeleteState(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest* request, ::google::protobuf::Empty* response, std::function) override; + void PublishEvent(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest* request, ::google::protobuf::Empty* response, std::function) override; + void InvokeBinding(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest* request, ::google::protobuf::Empty* response, std::function) override; + void GetSecret(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest* request, ::dapr::proto::runtime::v1::GetSecretResponse* response, std::function) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -195,27 +209,27 @@ class Dapr final { private: std::shared_ptr< ::grpc::ChannelInterface> channel_; class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* AsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* PrepareAsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>* AsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>* PrepareAsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>* AsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>* PrepareAsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_PublishEvent_; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* AsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::common::v1::InvokeResponse>* PrepareAsyncInvokeServiceRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetStateResponse>* AsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetStateResponse>* PrepareAsyncGetStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetStateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncSaveStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncDeleteStateRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncPublishEventRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncInvokeBindingRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetSecretResponse>* AsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::GetSecretResponse>* PrepareAsyncGetSecretRaw(::grpc::ClientContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_InvokeService_; - const ::grpc::internal::RpcMethod rpcmethod_InvokeBinding_; const ::grpc::internal::RpcMethod rpcmethod_GetState_; - const ::grpc::internal::RpcMethod rpcmethod_GetSecret_; const ::grpc::internal::RpcMethod rpcmethod_SaveState_; const ::grpc::internal::RpcMethod rpcmethod_DeleteState_; + const ::grpc::internal::RpcMethod rpcmethod_PublishEvent_; + const ::grpc::internal::RpcMethod rpcmethod_InvokeBinding_; + const ::grpc::internal::RpcMethod rpcmethod_GetSecret_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -223,563 +237,570 @@ class Dapr final { public: Service(); virtual ~Service(); - virtual ::grpc::Status PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope* request, ::google::protobuf::Empty* response); - virtual ::grpc::Status InvokeService(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response); - virtual ::grpc::Status InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope* request, ::google::protobuf::Empty* response); - virtual ::grpc::Status GetState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope* request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response); - virtual ::grpc::Status GetSecret(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope* request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response); - virtual ::grpc::Status SaveState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope* request, ::google::protobuf::Empty* response); - virtual ::grpc::Status DeleteState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope* request, ::google::protobuf::Empty* response); + // Invokes a method on a remote Dapr app. + virtual ::grpc::Status InvokeService(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response); + // Gets the state for a specific key. + virtual ::grpc::Status GetState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetStateRequest* request, ::dapr::proto::runtime::v1::GetStateResponse* response); + // Saves the state for a specific key. + virtual ::grpc::Status SaveState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest* request, ::google::protobuf::Empty* response); + // Deletes the state for a specific key. + virtual ::grpc::Status DeleteState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest* request, ::google::protobuf::Empty* response); + // Publishes events to the specific topic. + virtual ::grpc::Status PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest* request, ::google::protobuf::Empty* response); + // Invokes binding data to specific output bindings + virtual ::grpc::Status InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest* request, ::google::protobuf::Empty* response); + // Gets secrets from secret stores. + virtual ::grpc::Status GetSecret(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest* request, ::dapr::proto::runtime::v1::GetSecretResponse* response); }; template - class WithAsyncMethod_PublishEvent : public BaseClass { + class WithAsyncMethod_InvokeService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_PublishEvent() { + WithAsyncMethod_InvokeService() { ::grpc::Service::MarkMethodAsync(0); } - ~WithAsyncMethod_PublishEvent() override { + ~WithAsyncMethod_InvokeService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status InvokeService(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPublishEvent(::grpc::ServerContext* context, ::dapr::proto::dapr::v1::PublishEventEnvelope* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestInvokeService(::grpc::ServerContext* context, ::dapr::proto::runtime::v1::InvokeServiceRequest* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::common::v1::InvokeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_InvokeService : public BaseClass { + class WithAsyncMethod_GetState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_InvokeService() { + WithAsyncMethod_GetState() { ::grpc::Service::MarkMethodAsync(1); } - ~WithAsyncMethod_InvokeService() override { + ~WithAsyncMethod_GetState() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status InvokeService(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) override { + ::grpc::Status GetState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetStateRequest* request, ::dapr::proto::runtime::v1::GetStateResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestInvokeService(::grpc::ServerContext* context, ::dapr::proto::dapr::v1::InvokeServiceRequest* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::common::v1::InvokeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetState(::grpc::ServerContext* context, ::dapr::proto::runtime::v1::GetStateRequest* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::runtime::v1::GetStateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_InvokeBinding : public BaseClass { + class WithAsyncMethod_SaveState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_InvokeBinding() { + WithAsyncMethod_SaveState() { ::grpc::Service::MarkMethodAsync(2); } - ~WithAsyncMethod_InvokeBinding() override { + ~WithAsyncMethod_SaveState() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status SaveState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestInvokeBinding(::grpc::ServerContext* context, ::dapr::proto::dapr::v1::InvokeBindingEnvelope* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestSaveState(::grpc::ServerContext* context, ::dapr::proto::runtime::v1::SaveStateRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_GetState : public BaseClass { + class WithAsyncMethod_DeleteState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_GetState() { + WithAsyncMethod_DeleteState() { ::grpc::Service::MarkMethodAsync(3); } - ~WithAsyncMethod_GetState() override { + ~WithAsyncMethod_DeleteState() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope* request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response) override { + ::grpc::Status DeleteState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetState(::grpc::ServerContext* context, ::dapr::proto::dapr::v1::GetStateEnvelope* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::dapr::v1::GetStateResponseEnvelope>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestDeleteState(::grpc::ServerContext* context, ::dapr::proto::runtime::v1::DeleteStateRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_GetSecret : public BaseClass { + class WithAsyncMethod_PublishEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_GetSecret() { + WithAsyncMethod_PublishEvent() { ::grpc::Service::MarkMethodAsync(4); } - ~WithAsyncMethod_GetSecret() override { + ~WithAsyncMethod_PublishEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetSecret(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope* request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response) override { + ::grpc::Status PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetSecret(::grpc::ServerContext* context, ::dapr::proto::dapr::v1::GetSecretEnvelope* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestPublishEvent(::grpc::ServerContext* context, ::dapr::proto::runtime::v1::PublishEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_SaveState : public BaseClass { + class WithAsyncMethod_InvokeBinding : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_SaveState() { + WithAsyncMethod_InvokeBinding() { ::grpc::Service::MarkMethodAsync(5); } - ~WithAsyncMethod_SaveState() override { + ~WithAsyncMethod_InvokeBinding() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SaveState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestSaveState(::grpc::ServerContext* context, ::dapr::proto::dapr::v1::SaveStateEnvelope* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestInvokeBinding(::grpc::ServerContext* context, ::dapr::proto::runtime::v1::InvokeBindingRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_DeleteState : public BaseClass { + class WithAsyncMethod_GetSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_DeleteState() { + WithAsyncMethod_GetSecret() { ::grpc::Service::MarkMethodAsync(6); } - ~WithAsyncMethod_DeleteState() override { + ~WithAsyncMethod_GetSecret() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DeleteState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status GetSecret(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest* request, ::dapr::proto::runtime::v1::GetSecretResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestDeleteState(::grpc::ServerContext* context, ::dapr::proto::dapr::v1::DeleteStateEnvelope* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetSecret(::grpc::ServerContext* context, ::dapr::proto::runtime::v1::GetSecretRequest* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::runtime::v1::GetSecretResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_PublishEvent > > > > > > AsyncService; + typedef WithAsyncMethod_InvokeService > > > > > > AsyncService; template - class WithGenericMethod_PublishEvent : public BaseClass { + class WithGenericMethod_InvokeService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_PublishEvent() { + WithGenericMethod_InvokeService() { ::grpc::Service::MarkMethodGeneric(0); } - ~WithGenericMethod_PublishEvent() override { + ~WithGenericMethod_InvokeService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status InvokeService(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_InvokeService : public BaseClass { + class WithGenericMethod_GetState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_InvokeService() { + WithGenericMethod_GetState() { ::grpc::Service::MarkMethodGeneric(1); } - ~WithGenericMethod_InvokeService() override { + ~WithGenericMethod_GetState() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status InvokeService(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) override { + ::grpc::Status GetState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetStateRequest* request, ::dapr::proto::runtime::v1::GetStateResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_InvokeBinding : public BaseClass { + class WithGenericMethod_SaveState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_InvokeBinding() { + WithGenericMethod_SaveState() { ::grpc::Service::MarkMethodGeneric(2); } - ~WithGenericMethod_InvokeBinding() override { + ~WithGenericMethod_SaveState() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status SaveState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_GetState : public BaseClass { + class WithGenericMethod_DeleteState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_GetState() { + WithGenericMethod_DeleteState() { ::grpc::Service::MarkMethodGeneric(3); } - ~WithGenericMethod_GetState() override { + ~WithGenericMethod_DeleteState() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope* request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response) override { + ::grpc::Status DeleteState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_GetSecret : public BaseClass { + class WithGenericMethod_PublishEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_GetSecret() { + WithGenericMethod_PublishEvent() { ::grpc::Service::MarkMethodGeneric(4); } - ~WithGenericMethod_GetSecret() override { + ~WithGenericMethod_PublishEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetSecret(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope* request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response) override { + ::grpc::Status PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_SaveState : public BaseClass { + class WithGenericMethod_InvokeBinding : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_SaveState() { + WithGenericMethod_InvokeBinding() { ::grpc::Service::MarkMethodGeneric(5); } - ~WithGenericMethod_SaveState() override { + ~WithGenericMethod_InvokeBinding() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SaveState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_DeleteState : public BaseClass { + class WithGenericMethod_GetSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_DeleteState() { + WithGenericMethod_GetSecret() { ::grpc::Service::MarkMethodGeneric(6); } - ~WithGenericMethod_DeleteState() override { + ~WithGenericMethod_GetSecret() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DeleteState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status GetSecret(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest* request, ::dapr::proto::runtime::v1::GetSecretResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithRawMethod_PublishEvent : public BaseClass { + class WithRawMethod_InvokeService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_PublishEvent() { + WithRawMethod_InvokeService() { ::grpc::Service::MarkMethodRaw(0); } - ~WithRawMethod_PublishEvent() override { + ~WithRawMethod_InvokeService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status InvokeService(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPublishEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestInvokeService(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_InvokeService : public BaseClass { + class WithRawMethod_GetState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_InvokeService() { + WithRawMethod_GetState() { ::grpc::Service::MarkMethodRaw(1); } - ~WithRawMethod_InvokeService() override { + ~WithRawMethod_GetState() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status InvokeService(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) override { + ::grpc::Status GetState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetStateRequest* request, ::dapr::proto::runtime::v1::GetStateResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestInvokeService(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetState(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_InvokeBinding : public BaseClass { + class WithRawMethod_SaveState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_InvokeBinding() { + WithRawMethod_SaveState() { ::grpc::Service::MarkMethodRaw(2); } - ~WithRawMethod_InvokeBinding() override { + ~WithRawMethod_SaveState() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status SaveState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestInvokeBinding(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestSaveState(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_GetState : public BaseClass { + class WithRawMethod_DeleteState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_GetState() { + WithRawMethod_DeleteState() { ::grpc::Service::MarkMethodRaw(3); } - ~WithRawMethod_GetState() override { + ~WithRawMethod_DeleteState() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope* request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response) override { + ::grpc::Status DeleteState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetState(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestDeleteState(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_GetSecret : public BaseClass { + class WithRawMethod_PublishEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_GetSecret() { + WithRawMethod_PublishEvent() { ::grpc::Service::MarkMethodRaw(4); } - ~WithRawMethod_GetSecret() override { + ~WithRawMethod_PublishEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetSecret(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope* request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response) override { + ::grpc::Status PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetSecret(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestPublishEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_SaveState : public BaseClass { + class WithRawMethod_InvokeBinding : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_SaveState() { + WithRawMethod_InvokeBinding() { ::grpc::Service::MarkMethodRaw(5); } - ~WithRawMethod_SaveState() override { + ~WithRawMethod_InvokeBinding() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SaveState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestSaveState(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestInvokeBinding(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_DeleteState : public BaseClass { + class WithRawMethod_GetSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_DeleteState() { + WithRawMethod_GetSecret() { ::grpc::Service::MarkMethodRaw(6); } - ~WithRawMethod_DeleteState() override { + ~WithRawMethod_GetSecret() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DeleteState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status GetSecret(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest* request, ::dapr::proto::runtime::v1::GetSecretResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestDeleteState(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetSecret(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithStreamedUnaryMethod_PublishEvent : public BaseClass { + class WithStreamedUnaryMethod_InvokeService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_PublishEvent() { + WithStreamedUnaryMethod_InvokeService() { ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::dapr::v1::PublishEventEnvelope, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_PublishEvent::StreamedPublishEvent, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::runtime::v1::InvokeServiceRequest, ::dapr::proto::common::v1::InvokeResponse>(std::bind(&WithStreamedUnaryMethod_InvokeService::StreamedInvokeService, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_PublishEvent() override { + ~WithStreamedUnaryMethod_InvokeService() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::PublishEventEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status InvokeService(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPublishEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::dapr::v1::PublishEventEnvelope,::google::protobuf::Empty>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedInvokeService(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::runtime::v1::InvokeServiceRequest,::dapr::proto::common::v1::InvokeResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_InvokeService : public BaseClass { + class WithStreamedUnaryMethod_GetState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_InvokeService() { + WithStreamedUnaryMethod_GetState() { ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::dapr::v1::InvokeServiceRequest, ::dapr::proto::common::v1::InvokeResponse>(std::bind(&WithStreamedUnaryMethod_InvokeService::StreamedInvokeService, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::runtime::v1::GetStateRequest, ::dapr::proto::runtime::v1::GetStateResponse>(std::bind(&WithStreamedUnaryMethod_GetState::StreamedGetState, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_InvokeService() override { + ~WithStreamedUnaryMethod_GetState() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status InvokeService(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeServiceRequest* request, ::dapr::proto::common::v1::InvokeResponse* response) override { + ::grpc::Status GetState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetStateRequest* request, ::dapr::proto::runtime::v1::GetStateResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedInvokeService(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::dapr::v1::InvokeServiceRequest,::dapr::proto::common::v1::InvokeResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedGetState(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::runtime::v1::GetStateRequest,::dapr::proto::runtime::v1::GetStateResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_InvokeBinding : public BaseClass { + class WithStreamedUnaryMethod_SaveState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_InvokeBinding() { + WithStreamedUnaryMethod_SaveState() { ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::dapr::v1::InvokeBindingEnvelope, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_InvokeBinding::StreamedInvokeBinding, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::runtime::v1::SaveStateRequest, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_SaveState::StreamedSaveState, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_InvokeBinding() override { + ~WithStreamedUnaryMethod_SaveState() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::InvokeBindingEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status SaveState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::SaveStateRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedInvokeBinding(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::dapr::v1::InvokeBindingEnvelope,::google::protobuf::Empty>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedSaveState(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::runtime::v1::SaveStateRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetState : public BaseClass { + class WithStreamedUnaryMethod_DeleteState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_GetState() { + WithStreamedUnaryMethod_DeleteState() { ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::dapr::v1::GetStateEnvelope, ::dapr::proto::dapr::v1::GetStateResponseEnvelope>(std::bind(&WithStreamedUnaryMethod_GetState::StreamedGetState, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::runtime::v1::DeleteStateRequest, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_DeleteState::StreamedDeleteState, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_GetState() override { + ~WithStreamedUnaryMethod_DeleteState() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetStateEnvelope* request, ::dapr::proto::dapr::v1::GetStateResponseEnvelope* response) override { + ::grpc::Status DeleteState(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::DeleteStateRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetState(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::dapr::v1::GetStateEnvelope,::dapr::proto::dapr::v1::GetStateResponseEnvelope>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedDeleteState(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::runtime::v1::DeleteStateRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetSecret : public BaseClass { + class WithStreamedUnaryMethod_PublishEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_GetSecret() { + WithStreamedUnaryMethod_PublishEvent() { ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::dapr::v1::GetSecretEnvelope, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope>(std::bind(&WithStreamedUnaryMethod_GetSecret::StreamedGetSecret, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::runtime::v1::PublishEventRequest, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_PublishEvent::StreamedPublishEvent, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_GetSecret() override { + ~WithStreamedUnaryMethod_PublishEvent() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetSecret(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::GetSecretEnvelope* request, ::dapr::proto::dapr::v1::GetSecretResponseEnvelope* response) override { + ::grpc::Status PublishEvent(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::PublishEventRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetSecret(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::dapr::v1::GetSecretEnvelope,::dapr::proto::dapr::v1::GetSecretResponseEnvelope>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedPublishEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::runtime::v1::PublishEventRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_SaveState : public BaseClass { + class WithStreamedUnaryMethod_InvokeBinding : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_SaveState() { + WithStreamedUnaryMethod_InvokeBinding() { ::grpc::Service::MarkMethodStreamed(5, - new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::dapr::v1::SaveStateEnvelope, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_SaveState::StreamedSaveState, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::runtime::v1::InvokeBindingRequest, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_InvokeBinding::StreamedInvokeBinding, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_SaveState() override { + ~WithStreamedUnaryMethod_InvokeBinding() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status SaveState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::SaveStateEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status InvokeBinding(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::InvokeBindingRequest* request, ::google::protobuf::Empty* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSaveState(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::dapr::v1::SaveStateEnvelope,::google::protobuf::Empty>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedInvokeBinding(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::runtime::v1::InvokeBindingRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_DeleteState : public BaseClass { + class WithStreamedUnaryMethod_GetSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_DeleteState() { + WithStreamedUnaryMethod_GetSecret() { ::grpc::Service::MarkMethodStreamed(6, - new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::dapr::v1::DeleteStateEnvelope, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_DeleteState::StreamedDeleteState, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::dapr::proto::runtime::v1::GetSecretRequest, ::dapr::proto::runtime::v1::GetSecretResponse>(std::bind(&WithStreamedUnaryMethod_GetSecret::StreamedGetSecret, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_DeleteState() override { + ~WithStreamedUnaryMethod_GetSecret() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status DeleteState(::grpc::ServerContext* context, const ::dapr::proto::dapr::v1::DeleteStateEnvelope* request, ::google::protobuf::Empty* response) override { + ::grpc::Status GetSecret(::grpc::ServerContext* context, const ::dapr::proto::runtime::v1::GetSecretRequest* request, ::dapr::proto::runtime::v1::GetSecretResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeleteState(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::dapr::v1::DeleteStateEnvelope,::google::protobuf::Empty>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedGetSecret(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dapr::proto::runtime::v1::GetSecretRequest,::dapr::proto::runtime::v1::GetSecretResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_PublishEvent > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_InvokeService > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_PublishEvent > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_InvokeService > > > > > > StreamedService; }; } // namespace v1 -} // namespace dapr +} // namespace runtime } // namespace proto } // namespace dapr -#endif // GRPC_dapr_2fproto_2fdapr_2fv1_2fdapr_2eproto__INCLUDED +#endif // GRPC_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto__INCLUDED diff --git a/src/dapr/proto/runtime/v1/dapr.pb.cc b/src/dapr/proto/runtime/v1/dapr.pb.cc new file mode 100644 index 0000000..fa67458 --- /dev/null +++ b/src/dapr/proto/runtime/v1/dapr.pb.cc @@ -0,0 +1,3765 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: dapr/proto/runtime/v1/dapr.proto + +#include "dapr/proto/runtime/v1/dapr.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StateOptions; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_InvokeRequest; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_StateSaveRequest; +} // namespace protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto +namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GetSecretRequest_MetadataEntry_DoNotUse; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GetSecretResponse_DataEntry_DoNotUse; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InvokeBindingRequest_MetadataEntry_DoNotUse; +} // namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto +namespace dapr { +namespace proto { +namespace runtime { +namespace v1 { +class InvokeServiceRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _InvokeServiceRequest_default_instance_; +class GetStateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetStateRequest_default_instance_; +class GetStateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetStateResponse_default_instance_; +class DeleteStateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DeleteStateRequest_default_instance_; +class SaveStateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SaveStateRequest_default_instance_; +class PublishEventRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PublishEventRequest_default_instance_; +class InvokeBindingRequest_MetadataEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _InvokeBindingRequest_MetadataEntry_DoNotUse_default_instance_; +class InvokeBindingRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _InvokeBindingRequest_default_instance_; +class GetSecretRequest_MetadataEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetSecretRequest_MetadataEntry_DoNotUse_default_instance_; +class GetSecretRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetSecretRequest_default_instance_; +class GetSecretResponse_DataEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetSecretResponse_DataEntry_DoNotUse_default_instance_; +class GetSecretResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetSecretResponse_default_instance_; +} // namespace v1 +} // namespace runtime +} // namespace proto +} // namespace dapr +namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto { +static void InitDefaultsInvokeServiceRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_InvokeServiceRequest_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::InvokeServiceRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::InvokeServiceRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_InvokeServiceRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsInvokeServiceRequest}, { + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_InvokeRequest.base,}}; + +static void InitDefaultsGetStateRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_GetStateRequest_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::GetStateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::GetStateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetStateRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetStateRequest}, {}}; + +static void InitDefaultsGetStateResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_GetStateResponse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::GetStateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::GetStateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetStateResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetStateResponse}, {}}; + +static void InitDefaultsDeleteStateRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_DeleteStateRequest_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::DeleteStateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::DeleteStateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_DeleteStateRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDeleteStateRequest}, { + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateOptions.base,}}; + +static void InitDefaultsSaveStateRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_SaveStateRequest_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::SaveStateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::SaveStateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_SaveStateRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSaveStateRequest}, { + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_StateSaveRequest.base,}}; + +static void InitDefaultsPublishEventRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_PublishEventRequest_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::PublishEventRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::PublishEventRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PublishEventRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPublishEventRequest}, {}}; + +static void InitDefaultsInvokeBindingRequest_MetadataEntry_DoNotUse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_InvokeBindingRequest_MetadataEntry_DoNotUse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse(); + } + ::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_InvokeBindingRequest_MetadataEntry_DoNotUse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInvokeBindingRequest_MetadataEntry_DoNotUse}, {}}; + +static void InitDefaultsInvokeBindingRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_InvokeBindingRequest_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::InvokeBindingRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::InvokeBindingRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_InvokeBindingRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsInvokeBindingRequest}, { + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_InvokeBindingRequest_MetadataEntry_DoNotUse.base,}}; + +static void InitDefaultsGetSecretRequest_MetadataEntry_DoNotUse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_GetSecretRequest_MetadataEntry_DoNotUse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse(); + } + ::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetSecretRequest_MetadataEntry_DoNotUse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetSecretRequest_MetadataEntry_DoNotUse}, {}}; + +static void InitDefaultsGetSecretRequest() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_GetSecretRequest_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::GetSecretRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::GetSecretRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetSecretRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetSecretRequest}, { + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetSecretRequest_MetadataEntry_DoNotUse.base,}}; + +static void InitDefaultsGetSecretResponse_DataEntry_DoNotUse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_GetSecretResponse_DataEntry_DoNotUse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse(); + } + ::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetSecretResponse_DataEntry_DoNotUse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetSecretResponse_DataEntry_DoNotUse}, {}}; + +static void InitDefaultsGetSecretResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_GetSecretResponse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::GetSecretResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::GetSecretResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetSecretResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetSecretResponse}, { + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetSecretResponse_DataEntry_DoNotUse.base,}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_InvokeServiceRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetStateRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetStateResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_DeleteStateRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_SaveStateRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_PublishEventRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_InvokeBindingRequest_MetadataEntry_DoNotUse.base); + ::google::protobuf::internal::InitSCC(&scc_info_InvokeBindingRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetSecretRequest_MetadataEntry_DoNotUse.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetSecretRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetSecretResponse_DataEntry_DoNotUse.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetSecretResponse.base); +} + +::google::protobuf::Metadata file_level_metadata[12]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeServiceRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeServiceRequest, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeServiceRequest, message_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetStateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetStateRequest, store_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetStateRequest, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetStateRequest, consistency_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetStateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetStateResponse, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetStateResponse, etag_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::DeleteStateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::DeleteStateRequest, store_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::DeleteStateRequest, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::DeleteStateRequest, etag_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::DeleteStateRequest, options_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::SaveStateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::SaveStateRequest, store_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::SaveStateRequest, requests_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::PublishEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::PublishEventRequest, topic_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::PublishEventRequest, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeBindingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeBindingRequest, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeBindingRequest, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeBindingRequest, metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretRequest, store_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretRequest, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretRequest, metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetSecretResponse, data_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::dapr::proto::runtime::v1::InvokeServiceRequest)}, + { 7, -1, sizeof(::dapr::proto::runtime::v1::GetStateRequest)}, + { 15, -1, sizeof(::dapr::proto::runtime::v1::GetStateResponse)}, + { 22, -1, sizeof(::dapr::proto::runtime::v1::DeleteStateRequest)}, + { 31, -1, sizeof(::dapr::proto::runtime::v1::SaveStateRequest)}, + { 38, -1, sizeof(::dapr::proto::runtime::v1::PublishEventRequest)}, + { 45, 52, sizeof(::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse)}, + { 54, -1, sizeof(::dapr::proto::runtime::v1::InvokeBindingRequest)}, + { 62, 69, sizeof(::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse)}, + { 71, -1, sizeof(::dapr::proto::runtime::v1::GetSecretRequest)}, + { 79, 86, sizeof(::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse)}, + { 88, -1, sizeof(::dapr::proto::runtime::v1::GetSecretResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::dapr::proto::runtime::v1::_InvokeServiceRequest_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_GetStateRequest_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_GetStateResponse_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_DeleteStateRequest_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_SaveStateRequest_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_PublishEventRequest_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_InvokeBindingRequest_MetadataEntry_DoNotUse_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_InvokeBindingRequest_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_GetSecretRequest_MetadataEntry_DoNotUse_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_GetSecretRequest_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_GetSecretResponse_DataEntry_DoNotUse_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_GetSecretResponse_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "dapr/proto/runtime/v1/dapr.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 12); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n dapr/proto/runtime/v1/dapr.proto\022\025dapr" + ".proto.runtime.v1\032\033google/protobuf/empty" + ".proto\032!dapr/proto/common/v1/common.prot" + "o\"X\n\024InvokeServiceRequest\022\n\n\002id\030\001 \001(\t\0224\n" + "\007message\030\003 \001(\0132#.dapr.proto.common.v1.In" + "vokeRequest\"|\n\017GetStateRequest\022\022\n\nstore_" + "name\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022H\n\013consistency\030\003" + " \001(\01623.dapr.proto.common.v1.StateOptions" + ".StateConsistency\".\n\020GetStateResponse\022\014\n" + "\004data\030\001 \001(\014\022\014\n\004etag\030\002 \001(\t\"x\n\022DeleteState" + "Request\022\022\n\nstore_name\030\001 \001(\t\022\013\n\003key\030\002 \001(\t" + "\022\014\n\004etag\030\003 \001(\t\0223\n\007options\030\004 \001(\0132\".dapr.p" + "roto.common.v1.StateOptions\"`\n\020SaveState" + "Request\022\022\n\nstore_name\030\001 \001(\t\0228\n\010requests\030" + "\002 \003(\0132&.dapr.proto.common.v1.StateSaveRe" + "quest\"2\n\023PublishEventRequest\022\r\n\005topic\030\001 " + "\001(\t\022\014\n\004data\030\002 \001(\014\"\260\001\n\024InvokeBindingReque" + "st\022\014\n\004name\030\001 \001(\t\022\014\n\004data\030\002 \001(\014\022K\n\010metada" + "ta\030\003 \003(\01329.dapr.proto.runtime.v1.InvokeB" + "indingRequest.MetadataEntry\032/\n\rMetadataE" + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\255\001\n" + "\020GetSecretRequest\022\022\n\nstore_name\030\001 \001(\t\022\013\n" + "\003key\030\002 \001(\t\022G\n\010metadata\030\003 \003(\01325.dapr.prot" + "o.runtime.v1.GetSecretRequest.MetadataEn" + "try\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + "ue\030\002 \001(\t:\0028\001\"\202\001\n\021GetSecretResponse\022@\n\004da" + "ta\030\001 \003(\01322.dapr.proto.runtime.v1.GetSecr" + "etResponse.DataEntry\032+\n\tDataEntry\022\013\n\003key" + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\377\004\n\004Dapr\022d\n\rIn" + "vokeService\022+.dapr.proto.runtime.v1.Invo" + "keServiceRequest\032$.dapr.proto.common.v1." + "InvokeResponse\"\000\022]\n\010GetState\022&.dapr.prot" + "o.runtime.v1.GetStateRequest\032\'.dapr.prot" + "o.runtime.v1.GetStateResponse\"\000\022N\n\tSaveS" + "tate\022\'.dapr.proto.runtime.v1.SaveStateRe" + "quest\032\026.google.protobuf.Empty\"\000\022R\n\013Delet" + "eState\022).dapr.proto.runtime.v1.DeleteSta" + "teRequest\032\026.google.protobuf.Empty\"\000\022T\n\014P" + "ublishEvent\022*.dapr.proto.runtime.v1.Publ" + "ishEventRequest\032\026.google.protobuf.Empty\"" + "\000\022V\n\rInvokeBinding\022+.dapr.proto.runtime." + "v1.InvokeBindingRequest\032\026.google.protobu" + "f.Empty\"\000\022`\n\tGetSecret\022\'.dapr.proto.runt" + "ime.v1.GetSecretRequest\032(.dapr.proto.run" + "time.v1.GetSecretResponse\"\000Bi\n\nio.dapr.v" + "1B\nDaprProtosZ1github.com/dapr/dapr/pkg/" + "proto/runtime/v1;runtime\252\002\033Dapr.Client.A" + "utogen.Grpc.v1b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1902); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "dapr/proto/runtime/v1/dapr.proto", &protobuf_RegisterTypes); + ::protobuf_google_2fprotobuf_2fempty_2eproto::AddDescriptors(); + ::protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto +namespace dapr { +namespace proto { +namespace runtime { +namespace v1 { + +// =================================================================== + +void InvokeServiceRequest::InitAsDefaultInstance() { + ::dapr::proto::runtime::v1::_InvokeServiceRequest_default_instance_._instance.get_mutable()->message_ = const_cast< ::dapr::proto::common::v1::InvokeRequest*>( + ::dapr::proto::common::v1::InvokeRequest::internal_default_instance()); +} +void InvokeServiceRequest::clear_message() { + if (GetArenaNoVirtual() == NULL && message_ != NULL) { + delete message_; + } + message_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int InvokeServiceRequest::kIdFieldNumber; +const int InvokeServiceRequest::kMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +InvokeServiceRequest::InvokeServiceRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_InvokeServiceRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.InvokeServiceRequest) +} +InvokeServiceRequest::InvokeServiceRequest(const InvokeServiceRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.has_message()) { + message_ = new ::dapr::proto::common::v1::InvokeRequest(*from.message_); + } else { + message_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.InvokeServiceRequest) +} + +void InvokeServiceRequest::SharedCtor() { + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_ = NULL; +} + +InvokeServiceRequest::~InvokeServiceRequest() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.InvokeServiceRequest) + SharedDtor(); +} + +void InvokeServiceRequest::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete message_; +} + +void InvokeServiceRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* InvokeServiceRequest::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const InvokeServiceRequest& InvokeServiceRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_InvokeServiceRequest.base); + return *internal_default_instance(); +} + + +void InvokeServiceRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.InvokeServiceRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && message_ != NULL) { + delete message_; + } + message_ = NULL; + _internal_metadata_.Clear(); +} + +bool InvokeServiceRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.InvokeServiceRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.InvokeServiceRequest.id")); + } else { + goto handle_unusual; + } + break; + } + + // .dapr.proto.common.v1.InvokeRequest message = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_message())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.InvokeServiceRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.InvokeServiceRequest) + return false; +#undef DO_ +} + +void InvokeServiceRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.InvokeServiceRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.InvokeServiceRequest.id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->id(), output); + } + + // .dapr.proto.common.v1.InvokeRequest message = 3; + if (this->has_message()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->_internal_message(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.InvokeServiceRequest) +} + +::google::protobuf::uint8* InvokeServiceRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.InvokeServiceRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.InvokeServiceRequest.id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->id(), target); + } + + // .dapr.proto.common.v1.InvokeRequest message = 3; + if (this->has_message()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->_internal_message(), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.InvokeServiceRequest) + return target; +} + +size_t InvokeServiceRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.InvokeServiceRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string id = 1; + if (this->id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->id()); + } + + // .dapr.proto.common.v1.InvokeRequest message = 3; + if (this->has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *message_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void InvokeServiceRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.InvokeServiceRequest) + GOOGLE_DCHECK_NE(&from, this); + const InvokeServiceRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.InvokeServiceRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.InvokeServiceRequest) + MergeFrom(*source); + } +} + +void InvokeServiceRequest::MergeFrom(const InvokeServiceRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.InvokeServiceRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.has_message()) { + mutable_message()->::dapr::proto::common::v1::InvokeRequest::MergeFrom(from.message()); + } +} + +void InvokeServiceRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.InvokeServiceRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InvokeServiceRequest::CopyFrom(const InvokeServiceRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.InvokeServiceRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InvokeServiceRequest::IsInitialized() const { + return true; +} + +void InvokeServiceRequest::Swap(InvokeServiceRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void InvokeServiceRequest::InternalSwap(InvokeServiceRequest* other) { + using std::swap; + id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(message_, other->message_); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata InvokeServiceRequest::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetStateRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetStateRequest::kStoreNameFieldNumber; +const int GetStateRequest::kKeyFieldNumber; +const int GetStateRequest::kConsistencyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetStateRequest::GetStateRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetStateRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.GetStateRequest) +} +GetStateRequest::GetStateRequest(const GetStateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.store_name().size() > 0) { + store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); + } + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + consistency_ = from.consistency_; + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.GetStateRequest) +} + +void GetStateRequest::SharedCtor() { + store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + consistency_ = 0; +} + +GetStateRequest::~GetStateRequest() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.GetStateRequest) + SharedDtor(); +} + +void GetStateRequest::SharedDtor() { + store_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void GetStateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* GetStateRequest::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const GetStateRequest& GetStateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetStateRequest.base); + return *internal_default_instance(); +} + + +void GetStateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.GetStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + consistency_ = 0; + _internal_metadata_.Clear(); +} + +bool GetStateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.GetStateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string store_name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_store_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.GetStateRequest.store_name")); + } else { + goto handle_unusual; + } + break; + } + + // string key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.GetStateRequest.key")); + } else { + goto handle_unusual; + } + break; + } + + // .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_consistency(static_cast< ::dapr::proto::common::v1::StateOptions_StateConsistency >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.GetStateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.GetStateRequest) + return false; +#undef DO_ +} + +void GetStateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.GetStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string store_name = 1; + if (this->store_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetStateRequest.store_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->store_name(), output); + } + + // string key = 2; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetStateRequest.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->key(), output); + } + + // .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3; + if (this->consistency() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->consistency(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.GetStateRequest) +} + +::google::protobuf::uint8* GetStateRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.GetStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string store_name = 1; + if (this->store_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetStateRequest.store_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->store_name(), target); + } + + // string key = 2; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetStateRequest.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->key(), target); + } + + // .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3; + if (this->consistency() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->consistency(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.GetStateRequest) + return target; +} + +size_t GetStateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.GetStateRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string store_name = 1; + if (this->store_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->store_name()); + } + + // string key = 2; + if (this->key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3; + if (this->consistency() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->consistency()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetStateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.GetStateRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetStateRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.GetStateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.GetStateRequest) + MergeFrom(*source); + } +} + +void GetStateRequest::MergeFrom(const GetStateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.GetStateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.store_name().size() > 0) { + + store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); + } + if (from.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (from.consistency() != 0) { + set_consistency(from.consistency()); + } +} + +void GetStateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.GetStateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetStateRequest::CopyFrom(const GetStateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.GetStateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetStateRequest::IsInitialized() const { + return true; +} + +void GetStateRequest::Swap(GetStateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetStateRequest::InternalSwap(GetStateRequest* other) { + using std::swap; + store_name_.Swap(&other->store_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(consistency_, other->consistency_); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata GetStateRequest::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetStateResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetStateResponse::kDataFieldNumber; +const int GetStateResponse::kEtagFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetStateResponse::GetStateResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetStateResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.GetStateResponse) +} +GetStateResponse::GetStateResponse(const GetStateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.data().size() > 0) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.etag().size() > 0) { + etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); + } + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.GetStateResponse) +} + +void GetStateResponse::SharedCtor() { + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +GetStateResponse::~GetStateResponse() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.GetStateResponse) + SharedDtor(); +} + +void GetStateResponse::SharedDtor() { + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + etag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void GetStateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* GetStateResponse::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const GetStateResponse& GetStateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetStateResponse.base); + return *internal_default_instance(); +} + + +void GetStateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.GetStateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool GetStateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.GetStateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // bytes data = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + // string etag = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_etag())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->etag().data(), static_cast(this->etag().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.GetStateResponse.etag")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.GetStateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.GetStateResponse) + return false; +#undef DO_ +} + +void GetStateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.GetStateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes data = 1; + if (this->data().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->data(), output); + } + + // string etag = 2; + if (this->etag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->etag().data(), static_cast(this->etag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetStateResponse.etag"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->etag(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.GetStateResponse) +} + +::google::protobuf::uint8* GetStateResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.GetStateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes data = 1; + if (this->data().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->data(), target); + } + + // string etag = 2; + if (this->etag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->etag().data(), static_cast(this->etag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetStateResponse.etag"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->etag(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.GetStateResponse) + return target; +} + +size_t GetStateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.GetStateResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // bytes data = 1; + if (this->data().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + // string etag = 2; + if (this->etag().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->etag()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetStateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.GetStateResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetStateResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.GetStateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.GetStateResponse) + MergeFrom(*source); + } +} + +void GetStateResponse::MergeFrom(const GetStateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.GetStateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.data().size() > 0) { + + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + if (from.etag().size() > 0) { + + etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); + } +} + +void GetStateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.GetStateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetStateResponse::CopyFrom(const GetStateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.GetStateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetStateResponse::IsInitialized() const { + return true; +} + +void GetStateResponse::Swap(GetStateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetStateResponse::InternalSwap(GetStateResponse* other) { + using std::swap; + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + etag_.Swap(&other->etag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata GetStateResponse::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DeleteStateRequest::InitAsDefaultInstance() { + ::dapr::proto::runtime::v1::_DeleteStateRequest_default_instance_._instance.get_mutable()->options_ = const_cast< ::dapr::proto::common::v1::StateOptions*>( + ::dapr::proto::common::v1::StateOptions::internal_default_instance()); +} +void DeleteStateRequest::clear_options() { + if (GetArenaNoVirtual() == NULL && options_ != NULL) { + delete options_; + } + options_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DeleteStateRequest::kStoreNameFieldNumber; +const int DeleteStateRequest::kKeyFieldNumber; +const int DeleteStateRequest::kEtagFieldNumber; +const int DeleteStateRequest::kOptionsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DeleteStateRequest::DeleteStateRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_DeleteStateRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.DeleteStateRequest) +} +DeleteStateRequest::DeleteStateRequest(const DeleteStateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.store_name().size() > 0) { + store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); + } + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.etag().size() > 0) { + etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); + } + if (from.has_options()) { + options_ = new ::dapr::proto::common::v1::StateOptions(*from.options_); + } else { + options_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.DeleteStateRequest) +} + +void DeleteStateRequest::SharedCtor() { + store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + etag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + options_ = NULL; +} + +DeleteStateRequest::~DeleteStateRequest() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.DeleteStateRequest) + SharedDtor(); +} + +void DeleteStateRequest::SharedDtor() { + store_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + etag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete options_; +} + +void DeleteStateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* DeleteStateRequest::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DeleteStateRequest& DeleteStateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_DeleteStateRequest.base); + return *internal_default_instance(); +} + + +void DeleteStateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.DeleteStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && options_ != NULL) { + delete options_; + } + options_ = NULL; + _internal_metadata_.Clear(); +} + +bool DeleteStateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.DeleteStateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string store_name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_store_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.DeleteStateRequest.store_name")); + } else { + goto handle_unusual; + } + break; + } + + // string key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.DeleteStateRequest.key")); + } else { + goto handle_unusual; + } + break; + } + + // string etag = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_etag())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->etag().data(), static_cast(this->etag().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.DeleteStateRequest.etag")); + } else { + goto handle_unusual; + } + break; + } + + // .dapr.proto.common.v1.StateOptions options = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_options())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.DeleteStateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.DeleteStateRequest) + return false; +#undef DO_ +} + +void DeleteStateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.DeleteStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string store_name = 1; + if (this->store_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.DeleteStateRequest.store_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->store_name(), output); + } + + // string key = 2; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.DeleteStateRequest.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->key(), output); + } + + // string etag = 3; + if (this->etag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->etag().data(), static_cast(this->etag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.DeleteStateRequest.etag"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->etag(), output); + } + + // .dapr.proto.common.v1.StateOptions options = 4; + if (this->has_options()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->_internal_options(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.DeleteStateRequest) +} + +::google::protobuf::uint8* DeleteStateRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.DeleteStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string store_name = 1; + if (this->store_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.DeleteStateRequest.store_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->store_name(), target); + } + + // string key = 2; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.DeleteStateRequest.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->key(), target); + } + + // string etag = 3; + if (this->etag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->etag().data(), static_cast(this->etag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.DeleteStateRequest.etag"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->etag(), target); + } + + // .dapr.proto.common.v1.StateOptions options = 4; + if (this->has_options()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->_internal_options(), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.DeleteStateRequest) + return target; +} + +size_t DeleteStateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.DeleteStateRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string store_name = 1; + if (this->store_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->store_name()); + } + + // string key = 2; + if (this->key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // string etag = 3; + if (this->etag().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->etag()); + } + + // .dapr.proto.common.v1.StateOptions options = 4; + if (this->has_options()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *options_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DeleteStateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.DeleteStateRequest) + GOOGLE_DCHECK_NE(&from, this); + const DeleteStateRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.DeleteStateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.DeleteStateRequest) + MergeFrom(*source); + } +} + +void DeleteStateRequest::MergeFrom(const DeleteStateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.DeleteStateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.store_name().size() > 0) { + + store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); + } + if (from.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (from.etag().size() > 0) { + + etag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.etag_); + } + if (from.has_options()) { + mutable_options()->::dapr::proto::common::v1::StateOptions::MergeFrom(from.options()); + } +} + +void DeleteStateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.DeleteStateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteStateRequest::CopyFrom(const DeleteStateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.DeleteStateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteStateRequest::IsInitialized() const { + return true; +} + +void DeleteStateRequest::Swap(DeleteStateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void DeleteStateRequest::InternalSwap(DeleteStateRequest* other) { + using std::swap; + store_name_.Swap(&other->store_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + etag_.Swap(&other->etag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(options_, other->options_); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DeleteStateRequest::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SaveStateRequest::InitAsDefaultInstance() { +} +void SaveStateRequest::clear_requests() { + requests_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SaveStateRequest::kStoreNameFieldNumber; +const int SaveStateRequest::kRequestsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SaveStateRequest::SaveStateRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_SaveStateRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.SaveStateRequest) +} +SaveStateRequest::SaveStateRequest(const SaveStateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + requests_(from.requests_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.store_name().size() > 0) { + store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); + } + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.SaveStateRequest) +} + +void SaveStateRequest::SharedCtor() { + store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +SaveStateRequest::~SaveStateRequest() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.SaveStateRequest) + SharedDtor(); +} + +void SaveStateRequest::SharedDtor() { + store_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SaveStateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* SaveStateRequest::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SaveStateRequest& SaveStateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_SaveStateRequest.base); + return *internal_default_instance(); +} + + +void SaveStateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.SaveStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + requests_.Clear(); + store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool SaveStateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.SaveStateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string store_name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_store_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.SaveStateRequest.store_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .dapr.proto.common.v1.StateSaveRequest requests = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_requests())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.SaveStateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.SaveStateRequest) + return false; +#undef DO_ +} + +void SaveStateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.SaveStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string store_name = 1; + if (this->store_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.SaveStateRequest.store_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->store_name(), output); + } + + // repeated .dapr.proto.common.v1.StateSaveRequest requests = 2; + for (unsigned int i = 0, + n = static_cast(this->requests_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->requests(static_cast(i)), + output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.SaveStateRequest) +} + +::google::protobuf::uint8* SaveStateRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.SaveStateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string store_name = 1; + if (this->store_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.SaveStateRequest.store_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->store_name(), target); + } + + // repeated .dapr.proto.common.v1.StateSaveRequest requests = 2; + for (unsigned int i = 0, + n = static_cast(this->requests_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->requests(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.SaveStateRequest) + return target; +} + +size_t SaveStateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.SaveStateRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .dapr.proto.common.v1.StateSaveRequest requests = 2; + { + unsigned int count = static_cast(this->requests_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->requests(static_cast(i))); + } + } + + // string store_name = 1; + if (this->store_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->store_name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SaveStateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.SaveStateRequest) + GOOGLE_DCHECK_NE(&from, this); + const SaveStateRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.SaveStateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.SaveStateRequest) + MergeFrom(*source); + } +} + +void SaveStateRequest::MergeFrom(const SaveStateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.SaveStateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + requests_.MergeFrom(from.requests_); + if (from.store_name().size() > 0) { + + store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); + } +} + +void SaveStateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.SaveStateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SaveStateRequest::CopyFrom(const SaveStateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.SaveStateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SaveStateRequest::IsInitialized() const { + return true; +} + +void SaveStateRequest::Swap(SaveStateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void SaveStateRequest::InternalSwap(SaveStateRequest* other) { + using std::swap; + CastToBase(&requests_)->InternalSwap(CastToBase(&other->requests_)); + store_name_.Swap(&other->store_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata SaveStateRequest::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PublishEventRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PublishEventRequest::kTopicFieldNumber; +const int PublishEventRequest::kDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PublishEventRequest::PublishEventRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_PublishEventRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.PublishEventRequest) +} +PublishEventRequest::PublishEventRequest(const PublishEventRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.topic().size() > 0) { + topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_); + } + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.data().size() > 0) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.PublishEventRequest) +} + +void PublishEventRequest::SharedCtor() { + topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +PublishEventRequest::~PublishEventRequest() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.PublishEventRequest) + SharedDtor(); +} + +void PublishEventRequest::SharedDtor() { + topic_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void PublishEventRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* PublishEventRequest::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PublishEventRequest& PublishEventRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_PublishEventRequest.base); + return *internal_default_instance(); +} + + +void PublishEventRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.PublishEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool PublishEventRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.PublishEventRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string topic = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_topic())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->topic().data(), static_cast(this->topic().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.PublishEventRequest.topic")); + } else { + goto handle_unusual; + } + break; + } + + // bytes data = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.PublishEventRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.PublishEventRequest) + return false; +#undef DO_ +} + +void PublishEventRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.PublishEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string topic = 1; + if (this->topic().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->topic().data(), static_cast(this->topic().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.PublishEventRequest.topic"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->topic(), output); + } + + // bytes data = 2; + if (this->data().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->data(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.PublishEventRequest) +} + +::google::protobuf::uint8* PublishEventRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.PublishEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string topic = 1; + if (this->topic().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->topic().data(), static_cast(this->topic().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.PublishEventRequest.topic"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->topic(), target); + } + + // bytes data = 2; + if (this->data().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->data(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.PublishEventRequest) + return target; +} + +size_t PublishEventRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.PublishEventRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string topic = 1; + if (this->topic().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->topic()); + } + + // bytes data = 2; + if (this->data().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PublishEventRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.PublishEventRequest) + GOOGLE_DCHECK_NE(&from, this); + const PublishEventRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.PublishEventRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.PublishEventRequest) + MergeFrom(*source); + } +} + +void PublishEventRequest::MergeFrom(const PublishEventRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.PublishEventRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.topic().size() > 0) { + + topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_); + } + if (from.data().size() > 0) { + + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } +} + +void PublishEventRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.PublishEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PublishEventRequest::CopyFrom(const PublishEventRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.PublishEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PublishEventRequest::IsInitialized() const { + return true; +} + +void PublishEventRequest::Swap(PublishEventRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void PublishEventRequest::InternalSwap(PublishEventRequest* other) { + using std::swap; + topic_.Swap(&other->topic_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata PublishEventRequest::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +InvokeBindingRequest_MetadataEntry_DoNotUse::InvokeBindingRequest_MetadataEntry_DoNotUse() {} +InvokeBindingRequest_MetadataEntry_DoNotUse::InvokeBindingRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void InvokeBindingRequest_MetadataEntry_DoNotUse::MergeFrom(const InvokeBindingRequest_MetadataEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata InvokeBindingRequest_MetadataEntry_DoNotUse::GetMetadata() const { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[6]; +} +void InvokeBindingRequest_MetadataEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void InvokeBindingRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int InvokeBindingRequest::kNameFieldNumber; +const int InvokeBindingRequest::kDataFieldNumber; +const int InvokeBindingRequest::kMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +InvokeBindingRequest::InvokeBindingRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_InvokeBindingRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.InvokeBindingRequest) +} +InvokeBindingRequest::InvokeBindingRequest(const InvokeBindingRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + metadata_.MergeFrom(from.metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.data().size() > 0) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.InvokeBindingRequest) +} + +void InvokeBindingRequest::SharedCtor() { + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +InvokeBindingRequest::~InvokeBindingRequest() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.InvokeBindingRequest) + SharedDtor(); +} + +void InvokeBindingRequest::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void InvokeBindingRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* InvokeBindingRequest::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const InvokeBindingRequest& InvokeBindingRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_InvokeBindingRequest.base); + return *internal_default_instance(); +} + + +void InvokeBindingRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.InvokeBindingRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metadata_.Clear(); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool InvokeBindingRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.InvokeBindingRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.InvokeBindingRequest.name")); + } else { + goto handle_unusual; + } + break; + } + + // bytes data = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + // map metadata = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + InvokeBindingRequest_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + InvokeBindingRequest_MetadataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.InvokeBindingRequest.MetadataEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.InvokeBindingRequest.MetadataEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.InvokeBindingRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.InvokeBindingRequest) + return false; +#undef DO_ +} + +void InvokeBindingRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.InvokeBindingRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.InvokeBindingRequest.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // bytes data = 2; + if (this->data().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->data(), output); + } + + // map metadata = 3; + if (!this->metadata().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.InvokeBindingRequest.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.InvokeBindingRequest.MetadataEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->metadata().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->metadata().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(metadata_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.InvokeBindingRequest) +} + +::google::protobuf::uint8* InvokeBindingRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.InvokeBindingRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.InvokeBindingRequest.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // bytes data = 2; + if (this->data().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->data(), target); + } + + // map metadata = 3; + if (!this->metadata().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.InvokeBindingRequest.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.InvokeBindingRequest.MetadataEntry.value"); + } + }; + + if (deterministic && + this->metadata().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->metadata().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(metadata_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 3, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 3, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.InvokeBindingRequest) + return target; +} + +size_t InvokeBindingRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.InvokeBindingRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map metadata = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->metadata_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // bytes data = 2; + if (this->data().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void InvokeBindingRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.InvokeBindingRequest) + GOOGLE_DCHECK_NE(&from, this); + const InvokeBindingRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.InvokeBindingRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.InvokeBindingRequest) + MergeFrom(*source); + } +} + +void InvokeBindingRequest::MergeFrom(const InvokeBindingRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.InvokeBindingRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + metadata_.MergeFrom(from.metadata_); + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.data().size() > 0) { + + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } +} + +void InvokeBindingRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.InvokeBindingRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InvokeBindingRequest::CopyFrom(const InvokeBindingRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.InvokeBindingRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InvokeBindingRequest::IsInitialized() const { + return true; +} + +void InvokeBindingRequest::Swap(InvokeBindingRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void InvokeBindingRequest::InternalSwap(InvokeBindingRequest* other) { + using std::swap; + metadata_.Swap(&other->metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata InvokeBindingRequest::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +GetSecretRequest_MetadataEntry_DoNotUse::GetSecretRequest_MetadataEntry_DoNotUse() {} +GetSecretRequest_MetadataEntry_DoNotUse::GetSecretRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void GetSecretRequest_MetadataEntry_DoNotUse::MergeFrom(const GetSecretRequest_MetadataEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata GetSecretRequest_MetadataEntry_DoNotUse::GetMetadata() const { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[8]; +} +void GetSecretRequest_MetadataEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void GetSecretRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetSecretRequest::kStoreNameFieldNumber; +const int GetSecretRequest::kKeyFieldNumber; +const int GetSecretRequest::kMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetSecretRequest::GetSecretRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetSecretRequest.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.GetSecretRequest) +} +GetSecretRequest::GetSecretRequest(const GetSecretRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + metadata_.MergeFrom(from.metadata_); + store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.store_name().size() > 0) { + store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); + } + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.GetSecretRequest) +} + +void GetSecretRequest::SharedCtor() { + store_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +GetSecretRequest::~GetSecretRequest() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.GetSecretRequest) + SharedDtor(); +} + +void GetSecretRequest::SharedDtor() { + store_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void GetSecretRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* GetSecretRequest::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const GetSecretRequest& GetSecretRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetSecretRequest.base); + return *internal_default_instance(); +} + + +void GetSecretRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.GetSecretRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metadata_.Clear(); + store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool GetSecretRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.GetSecretRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string store_name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_store_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.GetSecretRequest.store_name")); + } else { + goto handle_unusual; + } + break; + } + + // string key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.GetSecretRequest.key")); + } else { + goto handle_unusual; + } + break; + } + + // map metadata = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + GetSecretRequest_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + GetSecretRequest_MetadataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.GetSecretRequest.MetadataEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.GetSecretRequest.MetadataEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.GetSecretRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.GetSecretRequest) + return false; +#undef DO_ +} + +void GetSecretRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.GetSecretRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string store_name = 1; + if (this->store_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretRequest.store_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->store_name(), output); + } + + // string key = 2; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretRequest.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->key(), output); + } + + // map metadata = 3; + if (!this->metadata().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretRequest.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretRequest.MetadataEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->metadata().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->metadata().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(metadata_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.GetSecretRequest) +} + +::google::protobuf::uint8* GetSecretRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.GetSecretRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string store_name = 1; + if (this->store_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->store_name().data(), static_cast(this->store_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretRequest.store_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->store_name(), target); + } + + // string key = 2; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretRequest.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->key(), target); + } + + // map metadata = 3; + if (!this->metadata().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretRequest.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretRequest.MetadataEntry.value"); + } + }; + + if (deterministic && + this->metadata().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->metadata().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(metadata_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 3, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 3, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.GetSecretRequest) + return target; +} + +size_t GetSecretRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.GetSecretRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map metadata = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->metadata_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->metadata().begin(); + it != this->metadata().end(); ++it) { + entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string store_name = 1; + if (this->store_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->store_name()); + } + + // string key = 2; + if (this->key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetSecretRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.GetSecretRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetSecretRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.GetSecretRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.GetSecretRequest) + MergeFrom(*source); + } +} + +void GetSecretRequest::MergeFrom(const GetSecretRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.GetSecretRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + metadata_.MergeFrom(from.metadata_); + if (from.store_name().size() > 0) { + + store_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.store_name_); + } + if (from.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } +} + +void GetSecretRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.GetSecretRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetSecretRequest::CopyFrom(const GetSecretRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.GetSecretRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetSecretRequest::IsInitialized() const { + return true; +} + +void GetSecretRequest::Swap(GetSecretRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetSecretRequest::InternalSwap(GetSecretRequest* other) { + using std::swap; + metadata_.Swap(&other->metadata_); + store_name_.Swap(&other->store_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata GetSecretRequest::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +GetSecretResponse_DataEntry_DoNotUse::GetSecretResponse_DataEntry_DoNotUse() {} +GetSecretResponse_DataEntry_DoNotUse::GetSecretResponse_DataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void GetSecretResponse_DataEntry_DoNotUse::MergeFrom(const GetSecretResponse_DataEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata GetSecretResponse_DataEntry_DoNotUse::GetMetadata() const { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[10]; +} +void GetSecretResponse_DataEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void GetSecretResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetSecretResponse::kDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetSecretResponse::GetSecretResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetSecretResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.GetSecretResponse) +} +GetSecretResponse::GetSecretResponse(const GetSecretResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_.MergeFrom(from.data_); + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.GetSecretResponse) +} + +void GetSecretResponse::SharedCtor() { +} + +GetSecretResponse::~GetSecretResponse() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.GetSecretResponse) + SharedDtor(); +} + +void GetSecretResponse::SharedDtor() { +} + +void GetSecretResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* GetSecretResponse::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const GetSecretResponse& GetSecretResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetSecretResponse.base); + return *internal_default_instance(); +} + + +void GetSecretResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.GetSecretResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + _internal_metadata_.Clear(); +} + +bool GetSecretResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:dapr.proto.runtime.v1.GetSecretResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map data = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + GetSecretResponse_DataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + GetSecretResponse_DataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&data_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.GetSecretResponse.DataEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "dapr.proto.runtime.v1.GetSecretResponse.DataEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.GetSecretResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.GetSecretResponse) + return false; +#undef DO_ +} + +void GetSecretResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.GetSecretResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map data = 1; + if (!this->data().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretResponse.DataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretResponse.DataEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->data().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->data().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->data().begin(); + it != this->data().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(data_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->data().begin(); + it != this->data().end(); ++it) { + entry.reset(data_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:dapr.proto.runtime.v1.GetSecretResponse) +} + +::google::protobuf::uint8* GetSecretResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.GetSecretResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map data = 1; + if (!this->data().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretResponse.DataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.GetSecretResponse.DataEntry.value"); + } + }; + + if (deterministic && + this->data().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->data().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->data().begin(); + it != this->data().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(data_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->data().begin(); + it != this->data().end(); ++it) { + entry.reset(data_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:dapr.proto.runtime.v1.GetSecretResponse) + return target; +} + +size_t GetSecretResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.GetSecretResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map data = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->data_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->data().begin(); + it != this->data().end(); ++it) { + entry.reset(data_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetSecretResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.GetSecretResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetSecretResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.GetSecretResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.GetSecretResponse) + MergeFrom(*source); + } +} + +void GetSecretResponse::MergeFrom(const GetSecretResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.GetSecretResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_.MergeFrom(from.data_); +} + +void GetSecretResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.GetSecretResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetSecretResponse::CopyFrom(const GetSecretResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.GetSecretResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetSecretResponse::IsInitialized() const { + return true; +} + +void GetSecretResponse::Swap(GetSecretResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetSecretResponse::InternalSwap(GetSecretResponse* other) { + using std::swap; + data_.Swap(&other->data_); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata GetSecretResponse::GetMetadata() const { + protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace runtime +} // namespace proto +} // namespace dapr +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::InvokeServiceRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::InvokeServiceRequest >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::InvokeServiceRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::GetStateRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::GetStateRequest >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::GetStateRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::GetStateResponse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::GetStateResponse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::GetStateResponse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::DeleteStateRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::DeleteStateRequest >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::DeleteStateRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::SaveStateRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::SaveStateRequest >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::SaveStateRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::PublishEventRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::PublishEventRequest >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::PublishEventRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::InvokeBindingRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::InvokeBindingRequest >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::InvokeBindingRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::GetSecretRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::GetSecretRequest >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::GetSecretRequest >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::GetSecretResponse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::GetSecretResponse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::GetSecretResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/src/dapr/proto/runtime/v1/dapr.pb.h b/src/dapr/proto/runtime/v1/dapr.pb.h new file mode 100644 index 0000000..68dd851 --- /dev/null +++ b/src/dapr/proto/runtime/v1/dapr.pb.h @@ -0,0 +1,2434 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: dapr/proto/runtime/v1/dapr.proto + +#ifndef PROTOBUF_INCLUDED_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto +#define PROTOBUF_INCLUDED_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include "dapr/proto/common/v1/common.pb.h" +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto + +namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[12]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto +namespace dapr { +namespace proto { +namespace runtime { +namespace v1 { +class DeleteStateRequest; +class DeleteStateRequestDefaultTypeInternal; +extern DeleteStateRequestDefaultTypeInternal _DeleteStateRequest_default_instance_; +class GetSecretRequest; +class GetSecretRequestDefaultTypeInternal; +extern GetSecretRequestDefaultTypeInternal _GetSecretRequest_default_instance_; +class GetSecretRequest_MetadataEntry_DoNotUse; +class GetSecretRequest_MetadataEntry_DoNotUseDefaultTypeInternal; +extern GetSecretRequest_MetadataEntry_DoNotUseDefaultTypeInternal _GetSecretRequest_MetadataEntry_DoNotUse_default_instance_; +class GetSecretResponse; +class GetSecretResponseDefaultTypeInternal; +extern GetSecretResponseDefaultTypeInternal _GetSecretResponse_default_instance_; +class GetSecretResponse_DataEntry_DoNotUse; +class GetSecretResponse_DataEntry_DoNotUseDefaultTypeInternal; +extern GetSecretResponse_DataEntry_DoNotUseDefaultTypeInternal _GetSecretResponse_DataEntry_DoNotUse_default_instance_; +class GetStateRequest; +class GetStateRequestDefaultTypeInternal; +extern GetStateRequestDefaultTypeInternal _GetStateRequest_default_instance_; +class GetStateResponse; +class GetStateResponseDefaultTypeInternal; +extern GetStateResponseDefaultTypeInternal _GetStateResponse_default_instance_; +class InvokeBindingRequest; +class InvokeBindingRequestDefaultTypeInternal; +extern InvokeBindingRequestDefaultTypeInternal _InvokeBindingRequest_default_instance_; +class InvokeBindingRequest_MetadataEntry_DoNotUse; +class InvokeBindingRequest_MetadataEntry_DoNotUseDefaultTypeInternal; +extern InvokeBindingRequest_MetadataEntry_DoNotUseDefaultTypeInternal _InvokeBindingRequest_MetadataEntry_DoNotUse_default_instance_; +class InvokeServiceRequest; +class InvokeServiceRequestDefaultTypeInternal; +extern InvokeServiceRequestDefaultTypeInternal _InvokeServiceRequest_default_instance_; +class PublishEventRequest; +class PublishEventRequestDefaultTypeInternal; +extern PublishEventRequestDefaultTypeInternal _PublishEventRequest_default_instance_; +class SaveStateRequest; +class SaveStateRequestDefaultTypeInternal; +extern SaveStateRequestDefaultTypeInternal _SaveStateRequest_default_instance_; +} // namespace v1 +} // namespace runtime +} // namespace proto +} // namespace dapr +namespace google { +namespace protobuf { +template<> ::dapr::proto::runtime::v1::DeleteStateRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::DeleteStateRequest>(Arena*); +template<> ::dapr::proto::runtime::v1::GetSecretRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetSecretRequest>(Arena*); +template<> ::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetSecretRequest_MetadataEntry_DoNotUse>(Arena*); +template<> ::dapr::proto::runtime::v1::GetSecretResponse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetSecretResponse>(Arena*); +template<> ::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetSecretResponse_DataEntry_DoNotUse>(Arena*); +template<> ::dapr::proto::runtime::v1::GetStateRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetStateRequest>(Arena*); +template<> ::dapr::proto::runtime::v1::GetStateResponse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetStateResponse>(Arena*); +template<> ::dapr::proto::runtime::v1::InvokeBindingRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::InvokeBindingRequest>(Arena*); +template<> ::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::InvokeBindingRequest_MetadataEntry_DoNotUse>(Arena*); +template<> ::dapr::proto::runtime::v1::InvokeServiceRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::InvokeServiceRequest>(Arena*); +template<> ::dapr::proto::runtime::v1::PublishEventRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::PublishEventRequest>(Arena*); +template<> ::dapr::proto::runtime::v1::SaveStateRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::SaveStateRequest>(Arena*); +} // namespace protobuf +} // namespace google +namespace dapr { +namespace proto { +namespace runtime { +namespace v1 { + +// =================================================================== + +class InvokeServiceRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.InvokeServiceRequest) */ { + public: + InvokeServiceRequest(); + virtual ~InvokeServiceRequest(); + + InvokeServiceRequest(const InvokeServiceRequest& from); + + inline InvokeServiceRequest& operator=(const InvokeServiceRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + InvokeServiceRequest(InvokeServiceRequest&& from) noexcept + : InvokeServiceRequest() { + *this = ::std::move(from); + } + + inline InvokeServiceRequest& operator=(InvokeServiceRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const InvokeServiceRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const InvokeServiceRequest* internal_default_instance() { + return reinterpret_cast( + &_InvokeServiceRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(InvokeServiceRequest* other); + friend void swap(InvokeServiceRequest& a, InvokeServiceRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline InvokeServiceRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + InvokeServiceRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const InvokeServiceRequest& from); + void MergeFrom(const InvokeServiceRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(InvokeServiceRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // .dapr.proto.common.v1.InvokeRequest message = 3; + bool has_message() const; + void clear_message(); + static const int kMessageFieldNumber = 3; + private: + const ::dapr::proto::common::v1::InvokeRequest& _internal_message() const; + public: + const ::dapr::proto::common::v1::InvokeRequest& message() const; + ::dapr::proto::common::v1::InvokeRequest* release_message(); + ::dapr::proto::common::v1::InvokeRequest* mutable_message(); + void set_allocated_message(::dapr::proto::common::v1::InvokeRequest* message); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.InvokeServiceRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::dapr::proto::common::v1::InvokeRequest* message_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class GetStateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.GetStateRequest) */ { + public: + GetStateRequest(); + virtual ~GetStateRequest(); + + GetStateRequest(const GetStateRequest& from); + + inline GetStateRequest& operator=(const GetStateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetStateRequest(GetStateRequest&& from) noexcept + : GetStateRequest() { + *this = ::std::move(from); + } + + inline GetStateRequest& operator=(GetStateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const GetStateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetStateRequest* internal_default_instance() { + return reinterpret_cast( + &_GetStateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(GetStateRequest* other); + friend void swap(GetStateRequest& a, GetStateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetStateRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + GetStateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetStateRequest& from); + void MergeFrom(const GetStateRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetStateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string store_name = 1; + void clear_store_name(); + static const int kStoreNameFieldNumber = 1; + const ::std::string& store_name() const; + void set_store_name(const ::std::string& value); + #if LANG_CXX11 + void set_store_name(::std::string&& value); + #endif + void set_store_name(const char* value); + void set_store_name(const char* value, size_t size); + ::std::string* mutable_store_name(); + ::std::string* release_store_name(); + void set_allocated_store_name(::std::string* store_name); + + // string key = 2; + void clear_key(); + static const int kKeyFieldNumber = 2; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3; + void clear_consistency(); + static const int kConsistencyFieldNumber = 3; + ::dapr::proto::common::v1::StateOptions_StateConsistency consistency() const; + void set_consistency(::dapr::proto::common::v1::StateOptions_StateConsistency value); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.GetStateRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr store_name_; + ::google::protobuf::internal::ArenaStringPtr key_; + int consistency_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class GetStateResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.GetStateResponse) */ { + public: + GetStateResponse(); + virtual ~GetStateResponse(); + + GetStateResponse(const GetStateResponse& from); + + inline GetStateResponse& operator=(const GetStateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetStateResponse(GetStateResponse&& from) noexcept + : GetStateResponse() { + *this = ::std::move(from); + } + + inline GetStateResponse& operator=(GetStateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const GetStateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetStateResponse* internal_default_instance() { + return reinterpret_cast( + &_GetStateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(GetStateResponse* other); + friend void swap(GetStateResponse& a, GetStateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetStateResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + GetStateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetStateResponse& from); + void MergeFrom(const GetStateResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetStateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // bytes data = 1; + void clear_data(); + static const int kDataFieldNumber = 1; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const void* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // string etag = 2; + void clear_etag(); + static const int kEtagFieldNumber = 2; + const ::std::string& etag() const; + void set_etag(const ::std::string& value); + #if LANG_CXX11 + void set_etag(::std::string&& value); + #endif + void set_etag(const char* value); + void set_etag(const char* value, size_t size); + ::std::string* mutable_etag(); + ::std::string* release_etag(); + void set_allocated_etag(::std::string* etag); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.GetStateResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr data_; + ::google::protobuf::internal::ArenaStringPtr etag_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class DeleteStateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.DeleteStateRequest) */ { + public: + DeleteStateRequest(); + virtual ~DeleteStateRequest(); + + DeleteStateRequest(const DeleteStateRequest& from); + + inline DeleteStateRequest& operator=(const DeleteStateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DeleteStateRequest(DeleteStateRequest&& from) noexcept + : DeleteStateRequest() { + *this = ::std::move(from); + } + + inline DeleteStateRequest& operator=(DeleteStateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteStateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DeleteStateRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteStateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(DeleteStateRequest* other); + friend void swap(DeleteStateRequest& a, DeleteStateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DeleteStateRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + DeleteStateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DeleteStateRequest& from); + void MergeFrom(const DeleteStateRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteStateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string store_name = 1; + void clear_store_name(); + static const int kStoreNameFieldNumber = 1; + const ::std::string& store_name() const; + void set_store_name(const ::std::string& value); + #if LANG_CXX11 + void set_store_name(::std::string&& value); + #endif + void set_store_name(const char* value); + void set_store_name(const char* value, size_t size); + ::std::string* mutable_store_name(); + ::std::string* release_store_name(); + void set_allocated_store_name(::std::string* store_name); + + // string key = 2; + void clear_key(); + static const int kKeyFieldNumber = 2; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // string etag = 3; + void clear_etag(); + static const int kEtagFieldNumber = 3; + const ::std::string& etag() const; + void set_etag(const ::std::string& value); + #if LANG_CXX11 + void set_etag(::std::string&& value); + #endif + void set_etag(const char* value); + void set_etag(const char* value, size_t size); + ::std::string* mutable_etag(); + ::std::string* release_etag(); + void set_allocated_etag(::std::string* etag); + + // .dapr.proto.common.v1.StateOptions options = 4; + bool has_options() const; + void clear_options(); + static const int kOptionsFieldNumber = 4; + private: + const ::dapr::proto::common::v1::StateOptions& _internal_options() const; + public: + const ::dapr::proto::common::v1::StateOptions& options() const; + ::dapr::proto::common::v1::StateOptions* release_options(); + ::dapr::proto::common::v1::StateOptions* mutable_options(); + void set_allocated_options(::dapr::proto::common::v1::StateOptions* options); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.DeleteStateRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr store_name_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr etag_; + ::dapr::proto::common::v1::StateOptions* options_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class SaveStateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.SaveStateRequest) */ { + public: + SaveStateRequest(); + virtual ~SaveStateRequest(); + + SaveStateRequest(const SaveStateRequest& from); + + inline SaveStateRequest& operator=(const SaveStateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SaveStateRequest(SaveStateRequest&& from) noexcept + : SaveStateRequest() { + *this = ::std::move(from); + } + + inline SaveStateRequest& operator=(SaveStateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const SaveStateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SaveStateRequest* internal_default_instance() { + return reinterpret_cast( + &_SaveStateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(SaveStateRequest* other); + friend void swap(SaveStateRequest& a, SaveStateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SaveStateRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + SaveStateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SaveStateRequest& from); + void MergeFrom(const SaveStateRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SaveStateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .dapr.proto.common.v1.StateSaveRequest requests = 2; + int requests_size() const; + void clear_requests(); + static const int kRequestsFieldNumber = 2; + ::dapr::proto::common::v1::StateSaveRequest* mutable_requests(int index); + ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::StateSaveRequest >* + mutable_requests(); + const ::dapr::proto::common::v1::StateSaveRequest& requests(int index) const; + ::dapr::proto::common::v1::StateSaveRequest* add_requests(); + const ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::StateSaveRequest >& + requests() const; + + // string store_name = 1; + void clear_store_name(); + static const int kStoreNameFieldNumber = 1; + const ::std::string& store_name() const; + void set_store_name(const ::std::string& value); + #if LANG_CXX11 + void set_store_name(::std::string&& value); + #endif + void set_store_name(const char* value); + void set_store_name(const char* value, size_t size); + ::std::string* mutable_store_name(); + ::std::string* release_store_name(); + void set_allocated_store_name(::std::string* store_name); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.SaveStateRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::StateSaveRequest > requests_; + ::google::protobuf::internal::ArenaStringPtr store_name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class PublishEventRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.PublishEventRequest) */ { + public: + PublishEventRequest(); + virtual ~PublishEventRequest(); + + PublishEventRequest(const PublishEventRequest& from); + + inline PublishEventRequest& operator=(const PublishEventRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PublishEventRequest(PublishEventRequest&& from) noexcept + : PublishEventRequest() { + *this = ::std::move(from); + } + + inline PublishEventRequest& operator=(PublishEventRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const PublishEventRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PublishEventRequest* internal_default_instance() { + return reinterpret_cast( + &_PublishEventRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(PublishEventRequest* other); + friend void swap(PublishEventRequest& a, PublishEventRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PublishEventRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + PublishEventRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PublishEventRequest& from); + void MergeFrom(const PublishEventRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PublishEventRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string topic = 1; + void clear_topic(); + static const int kTopicFieldNumber = 1; + const ::std::string& topic() const; + void set_topic(const ::std::string& value); + #if LANG_CXX11 + void set_topic(::std::string&& value); + #endif + void set_topic(const char* value); + void set_topic(const char* value, size_t size); + ::std::string* mutable_topic(); + ::std::string* release_topic(); + void set_allocated_topic(::std::string* topic); + + // bytes data = 2; + void clear_data(); + static const int kDataFieldNumber = 2; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const void* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.PublishEventRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr topic_; + ::google::protobuf::internal::ArenaStringPtr data_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class InvokeBindingRequest_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + InvokeBindingRequest_MetadataEntry_DoNotUse(); + InvokeBindingRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const InvokeBindingRequest_MetadataEntry_DoNotUse& other); + static const InvokeBindingRequest_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_InvokeBindingRequest_MetadataEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class InvokeBindingRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.InvokeBindingRequest) */ { + public: + InvokeBindingRequest(); + virtual ~InvokeBindingRequest(); + + InvokeBindingRequest(const InvokeBindingRequest& from); + + inline InvokeBindingRequest& operator=(const InvokeBindingRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + InvokeBindingRequest(InvokeBindingRequest&& from) noexcept + : InvokeBindingRequest() { + *this = ::std::move(from); + } + + inline InvokeBindingRequest& operator=(InvokeBindingRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const InvokeBindingRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const InvokeBindingRequest* internal_default_instance() { + return reinterpret_cast( + &_InvokeBindingRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(InvokeBindingRequest* other); + friend void swap(InvokeBindingRequest& a, InvokeBindingRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline InvokeBindingRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + InvokeBindingRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const InvokeBindingRequest& from); + void MergeFrom(const InvokeBindingRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(InvokeBindingRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map metadata = 3; + int metadata_size() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 3; + const ::google::protobuf::Map< ::std::string, ::std::string >& + metadata() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_metadata(); + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // bytes data = 2; + void clear_data(); + static const int kDataFieldNumber = 2; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const void* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.InvokeBindingRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + InvokeBindingRequest_MetadataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr data_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class GetSecretRequest_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + GetSecretRequest_MetadataEntry_DoNotUse(); + GetSecretRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const GetSecretRequest_MetadataEntry_DoNotUse& other); + static const GetSecretRequest_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetSecretRequest_MetadataEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class GetSecretRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.GetSecretRequest) */ { + public: + GetSecretRequest(); + virtual ~GetSecretRequest(); + + GetSecretRequest(const GetSecretRequest& from); + + inline GetSecretRequest& operator=(const GetSecretRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetSecretRequest(GetSecretRequest&& from) noexcept + : GetSecretRequest() { + *this = ::std::move(from); + } + + inline GetSecretRequest& operator=(GetSecretRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const GetSecretRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetSecretRequest* internal_default_instance() { + return reinterpret_cast( + &_GetSecretRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(GetSecretRequest* other); + friend void swap(GetSecretRequest& a, GetSecretRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetSecretRequest* New() const final { + return CreateMaybeMessage(NULL); + } + + GetSecretRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetSecretRequest& from); + void MergeFrom(const GetSecretRequest& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetSecretRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map metadata = 3; + int metadata_size() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 3; + const ::google::protobuf::Map< ::std::string, ::std::string >& + metadata() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_metadata(); + + // string store_name = 1; + void clear_store_name(); + static const int kStoreNameFieldNumber = 1; + const ::std::string& store_name() const; + void set_store_name(const ::std::string& value); + #if LANG_CXX11 + void set_store_name(::std::string&& value); + #endif + void set_store_name(const char* value); + void set_store_name(const char* value, size_t size); + ::std::string* mutable_store_name(); + ::std::string* release_store_name(); + void set_allocated_store_name(::std::string* store_name); + + // string key = 2; + void clear_key(); + static const int kKeyFieldNumber = 2; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.GetSecretRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + GetSecretRequest_MetadataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > metadata_; + ::google::protobuf::internal::ArenaStringPtr store_name_; + ::google::protobuf::internal::ArenaStringPtr key_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class GetSecretResponse_DataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + GetSecretResponse_DataEntry_DoNotUse(); + GetSecretResponse_DataEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const GetSecretResponse_DataEntry_DoNotUse& other); + static const GetSecretResponse_DataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetSecretResponse_DataEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class GetSecretResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.GetSecretResponse) */ { + public: + GetSecretResponse(); + virtual ~GetSecretResponse(); + + GetSecretResponse(const GetSecretResponse& from); + + inline GetSecretResponse& operator=(const GetSecretResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetSecretResponse(GetSecretResponse&& from) noexcept + : GetSecretResponse() { + *this = ::std::move(from); + } + + inline GetSecretResponse& operator=(GetSecretResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const GetSecretResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetSecretResponse* internal_default_instance() { + return reinterpret_cast( + &_GetSecretResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(GetSecretResponse* other); + friend void swap(GetSecretResponse& a, GetSecretResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetSecretResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + GetSecretResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetSecretResponse& from); + void MergeFrom(const GetSecretResponse& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetSecretResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map data = 1; + int data_size() const; + void clear_data(); + static const int kDataFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + data() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_data(); + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.GetSecretResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + GetSecretResponse_DataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > data_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// InvokeServiceRequest + +// string id = 1; +inline void InvokeServiceRequest::clear_id() { + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& InvokeServiceRequest::id() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.InvokeServiceRequest.id) + return id_.GetNoArena(); +} +inline void InvokeServiceRequest::set_id(const ::std::string& value) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.InvokeServiceRequest.id) +} +#if LANG_CXX11 +inline void InvokeServiceRequest::set_id(::std::string&& value) { + + id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.InvokeServiceRequest.id) +} +#endif +inline void InvokeServiceRequest::set_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.InvokeServiceRequest.id) +} +inline void InvokeServiceRequest::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.InvokeServiceRequest.id) +} +inline ::std::string* InvokeServiceRequest::mutable_id() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.InvokeServiceRequest.id) + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* InvokeServiceRequest::release_id() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.InvokeServiceRequest.id) + + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void InvokeServiceRequest::set_allocated_id(::std::string* id) { + if (id != NULL) { + + } else { + + } + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.InvokeServiceRequest.id) +} + +// .dapr.proto.common.v1.InvokeRequest message = 3; +inline bool InvokeServiceRequest::has_message() const { + return this != internal_default_instance() && message_ != NULL; +} +inline const ::dapr::proto::common::v1::InvokeRequest& InvokeServiceRequest::_internal_message() const { + return *message_; +} +inline const ::dapr::proto::common::v1::InvokeRequest& InvokeServiceRequest::message() const { + const ::dapr::proto::common::v1::InvokeRequest* p = message_; + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.InvokeServiceRequest.message) + return p != NULL ? *p : *reinterpret_cast( + &::dapr::proto::common::v1::_InvokeRequest_default_instance_); +} +inline ::dapr::proto::common::v1::InvokeRequest* InvokeServiceRequest::release_message() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.InvokeServiceRequest.message) + + ::dapr::proto::common::v1::InvokeRequest* temp = message_; + message_ = NULL; + return temp; +} +inline ::dapr::proto::common::v1::InvokeRequest* InvokeServiceRequest::mutable_message() { + + if (message_ == NULL) { + auto* p = CreateMaybeMessage<::dapr::proto::common::v1::InvokeRequest>(GetArenaNoVirtual()); + message_ = p; + } + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.InvokeServiceRequest.message) + return message_; +} +inline void InvokeServiceRequest::set_allocated_message(::dapr::proto::common::v1::InvokeRequest* message) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(message_); + } + if (message) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + message = ::google::protobuf::internal::GetOwnedMessage( + message_arena, message, submessage_arena); + } + + } else { + + } + message_ = message; + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.InvokeServiceRequest.message) +} + +// ------------------------------------------------------------------- + +// GetStateRequest + +// string store_name = 1; +inline void GetStateRequest::clear_store_name() { + store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetStateRequest::store_name() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.GetStateRequest.store_name) + return store_name_.GetNoArena(); +} +inline void GetStateRequest::set_store_name(const ::std::string& value) { + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.GetStateRequest.store_name) +} +#if LANG_CXX11 +inline void GetStateRequest::set_store_name(::std::string&& value) { + + store_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.GetStateRequest.store_name) +} +#endif +inline void GetStateRequest::set_store_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.GetStateRequest.store_name) +} +inline void GetStateRequest::set_store_name(const char* value, size_t size) { + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.GetStateRequest.store_name) +} +inline ::std::string* GetStateRequest::mutable_store_name() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.GetStateRequest.store_name) + return store_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetStateRequest::release_store_name() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.GetStateRequest.store_name) + + return store_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetStateRequest::set_allocated_store_name(::std::string* store_name) { + if (store_name != NULL) { + + } else { + + } + store_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), store_name); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.GetStateRequest.store_name) +} + +// string key = 2; +inline void GetStateRequest::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetStateRequest::key() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.GetStateRequest.key) + return key_.GetNoArena(); +} +inline void GetStateRequest::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.GetStateRequest.key) +} +#if LANG_CXX11 +inline void GetStateRequest::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.GetStateRequest.key) +} +#endif +inline void GetStateRequest::set_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.GetStateRequest.key) +} +inline void GetStateRequest::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.GetStateRequest.key) +} +inline ::std::string* GetStateRequest::mutable_key() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.GetStateRequest.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetStateRequest::release_key() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.GetStateRequest.key) + + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetStateRequest::set_allocated_key(::std::string* key) { + if (key != NULL) { + + } else { + + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.GetStateRequest.key) +} + +// .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3; +inline void GetStateRequest::clear_consistency() { + consistency_ = 0; +} +inline ::dapr::proto::common::v1::StateOptions_StateConsistency GetStateRequest::consistency() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.GetStateRequest.consistency) + return static_cast< ::dapr::proto::common::v1::StateOptions_StateConsistency >(consistency_); +} +inline void GetStateRequest::set_consistency(::dapr::proto::common::v1::StateOptions_StateConsistency value) { + + consistency_ = value; + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.GetStateRequest.consistency) +} + +// ------------------------------------------------------------------- + +// GetStateResponse + +// bytes data = 1; +inline void GetStateResponse::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetStateResponse::data() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.GetStateResponse.data) + return data_.GetNoArena(); +} +inline void GetStateResponse::set_data(const ::std::string& value) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.GetStateResponse.data) +} +#if LANG_CXX11 +inline void GetStateResponse::set_data(::std::string&& value) { + + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.GetStateResponse.data) +} +#endif +inline void GetStateResponse::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.GetStateResponse.data) +} +inline void GetStateResponse::set_data(const void* value, size_t size) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.GetStateResponse.data) +} +inline ::std::string* GetStateResponse::mutable_data() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.GetStateResponse.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetStateResponse::release_data() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.GetStateResponse.data) + + return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetStateResponse::set_allocated_data(::std::string* data) { + if (data != NULL) { + + } else { + + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.GetStateResponse.data) +} + +// string etag = 2; +inline void GetStateResponse::clear_etag() { + etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetStateResponse::etag() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.GetStateResponse.etag) + return etag_.GetNoArena(); +} +inline void GetStateResponse::set_etag(const ::std::string& value) { + + etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.GetStateResponse.etag) +} +#if LANG_CXX11 +inline void GetStateResponse::set_etag(::std::string&& value) { + + etag_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.GetStateResponse.etag) +} +#endif +inline void GetStateResponse::set_etag(const char* value) { + GOOGLE_DCHECK(value != NULL); + + etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.GetStateResponse.etag) +} +inline void GetStateResponse::set_etag(const char* value, size_t size) { + + etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.GetStateResponse.etag) +} +inline ::std::string* GetStateResponse::mutable_etag() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.GetStateResponse.etag) + return etag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetStateResponse::release_etag() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.GetStateResponse.etag) + + return etag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetStateResponse::set_allocated_etag(::std::string* etag) { + if (etag != NULL) { + + } else { + + } + etag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), etag); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.GetStateResponse.etag) +} + +// ------------------------------------------------------------------- + +// DeleteStateRequest + +// string store_name = 1; +inline void DeleteStateRequest::clear_store_name() { + store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DeleteStateRequest::store_name() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.DeleteStateRequest.store_name) + return store_name_.GetNoArena(); +} +inline void DeleteStateRequest::set_store_name(const ::std::string& value) { + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.DeleteStateRequest.store_name) +} +#if LANG_CXX11 +inline void DeleteStateRequest::set_store_name(::std::string&& value) { + + store_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.DeleteStateRequest.store_name) +} +#endif +inline void DeleteStateRequest::set_store_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.DeleteStateRequest.store_name) +} +inline void DeleteStateRequest::set_store_name(const char* value, size_t size) { + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.DeleteStateRequest.store_name) +} +inline ::std::string* DeleteStateRequest::mutable_store_name() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.DeleteStateRequest.store_name) + return store_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DeleteStateRequest::release_store_name() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.DeleteStateRequest.store_name) + + return store_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DeleteStateRequest::set_allocated_store_name(::std::string* store_name) { + if (store_name != NULL) { + + } else { + + } + store_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), store_name); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.DeleteStateRequest.store_name) +} + +// string key = 2; +inline void DeleteStateRequest::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DeleteStateRequest::key() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.DeleteStateRequest.key) + return key_.GetNoArena(); +} +inline void DeleteStateRequest::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.DeleteStateRequest.key) +} +#if LANG_CXX11 +inline void DeleteStateRequest::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.DeleteStateRequest.key) +} +#endif +inline void DeleteStateRequest::set_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.DeleteStateRequest.key) +} +inline void DeleteStateRequest::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.DeleteStateRequest.key) +} +inline ::std::string* DeleteStateRequest::mutable_key() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.DeleteStateRequest.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DeleteStateRequest::release_key() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.DeleteStateRequest.key) + + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DeleteStateRequest::set_allocated_key(::std::string* key) { + if (key != NULL) { + + } else { + + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.DeleteStateRequest.key) +} + +// string etag = 3; +inline void DeleteStateRequest::clear_etag() { + etag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DeleteStateRequest::etag() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.DeleteStateRequest.etag) + return etag_.GetNoArena(); +} +inline void DeleteStateRequest::set_etag(const ::std::string& value) { + + etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.DeleteStateRequest.etag) +} +#if LANG_CXX11 +inline void DeleteStateRequest::set_etag(::std::string&& value) { + + etag_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.DeleteStateRequest.etag) +} +#endif +inline void DeleteStateRequest::set_etag(const char* value) { + GOOGLE_DCHECK(value != NULL); + + etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.DeleteStateRequest.etag) +} +inline void DeleteStateRequest::set_etag(const char* value, size_t size) { + + etag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.DeleteStateRequest.etag) +} +inline ::std::string* DeleteStateRequest::mutable_etag() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.DeleteStateRequest.etag) + return etag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DeleteStateRequest::release_etag() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.DeleteStateRequest.etag) + + return etag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DeleteStateRequest::set_allocated_etag(::std::string* etag) { + if (etag != NULL) { + + } else { + + } + etag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), etag); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.DeleteStateRequest.etag) +} + +// .dapr.proto.common.v1.StateOptions options = 4; +inline bool DeleteStateRequest::has_options() const { + return this != internal_default_instance() && options_ != NULL; +} +inline const ::dapr::proto::common::v1::StateOptions& DeleteStateRequest::_internal_options() const { + return *options_; +} +inline const ::dapr::proto::common::v1::StateOptions& DeleteStateRequest::options() const { + const ::dapr::proto::common::v1::StateOptions* p = options_; + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.DeleteStateRequest.options) + return p != NULL ? *p : *reinterpret_cast( + &::dapr::proto::common::v1::_StateOptions_default_instance_); +} +inline ::dapr::proto::common::v1::StateOptions* DeleteStateRequest::release_options() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.DeleteStateRequest.options) + + ::dapr::proto::common::v1::StateOptions* temp = options_; + options_ = NULL; + return temp; +} +inline ::dapr::proto::common::v1::StateOptions* DeleteStateRequest::mutable_options() { + + if (options_ == NULL) { + auto* p = CreateMaybeMessage<::dapr::proto::common::v1::StateOptions>(GetArenaNoVirtual()); + options_ = p; + } + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.DeleteStateRequest.options) + return options_; +} +inline void DeleteStateRequest::set_allocated_options(::dapr::proto::common::v1::StateOptions* options) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(options_); + } + if (options) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + options = ::google::protobuf::internal::GetOwnedMessage( + message_arena, options, submessage_arena); + } + + } else { + + } + options_ = options; + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.DeleteStateRequest.options) +} + +// ------------------------------------------------------------------- + +// SaveStateRequest + +// string store_name = 1; +inline void SaveStateRequest::clear_store_name() { + store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SaveStateRequest::store_name() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.SaveStateRequest.store_name) + return store_name_.GetNoArena(); +} +inline void SaveStateRequest::set_store_name(const ::std::string& value) { + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.SaveStateRequest.store_name) +} +#if LANG_CXX11 +inline void SaveStateRequest::set_store_name(::std::string&& value) { + + store_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.SaveStateRequest.store_name) +} +#endif +inline void SaveStateRequest::set_store_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.SaveStateRequest.store_name) +} +inline void SaveStateRequest::set_store_name(const char* value, size_t size) { + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.SaveStateRequest.store_name) +} +inline ::std::string* SaveStateRequest::mutable_store_name() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.SaveStateRequest.store_name) + return store_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SaveStateRequest::release_store_name() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.SaveStateRequest.store_name) + + return store_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SaveStateRequest::set_allocated_store_name(::std::string* store_name) { + if (store_name != NULL) { + + } else { + + } + store_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), store_name); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.SaveStateRequest.store_name) +} + +// repeated .dapr.proto.common.v1.StateSaveRequest requests = 2; +inline int SaveStateRequest::requests_size() const { + return requests_.size(); +} +inline ::dapr::proto::common::v1::StateSaveRequest* SaveStateRequest::mutable_requests(int index) { + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.SaveStateRequest.requests) + return requests_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::StateSaveRequest >* +SaveStateRequest::mutable_requests() { + // @@protoc_insertion_point(field_mutable_list:dapr.proto.runtime.v1.SaveStateRequest.requests) + return &requests_; +} +inline const ::dapr::proto::common::v1::StateSaveRequest& SaveStateRequest::requests(int index) const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.SaveStateRequest.requests) + return requests_.Get(index); +} +inline ::dapr::proto::common::v1::StateSaveRequest* SaveStateRequest::add_requests() { + // @@protoc_insertion_point(field_add:dapr.proto.runtime.v1.SaveStateRequest.requests) + return requests_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::StateSaveRequest >& +SaveStateRequest::requests() const { + // @@protoc_insertion_point(field_list:dapr.proto.runtime.v1.SaveStateRequest.requests) + return requests_; +} + +// ------------------------------------------------------------------- + +// PublishEventRequest + +// string topic = 1; +inline void PublishEventRequest::clear_topic() { + topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PublishEventRequest::topic() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.PublishEventRequest.topic) + return topic_.GetNoArena(); +} +inline void PublishEventRequest::set_topic(const ::std::string& value) { + + topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.PublishEventRequest.topic) +} +#if LANG_CXX11 +inline void PublishEventRequest::set_topic(::std::string&& value) { + + topic_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.PublishEventRequest.topic) +} +#endif +inline void PublishEventRequest::set_topic(const char* value) { + GOOGLE_DCHECK(value != NULL); + + topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.PublishEventRequest.topic) +} +inline void PublishEventRequest::set_topic(const char* value, size_t size) { + + topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.PublishEventRequest.topic) +} +inline ::std::string* PublishEventRequest::mutable_topic() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.PublishEventRequest.topic) + return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PublishEventRequest::release_topic() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.PublishEventRequest.topic) + + return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PublishEventRequest::set_allocated_topic(::std::string* topic) { + if (topic != NULL) { + + } else { + + } + topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.PublishEventRequest.topic) +} + +// bytes data = 2; +inline void PublishEventRequest::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PublishEventRequest::data() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.PublishEventRequest.data) + return data_.GetNoArena(); +} +inline void PublishEventRequest::set_data(const ::std::string& value) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.PublishEventRequest.data) +} +#if LANG_CXX11 +inline void PublishEventRequest::set_data(::std::string&& value) { + + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.PublishEventRequest.data) +} +#endif +inline void PublishEventRequest::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.PublishEventRequest.data) +} +inline void PublishEventRequest::set_data(const void* value, size_t size) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.PublishEventRequest.data) +} +inline ::std::string* PublishEventRequest::mutable_data() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.PublishEventRequest.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PublishEventRequest::release_data() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.PublishEventRequest.data) + + return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PublishEventRequest::set_allocated_data(::std::string* data) { + if (data != NULL) { + + } else { + + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.PublishEventRequest.data) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// InvokeBindingRequest + +// string name = 1; +inline void InvokeBindingRequest::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& InvokeBindingRequest::name() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.InvokeBindingRequest.name) + return name_.GetNoArena(); +} +inline void InvokeBindingRequest::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.InvokeBindingRequest.name) +} +#if LANG_CXX11 +inline void InvokeBindingRequest::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.InvokeBindingRequest.name) +} +#endif +inline void InvokeBindingRequest::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.InvokeBindingRequest.name) +} +inline void InvokeBindingRequest::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.InvokeBindingRequest.name) +} +inline ::std::string* InvokeBindingRequest::mutable_name() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.InvokeBindingRequest.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* InvokeBindingRequest::release_name() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.InvokeBindingRequest.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void InvokeBindingRequest::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.InvokeBindingRequest.name) +} + +// bytes data = 2; +inline void InvokeBindingRequest::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& InvokeBindingRequest::data() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.InvokeBindingRequest.data) + return data_.GetNoArena(); +} +inline void InvokeBindingRequest::set_data(const ::std::string& value) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.InvokeBindingRequest.data) +} +#if LANG_CXX11 +inline void InvokeBindingRequest::set_data(::std::string&& value) { + + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.InvokeBindingRequest.data) +} +#endif +inline void InvokeBindingRequest::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.InvokeBindingRequest.data) +} +inline void InvokeBindingRequest::set_data(const void* value, size_t size) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.InvokeBindingRequest.data) +} +inline ::std::string* InvokeBindingRequest::mutable_data() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.InvokeBindingRequest.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* InvokeBindingRequest::release_data() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.InvokeBindingRequest.data) + + return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void InvokeBindingRequest::set_allocated_data(::std::string* data) { + if (data != NULL) { + + } else { + + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.InvokeBindingRequest.data) +} + +// map metadata = 3; +inline int InvokeBindingRequest::metadata_size() const { + return metadata_.size(); +} +inline void InvokeBindingRequest::clear_metadata() { + metadata_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +InvokeBindingRequest::metadata() const { + // @@protoc_insertion_point(field_map:dapr.proto.runtime.v1.InvokeBindingRequest.metadata) + return metadata_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +InvokeBindingRequest::mutable_metadata() { + // @@protoc_insertion_point(field_mutable_map:dapr.proto.runtime.v1.InvokeBindingRequest.metadata) + return metadata_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// GetSecretRequest + +// string store_name = 1; +inline void GetSecretRequest::clear_store_name() { + store_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetSecretRequest::store_name() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.GetSecretRequest.store_name) + return store_name_.GetNoArena(); +} +inline void GetSecretRequest::set_store_name(const ::std::string& value) { + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.GetSecretRequest.store_name) +} +#if LANG_CXX11 +inline void GetSecretRequest::set_store_name(::std::string&& value) { + + store_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.GetSecretRequest.store_name) +} +#endif +inline void GetSecretRequest::set_store_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.GetSecretRequest.store_name) +} +inline void GetSecretRequest::set_store_name(const char* value, size_t size) { + + store_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.GetSecretRequest.store_name) +} +inline ::std::string* GetSecretRequest::mutable_store_name() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.GetSecretRequest.store_name) + return store_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetSecretRequest::release_store_name() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.GetSecretRequest.store_name) + + return store_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetSecretRequest::set_allocated_store_name(::std::string* store_name) { + if (store_name != NULL) { + + } else { + + } + store_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), store_name); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.GetSecretRequest.store_name) +} + +// string key = 2; +inline void GetSecretRequest::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetSecretRequest::key() const { + // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.GetSecretRequest.key) + return key_.GetNoArena(); +} +inline void GetSecretRequest::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:dapr.proto.runtime.v1.GetSecretRequest.key) +} +#if LANG_CXX11 +inline void GetSecretRequest::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:dapr.proto.runtime.v1.GetSecretRequest.key) +} +#endif +inline void GetSecretRequest::set_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:dapr.proto.runtime.v1.GetSecretRequest.key) +} +inline void GetSecretRequest::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:dapr.proto.runtime.v1.GetSecretRequest.key) +} +inline ::std::string* GetSecretRequest::mutable_key() { + + // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.GetSecretRequest.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetSecretRequest::release_key() { + // @@protoc_insertion_point(field_release:dapr.proto.runtime.v1.GetSecretRequest.key) + + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetSecretRequest::set_allocated_key(::std::string* key) { + if (key != NULL) { + + } else { + + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.GetSecretRequest.key) +} + +// map metadata = 3; +inline int GetSecretRequest::metadata_size() const { + return metadata_.size(); +} +inline void GetSecretRequest::clear_metadata() { + metadata_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +GetSecretRequest::metadata() const { + // @@protoc_insertion_point(field_map:dapr.proto.runtime.v1.GetSecretRequest.metadata) + return metadata_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +GetSecretRequest::mutable_metadata() { + // @@protoc_insertion_point(field_mutable_map:dapr.proto.runtime.v1.GetSecretRequest.metadata) + return metadata_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// GetSecretResponse + +// map data = 1; +inline int GetSecretResponse::data_size() const { + return data_.size(); +} +inline void GetSecretResponse::clear_data() { + data_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +GetSecretResponse::data() const { + // @@protoc_insertion_point(field_map:dapr.proto.runtime.v1.GetSecretResponse.data) + return data_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +GetSecretResponse::mutable_data() { + // @@protoc_insertion_point(field_mutable_map:dapr.proto.runtime.v1.GetSecretResponse.data) + return data_.MutableMap(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace runtime +} // namespace proto +} // namespace dapr + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto