diff --git a/dapr/proto/common/v1/common.proto b/dapr/proto/common/v1/common.proto index f3d45cc..2810a1a 100644 --- a/dapr/proto/common/v1/common.proto +++ b/dapr/proto/common/v1/common.proto @@ -134,18 +134,14 @@ message StateOptions { StateConsistency consistency = 2; } - // ConfigurationItem represents all the configuration with its name(key). message ConfigurationItem { - // Required. The name of configuration item - string key = 1; - // Required. The value of configuration item. - string value = 2; + string value = 1; // Version is response only and cannot be fetched. Store is not expected to keep all versions available - string version = 3; + string version = 2; // the metadata which will be passed to/from configuration store component. - map metadata = 4; + map metadata = 3; } diff --git a/dapr/proto/runtime/v1/appcallback.proto b/dapr/proto/runtime/v1/appcallback.proto index bfbb4d7..8f0ca40 100644 --- a/dapr/proto/runtime/v1/appcallback.proto +++ b/dapr/proto/runtime/v1/appcallback.proto @@ -46,6 +46,13 @@ service AppCallback { rpc OnBindingEvent(BindingEventRequest) returns (BindingEventResponse) {} } +// AppCallbackHealthCheck V1 is an optional extension to AppCallback V1 to implement +// the HealthCheck method. +service AppCallbackHealthCheck { + // Health check. + rpc HealthCheck(google.protobuf.Empty) returns (HealthCheckResponse) {} +} + // TopicEventRequest message is compatible with CloudEvent spec v1.0 // https://github.com/cloudevents/spec/blob/v1.0/spec.md message TopicEventRequest { @@ -190,3 +197,7 @@ message ListInputBindingsResponse { // The list of input bindings. repeated string bindings = 1; } + +// HealthCheckResponse is the message with the response to the health check. +// This message is currently empty as used as placeholder. +message HealthCheckResponse {} diff --git a/dapr/proto/runtime/v1/dapr.proto b/dapr/proto/runtime/v1/dapr.proto index 475a675..666bee3 100644 --- a/dapr/proto/runtime/v1/dapr.proto +++ b/dapr/proto/runtime/v1/dapr.proto @@ -455,6 +455,7 @@ message InvokeActorRequest { string actor_id = 2; string method = 3; bytes data = 4; + map metadata = 5; } // InvokeActorResponse is the method that returns an actor invocation response. @@ -504,7 +505,7 @@ message GetConfigurationRequest { // GetConfigurationResponse is the response conveying the list of configuration values. // It should be the FULL configuration of specified application which contains all of its configuration items. message GetConfigurationResponse { - repeated common.v1.ConfigurationItem items = 1; + map items = 1; } // SubscribeConfigurationRequest is the message to get a list of key-value configuration from specified configuration store. @@ -535,7 +536,7 @@ message SubscribeConfigurationResponse { string id = 1; // The list of items containing configuration values - repeated common.v1.ConfigurationItem items = 2; + map items = 2; } message UnsubscribeConfigurationResponse { @@ -589,8 +590,8 @@ message UnlockRequest { message UnlockResponse { enum Status { SUCCESS = 0; - LOCK_UNEXIST = 1; - LOCK_BELONG_TO_OTHERS = 2; + LOCK_DOES_NOT_EXIST = 1; + LOCK_BELONGS_TO_OTHERS = 2; INTERNAL_ERROR = 3; } diff --git a/src/dapr/proto/common/v1/common.pb.cc b/src/dapr/proto/common/v1/common.pb.cc index 149f417..2a91678 100644 --- a/src/dapr/proto/common/v1/common.pb.cc +++ b/src/dapr/proto/common/v1/common.pb.cc @@ -299,7 +299,6 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::ConfigurationItem, key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::ConfigurationItem, value_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::ConfigurationItem, version_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::common::v1::ConfigurationItem, metadata_), @@ -378,17 +377,17 @@ void AddDescriptorsImpl() { "\001\022\032\n\026CONCURRENCY_LAST_WRITE\020\002\"a\n\020StateCo" "nsistency\022\033\n\027CONSISTENCY_UNSPECIFIED\020\000\022\030" "\n\024CONSISTENCY_EVENTUAL\020\001\022\026\n\022CONSISTENCY_" - "STRONG\020\002\"\272\001\n\021ConfigurationItem\022\013\n\003key\030\001 " - "\001(\t\022\r\n\005value\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\022G\n\010m" - "etadata\030\004 \003(\01325.dapr.proto.common.v1.Con" - "figurationItem.MetadataEntry\032/\n\rMetadata" - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bi\n" - "\nio.dapr.v1B\014CommonProtosZ/github.com/da" - "pr/dapr/pkg/proto/common/v1;common\252\002\033Dap" - "r.Client.Autogen.Grpc.v1b\006proto3" + "STRONG\020\002\"\255\001\n\021ConfigurationItem\022\r\n\005value\030" + "\001 \001(\t\022\017\n\007version\030\002 \001(\t\022G\n\010metadata\030\003 \003(\013" + "25.dapr.proto.common.v1.ConfigurationIte" + "m.MetadataEntry\032/\n\rMetadataEntry\022\013\n\003key\030" + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bi\n\nio.dapr.v1B\014" + "CommonProtosZ/github.com/dapr/dapr/pkg/p" + "roto/common/v1;common\252\002\033Dapr.Client.Auto" + "gen.Grpc.v1b\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 1472); + descriptor, 1459); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "dapr/proto/common/v1/common.proto", &protobuf_RegisterTypes); ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors(); @@ -2576,7 +2575,6 @@ void ConfigurationItem_MetadataEntry_DoNotUse::MergeFrom( void ConfigurationItem::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ConfigurationItem::kKeyFieldNumber; const int ConfigurationItem::kValueFieldNumber; const int ConfigurationItem::kVersionFieldNumber; const int ConfigurationItem::kMetadataFieldNumber; @@ -2594,10 +2592,6 @@ ConfigurationItem::ConfigurationItem(const ConfigurationItem& from) _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_); @@ -2610,7 +2604,6 @@ ConfigurationItem::ConfigurationItem(const ConfigurationItem& from) } void ConfigurationItem::SharedCtor() { - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2621,7 +2614,6 @@ ConfigurationItem::~ConfigurationItem() { } void ConfigurationItem::SharedDtor() { - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2647,7 +2639,6 @@ void ConfigurationItem::Clear() { (void) cached_has_bits; metadata_.Clear(); - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); @@ -2663,26 +2654,10 @@ bool ConfigurationItem::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string key = 1; + // string value = 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.ConfigurationItem.key")); - } else { - goto handle_unusual; - } - break; - } - - // string value = 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_value())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -2695,10 +2670,10 @@ bool ConfigurationItem::MergePartialFromCodedStream( break; } - // string version = 3; - case 3: { + // string version = 2; + case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_version())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -2711,10 +2686,10 @@ bool ConfigurationItem::MergePartialFromCodedStream( break; } - // map metadata = 4; - case 4: { + // map metadata = 3; + case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { ConfigurationItem_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< ConfigurationItem_MetadataEntry_DoNotUse, ::std::string, ::std::string, @@ -2764,37 +2739,27 @@ void ConfigurationItem::SerializeWithCachedSizes( ::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.ConfigurationItem.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); - } - - // string value = 2; + // string value = 1; if (this->value().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->value().data(), static_cast(this->value().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dapr.proto.common.v1.ConfigurationItem.value"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->value(), output); + 1, this->value(), output); } - // string version = 3; + // string version = 2; if (this->version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->version().data(), static_cast(this->version().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "dapr.proto.common.v1.ConfigurationItem.version"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->version(), output); + 2, this->version(), output); } - // map metadata = 4; + // map metadata = 3; if (!this->metadata().empty()) { typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer ConstPtr; @@ -2830,7 +2795,7 @@ void ConfigurationItem::SerializeWithCachedSizes( entry.reset(metadata_.NewEntryWrapper( items[static_cast(i)]->first, items[static_cast(i)]->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *entry, output); + 3, *entry, output); Utf8Check::Check(items[static_cast(i)]); } } else { @@ -2841,7 +2806,7 @@ void ConfigurationItem::SerializeWithCachedSizes( entry.reset(metadata_.NewEntryWrapper( it->first, it->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *entry, output); + 3, *entry, output); Utf8Check::Check(&*it); } } @@ -2861,18 +2826,7 @@ ::google::protobuf::uint8* ConfigurationItem::InternalSerializeWithCachedSizesTo ::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.ConfigurationItem.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), target); - } - - // string value = 2; + // string value = 1; if (this->value().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->value().data(), static_cast(this->value().length()), @@ -2880,10 +2834,10 @@ ::google::protobuf::uint8* ConfigurationItem::InternalSerializeWithCachedSizesTo "dapr.proto.common.v1.ConfigurationItem.value"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->value(), target); + 1, this->value(), target); } - // string version = 3; + // string version = 2; if (this->version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->version().data(), static_cast(this->version().length()), @@ -2891,10 +2845,10 @@ ::google::protobuf::uint8* ConfigurationItem::InternalSerializeWithCachedSizesTo "dapr.proto.common.v1.ConfigurationItem.version"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->version(), target); + 2, this->version(), target); } - // map metadata = 4; + // map metadata = 3; if (!this->metadata().empty()) { typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer ConstPtr; @@ -2931,7 +2885,7 @@ ::google::protobuf::uint8* ConfigurationItem::InternalSerializeWithCachedSizesTo items[static_cast(i)]->first, items[static_cast(i)]->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( - 4, *entry, deterministic, target); + 3, *entry, deterministic, target); ; Utf8Check::Check(items[static_cast(i)]); } @@ -2944,7 +2898,7 @@ ::google::protobuf::uint8* ConfigurationItem::InternalSerializeWithCachedSizesTo it->first, it->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( - 4, *entry, deterministic, target); + 3, *entry, deterministic, target); ; Utf8Check::Check(&*it); } @@ -2968,7 +2922,7 @@ size_t ConfigurationItem::ByteSizeLong() const { ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - // map metadata = 4; + // map metadata = 3; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->metadata_size()); { @@ -2982,21 +2936,14 @@ size_t ConfigurationItem::ByteSizeLong() const { } } - // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // string value = 2; + // string value = 1; if (this->value().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->value()); } - // string version = 3; + // string version = 2; if (this->version().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( @@ -3031,10 +2978,6 @@ void ConfigurationItem::MergeFrom(const ConfigurationItem& from) { (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_); @@ -3070,8 +3013,6 @@ void ConfigurationItem::Swap(ConfigurationItem* other) { void ConfigurationItem::InternalSwap(ConfigurationItem* 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()); version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), diff --git a/src/dapr/proto/common/v1/common.pb.h b/src/dapr/proto/common/v1/common.pb.h index b7535a6..ae5bccf 100644 --- a/src/dapr/proto/common/v1/common.pb.h +++ b/src/dapr/proto/common/v1/common.pb.h @@ -1189,32 +1189,18 @@ class ConfigurationItem : public ::google::protobuf::Message /* @@protoc_inserti // accessors ------------------------------------------------------- - // map metadata = 4; + // map metadata = 3; int metadata_size() const; void clear_metadata(); - static const int kMetadataFieldNumber = 4; + 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 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 value = 2; + // string value = 1; void clear_value(); - static const int kValueFieldNumber = 2; + static const int kValueFieldNumber = 1; const ::std::string& value() const; void set_value(const ::std::string& value); #if LANG_CXX11 @@ -1226,9 +1212,9 @@ class ConfigurationItem : public ::google::protobuf::Message /* @@protoc_inserti ::std::string* release_value(); void set_allocated_value(::std::string* value); - // string version = 3; + // string version = 2; void clear_version(); - static const int kVersionFieldNumber = 3; + static const int kVersionFieldNumber = 2; const ::std::string& version() const; void set_version(const ::std::string& value); #if LANG_CXX11 @@ -1250,7 +1236,6 @@ class ConfigurationItem : public ::google::protobuf::Message /* @@protoc_inserti ::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 version_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -1984,60 +1969,7 @@ inline void StateOptions::set_consistency(::dapr::proto::common::v1::StateOption // ConfigurationItem -// string key = 1; -inline void ConfigurationItem::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ConfigurationItem::key() const { - // @@protoc_insertion_point(field_get:dapr.proto.common.v1.ConfigurationItem.key) - return key_.GetNoArena(); -} -inline void ConfigurationItem::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:dapr.proto.common.v1.ConfigurationItem.key) -} -#if LANG_CXX11 -inline void ConfigurationItem::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:dapr.proto.common.v1.ConfigurationItem.key) -} -#endif -inline void ConfigurationItem::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.ConfigurationItem.key) -} -inline void ConfigurationItem::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.ConfigurationItem.key) -} -inline ::std::string* ConfigurationItem::mutable_key() { - - // @@protoc_insertion_point(field_mutable:dapr.proto.common.v1.ConfigurationItem.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ConfigurationItem::release_key() { - // @@protoc_insertion_point(field_release:dapr.proto.common.v1.ConfigurationItem.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ConfigurationItem::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.ConfigurationItem.key) -} - -// string value = 2; +// string value = 1; inline void ConfigurationItem::clear_value() { value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2090,7 +2022,7 @@ inline void ConfigurationItem::set_allocated_value(::std::string* value) { // @@protoc_insertion_point(field_set_allocated:dapr.proto.common.v1.ConfigurationItem.value) } -// string version = 3; +// string version = 2; inline void ConfigurationItem::clear_version() { version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2143,7 +2075,7 @@ inline void ConfigurationItem::set_allocated_version(::std::string* version) { // @@protoc_insertion_point(field_set_allocated:dapr.proto.common.v1.ConfigurationItem.version) } -// map metadata = 4; +// map metadata = 3; inline int ConfigurationItem::metadata_size() const { return metadata_.size(); } diff --git a/src/dapr/proto/runtime/v1/appcallback.grpc.pb.cc b/src/dapr/proto/runtime/v1/appcallback.grpc.pb.cc index e469477..9d464d3 100644 --- a/src/dapr/proto/runtime/v1/appcallback.grpc.pb.cc +++ b/src/dapr/proto/runtime/v1/appcallback.grpc.pb.cc @@ -189,6 +189,55 @@ ::grpc::Status AppCallback::Service::OnBindingEvent(::grpc::ServerContext* conte } +static const char* AppCallbackHealthCheck_method_names[] = { + "/dapr.proto.runtime.v1.AppCallbackHealthCheck/HealthCheck", +}; + +std::unique_ptr< AppCallbackHealthCheck::Stub> AppCallbackHealthCheck::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< AppCallbackHealthCheck::Stub> stub(new AppCallbackHealthCheck::Stub(channel)); + return stub; +} + +AppCallbackHealthCheck::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_HealthCheck_(AppCallbackHealthCheck_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status AppCallbackHealthCheck::Stub::HealthCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::runtime::v1::HealthCheckResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_HealthCheck_, context, request, response); +} + +void AppCallbackHealthCheck::Stub::experimental_async::HealthCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::HealthCheckResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_HealthCheck_, context, request, response, std::move(f)); +} + +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::HealthCheckResponse>* AppCallbackHealthCheck::Stub::AsyncHealthCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::HealthCheckResponse>::Create(channel_.get(), cq, rpcmethod_HealthCheck_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::HealthCheckResponse>* AppCallbackHealthCheck::Stub::PrepareAsyncHealthCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::dapr::proto::runtime::v1::HealthCheckResponse>::Create(channel_.get(), cq, rpcmethod_HealthCheck_, context, request, false); +} + +AppCallbackHealthCheck::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppCallbackHealthCheck_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppCallbackHealthCheck::Service, ::google::protobuf::Empty, ::dapr::proto::runtime::v1::HealthCheckResponse>( + std::mem_fn(&AppCallbackHealthCheck::Service::HealthCheck), this))); +} + +AppCallbackHealthCheck::Service::~Service() { +} + +::grpc::Status AppCallbackHealthCheck::Service::HealthCheck(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::HealthCheckResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + } // namespace dapr } // namespace proto } // namespace runtime diff --git a/src/dapr/proto/runtime/v1/appcallback.grpc.pb.h b/src/dapr/proto/runtime/v1/appcallback.grpc.pb.h index 672a8c8..a98c471 100644 --- a/src/dapr/proto/runtime/v1/appcallback.grpc.pb.h +++ b/src/dapr/proto/runtime/v1/appcallback.grpc.pb.h @@ -611,6 +611,156 @@ class AppCallback final { typedef WithStreamedUnaryMethod_OnInvoke > > > > StreamedService; }; +// AppCallbackHealthCheck V1 is an optional extension to AppCallback V1 to implement +// the HealthCheck method. +class AppCallbackHealthCheck final { + public: + static constexpr char const* service_full_name() { + return "dapr.proto.runtime.v1.AppCallbackHealthCheck"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Health check. + virtual ::grpc::Status HealthCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::runtime::v1::HealthCheckResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::HealthCheckResponse>> AsyncHealthCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::HealthCheckResponse>>(AsyncHealthCheckRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::HealthCheckResponse>> PrepareAsyncHealthCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::HealthCheckResponse>>(PrepareAsyncHealthCheckRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // Health check. + virtual void HealthCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::HealthCheckResponse* response, std::function) = 0; + }; + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::HealthCheckResponse>* AsyncHealthCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::dapr::proto::runtime::v1::HealthCheckResponse>* PrepareAsyncHealthCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status HealthCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dapr::proto::runtime::v1::HealthCheckResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::HealthCheckResponse>> AsyncHealthCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::HealthCheckResponse>>(AsyncHealthCheckRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::HealthCheckResponse>> PrepareAsyncHealthCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::HealthCheckResponse>>(PrepareAsyncHealthCheckRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void HealthCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::HealthCheckResponse* response, std::function) override; + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::HealthCheckResponse>* AsyncHealthCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::dapr::proto::runtime::v1::HealthCheckResponse>* PrepareAsyncHealthCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_HealthCheck_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Health check. + virtual ::grpc::Status HealthCheck(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::HealthCheckResponse* response); + }; + template + class WithAsyncMethod_HealthCheck : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_HealthCheck() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_HealthCheck() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HealthCheck(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::HealthCheckResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestHealthCheck(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::dapr::proto::runtime::v1::HealthCheckResponse>* 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); + } + }; + typedef WithAsyncMethod_HealthCheck AsyncService; + template + class WithGenericMethod_HealthCheck : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_HealthCheck() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_HealthCheck() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HealthCheck(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::HealthCheckResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_HealthCheck : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_HealthCheck() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_HealthCheck() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HealthCheck(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::HealthCheckResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestHealthCheck(::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 WithStreamedUnaryMethod_HealthCheck : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_HealthCheck() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::dapr::proto::runtime::v1::HealthCheckResponse>(std::bind(&WithStreamedUnaryMethod_HealthCheck::StreamedHealthCheck, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_HealthCheck() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status HealthCheck(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dapr::proto::runtime::v1::HealthCheckResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedHealthCheck(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::dapr::proto::runtime::v1::HealthCheckResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_HealthCheck StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_HealthCheck StreamedService; +}; + } // namespace v1 } // namespace runtime } // namespace proto diff --git a/src/dapr/proto/runtime/v1/appcallback.pb.cc b/src/dapr/proto/runtime/v1/appcallback.pb.cc index f050a44..435d399 100644 --- a/src/dapr/proto/runtime/v1/appcallback.pb.cc +++ b/src/dapr/proto/runtime/v1/appcallback.pb.cc @@ -88,6 +88,11 @@ class ListInputBindingsResponseDefaultTypeInternal { ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ListInputBindingsResponse_default_instance_; +class HealthCheckResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _HealthCheckResponse_default_instance_; } // namespace v1 } // namespace runtime } // namespace proto @@ -251,6 +256,20 @@ static void InitDefaultsListInputBindingsResponse() { ::google::protobuf::internal::SCCInfo<0> scc_info_ListInputBindingsResponse = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsListInputBindingsResponse}, {}}; +static void InitDefaultsHealthCheckResponse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_HealthCheckResponse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::HealthCheckResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::dapr::proto::runtime::v1::HealthCheckResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HealthCheckResponse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHealthCheckResponse}, {}}; + void InitDefaults() { ::google::protobuf::internal::InitSCC(&scc_info_TopicEventRequest.base); ::google::protobuf::internal::InitSCC(&scc_info_TopicEventResponse.base); @@ -263,9 +282,10 @@ void InitDefaults() { ::google::protobuf::internal::InitSCC(&scc_info_TopicRoutes.base); ::google::protobuf::internal::InitSCC(&scc_info_TopicRule.base); ::google::protobuf::internal::InitSCC(&scc_info_ListInputBindingsResponse.base); + ::google::protobuf::internal::InitSCC(&scc_info_HealthCheckResponse.base); } -::google::protobuf::Metadata file_level_metadata[11]; +::google::protobuf::Metadata file_level_metadata[12]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { @@ -361,6 +381,11 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::ListInputBindingsResponse, bindings_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::HealthCheckResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::dapr::proto::runtime::v1::TopicEventRequest)}, @@ -374,6 +399,7 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROT { 72, -1, sizeof(::dapr::proto::runtime::v1::TopicRoutes)}, { 79, -1, sizeof(::dapr::proto::runtime::v1::TopicRule)}, { 86, -1, sizeof(::dapr::proto::runtime::v1::ListInputBindingsResponse)}, + { 92, -1, sizeof(::dapr::proto::runtime::v1::HealthCheckResponse)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -388,6 +414,7 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::dapr::proto::runtime::v1::_TopicRoutes_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_TopicRule_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_ListInputBindingsResponse_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_HealthCheckResponse_default_instance_), }; void protobuf_AssignDescriptors() { @@ -405,7 +432,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, 11); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 12); } void AddDescriptorsImpl() { @@ -447,26 +474,29 @@ void AddDescriptorsImpl() { ".runtime.v1.TopicRule\022\017\n\007default\030\002 \001(\t\"(" "\n\tTopicRule\022\r\n\005match\030\001 \001(\t\022\014\n\004path\030\002 \001(\t" "\"-\n\031ListInputBindingsResponse\022\020\n\010binding" - "s\030\001 \003(\t2\206\004\n\013AppCallback\022W\n\010OnInvoke\022#.da" - "pr.proto.common.v1.InvokeRequest\032$.dapr." - "proto.common.v1.InvokeResponse\"\000\022i\n\026List" - "TopicSubscriptions\022\026.google.protobuf.Emp" - "ty\0325.dapr.proto.runtime.v1.ListTopicSubs" - "criptionsResponse\"\000\022e\n\014OnTopicEvent\022(.da" - "pr.proto.runtime.v1.TopicEventRequest\032)." - "dapr.proto.runtime.v1.TopicEventResponse" - "\"\000\022_\n\021ListInputBindings\022\026.google.protobu" - "f.Empty\0320.dapr.proto.runtime.v1.ListInpu" - "tBindingsResponse\"\000\022k\n\016OnBindingEvent\022*." - "dapr.proto.runtime.v1.BindingEventReques" - "t\032+.dapr.proto.runtime.v1.BindingEventRe" - "sponse\"\000By\n\nio.dapr.v1B\025DaprAppCallbackP" - "rotosZ1github.com/dapr/dapr/pkg/proto/ru" - "ntime/v1;runtime\252\002 Dapr.AppCallback.Auto" - "gen.Grpc.v1b\006proto3" + "s\030\001 \003(\t\"\025\n\023HealthCheckResponse2\206\004\n\013AppCa" + "llback\022W\n\010OnInvoke\022#.dapr.proto.common.v" + "1.InvokeRequest\032$.dapr.proto.common.v1.I" + "nvokeResponse\"\000\022i\n\026ListTopicSubscription" + "s\022\026.google.protobuf.Empty\0325.dapr.proto.r" + "untime.v1.ListTopicSubscriptionsResponse" + "\"\000\022e\n\014OnTopicEvent\022(.dapr.proto.runtime." + "v1.TopicEventRequest\032).dapr.proto.runtim" + "e.v1.TopicEventResponse\"\000\022_\n\021ListInputBi" + "ndings\022\026.google.protobuf.Empty\0320.dapr.pr" + "oto.runtime.v1.ListInputBindingsResponse" + "\"\000\022k\n\016OnBindingEvent\022*.dapr.proto.runtim" + "e.v1.BindingEventRequest\032+.dapr.proto.ru" + "ntime.v1.BindingEventResponse\"\0002m\n\026AppCa" + "llbackHealthCheck\022S\n\013HealthCheck\022\026.googl" + "e.protobuf.Empty\032*.dapr.proto.runtime.v1" + ".HealthCheckResponse\"\000By\n\nio.dapr.v1B\025Da" + "prAppCallbackProtosZ1github.com/dapr/dap" + "r/pkg/proto/runtime/v1;runtime\252\002 Dapr.Ap" + "pCallback.Autogen.Grpc.v1b\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 2099); + descriptor, 2233); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "dapr/proto/runtime/v1/appcallback.proto", &protobuf_RegisterTypes); ::protobuf_google_2fprotobuf_2fempty_2eproto::AddDescriptors(); @@ -3971,6 +4001,185 @@ ::google::protobuf::Metadata ListInputBindingsResponse::GetMetadata() const { } +// =================================================================== + +void HealthCheckResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HealthCheckResponse::HealthCheckResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_HealthCheckResponse.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:dapr.proto.runtime.v1.HealthCheckResponse) +} +HealthCheckResponse::HealthCheckResponse(const HealthCheckResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.HealthCheckResponse) +} + +void HealthCheckResponse::SharedCtor() { +} + +HealthCheckResponse::~HealthCheckResponse() { + // @@protoc_insertion_point(destructor:dapr.proto.runtime.v1.HealthCheckResponse) + SharedDtor(); +} + +void HealthCheckResponse::SharedDtor() { +} + +void HealthCheckResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* HealthCheckResponse::descriptor() { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const HealthCheckResponse& HealthCheckResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::scc_info_HealthCheckResponse.base); + return *internal_default_instance(); +} + + +void HealthCheckResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:dapr.proto.runtime.v1.HealthCheckResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool HealthCheckResponse::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.HealthCheckResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:dapr.proto.runtime.v1.HealthCheckResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:dapr.proto.runtime.v1.HealthCheckResponse) + return false; +#undef DO_ +} + +void HealthCheckResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:dapr.proto.runtime.v1.HealthCheckResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + 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.HealthCheckResponse) +} + +::google::protobuf::uint8* HealthCheckResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:dapr.proto.runtime.v1.HealthCheckResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + 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.HealthCheckResponse) + return target; +} + +size_t HealthCheckResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:dapr.proto.runtime.v1.HealthCheckResponse) + 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())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HealthCheckResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:dapr.proto.runtime.v1.HealthCheckResponse) + GOOGLE_DCHECK_NE(&from, this); + const HealthCheckResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:dapr.proto.runtime.v1.HealthCheckResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:dapr.proto.runtime.v1.HealthCheckResponse) + MergeFrom(*source); + } +} + +void HealthCheckResponse::MergeFrom(const HealthCheckResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:dapr.proto.runtime.v1.HealthCheckResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void HealthCheckResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:dapr.proto.runtime.v1.HealthCheckResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HealthCheckResponse::CopyFrom(const HealthCheckResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:dapr.proto.runtime.v1.HealthCheckResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HealthCheckResponse::IsInitialized() const { + return true; +} + +void HealthCheckResponse::Swap(HealthCheckResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void HealthCheckResponse::InternalSwap(HealthCheckResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata HealthCheckResponse::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 @@ -4011,6 +4220,9 @@ template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::TopicR 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); } +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::HealthCheckResponse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::HealthCheckResponse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::HealthCheckResponse >(arena); +} } // namespace protobuf } // namespace google diff --git a/src/dapr/proto/runtime/v1/appcallback.pb.h b/src/dapr/proto/runtime/v1/appcallback.pb.h index 91c5be7..412221a 100644 --- a/src/dapr/proto/runtime/v1/appcallback.pb.h +++ b/src/dapr/proto/runtime/v1/appcallback.pb.h @@ -44,7 +44,7 @@ namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto { struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[11]; + 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[]; @@ -64,6 +64,9 @@ extern BindingEventRequest_MetadataEntry_DoNotUseDefaultTypeInternal _BindingEve class BindingEventResponse; class BindingEventResponseDefaultTypeInternal; extern BindingEventResponseDefaultTypeInternal _BindingEventResponse_default_instance_; +class HealthCheckResponse; +class HealthCheckResponseDefaultTypeInternal; +extern HealthCheckResponseDefaultTypeInternal _HealthCheckResponse_default_instance_; class ListInputBindingsResponse; class ListInputBindingsResponseDefaultTypeInternal; extern ListInputBindingsResponseDefaultTypeInternal _ListInputBindingsResponse_default_instance_; @@ -97,6 +100,7 @@ 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::HealthCheckResponse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::HealthCheckResponse>(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*); @@ -1544,6 +1548,102 @@ class ListInputBindingsResponse : public ::google::protobuf::Message /* @@protoc mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::TableStruct; }; +// ------------------------------------------------------------------- + +class HealthCheckResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.HealthCheckResponse) */ { + public: + HealthCheckResponse(); + virtual ~HealthCheckResponse(); + + HealthCheckResponse(const HealthCheckResponse& from); + + inline HealthCheckResponse& operator=(const HealthCheckResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HealthCheckResponse(HealthCheckResponse&& from) noexcept + : HealthCheckResponse() { + *this = ::std::move(from); + } + + inline HealthCheckResponse& operator=(HealthCheckResponse&& 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 HealthCheckResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HealthCheckResponse* internal_default_instance() { + return reinterpret_cast( + &_HealthCheckResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(HealthCheckResponse* other); + friend void swap(HealthCheckResponse& a, HealthCheckResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HealthCheckResponse* New() const final { + return CreateMaybeMessage(NULL); + } + + HealthCheckResponse* 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 HealthCheckResponse& from); + void MergeFrom(const HealthCheckResponse& 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(HealthCheckResponse* 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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.HealthCheckResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fappcallback_2eproto::TableStruct; +}; // =================================================================== @@ -2941,6 +3041,10 @@ ListInputBindingsResponse::mutable_bindings() { return &bindings_; } +// ------------------------------------------------------------------- + +// HealthCheckResponse + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -2964,6 +3068,8 @@ ListInputBindingsResponse::mutable_bindings() { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/dapr/proto/runtime/v1/dapr.pb.cc b/src/dapr/proto/runtime/v1/dapr.pb.cc index 5acc541..e281225 100644 --- a/src/dapr/proto/runtime/v1/dapr.pb.cc +++ b/src/dapr/proto/runtime/v1/dapr.pb.cc @@ -39,6 +39,7 @@ extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2epr 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_GetStateRequest_MetadataEntry_DoNotUse; extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GetStateResponse_MetadataEntry_DoNotUse; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InvokeActorRequest_MetadataEntry_DoNotUse; extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InvokeBindingRequest_MetadataEntry_DoNotUse; extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InvokeBindingResponse_MetadataEntry_DoNotUse; extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PublishEventRequest_MetadataEntry_DoNotUse; @@ -50,7 +51,9 @@ extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2epr extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SubscribeConfigurationRequest_MetadataEntry_DoNotUse; extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_BulkStateItem; extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_GetBulkSecretResponse_DataEntry_DoNotUse; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_GetConfigurationResponse_ItemsEntry_DoNotUse; extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SecretResponse; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SubscribeConfigurationResponse_ItemsEntry_DoNotUse; extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TransactionalActorStateOperation; extern PROTOBUF_INTERNAL_EXPORT_protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TransactionalStateOperation; } // namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto @@ -296,6 +299,11 @@ class TransactionalActorStateOperationDefaultTypeInternal { ::google::protobuf::internal::ExplicitlyConstructed _instance; } _TransactionalActorStateOperation_default_instance_; +class InvokeActorRequest_MetadataEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _InvokeActorRequest_MetadataEntry_DoNotUse_default_instance_; class InvokeActorRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed @@ -341,6 +349,11 @@ class GetConfigurationRequestDefaultTypeInternal { ::google::protobuf::internal::ExplicitlyConstructed _instance; } _GetConfigurationRequest_default_instance_; +class GetConfigurationResponse_ItemsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GetConfigurationResponse_ItemsEntry_DoNotUse_default_instance_; class GetConfigurationResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed @@ -361,6 +374,11 @@ class UnsubscribeConfigurationRequestDefaultTypeInternal { ::google::protobuf::internal::ExplicitlyConstructed _instance; } _UnsubscribeConfigurationRequest_default_instance_; +class SubscribeConfigurationResponse_ItemsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SubscribeConfigurationResponse_ItemsEntry_DoNotUse_default_instance_; class SubscribeConfigurationResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed @@ -1066,6 +1084,19 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_TransactionalActorStateOperati {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTransactionalActorStateOperation}, { &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base,}}; +static void InitDefaultsInvokeActorRequest_MetadataEntry_DoNotUse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_InvokeActorRequest_MetadataEntry_DoNotUse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::InvokeActorRequest_MetadataEntry_DoNotUse(); + } + ::dapr::proto::runtime::v1::InvokeActorRequest_MetadataEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_InvokeActorRequest_MetadataEntry_DoNotUse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInvokeActorRequest_MetadataEntry_DoNotUse}, {}}; + static void InitDefaultsInvokeActorRequest() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -1077,8 +1108,9 @@ static void InitDefaultsInvokeActorRequest() { ::dapr::proto::runtime::v1::InvokeActorRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_InvokeActorRequest = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInvokeActorRequest}, {}}; +::google::protobuf::internal::SCCInfo<1> scc_info_InvokeActorRequest = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsInvokeActorRequest}, { + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_InvokeActorRequest_MetadataEntry_DoNotUse.base,}}; static void InitDefaultsInvokeActorResponse() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -1194,6 +1226,20 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_GetConfigurationRequest = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetConfigurationRequest}, { &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetConfigurationRequest_MetadataEntry_DoNotUse.base,}}; +static void InitDefaultsGetConfigurationResponse_ItemsEntry_DoNotUse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_GetConfigurationResponse_ItemsEntry_DoNotUse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::GetConfigurationResponse_ItemsEntry_DoNotUse(); + } + ::dapr::proto::runtime::v1::GetConfigurationResponse_ItemsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetConfigurationResponse_ItemsEntry_DoNotUse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetConfigurationResponse_ItemsEntry_DoNotUse}, { + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_ConfigurationItem.base,}}; + static void InitDefaultsGetConfigurationResponse() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -1207,7 +1253,7 @@ static void InitDefaultsGetConfigurationResponse() { ::google::protobuf::internal::SCCInfo<1> scc_info_GetConfigurationResponse = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetConfigurationResponse}, { - &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_ConfigurationItem.base,}}; + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_GetConfigurationResponse_ItemsEntry_DoNotUse.base,}}; static void InitDefaultsSubscribeConfigurationRequest_MetadataEntry_DoNotUse() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -1251,6 +1297,20 @@ static void InitDefaultsUnsubscribeConfigurationRequest() { ::google::protobuf::internal::SCCInfo<0> scc_info_UnsubscribeConfigurationRequest = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUnsubscribeConfigurationRequest}, {}}; +static void InitDefaultsSubscribeConfigurationResponse_ItemsEntry_DoNotUse() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::dapr::proto::runtime::v1::_SubscribeConfigurationResponse_ItemsEntry_DoNotUse_default_instance_; + new (ptr) ::dapr::proto::runtime::v1::SubscribeConfigurationResponse_ItemsEntry_DoNotUse(); + } + ::dapr::proto::runtime::v1::SubscribeConfigurationResponse_ItemsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_SubscribeConfigurationResponse_ItemsEntry_DoNotUse = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSubscribeConfigurationResponse_ItemsEntry_DoNotUse}, { + &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_ConfigurationItem.base,}}; + static void InitDefaultsSubscribeConfigurationResponse() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -1264,7 +1324,7 @@ static void InitDefaultsSubscribeConfigurationResponse() { ::google::protobuf::internal::SCCInfo<1> scc_info_SubscribeConfigurationResponse = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSubscribeConfigurationResponse}, { - &protobuf_dapr_2fproto_2fcommon_2fv1_2fcommon_2eproto::scc_info_ConfigurationItem.base,}}; + &protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::scc_info_SubscribeConfigurationResponse_ItemsEntry_DoNotUse.base,}}; static void InitDefaultsUnsubscribeConfigurationResponse() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -1384,6 +1444,7 @@ void InitDefaults() { ::google::protobuf::internal::InitSCC(&scc_info_GetActorStateResponse.base); ::google::protobuf::internal::InitSCC(&scc_info_ExecuteActorStateTransactionRequest.base); ::google::protobuf::internal::InitSCC(&scc_info_TransactionalActorStateOperation.base); + ::google::protobuf::internal::InitSCC(&scc_info_InvokeActorRequest_MetadataEntry_DoNotUse.base); ::google::protobuf::internal::InitSCC(&scc_info_InvokeActorRequest.base); ::google::protobuf::internal::InitSCC(&scc_info_InvokeActorResponse.base); ::google::protobuf::internal::InitSCC(&scc_info_GetMetadataResponse_ExtendedMetadataEntry_DoNotUse.base); @@ -1393,10 +1454,12 @@ void InitDefaults() { ::google::protobuf::internal::InitSCC(&scc_info_SetMetadataRequest.base); ::google::protobuf::internal::InitSCC(&scc_info_GetConfigurationRequest_MetadataEntry_DoNotUse.base); ::google::protobuf::internal::InitSCC(&scc_info_GetConfigurationRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetConfigurationResponse_ItemsEntry_DoNotUse.base); ::google::protobuf::internal::InitSCC(&scc_info_GetConfigurationResponse.base); ::google::protobuf::internal::InitSCC(&scc_info_SubscribeConfigurationRequest_MetadataEntry_DoNotUse.base); ::google::protobuf::internal::InitSCC(&scc_info_SubscribeConfigurationRequest.base); ::google::protobuf::internal::InitSCC(&scc_info_UnsubscribeConfigurationRequest.base); + ::google::protobuf::internal::InitSCC(&scc_info_SubscribeConfigurationResponse_ItemsEntry_DoNotUse.base); ::google::protobuf::internal::InitSCC(&scc_info_SubscribeConfigurationResponse.base); ::google::protobuf::internal::InitSCC(&scc_info_UnsubscribeConfigurationResponse.base); ::google::protobuf::internal::InitSCC(&scc_info_TryLockRequest.base); @@ -1405,7 +1468,7 @@ void InitDefaults() { ::google::protobuf::internal::InitSCC(&scc_info_UnlockResponse.base); } -::google::protobuf::Metadata file_level_metadata[66]; +::google::protobuf::Metadata file_level_metadata[69]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { @@ -1805,6 +1868,15 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TransactionalActorStateOperation, operationtype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TransactionalActorStateOperation, key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::TransactionalActorStateOperation, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeActorRequest_MetadataEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeActorRequest_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::InvokeActorRequest_MetadataEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeActorRequest_MetadataEntry_DoNotUse, value_), + 0, + 1, ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeActorRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -1814,6 +1886,7 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeActorRequest, actor_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeActorRequest, method_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeActorRequest, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeActorRequest, metadata_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::InvokeActorResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -1878,6 +1951,15 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetConfigurationRequest, store_name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetConfigurationRequest, keys_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetConfigurationRequest, metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetConfigurationResponse_ItemsEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetConfigurationResponse_ItemsEntry_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::GetConfigurationResponse_ItemsEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetConfigurationResponse_ItemsEntry_DoNotUse, value_), + 0, + 1, ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::GetConfigurationResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -1908,6 +1990,15 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::UnsubscribeConfigurationRequest, store_name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::UnsubscribeConfigurationRequest, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::SubscribeConfigurationResponse_ItemsEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::SubscribeConfigurationResponse_ItemsEntry_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::SubscribeConfigurationResponse_ItemsEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::SubscribeConfigurationResponse_ItemsEntry_DoNotUse, value_), + 0, + 1, ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dapr::proto::runtime::v1::SubscribeConfigurationResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -2000,25 +2091,28 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROT { 374, -1, sizeof(::dapr::proto::runtime::v1::GetActorStateResponse)}, { 380, -1, sizeof(::dapr::proto::runtime::v1::ExecuteActorStateTransactionRequest)}, { 388, -1, sizeof(::dapr::proto::runtime::v1::TransactionalActorStateOperation)}, - { 396, -1, sizeof(::dapr::proto::runtime::v1::InvokeActorRequest)}, - { 405, -1, sizeof(::dapr::proto::runtime::v1::InvokeActorResponse)}, - { 411, 418, sizeof(::dapr::proto::runtime::v1::GetMetadataResponse_ExtendedMetadataEntry_DoNotUse)}, - { 420, -1, sizeof(::dapr::proto::runtime::v1::GetMetadataResponse)}, - { 429, -1, sizeof(::dapr::proto::runtime::v1::ActiveActorsCount)}, - { 436, -1, sizeof(::dapr::proto::runtime::v1::RegisteredComponents)}, - { 445, -1, sizeof(::dapr::proto::runtime::v1::SetMetadataRequest)}, - { 452, 459, sizeof(::dapr::proto::runtime::v1::GetConfigurationRequest_MetadataEntry_DoNotUse)}, - { 461, -1, sizeof(::dapr::proto::runtime::v1::GetConfigurationRequest)}, - { 469, -1, sizeof(::dapr::proto::runtime::v1::GetConfigurationResponse)}, - { 475, 482, sizeof(::dapr::proto::runtime::v1::SubscribeConfigurationRequest_MetadataEntry_DoNotUse)}, - { 484, -1, sizeof(::dapr::proto::runtime::v1::SubscribeConfigurationRequest)}, - { 492, -1, sizeof(::dapr::proto::runtime::v1::UnsubscribeConfigurationRequest)}, - { 499, -1, sizeof(::dapr::proto::runtime::v1::SubscribeConfigurationResponse)}, - { 506, -1, sizeof(::dapr::proto::runtime::v1::UnsubscribeConfigurationResponse)}, - { 513, -1, sizeof(::dapr::proto::runtime::v1::TryLockRequest)}, - { 522, -1, sizeof(::dapr::proto::runtime::v1::TryLockResponse)}, - { 528, -1, sizeof(::dapr::proto::runtime::v1::UnlockRequest)}, - { 536, -1, sizeof(::dapr::proto::runtime::v1::UnlockResponse)}, + { 396, 403, sizeof(::dapr::proto::runtime::v1::InvokeActorRequest_MetadataEntry_DoNotUse)}, + { 405, -1, sizeof(::dapr::proto::runtime::v1::InvokeActorRequest)}, + { 415, -1, sizeof(::dapr::proto::runtime::v1::InvokeActorResponse)}, + { 421, 428, sizeof(::dapr::proto::runtime::v1::GetMetadataResponse_ExtendedMetadataEntry_DoNotUse)}, + { 430, -1, sizeof(::dapr::proto::runtime::v1::GetMetadataResponse)}, + { 439, -1, sizeof(::dapr::proto::runtime::v1::ActiveActorsCount)}, + { 446, -1, sizeof(::dapr::proto::runtime::v1::RegisteredComponents)}, + { 455, -1, sizeof(::dapr::proto::runtime::v1::SetMetadataRequest)}, + { 462, 469, sizeof(::dapr::proto::runtime::v1::GetConfigurationRequest_MetadataEntry_DoNotUse)}, + { 471, -1, sizeof(::dapr::proto::runtime::v1::GetConfigurationRequest)}, + { 479, 486, sizeof(::dapr::proto::runtime::v1::GetConfigurationResponse_ItemsEntry_DoNotUse)}, + { 488, -1, sizeof(::dapr::proto::runtime::v1::GetConfigurationResponse)}, + { 494, 501, sizeof(::dapr::proto::runtime::v1::SubscribeConfigurationRequest_MetadataEntry_DoNotUse)}, + { 503, -1, sizeof(::dapr::proto::runtime::v1::SubscribeConfigurationRequest)}, + { 511, -1, sizeof(::dapr::proto::runtime::v1::UnsubscribeConfigurationRequest)}, + { 518, 525, sizeof(::dapr::proto::runtime::v1::SubscribeConfigurationResponse_ItemsEntry_DoNotUse)}, + { 527, -1, sizeof(::dapr::proto::runtime::v1::SubscribeConfigurationResponse)}, + { 534, -1, sizeof(::dapr::proto::runtime::v1::UnsubscribeConfigurationResponse)}, + { 541, -1, sizeof(::dapr::proto::runtime::v1::TryLockRequest)}, + { 550, -1, sizeof(::dapr::proto::runtime::v1::TryLockResponse)}, + { 556, -1, sizeof(::dapr::proto::runtime::v1::UnlockRequest)}, + { 564, -1, sizeof(::dapr::proto::runtime::v1::UnlockResponse)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -2069,6 +2163,7 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::dapr::proto::runtime::v1::_GetActorStateResponse_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_ExecuteActorStateTransactionRequest_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_TransactionalActorStateOperation_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_InvokeActorRequest_MetadataEntry_DoNotUse_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_InvokeActorRequest_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_InvokeActorResponse_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_GetMetadataResponse_ExtendedMetadataEntry_DoNotUse_default_instance_), @@ -2078,10 +2173,12 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::dapr::proto::runtime::v1::_SetMetadataRequest_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_GetConfigurationRequest_MetadataEntry_DoNotUse_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_GetConfigurationRequest_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_GetConfigurationResponse_ItemsEntry_DoNotUse_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_GetConfigurationResponse_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_SubscribeConfigurationRequest_MetadataEntry_DoNotUse_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_SubscribeConfigurationRequest_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_UnsubscribeConfigurationRequest_default_instance_), + reinterpret_cast(&::dapr::proto::runtime::v1::_SubscribeConfigurationResponse_ItemsEntry_DoNotUse_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_SubscribeConfigurationResponse_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_UnsubscribeConfigurationResponse_default_instance_), reinterpret_cast(&::dapr::proto::runtime::v1::_TryLockRequest_default_instance_), @@ -2105,7 +2202,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, 66); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 69); } void AddDescriptorsImpl() { @@ -2230,128 +2327,137 @@ void AddDescriptorsImpl() { "ionalActorStateOperation\"k\n Transactiona" "lActorStateOperation\022\025\n\roperationType\030\001 " "\001(\t\022\013\n\003key\030\002 \001(\t\022#\n\005value\030\003 \001(\0132\024.google" - ".protobuf.Any\"X\n\022InvokeActorRequest\022\022\n\na" - "ctor_type\030\001 \001(\t\022\020\n\010actor_id\030\002 \001(\t\022\016\n\006met" - "hod\030\003 \001(\t\022\014\n\004data\030\004 \001(\014\"#\n\023InvokeActorRe" - "sponse\022\014\n\004data\030\001 \001(\014\"\312\002\n\023GetMetadataResp" - "onse\022\n\n\002id\030\001 \001(\t\022E\n\023active_actors_count\030" - "\002 \003(\0132(.dapr.proto.runtime.v1.ActiveActo" - "rsCount\022J\n\025registered_components\030\003 \003(\0132+" - ".dapr.proto.runtime.v1.RegisteredCompone" - "nts\022[\n\021extended_metadata\030\004 \003(\0132@.dapr.pr" - "oto.runtime.v1.GetMetadataResponse.Exten" - "dedMetadataEntry\0327\n\025ExtendedMetadataEntr" - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"0\n\021Act" - "iveActorsCount\022\014\n\004type\030\001 \001(\t\022\r\n\005count\030\002 " - "\001(\005\"Y\n\024RegisteredComponents\022\014\n\004name\030\001 \001(" - "\t\022\014\n\004type\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\022\024\n\014capa" - "bilities\030\004 \003(\t\"0\n\022SetMetadataRequest\022\013\n\003" - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\274\001\n\027GetConfigur" - "ationRequest\022\022\n\nstore_name\030\001 \001(\t\022\014\n\004keys" - "\030\002 \003(\t\022N\n\010metadata\030\003 \003(\0132<.dapr.proto.ru" - "ntime.v1.GetConfigurationRequest.Metadat" - "aEntry\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - "value\030\002 \001(\t:\0028\001\"R\n\030GetConfigurationRespo" - "nse\0226\n\005items\030\001 \003(\0132\'.dapr.proto.common.v" - "1.ConfigurationItem\"\310\001\n\035SubscribeConfigu" - "rationRequest\022\022\n\nstore_name\030\001 \001(\t\022\014\n\004key" - "s\030\002 \003(\t\022T\n\010metadata\030\003 \003(\0132B.dapr.proto.r" - "untime.v1.SubscribeConfigurationRequest." - "MetadataEntry\032/\n\rMetadataEntry\022\013\n\003key\030\001 " - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"A\n\037UnsubscribeCon" - "figurationRequest\022\022\n\nstore_name\030\001 \001(\t\022\n\n" - "\002id\030\002 \001(\t\"d\n\036SubscribeConfigurationRespo" - "nse\022\n\n\002id\030\001 \001(\t\0226\n\005items\030\002 \003(\0132\'.dapr.pr" - "oto.common.v1.ConfigurationItem\"\?\n Unsub" - "scribeConfigurationResponse\022\n\n\002ok\030\001 \001(\010\022" - "\017\n\007message\030\002 \001(\t\"f\n\016TryLockRequest\022\022\n\nst" - "ore_name\030\001 \001(\t\022\023\n\013resource_id\030\002 \001(\t\022\022\n\nl" - "ock_owner\030\003 \001(\t\022\027\n\017expiryInSeconds\030\004 \001(\005" - "\"\"\n\017TryLockResponse\022\017\n\007success\030\001 \001(\010\"L\n\r" - "UnlockRequest\022\022\n\nstore_name\030\001 \001(\t\022\023\n\013res" - "ource_id\030\002 \001(\t\022\022\n\nlock_owner\030\003 \001(\t\"\246\001\n\016U" - "nlockResponse\022<\n\006status\030\001 \001(\0162,.dapr.pro" - "to.runtime.v1.UnlockResponse.Status\"V\n\006S" - "tatus\022\013\n\007SUCCESS\020\000\022\020\n\014LOCK_UNEXIST\020\001\022\031\n\025" - "LOCK_BELONG_TO_OTHERS\020\002\022\022\n\016INTERNAL_ERRO" - "R\020\0032\272\026\n\004Dapr\022d\n\rInvokeService\022+.dapr.pro" - "to.runtime.v1.InvokeServiceRequest\032$.dap" - "r.proto.common.v1.InvokeResponse\"\000\022]\n\010Ge" - "tState\022&.dapr.proto.runtime.v1.GetStateR" - "equest\032\'.dapr.proto.runtime.v1.GetStateR" - "esponse\"\000\022i\n\014GetBulkState\022*.dapr.proto.r" - "untime.v1.GetBulkStateRequest\032+.dapr.pro" - "to.runtime.v1.GetBulkStateResponse\"\000\022N\n\t" - "SaveState\022\'.dapr.proto.runtime.v1.SaveSt" - "ateRequest\032\026.google.protobuf.Empty\"\000\022i\n\020" - "QueryStateAlpha1\022(.dapr.proto.runtime.v1" - ".QueryStateRequest\032).dapr.proto.runtime." - "v1.QueryStateResponse\"\000\022R\n\013DeleteState\022)" - ".dapr.proto.runtime.v1.DeleteStateReques" - "t\032\026.google.protobuf.Empty\"\000\022Z\n\017DeleteBul" - "kState\022-.dapr.proto.runtime.v1.DeleteBul" - "kStateRequest\032\026.google.protobuf.Empty\"\000\022" - "j\n\027ExecuteStateTransaction\0225.dapr.proto." - "runtime.v1.ExecuteStateTransactionReques" - "t\032\026.google.protobuf.Empty\"\000\022T\n\014PublishEv" - "ent\022*.dapr.proto.runtime.v1.PublishEvent" - "Request\032\026.google.protobuf.Empty\"\000\022l\n\rInv" - "okeBinding\022+.dapr.proto.runtime.v1.Invok" - "eBindingRequest\032,.dapr.proto.runtime.v1." - "InvokeBindingResponse\"\000\022`\n\tGetSecret\022\'.d" - "apr.proto.runtime.v1.GetSecretRequest\032(." - "dapr.proto.runtime.v1.GetSecretResponse\"" - "\000\022l\n\rGetBulkSecret\022+.dapr.proto.runtime." - "v1.GetBulkSecretRequest\032,.dapr.proto.run" - "time.v1.GetBulkSecretResponse\"\000\022`\n\022Regis" - "terActorTimer\0220.dapr.proto.runtime.v1.Re" - "gisterActorTimerRequest\032\026.google.protobu" - "f.Empty\"\000\022d\n\024UnregisterActorTimer\0222.dapr" - ".proto.runtime.v1.UnregisterActorTimerRe" - "quest\032\026.google.protobuf.Empty\"\000\022f\n\025Regis" - "terActorReminder\0223.dapr.proto.runtime.v1" - ".RegisterActorReminderRequest\032\026.google.p" - "rotobuf.Empty\"\000\022j\n\027UnregisterActorRemind" - "er\0225.dapr.proto.runtime.v1.UnregisterAct" - "orReminderRequest\032\026.google.protobuf.Empt" - "y\"\000\022b\n\023RenameActorReminder\0221.dapr.proto." - "runtime.v1.RenameActorReminderRequest\032\026." - "google.protobuf.Empty\"\000\022l\n\rGetActorState" - "\022+.dapr.proto.runtime.v1.GetActorStateRe" - "quest\032,.dapr.proto.runtime.v1.GetActorSt" - "ateResponse\"\000\022t\n\034ExecuteActorStateTransa" - "ction\022:.dapr.proto.runtime.v1.ExecuteAct" - "orStateTransactionRequest\032\026.google.proto" - "buf.Empty\"\000\022f\n\013InvokeActor\022).dapr.proto." - "runtime.v1.InvokeActorRequest\032*.dapr.pro" - "to.runtime.v1.InvokeActorResponse\"\000\022{\n\026G" - "etConfigurationAlpha1\022..dapr.proto.runti" - "me.v1.GetConfigurationRequest\032/.dapr.pro" - "to.runtime.v1.GetConfigurationResponse\"\000" - "\022\217\001\n\034SubscribeConfigurationAlpha1\0224.dapr" - ".proto.runtime.v1.SubscribeConfiguration" - "Request\0325.dapr.proto.runtime.v1.Subscrib" - "eConfigurationResponse\"\0000\001\022\223\001\n\036Unsubscri" - "beConfigurationAlpha1\0226.dapr.proto.runti" - "me.v1.UnsubscribeConfigurationRequest\0327." - "dapr.proto.runtime.v1.UnsubscribeConfigu" - "rationResponse\"\000\022`\n\rTryLockAlpha1\022%.dapr" - ".proto.runtime.v1.TryLockRequest\032&.dapr." - "proto.runtime.v1.TryLockResponse\"\000\022]\n\014Un" - "lockAlpha1\022$.dapr.proto.runtime.v1.Unloc" - "kRequest\032%.dapr.proto.runtime.v1.UnlockR" - "esponse\"\000\022S\n\013GetMetadata\022\026.google.protob" - "uf.Empty\032*.dapr.proto.runtime.v1.GetMeta" - "dataResponse\"\000\022R\n\013SetMetadata\022).dapr.pro" - "to.runtime.v1.SetMetadataRequest\032\026.googl" - "e.protobuf.Empty\"\000\022<\n\010Shutdown\022\026.google." - "protobuf.Empty\032\026.google.protobuf.Empty\"\000" - "Bi\n\nio.dapr.v1B\nDaprProtosZ1github.com/d" - "apr/dapr/pkg/proto/runtime/v1;runtime\252\002\033" - "Dapr.Client.Autogen.Grpc.v1b\006proto3" + ".protobuf.Any\"\324\001\n\022InvokeActorRequest\022\022\n\n" + "actor_type\030\001 \001(\t\022\020\n\010actor_id\030\002 \001(\t\022\016\n\006me" + "thod\030\003 \001(\t\022\014\n\004data\030\004 \001(\014\022I\n\010metadata\030\005 \003" + "(\01327.dapr.proto.runtime.v1.InvokeActorRe" + "quest.MetadataEntry\032/\n\rMetadataEntry\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"#\n\023InvokeAc" + "torResponse\022\014\n\004data\030\001 \001(\014\"\312\002\n\023GetMetadat" + "aResponse\022\n\n\002id\030\001 \001(\t\022E\n\023active_actors_c" + "ount\030\002 \003(\0132(.dapr.proto.runtime.v1.Activ" + "eActorsCount\022J\n\025registered_components\030\003 " + "\003(\0132+.dapr.proto.runtime.v1.RegisteredCo" + "mponents\022[\n\021extended_metadata\030\004 \003(\0132@.da" + "pr.proto.runtime.v1.GetMetadataResponse." + "ExtendedMetadataEntry\0327\n\025ExtendedMetadat" + "aEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"0" + "\n\021ActiveActorsCount\022\014\n\004type\030\001 \001(\t\022\r\n\005cou" + "nt\030\002 \001(\005\"Y\n\024RegisteredComponents\022\014\n\004name" + "\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\022\024\n" + "\014capabilities\030\004 \003(\t\"0\n\022SetMetadataReques" + "t\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\274\001\n\027GetCon" + "figurationRequest\022\022\n\nstore_name\030\001 \001(\t\022\014\n" + "\004keys\030\002 \003(\t\022N\n\010metadata\030\003 \003(\0132<.dapr.pro" + "to.runtime.v1.GetConfigurationRequest.Me" + "tadataEntry\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(" + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\274\001\n\030GetConfiguratio" + "nResponse\022I\n\005items\030\001 \003(\0132:.dapr.proto.ru" + "ntime.v1.GetConfigurationResponse.ItemsE" + "ntry\032U\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value" + "\030\002 \001(\0132\'.dapr.proto.common.v1.Configurat" + "ionItem:\0028\001\"\310\001\n\035SubscribeConfigurationRe" + "quest\022\022\n\nstore_name\030\001 \001(\t\022\014\n\004keys\030\002 \003(\t\022" + "T\n\010metadata\030\003 \003(\0132B.dapr.proto.runtime.v" + "1.SubscribeConfigurationRequest.Metadata" + "Entry\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\030\002 \001(\t:\0028\001\"A\n\037UnsubscribeConfigurati" + "onRequest\022\022\n\nstore_name\030\001 \001(\t\022\n\n\002id\030\002 \001(" + "\t\"\324\001\n\036SubscribeConfigurationResponse\022\n\n\002" + "id\030\001 \001(\t\022O\n\005items\030\002 \003(\0132@.dapr.proto.run" + "time.v1.SubscribeConfigurationResponse.I" + "temsEntry\032U\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005" + "value\030\002 \001(\0132\'.dapr.proto.common.v1.Confi" + "gurationItem:\0028\001\"\?\n UnsubscribeConfigura" + "tionResponse\022\n\n\002ok\030\001 \001(\010\022\017\n\007message\030\002 \001(" + "\t\"f\n\016TryLockRequest\022\022\n\nstore_name\030\001 \001(\t\022" + "\023\n\013resource_id\030\002 \001(\t\022\022\n\nlock_owner\030\003 \001(\t" + "\022\027\n\017expiryInSeconds\030\004 \001(\005\"\"\n\017TryLockResp" + "onse\022\017\n\007success\030\001 \001(\010\"L\n\rUnlockRequest\022\022" + "\n\nstore_name\030\001 \001(\t\022\023\n\013resource_id\030\002 \001(\t\022" + "\022\n\nlock_owner\030\003 \001(\t\"\256\001\n\016UnlockResponse\022<" + "\n\006status\030\001 \001(\0162,.dapr.proto.runtime.v1.U" + "nlockResponse.Status\"^\n\006Status\022\013\n\007SUCCES" + "S\020\000\022\027\n\023LOCK_DOES_NOT_EXIST\020\001\022\032\n\026LOCK_BEL" + "ONGS_TO_OTHERS\020\002\022\022\n\016INTERNAL_ERROR\020\0032\272\026\n" + "\004Dapr\022d\n\rInvokeService\022+.dapr.proto.runt" + "ime.v1.InvokeServiceRequest\032$.dapr.proto" + ".common.v1.InvokeResponse\"\000\022]\n\010GetState\022" + "&.dapr.proto.runtime.v1.GetStateRequest\032" + "\'.dapr.proto.runtime.v1.GetStateResponse" + "\"\000\022i\n\014GetBulkState\022*.dapr.proto.runtime." + "v1.GetBulkStateRequest\032+.dapr.proto.runt" + "ime.v1.GetBulkStateResponse\"\000\022N\n\tSaveSta" + "te\022\'.dapr.proto.runtime.v1.SaveStateRequ" + "est\032\026.google.protobuf.Empty\"\000\022i\n\020QuerySt" + "ateAlpha1\022(.dapr.proto.runtime.v1.QueryS" + "tateRequest\032).dapr.proto.runtime.v1.Quer" + "yStateResponse\"\000\022R\n\013DeleteState\022).dapr.p" + "roto.runtime.v1.DeleteStateRequest\032\026.goo" + "gle.protobuf.Empty\"\000\022Z\n\017DeleteBulkState\022" + "-.dapr.proto.runtime.v1.DeleteBulkStateR" + "equest\032\026.google.protobuf.Empty\"\000\022j\n\027Exec" + "uteStateTransaction\0225.dapr.proto.runtime" + ".v1.ExecuteStateTransactionRequest\032\026.goo" + "gle.protobuf.Empty\"\000\022T\n\014PublishEvent\022*.d" + "apr.proto.runtime.v1.PublishEventRequest" + "\032\026.google.protobuf.Empty\"\000\022l\n\rInvokeBind" + "ing\022+.dapr.proto.runtime.v1.InvokeBindin" + "gRequest\032,.dapr.proto.runtime.v1.InvokeB" + "indingResponse\"\000\022`\n\tGetSecret\022\'.dapr.pro" + "to.runtime.v1.GetSecretRequest\032(.dapr.pr" + "oto.runtime.v1.GetSecretResponse\"\000\022l\n\rGe" + "tBulkSecret\022+.dapr.proto.runtime.v1.GetB" + "ulkSecretRequest\032,.dapr.proto.runtime.v1" + ".GetBulkSecretResponse\"\000\022`\n\022RegisterActo" + "rTimer\0220.dapr.proto.runtime.v1.RegisterA" + "ctorTimerRequest\032\026.google.protobuf.Empty" + "\"\000\022d\n\024UnregisterActorTimer\0222.dapr.proto." + "runtime.v1.UnregisterActorTimerRequest\032\026" + ".google.protobuf.Empty\"\000\022f\n\025RegisterActo" + "rReminder\0223.dapr.proto.runtime.v1.Regist" + "erActorReminderRequest\032\026.google.protobuf" + ".Empty\"\000\022j\n\027UnregisterActorReminder\0225.da" + "pr.proto.runtime.v1.UnregisterActorRemin" + "derRequest\032\026.google.protobuf.Empty\"\000\022b\n\023" + "RenameActorReminder\0221.dapr.proto.runtime" + ".v1.RenameActorReminderRequest\032\026.google." + "protobuf.Empty\"\000\022l\n\rGetActorState\022+.dapr" + ".proto.runtime.v1.GetActorStateRequest\032," + ".dapr.proto.runtime.v1.GetActorStateResp" + "onse\"\000\022t\n\034ExecuteActorStateTransaction\022:" + ".dapr.proto.runtime.v1.ExecuteActorState" + "TransactionRequest\032\026.google.protobuf.Emp" + "ty\"\000\022f\n\013InvokeActor\022).dapr.proto.runtime" + ".v1.InvokeActorRequest\032*.dapr.proto.runt" + "ime.v1.InvokeActorResponse\"\000\022{\n\026GetConfi" + "gurationAlpha1\022..dapr.proto.runtime.v1.G" + "etConfigurationRequest\032/.dapr.proto.runt" + "ime.v1.GetConfigurationResponse\"\000\022\217\001\n\034Su" + "bscribeConfigurationAlpha1\0224.dapr.proto." + "runtime.v1.SubscribeConfigurationRequest" + "\0325.dapr.proto.runtime.v1.SubscribeConfig" + "urationResponse\"\0000\001\022\223\001\n\036UnsubscribeConfi" + "gurationAlpha1\0226.dapr.proto.runtime.v1.U" + "nsubscribeConfigurationRequest\0327.dapr.pr" + "oto.runtime.v1.UnsubscribeConfigurationR" + "esponse\"\000\022`\n\rTryLockAlpha1\022%.dapr.proto." + "runtime.v1.TryLockRequest\032&.dapr.proto.r" + "untime.v1.TryLockResponse\"\000\022]\n\014UnlockAlp" + "ha1\022$.dapr.proto.runtime.v1.UnlockReques" + "t\032%.dapr.proto.runtime.v1.UnlockResponse" + "\"\000\022S\n\013GetMetadata\022\026.google.protobuf.Empt" + "y\032*.dapr.proto.runtime.v1.GetMetadataRes" + "ponse\"\000\022R\n\013SetMetadata\022).dapr.proto.runt" + "ime.v1.SetMetadataRequest\032\026.google.proto" + "buf.Empty\"\000\022<\n\010Shutdown\022\026.google.protobu" + "f.Empty\032\026.google.protobuf.Empty\"\000Bi\n\nio." + "dapr.v1B\nDaprProtosZ1github.com/dapr/dap" + "r/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Cl" + "ient.Autogen.Grpc.v1b\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 9515); + descriptor, 9868); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "dapr/proto/runtime/v1/dapr.proto", &protobuf_RegisterTypes); ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors(); @@ -2392,8 +2498,8 @@ bool UnlockResponse_Status_IsValid(int value) { #if !defined(_MSC_VER) || _MSC_VER >= 1900 const UnlockResponse_Status UnlockResponse::SUCCESS; -const UnlockResponse_Status UnlockResponse::LOCK_UNEXIST; -const UnlockResponse_Status UnlockResponse::LOCK_BELONG_TO_OTHERS; +const UnlockResponse_Status UnlockResponse::LOCK_DOES_NOT_EXIST; +const UnlockResponse_Status UnlockResponse::LOCK_BELONGS_TO_OTHERS; const UnlockResponse_Status UnlockResponse::INTERNAL_ERROR; const UnlockResponse_Status UnlockResponse::Status_MIN; const UnlockResponse_Status UnlockResponse::Status_MAX; @@ -15325,6 +15431,23 @@ ::google::protobuf::Metadata TransactionalActorStateOperation::GetMetadata() con } +// =================================================================== + +InvokeActorRequest_MetadataEntry_DoNotUse::InvokeActorRequest_MetadataEntry_DoNotUse() {} +InvokeActorRequest_MetadataEntry_DoNotUse::InvokeActorRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void InvokeActorRequest_MetadataEntry_DoNotUse::MergeFrom(const InvokeActorRequest_MetadataEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata InvokeActorRequest_MetadataEntry_DoNotUse::GetMetadata() const { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[47]; +} +void InvokeActorRequest_MetadataEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + // =================================================================== void InvokeActorRequest::InitAsDefaultInstance() { @@ -15334,6 +15457,7 @@ const int InvokeActorRequest::kActorTypeFieldNumber; const int InvokeActorRequest::kActorIdFieldNumber; const int InvokeActorRequest::kMethodFieldNumber; const int InvokeActorRequest::kDataFieldNumber; +const int InvokeActorRequest::kMetadataFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 InvokeActorRequest::InvokeActorRequest() @@ -15347,6 +15471,7 @@ InvokeActorRequest::InvokeActorRequest(const InvokeActorRequest& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); + metadata_.MergeFrom(from.metadata_); actor_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.actor_type().size() > 0) { actor_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actor_type_); @@ -15405,6 +15530,7 @@ void InvokeActorRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + metadata_.Clear(); actor_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); actor_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); method_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -15482,6 +15608,33 @@ bool InvokeActorRequest::MergePartialFromCodedStream( break; } + // map metadata = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + InvokeActorRequest_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + InvokeActorRequest_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.InvokeActorRequest.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.InvokeActorRequest.MetadataEntry.value")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: if (tag == 0) { @@ -15544,6 +15697,59 @@ void InvokeActorRequest::SerializeWithCachedSizes( 4, this->data(), output); } + // map metadata = 5; + 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.InvokeActorRequest.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.InvokeActorRequest.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( + 5, *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( + 5, *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); @@ -15598,6 +15804,63 @@ ::google::protobuf::uint8* InvokeActorRequest::InternalSerializeWithCachedSizesT 4, this->data(), target); } + // map metadata = 5; + 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.InvokeActorRequest.MetadataEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "dapr.proto.runtime.v1.InvokeActorRequest.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( + 5, *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( + 5, *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); @@ -15615,6 +15878,20 @@ size_t InvokeActorRequest::ByteSizeLong() const { ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } + // map metadata = 5; + 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 actor_type = 1; if (this->actor_type().size() > 0) { total_size += 1 + @@ -15670,6 +15947,7 @@ void InvokeActorRequest::MergeFrom(const InvokeActorRequest& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; + metadata_.MergeFrom(from.metadata_); if (from.actor_type().size() > 0) { actor_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.actor_type_); @@ -15712,6 +15990,7 @@ void InvokeActorRequest::Swap(InvokeActorRequest* other) { } void InvokeActorRequest::InternalSwap(InvokeActorRequest* other) { using std::swap; + metadata_.Swap(&other->metadata_); actor_type_.Swap(&other->actor_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); actor_id_.Swap(&other->actor_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), @@ -15968,7 +16247,7 @@ void GetMetadataResponse_ExtendedMetadataEntry_DoNotUse::MergeFrom(const GetMeta } ::google::protobuf::Metadata GetMetadataResponse_ExtendedMetadataEntry_DoNotUse::GetMetadata() const { ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[49]; + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[50]; } void GetMetadataResponse_ExtendedMetadataEntry_DoNotUse::MergeFrom( const ::google::protobuf::Message& other) { @@ -17462,7 +17741,7 @@ void GetConfigurationRequest_MetadataEntry_DoNotUse::MergeFrom(const GetConfigur } ::google::protobuf::Metadata GetConfigurationRequest_MetadataEntry_DoNotUse::GetMetadata() const { ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[54]; + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[55]; } void GetConfigurationRequest_MetadataEntry_DoNotUse::MergeFrom( const ::google::protobuf::Message& other) { @@ -17918,6 +18197,23 @@ ::google::protobuf::Metadata GetConfigurationRequest::GetMetadata() const { } +// =================================================================== + +GetConfigurationResponse_ItemsEntry_DoNotUse::GetConfigurationResponse_ItemsEntry_DoNotUse() {} +GetConfigurationResponse_ItemsEntry_DoNotUse::GetConfigurationResponse_ItemsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void GetConfigurationResponse_ItemsEntry_DoNotUse::MergeFrom(const GetConfigurationResponse_ItemsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata GetConfigurationResponse_ItemsEntry_DoNotUse::GetMetadata() const { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[57]; +} +void GetConfigurationResponse_ItemsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + // =================================================================== void GetConfigurationResponse::InitAsDefaultInstance() { @@ -17938,9 +18234,9 @@ GetConfigurationResponse::GetConfigurationResponse() } GetConfigurationResponse::GetConfigurationResponse(const GetConfigurationResponse& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - items_(from.items_) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); + items_.MergeFrom(from.items_); // @@protoc_insertion_point(copy_constructor:dapr.proto.runtime.v1.GetConfigurationResponse) } @@ -17989,12 +18285,23 @@ bool GetConfigurationResponse::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .dapr.proto.common.v1.ConfigurationItem items = 1; + // map items = 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_items())); + GetConfigurationResponse_ItemsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + GetConfigurationResponse_ItemsEntry_DoNotUse, + ::std::string, ::dapr::proto::common::v1::ConfigurationItem, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem > > parser(&items_); + 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.GetConfigurationResponse.ItemsEntry.key")); } else { goto handle_unusual; } @@ -18027,13 +18334,53 @@ void GetConfigurationResponse::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .dapr.proto.common.v1.ConfigurationItem items = 1; - for (unsigned int i = 0, - n = static_cast(this->items_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->items(static_cast(i)), - output); + // map items = 1; + if (!this->items().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::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.GetConfigurationResponse.ItemsEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->items().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->items().size()]); + typedef ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::const_iterator + it = this->items().begin(); + it != this->items().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(items_.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, ::dapr::proto::common::v1::ConfigurationItem >::const_iterator + it = this->items().begin(); + it != this->items().end(); ++it) { + entry.reset(items_.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())) { @@ -18050,12 +18397,57 @@ ::google::protobuf::uint8* GetConfigurationResponse::InternalSerializeWithCached ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .dapr.proto.common.v1.ConfigurationItem items = 1; - for (unsigned int i = 0, - n = static_cast(this->items_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->items(static_cast(i)), deterministic, target); + // map items = 1; + if (!this->items().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::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.GetConfigurationResponse.ItemsEntry.key"); + } + }; + + if (deterministic && + this->items().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->items().size()]); + typedef ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::const_iterator + it = this->items().begin(); + it != this->items().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(items_.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, ::dapr::proto::common::v1::ConfigurationItem >::const_iterator + it = this->items().begin(); + it != this->items().end(); ++it) { + entry.reset(items_.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())) { @@ -18075,14 +18467,17 @@ size_t GetConfigurationResponse::ByteSizeLong() const { ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - // repeated .dapr.proto.common.v1.ConfigurationItem items = 1; + // map items = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->items_size()); { - unsigned int count = static_cast(this->items_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->items(static_cast(i))); + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::const_iterator + it = this->items().begin(); + it != this->items().end(); ++it) { + entry.reset(items_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); } } @@ -18140,7 +18535,7 @@ void GetConfigurationResponse::Swap(GetConfigurationResponse* other) { } void GetConfigurationResponse::InternalSwap(GetConfigurationResponse* other) { using std::swap; - CastToBase(&items_)->InternalSwap(CastToBase(&other->items_)); + items_.Swap(&other->items_); _internal_metadata_.Swap(&other->_internal_metadata_); } @@ -18159,7 +18554,7 @@ void SubscribeConfigurationRequest_MetadataEntry_DoNotUse::MergeFrom(const Subsc } ::google::protobuf::Metadata SubscribeConfigurationRequest_MetadataEntry_DoNotUse::GetMetadata() const { ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[57]; + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[59]; } void SubscribeConfigurationRequest_MetadataEntry_DoNotUse::MergeFrom( const ::google::protobuf::Message& other) { @@ -18915,6 +19310,23 @@ ::google::protobuf::Metadata UnsubscribeConfigurationRequest::GetMetadata() cons } +// =================================================================== + +SubscribeConfigurationResponse_ItemsEntry_DoNotUse::SubscribeConfigurationResponse_ItemsEntry_DoNotUse() {} +SubscribeConfigurationResponse_ItemsEntry_DoNotUse::SubscribeConfigurationResponse_ItemsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void SubscribeConfigurationResponse_ItemsEntry_DoNotUse::MergeFrom(const SubscribeConfigurationResponse_ItemsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata SubscribeConfigurationResponse_ItemsEntry_DoNotUse::GetMetadata() const { + ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::file_level_metadata[62]; +} +void SubscribeConfigurationResponse_ItemsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + // =================================================================== void SubscribeConfigurationResponse::InitAsDefaultInstance() { @@ -18936,9 +19348,9 @@ SubscribeConfigurationResponse::SubscribeConfigurationResponse() } SubscribeConfigurationResponse::SubscribeConfigurationResponse(const SubscribeConfigurationResponse& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - items_(from.items_) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); + items_.MergeFrom(from.items_); id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.id().size() > 0) { id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); @@ -19010,12 +19422,23 @@ bool SubscribeConfigurationResponse::MergePartialFromCodedStream( break; } - // repeated .dapr.proto.common.v1.ConfigurationItem items = 2; + // map items = 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_items())); + SubscribeConfigurationResponse_ItemsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + SubscribeConfigurationResponse_ItemsEntry_DoNotUse, + ::std::string, ::dapr::proto::common::v1::ConfigurationItem, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem > > parser(&items_); + 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.SubscribeConfigurationResponse.ItemsEntry.key")); } else { goto handle_unusual; } @@ -19058,13 +19481,53 @@ void SubscribeConfigurationResponse::SerializeWithCachedSizes( 1, this->id(), output); } - // repeated .dapr.proto.common.v1.ConfigurationItem items = 2; - for (unsigned int i = 0, - n = static_cast(this->items_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->items(static_cast(i)), - output); + // map items = 2; + if (!this->items().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::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.SubscribeConfigurationResponse.ItemsEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->items().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->items().size()]); + typedef ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::const_iterator + it = this->items().begin(); + it != this->items().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(items_.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, ::dapr::proto::common::v1::ConfigurationItem >::const_iterator + it = this->items().begin(); + it != this->items().end(); ++it) { + entry.reset(items_.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())) { @@ -19092,12 +19555,57 @@ ::google::protobuf::uint8* SubscribeConfigurationResponse::InternalSerializeWith 1, this->id(), target); } - // repeated .dapr.proto.common.v1.ConfigurationItem items = 2; - for (unsigned int i = 0, - n = static_cast(this->items_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->items(static_cast(i)), deterministic, target); + // map items = 2; + if (!this->items().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::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.SubscribeConfigurationResponse.ItemsEntry.key"); + } + }; + + if (deterministic && + this->items().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->items().size()]); + typedef ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::const_iterator + it = this->items().begin(); + it != this->items().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(items_.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, ::dapr::proto::common::v1::ConfigurationItem >::const_iterator + it = this->items().begin(); + it != this->items().end(); ++it) { + entry.reset(items_.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())) { @@ -19117,14 +19625,17 @@ size_t SubscribeConfigurationResponse::ByteSizeLong() const { ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - // repeated .dapr.proto.common.v1.ConfigurationItem items = 2; + // map items = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->items_size()); { - unsigned int count = static_cast(this->items_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->items(static_cast(i))); + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >::const_iterator + it = this->items().begin(); + it != this->items().end(); ++it) { + entry.reset(items_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); } } @@ -19193,7 +19704,7 @@ void SubscribeConfigurationResponse::Swap(SubscribeConfigurationResponse* other) } void SubscribeConfigurationResponse::InternalSwap(SubscribeConfigurationResponse* other) { using std::swap; - CastToBase(&items_)->InternalSwap(CastToBase(&other->items_)); + items_.Swap(&other->items_); id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); _internal_metadata_.Swap(&other->_internal_metadata_); @@ -20833,6 +21344,9 @@ template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::Execut template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::TransactionalActorStateOperation* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::TransactionalActorStateOperation >(Arena* arena) { return Arena::CreateInternal< ::dapr::proto::runtime::v1::TransactionalActorStateOperation >(arena); } +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::InvokeActorRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::InvokeActorRequest_MetadataEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::InvokeActorRequest_MetadataEntry_DoNotUse >(arena); +} template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::InvokeActorRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::InvokeActorRequest >(Arena* arena) { return Arena::CreateInternal< ::dapr::proto::runtime::v1::InvokeActorRequest >(arena); } @@ -20860,6 +21374,9 @@ template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::GetCon template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::GetConfigurationRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::GetConfigurationRequest >(Arena* arena) { return Arena::CreateInternal< ::dapr::proto::runtime::v1::GetConfigurationRequest >(arena); } +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::GetConfigurationResponse_ItemsEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::GetConfigurationResponse_ItemsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::GetConfigurationResponse_ItemsEntry_DoNotUse >(arena); +} template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::GetConfigurationResponse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::GetConfigurationResponse >(Arena* arena) { return Arena::CreateInternal< ::dapr::proto::runtime::v1::GetConfigurationResponse >(arena); } @@ -20872,6 +21389,9 @@ template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::Subscr template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::UnsubscribeConfigurationRequest* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::UnsubscribeConfigurationRequest >(Arena* arena) { return Arena::CreateInternal< ::dapr::proto::runtime::v1::UnsubscribeConfigurationRequest >(arena); } +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::SubscribeConfigurationResponse_ItemsEntry_DoNotUse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::SubscribeConfigurationResponse_ItemsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::dapr::proto::runtime::v1::SubscribeConfigurationResponse_ItemsEntry_DoNotUse >(arena); +} template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dapr::proto::runtime::v1::SubscribeConfigurationResponse* Arena::CreateMaybeMessage< ::dapr::proto::runtime::v1::SubscribeConfigurationResponse >(Arena* arena) { return Arena::CreateInternal< ::dapr::proto::runtime::v1::SubscribeConfigurationResponse >(arena); } diff --git a/src/dapr/proto/runtime/v1/dapr.pb.h b/src/dapr/proto/runtime/v1/dapr.pb.h index 574d02e..720e25f 100644 --- a/src/dapr/proto/runtime/v1/dapr.pb.h +++ b/src/dapr/proto/runtime/v1/dapr.pb.h @@ -45,7 +45,7 @@ namespace protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto { struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[66]; + static const ::google::protobuf::internal::ParseTable schema[69]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; @@ -119,6 +119,9 @@ extern GetConfigurationRequest_MetadataEntry_DoNotUseDefaultTypeInternal _GetCon class GetConfigurationResponse; class GetConfigurationResponseDefaultTypeInternal; extern GetConfigurationResponseDefaultTypeInternal _GetConfigurationResponse_default_instance_; +class GetConfigurationResponse_ItemsEntry_DoNotUse; +class GetConfigurationResponse_ItemsEntry_DoNotUseDefaultTypeInternal; +extern GetConfigurationResponse_ItemsEntry_DoNotUseDefaultTypeInternal _GetConfigurationResponse_ItemsEntry_DoNotUse_default_instance_; class GetMetadataResponse; class GetMetadataResponseDefaultTypeInternal; extern GetMetadataResponseDefaultTypeInternal _GetMetadataResponse_default_instance_; @@ -152,6 +155,9 @@ extern GetStateResponse_MetadataEntry_DoNotUseDefaultTypeInternal _GetStateRespo class InvokeActorRequest; class InvokeActorRequestDefaultTypeInternal; extern InvokeActorRequestDefaultTypeInternal _InvokeActorRequest_default_instance_; +class InvokeActorRequest_MetadataEntry_DoNotUse; +class InvokeActorRequest_MetadataEntry_DoNotUseDefaultTypeInternal; +extern InvokeActorRequest_MetadataEntry_DoNotUseDefaultTypeInternal _InvokeActorRequest_MetadataEntry_DoNotUse_default_instance_; class InvokeActorResponse; class InvokeActorResponseDefaultTypeInternal; extern InvokeActorResponseDefaultTypeInternal _InvokeActorResponse_default_instance_; @@ -224,6 +230,9 @@ extern SubscribeConfigurationRequest_MetadataEntry_DoNotUseDefaultTypeInternal _ class SubscribeConfigurationResponse; class SubscribeConfigurationResponseDefaultTypeInternal; extern SubscribeConfigurationResponseDefaultTypeInternal _SubscribeConfigurationResponse_default_instance_; +class SubscribeConfigurationResponse_ItemsEntry_DoNotUse; +class SubscribeConfigurationResponse_ItemsEntry_DoNotUseDefaultTypeInternal; +extern SubscribeConfigurationResponse_ItemsEntry_DoNotUseDefaultTypeInternal _SubscribeConfigurationResponse_ItemsEntry_DoNotUse_default_instance_; class TransactionalActorStateOperation; class TransactionalActorStateOperationDefaultTypeInternal; extern TransactionalActorStateOperationDefaultTypeInternal _TransactionalActorStateOperation_default_instance_; @@ -281,6 +290,7 @@ template<> ::dapr::proto::runtime::v1::GetBulkStateResponse* Arena::CreateMaybeM template<> ::dapr::proto::runtime::v1::GetConfigurationRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetConfigurationRequest>(Arena*); template<> ::dapr::proto::runtime::v1::GetConfigurationRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetConfigurationRequest_MetadataEntry_DoNotUse>(Arena*); template<> ::dapr::proto::runtime::v1::GetConfigurationResponse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetConfigurationResponse>(Arena*); +template<> ::dapr::proto::runtime::v1::GetConfigurationResponse_ItemsEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetConfigurationResponse_ItemsEntry_DoNotUse>(Arena*); template<> ::dapr::proto::runtime::v1::GetMetadataResponse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetMetadataResponse>(Arena*); template<> ::dapr::proto::runtime::v1::GetMetadataResponse_ExtendedMetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetMetadataResponse_ExtendedMetadataEntry_DoNotUse>(Arena*); template<> ::dapr::proto::runtime::v1::GetSecretRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetSecretRequest>(Arena*); @@ -292,6 +302,7 @@ template<> ::dapr::proto::runtime::v1::GetStateRequest_MetadataEntry_DoNotUse* A template<> ::dapr::proto::runtime::v1::GetStateResponse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetStateResponse>(Arena*); template<> ::dapr::proto::runtime::v1::GetStateResponse_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::GetStateResponse_MetadataEntry_DoNotUse>(Arena*); template<> ::dapr::proto::runtime::v1::InvokeActorRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::InvokeActorRequest>(Arena*); +template<> ::dapr::proto::runtime::v1::InvokeActorRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::InvokeActorRequest_MetadataEntry_DoNotUse>(Arena*); template<> ::dapr::proto::runtime::v1::InvokeActorResponse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::InvokeActorResponse>(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*); @@ -316,6 +327,7 @@ template<> ::dapr::proto::runtime::v1::SetMetadataRequest* Arena::CreateMaybeMes template<> ::dapr::proto::runtime::v1::SubscribeConfigurationRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::SubscribeConfigurationRequest>(Arena*); template<> ::dapr::proto::runtime::v1::SubscribeConfigurationRequest_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::SubscribeConfigurationRequest_MetadataEntry_DoNotUse>(Arena*); template<> ::dapr::proto::runtime::v1::SubscribeConfigurationResponse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::SubscribeConfigurationResponse>(Arena*); +template<> ::dapr::proto::runtime::v1::SubscribeConfigurationResponse_ItemsEntry_DoNotUse* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::SubscribeConfigurationResponse_ItemsEntry_DoNotUse>(Arena*); template<> ::dapr::proto::runtime::v1::TransactionalActorStateOperation* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::TransactionalActorStateOperation>(Arena*); template<> ::dapr::proto::runtime::v1::TransactionalStateOperation* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::TransactionalStateOperation>(Arena*); template<> ::dapr::proto::runtime::v1::TryLockRequest* Arena::CreateMaybeMessage<::dapr::proto::runtime::v1::TryLockRequest>(Arena*); @@ -335,8 +347,8 @@ namespace v1 { enum UnlockResponse_Status { UnlockResponse_Status_SUCCESS = 0, - UnlockResponse_Status_LOCK_UNEXIST = 1, - UnlockResponse_Status_LOCK_BELONG_TO_OTHERS = 2, + UnlockResponse_Status_LOCK_DOES_NOT_EXIST = 1, + UnlockResponse_Status_LOCK_BELONGS_TO_OTHERS = 2, UnlockResponse_Status_INTERNAL_ERROR = 3, UnlockResponse_Status_UnlockResponse_Status_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, UnlockResponse_Status_UnlockResponse_Status_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max @@ -5111,6 +5123,27 @@ class TransactionalActorStateOperation : public ::google::protobuf::Message /* @ }; // ------------------------------------------------------------------- +class InvokeActorRequest_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + InvokeActorRequest_MetadataEntry_DoNotUse(); + InvokeActorRequest_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const InvokeActorRequest_MetadataEntry_DoNotUse& other); + static const InvokeActorRequest_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_InvokeActorRequest_MetadataEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + class InvokeActorRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.InvokeActorRequest) */ { public: InvokeActorRequest(); @@ -5146,7 +5179,7 @@ class InvokeActorRequest : public ::google::protobuf::Message /* @@protoc_insert &_InvokeActorRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 47; + 48; void Swap(InvokeActorRequest* other); friend void swap(InvokeActorRequest& a, InvokeActorRequest& b) { @@ -5196,8 +5229,18 @@ class InvokeActorRequest : public ::google::protobuf::Message /* @@protoc_insert // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- + // map metadata = 5; + int metadata_size() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 5; + const ::google::protobuf::Map< ::std::string, ::std::string >& + metadata() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_metadata(); + // string actor_type = 1; void clear_actor_type(); static const int kActorTypeFieldNumber = 1; @@ -5258,6 +5301,12 @@ class InvokeActorRequest : public ::google::protobuf::Message /* @@protoc_insert private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + InvokeActorRequest_MetadataEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > metadata_; ::google::protobuf::internal::ArenaStringPtr actor_type_; ::google::protobuf::internal::ArenaStringPtr actor_id_; ::google::protobuf::internal::ArenaStringPtr method_; @@ -5302,7 +5351,7 @@ class InvokeActorResponse : public ::google::protobuf::Message /* @@protoc_inser &_InvokeActorResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 48; + 49; void Swap(InvokeActorResponse* other); friend void swap(InvokeActorResponse& a, InvokeActorResponse& b) { @@ -5434,7 +5483,7 @@ class GetMetadataResponse : public ::google::protobuf::Message /* @@protoc_inser &_GetMetadataResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 50; + 51; void Swap(GetMetadataResponse* other); friend void swap(GetMetadataResponse& a, GetMetadataResponse& b) { @@ -5587,7 +5636,7 @@ class ActiveActorsCount : public ::google::protobuf::Message /* @@protoc_inserti &_ActiveActorsCount_default_instance_); } static constexpr int kIndexInFileMessages = - 51; + 52; void Swap(ActiveActorsCount* other); friend void swap(ActiveActorsCount& a, ActiveActorsCount& b) { @@ -5705,7 +5754,7 @@ class RegisteredComponents : public ::google::protobuf::Message /* @@protoc_inse &_RegisteredComponents_default_instance_); } static constexpr int kIndexInFileMessages = - 52; + 53; void Swap(RegisteredComponents* other); friend void swap(RegisteredComponents& a, RegisteredComponents& b) { @@ -5869,7 +5918,7 @@ class SetMetadataRequest : public ::google::protobuf::Message /* @@protoc_insert &_SetMetadataRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 53; + 54; void Swap(SetMetadataRequest* other); friend void swap(SetMetadataRequest& a, SetMetadataRequest& b) { @@ -6016,7 +6065,7 @@ class GetConfigurationRequest : public ::google::protobuf::Message /* @@protoc_i &_GetConfigurationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 55; + 56; void Swap(GetConfigurationRequest* other); friend void swap(GetConfigurationRequest& a, GetConfigurationRequest& b) { @@ -6131,6 +6180,27 @@ class GetConfigurationRequest : public ::google::protobuf::Message /* @@protoc_i }; // ------------------------------------------------------------------- +class GetConfigurationResponse_ItemsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + GetConfigurationResponse_ItemsEntry_DoNotUse(); + GetConfigurationResponse_ItemsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const GetConfigurationResponse_ItemsEntry_DoNotUse& other); + static const GetConfigurationResponse_ItemsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetConfigurationResponse_ItemsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + class GetConfigurationResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.GetConfigurationResponse) */ { public: GetConfigurationResponse(); @@ -6166,7 +6236,7 @@ class GetConfigurationResponse : public ::google::protobuf::Message /* @@protoc_ &_GetConfigurationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 56; + 58; void Swap(GetConfigurationResponse* other); friend void swap(GetConfigurationResponse& a, GetConfigurationResponse& b) { @@ -6216,25 +6286,28 @@ class GetConfigurationResponse : public ::google::protobuf::Message /* @@protoc_ // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- - // repeated .dapr.proto.common.v1.ConfigurationItem items = 1; + // map items = 1; int items_size() const; void clear_items(); static const int kItemsFieldNumber = 1; - ::dapr::proto::common::v1::ConfigurationItem* mutable_items(int index); - ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::ConfigurationItem >* - mutable_items(); - const ::dapr::proto::common::v1::ConfigurationItem& items(int index) const; - ::dapr::proto::common::v1::ConfigurationItem* add_items(); - const ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::ConfigurationItem >& + const ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >& items() const; + ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >* + mutable_items(); // @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.GetConfigurationResponse) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::ConfigurationItem > items_; + ::google::protobuf::internal::MapField< + GetConfigurationResponse_ItemsEntry_DoNotUse, + ::std::string, ::dapr::proto::common::v1::ConfigurationItem, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > items_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::TableStruct; }; @@ -6296,7 +6369,7 @@ class SubscribeConfigurationRequest : public ::google::protobuf::Message /* @@pr &_SubscribeConfigurationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 58; + 60; void Swap(SubscribeConfigurationRequest* other); friend void swap(SubscribeConfigurationRequest& a, SubscribeConfigurationRequest& b) { @@ -6446,7 +6519,7 @@ class UnsubscribeConfigurationRequest : public ::google::protobuf::Message /* @@ &_UnsubscribeConfigurationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 59; + 61; void Swap(UnsubscribeConfigurationRequest* other); friend void swap(UnsubscribeConfigurationRequest& a, UnsubscribeConfigurationRequest& b) { @@ -6537,6 +6610,27 @@ class UnsubscribeConfigurationRequest : public ::google::protobuf::Message /* @@ }; // ------------------------------------------------------------------- +class SubscribeConfigurationResponse_ItemsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + SubscribeConfigurationResponse_ItemsEntry_DoNotUse(); + SubscribeConfigurationResponse_ItemsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const SubscribeConfigurationResponse_ItemsEntry_DoNotUse& other); + static const SubscribeConfigurationResponse_ItemsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SubscribeConfigurationResponse_ItemsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + class SubscribeConfigurationResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dapr.proto.runtime.v1.SubscribeConfigurationResponse) */ { public: SubscribeConfigurationResponse(); @@ -6572,7 +6666,7 @@ class SubscribeConfigurationResponse : public ::google::protobuf::Message /* @@p &_SubscribeConfigurationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 60; + 63; void Swap(SubscribeConfigurationResponse* other); friend void swap(SubscribeConfigurationResponse& a, SubscribeConfigurationResponse& b) { @@ -6622,19 +6716,17 @@ class SubscribeConfigurationResponse : public ::google::protobuf::Message /* @@p // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- - // repeated .dapr.proto.common.v1.ConfigurationItem items = 2; + // map items = 2; int items_size() const; void clear_items(); static const int kItemsFieldNumber = 2; - ::dapr::proto::common::v1::ConfigurationItem* mutable_items(int index); - ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::ConfigurationItem >* - mutable_items(); - const ::dapr::proto::common::v1::ConfigurationItem& items(int index) const; - ::dapr::proto::common::v1::ConfigurationItem* add_items(); - const ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::ConfigurationItem >& + const ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >& items() const; + ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >* + mutable_items(); // string id = 1; void clear_id(); @@ -6654,7 +6746,12 @@ class SubscribeConfigurationResponse : public ::google::protobuf::Message /* @@p private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::ConfigurationItem > items_; + ::google::protobuf::internal::MapField< + SubscribeConfigurationResponse_ItemsEntry_DoNotUse, + ::std::string, ::dapr::proto::common::v1::ConfigurationItem, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > items_; ::google::protobuf::internal::ArenaStringPtr id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::protobuf_dapr_2fproto_2fruntime_2fv1_2fdapr_2eproto::TableStruct; @@ -6696,7 +6793,7 @@ class UnsubscribeConfigurationResponse : public ::google::protobuf::Message /* @ &_UnsubscribeConfigurationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 61; + 64; void Swap(UnsubscribeConfigurationResponse* other); friend void swap(UnsubscribeConfigurationResponse& a, UnsubscribeConfigurationResponse& b) { @@ -6814,7 +6911,7 @@ class TryLockRequest : public ::google::protobuf::Message /* @@protoc_insertion_ &_TryLockRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 62; + 65; void Swap(TryLockRequest* other); friend void swap(TryLockRequest& a, TryLockRequest& b) { @@ -6962,7 +7059,7 @@ class TryLockResponse : public ::google::protobuf::Message /* @@protoc_insertion &_TryLockResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 63; + 66; void Swap(TryLockResponse* other); friend void swap(TryLockResponse& a, TryLockResponse& b) { @@ -7065,7 +7162,7 @@ class UnlockRequest : public ::google::protobuf::Message /* @@protoc_insertion_p &_UnlockRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 64; + 67; void Swap(UnlockRequest* other); friend void swap(UnlockRequest& a, UnlockRequest& b) { @@ -7206,7 +7303,7 @@ class UnlockResponse : public ::google::protobuf::Message /* @@protoc_insertion_ &_UnlockResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 65; + 68; void Swap(UnlockResponse* other); friend void swap(UnlockResponse& a, UnlockResponse& b) { @@ -7259,10 +7356,10 @@ class UnlockResponse : public ::google::protobuf::Message /* @@protoc_insertion_ typedef UnlockResponse_Status Status; static const Status SUCCESS = UnlockResponse_Status_SUCCESS; - static const Status LOCK_UNEXIST = - UnlockResponse_Status_LOCK_UNEXIST; - static const Status LOCK_BELONG_TO_OTHERS = - UnlockResponse_Status_LOCK_BELONG_TO_OTHERS; + static const Status LOCK_DOES_NOT_EXIST = + UnlockResponse_Status_LOCK_DOES_NOT_EXIST; + static const Status LOCK_BELONGS_TO_OTHERS = + UnlockResponse_Status_LOCK_BELONGS_TO_OTHERS; static const Status INTERNAL_ERROR = UnlockResponse_Status_INTERNAL_ERROR; static inline bool Status_IsValid(int value) { @@ -11817,6 +11914,8 @@ inline void TransactionalActorStateOperation::set_allocated_value(::google::prot // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // InvokeActorRequest // string actor_type = 1; @@ -12031,6 +12130,24 @@ inline void InvokeActorRequest::set_allocated_data(::std::string* data) { // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.InvokeActorRequest.data) } +// map metadata = 5; +inline int InvokeActorRequest::metadata_size() const { + return metadata_.size(); +} +inline void InvokeActorRequest::clear_metadata() { + metadata_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +InvokeActorRequest::metadata() const { + // @@protoc_insertion_point(field_map:dapr.proto.runtime.v1.InvokeActorRequest.metadata) + return metadata_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +InvokeActorRequest::mutable_metadata() { + // @@protoc_insertion_point(field_mutable_map:dapr.proto.runtime.v1.InvokeActorRequest.metadata) + return metadata_.MutableMap(); +} + // ------------------------------------------------------------------- // InvokeActorResponse @@ -12786,33 +12903,23 @@ GetConfigurationRequest::mutable_metadata() { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // GetConfigurationResponse -// repeated .dapr.proto.common.v1.ConfigurationItem items = 1; +// map items = 1; inline int GetConfigurationResponse::items_size() const { return items_.size(); } -inline ::dapr::proto::common::v1::ConfigurationItem* GetConfigurationResponse::mutable_items(int index) { - // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.GetConfigurationResponse.items) - return items_.Mutable(index); +inline const ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >& +GetConfigurationResponse::items() const { + // @@protoc_insertion_point(field_map:dapr.proto.runtime.v1.GetConfigurationResponse.items) + return items_.GetMap(); } -inline ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::ConfigurationItem >* +inline ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >* GetConfigurationResponse::mutable_items() { - // @@protoc_insertion_point(field_mutable_list:dapr.proto.runtime.v1.GetConfigurationResponse.items) - return &items_; -} -inline const ::dapr::proto::common::v1::ConfigurationItem& GetConfigurationResponse::items(int index) const { - // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.GetConfigurationResponse.items) - return items_.Get(index); -} -inline ::dapr::proto::common::v1::ConfigurationItem* GetConfigurationResponse::add_items() { - // @@protoc_insertion_point(field_add:dapr.proto.runtime.v1.GetConfigurationResponse.items) - return items_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::ConfigurationItem >& -GetConfigurationResponse::items() const { - // @@protoc_insertion_point(field_list:dapr.proto.runtime.v1.GetConfigurationResponse.items) - return items_; + // @@protoc_insertion_point(field_mutable_map:dapr.proto.runtime.v1.GetConfigurationResponse.items) + return items_.MutableMap(); } // ------------------------------------------------------------------- @@ -13073,6 +13180,8 @@ inline void UnsubscribeConfigurationRequest::set_allocated_id(::std::string* id) // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // SubscribeConfigurationResponse // string id = 1; @@ -13128,31 +13237,19 @@ inline void SubscribeConfigurationResponse::set_allocated_id(::std::string* id) // @@protoc_insertion_point(field_set_allocated:dapr.proto.runtime.v1.SubscribeConfigurationResponse.id) } -// repeated .dapr.proto.common.v1.ConfigurationItem items = 2; +// map items = 2; inline int SubscribeConfigurationResponse::items_size() const { return items_.size(); } -inline ::dapr::proto::common::v1::ConfigurationItem* SubscribeConfigurationResponse::mutable_items(int index) { - // @@protoc_insertion_point(field_mutable:dapr.proto.runtime.v1.SubscribeConfigurationResponse.items) - return items_.Mutable(index); +inline const ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >& +SubscribeConfigurationResponse::items() const { + // @@protoc_insertion_point(field_map:dapr.proto.runtime.v1.SubscribeConfigurationResponse.items) + return items_.GetMap(); } -inline ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::ConfigurationItem >* +inline ::google::protobuf::Map< ::std::string, ::dapr::proto::common::v1::ConfigurationItem >* SubscribeConfigurationResponse::mutable_items() { - // @@protoc_insertion_point(field_mutable_list:dapr.proto.runtime.v1.SubscribeConfigurationResponse.items) - return &items_; -} -inline const ::dapr::proto::common::v1::ConfigurationItem& SubscribeConfigurationResponse::items(int index) const { - // @@protoc_insertion_point(field_get:dapr.proto.runtime.v1.SubscribeConfigurationResponse.items) - return items_.Get(index); -} -inline ::dapr::proto::common::v1::ConfigurationItem* SubscribeConfigurationResponse::add_items() { - // @@protoc_insertion_point(field_add:dapr.proto.runtime.v1.SubscribeConfigurationResponse.items) - return items_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::dapr::proto::common::v1::ConfigurationItem >& -SubscribeConfigurationResponse::items() const { - // @@protoc_insertion_point(field_list:dapr.proto.runtime.v1.SubscribeConfigurationResponse.items) - return items_; + // @@protoc_insertion_point(field_mutable_map:dapr.proto.runtime.v1.SubscribeConfigurationResponse.items) + return items_.MutableMap(); } // ------------------------------------------------------------------- @@ -13735,6 +13832,12 @@ inline void UnlockResponse::set_status(::dapr::proto::runtime::v1::UnlockRespons // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope)