diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 90bcb1e2..01880e09 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -34,9 +34,9 @@ jobs: test-e2e: runs-on: ubuntu-latest env: - GOVER: 1.20 - DAPR_CLI_VER: 1.12.0 - DAPR_RUNTIME_VER: 1.12.0 + GOVER: 1.21 + DAPR_CLI_VER: 1.13.0-rc.1 + DAPR_RUNTIME_VER: 1.13.0-rc.10 DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh DAPR_CLI_REF: "" DAPR_REF: "" diff --git a/package-lock.json b/package-lock.json index 7666e0b4..b010922f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dapr/dapr", - "version": "3.2.0", + "version": "3.3.0-rc.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dapr/dapr", - "version": "3.2.0", + "version": "3.3.0-rc.1", "license": "ISC", "dependencies": { "@grpc/grpc-js": "^1.9.3", diff --git a/package.json b/package.json index e7167ffe..45bc6832 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dapr/dapr", - "version": "3.2.0", + "version": "3.3.0-rc.1", "description": "The official Dapr (https://dapr.io) SDK for Node.js", "types": "./build/index.d.ts", "scripts": { diff --git a/scripts/fetch-proto.sh b/scripts/fetch-proto.sh index b1ea2553..84837d5e 100755 --- a/scripts/fetch-proto.sh +++ b/scripts/fetch-proto.sh @@ -3,7 +3,7 @@ OS=$(echo `uname`|tr '[:upper:]' '[:lower:]') ARCH=$(uname -m) ORG_NAME="dapr" REPO_NAME="dapr" -BRANCH_NAME="v1.12.0" +BRANCH_NAME="v1.13.0-rc.10" # Path to store output PATH_ROOT=$(pwd) diff --git a/src/proto/dapr/proto/common/v1/common_pb.js b/src/proto/dapr/proto/common/v1/common_pb.js index d6c232b1..5831b458 100644 --- a/src/proto/dapr/proto/common/v1/common_pb.js +++ b/src/proto/dapr/proto/common/v1/common_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); @@ -1284,8 +1278,7 @@ proto.dapr.proto.common.v1.StateItem.prototype.getMetadataMap = function(opt_noL */ proto.dapr.proto.common.v1.StateItem.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; /** @@ -1823,8 +1816,7 @@ proto.dapr.proto.common.v1.ConfigurationItem.prototype.getMetadataMap = function */ proto.dapr.proto.common.v1.ConfigurationItem.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; goog.object.extend(exports, proto.dapr.proto.common.v1); diff --git a/src/proto/dapr/proto/internals/v1/apiversion_pb.js b/src/proto/dapr/proto/internals/v1/apiversion_pb.js index 31dbf02c..a3e34a30 100644 --- a/src/proto/dapr/proto/internals/v1/apiversion_pb.js +++ b/src/proto/dapr/proto/internals/v1/apiversion_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); goog.exportSymbol('proto.dapr.proto.internals.v1.APIVersion', null, global); /** diff --git a/src/proto/dapr/proto/internals/v1/service_invocation_pb.js b/src/proto/dapr/proto/internals/v1/service_invocation_pb.js index fc02e78a..853ba867 100644 --- a/src/proto/dapr/proto/internals/v1/service_invocation_pb.js +++ b/src/proto/dapr/proto/internals/v1/service_invocation_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); goog.object.extend(proto, dapr_proto_common_v1_common_pb); @@ -507,8 +501,7 @@ proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.getMetadataMap = f */ proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; /** @@ -791,8 +784,7 @@ proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getHeadersMap = f */ proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearHeadersMap = function() { this.getHeadersMap().clear(); - return this; -}; + return this;}; /** @@ -814,8 +806,7 @@ proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getTrailersMap = */ proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearTrailersMap = function() { this.getTrailersMap().clear(); - return this; -}; + return this;}; /** diff --git a/src/proto/dapr/proto/internals/v1/status_pb.js b/src/proto/dapr/proto/internals/v1/status_pb.js index bb945491..e82bc6b0 100644 --- a/src/proto/dapr/proto/internals/v1/status_pb.js +++ b/src/proto/dapr/proto/internals/v1/status_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); diff --git a/src/proto/dapr/proto/operator/v1/operator.proto b/src/proto/dapr/proto/operator/v1/operator.proto index 38d1a145..ef740eb6 100644 --- a/src/proto/dapr/proto/operator/v1/operator.proto +++ b/src/proto/dapr/proto/operator/v1/operator.proto @@ -40,6 +40,21 @@ service Operator { rpc HTTPEndpointUpdate (HTTPEndpointUpdateRequest) returns (stream HTTPEndpointUpdateEvent) {} } +// ResourceEventType is the type of event to a resource. +enum ResourceEventType { + // UNKNOWN indicates that the event type is unknown. + UNKNOWN = 0; + + // CREATED indicates that the resource has been created. + CREATED = 1; + + // UPDATED indicates that the resource has been updated. + UPDATED = 2; + + // DELETED indicates that the resource has been deleted. + DELETED = 3; +} + // ListComponentsRequest is the request to get components for a sidecar in namespace. message ListComponentsRequest { string namespace = 1; @@ -55,6 +70,9 @@ message ComponentUpdateRequest { // ComponentUpdateEvent includes the updated component event. message ComponentUpdateEvent { bytes component = 1; + + // type is the type of event. + ResourceEventType type = 2; } // ListComponentResponse includes the list of available components. @@ -134,4 +152,4 @@ message HTTPEndpointUpdateRequest { // HTTPEndpointsUpdateEvent includes the updated http endpoint event. message HTTPEndpointUpdateEvent { bytes http_endpoints = 1; -} \ No newline at end of file +} diff --git a/src/proto/dapr/proto/operator/v1/operator_pb.d.ts b/src/proto/dapr/proto/operator/v1/operator_pb.d.ts index b3fa5bf8..8e848d1d 100644 --- a/src/proto/dapr/proto/operator/v1/operator_pb.d.ts +++ b/src/proto/dapr/proto/operator/v1/operator_pb.d.ts @@ -58,6 +58,8 @@ export class ComponentUpdateEvent extends jspb.Message { getComponent_asU8(): Uint8Array; getComponent_asB64(): string; setComponent(value: Uint8Array | string): ComponentUpdateEvent; + getType(): ResourceEventType; + setType(value: ResourceEventType): ComponentUpdateEvent; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ComponentUpdateEvent.AsObject; @@ -72,6 +74,7 @@ export class ComponentUpdateEvent extends jspb.Message { export namespace ComponentUpdateEvent { export type AsObject = { component: Uint8Array | string, + type: ResourceEventType, } } @@ -416,3 +419,10 @@ export namespace HTTPEndpointUpdateEvent { httpEndpoints: Uint8Array | string, } } + +export enum ResourceEventType { + UNKNOWN = 0, + CREATED = 1, + UPDATED = 2, + DELETED = 3, +} diff --git a/src/proto/dapr/proto/operator/v1/operator_pb.js b/src/proto/dapr/proto/operator/v1/operator_pb.js index dd3a4db4..1d4d0b1b 100644 --- a/src/proto/dapr/proto/operator/v1/operator_pb.js +++ b/src/proto/dapr/proto/operator/v1/operator_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); goog.object.extend(proto, google_protobuf_empty_pb); @@ -41,6 +35,7 @@ goog.exportSymbol('proto.dapr.proto.operator.v1.ListResiliencyRequest', null, gl goog.exportSymbol('proto.dapr.proto.operator.v1.ListResiliencyResponse', null, global); goog.exportSymbol('proto.dapr.proto.operator.v1.ListSubscriptionsRequest', null, global); goog.exportSymbol('proto.dapr.proto.operator.v1.ListSubscriptionsResponse', null, global); +goog.exportSymbol('proto.dapr.proto.operator.v1.ResourceEventType', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -771,7 +766,8 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.toObject = function( */ proto.dapr.proto.operator.v1.ComponentUpdateEvent.toObject = function(includeInstance, msg) { var f, obj = { - component: msg.getComponent_asB64() + component: msg.getComponent_asB64(), + type: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -812,6 +808,10 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.deserializeBinaryFromReader = var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setComponent(value); break; + case 2: + var value = /** @type {!proto.dapr.proto.operator.v1.ResourceEventType} */ (reader.readEnum()); + msg.setType(value); + break; default: reader.skipField(); break; @@ -848,6 +848,13 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.serializeBinaryToWriter = func f ); } + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } }; @@ -893,6 +900,24 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.setComponent = funct }; +/** + * optional ResourceEventType type = 2; + * @return {!proto.dapr.proto.operator.v1.ResourceEventType} + */ +proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.getType = function() { + return /** @type {!proto.dapr.proto.operator.v1.ResourceEventType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.dapr.proto.operator.v1.ResourceEventType} value + * @return {!proto.dapr.proto.operator.v1.ComponentUpdateEvent} returns this + */ +proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + /** * List of repeated fields within this message type. @@ -3319,4 +3344,14 @@ proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.prototype.setHttpEndpoints }; +/** + * @enum {number} + */ +proto.dapr.proto.operator.v1.ResourceEventType = { + UNKNOWN: 0, + CREATED: 1, + UPDATED: 2, + DELETED: 3 +}; + goog.object.extend(exports, proto.dapr.proto.operator.v1); diff --git a/src/proto/dapr/proto/placement/v1/placement.proto b/src/proto/dapr/proto/placement/v1/placement.proto index 91de9a3c..4334ee44 100644 --- a/src/proto/dapr/proto/placement/v1/placement.proto +++ b/src/proto/dapr/proto/placement/v1/placement.proto @@ -31,6 +31,9 @@ message PlacementOrder { message PlacementTables { map entries = 1; string version = 2; + // Minimum observed version of the Actor APIs supported by connected runtimes + uint32 api_level = 3; + int64 replication_factor = 4; } message PlacementTable { diff --git a/src/proto/dapr/proto/placement/v1/placement_pb.d.ts b/src/proto/dapr/proto/placement/v1/placement_pb.d.ts index e40cb57c..76d76bc3 100644 --- a/src/proto/dapr/proto/placement/v1/placement_pb.d.ts +++ b/src/proto/dapr/proto/placement/v1/placement_pb.d.ts @@ -38,6 +38,10 @@ export class PlacementTables extends jspb.Message { clearEntriesMap(): void; getVersion(): string; setVersion(value: string): PlacementTables; + getApiLevel(): number; + setApiLevel(value: number): PlacementTables; + getReplicationFactor(): number; + setReplicationFactor(value: number): PlacementTables; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PlacementTables.AsObject; @@ -54,6 +58,8 @@ export namespace PlacementTables { entriesMap: Array<[string, PlacementTable.AsObject]>, version: string, + apiLevel: number, + replicationFactor: number, } } diff --git a/src/proto/dapr/proto/placement/v1/placement_pb.js b/src/proto/dapr/proto/placement/v1/placement_pb.js index 43aa0dcc..aa7663cd 100644 --- a/src/proto/dapr/proto/placement/v1/placement_pb.js +++ b/src/proto/dapr/proto/placement/v1/placement_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); goog.exportSymbol('proto.dapr.proto.placement.v1.Host', null, global); goog.exportSymbol('proto.dapr.proto.placement.v1.PlacementOrder', null, global); @@ -323,7 +317,9 @@ proto.dapr.proto.placement.v1.PlacementTables.prototype.toObject = function(opt_ proto.dapr.proto.placement.v1.PlacementTables.toObject = function(includeInstance, msg) { var f, obj = { entriesMap: (f = msg.getEntriesMap()) ? f.toObject(includeInstance, proto.dapr.proto.placement.v1.PlacementTable.toObject) : [], - version: jspb.Message.getFieldWithDefault(msg, 2, "") + version: jspb.Message.getFieldWithDefault(msg, 2, ""), + apiLevel: jspb.Message.getFieldWithDefault(msg, 3, 0), + replicationFactor: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -370,6 +366,14 @@ proto.dapr.proto.placement.v1.PlacementTables.deserializeBinaryFromReader = func var value = /** @type {string} */ (reader.readString()); msg.setVersion(value); break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setApiLevel(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setReplicationFactor(value); + break; default: reader.skipField(); break; @@ -410,6 +414,20 @@ proto.dapr.proto.placement.v1.PlacementTables.serializeBinaryToWriter = function f ); } + f = message.getApiLevel(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getReplicationFactor(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } }; @@ -432,8 +450,7 @@ proto.dapr.proto.placement.v1.PlacementTables.prototype.getEntriesMap = function */ proto.dapr.proto.placement.v1.PlacementTables.prototype.clearEntriesMap = function() { this.getEntriesMap().clear(); - return this; -}; + return this;}; /** @@ -454,6 +471,42 @@ proto.dapr.proto.placement.v1.PlacementTables.prototype.setVersion = function(va }; +/** + * optional uint32 api_level = 3; + * @return {number} + */ +proto.dapr.proto.placement.v1.PlacementTables.prototype.getApiLevel = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.dapr.proto.placement.v1.PlacementTables} returns this + */ +proto.dapr.proto.placement.v1.PlacementTables.prototype.setApiLevel = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int64 replication_factor = 4; + * @return {number} + */ +proto.dapr.proto.placement.v1.PlacementTables.prototype.getReplicationFactor = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.dapr.proto.placement.v1.PlacementTables} returns this + */ +proto.dapr.proto.placement.v1.PlacementTables.prototype.setReplicationFactor = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + /** * List of repeated fields within this message type. @@ -628,8 +681,7 @@ proto.dapr.proto.placement.v1.PlacementTable.prototype.getHostsMap = function(op */ proto.dapr.proto.placement.v1.PlacementTable.prototype.clearHostsMap = function() { this.getHostsMap().clear(); - return this; -}; + return this;}; /** @@ -688,8 +740,7 @@ proto.dapr.proto.placement.v1.PlacementTable.prototype.getLoadMapMap = function( */ proto.dapr.proto.placement.v1.PlacementTable.prototype.clearLoadMapMap = function() { this.getLoadMapMap().clear(); - return this; -}; + return this;}; /** diff --git a/src/proto/dapr/proto/runtime/v1/appcallback_pb.js b/src/proto/dapr/proto/runtime/v1/appcallback_pb.js index d18dbd9b..916bed5d 100644 --- a/src/proto/dapr/proto/runtime/v1/appcallback_pb.js +++ b/src/proto/dapr/proto/runtime/v1/appcallback_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); goog.object.extend(proto, google_protobuf_empty_pb); @@ -1660,8 +1654,7 @@ proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.getMetadataMap */ proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -1932,8 +1925,7 @@ proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.getMetadataMap = fun */ proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; /** @@ -2542,8 +2534,7 @@ proto.dapr.proto.runtime.v1.BindingEventRequest.prototype.getMetadataMap = funct */ proto.dapr.proto.runtime.v1.BindingEventRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -3267,8 +3258,7 @@ proto.dapr.proto.runtime.v1.TopicSubscription.prototype.getMetadataMap = functio */ proto.dapr.proto.runtime.v1.TopicSubscription.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; /** diff --git a/src/proto/dapr/proto/runtime/v1/dapr.proto b/src/proto/dapr/proto/runtime/v1/dapr.proto index eafb5452..5ec1cc9d 100644 --- a/src/proto/dapr/proto/runtime/v1/dapr.proto +++ b/src/proto/dapr/proto/runtime/v1/dapr.proto @@ -79,9 +79,6 @@ service Dapr { // Unregister an actor reminder. rpc UnregisterActorReminder(UnregisterActorReminderRequest) returns (google.protobuf.Empty) {} - // Rename an actor reminder. - rpc RenameActorReminder(RenameActorReminderRequest) returns (google.protobuf.Empty) {} - // Gets the state for a specific actor. rpc GetActorState(GetActorStateRequest) returns (GetActorStateResponse) {} @@ -122,7 +119,7 @@ service Dapr { rpc DecryptAlpha1(stream DecryptRequest) returns (stream DecryptResponse); // Gets metadata of the sidecar - rpc GetMetadata (google.protobuf.Empty) returns (GetMetadataResponse) {} + rpc GetMetadata (GetMetadataRequest) returns (GetMetadataResponse) {} // Sets value in extended metadata of the sidecar rpc SetMetadata (SetMetadataRequest) returns (google.protobuf.Empty) {} @@ -190,7 +187,7 @@ service Dapr { // Raise an event to a running workflow instance rpc RaiseEventWorkflowBeta1 (RaiseEventWorkflowRequest) returns (google.protobuf.Empty) {} // Shutdown the sidecar - rpc Shutdown (google.protobuf.Empty) returns (google.protobuf.Empty) {} + rpc Shutdown (ShutdownRequest) returns (google.protobuf.Empty) {} } // InvokeServiceRequest represents the request message for Service invocation. @@ -407,7 +404,6 @@ message BulkPublishResponse { // BulkPublishResponseFailedEntry is the message containing the entryID and error of a failed event in BulkPublishEvent call message BulkPublishResponseFailedEntry { - // The response scoped unique ID referring to this message string entry_id = 1; @@ -415,7 +411,6 @@ message BulkPublishResponseFailedEntry { string error = 2; } - // InvokeBindingRequest is the message to send data to output bindings message InvokeBindingRequest { // The name of the output binding to invoke. @@ -544,14 +539,6 @@ message UnregisterActorReminderRequest { string name = 3; } -// RenameActorReminderRequest is the message to rename an actor reminder. -message RenameActorReminderRequest { - string actor_type = 1; - string actor_id = 2; - string old_name = 3; - string new_name = 4; -} - // GetActorStateRequest is the message to get key-value states from specific actor. message GetActorStateRequest { string actor_type = 1; @@ -600,10 +587,16 @@ message InvokeActorResponse { bytes data = 1; } -// GetMetadataResponse is a message that is returned on GetMetadata rpc call +// GetMetadataRequest is the message for the GetMetadata request. +message GetMetadataRequest { + // Empty +} + +// GetMetadataResponse is a message that is returned on GetMetadata rpc call. message GetMetadataResponse { string id = 1; - repeated ActiveActorsCount active_actors_count = 2 [json_name = "actors"]; + // Deprecated alias for actor_runtime.active_actors. + repeated ActiveActorsCount active_actors_count = 2 [json_name = "actors", deprecated = true]; repeated RegisteredComponents registered_components = 3 [json_name = "components"]; map extended_metadata = 4 [json_name = "extended"]; repeated PubsubSubscription subscriptions = 5 [json_name = "subscriptions"]; @@ -611,6 +604,28 @@ message GetMetadataResponse { AppConnectionProperties app_connection_properties = 7 [json_name = "appConnectionProperties"]; string runtime_version = 8 [json_name = "runtimeVersion"]; repeated string enabled_features = 9 [json_name = "enabledFeatures"]; + ActorRuntime actor_runtime = 10 [json_name = "actorRuntime"]; +} + +message ActorRuntime { + enum ActorRuntimeStatus { + // Indicates that the actor runtime is still being initialized. + INITIALIZING = 0; + // Indicates that the actor runtime is disabled. + // This normally happens when Dapr is started without "placement-host-address" + DISABLED = 1; + // Indicates the actor runtime is running, either as an actor host or client. + RUNNING = 2; + } + + // Contains an enum indicating whether the actor runtime has been initialized. + ActorRuntimeStatus runtime_status = 1 [json_name = "runtimeStatus"]; + // Count of active actors per type. + repeated ActiveActorsCount active_actors = 2 [json_name = "activeActors"]; + // Indicates whether the actor runtime is ready to host actors. + bool host_ready = 3 [json_name = "hostReady"]; + // Custom message from the placement provider. + string placement = 4 [json_name = "placement"]; } message ActiveActorsCount { @@ -1088,3 +1103,8 @@ message PurgeWorkflowRequest { // Name of the workflow component. string workflow_component = 2 [json_name = "workflowComponent"]; } + +// ShutdownRequest is the request for Shutdown. +message ShutdownRequest { + // Empty +} diff --git a/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.d.ts b/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.d.ts index 8db7e693..445a5a40 100644 --- a/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.d.ts +++ b/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.d.ts @@ -29,7 +29,6 @@ interface IDaprService extends grpc.ServiceDefinition; responseDeserialize: grpc.deserialize; } -interface IDaprService_IRenameActorReminder extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/RenameActorReminder"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} interface IDaprService_IGetActorState extends grpc.MethodDefinition { path: "/dapr.proto.runtime.v1.Dapr/GetActorState"; requestStream: false; @@ -348,12 +338,12 @@ interface IDaprService_IDecryptAlpha1 extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } -interface IDaprService_IGetMetadata extends grpc.MethodDefinition { +interface IDaprService_IGetMetadata extends grpc.MethodDefinition { path: "/dapr.proto.runtime.v1.Dapr/GetMetadata"; requestStream: false; responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } @@ -555,12 +545,12 @@ interface IDaprService_IRaiseEventWorkflowBeta1 extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } -interface IDaprService_IShutdown extends grpc.MethodDefinition { +interface IDaprService_IShutdown extends grpc.MethodDefinition { path: "/dapr.proto.runtime.v1.Dapr/Shutdown"; requestStream: false; responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } @@ -585,7 +575,6 @@ export interface IDaprServer extends grpc.UntypedServiceImplementation { unregisterActorTimer: grpc.handleUnaryCall; registerActorReminder: grpc.handleUnaryCall; unregisterActorReminder: grpc.handleUnaryCall; - renameActorReminder: grpc.handleUnaryCall; getActorState: grpc.handleUnaryCall; executeActorStateTransaction: grpc.handleUnaryCall; invokeActor: grpc.handleUnaryCall; @@ -599,7 +588,7 @@ export interface IDaprServer extends grpc.UntypedServiceImplementation { unlockAlpha1: grpc.handleUnaryCall; encryptAlpha1: grpc.handleBidiStreamingCall; decryptAlpha1: grpc.handleBidiStreamingCall; - getMetadata: grpc.handleUnaryCall; + getMetadata: grpc.handleUnaryCall; setMetadata: grpc.handleUnaryCall; subtleGetKeyAlpha1: grpc.handleUnaryCall; subtleEncryptAlpha1: grpc.handleUnaryCall; @@ -622,7 +611,7 @@ export interface IDaprServer extends grpc.UntypedServiceImplementation { pauseWorkflowBeta1: grpc.handleUnaryCall; resumeWorkflowBeta1: grpc.handleUnaryCall; raiseEventWorkflowBeta1: grpc.handleUnaryCall; - shutdown: grpc.handleUnaryCall; + shutdown: grpc.handleUnaryCall; } export interface IDaprClient { @@ -677,9 +666,6 @@ export interface IDaprClient { unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - renameActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RenameActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - renameActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RenameActorReminderRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - renameActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RenameActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; @@ -717,9 +703,9 @@ export interface IDaprClient { decryptAlpha1(): grpc.ClientDuplexStream; decryptAlpha1(options: Partial): grpc.ClientDuplexStream; decryptAlpha1(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - getMetadata(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - getMetadata(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - getMetadata(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; + getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; + getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; + getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; @@ -786,9 +772,9 @@ export interface IDaprClient { raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - shutdown(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - shutdown(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - shutdown(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; + shutdown(request: dapr_proto_runtime_v1_dapr_pb.ShutdownRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; + shutdown(request: dapr_proto_runtime_v1_dapr_pb.ShutdownRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; + shutdown(request: dapr_proto_runtime_v1_dapr_pb.ShutdownRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; } export class DaprClient extends grpc.Client implements IDaprClient { @@ -844,9 +830,6 @@ export class DaprClient extends grpc.Client implements IDaprClient { public unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; public unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; public unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public renameActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RenameActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public renameActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RenameActorReminderRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public renameActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RenameActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; public getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; public getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; public getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; @@ -882,9 +865,9 @@ export class DaprClient extends grpc.Client implements IDaprClient { public encryptAlpha1(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; public decryptAlpha1(options?: Partial): grpc.ClientDuplexStream; public decryptAlpha1(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public getMetadata(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - public getMetadata(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - public getMetadata(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; + public getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; + public getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; + public getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; public setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; public setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; public setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; @@ -951,7 +934,7 @@ export class DaprClient extends grpc.Client implements IDaprClient { public raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; public raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; public raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public shutdown(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public shutdown(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public shutdown(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; + public shutdown(request: dapr_proto_runtime_v1_dapr_pb.ShutdownRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; + public shutdown(request: dapr_proto_runtime_v1_dapr_pb.ShutdownRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; + public shutdown(request: dapr_proto_runtime_v1_dapr_pb.ShutdownRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; } diff --git a/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.js index 15a2bf77..47afabe8 100644 --- a/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.js +++ b/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.js @@ -230,6 +230,17 @@ function deserialize_dapr_proto_runtime_v1_GetConfigurationResponse(buffer_arg) return dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_dapr_proto_runtime_v1_GetMetadataRequest(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.GetMetadataRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_GetMetadataRequest(buffer_arg) { + return dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_dapr_proto_runtime_v1_GetMetadataResponse(arg) { if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse)) { throw new Error('Expected argument of type dapr.proto.runtime.v1.GetMetadataResponse'); @@ -450,17 +461,6 @@ function deserialize_dapr_proto_runtime_v1_RegisterActorTimerRequest(buffer_arg) return dapr_proto_runtime_v1_dapr_pb.RegisterActorTimerRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_dapr_proto_runtime_v1_RenameActorReminderRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.RenameActorReminderRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.RenameActorReminderRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_RenameActorReminderRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.RenameActorReminderRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_dapr_proto_runtime_v1_ResumeWorkflowRequest(arg) { if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest)) { throw new Error('Expected argument of type dapr.proto.runtime.v1.ResumeWorkflowRequest'); @@ -494,6 +494,17 @@ function deserialize_dapr_proto_runtime_v1_SetMetadataRequest(buffer_arg) { return dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_dapr_proto_runtime_v1_ShutdownRequest(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.ShutdownRequest)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.ShutdownRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_ShutdownRequest(buffer_arg) { + return dapr_proto_runtime_v1_dapr_pb.ShutdownRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_dapr_proto_runtime_v1_StartWorkflowRequest(arg) { if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest)) { throw new Error('Expected argument of type dapr.proto.runtime.v1.StartWorkflowRequest'); @@ -1010,18 +1021,6 @@ unregisterActorReminder: { responseSerialize: serialize_google_protobuf_Empty, responseDeserialize: deserialize_google_protobuf_Empty, }, - // Rename an actor reminder. -renameActorReminder: { - path: '/dapr.proto.runtime.v1.Dapr/RenameActorReminder', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.RenameActorReminderRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_RenameActorReminderRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_RenameActorReminderRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, // Gets the state for a specific actor. getActorState: { path: '/dapr.proto.runtime.v1.Dapr/GetActorState', @@ -1183,10 +1182,10 @@ getMetadata: { path: '/dapr.proto.runtime.v1.Dapr/GetMetadata', requestStream: false, responseStream: false, - requestType: google_protobuf_empty_pb.Empty, + requestType: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, responseType: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse, - requestSerialize: serialize_google_protobuf_Empty, - requestDeserialize: deserialize_google_protobuf_Empty, + requestSerialize: serialize_dapr_proto_runtime_v1_GetMetadataRequest, + requestDeserialize: deserialize_dapr_proto_runtime_v1_GetMetadataRequest, responseSerialize: serialize_dapr_proto_runtime_v1_GetMetadataResponse, responseDeserialize: deserialize_dapr_proto_runtime_v1_GetMetadataResponse, }, @@ -1459,10 +1458,10 @@ shutdown: { path: '/dapr.proto.runtime.v1.Dapr/Shutdown', requestStream: false, responseStream: false, - requestType: google_protobuf_empty_pb.Empty, + requestType: dapr_proto_runtime_v1_dapr_pb.ShutdownRequest, responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_google_protobuf_Empty, - requestDeserialize: deserialize_google_protobuf_Empty, + requestSerialize: serialize_dapr_proto_runtime_v1_ShutdownRequest, + requestDeserialize: deserialize_dapr_proto_runtime_v1_ShutdownRequest, responseSerialize: serialize_google_protobuf_Empty, responseDeserialize: deserialize_google_protobuf_Empty, }, diff --git a/src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts b/src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts index e9411fc7..87519d3f 100644 --- a/src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts +++ b/src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts @@ -884,35 +884,6 @@ export namespace UnregisterActorReminderRequest { } } -export class RenameActorReminderRequest extends jspb.Message { - getActorType(): string; - setActorType(value: string): RenameActorReminderRequest; - getActorId(): string; - setActorId(value: string): RenameActorReminderRequest; - getOldName(): string; - setOldName(value: string): RenameActorReminderRequest; - getNewName(): string; - setNewName(value: string): RenameActorReminderRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RenameActorReminderRequest.AsObject; - static toObject(includeInstance: boolean, msg: RenameActorReminderRequest): RenameActorReminderRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RenameActorReminderRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RenameActorReminderRequest; - static deserializeBinaryFromReader(message: RenameActorReminderRequest, reader: jspb.BinaryReader): RenameActorReminderRequest; -} - -export namespace RenameActorReminderRequest { - export type AsObject = { - actorType: string, - actorId: string, - oldName: string, - newName: string, - } -} - export class GetActorStateRequest extends jspb.Message { getActorType(): string; setActorType(value: string): GetActorStateRequest; @@ -1086,6 +1057,23 @@ export namespace InvokeActorResponse { } } +export class GetMetadataRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMetadataRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetMetadataRequest): GetMetadataRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetMetadataRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMetadataRequest; + static deserializeBinaryFromReader(message: GetMetadataRequest, reader: jspb.BinaryReader): GetMetadataRequest; +} + +export namespace GetMetadataRequest { + export type AsObject = { + } +} + export class GetMetadataResponse extends jspb.Message { getId(): string; setId(value: string): GetMetadataResponse; @@ -1120,6 +1108,11 @@ export class GetMetadataResponse extends jspb.Message { setEnabledFeaturesList(value: Array): GetMetadataResponse; addEnabledFeatures(value: string, index?: number): string; + hasActorRuntime(): boolean; + clearActorRuntime(): void; + getActorRuntime(): ActorRuntime | undefined; + setActorRuntime(value?: ActorRuntime): GetMetadataResponse; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetMetadataResponse.AsObject; static toObject(includeInstance: boolean, msg: GetMetadataResponse): GetMetadataResponse.AsObject; @@ -1142,7 +1135,46 @@ export namespace GetMetadataResponse { appConnectionProperties?: AppConnectionProperties.AsObject, runtimeVersion: string, enabledFeaturesList: Array, + actorRuntime?: ActorRuntime.AsObject, + } +} + +export class ActorRuntime extends jspb.Message { + getRuntimeStatus(): ActorRuntime.ActorRuntimeStatus; + setRuntimeStatus(value: ActorRuntime.ActorRuntimeStatus): ActorRuntime; + clearActiveActorsList(): void; + getActiveActorsList(): Array; + setActiveActorsList(value: Array): ActorRuntime; + addActiveActors(value?: ActiveActorsCount, index?: number): ActiveActorsCount; + getHostReady(): boolean; + setHostReady(value: boolean): ActorRuntime; + getPlacement(): string; + setPlacement(value: string): ActorRuntime; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ActorRuntime.AsObject; + static toObject(includeInstance: boolean, msg: ActorRuntime): ActorRuntime.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ActorRuntime, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ActorRuntime; + static deserializeBinaryFromReader(message: ActorRuntime, reader: jspb.BinaryReader): ActorRuntime; +} + +export namespace ActorRuntime { + export type AsObject = { + runtimeStatus: ActorRuntime.ActorRuntimeStatus, + activeActorsList: Array, + hostReady: boolean, + placement: string, + } + + export enum ActorRuntimeStatus { + INITIALIZING = 0, + DISABLED = 1, + RUNNING = 2, } + } export class ActiveActorsCount extends jspb.Message { @@ -2486,3 +2518,20 @@ export namespace PurgeWorkflowRequest { workflowComponent: string, } } + +export class ShutdownRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ShutdownRequest.AsObject; + static toObject(includeInstance: boolean, msg: ShutdownRequest): ShutdownRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ShutdownRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ShutdownRequest; + static deserializeBinaryFromReader(message: ShutdownRequest, reader: jspb.BinaryReader): ShutdownRequest; +} + +export namespace ShutdownRequest { + export type AsObject = { + } +} diff --git a/src/proto/dapr/proto/runtime/v1/dapr_pb.js b/src/proto/dapr/proto/runtime/v1/dapr_pb.js index eeb8a307..1ea0998a 100644 --- a/src/proto/dapr/proto/runtime/v1/dapr_pb.js +++ b/src/proto/dapr/proto/runtime/v1/dapr_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); @@ -30,6 +24,8 @@ goog.object.extend(proto, google_protobuf_timestamp_pb); var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); goog.object.extend(proto, dapr_proto_common_v1_common_pb); goog.exportSymbol('proto.dapr.proto.runtime.v1.ActiveActorsCount', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.ActorRuntime', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.AppConnectionHealthProperties', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.AppConnectionProperties', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.BulkPublishRequest', null, global); @@ -55,6 +51,7 @@ goog.exportSymbol('proto.dapr.proto.runtime.v1.GetBulkStateRequest', null, globa goog.exportSymbol('proto.dapr.proto.runtime.v1.GetBulkStateResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.GetConfigurationRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.GetConfigurationResponse', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.GetMetadataRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.GetMetadataResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.GetSecretRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.GetSecretResponse', null, global); @@ -81,11 +78,11 @@ goog.exportSymbol('proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest', null, goog.exportSymbol('proto.dapr.proto.runtime.v1.RegisterActorReminderRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.RegisterActorTimerRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.RegisteredComponents', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.RenameActorReminderRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.ResumeWorkflowRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.SaveStateRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.SecretResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.SetMetadataRequest', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.ShutdownRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.StartWorkflowRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.StartWorkflowResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest', null, global); @@ -747,27 +744,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.displayName = 'proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.RenameActorReminderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.RenameActorReminderRequest.displayName = 'proto.dapr.proto.runtime.v1.RenameActorReminderRequest'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -894,6 +870,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.dapr.proto.runtime.v1.InvokeActorResponse.displayName = 'proto.dapr.proto.runtime.v1.InvokeActorResponse'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.dapr.proto.runtime.v1.GetMetadataRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.GetMetadataRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.GetMetadataRequest.displayName = 'proto.dapr.proto.runtime.v1.GetMetadataRequest'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -915,6 +912,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.dapr.proto.runtime.v1.GetMetadataResponse.displayName = 'proto.dapr.proto.runtime.v1.GetMetadataResponse'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.dapr.proto.runtime.v1.ActorRuntime = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ActorRuntime.repeatedFields_, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.ActorRuntime, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.ActorRuntime.displayName = 'proto.dapr.proto.runtime.v1.ActorRuntime'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1923,6 +1941,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.displayName = 'proto.dapr.proto.runtime.v1.PurgeWorkflowRequest'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.dapr.proto.runtime.v1.ShutdownRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.ShutdownRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.ShutdownRequest.displayName = 'proto.dapr.proto.runtime.v1.ShutdownRequest'; +} @@ -2324,8 +2363,7 @@ proto.dapr.proto.runtime.v1.GetStateRequest.prototype.getMetadataMap = function( */ proto.dapr.proto.runtime.v1.GetStateRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -2574,8 +2612,7 @@ proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.getMetadataMap = funct */ proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -3012,8 +3049,7 @@ proto.dapr.proto.runtime.v1.BulkStateItem.prototype.getMetadataMap = function(op */ proto.dapr.proto.runtime.v1.BulkStateItem.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -3230,8 +3266,7 @@ proto.dapr.proto.runtime.v1.GetStateResponse.prototype.getMetadataMap = function */ proto.dapr.proto.runtime.v1.GetStateResponse.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -3526,8 +3561,7 @@ proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.getMetadataMap = functi */ proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -4100,8 +4134,7 @@ proto.dapr.proto.runtime.v1.QueryStateRequest.prototype.getMetadataMap = functio */ proto.dapr.proto.runtime.v1.QueryStateRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -4568,8 +4601,7 @@ proto.dapr.proto.runtime.v1.QueryStateResponse.prototype.getMetadataMap = functi */ proto.dapr.proto.runtime.v1.QueryStateResponse.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -4846,8 +4878,7 @@ proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.getMetadataMap = funct */ proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -5100,8 +5131,7 @@ proto.dapr.proto.runtime.v1.BulkPublishRequest.prototype.getMetadataMap = functi */ proto.dapr.proto.runtime.v1.BulkPublishRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -5348,8 +5378,7 @@ proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.getMetadataMap = f */ proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -5898,8 +5927,7 @@ proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getMetadataMap = func */ proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; /** @@ -6104,8 +6132,7 @@ proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.getMetadataMap = fun */ proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -6298,8 +6325,7 @@ proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.getMetadataMap = function */ proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -6432,8 +6458,7 @@ proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.getDataMap = function(op */ proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.clearDataMap = function() { this.getDataMap().clear(); - return this; -}; + return this;}; @@ -6596,8 +6621,7 @@ proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.getMetadataMap = func */ proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -6730,8 +6754,7 @@ proto.dapr.proto.runtime.v1.SecretResponse.prototype.getSecretsMap = function(op */ proto.dapr.proto.runtime.v1.SecretResponse.prototype.clearSecretsMap = function() { this.getSecretsMap().clear(); - return this; -}; + return this;}; @@ -6864,8 +6887,7 @@ proto.dapr.proto.runtime.v1.GetBulkSecretResponse.prototype.getDataMap = functio */ proto.dapr.proto.runtime.v1.GetBulkSecretResponse.prototype.clearDataMap = function() { this.getDataMap().clear(); - return this; -}; + return this;}; @@ -7269,8 +7291,7 @@ proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.getMetadata */ proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -8367,8 +8388,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.RenameActorReminderRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetActorStateRequest.toObject(opt_includeInstance, this); }; @@ -8377,16 +8398,15 @@ proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.toObject = func * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.dapr.proto.runtime.v1.RenameActorReminderRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.GetActorStateRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetActorStateRequest.toObject = function(includeInstance, msg) { var f, obj = { actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - oldName: jspb.Message.getFieldWithDefault(msg, 3, ""), - newName: jspb.Message.getFieldWithDefault(msg, 4, "") + key: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -8400,23 +8420,23 @@ proto.dapr.proto.runtime.v1.RenameActorReminderRequest.toObject = function(inclu /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.RenameActorReminderRequest} + * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.RenameActorReminderRequest; - return proto.dapr.proto.runtime.v1.RenameActorReminderRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.GetActorStateRequest; + return proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.dapr.proto.runtime.v1.RenameActorReminderRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.GetActorStateRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.RenameActorReminderRequest} + * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8433,11 +8453,7 @@ proto.dapr.proto.runtime.v1.RenameActorReminderRequest.deserializeBinaryFromRead break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setOldName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNewName(value); + msg.setKey(value); break; default: reader.skipField(); @@ -8452,9 +8468,9 @@ proto.dapr.proto.runtime.v1.RenameActorReminderRequest.deserializeBinaryFromRead * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.RenameActorReminderRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetActorStateRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8462,11 +8478,11 @@ proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.RenameActorReminderRequest} message + * @param {!proto.dapr.proto.runtime.v1.GetActorStateRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.GetActorStateRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getActorType(); if (f.length > 0) { @@ -8482,20 +8498,13 @@ proto.dapr.proto.runtime.v1.RenameActorReminderRequest.serializeBinaryToWriter = f ); } - f = message.getOldName(); + f = message.getKey(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getNewName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } }; @@ -8503,16 +8512,16 @@ proto.dapr.proto.runtime.v1.RenameActorReminderRequest.serializeBinaryToWriter = * optional string actor_type = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.getActorType = function() { +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getActorType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RenameActorReminderRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.setActorType = function(value) { +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setActorType = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -8521,56 +8530,38 @@ proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.setActorType = * optional string actor_id = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.getActorId = function() { +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getActorId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RenameActorReminderRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.setActorId = function(value) { +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setActorId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string old_name = 3; + * optional string key = 3; * @return {string} */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.getOldName = function() { +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RenameActorReminderRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.setOldName = function(value) { +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setKey = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * optional string new_name = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.getNewName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RenameActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.RenameActorReminderRequest.prototype.setNewName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - @@ -8587,8 +8578,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetActorStateRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetActorStateResponse.toObject(opt_includeInstance, this); }; @@ -8597,15 +8588,14 @@ proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.dapr.proto.runtime.v1.GetActorStateRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.GetActorStateResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetActorStateResponse.toObject = function(includeInstance, msg) { var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - key: jspb.Message.getFieldWithDefault(msg, 3, "") + data: msg.getData_asB64(), + metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -8619,23 +8609,23 @@ proto.dapr.proto.runtime.v1.GetActorStateRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} + * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetActorStateRequest; - return proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.GetActorStateResponse; + return proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.dapr.proto.runtime.v1.GetActorStateRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.GetActorStateResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} + * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8643,16 +8633,14 @@ proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setActorType(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setActorId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); + var value = msg.getMetadataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); break; default: reader.skipField(); @@ -8667,9 +8655,9 @@ proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetActorStateRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetActorStateResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8677,252 +8665,65 @@ proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetActorStateRequest} message + * @param {!proto.dapr.proto.runtime.v1.GetActorStateResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.GetActorStateResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getActorType(); + f = message.getData_asU8(); if (f.length > 0) { - writer.writeString( + writer.writeBytes( 1, f ); } - f = message.getActorId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); + f = message.getMetadataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; /** - * optional string actor_type = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this + * optional bytes data = 1; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional string actor_id = 2; + * optional bytes data = 1; + * This is a type-conversion wrapper around `getData()` * @return {string} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this + * optional bytes data = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getData()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); }; /** - * optional string key = 3; - * @return {string} + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} returns this */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetActorStateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.dapr.proto.runtime.v1.GetActorStateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetActorStateResponse; - return proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.runtime.v1.GetActorStateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetActorStateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetActorStateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional bytes data = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -8945,8 +8746,7 @@ proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getMetadataMap = fun */ proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -9410,8 +9210,7 @@ proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.getMetada */ proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -9688,8 +9487,7 @@ proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getMetadataMap = functi */ proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -9847,6 +9645,107 @@ proto.dapr.proto.runtime.v1.InvokeActorResponse.prototype.setData = function(val + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.dapr.proto.runtime.v1.GetMetadataRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetMetadataRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.dapr.proto.runtime.v1.GetMetadataRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.GetMetadataRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.dapr.proto.runtime.v1.GetMetadataRequest} + */ +proto.dapr.proto.runtime.v1.GetMetadataRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.GetMetadataRequest; + return proto.dapr.proto.runtime.v1.GetMetadataRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.dapr.proto.runtime.v1.GetMetadataRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.GetMetadataRequest} + */ +proto.dapr.proto.runtime.v1.GetMetadataRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.GetMetadataRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.GetMetadataRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.dapr.proto.runtime.v1.GetMetadataRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.GetMetadataRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + /** * List of repeated fields within this message type. * @private {!Array} @@ -9897,7 +9796,8 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.toObject = function(includeInsta proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.toObject, includeInstance), appConnectionProperties: (f = msg.getAppConnectionProperties()) && proto.dapr.proto.runtime.v1.AppConnectionProperties.toObject(includeInstance, f), runtimeVersion: jspb.Message.getFieldWithDefault(msg, 8, ""), - enabledFeaturesList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f + enabledFeaturesList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, + actorRuntime: (f = msg.getActorRuntime()) && proto.dapr.proto.runtime.v1.ActorRuntime.toObject(includeInstance, f) }; if (includeInstance) { @@ -9977,6 +9877,11 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.deserializeBinaryFromReader = fu var value = /** @type {string} */ (reader.readString()); msg.addEnabledFeatures(value); break; + case 10: + var value = new proto.dapr.proto.runtime.v1.ActorRuntime; + reader.readMessage(value,proto.dapr.proto.runtime.v1.ActorRuntime.deserializeBinaryFromReader); + msg.setActorRuntime(value); + break; default: reader.skipField(); break; @@ -10071,6 +9976,14 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.serializeBinaryToWriter = functi f ); } + f = message.getActorRuntime(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.dapr.proto.runtime.v1.ActorRuntime.serializeBinaryToWriter + ); + } }; @@ -10187,8 +10100,7 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getExtendedMetadataMap */ proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearExtendedMetadataMap = function() { this.getExtendedMetadataMap().clear(); - return this; -}; + return this;}; /** @@ -10221,141 +10133,437 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.addSubscriptions = fun /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * Clears the list making it empty but non-null. + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearSubscriptionsList = function() { + return this.setSubscriptionsList([]); +}; + + +/** + * repeated MetadataHTTPEndpoint http_endpoints = 6; + * @return {!Array} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getHttpEndpointsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this +*/ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setHttpEndpointsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint=} opt_value + * @param {number=} opt_index + * @return {!proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.addHttpEndpoints = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearHttpEndpointsList = function() { + return this.setHttpEndpointsList([]); +}; + + +/** + * optional AppConnectionProperties app_connection_properties = 7; + * @return {?proto.dapr.proto.runtime.v1.AppConnectionProperties} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getAppConnectionProperties = function() { + return /** @type{?proto.dapr.proto.runtime.v1.AppConnectionProperties} */ ( + jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.AppConnectionProperties, 7)); +}; + + +/** + * @param {?proto.dapr.proto.runtime.v1.AppConnectionProperties|undefined} value + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this +*/ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setAppConnectionProperties = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearAppConnectionProperties = function() { + return this.setAppConnectionProperties(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.hasAppConnectionProperties = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional string runtime_version = 8; + * @return {string} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getRuntimeVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setRuntimeVersion = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * repeated string enabled_features = 9; + * @return {!Array} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getEnabledFeaturesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); +}; + + +/** + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setEnabledFeaturesList = function(value) { + return jspb.Message.setField(this, 9, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.addEnabledFeatures = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 9, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearEnabledFeaturesList = function() { + return this.setEnabledFeaturesList([]); +}; + + +/** + * optional ActorRuntime actor_runtime = 10; + * @return {?proto.dapr.proto.runtime.v1.ActorRuntime} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getActorRuntime = function() { + return /** @type{?proto.dapr.proto.runtime.v1.ActorRuntime} */ ( + jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ActorRuntime, 10)); +}; + + +/** + * @param {?proto.dapr.proto.runtime.v1.ActorRuntime|undefined} value + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this +*/ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setActorRuntime = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearActorRuntime = function() { + return this.setActorRuntime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.hasActorRuntime = function() { + return jspb.Message.getField(this, 10) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.dapr.proto.runtime.v1.ActorRuntime.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.ActorRuntime.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.dapr.proto.runtime.v1.ActorRuntime} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.ActorRuntime.toObject = function(includeInstance, msg) { + var f, obj = { + runtimeStatus: jspb.Message.getFieldWithDefault(msg, 1, 0), + activeActorsList: jspb.Message.toObjectList(msg.getActiveActorsList(), + proto.dapr.proto.runtime.v1.ActiveActorsCount.toObject, includeInstance), + hostReady: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + placement: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearSubscriptionsList = function() { - return this.setSubscriptionsList([]); +proto.dapr.proto.runtime.v1.ActorRuntime.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.ActorRuntime; + return proto.dapr.proto.runtime.v1.ActorRuntime.deserializeBinaryFromReader(msg, reader); }; /** - * repeated MetadataHTTPEndpoint http_endpoints = 6; - * @return {!Array} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.dapr.proto.runtime.v1.ActorRuntime} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getHttpEndpointsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint, 6)); +proto.dapr.proto.runtime.v1.ActorRuntime.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus} */ (reader.readEnum()); + msg.setRuntimeStatus(value); + break; + case 2: + var value = new proto.dapr.proto.runtime.v1.ActiveActorsCount; + reader.readMessage(value,proto.dapr.proto.runtime.v1.ActiveActorsCount.deserializeBinaryFromReader); + msg.addActiveActors(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setHostReady(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setPlacement(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this -*/ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setHttpEndpointsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.ActorRuntime.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {!proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.dapr.proto.runtime.v1.ActorRuntime} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.addHttpEndpoints = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint, opt_index); +proto.dapr.proto.runtime.v1.ActorRuntime.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRuntimeStatus(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getActiveActorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.dapr.proto.runtime.v1.ActiveActorsCount.serializeBinaryToWriter + ); + } + f = message.getHostReady(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getPlacement(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * @enum {number} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearHttpEndpointsList = function() { - return this.setHttpEndpointsList([]); +proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus = { + INITIALIZING: 0, + DISABLED: 1, + RUNNING: 2 }; - /** - * optional AppConnectionProperties app_connection_properties = 7; - * @return {?proto.dapr.proto.runtime.v1.AppConnectionProperties} + * optional ActorRuntimeStatus runtime_status = 1; + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getAppConnectionProperties = function() { - return /** @type{?proto.dapr.proto.runtime.v1.AppConnectionProperties} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.AppConnectionProperties, 7)); +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.getRuntimeStatus = function() { + return /** @type {!proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.dapr.proto.runtime.v1.AppConnectionProperties|undefined} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this -*/ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setAppConnectionProperties = function(value) { - return jspb.Message.setWrapperField(this, 7, value); + * @param {!proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus} value + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this + */ +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.setRuntimeStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * repeated ActiveActorsCount active_actors = 2; + * @return {!Array} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearAppConnectionProperties = function() { - return this.setAppConnectionProperties(undefined); +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.getActiveActorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ActiveActorsCount, 2)); }; /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.hasAppConnectionProperties = function() { - return jspb.Message.getField(this, 7) != null; + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this +*/ +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.setActiveActorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional string runtime_version = 8; - * @return {string} + * @param {!proto.dapr.proto.runtime.v1.ActiveActorsCount=} opt_value + * @param {number=} opt_index + * @return {!proto.dapr.proto.runtime.v1.ActiveActorsCount} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getRuntimeVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.addActiveActors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.ActiveActorsCount, opt_index); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * Clears the list making it empty but non-null. + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setRuntimeVersion = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.clearActiveActorsList = function() { + return this.setActiveActorsList([]); }; /** - * repeated string enabled_features = 9; - * @return {!Array} + * optional bool host_ready = 3; + * @return {boolean} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getEnabledFeaturesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.getHostReady = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * @param {boolean} value + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setEnabledFeaturesList = function(value) { - return jspb.Message.setField(this, 9, value || []); +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.setHostReady = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * optional string placement = 4; + * @return {string} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.addEnabledFeatures = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 9, value, opt_index); +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.getPlacement = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearEnabledFeaturesList = function() { - return this.setEnabledFeaturesList([]); +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.setPlacement = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -11602,8 +11810,7 @@ proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getMetadataMap = functi */ proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; /** @@ -12357,8 +12564,7 @@ proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.getMetadataMap = f */ proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -12491,8 +12697,7 @@ proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.getItemsMap = fun */ proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.clearItemsMap = function() { this.getItemsMap().clear(); - return this; -}; + return this;}; @@ -12711,8 +12916,7 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.getMetadataM */ proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this; -}; + return this;}; @@ -13035,8 +13239,7 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.getItemsMap */ proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.clearItemsMap = function() { this.getItemsMap().clear(); - return this; -}; + return this;}; @@ -18931,8 +19134,7 @@ proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getPropertiesMap = fun */ proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.clearPropertiesMap = function() { this.getPropertiesMap().clear(); - return this; -}; + return this;}; @@ -19167,8 +19369,7 @@ proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getOptionsMap = funct */ proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.clearOptionsMap = function() { this.getOptionsMap().clear(); - return this; -}; + return this;}; /** @@ -20227,4 +20428,105 @@ proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.setWorkflowComponent }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.dapr.proto.runtime.v1.ShutdownRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.ShutdownRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.dapr.proto.runtime.v1.ShutdownRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.ShutdownRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.dapr.proto.runtime.v1.ShutdownRequest} + */ +proto.dapr.proto.runtime.v1.ShutdownRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.ShutdownRequest; + return proto.dapr.proto.runtime.v1.ShutdownRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.dapr.proto.runtime.v1.ShutdownRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.ShutdownRequest} + */ +proto.dapr.proto.runtime.v1.ShutdownRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.ShutdownRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.ShutdownRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.dapr.proto.runtime.v1.ShutdownRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.ShutdownRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/sentry/v1/sentry_pb.js b/src/proto/dapr/proto/sentry/v1/sentry_pb.js index 8d52a41f..9844418a 100644 --- a/src/proto/dapr/proto/sentry/v1/sentry_pb.js +++ b/src/proto/dapr/proto/sentry/v1/sentry_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); diff --git a/src/proto/google/protobuf/any_pb.js b/src/proto/google/protobuf/any_pb.js index c9799fca..c32e01f6 100644 --- a/src/proto/google/protobuf/any_pb.js +++ b/src/proto/google/protobuf/any_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); goog.exportSymbol('proto.google.protobuf.Any', null, global); /** diff --git a/src/proto/google/protobuf/empty_pb.js b/src/proto/google/protobuf/empty_pb.js index 8cabbd24..52428f70 100644 --- a/src/proto/google/protobuf/empty_pb.js +++ b/src/proto/google/protobuf/empty_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); goog.exportSymbol('proto.google.protobuf.Empty', null, global); /** diff --git a/src/proto/google/protobuf/timestamp_pb.js b/src/proto/google/protobuf/timestamp_pb.js index 88db5c81..9cf8e7f2 100644 --- a/src/proto/google/protobuf/timestamp_pb.js +++ b/src/proto/google/protobuf/timestamp_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); goog.exportSymbol('proto.google.protobuf.Timestamp', null, global); /**