From 0b0ab805ad0328f15eb36499beb60f29ca5b789c Mon Sep 17 00:00:00 2001 From: Deepanshu Agarwal Date: Fri, 26 Jul 2024 18:03:29 +0530 Subject: [PATCH 1/5] use dapr 1.14.0-rc.6 Signed-off-by: Deepanshu Agarwal --- .github/workflows/test-e2e.yml | 6 +- package-lock.json | 4 +- package.json | 2 +- scripts/fetch-proto.sh | 2 +- src/proto/dapr/proto/common/v1/common_pb.js | 14 +- .../dapr/proto/internals/v1/apiversion_pb.js | 8 +- .../internals/v1/service_invocation.proto | 5 + .../v1/service_invocation_grpc_pb.d.ts | 77 - .../v1/service_invocation_grpc_pb.js | 125 - .../internals/v1/service_invocation_pb.d.ts | 189 - .../internals/v1/service_invocation_pb.js | 1409 -- .../dapr/proto/internals/v1/status_pb.js | 8 +- .../dapr/proto/operator/v1/operator.proto | 17 + .../proto/operator/v1/operator_grpc_pb.d.ts | 15 + .../proto/operator/v1/operator_grpc_pb.js | 34 + .../dapr/proto/operator/v1/operator_pb.d.ts | 48 + .../dapr/proto/operator/v1/operator_pb.js | 396 +- .../dapr/proto/placement/v1/placement.proto | 1 + .../dapr/proto/placement/v1/placement_pb.d.ts | 3 + .../dapr/proto/placement/v1/placement_pb.js | 49 +- .../dapr/proto/runtime/v1/appcallback.proto | 30 + .../proto/runtime/v1/appcallback_grpc_pb.d.ts | 18 + .../proto/runtime/v1/appcallback_grpc_pb.js | 35 + .../dapr/proto/runtime/v1/appcallback_pb.d.ts | 56 + .../dapr/proto/runtime/v1/appcallback_pb.js | 461 +- src/proto/dapr/proto/runtime/v1/dapr.proto | 202 +- .../dapr/proto/runtime/v1/dapr_grpc_pb.d.ts | 68 + .../dapr/proto/runtime/v1/dapr_grpc_pb.js | 138 + src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts | 334 + src/proto/dapr/proto/runtime/v1/dapr_pb.js | 13979 +++++++++------- src/proto/dapr/proto/sentry/v1/sentry_pb.js | 8 +- src/proto/google/protobuf/any_pb.js | 8 +- src/proto/google/protobuf/empty_pb.js | 8 +- src/proto/google/protobuf/timestamp_pb.js | 8 +- 34 files changed, 10160 insertions(+), 7605 deletions(-) delete mode 100644 src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.d.ts delete mode 100644 src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.js delete mode 100644 src/proto/dapr/proto/internals/v1/service_invocation_pb.d.ts delete mode 100644 src/proto/dapr/proto/internals/v1/service_invocation_pb.js diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index e9514c93..bd9a1cbc 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.21 - DAPR_CLI_VER: 1.13.0 - DAPR_RUNTIME_VER: 1.13.0 + GOVER: 1.22 + DAPR_CLI_VER: 1.14.0-rc.6 + DAPR_RUNTIME_VER: 1.14.0-rc.6 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 3a6f84a2..7101312c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dapr/dapr", - "version": "3.3.1", + "version": "3.4.0-rc.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dapr/dapr", - "version": "3.3.1", + "version": "3.4.0-rc.1", "license": "ISC", "dependencies": { "@grpc/grpc-js": "^1.9.3", diff --git a/package.json b/package.json index 0c3b2f10..4ed8a12b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dapr/dapr", - "version": "3.3.1", + "version": "3.4.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 fa051f21..333844d0 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.13.0" +BRANCH_NAME="v1.14.0-rc.6" # 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 5831b458..d6c232b1 100644 --- a/src/proto/dapr/proto/common/v1/common_pb.js +++ b/src/proto/dapr/proto/common/v1/common_pb.js @@ -13,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); +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 google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); @@ -1278,7 +1284,8 @@ 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; +}; /** @@ -1816,7 +1823,8 @@ 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 a3e34a30..31dbf02c 100644 --- a/src/proto/dapr/proto/internals/v1/apiversion_pb.js +++ b/src/proto/dapr/proto/internals/v1/apiversion_pb.js @@ -13,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); +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')(); goog.exportSymbol('proto.dapr.proto.internals.v1.APIVersion', null, global); /** diff --git a/src/proto/dapr/proto/internals/v1/service_invocation.proto b/src/proto/dapr/proto/internals/v1/service_invocation.proto index f83c37fd..b45c31d6 100644 --- a/src/proto/dapr/proto/internals/v1/service_invocation.proto +++ b/src/proto/dapr/proto/internals/v1/service_invocation.proto @@ -16,8 +16,10 @@ syntax = "proto3"; package dapr.proto.internals.v1; import "dapr/proto/common/v1/common.proto"; +import "dapr/proto/internals/v1/reminders.proto"; import "dapr/proto/internals/v1/apiversion.proto"; import "dapr/proto/internals/v1/status.proto"; +import "google/protobuf/empty.proto"; option go_package = "github.com/dapr/dapr/pkg/proto/internals/v1;internals"; @@ -38,6 +40,9 @@ service ServiceInvocation { // Invokes a method of the specific service. rpc CallLocal (InternalInvokeRequest) returns (InternalInvokeResponse) {} + // Invoke a remote internal actor reminder + rpc CallActorReminder(Reminder) returns (google.protobuf.Empty) {} + // Invokes a method of the specific service using a stream of data. // Although this uses a bi-directional stream, it behaves as a "simple RPC" in which the caller sends the full request (chunked in multiple messages in the stream), then reads the full response (chunked in the stream). // Each message in the stream contains a `InternalInvokeRequestStream` (for caller) or `InternalInvokeResponseStream` (for callee): diff --git a/src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.d.ts b/src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.d.ts deleted file mode 100644 index c1f8e57d..00000000 --- a/src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -// package: dapr.proto.internals.v1 -// file: dapr/proto/internals/v1/service_invocation.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as dapr_proto_internals_v1_service_invocation_pb from "../../../../dapr/proto/internals/v1/service_invocation_pb"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; -import * as dapr_proto_internals_v1_apiversion_pb from "../../../../dapr/proto/internals/v1/apiversion_pb"; -import * as dapr_proto_internals_v1_status_pb from "../../../../dapr/proto/internals/v1/status_pb"; - -interface IServiceInvocationService extends grpc.ServiceDefinition { - callActor: IServiceInvocationService_ICallActor; - callLocal: IServiceInvocationService_ICallLocal; - callLocalStream: IServiceInvocationService_ICallLocalStream; -} - -interface IServiceInvocationService_ICallActor extends grpc.MethodDefinition { - path: "/dapr.proto.internals.v1.ServiceInvocation/CallActor"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IServiceInvocationService_ICallLocal extends grpc.MethodDefinition { - path: "/dapr.proto.internals.v1.ServiceInvocation/CallLocal"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IServiceInvocationService_ICallLocalStream extends grpc.MethodDefinition { - path: "/dapr.proto.internals.v1.ServiceInvocation/CallLocalStream"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const ServiceInvocationService: IServiceInvocationService; - -export interface IServiceInvocationServer extends grpc.UntypedServiceImplementation { - callActor: grpc.handleUnaryCall; - callLocal: grpc.handleUnaryCall; - callLocalStream: grpc.handleBidiStreamingCall; -} - -export interface IServiceInvocationClient { - callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callLocalStream(): grpc.ClientDuplexStream; - callLocalStream(options: Partial): grpc.ClientDuplexStream; - callLocalStream(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; -} - -export class ServiceInvocationClient extends grpc.Client implements IServiceInvocationClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callLocalStream(options?: Partial): grpc.ClientDuplexStream; - public callLocalStream(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; -} diff --git a/src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.js b/src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.js deleted file mode 100644 index 7b8bcfab..00000000 --- a/src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.js +++ /dev/null @@ -1,125 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// Original file comments: -// -// Copyright 2021 The Dapr Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -'use strict'; -var grpc = require('@grpc/grpc-js'); -var dapr_proto_internals_v1_service_invocation_pb = require('../../../../dapr/proto/internals/v1/service_invocation_pb.js'); -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -var dapr_proto_internals_v1_apiversion_pb = require('../../../../dapr/proto/internals/v1/apiversion_pb.js'); -var dapr_proto_internals_v1_status_pb = require('../../../../dapr/proto/internals/v1/status_pb.js'); - -function serialize_dapr_proto_internals_v1_InternalInvokeRequest(arg) { - if (!(arg instanceof dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest)) { - throw new Error('Expected argument of type dapr.proto.internals.v1.InternalInvokeRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_internals_v1_InternalInvokeRequest(buffer_arg) { - return dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_internals_v1_InternalInvokeRequestStream(arg) { - if (!(arg instanceof dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequestStream)) { - throw new Error('Expected argument of type dapr.proto.internals.v1.InternalInvokeRequestStream'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_internals_v1_InternalInvokeRequestStream(buffer_arg) { - return dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequestStream.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_internals_v1_InternalInvokeResponse(arg) { - if (!(arg instanceof dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse)) { - throw new Error('Expected argument of type dapr.proto.internals.v1.InternalInvokeResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_internals_v1_InternalInvokeResponse(buffer_arg) { - return dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_internals_v1_InternalInvokeResponseStream(arg) { - if (!(arg instanceof dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponseStream)) { - throw new Error('Expected argument of type dapr.proto.internals.v1.InternalInvokeResponseStream'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_internals_v1_InternalInvokeResponseStream(buffer_arg) { - return dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponseStream.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// ServiceInvocation service is used to exchange the data between -// caller dapr runtime and callee dapr runtime. -// -// The request message includes caller's HTTP/gRPC request -// and deliver callee's response including status code. -// The response status of rpc methods represents of internal gRPC -// connection status, not callee's response status. -// -// Thus, ServiceInvocation gRPC response returns OK in most cases -// regardless of callee's response. -var ServiceInvocationService = exports.ServiceInvocationService = { - // Invokes a method of the specific actor. -callActor: { - path: '/dapr.proto.internals.v1.ServiceInvocation/CallActor', - requestStream: false, - responseStream: false, - requestType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, - responseType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse, - requestSerialize: serialize_dapr_proto_internals_v1_InternalInvokeRequest, - requestDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeRequest, - responseSerialize: serialize_dapr_proto_internals_v1_InternalInvokeResponse, - responseDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeResponse, - }, - // Invokes a method of the specific service. -callLocal: { - path: '/dapr.proto.internals.v1.ServiceInvocation/CallLocal', - requestStream: false, - responseStream: false, - requestType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, - responseType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse, - requestSerialize: serialize_dapr_proto_internals_v1_InternalInvokeRequest, - requestDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeRequest, - responseSerialize: serialize_dapr_proto_internals_v1_InternalInvokeResponse, - responseDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeResponse, - }, - // Invokes a method of the specific service using a stream of data. -// Although this uses a bi-directional stream, it behaves as a "simple RPC" in which the caller sends the full request (chunked in multiple messages in the stream), then reads the full response (chunked in the stream). -// Each message in the stream contains a `InternalInvokeRequestStream` (for caller) or `InternalInvokeResponseStream` (for callee): -// - The first message in the stream MUST contain a `request` (caller) or `response` (callee) message with all required properties present. -// - The first message in the stream MAY contain a `payload`, which is not required and may be empty. -// - Subsequent messages (any message except the first one in the stream) MUST contain a `payload` and MUST NOT contain any other property (like `request` or `response`). -// - Each message with a `payload` MUST contain a sequence number in `seq`, which is a counter that starts from 0 and MUST be incremented by 1 in each chunk. The `seq` counter MUST NOT be included if the message does not have a `payload`. -// - When the sender has completed sending the data, it MUST call `CloseSend` on the stream. -// The caller and callee must send at least one message in the stream. If only 1 message is sent in each direction, that message must contain both a `request`/`response` (the `payload` may be empty). -callLocalStream: { - path: '/dapr.proto.internals.v1.ServiceInvocation/CallLocalStream', - requestStream: true, - responseStream: true, - requestType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequestStream, - responseType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponseStream, - requestSerialize: serialize_dapr_proto_internals_v1_InternalInvokeRequestStream, - requestDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeRequestStream, - responseSerialize: serialize_dapr_proto_internals_v1_InternalInvokeResponseStream, - responseDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeResponseStream, - }, -}; - -exports.ServiceInvocationClient = grpc.makeGenericClientConstructor(ServiceInvocationService); diff --git a/src/proto/dapr/proto/internals/v1/service_invocation_pb.d.ts b/src/proto/dapr/proto/internals/v1/service_invocation_pb.d.ts deleted file mode 100644 index a20459c5..00000000 --- a/src/proto/dapr/proto/internals/v1/service_invocation_pb.d.ts +++ /dev/null @@ -1,189 +0,0 @@ -// package: dapr.proto.internals.v1 -// file: dapr/proto/internals/v1/service_invocation.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; -import * as dapr_proto_internals_v1_apiversion_pb from "../../../../dapr/proto/internals/v1/apiversion_pb"; -import * as dapr_proto_internals_v1_status_pb from "../../../../dapr/proto/internals/v1/status_pb"; - -export class Actor extends jspb.Message { - getActorType(): string; - setActorType(value: string): Actor; - getActorId(): string; - setActorId(value: string): Actor; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Actor.AsObject; - static toObject(includeInstance: boolean, msg: Actor): Actor.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Actor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Actor; - static deserializeBinaryFromReader(message: Actor, reader: jspb.BinaryReader): Actor; -} - -export namespace Actor { - export type AsObject = { - actorType: string, - actorId: string, - } -} - -export class InternalInvokeRequest extends jspb.Message { - getVer(): dapr_proto_internals_v1_apiversion_pb.APIVersion; - setVer(value: dapr_proto_internals_v1_apiversion_pb.APIVersion): InternalInvokeRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - hasMessage(): boolean; - clearMessage(): void; - getMessage(): dapr_proto_common_v1_common_pb.InvokeRequest | undefined; - setMessage(value?: dapr_proto_common_v1_common_pb.InvokeRequest): InternalInvokeRequest; - - hasActor(): boolean; - clearActor(): void; - getActor(): Actor | undefined; - setActor(value?: Actor): InternalInvokeRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InternalInvokeRequest.AsObject; - static toObject(includeInstance: boolean, msg: InternalInvokeRequest): InternalInvokeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InternalInvokeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InternalInvokeRequest; - static deserializeBinaryFromReader(message: InternalInvokeRequest, reader: jspb.BinaryReader): InternalInvokeRequest; -} - -export namespace InternalInvokeRequest { - export type AsObject = { - ver: dapr_proto_internals_v1_apiversion_pb.APIVersion, - - metadataMap: Array<[string, ListStringValue.AsObject]>, - message?: dapr_proto_common_v1_common_pb.InvokeRequest.AsObject, - actor?: Actor.AsObject, - } -} - -export class InternalInvokeResponse extends jspb.Message { - - hasStatus(): boolean; - clearStatus(): void; - getStatus(): dapr_proto_internals_v1_status_pb.Status | undefined; - setStatus(value?: dapr_proto_internals_v1_status_pb.Status): InternalInvokeResponse; - - getHeadersMap(): jspb.Map; - clearHeadersMap(): void; - - getTrailersMap(): jspb.Map; - clearTrailersMap(): void; - - hasMessage(): boolean; - clearMessage(): void; - getMessage(): dapr_proto_common_v1_common_pb.InvokeResponse | undefined; - setMessage(value?: dapr_proto_common_v1_common_pb.InvokeResponse): InternalInvokeResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InternalInvokeResponse.AsObject; - static toObject(includeInstance: boolean, msg: InternalInvokeResponse): InternalInvokeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InternalInvokeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InternalInvokeResponse; - static deserializeBinaryFromReader(message: InternalInvokeResponse, reader: jspb.BinaryReader): InternalInvokeResponse; -} - -export namespace InternalInvokeResponse { - export type AsObject = { - status?: dapr_proto_internals_v1_status_pb.Status.AsObject, - - headersMap: Array<[string, ListStringValue.AsObject]>, - - trailersMap: Array<[string, ListStringValue.AsObject]>, - message?: dapr_proto_common_v1_common_pb.InvokeResponse.AsObject, - } -} - -export class InternalInvokeRequestStream extends jspb.Message { - - hasRequest(): boolean; - clearRequest(): void; - getRequest(): InternalInvokeRequest | undefined; - setRequest(value?: InternalInvokeRequest): InternalInvokeRequestStream; - - hasPayload(): boolean; - clearPayload(): void; - getPayload(): dapr_proto_common_v1_common_pb.StreamPayload | undefined; - setPayload(value?: dapr_proto_common_v1_common_pb.StreamPayload): InternalInvokeRequestStream; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InternalInvokeRequestStream.AsObject; - static toObject(includeInstance: boolean, msg: InternalInvokeRequestStream): InternalInvokeRequestStream.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InternalInvokeRequestStream, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InternalInvokeRequestStream; - static deserializeBinaryFromReader(message: InternalInvokeRequestStream, reader: jspb.BinaryReader): InternalInvokeRequestStream; -} - -export namespace InternalInvokeRequestStream { - export type AsObject = { - request?: InternalInvokeRequest.AsObject, - payload?: dapr_proto_common_v1_common_pb.StreamPayload.AsObject, - } -} - -export class InternalInvokeResponseStream extends jspb.Message { - - hasResponse(): boolean; - clearResponse(): void; - getResponse(): InternalInvokeResponse | undefined; - setResponse(value?: InternalInvokeResponse): InternalInvokeResponseStream; - - hasPayload(): boolean; - clearPayload(): void; - getPayload(): dapr_proto_common_v1_common_pb.StreamPayload | undefined; - setPayload(value?: dapr_proto_common_v1_common_pb.StreamPayload): InternalInvokeResponseStream; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InternalInvokeResponseStream.AsObject; - static toObject(includeInstance: boolean, msg: InternalInvokeResponseStream): InternalInvokeResponseStream.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InternalInvokeResponseStream, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InternalInvokeResponseStream; - static deserializeBinaryFromReader(message: InternalInvokeResponseStream, reader: jspb.BinaryReader): InternalInvokeResponseStream; -} - -export namespace InternalInvokeResponseStream { - export type AsObject = { - response?: InternalInvokeResponse.AsObject, - payload?: dapr_proto_common_v1_common_pb.StreamPayload.AsObject, - } -} - -export class ListStringValue extends jspb.Message { - clearValuesList(): void; - getValuesList(): Array; - setValuesList(value: Array): ListStringValue; - addValues(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListStringValue.AsObject; - static toObject(includeInstance: boolean, msg: ListStringValue): ListStringValue.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListStringValue, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListStringValue; - static deserializeBinaryFromReader(message: ListStringValue, reader: jspb.BinaryReader): ListStringValue; -} - -export namespace ListStringValue { - export type AsObject = { - valuesList: Array, - } -} diff --git a/src/proto/dapr/proto/internals/v1/service_invocation_pb.js b/src/proto/dapr/proto/internals/v1/service_invocation_pb.js deleted file mode 100644 index 853ba867..00000000 --- a/src/proto/dapr/proto/internals/v1/service_invocation_pb.js +++ /dev/null @@ -1,1409 +0,0 @@ -// source: dapr/proto/internals/v1/service_invocation.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -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); -var dapr_proto_internals_v1_apiversion_pb = require('../../../../dapr/proto/internals/v1/apiversion_pb.js'); -goog.object.extend(proto, dapr_proto_internals_v1_apiversion_pb); -var dapr_proto_internals_v1_status_pb = require('../../../../dapr/proto/internals/v1/status_pb.js'); -goog.object.extend(proto, dapr_proto_internals_v1_status_pb); -goog.exportSymbol('proto.dapr.proto.internals.v1.Actor', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.InternalInvokeRequest', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.InternalInvokeRequestStream', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.InternalInvokeResponse', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.InternalInvokeResponseStream', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.ListStringValue', null, global); -/** - * 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.internals.v1.Actor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.Actor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.Actor.displayName = 'proto.dapr.proto.internals.v1.Actor'; -} -/** - * 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.internals.v1.InternalInvokeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.InternalInvokeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.InternalInvokeRequest.displayName = 'proto.dapr.proto.internals.v1.InternalInvokeRequest'; -} -/** - * 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.internals.v1.InternalInvokeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.InternalInvokeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.InternalInvokeResponse.displayName = 'proto.dapr.proto.internals.v1.InternalInvokeResponse'; -} -/** - * 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.internals.v1.InternalInvokeRequestStream = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.InternalInvokeRequestStream, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.InternalInvokeRequestStream.displayName = 'proto.dapr.proto.internals.v1.InternalInvokeRequestStream'; -} -/** - * 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.internals.v1.InternalInvokeResponseStream = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.InternalInvokeResponseStream, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.InternalInvokeResponseStream.displayName = 'proto.dapr.proto.internals.v1.InternalInvokeResponseStream'; -} -/** - * 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.internals.v1.ListStringValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.internals.v1.ListStringValue.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.ListStringValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.ListStringValue.displayName = 'proto.dapr.proto.internals.v1.ListStringValue'; -} - - - -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.internals.v1.Actor.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.Actor.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.internals.v1.Actor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.Actor.toObject = function(includeInstance, msg) { - var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - 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.internals.v1.Actor} - */ -proto.dapr.proto.internals.v1.Actor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.Actor; - return proto.dapr.proto.internals.v1.Actor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.Actor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.Actor} - */ -proto.dapr.proto.internals.v1.Actor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setActorType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setActorId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.Actor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.Actor.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.internals.v1.Actor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.Actor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getActorType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getActorId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string actor_type = 1; - * @return {string} - */ -proto.dapr.proto.internals.v1.Actor.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.Actor} returns this - */ -proto.dapr.proto.internals.v1.Actor.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string actor_id = 2; - * @return {string} - */ -proto.dapr.proto.internals.v1.Actor.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.Actor} returns this - */ -proto.dapr.proto.internals.v1.Actor.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, 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.internals.v1.InternalInvokeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.InternalInvokeRequest.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.internals.v1.InternalInvokeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - ver: jspb.Message.getFieldWithDefault(msg, 1, 0), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, proto.dapr.proto.internals.v1.ListStringValue.toObject) : [], - message: (f = msg.getMessage()) && dapr_proto_common_v1_common_pb.InvokeRequest.toObject(includeInstance, f), - actor: (f = msg.getActor()) && proto.dapr.proto.internals.v1.Actor.toObject(includeInstance, f) - }; - - 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.internals.v1.InternalInvokeRequest} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.InternalInvokeRequest; - return proto.dapr.proto.internals.v1.InternalInvokeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.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.internals.v1.APIVersion} */ (reader.readEnum()); - msg.setVer(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.readMessage, proto.dapr.proto.internals.v1.ListStringValue.deserializeBinaryFromReader, "", new proto.dapr.proto.internals.v1.ListStringValue()); - }); - break; - case 3: - var value = new dapr_proto_common_v1_common_pb.InvokeRequest; - reader.readMessage(value,dapr_proto_common_v1_common_pb.InvokeRequest.deserializeBinaryFromReader); - msg.setMessage(value); - break; - case 4: - var value = new proto.dapr.proto.internals.v1.Actor; - reader.readMessage(value,proto.dapr.proto.internals.v1.Actor.deserializeBinaryFromReader); - msg.setActor(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.InternalInvokeRequest.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.internals.v1.InternalInvokeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVer(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.internals.v1.ListStringValue.serializeBinaryToWriter); - } - f = message.getMessage(); - if (f != null) { - writer.writeMessage( - 3, - f, - dapr_proto_common_v1_common_pb.InvokeRequest.serializeBinaryToWriter - ); - } - f = message.getActor(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.dapr.proto.internals.v1.Actor.serializeBinaryToWriter - ); - } -}; - - -/** - * optional APIVersion ver = 1; - * @return {!proto.dapr.proto.internals.v1.APIVersion} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.getVer = function() { - return /** @type {!proto.dapr.proto.internals.v1.APIVersion} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.dapr.proto.internals.v1.APIVersion} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.setVer = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * map metadata = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - proto.dapr.proto.internals.v1.ListStringValue)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * optional dapr.proto.common.v1.InvokeRequest message = 3; - * @return {?proto.dapr.proto.common.v1.InvokeRequest} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.getMessage = function() { - return /** @type{?proto.dapr.proto.common.v1.InvokeRequest} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.InvokeRequest, 3)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.InvokeRequest|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.setMessage = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.clearMessage = function() { - return this.setMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.hasMessage = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Actor actor = 4; - * @return {?proto.dapr.proto.internals.v1.Actor} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.getActor = function() { - return /** @type{?proto.dapr.proto.internals.v1.Actor} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.internals.v1.Actor, 4)); -}; - - -/** - * @param {?proto.dapr.proto.internals.v1.Actor|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.setActor = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.clearActor = function() { - return this.setActor(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.hasActor = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -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.internals.v1.InternalInvokeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.InternalInvokeResponse.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.internals.v1.InternalInvokeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - status: (f = msg.getStatus()) && dapr_proto_internals_v1_status_pb.Status.toObject(includeInstance, f), - headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, proto.dapr.proto.internals.v1.ListStringValue.toObject) : [], - trailersMap: (f = msg.getTrailersMap()) ? f.toObject(includeInstance, proto.dapr.proto.internals.v1.ListStringValue.toObject) : [], - message: (f = msg.getMessage()) && dapr_proto_common_v1_common_pb.InvokeResponse.toObject(includeInstance, f) - }; - - 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.internals.v1.InternalInvokeResponse} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.InternalInvokeResponse; - return proto.dapr.proto.internals.v1.InternalInvokeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new dapr_proto_internals_v1_status_pb.Status; - reader.readMessage(value,dapr_proto_internals_v1_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 2: - var value = msg.getHeadersMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.internals.v1.ListStringValue.deserializeBinaryFromReader, "", new proto.dapr.proto.internals.v1.ListStringValue()); - }); - break; - case 3: - var value = msg.getTrailersMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.internals.v1.ListStringValue.deserializeBinaryFromReader, "", new proto.dapr.proto.internals.v1.ListStringValue()); - }); - break; - case 4: - var value = new dapr_proto_common_v1_common_pb.InvokeResponse; - reader.readMessage(value,dapr_proto_common_v1_common_pb.InvokeResponse.deserializeBinaryFromReader); - msg.setMessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.InternalInvokeResponse.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.internals.v1.InternalInvokeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 1, - f, - dapr_proto_internals_v1_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getHeadersMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.internals.v1.ListStringValue.serializeBinaryToWriter); - } - f = message.getTrailersMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.internals.v1.ListStringValue.serializeBinaryToWriter); - } - f = message.getMessage(); - if (f != null) { - writer.writeMessage( - 4, - f, - dapr_proto_common_v1_common_pb.InvokeResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Status status = 1; - * @return {?proto.dapr.proto.internals.v1.Status} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getStatus = function() { - return /** @type{?proto.dapr.proto.internals.v1.Status} */ ( - jspb.Message.getWrapperField(this, dapr_proto_internals_v1_status_pb.Status, 1)); -}; - - -/** - * @param {?proto.dapr.proto.internals.v1.Status|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * map headers = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getHeadersMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - proto.dapr.proto.internals.v1.ListStringValue)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearHeadersMap = function() { - this.getHeadersMap().clear(); - return this;}; - - -/** - * map trailers = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getTrailersMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - proto.dapr.proto.internals.v1.ListStringValue)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearTrailersMap = function() { - this.getTrailersMap().clear(); - return this;}; - - -/** - * optional dapr.proto.common.v1.InvokeResponse message = 4; - * @return {?proto.dapr.proto.common.v1.InvokeResponse} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getMessage = function() { - return /** @type{?proto.dapr.proto.common.v1.InvokeResponse} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.InvokeResponse, 4)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.InvokeResponse|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.setMessage = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearMessage = function() { - return this.setMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.hasMessage = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -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.internals.v1.InternalInvokeRequestStream.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.InternalInvokeRequestStream.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.internals.v1.InternalInvokeRequestStream} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && proto.dapr.proto.internals.v1.InternalInvokeRequest.toObject(includeInstance, f), - payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) - }; - - 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.internals.v1.InternalInvokeRequestStream} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.InternalInvokeRequestStream; - return proto.dapr.proto.internals.v1.InternalInvokeRequestStream.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.dapr.proto.internals.v1.InternalInvokeRequest; - reader.readMessage(value,proto.dapr.proto.internals.v1.InternalInvokeRequest.deserializeBinaryFromReader); - msg.setRequest(value); - break; - case 2: - var value = new dapr_proto_common_v1_common_pb.StreamPayload; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); - msg.setPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.InternalInvokeRequestStream.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.internals.v1.InternalInvokeRequestStream} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.internals.v1.InternalInvokeRequest.serializeBinaryToWriter - ); - } - f = message.getPayload(); - if (f != null) { - writer.writeMessage( - 2, - f, - dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional InternalInvokeRequest request = 1; - * @return {?proto.dapr.proto.internals.v1.InternalInvokeRequest} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.getRequest = function() { - return /** @type{?proto.dapr.proto.internals.v1.InternalInvokeRequest} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.internals.v1.InternalInvokeRequest, 1)); -}; - - -/** - * @param {?proto.dapr.proto.internals.v1.InternalInvokeRequest|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.hasRequest = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional dapr.proto.common.v1.StreamPayload payload = 2; - * @return {?proto.dapr.proto.common.v1.StreamPayload} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.getPayload = function() { - return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 2)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.setPayload = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.clearPayload = function() { - return this.setPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.hasPayload = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -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.internals.v1.InternalInvokeResponseStream.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.InternalInvokeResponseStream.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.internals.v1.InternalInvokeResponseStream} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && proto.dapr.proto.internals.v1.InternalInvokeResponse.toObject(includeInstance, f), - payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) - }; - - 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.internals.v1.InternalInvokeResponseStream} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.InternalInvokeResponseStream; - return proto.dapr.proto.internals.v1.InternalInvokeResponseStream.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.dapr.proto.internals.v1.InternalInvokeResponse; - reader.readMessage(value,proto.dapr.proto.internals.v1.InternalInvokeResponse.deserializeBinaryFromReader); - msg.setResponse(value); - break; - case 2: - var value = new dapr_proto_common_v1_common_pb.StreamPayload; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); - msg.setPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.InternalInvokeResponseStream.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.internals.v1.InternalInvokeResponseStream} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.internals.v1.InternalInvokeResponse.serializeBinaryToWriter - ); - } - f = message.getPayload(); - if (f != null) { - writer.writeMessage( - 2, - f, - dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional InternalInvokeResponse response = 1; - * @return {?proto.dapr.proto.internals.v1.InternalInvokeResponse} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.getResponse = function() { - return /** @type{?proto.dapr.proto.internals.v1.InternalInvokeResponse} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.internals.v1.InternalInvokeResponse, 1)); -}; - - -/** - * @param {?proto.dapr.proto.internals.v1.InternalInvokeResponse|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.hasResponse = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional dapr.proto.common.v1.StreamPayload payload = 2; - * @return {?proto.dapr.proto.common.v1.StreamPayload} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.getPayload = function() { - return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 2)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.setPayload = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.clearPayload = function() { - return this.setPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.hasPayload = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.internals.v1.ListStringValue.repeatedFields_ = [1]; - - - -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.internals.v1.ListStringValue.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.ListStringValue.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.internals.v1.ListStringValue} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.ListStringValue.toObject = function(includeInstance, msg) { - var f, obj = { - valuesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; - - 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.internals.v1.ListStringValue} - */ -proto.dapr.proto.internals.v1.ListStringValue.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.ListStringValue; - return proto.dapr.proto.internals.v1.ListStringValue.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.ListStringValue} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.ListStringValue} - */ -proto.dapr.proto.internals.v1.ListStringValue.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addValues(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.ListStringValue.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.ListStringValue.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.internals.v1.ListStringValue} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.ListStringValue.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValuesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string values = 1; - * @return {!Array} - */ -proto.dapr.proto.internals.v1.ListStringValue.prototype.getValuesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.internals.v1.ListStringValue} returns this - */ -proto.dapr.proto.internals.v1.ListStringValue.prototype.setValuesList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.internals.v1.ListStringValue} returns this - */ -proto.dapr.proto.internals.v1.ListStringValue.prototype.addValues = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.internals.v1.ListStringValue} returns this - */ -proto.dapr.proto.internals.v1.ListStringValue.prototype.clearValuesList = function() { - return this.setValuesList([]); -}; - - -goog.object.extend(exports, proto.dapr.proto.internals.v1); diff --git a/src/proto/dapr/proto/internals/v1/status_pb.js b/src/proto/dapr/proto/internals/v1/status_pb.js index e82bc6b0..bb945491 100644 --- a/src/proto/dapr/proto/internals/v1/status_pb.js +++ b/src/proto/dapr/proto/internals/v1/status_pb.js @@ -13,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); +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 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 ef740eb6..4046627f 100644 --- a/src/proto/dapr/proto/operator/v1/operator.proto +++ b/src/proto/dapr/proto/operator/v1/operator.proto @@ -34,6 +34,8 @@ service Operator { rpc ListResiliency (ListResiliencyRequest) returns (ListResiliencyResponse) {} // Returns a list of pub/sub subscriptions, ListSubscriptionsRequest to expose pod info rpc ListSubscriptionsV2 (ListSubscriptionsRequest) returns (ListSubscriptionsResponse) {} + // Sends events to Dapr sidecars upon subscription changes. + rpc SubscriptionUpdate (SubscriptionUpdateRequest) returns (stream SubscriptionUpdateEvent) {} // Returns a list of http endpoints rpc ListHTTPEndpoints (ListHTTPEndpointsRequest) returns (ListHTTPEndpointsResponse) {} // Sends events to Dapr sidecars upon http endpoint changes. @@ -97,6 +99,21 @@ message ListSubscriptionsResponse { repeated bytes subscriptions = 1; } +// SubscriptionUpdateRequest is the request to get updates about new +// subscriptions for a given namespace. +message SubscriptionUpdateRequest { + string namespace = 1; + string podName = 2; +} + +// SubscriptionUpdateEvent includes the updated subscription event. +message SubscriptionUpdateEvent { + bytes subscription = 1; + + // type is the type of event. + ResourceEventType type = 2; +} + // GetResiliencyRequest is the request to get a resiliency configuration. message GetResiliencyRequest { string name = 1; diff --git a/src/proto/dapr/proto/operator/v1/operator_grpc_pb.d.ts b/src/proto/dapr/proto/operator/v1/operator_grpc_pb.d.ts index cb77e64c..bfaff618 100644 --- a/src/proto/dapr/proto/operator/v1/operator_grpc_pb.d.ts +++ b/src/proto/dapr/proto/operator/v1/operator_grpc_pb.d.ts @@ -16,6 +16,7 @@ interface IOperatorService extends grpc.ServiceDefinition; responseDeserialize: grpc.deserialize; } +interface IOperatorService_ISubscriptionUpdate extends grpc.MethodDefinition { + path: "/dapr.proto.operator.v1.Operator/SubscriptionUpdate"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IOperatorService_IListHTTPEndpoints extends grpc.MethodDefinition { path: "/dapr.proto.operator.v1.Operator/ListHTTPEndpoints"; requestStream: false; @@ -112,6 +122,7 @@ export interface IOperatorServer extends grpc.UntypedServiceImplementation { getResiliency: grpc.handleUnaryCall; listResiliency: grpc.handleUnaryCall; listSubscriptionsV2: grpc.handleUnaryCall; + subscriptionUpdate: grpc.handleServerStreamingCall; listHTTPEndpoints: grpc.handleUnaryCall; hTTPEndpointUpdate: grpc.handleServerStreamingCall; } @@ -137,6 +148,8 @@ export interface IOperatorClient { listSubscriptionsV2(request: dapr_proto_operator_v1_operator_pb.ListSubscriptionsRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; listSubscriptionsV2(request: dapr_proto_operator_v1_operator_pb.ListSubscriptionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; listSubscriptionsV2(request: dapr_proto_operator_v1_operator_pb.ListSubscriptionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; + subscriptionUpdate(request: dapr_proto_operator_v1_operator_pb.SubscriptionUpdateRequest, options?: Partial): grpc.ClientReadableStream; + subscriptionUpdate(request: dapr_proto_operator_v1_operator_pb.SubscriptionUpdateRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; listHTTPEndpoints(request: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsResponse) => void): grpc.ClientUnaryCall; listHTTPEndpoints(request: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsResponse) => void): grpc.ClientUnaryCall; listHTTPEndpoints(request: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsResponse) => void): grpc.ClientUnaryCall; @@ -166,6 +179,8 @@ export class OperatorClient extends grpc.Client implements IOperatorClient { public listSubscriptionsV2(request: dapr_proto_operator_v1_operator_pb.ListSubscriptionsRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; public listSubscriptionsV2(request: dapr_proto_operator_v1_operator_pb.ListSubscriptionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; public listSubscriptionsV2(request: dapr_proto_operator_v1_operator_pb.ListSubscriptionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; + public subscriptionUpdate(request: dapr_proto_operator_v1_operator_pb.SubscriptionUpdateRequest, options?: Partial): grpc.ClientReadableStream; + public subscriptionUpdate(request: dapr_proto_operator_v1_operator_pb.SubscriptionUpdateRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; public listHTTPEndpoints(request: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsResponse) => void): grpc.ClientUnaryCall; public listHTTPEndpoints(request: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsResponse) => void): grpc.ClientUnaryCall; public listHTTPEndpoints(request: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsResponse) => void): grpc.ClientUnaryCall; diff --git a/src/proto/dapr/proto/operator/v1/operator_grpc_pb.js b/src/proto/dapr/proto/operator/v1/operator_grpc_pb.js index cd8e8a32..f3ceca92 100644 --- a/src/proto/dapr/proto/operator/v1/operator_grpc_pb.js +++ b/src/proto/dapr/proto/operator/v1/operator_grpc_pb.js @@ -194,6 +194,28 @@ function deserialize_dapr_proto_operator_v1_ListSubscriptionsResponse(buffer_arg return dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_dapr_proto_operator_v1_SubscriptionUpdateEvent(arg) { + if (!(arg instanceof dapr_proto_operator_v1_operator_pb.SubscriptionUpdateEvent)) { + throw new Error('Expected argument of type dapr.proto.operator.v1.SubscriptionUpdateEvent'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_operator_v1_SubscriptionUpdateEvent(buffer_arg) { + return dapr_proto_operator_v1_operator_pb.SubscriptionUpdateEvent.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_dapr_proto_operator_v1_SubscriptionUpdateRequest(arg) { + if (!(arg instanceof dapr_proto_operator_v1_operator_pb.SubscriptionUpdateRequest)) { + throw new Error('Expected argument of type dapr.proto.operator.v1.SubscriptionUpdateRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_operator_v1_SubscriptionUpdateRequest(buffer_arg) { + return dapr_proto_operator_v1_operator_pb.SubscriptionUpdateRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_google_protobuf_Empty(arg) { if (!(arg instanceof google_protobuf_empty_pb.Empty)) { throw new Error('Expected argument of type google.protobuf.Empty'); @@ -291,6 +313,18 @@ listSubscriptionsV2: { responseSerialize: serialize_dapr_proto_operator_v1_ListSubscriptionsResponse, responseDeserialize: deserialize_dapr_proto_operator_v1_ListSubscriptionsResponse, }, + // Sends events to Dapr sidecars upon subscription changes. +subscriptionUpdate: { + path: '/dapr.proto.operator.v1.Operator/SubscriptionUpdate', + requestStream: false, + responseStream: true, + requestType: dapr_proto_operator_v1_operator_pb.SubscriptionUpdateRequest, + responseType: dapr_proto_operator_v1_operator_pb.SubscriptionUpdateEvent, + requestSerialize: serialize_dapr_proto_operator_v1_SubscriptionUpdateRequest, + requestDeserialize: deserialize_dapr_proto_operator_v1_SubscriptionUpdateRequest, + responseSerialize: serialize_dapr_proto_operator_v1_SubscriptionUpdateEvent, + responseDeserialize: deserialize_dapr_proto_operator_v1_SubscriptionUpdateEvent, + }, // Returns a list of http endpoints listHTTPEndpoints: { path: '/dapr.proto.operator.v1.Operator/ListHTTPEndpoints', 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 8e848d1d..6ba87107 100644 --- a/src/proto/dapr/proto/operator/v1/operator_pb.d.ts +++ b/src/proto/dapr/proto/operator/v1/operator_pb.d.ts @@ -174,6 +174,54 @@ export namespace ListSubscriptionsResponse { } } +export class SubscriptionUpdateRequest extends jspb.Message { + getNamespace(): string; + setNamespace(value: string): SubscriptionUpdateRequest; + getPodname(): string; + setPodname(value: string): SubscriptionUpdateRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubscriptionUpdateRequest.AsObject; + static toObject(includeInstance: boolean, msg: SubscriptionUpdateRequest): SubscriptionUpdateRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubscriptionUpdateRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubscriptionUpdateRequest; + static deserializeBinaryFromReader(message: SubscriptionUpdateRequest, reader: jspb.BinaryReader): SubscriptionUpdateRequest; +} + +export namespace SubscriptionUpdateRequest { + export type AsObject = { + namespace: string, + podname: string, + } +} + +export class SubscriptionUpdateEvent extends jspb.Message { + getSubscription(): Uint8Array | string; + getSubscription_asU8(): Uint8Array; + getSubscription_asB64(): string; + setSubscription(value: Uint8Array | string): SubscriptionUpdateEvent; + getType(): ResourceEventType; + setType(value: ResourceEventType): SubscriptionUpdateEvent; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubscriptionUpdateEvent.AsObject; + static toObject(includeInstance: boolean, msg: SubscriptionUpdateEvent): SubscriptionUpdateEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubscriptionUpdateEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubscriptionUpdateEvent; + static deserializeBinaryFromReader(message: SubscriptionUpdateEvent, reader: jspb.BinaryReader): SubscriptionUpdateEvent; +} + +export namespace SubscriptionUpdateEvent { + export type AsObject = { + subscription: Uint8Array | string, + type: ResourceEventType, + } +} + export class GetResiliencyRequest extends jspb.Message { getName(): string; setName(value: string): GetResiliencyRequest; diff --git a/src/proto/dapr/proto/operator/v1/operator_pb.js b/src/proto/dapr/proto/operator/v1/operator_pb.js index 1d4d0b1b..d983c9c3 100644 --- a/src/proto/dapr/proto/operator/v1/operator_pb.js +++ b/src/proto/dapr/proto/operator/v1/operator_pb.js @@ -13,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); +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 google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); goog.object.extend(proto, google_protobuf_empty_pb); @@ -36,6 +42,8 @@ goog.exportSymbol('proto.dapr.proto.operator.v1.ListResiliencyResponse', null, g 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); +goog.exportSymbol('proto.dapr.proto.operator.v1.SubscriptionUpdateEvent', null, global); +goog.exportSymbol('proto.dapr.proto.operator.v1.SubscriptionUpdateRequest', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -183,6 +191,48 @@ if (goog.DEBUG && !COMPILED) { */ proto.dapr.proto.operator.v1.ListSubscriptionsResponse.displayName = 'proto.dapr.proto.operator.v1.ListSubscriptionsResponse'; } +/** + * 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.operator.v1.SubscriptionUpdateRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.operator.v1.SubscriptionUpdateRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.displayName = 'proto.dapr.proto.operator.v1.SubscriptionUpdateRequest'; +} +/** + * 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.operator.v1.SubscriptionUpdateEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.operator.v1.SubscriptionUpdateEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.displayName = 'proto.dapr.proto.operator.v1.SubscriptionUpdateEvent'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1625,6 +1675,350 @@ proto.dapr.proto.operator.v1.ListSubscriptionsResponse.prototype.clearSubscripti +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.operator.v1.SubscriptionUpdateRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.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.operator.v1.SubscriptionUpdateRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.toObject = function(includeInstance, msg) { + var f, obj = { + namespace: jspb.Message.getFieldWithDefault(msg, 1, ""), + podname: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + 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.operator.v1.SubscriptionUpdateRequest} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.operator.v1.SubscriptionUpdateRequest; + return proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.dapr.proto.operator.v1.SubscriptionUpdateRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.operator.v1.SubscriptionUpdateRequest} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setNamespace(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPodname(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.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.operator.v1.SubscriptionUpdateRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNamespace(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPodname(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string namespace = 1; + * @return {string} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.prototype.getNamespace = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.operator.v1.SubscriptionUpdateRequest} returns this + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.prototype.setNamespace = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string podName = 2; + * @return {string} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.prototype.getPodname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.operator.v1.SubscriptionUpdateRequest} returns this + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateRequest.prototype.setPodname = function(value) { + return jspb.Message.setProto3StringField(this, 2, 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.operator.v1.SubscriptionUpdateEvent.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.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.operator.v1.SubscriptionUpdateEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.toObject = function(includeInstance, msg) { + var f, obj = { + subscription: msg.getSubscription_asB64(), + type: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + 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.operator.v1.SubscriptionUpdateEvent} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.operator.v1.SubscriptionUpdateEvent; + return proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.dapr.proto.operator.v1.SubscriptionUpdateEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.operator.v1.SubscriptionUpdateEvent} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.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.setSubscription(value); + break; + case 2: + var value = /** @type {!proto.dapr.proto.operator.v1.ResourceEventType} */ (reader.readEnum()); + msg.setType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.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.operator.v1.SubscriptionUpdateEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSubscription_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional bytes subscription = 1; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.prototype.getSubscription = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes subscription = 1; + * This is a type-conversion wrapper around `getSubscription()` + * @return {string} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.prototype.getSubscription_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSubscription())); +}; + + +/** + * optional bytes subscription = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSubscription()` + * @return {!Uint8Array} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.prototype.getSubscription_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSubscription())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.operator.v1.SubscriptionUpdateEvent} returns this + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.prototype.setSubscription = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * optional ResourceEventType type = 2; + * @return {!proto.dapr.proto.operator.v1.ResourceEventType} + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.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.SubscriptionUpdateEvent} returns this + */ +proto.dapr.proto.operator.v1.SubscriptionUpdateEvent.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. diff --git a/src/proto/dapr/proto/placement/v1/placement.proto b/src/proto/dapr/proto/placement/v1/placement.proto index 4334ee44..605d92bb 100644 --- a/src/proto/dapr/proto/placement/v1/placement.proto +++ b/src/proto/dapr/proto/placement/v1/placement.proto @@ -52,4 +52,5 @@ message Host { string pod = 6; // Version of the Actor APIs supported by the Dapr runtime uint32 api_level = 7; + string namespace = 8; } 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 76d76bc3..b3db081e 100644 --- a/src/proto/dapr/proto/placement/v1/placement_pb.d.ts +++ b/src/proto/dapr/proto/placement/v1/placement_pb.d.ts @@ -115,6 +115,8 @@ export class Host extends jspb.Message { setPod(value: string): Host; getApiLevel(): number; setApiLevel(value: number): Host; + getNamespace(): string; + setNamespace(value: string): Host; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Host.AsObject; @@ -135,5 +137,6 @@ export namespace Host { id: string, pod: string, apiLevel: number, + namespace: string, } } diff --git a/src/proto/dapr/proto/placement/v1/placement_pb.js b/src/proto/dapr/proto/placement/v1/placement_pb.js index aa7663cd..f234416f 100644 --- a/src/proto/dapr/proto/placement/v1/placement_pb.js +++ b/src/proto/dapr/proto/placement/v1/placement_pb.js @@ -13,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); +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')(); goog.exportSymbol('proto.dapr.proto.placement.v1.Host', null, global); goog.exportSymbol('proto.dapr.proto.placement.v1.PlacementOrder', null, global); @@ -450,7 +456,8 @@ 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; +}; /** @@ -681,7 +688,8 @@ 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; +}; /** @@ -740,7 +748,8 @@ 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; +}; /** @@ -806,7 +815,8 @@ proto.dapr.proto.placement.v1.Host.toObject = function(includeInstance, msg) { entitiesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, id: jspb.Message.getFieldWithDefault(msg, 5, ""), pod: jspb.Message.getFieldWithDefault(msg, 6, ""), - apiLevel: jspb.Message.getFieldWithDefault(msg, 7, 0) + apiLevel: jspb.Message.getFieldWithDefault(msg, 7, 0), + namespace: jspb.Message.getFieldWithDefault(msg, 8, "") }; if (includeInstance) { @@ -871,6 +881,10 @@ proto.dapr.proto.placement.v1.Host.deserializeBinaryFromReader = function(msg, r var value = /** @type {number} */ (reader.readUint32()); msg.setApiLevel(value); break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setNamespace(value); + break; default: reader.skipField(); break; @@ -949,6 +963,13 @@ proto.dapr.proto.placement.v1.Host.serializeBinaryToWriter = function(message, w f ); } + f = message.getNamespace(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } }; @@ -1097,4 +1118,22 @@ proto.dapr.proto.placement.v1.Host.prototype.setApiLevel = function(value) { }; +/** + * optional string namespace = 8; + * @return {string} + */ +proto.dapr.proto.placement.v1.Host.prototype.getNamespace = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.placement.v1.Host} returns this + */ +proto.dapr.proto.placement.v1.Host.prototype.setNamespace = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + goog.object.extend(exports, proto.dapr.proto.placement.v1); diff --git a/src/proto/dapr/proto/runtime/v1/appcallback.proto b/src/proto/dapr/proto/runtime/v1/appcallback.proto index 823c0aae..3e98b536 100644 --- a/src/proto/dapr/proto/runtime/v1/appcallback.proto +++ b/src/proto/dapr/proto/runtime/v1/appcallback.proto @@ -15,6 +15,7 @@ syntax = "proto3"; package dapr.proto.runtime.v1; +import "google/protobuf/any.proto"; import "google/protobuf/empty.proto"; import "dapr/proto/common/v1/common.proto"; import "google/protobuf/struct.proto"; @@ -59,8 +60,37 @@ service AppCallbackHealthCheck { service AppCallbackAlpha { // Subscribes bulk events from Pubsub rpc OnBulkTopicEventAlpha1(TopicEventBulkRequest) returns (TopicEventBulkResponse) {} + + // Sends job back to the app's endpoint at trigger time. + rpc OnJobEventAlpha1 (JobEventRequest) returns (JobEventResponse); +} + +message JobEventRequest { + // Job name. + string name = 1; + + // Job data to be sent back to app. + google.protobuf.Any data = 2; + + // Required. method is a method name which will be invoked by caller. + string method = 3; + + // The type of data content. + // + // This field is required if data delivers http request body + // Otherwise, this is optional. + string content_type = 4; + + // HTTP specific fields if request conveys http-compatible request. + // + // This field is required for http-compatible request. Otherwise, + // this field is optional. + common.v1.HTTPExtension http_extension = 5; } +// JobEventResponse is the response from the app when a job is triggered. +message JobEventResponse {} + // TopicEventRequest message is compatible with CloudEvent spec v1.0 // https://github.com/cloudevents/spec/blob/v1.0/spec.md message TopicEventRequest { diff --git a/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.d.ts b/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.d.ts index 42c90f93..b2a88812 100644 --- a/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.d.ts +++ b/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.d.ts @@ -6,6 +6,7 @@ import * as grpc from "@grpc/grpc-js"; import * as dapr_proto_runtime_v1_appcallback_pb from "../../../../dapr/proto/runtime/v1/appcallback_pb"; +import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; @@ -146,6 +147,7 @@ export class AppCallbackHealthCheckClient extends grpc.Client implements IAppCal interface IAppCallbackAlphaService extends grpc.ServiceDefinition { onBulkTopicEventAlpha1: IAppCallbackAlphaService_IOnBulkTopicEventAlpha1; + onJobEventAlpha1: IAppCallbackAlphaService_IOnJobEventAlpha1; } interface IAppCallbackAlphaService_IOnBulkTopicEventAlpha1 extends grpc.MethodDefinition { @@ -157,17 +159,30 @@ interface IAppCallbackAlphaService_IOnBulkTopicEventAlpha1 extends grpc.MethodDe responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } +interface IAppCallbackAlphaService_IOnJobEventAlpha1 extends grpc.MethodDefinition { + path: "/dapr.proto.runtime.v1.AppCallbackAlpha/OnJobEventAlpha1"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} export const AppCallbackAlphaService: IAppCallbackAlphaService; export interface IAppCallbackAlphaServer extends grpc.UntypedServiceImplementation { onBulkTopicEventAlpha1: grpc.handleUnaryCall; + onJobEventAlpha1: grpc.handleUnaryCall; } export interface IAppCallbackAlphaClient { onBulkTopicEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkResponse) => void): grpc.ClientUnaryCall; onBulkTopicEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkResponse) => void): grpc.ClientUnaryCall; onBulkTopicEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkResponse) => void): grpc.ClientUnaryCall; + onJobEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.JobEventRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.JobEventResponse) => void): grpc.ClientUnaryCall; + onJobEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.JobEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.JobEventResponse) => void): grpc.ClientUnaryCall; + onJobEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.JobEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.JobEventResponse) => void): grpc.ClientUnaryCall; } export class AppCallbackAlphaClient extends grpc.Client implements IAppCallbackAlphaClient { @@ -175,4 +190,7 @@ export class AppCallbackAlphaClient extends grpc.Client implements IAppCallbackA public onBulkTopicEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkResponse) => void): grpc.ClientUnaryCall; public onBulkTopicEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkResponse) => void): grpc.ClientUnaryCall; public onBulkTopicEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkResponse) => void): grpc.ClientUnaryCall; + public onJobEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.JobEventRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.JobEventResponse) => void): grpc.ClientUnaryCall; + public onJobEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.JobEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.JobEventResponse) => void): grpc.ClientUnaryCall; + public onJobEventAlpha1(request: dapr_proto_runtime_v1_appcallback_pb.JobEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.JobEventResponse) => void): grpc.ClientUnaryCall; } diff --git a/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.js index c7b50f17..4b5633c5 100644 --- a/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.js +++ b/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.js @@ -16,6 +16,7 @@ 'use strict'; var grpc = require('@grpc/grpc-js'); var dapr_proto_runtime_v1_appcallback_pb = require('../../../../dapr/proto/runtime/v1/appcallback_pb.js'); +var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); @@ -75,6 +76,28 @@ function deserialize_dapr_proto_runtime_v1_HealthCheckResponse(buffer_arg) { return dapr_proto_runtime_v1_appcallback_pb.HealthCheckResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_dapr_proto_runtime_v1_JobEventRequest(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_appcallback_pb.JobEventRequest)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.JobEventRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_JobEventRequest(buffer_arg) { + return dapr_proto_runtime_v1_appcallback_pb.JobEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_dapr_proto_runtime_v1_JobEventResponse(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_appcallback_pb.JobEventResponse)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.JobEventResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_JobEventResponse(buffer_arg) { + return dapr_proto_runtime_v1_appcallback_pb.JobEventResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_dapr_proto_runtime_v1_ListInputBindingsResponse(arg) { if (!(arg instanceof dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse)) { throw new Error('Expected argument of type dapr.proto.runtime.v1.ListInputBindingsResponse'); @@ -256,6 +279,18 @@ onBulkTopicEventAlpha1: { responseSerialize: serialize_dapr_proto_runtime_v1_TopicEventBulkResponse, responseDeserialize: deserialize_dapr_proto_runtime_v1_TopicEventBulkResponse, }, + // Sends job back to the app's endpoint at trigger time. +onJobEventAlpha1: { + path: '/dapr.proto.runtime.v1.AppCallbackAlpha/OnJobEventAlpha1', + requestStream: false, + responseStream: false, + requestType: dapr_proto_runtime_v1_appcallback_pb.JobEventRequest, + responseType: dapr_proto_runtime_v1_appcallback_pb.JobEventResponse, + requestSerialize: serialize_dapr_proto_runtime_v1_JobEventRequest, + requestDeserialize: deserialize_dapr_proto_runtime_v1_JobEventRequest, + responseSerialize: serialize_dapr_proto_runtime_v1_JobEventResponse, + responseDeserialize: deserialize_dapr_proto_runtime_v1_JobEventResponse, + }, }; exports.AppCallbackAlphaClient = grpc.makeGenericClientConstructor(AppCallbackAlphaService); diff --git a/src/proto/dapr/proto/runtime/v1/appcallback_pb.d.ts b/src/proto/dapr/proto/runtime/v1/appcallback_pb.d.ts index 40d12f0c..bf3d0bc7 100644 --- a/src/proto/dapr/proto/runtime/v1/appcallback_pb.d.ts +++ b/src/proto/dapr/proto/runtime/v1/appcallback_pb.d.ts @@ -5,10 +5,66 @@ /* eslint-disable */ import * as jspb from "google-protobuf"; +import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; +export class JobEventRequest extends jspb.Message { + getName(): string; + setName(value: string): JobEventRequest; + + hasData(): boolean; + clearData(): void; + getData(): google_protobuf_any_pb.Any | undefined; + setData(value?: google_protobuf_any_pb.Any): JobEventRequest; + getMethod(): string; + setMethod(value: string): JobEventRequest; + getContentType(): string; + setContentType(value: string): JobEventRequest; + + hasHttpExtension(): boolean; + clearHttpExtension(): void; + getHttpExtension(): dapr_proto_common_v1_common_pb.HTTPExtension | undefined; + setHttpExtension(value?: dapr_proto_common_v1_common_pb.HTTPExtension): JobEventRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): JobEventRequest.AsObject; + static toObject(includeInstance: boolean, msg: JobEventRequest): JobEventRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: JobEventRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): JobEventRequest; + static deserializeBinaryFromReader(message: JobEventRequest, reader: jspb.BinaryReader): JobEventRequest; +} + +export namespace JobEventRequest { + export type AsObject = { + name: string, + data?: google_protobuf_any_pb.Any.AsObject, + method: string, + contentType: string, + httpExtension?: dapr_proto_common_v1_common_pb.HTTPExtension.AsObject, + } +} + +export class JobEventResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): JobEventResponse.AsObject; + static toObject(includeInstance: boolean, msg: JobEventResponse): JobEventResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: JobEventResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): JobEventResponse; + static deserializeBinaryFromReader(message: JobEventResponse, reader: jspb.BinaryReader): JobEventResponse; +} + +export namespace JobEventResponse { + export type AsObject = { + } +} + export class TopicEventRequest extends jspb.Message { getId(): string; setId(value: string): TopicEventRequest; diff --git a/src/proto/dapr/proto/runtime/v1/appcallback_pb.js b/src/proto/dapr/proto/runtime/v1/appcallback_pb.js index 916bed5d..b14643a5 100644 --- a/src/proto/dapr/proto/runtime/v1/appcallback_pb.js +++ b/src/proto/dapr/proto/runtime/v1/appcallback_pb.js @@ -13,8 +13,16 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); - +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 google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); +goog.object.extend(proto, google_protobuf_any_pb); var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); goog.object.extend(proto, google_protobuf_empty_pb); var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); @@ -26,6 +34,8 @@ goog.exportSymbol('proto.dapr.proto.runtime.v1.BindingEventResponse', null, glob goog.exportSymbol('proto.dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.BulkSubscribeConfig', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.HealthCheckResponse', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.JobEventRequest', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.JobEventResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.ListInputBindingsResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventBulkRequest', null, global); @@ -40,6 +50,48 @@ goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResp goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicRoutes', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicRule', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicSubscription', null, global); +/** + * 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.JobEventRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.JobEventRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.JobEventRequest.displayName = 'proto.dapr.proto.runtime.v1.JobEventRequest'; +} +/** + * 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.JobEventResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.JobEventResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.JobEventResponse.displayName = 'proto.dapr.proto.runtime.v1.JobEventResponse'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -379,6 +431,399 @@ if (goog.DEBUG && !COMPILED) { +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.JobEventRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.JobEventRequest.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.JobEventRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.JobEventRequest.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), + method: jspb.Message.getFieldWithDefault(msg, 3, ""), + contentType: jspb.Message.getFieldWithDefault(msg, 4, ""), + httpExtension: (f = msg.getHttpExtension()) && dapr_proto_common_v1_common_pb.HTTPExtension.toObject(includeInstance, f) + }; + + 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.JobEventRequest} + */ +proto.dapr.proto.runtime.v1.JobEventRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.JobEventRequest; + return proto.dapr.proto.runtime.v1.JobEventRequest.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.JobEventRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.JobEventRequest} + */ +proto.dapr.proto.runtime.v1.JobEventRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = new google_protobuf_any_pb.Any; + reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); + msg.setData(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMethod(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setContentType(value); + break; + case 5: + var value = new dapr_proto_common_v1_common_pb.HTTPExtension; + reader.readMessage(value,dapr_proto_common_v1_common_pb.HTTPExtension.deserializeBinaryFromReader); + msg.setHttpExtension(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.JobEventRequest.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.JobEventRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.JobEventRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_any_pb.Any.serializeBinaryToWriter + ); + } + f = message.getMethod(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getContentType(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getHttpExtension(); + if (f != null) { + writer.writeMessage( + 5, + f, + dapr_proto_common_v1_common_pb.HTTPExtension.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.JobEventRequest} returns this + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional google.protobuf.Any data = 2; + * @return {?proto.google.protobuf.Any} + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.getData = function() { + return /** @type{?proto.google.protobuf.Any} */ ( + jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Any|undefined} value + * @return {!proto.dapr.proto.runtime.v1.JobEventRequest} returns this +*/ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.JobEventRequest} returns this + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.hasData = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string method = 3; + * @return {string} + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.getMethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.JobEventRequest} returns this + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.setMethod = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string content_type = 4; + * @return {string} + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.getContentType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.JobEventRequest} returns this + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.setContentType = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional dapr.proto.common.v1.HTTPExtension http_extension = 5; + * @return {?proto.dapr.proto.common.v1.HTTPExtension} + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.getHttpExtension = function() { + return /** @type{?proto.dapr.proto.common.v1.HTTPExtension} */ ( + jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.HTTPExtension, 5)); +}; + + +/** + * @param {?proto.dapr.proto.common.v1.HTTPExtension|undefined} value + * @return {!proto.dapr.proto.runtime.v1.JobEventRequest} returns this +*/ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.setHttpExtension = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.JobEventRequest} returns this + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.clearHttpExtension = function() { + return this.setHttpExtension(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.dapr.proto.runtime.v1.JobEventRequest.prototype.hasHttpExtension = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + + + +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.JobEventResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.JobEventResponse.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.JobEventResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.JobEventResponse.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.JobEventResponse} + */ +proto.dapr.proto.runtime.v1.JobEventResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.JobEventResponse; + return proto.dapr.proto.runtime.v1.JobEventResponse.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.JobEventResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.JobEventResponse} + */ +proto.dapr.proto.runtime.v1.JobEventResponse.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.JobEventResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.JobEventResponse.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.JobEventResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.JobEventResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -1654,7 +2099,8 @@ proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.getMetadataMap */ proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this;}; + return this; +}; @@ -1925,7 +2371,8 @@ 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; +}; /** @@ -2534,7 +2981,8 @@ 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; +}; @@ -3258,7 +3706,8 @@ 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 5ec1cc9d..8ecc3984 100644 --- a/src/proto/dapr/proto/runtime/v1/dapr.proto +++ b/src/proto/dapr/proto/runtime/v1/dapr.proto @@ -19,6 +19,7 @@ import "google/protobuf/any.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; import "dapr/proto/common/v1/common.proto"; +import "dapr/proto/runtime/v1/appcallback.proto"; option csharp_namespace = "Dapr.Client.Autogen.Grpc.v1"; option java_outer_classname = "DaprProtos"; @@ -58,6 +59,10 @@ service Dapr { // Bulk Publishes multiple events to the specified topic. rpc BulkPublishEventAlpha1(BulkPublishRequest) returns (BulkPublishResponse) {} + // SubscribeTopicEventsAlpha1 subscribes to a PubSub topic and receives topic + // events from it. + rpc SubscribeTopicEventsAlpha1(stream SubscribeTopicEventsRequestAlpha1) returns (stream SubscribeTopicEventsResponseAlpha1) {} + // Invokes binding data to specific output bindings rpc InvokeBinding(InvokeBindingRequest) returns (InvokeBindingResponse) {} @@ -188,6 +193,15 @@ service Dapr { rpc RaiseEventWorkflowBeta1 (RaiseEventWorkflowRequest) returns (google.protobuf.Empty) {} // Shutdown the sidecar rpc Shutdown (ShutdownRequest) returns (google.protobuf.Empty) {} + + // Create and schedule a job + rpc ScheduleJobAlpha1(ScheduleJobRequest) returns (ScheduleJobResponse) {} + + // Gets a scheduled job + rpc GetJobAlpha1(GetJobRequest) returns (GetJobResponse) {} + + // Delete a job + rpc DeleteJobAlpha1(DeleteJobRequest) returns (DeleteJobResponse) {} } // InvokeServiceRequest represents the request message for Service invocation. @@ -411,6 +425,62 @@ message BulkPublishResponseFailedEntry { string error = 2; } +// SubscribeTopicEventsRequestAlpha1 is a message containing the details for +// subscribing to a topic via streaming. +// The first message must always be the initial request. All subsequent +// messages must be event processed responses. +message SubscribeTopicEventsRequestAlpha1 { + oneof subscribe_topic_events_request_type { + SubscribeTopicEventsRequestInitialAlpha1 initial_request = 1; + SubscribeTopicEventsRequestProcessedAlpha1 event_processed = 2; + } +} + +// SubscribeTopicEventsRequestInitialAlpha1 is the initial message containing +// the details for subscribing to a topic via streaming. +message SubscribeTopicEventsRequestInitialAlpha1 { + // The name of the pubsub component + string pubsub_name = 1; + + // The pubsub topic + string topic = 2; + + // The metadata passing to pub components + // + // metadata property: + // - key : the key of the message. + map metadata = 3; + + // dead_letter_topic is the topic to which messages that fail to be processed + // are sent. + optional string dead_letter_topic = 4; +} + +// SubscribeTopicEventsRequestProcessedAlpha1 is the message containing the +// subscription to a topic. +message SubscribeTopicEventsRequestProcessedAlpha1 { + // id is the unique identifier for the subscription request. + string id = 1; + + // status is the result of the subscription request. + TopicEventResponse status = 2; +} + + +// SubscribeTopicEventsResponseAlpha1 is a message returned from daprd +// when subscribing to a topic via streaming. +message SubscribeTopicEventsResponseAlpha1 { + oneof subscribe_topic_events_response_type { + SubscribeTopicEventsResponseInitialAlpha1 initial_response = 1; + TopicEventRequest event_message = 2; + } +} + +// SubscribeTopicEventsResponseInitialAlpha1 is the initial response from daprd +// when subscribing to a topic. +message SubscribeTopicEventsResponseInitialAlpha1 {} + + // InvokeBindingRequest is the message to send data to output bindings message InvokeBindingRequest { // The name of the output binding to invoke. @@ -504,45 +574,45 @@ message ExecuteStateTransactionRequest { // RegisterActorTimerRequest is the message to register a timer for an actor of a given type and id. message RegisterActorTimerRequest { - string actor_type = 1; - string actor_id = 2; + string actor_type = 1 [json_name = "actorType"]; + string actor_id = 2 [json_name = "actorId"]; string name = 3; - string due_time = 4; + string due_time = 4 [json_name = "dueTime"]; string period = 5; string callback = 6; - bytes data = 7; + bytes data = 7; string ttl = 8; } // UnregisterActorTimerRequest is the message to unregister an actor timer message UnregisterActorTimerRequest { - string actor_type = 1; - string actor_id = 2; + string actor_type = 1 [json_name = "actorType"]; + string actor_id = 2 [json_name = "actorId"]; string name = 3; } // RegisterActorReminderRequest is the message to register a reminder for an actor of a given type and id. message RegisterActorReminderRequest { - string actor_type = 1; - string actor_id = 2; + string actor_type = 1 [json_name = "actorType"]; + string actor_id = 2 [json_name = "actorId"]; string name = 3; - string due_time = 4; + string due_time = 4 [json_name = "dueTime"]; string period = 5; - bytes data = 6; + bytes data = 6; string ttl = 7; } // UnregisterActorReminderRequest is the message to unregister an actor reminder. message UnregisterActorReminderRequest { - string actor_type = 1; - string actor_id = 2; + string actor_type = 1 [json_name = "actorType"]; + string actor_id = 2 [json_name = "actorId"]; string name = 3; } // GetActorStateRequest is the message to get key-value states from specific actor. message GetActorStateRequest { - string actor_type = 1; - string actor_id = 2; + string actor_type = 1 [json_name = "actorType"]; + string actor_id = 2 [json_name = "actorId"]; string key = 3; } @@ -556,8 +626,8 @@ message GetActorStateResponse { // ExecuteActorStateTransactionRequest is the message to execute multiple operations on a specified actor. message ExecuteActorStateTransactionRequest { - string actor_type = 1; - string actor_id = 2; + string actor_type = 1 [json_name = "actorType"]; + string actor_id = 2 [json_name = "actorId"]; repeated TransactionalActorStateOperation operations = 3; } @@ -575,8 +645,8 @@ message TransactionalActorStateOperation { // InvokeActorRequest is the message to call an actor. message InvokeActorRequest { - string actor_type = 1; - string actor_id = 2; + string actor_type = 1 [json_name = "actorType"]; + string actor_id = 2 [json_name = "actorId"]; string method = 3; bytes data = 4; map metadata = 5; @@ -605,6 +675,7 @@ message GetMetadataResponse { string runtime_version = 8 [json_name = "runtimeVersion"]; repeated string enabled_features = 9 [json_name = "enabledFeatures"]; ActorRuntime actor_runtime = 10 [json_name = "actorRuntime"]; + //TODO: Cassie: probably add scheduler runtime status } message ActorRuntime { @@ -665,6 +736,19 @@ message PubsubSubscription { map metadata = 3 [json_name = "metadata"]; PubsubSubscriptionRules rules = 4 [json_name = "rules"]; string dead_letter_topic = 5 [json_name = "deadLetterTopic"]; + PubsubSubscriptionType type = 6 [json_name = "type"]; +} + +// PubsubSubscriptionType indicates the type of subscription +enum PubsubSubscriptionType { + // UNKNOWN is the default value for the subscription type. + UNKNOWN = 0; + // Declarative subscription (k8s CRD) + DECLARATIVE = 1; + // Programmatically created subscription + PROGRAMMATIC = 2; + // Bidirectional Streaming subscription + STREAMING = 3; } message PubsubSubscriptionRules { @@ -1108,3 +1192,85 @@ message PurgeWorkflowRequest { message ShutdownRequest { // Empty } + +// Job is the definition of a job. At least one of schedule or due_time must be +// provided but can also be provided together. +message Job { + // The unique name for the job. + string name = 1 [json_name = "name"]; + + // schedule is an optional schedule at which the job is to be run. + // Accepts both systemd timer style cron expressions, as well as human + // readable '@' prefixed period strings as defined below. + // + // Systemd timer style cron accepts 6 fields: + // seconds | minutes | hours | day of month | month | day of week + // 0-59 | 0-59 | 0-23 | 1-31 | 1-12/jan-dec | 0-7/sun-sat + // + // "0 30 * * * *" - every hour on the half hour + // "0 15 3 * * *" - every day at 03:15 + // + // Period string expressions: + // Entry | Description | Equivalent To + // ----- | ----------- | ------------- + // @every | Run every (e.g. '@every 1h30m') | N/A + // @yearly (or @annually) | Run once a year, midnight, Jan. 1st | 0 0 0 1 1 * + // @monthly | Run once a month, midnight, first of month | 0 0 0 1 * * + // @weekly | Run once a week, midnight on Sunday | 0 0 0 * * 0 + // @daily (or @midnight) | Run once a day, midnight | 0 0 0 * * * + // @hourly | Run once an hour, beginning of hour | 0 0 * * * * + optional string schedule = 2 [json_name = "schedule"]; + + // repeats is the optional number of times in which the job should be + // triggered. If not set, the job will run indefinitely or until expiration. + optional uint32 repeats = 3 [json_name = "repeats"]; + + // due_time is the optional time at which the job should be active, or the + // "one shot" time if other scheduling type fields are not provided. Accepts + // a "point in time" string in the format of RFC3339, Go duration string + // (calculated from job creation time), or non-repeating ISO8601. + optional string due_time = 4 [json_name = "dueTime"]; + + // ttl is the optional time to live or expiration of the job. Accepts a + // "point in time" string in the format of RFC3339, Go duration string + // (calculated from job creation time), or non-repeating ISO8601. + optional string ttl = 5 [json_name = "ttl"]; + + // payload is the serialized job payload that will be sent to the recipient + // when the job is triggered. + google.protobuf.Any data = 6 [json_name = "data"]; +} + +// ScheduleJobRequest is the message to create/schedule the job. +message ScheduleJobRequest { + // The job details. + Job job = 1; +} + +// ScheduleJobResponse is the message response to create/schedule the job. +message ScheduleJobResponse { + // Empty +} + +// GetJobRequest is the message to retrieve a job. +message GetJobRequest { + // The name of the job. + string name = 1; +} + +// GetJobResponse is the message's response for a job retrieved. +message GetJobResponse { + // The job details. + Job job = 1; +} + +// DeleteJobRequest is the message to delete the job by name. +message DeleteJobRequest { + // The name of the job. + string name = 1; +} + +// DeleteJobResponse is the message response to delete the job by name. +message DeleteJobResponse { + // 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 445a5a40..7c2e718d 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 @@ -10,6 +10,7 @@ import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb" import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; +import * as dapr_proto_runtime_v1_appcallback_pb from "../../../../dapr/proto/runtime/v1/appcallback_pb"; interface IDaprService extends grpc.ServiceDefinition { invokeService: IDaprService_IInvokeService; @@ -22,6 +23,7 @@ interface IDaprService extends grpc.ServiceDefinition { @@ -158,6 +163,15 @@ interface IDaprService_IBulkPublishEventAlpha1 extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IDaprService_ISubscribeTopicEventsAlpha1 extends grpc.MethodDefinition { + path: "/dapr.proto.runtime.v1.Dapr/SubscribeTopicEventsAlpha1"; + requestStream: true; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IDaprService_IInvokeBinding extends grpc.MethodDefinition { path: "/dapr.proto.runtime.v1.Dapr/InvokeBinding"; requestStream: false; @@ -554,6 +568,33 @@ interface IDaprService_IShutdown extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IDaprService_IScheduleJobAlpha1 extends grpc.MethodDefinition { + path: "/dapr.proto.runtime.v1.Dapr/ScheduleJobAlpha1"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IDaprService_IGetJobAlpha1 extends grpc.MethodDefinition { + path: "/dapr.proto.runtime.v1.Dapr/GetJobAlpha1"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IDaprService_IDeleteJobAlpha1 extends grpc.MethodDefinition { + path: "/dapr.proto.runtime.v1.Dapr/DeleteJobAlpha1"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} export const DaprService: IDaprService; @@ -568,6 +609,7 @@ export interface IDaprServer extends grpc.UntypedServiceImplementation { executeStateTransaction: grpc.handleUnaryCall; publishEvent: grpc.handleUnaryCall; bulkPublishEventAlpha1: grpc.handleUnaryCall; + subscribeTopicEventsAlpha1: grpc.handleBidiStreamingCall; invokeBinding: grpc.handleUnaryCall; getSecret: grpc.handleUnaryCall; getBulkSecret: grpc.handleUnaryCall; @@ -612,6 +654,9 @@ export interface IDaprServer extends grpc.UntypedServiceImplementation { resumeWorkflowBeta1: grpc.handleUnaryCall; raiseEventWorkflowBeta1: grpc.handleUnaryCall; shutdown: grpc.handleUnaryCall; + scheduleJobAlpha1: grpc.handleUnaryCall; + getJobAlpha1: grpc.handleUnaryCall; + deleteJobAlpha1: grpc.handleUnaryCall; } export interface IDaprClient { @@ -645,6 +690,9 @@ export interface IDaprClient { bulkPublishEventAlpha1(request: dapr_proto_runtime_v1_dapr_pb.BulkPublishRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; bulkPublishEventAlpha1(request: dapr_proto_runtime_v1_dapr_pb.BulkPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; bulkPublishEventAlpha1(request: dapr_proto_runtime_v1_dapr_pb.BulkPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; + subscribeTopicEventsAlpha1(): grpc.ClientDuplexStream; + subscribeTopicEventsAlpha1(options: Partial): grpc.ClientDuplexStream; + subscribeTopicEventsAlpha1(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; invokeBinding(request: dapr_proto_runtime_v1_dapr_pb.InvokeBindingRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; invokeBinding(request: dapr_proto_runtime_v1_dapr_pb.InvokeBindingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; invokeBinding(request: dapr_proto_runtime_v1_dapr_pb.InvokeBindingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; @@ -775,6 +823,15 @@ export interface IDaprClient { 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; + scheduleJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ScheduleJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; + scheduleJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ScheduleJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; + scheduleJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ScheduleJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; + getJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetJobResponse) => void): grpc.ClientUnaryCall; + getJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetJobResponse) => void): grpc.ClientUnaryCall; + getJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetJobResponse) => void): grpc.ClientUnaryCall; + deleteJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.DeleteJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; + deleteJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.DeleteJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; + deleteJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.DeleteJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; } export class DaprClient extends grpc.Client implements IDaprClient { @@ -809,6 +866,8 @@ export class DaprClient extends grpc.Client implements IDaprClient { public bulkPublishEventAlpha1(request: dapr_proto_runtime_v1_dapr_pb.BulkPublishRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; public bulkPublishEventAlpha1(request: dapr_proto_runtime_v1_dapr_pb.BulkPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; public bulkPublishEventAlpha1(request: dapr_proto_runtime_v1_dapr_pb.BulkPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; + public subscribeTopicEventsAlpha1(options?: Partial): grpc.ClientDuplexStream; + public subscribeTopicEventsAlpha1(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; public invokeBinding(request: dapr_proto_runtime_v1_dapr_pb.InvokeBindingRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; public invokeBinding(request: dapr_proto_runtime_v1_dapr_pb.InvokeBindingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; public invokeBinding(request: dapr_proto_runtime_v1_dapr_pb.InvokeBindingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; @@ -937,4 +996,13 @@ export class DaprClient extends grpc.Client implements IDaprClient { 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; + public scheduleJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ScheduleJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; + public scheduleJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ScheduleJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; + public scheduleJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ScheduleJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; + public getJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetJobResponse) => void): grpc.ClientUnaryCall; + public getJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetJobResponse) => void): grpc.ClientUnaryCall; + public getJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetJobResponse) => void): grpc.ClientUnaryCall; + public deleteJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.DeleteJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; + public deleteJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.DeleteJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; + public deleteJobAlpha1(request: dapr_proto_runtime_v1_dapr_pb.DeleteJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.DeleteJobResponse) => 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 47afabe8..a4709e64 100644 --- a/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.js +++ b/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.js @@ -20,6 +20,7 @@ var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js' var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); +var dapr_proto_runtime_v1_appcallback_pb = require('../../../../dapr/proto/runtime/v1/appcallback_pb.js'); function serialize_dapr_proto_common_v1_InvokeResponse(arg) { if (!(arg instanceof dapr_proto_common_v1_common_pb.InvokeResponse)) { @@ -87,6 +88,28 @@ function deserialize_dapr_proto_runtime_v1_DeleteBulkStateRequest(buffer_arg) { return dapr_proto_runtime_v1_dapr_pb.DeleteBulkStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_dapr_proto_runtime_v1_DeleteJobRequest(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.DeleteJobRequest)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.DeleteJobRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_DeleteJobRequest(buffer_arg) { + return dapr_proto_runtime_v1_dapr_pb.DeleteJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_dapr_proto_runtime_v1_DeleteJobResponse(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.DeleteJobResponse)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.DeleteJobResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_DeleteJobResponse(buffer_arg) { + return dapr_proto_runtime_v1_dapr_pb.DeleteJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_dapr_proto_runtime_v1_DeleteStateRequest(arg) { if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.DeleteStateRequest)) { throw new Error('Expected argument of type dapr.proto.runtime.v1.DeleteStateRequest'); @@ -230,6 +253,28 @@ 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_GetJobRequest(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetJobRequest)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.GetJobRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_GetJobRequest(buffer_arg) { + return dapr_proto_runtime_v1_dapr_pb.GetJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_dapr_proto_runtime_v1_GetJobResponse(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetJobResponse)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.GetJobResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_GetJobResponse(buffer_arg) { + return dapr_proto_runtime_v1_dapr_pb.GetJobResponse.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'); @@ -483,6 +528,28 @@ function deserialize_dapr_proto_runtime_v1_SaveStateRequest(buffer_arg) { return dapr_proto_runtime_v1_dapr_pb.SaveStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_dapr_proto_runtime_v1_ScheduleJobRequest(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.ScheduleJobRequest)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.ScheduleJobRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_ScheduleJobRequest(buffer_arg) { + return dapr_proto_runtime_v1_dapr_pb.ScheduleJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_dapr_proto_runtime_v1_ScheduleJobResponse(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.ScheduleJobResponse)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.ScheduleJobResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_ScheduleJobResponse(buffer_arg) { + return dapr_proto_runtime_v1_dapr_pb.ScheduleJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_dapr_proto_runtime_v1_SetMetadataRequest(arg) { if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest)) { throw new Error('Expected argument of type dapr.proto.runtime.v1.SetMetadataRequest'); @@ -549,6 +616,28 @@ function deserialize_dapr_proto_runtime_v1_SubscribeConfigurationResponse(buffer return dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_dapr_proto_runtime_v1_SubscribeTopicEventsRequestAlpha1(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubscribeTopicEventsRequestAlpha1)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_SubscribeTopicEventsRequestAlpha1(buffer_arg) { + return dapr_proto_runtime_v1_dapr_pb.SubscribeTopicEventsRequestAlpha1.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_dapr_proto_runtime_v1_SubscribeTopicEventsResponseAlpha1(arg) { + if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubscribeTopicEventsResponseAlpha1)) { + throw new Error('Expected argument of type dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_dapr_proto_runtime_v1_SubscribeTopicEventsResponseAlpha1(buffer_arg) { + return dapr_proto_runtime_v1_dapr_pb.SubscribeTopicEventsResponseAlpha1.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_dapr_proto_runtime_v1_SubtleDecryptRequest(arg) { if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleDecryptRequest)) { throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleDecryptRequest'); @@ -937,6 +1026,19 @@ bulkPublishEventAlpha1: { responseSerialize: serialize_dapr_proto_runtime_v1_BulkPublishResponse, responseDeserialize: deserialize_dapr_proto_runtime_v1_BulkPublishResponse, }, + // SubscribeTopicEventsAlpha1 subscribes to a PubSub topic and receives topic +// events from it. +subscribeTopicEventsAlpha1: { + path: '/dapr.proto.runtime.v1.Dapr/SubscribeTopicEventsAlpha1', + requestStream: true, + responseStream: true, + requestType: dapr_proto_runtime_v1_dapr_pb.SubscribeTopicEventsRequestAlpha1, + responseType: dapr_proto_runtime_v1_dapr_pb.SubscribeTopicEventsResponseAlpha1, + requestSerialize: serialize_dapr_proto_runtime_v1_SubscribeTopicEventsRequestAlpha1, + requestDeserialize: deserialize_dapr_proto_runtime_v1_SubscribeTopicEventsRequestAlpha1, + responseSerialize: serialize_dapr_proto_runtime_v1_SubscribeTopicEventsResponseAlpha1, + responseDeserialize: deserialize_dapr_proto_runtime_v1_SubscribeTopicEventsResponseAlpha1, + }, // Invokes binding data to specific output bindings invokeBinding: { path: '/dapr.proto.runtime.v1.Dapr/InvokeBinding', @@ -1465,6 +1567,42 @@ shutdown: { responseSerialize: serialize_google_protobuf_Empty, responseDeserialize: deserialize_google_protobuf_Empty, }, + // Create and schedule a job +scheduleJobAlpha1: { + path: '/dapr.proto.runtime.v1.Dapr/ScheduleJobAlpha1', + requestStream: false, + responseStream: false, + requestType: dapr_proto_runtime_v1_dapr_pb.ScheduleJobRequest, + responseType: dapr_proto_runtime_v1_dapr_pb.ScheduleJobResponse, + requestSerialize: serialize_dapr_proto_runtime_v1_ScheduleJobRequest, + requestDeserialize: deserialize_dapr_proto_runtime_v1_ScheduleJobRequest, + responseSerialize: serialize_dapr_proto_runtime_v1_ScheduleJobResponse, + responseDeserialize: deserialize_dapr_proto_runtime_v1_ScheduleJobResponse, + }, + // Gets a scheduled job +getJobAlpha1: { + path: '/dapr.proto.runtime.v1.Dapr/GetJobAlpha1', + requestStream: false, + responseStream: false, + requestType: dapr_proto_runtime_v1_dapr_pb.GetJobRequest, + responseType: dapr_proto_runtime_v1_dapr_pb.GetJobResponse, + requestSerialize: serialize_dapr_proto_runtime_v1_GetJobRequest, + requestDeserialize: deserialize_dapr_proto_runtime_v1_GetJobRequest, + responseSerialize: serialize_dapr_proto_runtime_v1_GetJobResponse, + responseDeserialize: deserialize_dapr_proto_runtime_v1_GetJobResponse, + }, + // Delete a job +deleteJobAlpha1: { + path: '/dapr.proto.runtime.v1.Dapr/DeleteJobAlpha1', + requestStream: false, + responseStream: false, + requestType: dapr_proto_runtime_v1_dapr_pb.DeleteJobRequest, + responseType: dapr_proto_runtime_v1_dapr_pb.DeleteJobResponse, + requestSerialize: serialize_dapr_proto_runtime_v1_DeleteJobRequest, + requestDeserialize: deserialize_dapr_proto_runtime_v1_DeleteJobRequest, + responseSerialize: serialize_dapr_proto_runtime_v1_DeleteJobResponse, + responseDeserialize: deserialize_dapr_proto_runtime_v1_DeleteJobResponse, + }, }; exports.DaprClient = grpc.makeGenericClientConstructor(DaprService); 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 87519d3f..69ad0cf8 100644 --- a/src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts +++ b/src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts @@ -9,6 +9,7 @@ import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb" import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; +import * as dapr_proto_runtime_v1_appcallback_pb from "../../../../dapr/proto/runtime/v1/appcallback_pb"; export class InvokeServiceRequest extends jspb.Message { getId(): string; @@ -514,6 +515,159 @@ export namespace BulkPublishResponseFailedEntry { } } +export class SubscribeTopicEventsRequestAlpha1 extends jspb.Message { + + hasInitialRequest(): boolean; + clearInitialRequest(): void; + getInitialRequest(): SubscribeTopicEventsRequestInitialAlpha1 | undefined; + setInitialRequest(value?: SubscribeTopicEventsRequestInitialAlpha1): SubscribeTopicEventsRequestAlpha1; + + hasEventProcessed(): boolean; + clearEventProcessed(): void; + getEventProcessed(): SubscribeTopicEventsRequestProcessedAlpha1 | undefined; + setEventProcessed(value?: SubscribeTopicEventsRequestProcessedAlpha1): SubscribeTopicEventsRequestAlpha1; + + getSubscribeTopicEventsRequestTypeCase(): SubscribeTopicEventsRequestAlpha1.SubscribeTopicEventsRequestTypeCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubscribeTopicEventsRequestAlpha1.AsObject; + static toObject(includeInstance: boolean, msg: SubscribeTopicEventsRequestAlpha1): SubscribeTopicEventsRequestAlpha1.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubscribeTopicEventsRequestAlpha1, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubscribeTopicEventsRequestAlpha1; + static deserializeBinaryFromReader(message: SubscribeTopicEventsRequestAlpha1, reader: jspb.BinaryReader): SubscribeTopicEventsRequestAlpha1; +} + +export namespace SubscribeTopicEventsRequestAlpha1 { + export type AsObject = { + initialRequest?: SubscribeTopicEventsRequestInitialAlpha1.AsObject, + eventProcessed?: SubscribeTopicEventsRequestProcessedAlpha1.AsObject, + } + + export enum SubscribeTopicEventsRequestTypeCase { + SUBSCRIBE_TOPIC_EVENTS_REQUEST_TYPE_NOT_SET = 0, + INITIAL_REQUEST = 1, + EVENT_PROCESSED = 2, + } + +} + +export class SubscribeTopicEventsRequestInitialAlpha1 extends jspb.Message { + getPubsubName(): string; + setPubsubName(value: string): SubscribeTopicEventsRequestInitialAlpha1; + getTopic(): string; + setTopic(value: string): SubscribeTopicEventsRequestInitialAlpha1; + + getMetadataMap(): jspb.Map; + clearMetadataMap(): void; + + hasDeadLetterTopic(): boolean; + clearDeadLetterTopic(): void; + getDeadLetterTopic(): string | undefined; + setDeadLetterTopic(value: string): SubscribeTopicEventsRequestInitialAlpha1; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubscribeTopicEventsRequestInitialAlpha1.AsObject; + static toObject(includeInstance: boolean, msg: SubscribeTopicEventsRequestInitialAlpha1): SubscribeTopicEventsRequestInitialAlpha1.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubscribeTopicEventsRequestInitialAlpha1, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubscribeTopicEventsRequestInitialAlpha1; + static deserializeBinaryFromReader(message: SubscribeTopicEventsRequestInitialAlpha1, reader: jspb.BinaryReader): SubscribeTopicEventsRequestInitialAlpha1; +} + +export namespace SubscribeTopicEventsRequestInitialAlpha1 { + export type AsObject = { + pubsubName: string, + topic: string, + + metadataMap: Array<[string, string]>, + deadLetterTopic?: string, + } +} + +export class SubscribeTopicEventsRequestProcessedAlpha1 extends jspb.Message { + getId(): string; + setId(value: string): SubscribeTopicEventsRequestProcessedAlpha1; + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse | undefined; + setStatus(value?: dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse): SubscribeTopicEventsRequestProcessedAlpha1; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubscribeTopicEventsRequestProcessedAlpha1.AsObject; + static toObject(includeInstance: boolean, msg: SubscribeTopicEventsRequestProcessedAlpha1): SubscribeTopicEventsRequestProcessedAlpha1.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubscribeTopicEventsRequestProcessedAlpha1, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubscribeTopicEventsRequestProcessedAlpha1; + static deserializeBinaryFromReader(message: SubscribeTopicEventsRequestProcessedAlpha1, reader: jspb.BinaryReader): SubscribeTopicEventsRequestProcessedAlpha1; +} + +export namespace SubscribeTopicEventsRequestProcessedAlpha1 { + export type AsObject = { + id: string, + status?: dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse.AsObject, + } +} + +export class SubscribeTopicEventsResponseAlpha1 extends jspb.Message { + + hasInitialResponse(): boolean; + clearInitialResponse(): void; + getInitialResponse(): SubscribeTopicEventsResponseInitialAlpha1 | undefined; + setInitialResponse(value?: SubscribeTopicEventsResponseInitialAlpha1): SubscribeTopicEventsResponseAlpha1; + + hasEventMessage(): boolean; + clearEventMessage(): void; + getEventMessage(): dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest | undefined; + setEventMessage(value?: dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest): SubscribeTopicEventsResponseAlpha1; + + getSubscribeTopicEventsResponseTypeCase(): SubscribeTopicEventsResponseAlpha1.SubscribeTopicEventsResponseTypeCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubscribeTopicEventsResponseAlpha1.AsObject; + static toObject(includeInstance: boolean, msg: SubscribeTopicEventsResponseAlpha1): SubscribeTopicEventsResponseAlpha1.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubscribeTopicEventsResponseAlpha1, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubscribeTopicEventsResponseAlpha1; + static deserializeBinaryFromReader(message: SubscribeTopicEventsResponseAlpha1, reader: jspb.BinaryReader): SubscribeTopicEventsResponseAlpha1; +} + +export namespace SubscribeTopicEventsResponseAlpha1 { + export type AsObject = { + initialResponse?: SubscribeTopicEventsResponseInitialAlpha1.AsObject, + eventMessage?: dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest.AsObject, + } + + export enum SubscribeTopicEventsResponseTypeCase { + SUBSCRIBE_TOPIC_EVENTS_RESPONSE_TYPE_NOT_SET = 0, + INITIAL_RESPONSE = 1, + EVENT_MESSAGE = 2, + } + +} + +export class SubscribeTopicEventsResponseInitialAlpha1 extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubscribeTopicEventsResponseInitialAlpha1.AsObject; + static toObject(includeInstance: boolean, msg: SubscribeTopicEventsResponseInitialAlpha1): SubscribeTopicEventsResponseInitialAlpha1.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubscribeTopicEventsResponseInitialAlpha1, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubscribeTopicEventsResponseInitialAlpha1; + static deserializeBinaryFromReader(message: SubscribeTopicEventsResponseInitialAlpha1, reader: jspb.BinaryReader): SubscribeTopicEventsResponseInitialAlpha1; +} + +export namespace SubscribeTopicEventsResponseInitialAlpha1 { + export type AsObject = { + } +} + export class InvokeBindingRequest extends jspb.Message { getName(): string; setName(value: string): InvokeBindingRequest; @@ -1330,6 +1484,8 @@ export class PubsubSubscription extends jspb.Message { setRules(value?: PubsubSubscriptionRules): PubsubSubscription; getDeadLetterTopic(): string; setDeadLetterTopic(value: string): PubsubSubscription; + getType(): PubsubSubscriptionType; + setType(value: PubsubSubscriptionType): PubsubSubscription; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PubsubSubscription.AsObject; @@ -1349,6 +1505,7 @@ export namespace PubsubSubscription { metadataMap: Array<[string, string]>, rules?: PubsubSubscriptionRules.AsObject, deadLetterTopic: string, + type: PubsubSubscriptionType, } } @@ -2535,3 +2692,180 @@ export namespace ShutdownRequest { export type AsObject = { } } + +export class Job extends jspb.Message { + getName(): string; + setName(value: string): Job; + + hasSchedule(): boolean; + clearSchedule(): void; + getSchedule(): string | undefined; + setSchedule(value: string): Job; + + hasRepeats(): boolean; + clearRepeats(): void; + getRepeats(): number | undefined; + setRepeats(value: number): Job; + + hasDueTime(): boolean; + clearDueTime(): void; + getDueTime(): string | undefined; + setDueTime(value: string): Job; + + hasTtl(): boolean; + clearTtl(): void; + getTtl(): string | undefined; + setTtl(value: string): Job; + + hasData(): boolean; + clearData(): void; + getData(): google_protobuf_any_pb.Any | undefined; + setData(value?: google_protobuf_any_pb.Any): Job; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Job.AsObject; + static toObject(includeInstance: boolean, msg: Job): Job.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Job, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Job; + static deserializeBinaryFromReader(message: Job, reader: jspb.BinaryReader): Job; +} + +export namespace Job { + export type AsObject = { + name: string, + schedule?: string, + repeats?: number, + dueTime?: string, + ttl?: string, + data?: google_protobuf_any_pb.Any.AsObject, + } +} + +export class ScheduleJobRequest extends jspb.Message { + + hasJob(): boolean; + clearJob(): void; + getJob(): Job | undefined; + setJob(value?: Job): ScheduleJobRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ScheduleJobRequest.AsObject; + static toObject(includeInstance: boolean, msg: ScheduleJobRequest): ScheduleJobRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ScheduleJobRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ScheduleJobRequest; + static deserializeBinaryFromReader(message: ScheduleJobRequest, reader: jspb.BinaryReader): ScheduleJobRequest; +} + +export namespace ScheduleJobRequest { + export type AsObject = { + job?: Job.AsObject, + } +} + +export class ScheduleJobResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ScheduleJobResponse.AsObject; + static toObject(includeInstance: boolean, msg: ScheduleJobResponse): ScheduleJobResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ScheduleJobResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ScheduleJobResponse; + static deserializeBinaryFromReader(message: ScheduleJobResponse, reader: jspb.BinaryReader): ScheduleJobResponse; +} + +export namespace ScheduleJobResponse { + export type AsObject = { + } +} + +export class GetJobRequest extends jspb.Message { + getName(): string; + setName(value: string): GetJobRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetJobRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetJobRequest): GetJobRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetJobRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetJobRequest; + static deserializeBinaryFromReader(message: GetJobRequest, reader: jspb.BinaryReader): GetJobRequest; +} + +export namespace GetJobRequest { + export type AsObject = { + name: string, + } +} + +export class GetJobResponse extends jspb.Message { + + hasJob(): boolean; + clearJob(): void; + getJob(): Job | undefined; + setJob(value?: Job): GetJobResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetJobResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetJobResponse): GetJobResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetJobResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetJobResponse; + static deserializeBinaryFromReader(message: GetJobResponse, reader: jspb.BinaryReader): GetJobResponse; +} + +export namespace GetJobResponse { + export type AsObject = { + job?: Job.AsObject, + } +} + +export class DeleteJobRequest extends jspb.Message { + getName(): string; + setName(value: string): DeleteJobRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteJobRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteJobRequest): DeleteJobRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteJobRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteJobRequest; + static deserializeBinaryFromReader(message: DeleteJobRequest, reader: jspb.BinaryReader): DeleteJobRequest; +} + +export namespace DeleteJobRequest { + export type AsObject = { + name: string, + } +} + +export class DeleteJobResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteJobResponse.AsObject; + static toObject(includeInstance: boolean, msg: DeleteJobResponse): DeleteJobResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteJobResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteJobResponse; + static deserializeBinaryFromReader(message: DeleteJobResponse, reader: jspb.BinaryReader): DeleteJobResponse; +} + +export namespace DeleteJobResponse { + export type AsObject = { + } +} + +export enum PubsubSubscriptionType { + UNKNOWN = 0, + DECLARATIVE = 1, + PROGRAMMATIC = 2, + STREAMING = 3, +} diff --git a/src/proto/dapr/proto/runtime/v1/dapr_pb.js b/src/proto/dapr/proto/runtime/v1/dapr_pb.js index 1ea0998a..b995caf1 100644 --- a/src/proto/dapr/proto/runtime/v1/dapr_pb.js +++ b/src/proto/dapr/proto/runtime/v1/dapr_pb.js @@ -13,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); +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 google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); @@ -23,6 +29,8 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time 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); +var dapr_proto_runtime_v1_appcallback_pb = require('../../../../dapr/proto/runtime/v1/appcallback_pb.js'); +goog.object.extend(proto, dapr_proto_runtime_v1_appcallback_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); @@ -37,6 +45,8 @@ goog.exportSymbol('proto.dapr.proto.runtime.v1.DecryptRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.DecryptRequestOptions', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.DecryptResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.DeleteBulkStateRequest', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.DeleteJobRequest', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.DeleteJobResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.DeleteStateRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.EncryptRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.EncryptRequestOptions', null, global); @@ -51,6 +61,8 @@ 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.GetJobRequest', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.GetJobResponse', 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); @@ -64,12 +76,14 @@ goog.exportSymbol('proto.dapr.proto.runtime.v1.InvokeActorResponse', null, globa goog.exportSymbol('proto.dapr.proto.runtime.v1.InvokeBindingRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.InvokeBindingResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.InvokeServiceRequest', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.Job', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.PauseWorkflowRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.PublishEventRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.PubsubSubscription', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.PubsubSubscriptionRule', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.PubsubSubscriptionRules', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.PubsubSubscriptionType', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.PurgeWorkflowRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.QueryStateItem', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.QueryStateRequest', null, global); @@ -80,6 +94,8 @@ goog.exportSymbol('proto.dapr.proto.runtime.v1.RegisterActorTimerRequest', null, goog.exportSymbol('proto.dapr.proto.runtime.v1.RegisteredComponents', 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.ScheduleJobRequest', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.ScheduleJobResponse', 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); @@ -87,6 +103,13 @@ goog.exportSymbol('proto.dapr.proto.runtime.v1.StartWorkflowRequest', null, glob goog.exportSymbol('proto.dapr.proto.runtime.v1.StartWorkflowResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.SubscribeTopicEventsRequestTypeCase', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.SubscribeTopicEventsResponseTypeCase', null, global); +goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleDecryptRequest', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleDecryptResponse', null, global); goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleEncryptRequest', null, global); @@ -471,6 +494,111 @@ if (goog.DEBUG && !COMPILED) { */ proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.displayName = 'proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry'; } +/** + * 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.SubscribeTopicEventsRequestAlpha1 = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.oneofGroups_); +}; +goog.inherits(proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.displayName = 'proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1'; +} +/** + * 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.SubscribeTopicEventsRequestInitialAlpha1 = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.displayName = 'proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1'; +} +/** + * 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.SubscribeTopicEventsRequestProcessedAlpha1 = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.displayName = 'proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1'; +} +/** + * 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.SubscribeTopicEventsResponseAlpha1 = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.oneofGroups_); +}; +goog.inherits(proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.displayName = 'proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1'; +} +/** + * 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.SubscribeTopicEventsResponseInitialAlpha1 = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.displayName = 'proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1962,6 +2090,153 @@ if (goog.DEBUG && !COMPILED) { */ proto.dapr.proto.runtime.v1.ShutdownRequest.displayName = 'proto.dapr.proto.runtime.v1.ShutdownRequest'; } +/** + * 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.Job = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.Job, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.Job.displayName = 'proto.dapr.proto.runtime.v1.Job'; +} +/** + * 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.ScheduleJobRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.ScheduleJobRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.ScheduleJobRequest.displayName = 'proto.dapr.proto.runtime.v1.ScheduleJobRequest'; +} +/** + * 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.ScheduleJobResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.ScheduleJobResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.ScheduleJobResponse.displayName = 'proto.dapr.proto.runtime.v1.ScheduleJobResponse'; +} +/** + * 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.GetJobRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.GetJobRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.GetJobRequest.displayName = 'proto.dapr.proto.runtime.v1.GetJobRequest'; +} +/** + * 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.GetJobResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.GetJobResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.GetJobResponse.displayName = 'proto.dapr.proto.runtime.v1.GetJobResponse'; +} +/** + * 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.DeleteJobRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.DeleteJobRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.DeleteJobRequest.displayName = 'proto.dapr.proto.runtime.v1.DeleteJobRequest'; +} +/** + * 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.DeleteJobResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.dapr.proto.runtime.v1.DeleteJobResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.dapr.proto.runtime.v1.DeleteJobResponse.displayName = 'proto.dapr.proto.runtime.v1.DeleteJobResponse'; +} @@ -2363,7 +2638,8 @@ 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; +}; @@ -2612,7 +2888,8 @@ 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; +}; @@ -3049,7 +3326,8 @@ 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; +}; @@ -3266,7 +3544,8 @@ 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; +}; @@ -3561,7 +3840,8 @@ 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; +}; @@ -4134,7 +4414,8 @@ 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; +}; @@ -4601,7 +4882,8 @@ 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; +}; @@ -4878,7 +5160,8 @@ 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; +}; @@ -5131,7 +5414,8 @@ 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; +}; @@ -5378,7 +5662,8 @@ 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; +}; @@ -5702,6 +5987,32 @@ proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.prototype.setError = +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.SubscribeTopicEventsRequestTypeCase = { + SUBSCRIBE_TOPIC_EVENTS_REQUEST_TYPE_NOT_SET: 0, + INITIAL_REQUEST: 1, + EVENT_PROCESSED: 2 +}; + +/** + * @return {proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.SubscribeTopicEventsRequestTypeCase} + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.getSubscribeTopicEventsRequestTypeCase = function() { + return /** @type {proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.SubscribeTopicEventsRequestTypeCase} */(jspb.Message.computeOneofCase(this, proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.oneofGroups_[0])); +}; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -5717,8 +6028,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.InvokeBindingRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.toObject(opt_includeInstance, this); }; @@ -5727,16 +6038,14 @@ proto.dapr.proto.runtime.v1.InvokeBindingRequest.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.InvokeBindingRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.toObject = function(includeInstance, msg) { var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: msg.getData_asB64(), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - operation: jspb.Message.getFieldWithDefault(msg, 4, "") + initialRequest: (f = msg.getInitialRequest()) && proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.toObject(includeInstance, f), + eventProcessed: (f = msg.getEventProcessed()) && proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.toObject(includeInstance, f) }; if (includeInstance) { @@ -5750,23 +6059,23 @@ proto.dapr.proto.runtime.v1.InvokeBindingRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.InvokeBindingRequest; - return proto.dapr.proto.runtime.v1.InvokeBindingRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1; + return proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.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.InvokeBindingRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5774,22 +6083,14 @@ proto.dapr.proto.runtime.v1.InvokeBindingRequest.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + var value = new proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1; + reader.readMessage(value,proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.deserializeBinaryFromReader); + msg.setInitialRequest(value); break; case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 3: - 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; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setOperation(value); + var value = new proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1; + reader.readMessage(value,proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.deserializeBinaryFromReader); + msg.setEventProcessed(value); break; default: reader.skipField(); @@ -5804,9 +6105,9 @@ proto.dapr.proto.runtime.v1.InvokeBindingRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.InvokeBindingRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5814,137 +6115,102 @@ proto.dapr.proto.runtime.v1.InvokeBindingRequest.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.InvokeBindingRequest} message + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( + f = message.getInitialRequest(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.serializeBinaryToWriter ); } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getEventProcessed(); + if (f != null) { + writer.writeMessage( 2, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getOperation(); - if (f.length > 0) { - writer.writeString( - 4, - f + f, + proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.serializeBinaryToWriter ); } }; /** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} returns this + * optional SubscribeTopicEventsRequestInitialAlpha1 initial_request = 1; + * @return {?proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.getInitialRequest = function() { + return /** @type{?proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} */ ( + jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1, 1)); }; /** - * optional bytes data = 2; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + * @param {?proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1|undefined} value + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} returns this +*/ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.setInitialRequest = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.oneofGroups_[0], value); }; /** - * optional bytes data = 2; - * This is a type-conversion wrapper around `getData()` - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} returns this */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.clearInitialRequest = function() { + return this.setInitialRequest(undefined); }; /** - * optional bytes data = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.hasInitialRequest = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} returns this + * optional SubscribeTopicEventsRequestProcessedAlpha1 event_processed = 2; + * @return {?proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.getEventProcessed = function() { + return /** @type{?proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} */ ( + jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1, 2)); }; /** - * map metadata = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); + * @param {?proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1|undefined} value + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} returns this +*/ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.setEventProcessed = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.oneofGroups_[0], value); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} returns this - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * optional string operation = 4; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} returns this */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getOperation = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.clearEventProcessed = function() { + return this.setEventProcessed(undefined); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.setOperation = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.hasEventProcessed = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -5964,8 +6230,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.InvokeBindingResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.toObject(opt_includeInstance, this); }; @@ -5974,14 +6240,16 @@ proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.toObject = function( * @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.InvokeBindingResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.toObject = function(includeInstance, msg) { var f, obj = { - data: msg.getData_asB64(), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] + pubsubName: jspb.Message.getFieldWithDefault(msg, 1, ""), + topic: jspb.Message.getFieldWithDefault(msg, 2, ""), + metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], + deadLetterTopic: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -5995,23 +6263,23 @@ proto.dapr.proto.runtime.v1.InvokeBindingResponse.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.InvokeBindingResponse; - return proto.dapr.proto.runtime.v1.InvokeBindingResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1; + return proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.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.InvokeBindingResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6019,15 +6287,23 @@ proto.dapr.proto.runtime.v1.InvokeBindingResponse.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); + var value = /** @type {string} */ (reader.readString()); + msg.setPubsubName(value); break; case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setTopic(value); + break; + case 3: 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; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDeadLetterTopic(value); + break; default: reader.skipField(); break; @@ -6041,9 +6317,9 @@ proto.dapr.proto.runtime.v1.InvokeBindingResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.InvokeBindingResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6051,88 +6327,133 @@ proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} message + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getData_asU8(); + f = message.getPubsubName(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 1, f ); } + f = message.getTopic(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } f = message.getMetadataMap(true); if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); } }; /** - * optional bytes data = 1; - * @return {!(string|Uint8Array)} + * optional string pubsub_name = 1; + * @return {string} */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.getPubsubName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional bytes data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} returns this */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.setPubsubName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * 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} + * optional string topic = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.getTopic = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} returns this */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.setTopic = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * map metadata = 2; + * map metadata = 3; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.getMetadataMap = function(opt_noLazyCreate) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.getMetadataMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, + jspb.Message.getMapField(this, 3, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} returns this + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} returns this */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.clearMetadataMap = function() { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this;}; + return this; +}; + + +/** + * optional string dead_letter_topic = 4; + * @return {string} + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.getDeadLetterTopic = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} returns this + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.setDeadLetterTopic = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} returns this + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.clearDeadLetterTopic = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.hasDeadLetterTopic = function() { + return jspb.Message.getField(this, 4) != null; +}; @@ -6151,8 +6472,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetSecretRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.toObject(opt_includeInstance, this); }; @@ -6161,15 +6482,14 @@ proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.toObject = function(opt_i * @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.GetSecretRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetSecretRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.toObject = function(includeInstance, msg) { var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + status: (f = msg.getStatus()) && dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse.toObject(includeInstance, f) }; if (includeInstance) { @@ -6183,23 +6503,23 @@ proto.dapr.proto.runtime.v1.GetSecretRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} */ -proto.dapr.proto.runtime.v1.GetSecretRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetSecretRequest; - return proto.dapr.proto.runtime.v1.GetSecretRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1; + return proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.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.GetSecretRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} */ -proto.dapr.proto.runtime.v1.GetSecretRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6208,17 +6528,12 @@ proto.dapr.proto.runtime.v1.GetSecretRequest.deserializeBinaryFromReader = funct switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setStoreName(value); + msg.setId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 3: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); + var value = new dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse; + reader.readMessage(value,dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse.deserializeBinaryFromReader); + msg.setStatus(value); break; default: reader.skipField(); @@ -6233,9 +6548,9 @@ proto.dapr.proto.runtime.v1.GetSecretRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetSecretRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6243,91 +6558,111 @@ proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetSecretRequest} message + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetSecretRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStoreName(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( + f = message.getStatus(); + if (f != null) { + writer.writeMessage( 2, - f + f, + dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse.serializeBinaryToWriter ); } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } }; /** - * optional string store_name = 1; + * optional string id = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.getStoreName = function() { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} returns this */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.setStoreName = function(value) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string key = 2; - * @return {string} + * optional TopicEventResponse status = 2; + * @return {?proto.dapr.proto.runtime.v1.TopicEventResponse} */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.prototype.getStatus = function() { + return /** @type{?proto.dapr.proto.runtime.v1.TopicEventResponse} */ ( + jspb.Message.getWrapperField(this, dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse, 2)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} returns this + * @param {?proto.dapr.proto.runtime.v1.TopicEventResponse|undefined} value + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} returns this +*/ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} returns this */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.prototype.clearStatus = function() { + return this.setStatus(undefined); }; /** - * map metadata = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.prototype.hasStatus = function() { + return jspb.Message.getField(this, 2) != null; }; + /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} returns this + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.oneofGroups_ = [[1,2]]; +/** + * @enum {number} + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.SubscribeTopicEventsResponseTypeCase = { + SUBSCRIBE_TOPIC_EVENTS_RESPONSE_TYPE_NOT_SET: 0, + INITIAL_RESPONSE: 1, + EVENT_MESSAGE: 2 +}; +/** + * @return {proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.SubscribeTopicEventsResponseTypeCase} + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.getSubscribeTopicEventsResponseTypeCase = function() { + return /** @type {proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.SubscribeTopicEventsResponseTypeCase} */(jspb.Message.computeOneofCase(this, proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.oneofGroups_[0])); +}; @@ -6344,8 +6679,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetSecretResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.toObject(opt_includeInstance, this); }; @@ -6354,13 +6689,14 @@ proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.toObject = function(opt_ * @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.GetSecretResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetSecretResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.toObject = function(includeInstance, msg) { var f, obj = { - dataMap: (f = msg.getDataMap()) ? f.toObject(includeInstance, undefined) : [] + initialResponse: (f = msg.getInitialResponse()) && proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.toObject(includeInstance, f), + eventMessage: (f = msg.getEventMessage()) && dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest.toObject(includeInstance, f) }; if (includeInstance) { @@ -6374,23 +6710,23 @@ proto.dapr.proto.runtime.v1.GetSecretResponse.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetSecretResponse} + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1} */ -proto.dapr.proto.runtime.v1.GetSecretResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetSecretResponse; - return proto.dapr.proto.runtime.v1.GetSecretResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1; + return proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.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.GetSecretResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetSecretResponse} + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1} */ -proto.dapr.proto.runtime.v1.GetSecretResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6398,10 +6734,14 @@ proto.dapr.proto.runtime.v1.GetSecretResponse.deserializeBinaryFromReader = func var field = reader.getFieldNumber(); switch (field) { case 1: - var value = msg.getDataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); + var value = new proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1; + reader.readMessage(value,proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.deserializeBinaryFromReader); + msg.setInitialResponse(value); + break; + case 2: + var value = new dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest; + reader.readMessage(value,dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest.deserializeBinaryFromReader); + msg.setEventMessage(value); break; default: reader.skipField(); @@ -6416,9 +6756,9 @@ proto.dapr.proto.runtime.v1.GetSecretResponse.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetSecretResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6426,39 +6766,103 @@ proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetSecretResponse} message + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetSecretResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + f = message.getInitialResponse(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.serializeBinaryToWriter + ); + } + f = message.getEventMessage(); + if (f != null) { + writer.writeMessage( + 2, + f, + dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest.serializeBinaryToWriter + ); } }; /** - * map data = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * optional SubscribeTopicEventsResponseInitialAlpha1 initial_response = 1; + * @return {?proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1} */ -proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.getDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - null)); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.getInitialResponse = function() { + return /** @type{?proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1} */ ( + jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1, 1)); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.GetSecretResponse} returns this + * @param {?proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1|undefined} value + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1} returns this +*/ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.setInitialResponse = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1} returns this */ -proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.clearDataMap = function() { - this.getDataMap().clear(); - return this;}; +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.clearInitialResponse = function() { + return this.setInitialResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.hasInitialResponse = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional TopicEventRequest event_message = 2; + * @return {?proto.dapr.proto.runtime.v1.TopicEventRequest} + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.getEventMessage = function() { + return /** @type{?proto.dapr.proto.runtime.v1.TopicEventRequest} */ ( + jspb.Message.getWrapperField(this, dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest, 2)); +}; + + +/** + * @param {?proto.dapr.proto.runtime.v1.TopicEventRequest|undefined} value + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1} returns this +*/ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.setEventMessage = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1} returns this + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.clearEventMessage = function() { + return this.setEventMessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.hasEventMessage = function() { + return jspb.Message.getField(this, 2) != null; +}; @@ -6477,8 +6881,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetBulkSecretRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.toObject(opt_includeInstance, this); }; @@ -6487,14 +6891,13 @@ proto.dapr.proto.runtime.v1.GetBulkSecretRequest.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.GetBulkSecretRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.toObject = function(includeInstance, msg) { var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] + }; if (includeInstance) { @@ -6508,39 +6911,29 @@ proto.dapr.proto.runtime.v1.GetBulkSecretRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1} */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetBulkSecretRequest; - return proto.dapr.proto.runtime.v1.GetBulkSecretRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1; + return proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.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.GetBulkSecretRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} + * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1} */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setStoreName(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; @@ -6554,9 +6947,9 @@ proto.dapr.proto.runtime.v1.GetBulkSecretRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetBulkSecretRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6564,66 +6957,15 @@ proto.dapr.proto.runtime.v1.GetBulkSecretRequest.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.GetBulkSecretRequest} message + * @param {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStoreName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string store_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.getStoreName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map metadata = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); }; -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - @@ -6640,8 +6982,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SecretResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SecretResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.InvokeBindingRequest.toObject(opt_includeInstance, this); }; @@ -6650,13 +6992,16 @@ proto.dapr.proto.runtime.v1.SecretResponse.prototype.toObject = function(opt_inc * @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.SecretResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SecretResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.InvokeBindingRequest.toObject = function(includeInstance, msg) { var f, obj = { - secretsMap: (f = msg.getSecretsMap()) ? f.toObject(includeInstance, undefined) : [] + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + data: msg.getData_asB64(), + metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], + operation: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -6670,23 +7015,23 @@ proto.dapr.proto.runtime.v1.SecretResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SecretResponse} + * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} */ -proto.dapr.proto.runtime.v1.SecretResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.InvokeBindingRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SecretResponse; - return proto.dapr.proto.runtime.v1.SecretResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.InvokeBindingRequest; + return proto.dapr.proto.runtime.v1.InvokeBindingRequest.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.SecretResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SecretResponse} + * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} */ -proto.dapr.proto.runtime.v1.SecretResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.InvokeBindingRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6694,11 +7039,23 @@ proto.dapr.proto.runtime.v1.SecretResponse.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = msg.getSecretsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); + break; + case 3: + 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; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setOperation(value); + break; default: reader.skipField(); break; @@ -6712,9 +7069,9 @@ proto.dapr.proto.runtime.v1.SecretResponse.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SecretResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SecretResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.InvokeBindingRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6722,172 +7079,139 @@ proto.dapr.proto.runtime.v1.SecretResponse.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SecretResponse} message + * @param {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SecretResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.InvokeBindingRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getSecretsMap(true); + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getMetadataMap(true); if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getOperation(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); } }; /** - * map secrets = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * optional string name = 1; + * @return {string} */ -proto.dapr.proto.runtime.v1.SecretResponse.prototype.getSecretsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - null)); +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.SecretResponse} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} returns this */ -proto.dapr.proto.runtime.v1.SecretResponse.prototype.clearSecretsMap = function() { - this.getSecretsMap().clear(); - return this;}; - - - +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, 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} + * optional bytes data = 2; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.GetBulkSecretResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetBulkSecretResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * 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.GetBulkSecretResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional bytes data = 2; + * This is a type-conversion wrapper around `getData()` + * @return {string} */ -proto.dapr.proto.runtime.v1.GetBulkSecretResponse.toObject = function(includeInstance, msg) { - var f, obj = { - dataMap: (f = msg.getDataMap()) ? f.toObject(includeInstance, proto.dapr.proto.runtime.v1.SecretResponse.toObject) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretResponse} + * optional bytes data = 2; + * 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.GetBulkSecretResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetBulkSecretResponse; - return proto.dapr.proto.runtime.v1.GetBulkSecretResponse.deserializeBinaryFromReader(msg, reader); +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.runtime.v1.GetBulkSecretResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretResponse} + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} returns this */ -proto.dapr.proto.runtime.v1.GetBulkSecretResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = msg.getDataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.runtime.v1.SecretResponse.deserializeBinaryFromReader, "", new proto.dapr.proto.runtime.v1.SecretResponse()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * map metadata = 3; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.GetBulkSecretResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetBulkSecretResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 3, opt_noLazyCreate, + null)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetBulkSecretResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} returns this */ -proto.dapr.proto.runtime.v1.GetBulkSecretResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.runtime.v1.SecretResponse.serializeBinaryToWriter); - } +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.clearMetadataMap = function() { + this.getMetadataMap().clear(); + return this; }; /** - * map data = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * optional string operation = 4; + * @return {string} */ -proto.dapr.proto.runtime.v1.GetBulkSecretResponse.prototype.getDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - proto.dapr.proto.runtime.v1.SecretResponse)); +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getOperation = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretResponse} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} returns this */ -proto.dapr.proto.runtime.v1.GetBulkSecretResponse.prototype.clearDataMap = function() { - this.getDataMap().clear(); - return this;}; +proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.setOperation = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; @@ -6906,8 +7230,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TransactionalStateOperation.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.InvokeBindingResponse.toObject(opt_includeInstance, this); }; @@ -6916,14 +7240,14 @@ proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.toObject = fun * @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.TransactionalStateOperation} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.InvokeBindingResponse.toObject = function(includeInstance, msg) { var f, obj = { - operationtype: jspb.Message.getFieldWithDefault(msg, 1, ""), - request: (f = msg.getRequest()) && dapr_proto_common_v1_common_pb.StateItem.toObject(includeInstance, f) + data: msg.getData_asB64(), + metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -6937,23 +7261,23 @@ proto.dapr.proto.runtime.v1.TransactionalStateOperation.toObject = function(incl /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} + * @return {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.InvokeBindingResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TransactionalStateOperation; - return proto.dapr.proto.runtime.v1.TransactionalStateOperation.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.InvokeBindingResponse; + return proto.dapr.proto.runtime.v1.InvokeBindingResponse.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.TransactionalStateOperation} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} + * @return {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.InvokeBindingResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6961,13 +7285,14 @@ proto.dapr.proto.runtime.v1.TransactionalStateOperation.deserializeBinaryFromRea var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOperationtype(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); break; case 2: - var value = new dapr_proto_common_v1_common_pb.StateItem; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StateItem.deserializeBinaryFromReader); - msg.setRequest(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(); @@ -6982,9 +7307,9 @@ proto.dapr.proto.runtime.v1.TransactionalStateOperation.deserializeBinaryFromRea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TransactionalStateOperation.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.InvokeBindingResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6992,93 +7317,92 @@ proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.serializeBinar /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} message + * @param {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.InvokeBindingResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getOperationtype(); + f = message.getData_asU8(); if (f.length > 0) { - writer.writeString( + writer.writeBytes( 1, f ); } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 2, - f, - dapr_proto_common_v1_common_pb.StateItem.serializeBinaryToWriter - ); + f = message.getMetadataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; /** - * optional string operationType = 1; - * @return {string} + * optional bytes data = 1; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.getOperationtype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} returns this + * optional bytes data = 1; + * This is a type-conversion wrapper around `getData()` + * @return {string} */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.setOperationtype = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); }; /** - * optional dapr.proto.common.v1.StateItem request = 2; - * @return {?proto.dapr.proto.common.v1.StateItem} + * 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.TransactionalStateOperation.prototype.getRequest = function() { - return /** @type{?proto.dapr.proto.common.v1.StateItem} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StateItem, 2)); +proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); }; /** - * @param {?proto.dapr.proto.common.v1.StateItem|undefined} value - * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} returns this -*/ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} returns this + */ +proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} returns this + * map metadata = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.clearRequest = function() { - return this.setRequest(undefined); +proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.getMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + null)); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} returns this */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.hasRequest = function() { - return jspb.Message.getField(this, 2) != null; +proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.clearMetadataMap = function() { + this.getMetadataMap().clear(); + return this; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -7094,8 +7418,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetSecretRequest.toObject(opt_includeInstance, this); }; @@ -7104,15 +7428,14 @@ proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.toObject = * @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.ExecuteStateTransactionRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.GetSecretRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetSecretRequest.toObject = function(includeInstance, msg) { var f, obj = { - storename: jspb.Message.getFieldWithDefault(msg, 1, ""), - operationsList: jspb.Message.toObjectList(msg.getOperationsList(), - proto.dapr.proto.runtime.v1.TransactionalStateOperation.toObject, includeInstance), + storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), + key: jspb.Message.getFieldWithDefault(msg, 2, ""), metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] }; @@ -7127,23 +7450,23 @@ proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.toObject = function(i /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} + * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.GetSecretRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest; - return proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.GetSecretRequest; + return proto.dapr.proto.runtime.v1.GetSecretRequest.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.ExecuteStateTransactionRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.GetSecretRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} + * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetSecretRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7152,12 +7475,11 @@ proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.deserializeBinaryFrom switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setStorename(value); + msg.setStoreName(value); break; case 2: - var value = new proto.dapr.proto.runtime.v1.TransactionalStateOperation; - reader.readMessage(value,proto.dapr.proto.runtime.v1.TransactionalStateOperation.deserializeBinaryFromReader); - msg.addOperations(value); + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); break; case 3: var value = msg.getMetadataMap(); @@ -7178,9 +7500,9 @@ proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.deserializeBinaryFrom * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetSecretRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7188,25 +7510,24 @@ proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.serializeBi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} message + * @param {!proto.dapr.proto.runtime.v1.GetSecretRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.GetSecretRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStorename(); + f = message.getStoreName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getOperationsList(); + f = message.getKey(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto.dapr.proto.runtime.v1.TransactionalStateOperation.serializeBinaryToWriter + f ); } f = message.getMetadataMap(true); @@ -7217,58 +7538,38 @@ proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.serializeBinaryToWrit /** - * optional string storeName = 1; + * optional string store_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.getStorename = function() { +proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.getStoreName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} returns this */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.setStorename = function(value) { +proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.setStoreName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * repeated TransactionalStateOperation operations = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.getOperationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.TransactionalStateOperation, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} returns this -*/ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.setOperationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.TransactionalStateOperation=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} + * optional string key = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.addOperations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.TransactionalStateOperation, opt_index); +proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.getKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} returns this */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.clearOperationsList = function() { - return this.setOperationsList([]); +proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.setKey = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -7278,7 +7579,7 @@ proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.clearOperat * empty, instead returning `undefined` * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { +proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( jspb.Message.getMapField(this, 3, opt_noLazyCreate, null)); @@ -7287,11 +7588,12 @@ proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.getMetadata /** * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} returns this */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.clearMetadataMap = function() { +proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); - return this;}; + return this; +}; @@ -7310,8 +7612,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetSecretResponse.toObject(opt_includeInstance, this); }; @@ -7320,20 +7622,13 @@ proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.toObject = funct * @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.RegisterActorTimerRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.GetSecretResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetSecretResponse.toObject = function(includeInstance, msg) { var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - dueTime: jspb.Message.getFieldWithDefault(msg, 4, ""), - period: jspb.Message.getFieldWithDefault(msg, 5, ""), - callback: jspb.Message.getFieldWithDefault(msg, 6, ""), - data: msg.getData_asB64(), - ttl: jspb.Message.getFieldWithDefault(msg, 8, "") + dataMap: (f = msg.getDataMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -7347,23 +7642,23 @@ proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} + * @return {!proto.dapr.proto.runtime.v1.GetSecretResponse} */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.GetSecretResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.RegisterActorTimerRequest; - return proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.GetSecretResponse; + return proto.dapr.proto.runtime.v1.GetSecretResponse.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.RegisterActorTimerRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.GetSecretResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} + * @return {!proto.dapr.proto.runtime.v1.GetSecretResponse} */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetSecretResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7371,36 +7666,10 @@ proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.deserializeBinaryFromReade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setActorType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setActorId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDueTime(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPeriod(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setCallback(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setTtl(value); + var value = msg.getDataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); break; default: reader.skipField(); @@ -7415,9 +7684,9 @@ proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetSecretResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7425,236 +7694,39 @@ proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} message + * @param {!proto.dapr.proto.runtime.v1.GetSecretResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.GetSecretResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getActorType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getActorId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDueTime(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPeriod(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getCallback(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } - f = message.getTtl(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); + f = message.getDataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; /** - * optional string actor_type = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string actor_id = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string due_time = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getDueTime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setDueTime = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string period = 5; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getPeriod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setPeriod = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string callback = 6; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getCallback = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setCallback = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional bytes data = 7; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * optional bytes data = 7; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 7; - * 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.RegisterActorTimerRequest.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - - -/** - * optional string ttl = 8; - * @return {string} + * map data = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getTtl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.getDataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + null)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.GetSecretResponse} returns this */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setTtl = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); +proto.dapr.proto.runtime.v1.GetSecretResponse.prototype.clearDataMap = function() { + this.getDataMap().clear(); + return this; }; @@ -7674,8 +7746,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetBulkSecretRequest.toObject(opt_includeInstance, this); }; @@ -7684,15 +7756,14 @@ proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.toObject = fun * @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.UnregisterActorTimerRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetBulkSecretRequest.toObject = function(includeInstance, msg) { var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, "") + storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), + metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -7706,23 +7777,23 @@ proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.toObject = function(incl /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} + * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.GetBulkSecretRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest; - return proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.GetBulkSecretRequest; + return proto.dapr.proto.runtime.v1.GetBulkSecretRequest.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.UnregisterActorTimerRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} + * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetBulkSecretRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7731,15 +7802,13 @@ proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.deserializeBinaryFromRea switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setActorType(value); + msg.setStoreName(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setActorId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(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(); @@ -7754,9 +7823,9 @@ proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.deserializeBinaryFromRea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetBulkSecretRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7764,87 +7833,64 @@ proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.serializeBinar /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} message + * @param {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.GetBulkSecretRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getActorType(); + f = message.getStoreName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getActorId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getName(); - 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; + * optional string store_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.getActorType = function() { +proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.getStoreName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} returns this */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.setActorType = function(value) { +proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.setStoreName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string actor_id = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string name = 3; - * @return {string} + * map metadata = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + null)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} returns this */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.clearMetadataMap = function() { + this.getMetadataMap().clear(); + return this; }; @@ -7864,8 +7910,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SecretResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SecretResponse.toObject(opt_includeInstance, this); }; @@ -7874,19 +7920,13 @@ proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.toObject = fu * @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.RegisterActorReminderRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SecretResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SecretResponse.toObject = function(includeInstance, msg) { var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - dueTime: jspb.Message.getFieldWithDefault(msg, 4, ""), - period: jspb.Message.getFieldWithDefault(msg, 5, ""), - data: msg.getData_asB64(), - ttl: jspb.Message.getFieldWithDefault(msg, 7, "") + secretsMap: (f = msg.getSecretsMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -7900,23 +7940,23 @@ proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.toObject = function(inc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} + * @return {!proto.dapr.proto.runtime.v1.SecretResponse} */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SecretResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.RegisterActorReminderRequest; - return proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SecretResponse; + return proto.dapr.proto.runtime.v1.SecretResponse.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.RegisterActorReminderRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SecretResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} + * @return {!proto.dapr.proto.runtime.v1.SecretResponse} */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SecretResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7924,32 +7964,10 @@ proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.deserializeBinaryFromRe var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setActorType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setActorId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDueTime(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPeriod(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setTtl(value); + var value = msg.getSecretsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); break; default: reader.skipField(); @@ -7964,9 +7982,9 @@ proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.deserializeBinaryFromRe * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SecretResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SecretResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7974,211 +7992,173 @@ proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.serializeBina /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} message + * @param {!proto.dapr.proto.runtime.v1.SecretResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SecretResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getActorType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getActorId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDueTime(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPeriod(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getTtl(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); + f = message.getSecretsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; /** - * optional string actor_type = 1; - * @return {string} + * map secrets = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.SecretResponse.prototype.getSecretsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + null)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.SecretResponse} returns this */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.SecretResponse.prototype.clearSecretsMap = function() { + this.getSecretsMap().clear(); + return this; }; -/** - * optional string actor_id = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional string name = 3; - * @return {string} + * 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.RegisterActorReminderRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.dapr.proto.runtime.v1.GetBulkSecretResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetBulkSecretResponse.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string due_time = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getDueTime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setDueTime = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string period = 5; - * @return {string} + * 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.GetBulkSecretResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getPeriod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - +proto.dapr.proto.runtime.v1.GetBulkSecretResponse.toObject = function(includeInstance, msg) { + var f, obj = { + dataMap: (f = msg.getDataMap()) ? f.toObject(includeInstance, proto.dapr.proto.runtime.v1.SecretResponse.toObject) : [] + }; -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setPeriod = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional bytes data = 6; - * @return {!(string|Uint8Array)} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretResponse} */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.dapr.proto.runtime.v1.GetBulkSecretResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.GetBulkSecretResponse; + return proto.dapr.proto.runtime.v1.GetBulkSecretResponse.deserializeBinaryFromReader(msg, reader); }; /** - * optional bytes data = 6; - * This is a type-conversion wrapper around `getData()` - * @return {string} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.dapr.proto.runtime.v1.GetBulkSecretResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretResponse} */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); +proto.dapr.proto.runtime.v1.GetBulkSecretResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = msg.getDataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.runtime.v1.SecretResponse.deserializeBinaryFromReader, "", new proto.dapr.proto.runtime.v1.SecretResponse()); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional bytes data = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` + * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); +proto.dapr.proto.runtime.v1.GetBulkSecretResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.GetBulkSecretResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.dapr.proto.runtime.v1.GetBulkSecretResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); +proto.dapr.proto.runtime.v1.GetBulkSecretResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.runtime.v1.SecretResponse.serializeBinaryToWriter); + } }; /** - * optional string ttl = 7; - * @return {string} + * map data = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getTtl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +proto.dapr.proto.runtime.v1.GetBulkSecretResponse.prototype.getDataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + proto.dapr.proto.runtime.v1.SecretResponse)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretResponse} returns this */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setTtl = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); +proto.dapr.proto.runtime.v1.GetBulkSecretResponse.prototype.clearDataMap = function() { + this.getDataMap().clear(); + return this; }; @@ -8198,8 +8178,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.TransactionalStateOperation.toObject(opt_includeInstance, this); }; @@ -8208,15 +8188,14 @@ proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.toObject = * @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.UnregisterActorReminderRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.TransactionalStateOperation.toObject = function(includeInstance, msg) { var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, "") + operationtype: jspb.Message.getFieldWithDefault(msg, 1, ""), + request: (f = msg.getRequest()) && dapr_proto_common_v1_common_pb.StateItem.toObject(includeInstance, f) }; if (includeInstance) { @@ -8230,23 +8209,23 @@ proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.toObject = function(i /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} + * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.TransactionalStateOperation.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest; - return proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.TransactionalStateOperation; + return proto.dapr.proto.runtime.v1.TransactionalStateOperation.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.UnregisterActorReminderRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} + * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.TransactionalStateOperation.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8255,15 +8234,12 @@ proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.deserializeBinaryFrom switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setActorType(value); + msg.setOperationtype(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setActorId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + var value = new dapr_proto_common_v1_common_pb.StateItem; + reader.readMessage(value,dapr_proto_common_v1_common_pb.StateItem.deserializeBinaryFromReader); + msg.setRequest(value); break; default: reader.skipField(); @@ -8278,9 +8254,9 @@ proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.deserializeBinaryFrom * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.TransactionalStateOperation.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8288,91 +8264,93 @@ proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.serializeBi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} message + * @param {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.TransactionalStateOperation.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getActorType(); + f = message.getOperationtype(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getActorId(); - if (f.length > 0) { - writer.writeString( + f = message.getRequest(); + if (f != null) { + writer.writeMessage( 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f + f, + dapr_proto_common_v1_common_pb.StateItem.serializeBinaryToWriter ); } }; /** - * optional string actor_type = 1; + * optional string operationType = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.getActorType = function() { +proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.getOperationtype = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} returns this */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.setActorType = function(value) { +proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.setOperationtype = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string actor_id = 2; - * @return {string} + * optional dapr.proto.common.v1.StateItem request = 2; + * @return {?proto.dapr.proto.common.v1.StateItem} */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.getRequest = function() { + return /** @type{?proto.dapr.proto.common.v1.StateItem} */ ( + jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StateItem, 2)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + * @param {?proto.dapr.proto.common.v1.StateItem|undefined} value + * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} returns this +*/ +proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.setRequest = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional string name = 3; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} returns this */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.clearRequest = function() { + return this.setRequest(undefined); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.hasRequest = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -8388,8 +8366,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.ExecuteStateTransactionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.toObject(opt_includeInstance, this); }; @@ -8398,15 +8376,16 @@ 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.ExecuteStateTransactionRequest} 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.ExecuteStateTransactionRequest.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, "") + storename: jspb.Message.getFieldWithDefault(msg, 1, ""), + operationsList: jspb.Message.toObjectList(msg.getOperationsList(), + proto.dapr.proto.runtime.v1.TransactionalStateOperation.toObject, includeInstance), + metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -8420,23 +8399,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.ExecuteStateTransactionRequest} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.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.ExecuteStateTransactionRequest; + return proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.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.ExecuteStateTransactionRequest} 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.ExecuteStateTransactionRequest} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8445,15 +8424,18 @@ proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinaryFromReader = f switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setActorType(value); + msg.setStorename(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setActorId(value); + var value = new proto.dapr.proto.runtime.v1.TransactionalStateOperation; + reader.readMessage(value,proto.dapr.proto.runtime.v1.TransactionalStateOperation.deserializeBinaryFromReader); + msg.addOperations(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(); @@ -8468,9 +8450,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.ExecuteStateTransactionRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetActorStateRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8478,87 +8460,110 @@ 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.ExecuteStateTransactionRequest} 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.ExecuteStateTransactionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getActorType(); + f = message.getStorename(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getActorId(); + f = message.getOperationsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f + f, + proto.dapr.proto.runtime.v1.TransactionalStateOperation.serializeBinaryToWriter ); } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); + f = message.getMetadataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; /** - * optional string actor_type = 1; + * optional string storeName = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getActorType = function() { +proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.getStorename = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} returns this */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setActorType = function(value) { +proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.setStorename = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string actor_id = 2; - * @return {string} + * repeated TransactionalStateOperation operations = 2; + * @return {!Array} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.getOperationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.TransactionalStateOperation, 2)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} returns this +*/ +proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.setOperationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.dapr.proto.runtime.v1.TransactionalStateOperation=} opt_value + * @param {number=} opt_index + * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.addOperations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.TransactionalStateOperation, opt_index); }; /** - * optional string key = 3; - * @return {string} + * Clears the list making it empty but non-null. + * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} returns this */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.clearOperationsList = function() { + return this.setOperationsList([]); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this + * map metadata = 3; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 3, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} returns this + */ +proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.clearMetadataMap = function() { + this.getMetadataMap().clear(); + return this; }; @@ -8578,8 +8583,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * 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); +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.toObject(opt_includeInstance, this); }; @@ -8588,14 +8593,20 @@ proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.toObject = function( * @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. + * @param {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} 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) { +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.toObject = function(includeInstance, msg) { var f, obj = { + actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), + actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + dueTime: jspb.Message.getFieldWithDefault(msg, 4, ""), + period: jspb.Message.getFieldWithDefault(msg, 5, ""), + callback: jspb.Message.getFieldWithDefault(msg, 6, ""), data: msg.getData_asB64(), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] + ttl: jspb.Message.getFieldWithDefault(msg, 8, "") }; if (includeInstance) { @@ -8609,23 +8620,23 @@ proto.dapr.proto.runtime.v1.GetActorStateResponse.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} + * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.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); + var msg = new proto.dapr.proto.runtime.v1.RegisterActorTimerRequest; + return proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.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 {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} + * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8633,14 +8644,36 @@ proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setActorType(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setActorId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDueTime(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setPeriod(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setCallback(value); + break; + case 7: 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, "", ""); - }); + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setTtl(value); break; default: reader.skipField(); @@ -8655,9 +8688,9 @@ proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetActorStateResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8665,54 +8698,207 @@ proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.serializeBinary = fu /** * 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 {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getActorType(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getActorId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getDueTime(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getPeriod(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getCallback(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } f = message.getData_asU8(); if (f.length > 0) { writer.writeBytes( - 1, + 7, f ); } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + f = message.getTtl(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); } }; /** - * optional bytes data = 1; - * @return {!(string|Uint8Array)} + * optional string actor_type = 1; + * @return {string} */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getActorType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional bytes data = 1; + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setActorType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string actor_id = 2; + * @return {string} + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getActorId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setActorId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string due_time = 4; + * @return {string} + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getDueTime = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setDueTime = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string period = 5; + * @return {string} + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getPeriod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setPeriod = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string callback = 6; + * @return {string} + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getCallback = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setCallback = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional bytes data = 7; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * optional bytes data = 7; * This is a type-conversion wrapper around `getData()` * @return {string} */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData_asB64 = function() { +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getData_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getData())); }; /** - * optional bytes data = 1; + * optional bytes data = 7; * 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() { +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getData_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getData())); }; @@ -8720,42 +8906,31 @@ proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData_asU8 = funct /** * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} returns this + * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 7, value); }; /** - * map metadata = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * optional string ttl = 8; + * @return {string} */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getTtl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - +proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setTtl = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.repeatedFields_ = [3]; @@ -8772,8 +8947,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.toObject(opt_includeInstance, this); }; @@ -8782,16 +8957,15 @@ proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.toObje * @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.ExecuteActorStateTransactionRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.toObject = function(includeInstance, msg) { var f, obj = { actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - operationsList: jspb.Message.toObjectList(msg.getOperationsList(), - proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.toObject, includeInstance) + name: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -8805,23 +8979,23 @@ proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.toObject = funct /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} + * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest; - return proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest; + return proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.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.ExecuteActorStateTransactionRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} + * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8837,9 +9011,8 @@ proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.deserializeBinar msg.setActorId(value); break; case 3: - var value = new proto.dapr.proto.runtime.v1.TransactionalActorStateOperation; - reader.readMessage(value,proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.deserializeBinaryFromReader); - msg.addOperations(value); + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); break; default: reader.skipField(); @@ -8854,9 +9027,9 @@ proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.deserializeBinar * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8864,11 +9037,11 @@ proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.serial /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} message + * @param {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getActorType(); if (f.length > 0) { @@ -8884,12 +9057,11 @@ proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.serializeBinaryT f ); } - f = message.getOperationsList(); + f = message.getName(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 3, - f, - proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.serializeBinaryToWriter + f ); } }; @@ -8899,16 +9071,16 @@ proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.serializeBinaryT * optional string actor_type = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.getActorType = function() { +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.getActorType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} returns this */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.setActorType = function(value) { +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.setActorType = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -8917,55 +9089,35 @@ proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.setAct * optional string actor_id = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.getActorId = function() { +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.getActorId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} returns this */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.setActorId = function(value) { +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.setActorId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * repeated TransactionalActorStateOperation operations = 3; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.getOperationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.TransactionalActorStateOperation, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} returns this -*/ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.setOperationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} + * optional string name = 3; + * @return {string} */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.addOperations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.dapr.proto.runtime.v1.TransactionalActorStateOperation, opt_index); +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} returns this */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.clearOperationsList = function() { - return this.setOperationsList([]); +proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -8985,8 +9137,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.toObject(opt_includeInstance, this); }; @@ -8995,16 +9147,19 @@ proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.toObject * @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.TransactionalActorStateOperation} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.toObject = function(includeInstance, msg) { var f, obj = { - operationtype: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - value: (f = msg.getValue()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] + actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), + actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + dueTime: jspb.Message.getFieldWithDefault(msg, 4, ""), + period: jspb.Message.getFieldWithDefault(msg, 5, ""), + data: msg.getData_asB64(), + ttl: jspb.Message.getFieldWithDefault(msg, 7, "") }; if (includeInstance) { @@ -9018,23 +9173,23 @@ proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.toObject = function /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} + * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TransactionalActorStateOperation; - return proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.RegisterActorReminderRequest; + return proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.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.TransactionalActorStateOperation} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} + * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9043,22 +9198,31 @@ proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.deserializeBinaryFr switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setOperationtype(value); + msg.setActorType(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); + msg.setActorId(value); break; case 3: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.setValue(value); + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); break; case 4: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); + var value = /** @type {string} */ (reader.readString()); + msg.setDueTime(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setPeriod(value); + break; + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setTtl(value); break; default: reader.skipField(); @@ -9073,9 +9237,9 @@ proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.deserializeBinaryFr * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9083,134 +9247,212 @@ proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.serialize /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} message + * @param {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getOperationtype(); + f = message.getActorType(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getKey(); + f = message.getActorId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getValue(); - if (f != null) { - writer.writeMessage( + f = message.getName(); + if (f.length > 0) { + writer.writeString( 3, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter + f ); } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + f = message.getDueTime(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getPeriod(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 6, + f + ); + } + f = message.getTtl(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); } }; /** - * optional string operationType = 1; + * optional string actor_type = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.getOperationtype = function() { +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getActorType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this + * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.setOperationtype = function(value) { +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setActorType = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string key = 2; + * optional string actor_id = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.getKey = function() { +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getActorId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this + * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.setKey = function(value) { +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setActorId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional google.protobuf.Any value = 3; - * @return {?proto.google.protobuf.Any} + * optional string name = 3; + * @return {string} */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.getValue = function() { - return /** @type{?proto.google.protobuf.Any} */ ( - jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 3)); +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {?proto.google.protobuf.Any|undefined} value - * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this -*/ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.setValue = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this + */ +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this + * optional string due_time = 4; + * @return {string} */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.clearValue = function() { - return this.setValue(undefined); +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getDueTime = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.hasValue = function() { - return jspb.Message.getField(this, 3) != null; +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setDueTime = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * map metadata = 4; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * optional string period = 5; + * @return {string} */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 4, opt_noLazyCreate, - null)); +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getPeriod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setPeriod = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional bytes data = 6; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * optional bytes data = 6; + * This is a type-conversion wrapper around `getData()` + * @return {string} + */ +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); +}; + + +/** + * optional bytes data = 6; + * 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.RegisterActorReminderRequest.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this + */ +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 6, value); +}; + + +/** + * optional string ttl = 7; + * @return {string} + */ +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getTtl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this + */ +proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setTtl = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; @@ -9229,8 +9471,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.InvokeActorRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.toObject(opt_includeInstance, this); }; @@ -9239,17 +9481,15 @@ proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.toObject = function(opt * @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.InvokeActorRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.toObject = function(includeInstance, msg) { var f, obj = { actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - method: jspb.Message.getFieldWithDefault(msg, 3, ""), - data: msg.getData_asB64(), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] + name: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -9263,23 +9503,23 @@ proto.dapr.proto.runtime.v1.InvokeActorRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} + * @return {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.InvokeActorRequest; - return proto.dapr.proto.runtime.v1.InvokeActorRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest; + return proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.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.InvokeActorRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} + * @return {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9296,17 +9536,7 @@ proto.dapr.proto.runtime.v1.InvokeActorRequest.deserializeBinaryFromReader = fun break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setMethod(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 5: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); + msg.setName(value); break; default: reader.skipField(); @@ -9321,9 +9551,9 @@ proto.dapr.proto.runtime.v1.InvokeActorRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.InvokeActorRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9331,11 +9561,11 @@ proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.InvokeActorRequest} message + * @param {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getActorType(); if (f.length > 0) { @@ -9351,24 +9581,13 @@ proto.dapr.proto.runtime.v1.InvokeActorRequest.serializeBinaryToWriter = functio f ); } - f = message.getMethod(); + f = message.getName(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } }; @@ -9376,16 +9595,16 @@ proto.dapr.proto.runtime.v1.InvokeActorRequest.serializeBinaryToWriter = functio * optional string actor_type = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getActorType = function() { +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.getActorType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} returns this */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.setActorType = function(value) { +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.setActorType = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -9394,102 +9613,38 @@ proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.setActorType = function * optional string actor_id = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getActorId = function() { +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.getActorId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} returns this */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.setActorId = function(value) { +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.setActorId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string method = 3; + * optional string name = 3; * @return {string} */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getMethod = function() { +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} returns this */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.setMethod = function(value) { +proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * optional bytes data = 4; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes data = 4; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 4; - * 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.InvokeActorRequest.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} returns this - */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * map metadata = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} returns this - */ -proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - @@ -9506,8 +9661,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.InvokeActorResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.InvokeActorResponse.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); }; @@ -9516,13 +9671,15 @@ proto.dapr.proto.runtime.v1.InvokeActorResponse.prototype.toObject = function(op * @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.InvokeActorResponse} 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.InvokeActorResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetActorStateRequest.toObject = function(includeInstance, msg) { var f, obj = { - data: msg.getData_asB64() + actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), + actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), + key: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -9536,23 +9693,23 @@ proto.dapr.proto.runtime.v1.InvokeActorResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.InvokeActorResponse} + * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} */ -proto.dapr.proto.runtime.v1.InvokeActorResponse.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.InvokeActorResponse; - return proto.dapr.proto.runtime.v1.InvokeActorResponse.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.InvokeActorResponse} 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.InvokeActorResponse} + * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} */ -proto.dapr.proto.runtime.v1.InvokeActorResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetActorStateRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9560,8 +9717,16 @@ proto.dapr.proto.runtime.v1.InvokeActorResponse.deserializeBinaryFromReader = fu var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); + var value = /** @type {string} */ (reader.readString()); + msg.setActorType(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); break; default: reader.skipField(); @@ -9576,9 +9741,9 @@ proto.dapr.proto.runtime.v1.InvokeActorResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.InvokeActorResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.InvokeActorResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetActorStateRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9586,61 +9751,87 @@ proto.dapr.proto.runtime.v1.InvokeActorResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.InvokeActorResponse} 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.InvokeActorResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.GetActorStateRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getData_asU8(); + f = message.getActorType(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 1, f ); } + f = message.getActorId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } }; /** - * optional bytes data = 1; - * @return {!(string|Uint8Array)} + * optional string actor_type = 1; + * @return {string} */ -proto.dapr.proto.runtime.v1.InvokeActorResponse.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getActorType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional bytes data = 1; - * This is a type-conversion wrapper around `getData()` + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this + */ +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setActorType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string actor_id = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.InvokeActorResponse.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getActorId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * 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} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this */ -proto.dapr.proto.runtime.v1.InvokeActorResponse.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); +proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setActorId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.InvokeActorResponse} returns this + * optional string key = 3; + * @return {string} */ -proto.dapr.proto.runtime.v1.InvokeActorResponse.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +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); }; @@ -9660,8 +9851,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * 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); +proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetActorStateResponse.toObject(opt_includeInstance, this); }; @@ -9670,13 +9861,14 @@ proto.dapr.proto.runtime.v1.GetMetadataRequest.prototype.toObject = function(opt * @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. + * @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.GetMetadataRequest.toObject = function(includeInstance, msg) { +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) { @@ -9690,29 +9882,39 @@ proto.dapr.proto.runtime.v1.GetMetadataRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataRequest} + * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} */ -proto.dapr.proto.runtime.v1.GetMetadataRequest.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.GetMetadataRequest; - return proto.dapr.proto.runtime.v1.GetMetadataRequest.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.GetMetadataRequest} 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.GetMetadataRequest} + * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} */ -proto.dapr.proto.runtime.v1.GetMetadataRequest.deserializeBinaryFromReader = function(msg, reader) { +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; @@ -9726,9 +9928,9 @@ proto.dapr.proto.runtime.v1.GetMetadataRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetMetadataRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetMetadataRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetActorStateResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9736,12 +9938,88 @@ proto.dapr.proto.runtime.v1.GetMetadataRequest.prototype.serializeBinary = funct /** * 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 {!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.GetMetadataRequest.serializeBinaryToWriter = function(message, writer) { +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); +}; + + +/** + * map metadata = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.clearMetadataMap = function() { + this.getMetadataMap().clear(); + return this; }; @@ -9751,7 +10029,7 @@ proto.dapr.proto.runtime.v1.GetMetadataRequest.serializeBinaryToWriter = functio * @private {!Array} * @const */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.repeatedFields_ = [2,3,5,6,9]; +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.repeatedFields_ = [3]; @@ -9768,8 +10046,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetMetadataResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.toObject(opt_includeInstance, this); }; @@ -9778,26 +10056,16 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.toObject = function(op * @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.GetMetadataResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - activeActorsCountList: jspb.Message.toObjectList(msg.getActiveActorsCountList(), - proto.dapr.proto.runtime.v1.ActiveActorsCount.toObject, includeInstance), - registeredComponentsList: jspb.Message.toObjectList(msg.getRegisteredComponentsList(), - proto.dapr.proto.runtime.v1.RegisteredComponents.toObject, includeInstance), - extendedMetadataMap: (f = msg.getExtendedMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - subscriptionsList: jspb.Message.toObjectList(msg.getSubscriptionsList(), - proto.dapr.proto.runtime.v1.PubsubSubscription.toObject, includeInstance), - httpEndpointsList: jspb.Message.toObjectList(msg.getHttpEndpointsList(), - 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, - actorRuntime: (f = msg.getActorRuntime()) && proto.dapr.proto.runtime.v1.ActorRuntime.toObject(includeInstance, f) + actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), + actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), + operationsList: jspb.Message.toObjectList(msg.getOperationsList(), + proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.toObject, includeInstance) }; if (includeInstance) { @@ -9811,23 +10079,23 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} + * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetMetadataResponse; - return proto.dapr.proto.runtime.v1.GetMetadataResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest; + return proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.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.GetMetadataResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} + * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9836,51 +10104,16 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.deserializeBinaryFromReader = fu switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setActorType(value); break; case 2: - var value = new proto.dapr.proto.runtime.v1.ActiveActorsCount; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ActiveActorsCount.deserializeBinaryFromReader); - msg.addActiveActorsCount(value); - break; - case 3: - var value = new proto.dapr.proto.runtime.v1.RegisteredComponents; - reader.readMessage(value,proto.dapr.proto.runtime.v1.RegisteredComponents.deserializeBinaryFromReader); - msg.addRegisteredComponents(value); - break; - case 4: - var value = msg.getExtendedMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 5: - var value = new proto.dapr.proto.runtime.v1.PubsubSubscription; - reader.readMessage(value,proto.dapr.proto.runtime.v1.PubsubSubscription.deserializeBinaryFromReader); - msg.addSubscriptions(value); - break; - case 6: - var value = new proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint; - reader.readMessage(value,proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.deserializeBinaryFromReader); - msg.addHttpEndpoints(value); - break; - case 7: - var value = new proto.dapr.proto.runtime.v1.AppConnectionProperties; - reader.readMessage(value,proto.dapr.proto.runtime.v1.AppConnectionProperties.deserializeBinaryFromReader); - msg.setAppConnectionProperties(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setRuntimeVersion(value); - break; - case 9: var value = /** @type {string} */ (reader.readString()); - msg.addEnabledFeatures(value); + msg.setActorId(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); + case 3: + var value = new proto.dapr.proto.runtime.v1.TransactionalActorStateOperation; + reader.readMessage(value,proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.deserializeBinaryFromReader); + msg.addOperations(value); break; default: reader.skipField(); @@ -9895,9 +10128,9 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetMetadataResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9905,305 +10138,321 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetMetadataResponse} message + * @param {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getActorType(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getActiveActorsCountList(); + f = message.getActorId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto.dapr.proto.runtime.v1.ActiveActorsCount.serializeBinaryToWriter + f ); } - f = message.getRegisteredComponentsList(); + f = message.getOperationsList(); if (f.length > 0) { writer.writeRepeatedMessage( 3, f, - proto.dapr.proto.runtime.v1.RegisteredComponents.serializeBinaryToWriter - ); - } - f = message.getExtendedMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getSubscriptionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.dapr.proto.runtime.v1.PubsubSubscription.serializeBinaryToWriter - ); - } - f = message.getHttpEndpointsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.serializeBinaryToWriter - ); - } - f = message.getAppConnectionProperties(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.dapr.proto.runtime.v1.AppConnectionProperties.serializeBinaryToWriter - ); - } - f = message.getRuntimeVersion(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getEnabledFeaturesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 9, - f - ); - } - f = message.getActorRuntime(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.dapr.proto.runtime.v1.ActorRuntime.serializeBinaryToWriter + proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.serializeBinaryToWriter ); } }; /** - * optional string id = 1; + * optional string actor_type = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getId = function() { +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.getActorType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} returns this */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setId = function(value) { +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.setActorType = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * repeated ActiveActorsCount active_actors_count = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getActiveActorsCountList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ActiveActorsCount, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this -*/ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setActiveActorsCountList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ActiveActorsCount=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ActiveActorsCount} + * optional string actor_id = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.addActiveActorsCount = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.ActiveActorsCount, opt_index); +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.getActorId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * 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.ExecuteActorStateTransactionRequest} returns this */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearActiveActorsCountList = function() { - return this.setActiveActorsCountList([]); +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.setActorId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * repeated RegisteredComponents registered_components = 3; - * @return {!Array} + * repeated TransactionalActorStateOperation operations = 3; + * @return {!Array} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getRegisteredComponentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.RegisteredComponents, 3)); +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.getOperationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.TransactionalActorStateOperation, 3)); }; /** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} returns this */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setRegisteredComponentsList = function(value) { +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.setOperationsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.dapr.proto.runtime.v1.RegisteredComponents=} opt_value + * @param {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation=} opt_value * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} + * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.addRegisteredComponents = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.dapr.proto.runtime.v1.RegisteredComponents, opt_index); +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.addOperations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.dapr.proto.runtime.v1.TransactionalActorStateOperation, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} returns this */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearRegisteredComponentsList = function() { - return this.setRegisteredComponentsList([]); +proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.clearOperationsList = function() { + return this.setOperationsList([]); }; -/** - * map extended_metadata = 4; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getExtendedMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 4, opt_noLazyCreate, - null)); -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * 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.GetMetadataResponse.prototype.clearExtendedMetadataMap = function() { - this.getExtendedMetadataMap().clear(); - return this;}; +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.toObject(opt_includeInstance, this); +}; /** - * repeated PubsubSubscription subscriptions = 5; - * @return {!Array} + * 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.TransactionalActorStateOperation} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getSubscriptionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.PubsubSubscription, 5)); +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.toObject = function(includeInstance, msg) { + var f, obj = { + operationtype: jspb.Message.getFieldWithDefault(msg, 1, ""), + key: jspb.Message.getFieldWithDefault(msg, 2, ""), + value: (f = msg.getValue()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), + metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this -*/ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setSubscriptionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} + */ +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.TransactionalActorStateOperation; + return proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.deserializeBinaryFromReader(msg, reader); }; /** - * @param {!proto.dapr.proto.runtime.v1.PubsubSubscription=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.addSubscriptions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.dapr.proto.runtime.v1.PubsubSubscription, opt_index); +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setOperationtype(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 3: + var value = new google_protobuf_any_pb.Any; + reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); + msg.setValue(value); + break; + case 4: + 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; }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearSubscriptionsList = function() { - return this.setSubscriptionsList([]); +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * repeated MetadataHTTPEndpoint http_endpoints = 6; - * @return {!Array} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -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.TransactionalActorStateOperation.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOperationtype(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getValue(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_any_pb.Any.serializeBinaryToWriter + ); + } + f = message.getMetadataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } }; /** - * @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); + * optional string operationType = 1; + * @return {string} + */ +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.getOperationtype = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this */ -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.TransactionalActorStateOperation.prototype.setOperationtype = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * optional string key = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearHttpEndpointsList = function() { - return this.setHttpEndpointsList([]); +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.getKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * optional AppConnectionProperties app_connection_properties = 7; - * @return {?proto.dapr.proto.runtime.v1.AppConnectionProperties} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this */ -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.TransactionalActorStateOperation.prototype.setKey = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {?proto.dapr.proto.runtime.v1.AppConnectionProperties|undefined} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * optional google.protobuf.Any value = 3; + * @return {?proto.google.protobuf.Any} + */ +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.getValue = function() { + return /** @type{?proto.google.protobuf.Any} */ ( + jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Any|undefined} value + * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setAppConnectionProperties = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.setValue = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearAppConnectionProperties = function() { - return this.setAppConnectionProperties(undefined); +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.clearValue = function() { + return this.setValue(undefined); }; @@ -10211,100 +10460,2719 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearAppConnectionProp * Returns whether this field is set. * @return {boolean} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.hasAppConnectionProperties = function() { - return jspb.Message.getField(this, 7) != null; +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.hasValue = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional string runtime_version = 8; + * map metadata = 4; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.getMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 4, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this + */ +proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.clearMetadataMap = function() { + this.getMetadataMap().clear(); + return this; +}; + + + + + +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.InvokeActorRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.InvokeActorRequest.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.InvokeActorRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.toObject = function(includeInstance, msg) { + var f, obj = { + actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), + actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), + method: jspb.Message.getFieldWithDefault(msg, 3, ""), + 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.InvokeActorRequest} + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.InvokeActorRequest; + return proto.dapr.proto.runtime.v1.InvokeActorRequest.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.InvokeActorRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setActorType(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setActorId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMethod(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); + break; + case 5: + 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.InvokeActorRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.InvokeActorRequest.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.InvokeActorRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getActorType(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getActorId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getMethod(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getMetadataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } +}; + + +/** + * optional string actor_type = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getRuntimeVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getActorType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} returns this + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.setActorType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string actor_id = 2; + * @return {string} + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getActorId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} returns this + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.setActorId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string method = 3; + * @return {string} + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getMethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} returns this + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.setMethod = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional bytes data = 4; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes data = 4; + * This is a type-conversion wrapper around `getData()` + * @return {string} + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); +}; + + +/** + * optional bytes data = 4; + * 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.InvokeActorRequest.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} returns this + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * map metadata = 5; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 5, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.InvokeActorRequest} returns this + */ +proto.dapr.proto.runtime.v1.InvokeActorRequest.prototype.clearMetadataMap = function() { + this.getMetadataMap().clear(); + return this; +}; + + + + + +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.InvokeActorResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.InvokeActorResponse.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.InvokeActorResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.InvokeActorResponse.toObject = function(includeInstance, msg) { + var f, obj = { + data: msg.getData_asB64() + }; + + 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.InvokeActorResponse} + */ +proto.dapr.proto.runtime.v1.InvokeActorResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.InvokeActorResponse; + return proto.dapr.proto.runtime.v1.InvokeActorResponse.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.InvokeActorResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.InvokeActorResponse} + */ +proto.dapr.proto.runtime.v1.InvokeActorResponse.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.InvokeActorResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.InvokeActorResponse.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.InvokeActorResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.InvokeActorResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } +}; + + +/** + * optional bytes data = 1; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.InvokeActorResponse.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.InvokeActorResponse.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.InvokeActorResponse.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.InvokeActorResponse} returns this + */ +proto.dapr.proto.runtime.v1.InvokeActorResponse.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 1, 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.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} + * @const + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.repeatedFields_ = [2,3,5,6,9]; + + + +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.GetMetadataResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetMetadataResponse.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.GetMetadataResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + activeActorsCountList: jspb.Message.toObjectList(msg.getActiveActorsCountList(), + proto.dapr.proto.runtime.v1.ActiveActorsCount.toObject, includeInstance), + registeredComponentsList: jspb.Message.toObjectList(msg.getRegisteredComponentsList(), + proto.dapr.proto.runtime.v1.RegisteredComponents.toObject, includeInstance), + extendedMetadataMap: (f = msg.getExtendedMetadataMap()) ? f.toObject(includeInstance, undefined) : [], + subscriptionsList: jspb.Message.toObjectList(msg.getSubscriptionsList(), + proto.dapr.proto.runtime.v1.PubsubSubscription.toObject, includeInstance), + httpEndpointsList: jspb.Message.toObjectList(msg.getHttpEndpointsList(), + 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, + actorRuntime: (f = msg.getActorRuntime()) && proto.dapr.proto.runtime.v1.ActorRuntime.toObject(includeInstance, f) + }; + + 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.GetMetadataResponse} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.GetMetadataResponse; + return proto.dapr.proto.runtime.v1.GetMetadataResponse.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.GetMetadataResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new proto.dapr.proto.runtime.v1.ActiveActorsCount; + reader.readMessage(value,proto.dapr.proto.runtime.v1.ActiveActorsCount.deserializeBinaryFromReader); + msg.addActiveActorsCount(value); + break; + case 3: + var value = new proto.dapr.proto.runtime.v1.RegisteredComponents; + reader.readMessage(value,proto.dapr.proto.runtime.v1.RegisteredComponents.deserializeBinaryFromReader); + msg.addRegisteredComponents(value); + break; + case 4: + var value = msg.getExtendedMetadataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 5: + var value = new proto.dapr.proto.runtime.v1.PubsubSubscription; + reader.readMessage(value,proto.dapr.proto.runtime.v1.PubsubSubscription.deserializeBinaryFromReader); + msg.addSubscriptions(value); + break; + case 6: + var value = new proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint; + reader.readMessage(value,proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.deserializeBinaryFromReader); + msg.addHttpEndpoints(value); + break; + case 7: + var value = new proto.dapr.proto.runtime.v1.AppConnectionProperties; + reader.readMessage(value,proto.dapr.proto.runtime.v1.AppConnectionProperties.deserializeBinaryFromReader); + msg.setAppConnectionProperties(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setRuntimeVersion(value); + break; + case 9: + 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; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.GetMetadataResponse.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.GetMetadataResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getActiveActorsCountList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.dapr.proto.runtime.v1.ActiveActorsCount.serializeBinaryToWriter + ); + } + f = message.getRegisteredComponentsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.dapr.proto.runtime.v1.RegisteredComponents.serializeBinaryToWriter + ); + } + f = message.getExtendedMetadataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getSubscriptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto.dapr.proto.runtime.v1.PubsubSubscription.serializeBinaryToWriter + ); + } + f = message.getHttpEndpointsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.serializeBinaryToWriter + ); + } + f = message.getAppConnectionProperties(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.dapr.proto.runtime.v1.AppConnectionProperties.serializeBinaryToWriter + ); + } + f = message.getRuntimeVersion(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getEnabledFeaturesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 9, + f + ); + } + f = message.getActorRuntime(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.dapr.proto.runtime.v1.ActorRuntime.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated ActiveActorsCount active_actors_count = 2; + * @return {!Array} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getActiveActorsCountList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ActiveActorsCount, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this +*/ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setActiveActorsCountList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @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.addActiveActorsCount = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.ActiveActorsCount, 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.clearActiveActorsCountList = function() { + return this.setActiveActorsCountList([]); +}; + + +/** + * repeated RegisteredComponents registered_components = 3; + * @return {!Array} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getRegisteredComponentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.RegisteredComponents, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this +*/ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setRegisteredComponentsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.dapr.proto.runtime.v1.RegisteredComponents=} opt_value + * @param {number=} opt_index + * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.addRegisteredComponents = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.dapr.proto.runtime.v1.RegisteredComponents, 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.clearRegisteredComponentsList = function() { + return this.setRegisteredComponentsList([]); +}; + + +/** + * map extended_metadata = 4; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getExtendedMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 4, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearExtendedMetadataMap = function() { + this.getExtendedMetadataMap().clear(); + return this; +}; + + +/** + * repeated PubsubSubscription subscriptions = 5; + * @return {!Array} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getSubscriptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.PubsubSubscription, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this +*/ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setSubscriptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.dapr.proto.runtime.v1.PubsubSubscription=} opt_value + * @param {number=} opt_index + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} + */ +proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.addSubscriptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.dapr.proto.runtime.v1.PubsubSubscription, 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.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.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); +}; + + +/** + * 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.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; +}; + + +/** + * 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(); +}; + + +/** + * 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.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 + ); + } +}; + + +/** + * @enum {number} + */ +proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus = { + INITIALIZING: 0, + DISABLED: 1, + RUNNING: 2 +}; + +/** + * optional ActorRuntimeStatus runtime_status = 1; + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus} + */ +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.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); +}; + + +/** + * repeated ActiveActorsCount active_actors = 2; + * @return {!Array} + */ +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.getActiveActorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ActiveActorsCount, 2)); +}; + + +/** + * @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); +}; + + +/** + * @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.ActorRuntime.prototype.addActiveActors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.ActiveActorsCount, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this + */ +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.clearActiveActorsList = function() { + return this.setActiveActorsList([]); +}; + + +/** + * optional bool host_ready = 3; + * @return {boolean} + */ +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.getHostReady = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this + */ +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.setHostReady = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional string placement = 4; + * @return {string} + */ +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.getPlacement = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this + */ +proto.dapr.proto.runtime.v1.ActorRuntime.prototype.setPlacement = function(value) { + return jspb.Message.setProto3StringField(this, 4, 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.ActiveActorsCount.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.ActiveActorsCount.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.ActiveActorsCount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.ActiveActorsCount.toObject = function(includeInstance, msg) { + var f, obj = { + type: jspb.Message.getFieldWithDefault(msg, 1, ""), + count: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + 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.ActiveActorsCount} + */ +proto.dapr.proto.runtime.v1.ActiveActorsCount.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.ActiveActorsCount; + return proto.dapr.proto.runtime.v1.ActiveActorsCount.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.ActiveActorsCount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.ActiveActorsCount} + */ +proto.dapr.proto.runtime.v1.ActiveActorsCount.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.ActiveActorsCount.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.ActiveActorsCount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.ActiveActorsCount.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCount(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * optional string type = 1; + * @return {string} + */ +proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.ActiveActorsCount} returns this + */ +proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int32 count = 2; + * @return {number} + */ +proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.getCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.dapr.proto.runtime.v1.ActiveActorsCount} returns this + */ +proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.setCount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.repeatedFields_ = [4]; + + + +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.RegisteredComponents.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.RegisteredComponents.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.RegisteredComponents} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + type: jspb.Message.getFieldWithDefault(msg, 2, ""), + version: jspb.Message.getFieldWithDefault(msg, 3, ""), + capabilitiesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + }; + + 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.RegisteredComponents} + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.RegisteredComponents; + return proto.dapr.proto.runtime.v1.RegisteredComponents.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.RegisteredComponents} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVersion(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addCapabilities(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.RegisteredComponents.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.RegisteredComponents} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getVersion(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getCapabilitiesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string type = 2; + * @return {string} + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string version = 3; + * @return {string} + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.getVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.setVersion = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated string capabilities = 4; + * @return {!Array} + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.getCapabilitiesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.setCapabilitiesList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.addCapabilities = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this + */ +proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.clearCapabilitiesList = function() { + return this.setCapabilitiesList([]); +}; + + + + + +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.MetadataHTTPEndpoint.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.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.MetadataHTTPEndpoint} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + 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.MetadataHTTPEndpoint} + */ +proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint; + return proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.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.MetadataHTTPEndpoint} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint} + */ +proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.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.MetadataHTTPEndpoint} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint} returns this + */ +proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, 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.AppConnectionProperties.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.AppConnectionProperties.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.AppConnectionProperties} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.toObject = function(includeInstance, msg) { + var f, obj = { + port: jspb.Message.getFieldWithDefault(msg, 1, 0), + protocol: jspb.Message.getFieldWithDefault(msg, 2, ""), + channelAddress: jspb.Message.getFieldWithDefault(msg, 3, ""), + maxConcurrency: jspb.Message.getFieldWithDefault(msg, 4, 0), + health: (f = msg.getHealth()) && proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.toObject(includeInstance, f) + }; + + 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.AppConnectionProperties} + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.AppConnectionProperties; + return proto.dapr.proto.runtime.v1.AppConnectionProperties.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.AppConnectionProperties} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setPort(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setProtocol(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setChannelAddress(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxConcurrency(value); + break; + case 5: + var value = new proto.dapr.proto.runtime.v1.AppConnectionHealthProperties; + reader.readMessage(value,proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.deserializeBinaryFromReader); + msg.setHealth(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.AppConnectionProperties.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.AppConnectionProperties} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPort(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getProtocol(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getChannelAddress(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getMaxConcurrency(); + if (f !== 0) { + writer.writeInt32( + 4, + f + ); + } + f = message.getHealth(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 port = 1; + * @return {number} + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.getPort = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.setPort = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string protocol = 2; + * @return {string} + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.getProtocol = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.setProtocol = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string channel_address = 3; + * @return {string} + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.getChannelAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.setChannelAddress = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional int32 max_concurrency = 4; + * @return {number} + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.getMaxConcurrency = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.setMaxConcurrency = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional AppConnectionHealthProperties health = 5; + * @return {?proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.getHealth = function() { + return /** @type{?proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} */ ( + jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.AppConnectionHealthProperties, 5)); +}; + + +/** + * @param {?proto.dapr.proto.runtime.v1.AppConnectionHealthProperties|undefined} value + * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this +*/ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.setHealth = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.clearHealth = function() { + return this.setHealth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.hasHealth = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + + + +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.AppConnectionHealthProperties.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.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.AppConnectionHealthProperties} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.toObject = function(includeInstance, msg) { + var f, obj = { + healthCheckPath: jspb.Message.getFieldWithDefault(msg, 1, ""), + healthProbeInterval: jspb.Message.getFieldWithDefault(msg, 2, ""), + healthProbeTimeout: jspb.Message.getFieldWithDefault(msg, 3, ""), + healthThreshold: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + 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.AppConnectionHealthProperties} + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.AppConnectionHealthProperties; + return proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.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.AppConnectionHealthProperties} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setHealthCheckPath(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setHealthProbeInterval(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setHealthProbeTimeout(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setHealthThreshold(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.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.AppConnectionHealthProperties} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHealthCheckPath(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getHealthProbeInterval(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getHealthProbeTimeout(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getHealthThreshold(); + if (f !== 0) { + writer.writeInt32( + 4, + f + ); + } +}; + + +/** + * optional string health_check_path = 1; + * @return {string} + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.getHealthCheckPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} returns this + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.setHealthCheckPath = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string health_probe_interval = 2; + * @return {string} + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.getHealthProbeInterval = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} returns this + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.setHealthProbeInterval = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string health_probe_timeout = 3; + * @return {string} + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.getHealthProbeTimeout = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} returns this + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.setHealthProbeTimeout = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional int32 health_threshold = 4; + * @return {number} + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.getHealthThreshold = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} returns this + */ +proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.setHealthThreshold = function(value) { + return jspb.Message.setProto3IntField(this, 4, 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.PubsubSubscription.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.PubsubSubscription.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.PubsubSubscription} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.PubsubSubscription.toObject = function(includeInstance, msg) { + var f, obj = { + pubsubName: jspb.Message.getFieldWithDefault(msg, 1, ""), + topic: jspb.Message.getFieldWithDefault(msg, 2, ""), + metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], + rules: (f = msg.getRules()) && proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.toObject(includeInstance, f), + deadLetterTopic: jspb.Message.getFieldWithDefault(msg, 5, ""), + type: jspb.Message.getFieldWithDefault(msg, 6, 0) + }; + + 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.PubsubSubscription} + */ +proto.dapr.proto.runtime.v1.PubsubSubscription.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.PubsubSubscription; + return proto.dapr.proto.runtime.v1.PubsubSubscription.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.PubsubSubscription} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} + */ +proto.dapr.proto.runtime.v1.PubsubSubscription.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPubsubName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setTopic(value); + break; + case 3: + 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; + case 4: + var value = new proto.dapr.proto.runtime.v1.PubsubSubscriptionRules; + reader.readMessage(value,proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.deserializeBinaryFromReader); + msg.setRules(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setDeadLetterTopic(value); + break; + case 6: + var value = /** @type {!proto.dapr.proto.runtime.v1.PubsubSubscriptionType} */ (reader.readEnum()); + msg.setType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.PubsubSubscription.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.PubsubSubscription} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.PubsubSubscription.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPubsubName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getTopic(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getMetadataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getRules(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.serializeBinaryToWriter + ); + } + f = message.getDeadLetterTopic(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 6, + f + ); + } +}; + + +/** + * optional string pubsub_name = 1; + * @return {string} + */ +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getPubsubName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this + */ +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.setPubsubName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string topic = 2; + * @return {string} + */ +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getTopic = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this + */ +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.setTopic = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * map metadata = 3; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 3, opt_noLazyCreate, + null)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setRuntimeVersion = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.clearMetadataMap = function() { + this.getMetadataMap().clear(); + return this; }; /** - * repeated string enabled_features = 9; - * @return {!Array} + * optional PubsubSubscriptionRules rules = 4; + * @return {?proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getEnabledFeaturesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getRules = function() { + return /** @type{?proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} */ ( + jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.PubsubSubscriptionRules, 4)); }; /** - * @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 {?proto.dapr.proto.runtime.v1.PubsubSubscriptionRules|undefined} value + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this +*/ +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.setRules = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this */ -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.PubsubSubscription.prototype.clearRules = function() { + return this.setRules(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearEnabledFeaturesList = function() { - return this.setEnabledFeaturesList([]); +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.hasRules = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional ActorRuntime actor_runtime = 10; - * @return {?proto.dapr.proto.runtime.v1.ActorRuntime} + * optional string dead_letter_topic = 5; + * @return {string} */ -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)); +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getDeadLetterTopic = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * @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); + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this + */ +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.setDeadLetterTopic = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this + * optional PubsubSubscriptionType type = 6; + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionType} */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearActorRuntime = function() { - return this.setActorRuntime(undefined); +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getType = function() { + return /** @type {!proto.dapr.proto.runtime.v1.PubsubSubscriptionType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!proto.dapr.proto.runtime.v1.PubsubSubscriptionType} value + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.hasActorRuntime = function() { - return jspb.Message.getField(this, 10) != null; +proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -10314,7 +13182,7 @@ proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.hasActorRuntime = func * @private {!Array} * @const */ -proto.dapr.proto.runtime.v1.ActorRuntime.repeatedFields_ = [2]; +proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.repeatedFields_ = [1]; @@ -10331,8 +13199,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * 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); +proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.toObject(opt_includeInstance, this); }; @@ -10341,17 +13209,14 @@ proto.dapr.proto.runtime.v1.ActorRuntime.prototype.toObject = function(opt_inclu * @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. + * @param {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} 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) { +proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.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, "") + rulesList: jspb.Message.toObjectList(msg.getRulesList(), + proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.toObject, includeInstance) }; if (includeInstance) { @@ -10365,23 +13230,23 @@ proto.dapr.proto.runtime.v1.ActorRuntime.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} */ -proto.dapr.proto.runtime.v1.ActorRuntime.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.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); + var msg = new proto.dapr.proto.runtime.v1.PubsubSubscriptionRules; + return proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.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.ActorRuntime} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} */ -proto.dapr.proto.runtime.v1.ActorRuntime.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10389,21 +13254,9 @@ proto.dapr.proto.runtime.v1.ActorRuntime.deserializeBinaryFromReader = function( 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); + var value = new proto.dapr.proto.runtime.v1.PubsubSubscriptionRule; + reader.readMessage(value,proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.deserializeBinaryFromReader); + msg.addRules(value); break; default: reader.skipField(); @@ -10418,9 +13271,9 @@ proto.dapr.proto.runtime.v1.ActorRuntime.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.ActorRuntime.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ActorRuntime.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10428,142 +13281,218 @@ proto.dapr.proto.runtime.v1.ActorRuntime.prototype.serializeBinary = function() /** * 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 {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.ActorRuntime.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getRuntimeStatus(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getActiveActorsList(); + f = message.getRulesList(); if (f.length > 0) { writer.writeRepeatedMessage( - 2, + 1, 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 + proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.serializeBinaryToWriter ); } }; /** - * @enum {number} + * repeated PubsubSubscriptionRule rules = 1; + * @return {!Array} */ -proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus = { - INITIALIZING: 0, - DISABLED: 1, - RUNNING: 2 +proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.getRulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.PubsubSubscriptionRule, 1)); }; + /** - * optional ActorRuntimeStatus runtime_status = 1; - * @return {!proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus} + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} returns this +*/ +proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.setRulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule=} opt_value + * @param {number=} opt_index + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} */ -proto.dapr.proto.runtime.v1.ActorRuntime.prototype.getRuntimeStatus = function() { - return /** @type {!proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.addRules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.PubsubSubscriptionRule, opt_index); }; /** - * @param {!proto.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus} value - * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this + * Clears the list making it empty but non-null. + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} returns this */ -proto.dapr.proto.runtime.v1.ActorRuntime.prototype.setRuntimeStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); +proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.clearRulesList = function() { + return this.setRulesList([]); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * repeated ActiveActorsCount active_actors = 2; - * @return {!Array} + * 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.getActiveActorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ActiveActorsCount, 2)); +proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.toObject(opt_includeInstance, this); }; /** - * @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); + * 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.PubsubSubscriptionRule} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.toObject = function(includeInstance, msg) { + var f, obj = { + match: jspb.Message.getFieldWithDefault(msg, 1, ""), + path: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + 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.PubsubSubscriptionRule} + */ +proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.PubsubSubscriptionRule; + return proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.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.PubsubSubscriptionRule} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} + */ +proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMatch(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPath(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {!proto.dapr.proto.runtime.v1.ActiveActorsCount=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ActiveActorsCount} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -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); +proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.ActorRuntime.prototype.clearActiveActorsList = function() { - return this.setActiveActorsList([]); +proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMatch(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPath(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } }; /** - * optional bool host_ready = 3; - * @return {boolean} + * optional string match = 1; + * @return {string} */ -proto.dapr.proto.runtime.v1.ActorRuntime.prototype.getHostReady = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.getMatch = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} returns this */ -proto.dapr.proto.runtime.v1.ActorRuntime.prototype.setHostReady = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.setMatch = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string placement = 4; + * optional string path = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.ActorRuntime.prototype.getPlacement = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.getPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ActorRuntime} returns this + * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} returns this */ -proto.dapr.proto.runtime.v1.ActorRuntime.prototype.setPlacement = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.setPath = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -10583,8 +13512,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ActiveActorsCount.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SetMetadataRequest.toObject(opt_includeInstance, this); }; @@ -10593,14 +13522,14 @@ proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.toObject = function(opt_ * @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.ActiveActorsCount} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SetMetadataRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.ActiveActorsCount.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SetMetadataRequest.toObject = function(includeInstance, msg) { var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - count: jspb.Message.getFieldWithDefault(msg, 2, 0) + key: jspb.Message.getFieldWithDefault(msg, 1, ""), + value: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -10614,23 +13543,23 @@ proto.dapr.proto.runtime.v1.ActiveActorsCount.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.ActiveActorsCount} + * @return {!proto.dapr.proto.runtime.v1.SetMetadataRequest} */ -proto.dapr.proto.runtime.v1.ActiveActorsCount.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SetMetadataRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ActiveActorsCount; - return proto.dapr.proto.runtime.v1.ActiveActorsCount.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SetMetadataRequest; + return proto.dapr.proto.runtime.v1.SetMetadataRequest.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.ActiveActorsCount} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SetMetadataRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ActiveActorsCount} + * @return {!proto.dapr.proto.runtime.v1.SetMetadataRequest} */ -proto.dapr.proto.runtime.v1.ActiveActorsCount.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SetMetadataRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10639,11 +13568,11 @@ proto.dapr.proto.runtime.v1.ActiveActorsCount.deserializeBinaryFromReader = func switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setType(value); + msg.setKey(value); break; case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCount(value); + var value = /** @type {string} */ (reader.readString()); + msg.setValue(value); break; default: reader.skipField(); @@ -10658,9 +13587,9 @@ proto.dapr.proto.runtime.v1.ActiveActorsCount.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ActiveActorsCount.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SetMetadataRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10668,22 +13597,22 @@ proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.ActiveActorsCount} message + * @param {!proto.dapr.proto.runtime.v1.SetMetadataRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.ActiveActorsCount.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SetMetadataRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getType(); + f = message.getKey(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getCount(); - if (f !== 0) { - writer.writeInt32( + f = message.getValue(); + if (f.length > 0) { + writer.writeString( 2, f ); @@ -10692,38 +13621,38 @@ proto.dapr.proto.runtime.v1.ActiveActorsCount.serializeBinaryToWriter = function /** - * optional string type = 1; + * optional string key = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.getType = function() { +proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.getKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ActiveActorsCount} returns this + * @return {!proto.dapr.proto.runtime.v1.SetMetadataRequest} returns this */ -proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.setType = function(value) { +proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.setKey = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional int32 count = 2; - * @return {number} + * optional string value = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.getValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ActiveActorsCount} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SetMetadataRequest} returns this */ -proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.setValue = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -10733,7 +13662,7 @@ proto.dapr.proto.runtime.v1.ActiveActorsCount.prototype.setCount = function(valu * @private {!Array} * @const */ -proto.dapr.proto.runtime.v1.RegisteredComponents.repeatedFields_ = [4]; +proto.dapr.proto.runtime.v1.GetConfigurationRequest.repeatedFields_ = [2]; @@ -10750,8 +13679,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.RegisteredComponents.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetConfigurationRequest.toObject(opt_includeInstance, this); }; @@ -10760,16 +13689,15 @@ proto.dapr.proto.runtime.v1.RegisteredComponents.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.RegisteredComponents} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RegisteredComponents.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetConfigurationRequest.toObject = function(includeInstance, msg) { var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: jspb.Message.getFieldWithDefault(msg, 2, ""), - version: jspb.Message.getFieldWithDefault(msg, 3, ""), - capabilitiesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), + keysList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -10783,23 +13711,23 @@ proto.dapr.proto.runtime.v1.RegisteredComponents.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} + * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} */ -proto.dapr.proto.runtime.v1.RegisteredComponents.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.GetConfigurationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.RegisteredComponents; - return proto.dapr.proto.runtime.v1.RegisteredComponents.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.GetConfigurationRequest; + return proto.dapr.proto.runtime.v1.GetConfigurationRequest.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.RegisteredComponents} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} + * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} */ -proto.dapr.proto.runtime.v1.RegisteredComponents.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10808,19 +13736,17 @@ proto.dapr.proto.runtime.v1.RegisteredComponents.deserializeBinaryFromReader = f switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + msg.setStoreName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setType(value); + msg.addKeys(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addCapabilities(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(); @@ -10835,9 +13761,9 @@ proto.dapr.proto.runtime.v1.RegisteredComponents.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.RegisteredComponents.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetConfigurationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10845,131 +13771,108 @@ proto.dapr.proto.runtime.v1.RegisteredComponents.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.RegisteredComponents} message + * @param {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RegisteredComponents.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.GetConfigurationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getName(); + f = message.getStoreName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getCapabilitiesList(); + f = message.getKeysList(); if (f.length > 0) { writer.writeRepeatedString( - 4, + 2, f ); } + f = message.getMetadataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } }; /** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this - */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string type = 2; + * optional string store_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.getStoreName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this + * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.setStoreName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string version = 3; - * @return {string} + * repeated string keys = 2; + * @return {!Array} */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.getKeysList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.setKeysList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * repeated string capabilities = 4; - * @return {!Array} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.getCapabilitiesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.addKeys = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this + * Clears the list making it empty but non-null. + * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.setCapabilitiesList = function(value) { - return jspb.Message.setField(this, 4, value || []); +proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.clearKeysList = function() { + return this.setKeysList([]); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this + * map metadata = 3; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.addCapabilities = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 3, opt_noLazyCreate, + null)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.RegisteredComponents} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.RegisteredComponents.prototype.clearCapabilitiesList = function() { - return this.setCapabilitiesList([]); +proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.clearMetadataMap = function() { + this.getMetadataMap().clear(); + return this; }; @@ -10989,8 +13892,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetConfigurationResponse.toObject(opt_includeInstance, this); }; @@ -10999,13 +13902,13 @@ proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.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.MetadataHTTPEndpoint} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.GetConfigurationResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetConfigurationResponse.toObject = function(includeInstance, msg) { var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, "") + itemsMap: (f = msg.getItemsMap()) ? f.toObject(includeInstance, proto.dapr.proto.common.v1.ConfigurationItem.toObject) : [] }; if (includeInstance) { @@ -11019,23 +13922,23 @@ proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint} + * @return {!proto.dapr.proto.runtime.v1.GetConfigurationResponse} */ -proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.GetConfigurationResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint; - return proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.GetConfigurationResponse; + return proto.dapr.proto.runtime.v1.GetConfigurationResponse.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.MetadataHTTPEndpoint} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.GetConfigurationResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint} + * @return {!proto.dapr.proto.runtime.v1.GetConfigurationResponse} */ -proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11043,8 +13946,10 @@ proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + var value = msg.getItemsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.common.v1.ConfigurationItem.deserializeBinaryFromReader, "", new proto.dapr.proto.common.v1.ConfigurationItem()); + }); break; default: reader.skipField(); @@ -11059,9 +13964,9 @@ proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetConfigurationResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11069,41 +13974,50 @@ proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.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.MetadataHTTPEndpoint} message + * @param {!proto.dapr.proto.runtime.v1.GetConfigurationResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.GetConfigurationResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); + f = message.getItemsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.common.v1.ConfigurationItem.serializeBinaryToWriter); } }; /** - * optional string name = 1; - * @return {string} + * map items = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.getItemsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + proto.dapr.proto.common.v1.ConfigurationItem)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.GetConfigurationResponse} returns this */ -proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.clearItemsMap = function() { + this.getItemsMap().clear(); + return this; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -11119,8 +14033,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.AppConnectionProperties.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.toObject(opt_includeInstance, this); }; @@ -11129,17 +14043,15 @@ proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.toObject = functio * @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.AppConnectionProperties} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.toObject = function(includeInstance, msg) { var f, obj = { - port: jspb.Message.getFieldWithDefault(msg, 1, 0), - protocol: jspb.Message.getFieldWithDefault(msg, 2, ""), - channelAddress: jspb.Message.getFieldWithDefault(msg, 3, ""), - maxConcurrency: jspb.Message.getFieldWithDefault(msg, 4, 0), - health: (f = msg.getHealth()) && proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.toObject(includeInstance, f) + storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), + keysList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -11153,23 +14065,23 @@ proto.dapr.proto.runtime.v1.AppConnectionProperties.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} + * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.AppConnectionProperties; - return proto.dapr.proto.runtime.v1.AppConnectionProperties.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest; + return proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.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.AppConnectionProperties} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} + * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11177,200 +14089,144 @@ proto.dapr.proto.runtime.v1.AppConnectionProperties.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPort(value); + var value = /** @type {string} */ (reader.readString()); + msg.setStoreName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setProtocol(value); + msg.addKeys(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setChannelAddress(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxConcurrency(value); - break; - case 5: - var value = new proto.dapr.proto.runtime.v1.AppConnectionHealthProperties; - reader.readMessage(value,proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.deserializeBinaryFromReader); - msg.setHealth(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(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.AppConnectionProperties.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.AppConnectionProperties} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPort(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getProtocol(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getChannelAddress(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getMaxConcurrency(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = message.getHealth(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.serializeBinaryToWriter - ); + break; + } } + return msg; }; /** - * optional int32 port = 1; - * @return {number} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStoreName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getKeysList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getMetadataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } }; /** - * optional string protocol = 2; + * optional string store_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.getProtocol = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.getStoreName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this - */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.setProtocol = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string channel_address = 3; - * @return {string} + * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.getChannelAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.setStoreName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this + * repeated string keys = 2; + * @return {!Array} */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.setChannelAddress = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.getKeysList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * optional int32 max_concurrency = 4; - * @return {number} + * @param {!Array} value + * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.getMaxConcurrency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.setKeysList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.setMaxConcurrency = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.addKeys = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * optional AppConnectionHealthProperties health = 5; - * @return {?proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} + * Clears the list making it empty but non-null. + * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.getHealth = function() { - return /** @type{?proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.AppConnectionHealthProperties, 5)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.AppConnectionHealthProperties|undefined} value - * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this -*/ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.setHealth = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.clearKeysList = function() { + return this.setKeysList([]); }; /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.AppConnectionProperties} returns this + * map metadata = 3; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.clearHealth = function() { - return this.setHealth(undefined); +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 3, opt_noLazyCreate, + null)); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.AppConnectionProperties.prototype.hasHealth = function() { - return jspb.Message.getField(this, 5) != null; +proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.clearMetadataMap = function() { + this.getMetadataMap().clear(); + return this; }; @@ -11390,8 +14246,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.toObject(opt_includeInstance, this); }; @@ -11400,16 +14256,14 @@ proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.toObject = f * @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.AppConnectionHealthProperties} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.toObject = function(includeInstance, msg) { var f, obj = { - healthCheckPath: jspb.Message.getFieldWithDefault(msg, 1, ""), - healthProbeInterval: jspb.Message.getFieldWithDefault(msg, 2, ""), - healthProbeTimeout: jspb.Message.getFieldWithDefault(msg, 3, ""), - healthThreshold: jspb.Message.getFieldWithDefault(msg, 4, 0) + storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), + id: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -11423,23 +14277,23 @@ proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.toObject = function(in /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} + * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.AppConnectionHealthProperties; - return proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest; + return proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.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.AppConnectionHealthProperties} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} + * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11448,19 +14302,11 @@ proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.deserializeBinaryFromR switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setHealthCheckPath(value); + msg.setStoreName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setHealthProbeInterval(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setHealthProbeTimeout(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setHealthThreshold(value); + msg.setId(value); break; default: reader.skipField(); @@ -11475,9 +14321,9 @@ proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.deserializeBinaryFromR * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11485,115 +14331,65 @@ proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.serializeBin /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} message + * @param {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getHealthCheckPath(); + f = message.getStoreName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getHealthProbeInterval(); + f = message.getId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getHealthProbeTimeout(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getHealthThreshold(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } }; /** - * optional string health_check_path = 1; + * optional string store_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.getHealthCheckPath = function() { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.getStoreName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} returns this + * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.setHealthCheckPath = function(value) { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.setStoreName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string health_probe_interval = 2; + * optional string id = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.getHealthProbeInterval = function() { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} returns this + * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} returns this */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.setHealthProbeInterval = function(value) { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * optional string health_probe_timeout = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.getHealthProbeTimeout = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} returns this - */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.setHealthProbeTimeout = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional int32 health_threshold = 4; - * @return {number} - */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.getHealthThreshold = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.AppConnectionHealthProperties} returns this - */ -proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.prototype.setHealthThreshold = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - @@ -11610,8 +14406,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PubsubSubscription.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.toObject(opt_includeInstance, this); }; @@ -11620,17 +14416,14 @@ proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.toObject = function(opt * @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.PubsubSubscription} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.PubsubSubscription.toObject = function(includeInstance, msg) { - var f, obj = { - pubsubName: jspb.Message.getFieldWithDefault(msg, 1, ""), - topic: jspb.Message.getFieldWithDefault(msg, 2, ""), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - rules: (f = msg.getRules()) && proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.toObject(includeInstance, f), - deadLetterTopic: jspb.Message.getFieldWithDefault(msg, 5, "") +proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + itemsMap: (f = msg.getItemsMap()) ? f.toObject(includeInstance, proto.dapr.proto.common.v1.ConfigurationItem.toObject) : [] }; if (includeInstance) { @@ -11644,23 +14437,23 @@ proto.dapr.proto.runtime.v1.PubsubSubscription.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} + * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} */ -proto.dapr.proto.runtime.v1.PubsubSubscription.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.PubsubSubscription; - return proto.dapr.proto.runtime.v1.PubsubSubscription.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse; + return proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.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.PubsubSubscription} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} + * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} */ -proto.dapr.proto.runtime.v1.PubsubSubscription.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11669,27 +14462,14 @@ proto.dapr.proto.runtime.v1.PubsubSubscription.deserializeBinaryFromReader = fun switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setPubsubName(value); + msg.setId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTopic(value); - break; - case 3: - var value = msg.getMetadataMap(); + var value = msg.getItemsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.common.v1.ConfigurationItem.deserializeBinaryFromReader, "", new proto.dapr.proto.common.v1.ConfigurationItem()); }); break; - case 4: - var value = new proto.dapr.proto.runtime.v1.PubsubSubscriptionRules; - reader.readMessage(value,proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.deserializeBinaryFromReader); - msg.setRules(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDeadLetterTopic(value); - break; default: reader.skipField(); break; @@ -11703,9 +14483,9 @@ proto.dapr.proto.runtime.v1.PubsubSubscription.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.PubsubSubscription.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11713,169 +14493,68 @@ proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.PubsubSubscription} message + * @param {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.PubsubSubscription.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPubsubName(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getTopic(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getMetadataMap(true); + f = message.getItemsMap(true); if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getRules(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.serializeBinaryToWriter - ); - } - f = message.getDeadLetterTopic(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.common.v1.ConfigurationItem.serializeBinaryToWriter); } }; /** - * optional string pubsub_name = 1; + * optional string id = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getPubsubName = function() { +proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this + * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} returns this */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.setPubsubName = function(value) { +proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string topic = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getTopic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this - */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.setTopic = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * map metadata = 3; + * map items = 2; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` - * @return {!jspb.Map} + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); +proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.getItemsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + proto.dapr.proto.common.v1.ConfigurationItem)); }; /** * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this - */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * optional PubsubSubscriptionRules rules = 4; - * @return {?proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} - */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getRules = function() { - return /** @type{?proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.PubsubSubscriptionRules, 4)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.PubsubSubscriptionRules|undefined} value - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this -*/ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.setRules = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this - */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.clearRules = function() { - return this.setRules(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.hasRules = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string dead_letter_topic = 5; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getDeadLetterTopic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this + * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} returns this */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.setDeadLetterTopic = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.clearItemsMap = function() { + this.getItemsMap().clear(); + return this; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.repeatedFields_ = [1]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -11891,8 +14570,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.toObject(opt_includeInstance, this); }; @@ -11901,14 +14580,14 @@ proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.toObject = functio * @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.PubsubSubscriptionRules} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.toObject = function(includeInstance, msg) { var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.toObject, includeInstance) + ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + message: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -11922,23 +14601,23 @@ proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} + * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.PubsubSubscriptionRules; - return proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse; + return proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.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.PubsubSubscriptionRules} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} + * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11946,9 +14625,12 @@ proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.dapr.proto.runtime.v1.PubsubSubscriptionRule; - reader.readMessage(value,proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.deserializeBinaryFromReader); - msg.addRules(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setOk(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMessage(value); break; default: reader.skipField(); @@ -11963,9 +14645,9 @@ proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11973,58 +14655,62 @@ proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} message + * @param {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getOk(); + if (f) { + writer.writeBool( 1, - f, - proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.serializeBinaryToWriter + f + ); + } + f = message.getMessage(); + if (f.length > 0) { + writer.writeString( + 2, + f ); } }; /** - * repeated PubsubSubscriptionRule rules = 1; - * @return {!Array} + * optional bool ok = 1; + * @return {boolean} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.PubsubSubscriptionRule, 1)); +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.getOk = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} returns this -*/ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + * @param {boolean} value + * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} returns this + */ +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.setOk = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** - * @param {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} + * optional string message = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.PubsubSubscriptionRule, opt_index); +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} returns this */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.clearRulesList = function() { - return this.setRulesList([]); +proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -12044,8 +14730,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.TryLockRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.TryLockRequest.toObject(opt_includeInstance, this); }; @@ -12054,14 +14740,16 @@ proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.toObject = function * @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.PubsubSubscriptionRule} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.TryLockRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.TryLockRequest.toObject = function(includeInstance, msg) { var f, obj = { - match: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") + storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), + resourceId: jspb.Message.getFieldWithDefault(msg, 2, ""), + lockOwner: jspb.Message.getFieldWithDefault(msg, 3, ""), + expiryInSeconds: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -12075,23 +14763,23 @@ proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} + * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.TryLockRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.PubsubSubscriptionRule; - return proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.TryLockRequest; + return proto.dapr.proto.runtime.v1.TryLockRequest.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.PubsubSubscriptionRule} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.TryLockRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} + * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.TryLockRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12100,11 +14788,19 @@ proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.deserializeBinaryFromReader = switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setMatch(value); + msg.setStoreName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); + msg.setResourceId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setLockOwner(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setExpiryInSeconds(value); break; default: reader.skipField(); @@ -12119,9 +14815,9 @@ proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.TryLockRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.TryLockRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12129,65 +14825,115 @@ proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} message + * @param {!proto.dapr.proto.runtime.v1.TryLockRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.TryLockRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMatch(); + f = message.getStoreName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getPath(); + f = message.getResourceId(); if (f.length > 0) { writer.writeString( 2, f ); } + f = message.getLockOwner(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getExpiryInSeconds(); + if (f !== 0) { + writer.writeInt32( + 4, + f + ); + } }; /** - * optional string match = 1; + * optional string store_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.getMatch = function() { +proto.dapr.proto.runtime.v1.TryLockRequest.prototype.getStoreName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} returns this + * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} returns this */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.setMatch = function(value) { +proto.dapr.proto.runtime.v1.TryLockRequest.prototype.setStoreName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string path = 2; + * optional string resource_id = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.getPath = function() { +proto.dapr.proto.runtime.v1.TryLockRequest.prototype.getResourceId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} returns this + * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} returns this */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.setPath = function(value) { +proto.dapr.proto.runtime.v1.TryLockRequest.prototype.setResourceId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; +/** + * optional string lock_owner = 3; + * @return {string} + */ +proto.dapr.proto.runtime.v1.TryLockRequest.prototype.getLockOwner = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} returns this + */ +proto.dapr.proto.runtime.v1.TryLockRequest.prototype.setLockOwner = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional int32 expiry_in_seconds = 4; + * @return {number} + */ +proto.dapr.proto.runtime.v1.TryLockRequest.prototype.getExpiryInSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} returns this + */ +proto.dapr.proto.runtime.v1.TryLockRequest.prototype.setExpiryInSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + @@ -12204,8 +14950,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SetMetadataRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.TryLockResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.TryLockResponse.toObject(opt_includeInstance, this); }; @@ -12214,14 +14960,13 @@ proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.toObject = function(opt * @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.SetMetadataRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.TryLockResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.TryLockResponse.toObject = function(includeInstance, msg) { var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: jspb.Message.getFieldWithDefault(msg, 2, "") + success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -12235,23 +14980,23 @@ proto.dapr.proto.runtime.v1.SetMetadataRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SetMetadataRequest} + * @return {!proto.dapr.proto.runtime.v1.TryLockResponse} */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.TryLockResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SetMetadataRequest; - return proto.dapr.proto.runtime.v1.SetMetadataRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.TryLockResponse; + return proto.dapr.proto.runtime.v1.TryLockResponse.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.SetMetadataRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.TryLockResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SetMetadataRequest} + * @return {!proto.dapr.proto.runtime.v1.TryLockResponse} */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.TryLockResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12259,12 +15004,8 @@ proto.dapr.proto.runtime.v1.SetMetadataRequest.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); break; default: reader.skipField(); @@ -12279,9 +15020,9 @@ proto.dapr.proto.runtime.v1.SetMetadataRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.TryLockResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SetMetadataRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.TryLockResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12289,73 +15030,41 @@ proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SetMetadataRequest} message + * @param {!proto.dapr.proto.runtime.v1.TryLockResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.TryLockResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( + f = message.getSuccess(); + if (f) { + writer.writeBool( 1, f ); } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string key = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SetMetadataRequest} returns this - */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string value = 2; - * @return {string} + * optional bool success = 1; + * @return {boolean} */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.TryLockResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SetMetadataRequest} returns this + * @param {boolean} value + * @return {!proto.dapr.proto.runtime.v1.TryLockResponse} returns this */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.TryLockResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -12371,8 +15080,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetConfigurationRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.UnlockRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.UnlockRequest.toObject(opt_includeInstance, this); }; @@ -12381,15 +15090,15 @@ proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.toObject = functio * @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.GetConfigurationRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.UnlockRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.UnlockRequest.toObject = function(includeInstance, msg) { var f, obj = { storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - keysList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] + resourceId: jspb.Message.getFieldWithDefault(msg, 2, ""), + lockOwner: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -12403,23 +15112,23 @@ proto.dapr.proto.runtime.v1.GetConfigurationRequest.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} + * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.UnlockRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetConfigurationRequest; - return proto.dapr.proto.runtime.v1.GetConfigurationRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.UnlockRequest; + return proto.dapr.proto.runtime.v1.UnlockRequest.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.GetConfigurationRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.UnlockRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} + * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.UnlockRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12432,13 +15141,11 @@ proto.dapr.proto.runtime.v1.GetConfigurationRequest.deserializeBinaryFromReader break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addKeys(value); + msg.setResourceId(value); break; case 3: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); + var value = /** @type {string} */ (reader.readString()); + msg.setLockOwner(value); break; default: reader.skipField(); @@ -12453,9 +15160,9 @@ proto.dapr.proto.runtime.v1.GetConfigurationRequest.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.UnlockRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetConfigurationRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.UnlockRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12463,11 +15170,11 @@ proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} message + * @param {!proto.dapr.proto.runtime.v1.UnlockRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.UnlockRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStoreName(); if (f.length > 0) { @@ -12476,16 +15183,19 @@ proto.dapr.proto.runtime.v1.GetConfigurationRequest.serializeBinaryToWriter = fu f ); } - f = message.getKeysList(); + f = message.getResourceId(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeString( 2, f ); } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + f = message.getLockOwner(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); } }; @@ -12494,79 +15204,56 @@ proto.dapr.proto.runtime.v1.GetConfigurationRequest.serializeBinaryToWriter = fu * optional string store_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.getStoreName = function() { +proto.dapr.proto.runtime.v1.UnlockRequest.prototype.getStoreName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} returns this */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.setStoreName = function(value) { +proto.dapr.proto.runtime.v1.UnlockRequest.prototype.setStoreName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * repeated string keys = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.getKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this + * optional string resource_id = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.setKeysList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.dapr.proto.runtime.v1.UnlockRequest.prototype.getResourceId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} returns this */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.addKeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.dapr.proto.runtime.v1.UnlockRequest.prototype.setResourceId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this + * optional string lock_owner = 3; + * @return {string} */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.clearKeysList = function() { - return this.setKeysList([]); +proto.dapr.proto.runtime.v1.UnlockRequest.prototype.getLockOwner = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * map metadata = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} returns this */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); +proto.dapr.proto.runtime.v1.UnlockRequest.prototype.setLockOwner = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - @@ -12583,8 +15270,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetConfigurationResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.UnlockResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.UnlockResponse.toObject(opt_includeInstance, this); }; @@ -12593,13 +15280,13 @@ proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.toObject = functi * @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.GetConfigurationResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.UnlockResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.UnlockResponse.toObject = function(includeInstance, msg) { var f, obj = { - itemsMap: (f = msg.getItemsMap()) ? f.toObject(includeInstance, proto.dapr.proto.common.v1.ConfigurationItem.toObject) : [] + status: jspb.Message.getFieldWithDefault(msg, 1, 0) }; if (includeInstance) { @@ -12613,23 +15300,23 @@ proto.dapr.proto.runtime.v1.GetConfigurationResponse.toObject = function(include /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationResponse} + * @return {!proto.dapr.proto.runtime.v1.UnlockResponse} */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.UnlockResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetConfigurationResponse; - return proto.dapr.proto.runtime.v1.GetConfigurationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.UnlockResponse; + return proto.dapr.proto.runtime.v1.UnlockResponse.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.GetConfigurationResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.UnlockResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationResponse} + * @return {!proto.dapr.proto.runtime.v1.UnlockResponse} */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.UnlockResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12637,10 +15324,8 @@ proto.dapr.proto.runtime.v1.GetConfigurationResponse.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = msg.getItemsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.common.v1.ConfigurationItem.deserializeBinaryFromReader, "", new proto.dapr.proto.common.v1.ConfigurationItem()); - }); + var value = /** @type {!proto.dapr.proto.runtime.v1.UnlockResponse.Status} */ (reader.readEnum()); + msg.setStatus(value); break; default: reader.skipField(); @@ -12655,9 +15340,9 @@ proto.dapr.proto.runtime.v1.GetConfigurationResponse.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.UnlockResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetConfigurationResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.UnlockResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12665,48 +15350,50 @@ proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetConfigurationResponse} message + * @param {!proto.dapr.proto.runtime.v1.UnlockResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.UnlockResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getItemsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.common.v1.ConfigurationItem.serializeBinaryToWriter); + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); } }; /** - * map items = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * @enum {number} */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.getItemsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - proto.dapr.proto.common.v1.ConfigurationItem)); +proto.dapr.proto.runtime.v1.UnlockResponse.Status = { + SUCCESS: 0, + LOCK_DOES_NOT_EXIST: 1, + LOCK_BELONGS_TO_OTHERS: 2, + INTERNAL_ERROR: 3 }; - /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationResponse} returns this + * optional Status status = 1; + * @return {!proto.dapr.proto.runtime.v1.UnlockResponse.Status} */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.clearItemsMap = function() { - this.getItemsMap().clear(); - return this;}; - +proto.dapr.proto.runtime.v1.UnlockResponse.prototype.getStatus = function() { + return /** @type {!proto.dapr.proto.runtime.v1.UnlockResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {!proto.dapr.proto.runtime.v1.UnlockResponse.Status} value + * @return {!proto.dapr.proto.runtime.v1.UnlockResponse} returns this */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.repeatedFields_ = [2]; +proto.dapr.proto.runtime.v1.UnlockResponse.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + @@ -12723,8 +15410,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.toObject(opt_includeInstance, this); }; @@ -12733,15 +15420,15 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.toObject = f * @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.SubscribeConfigurationRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.toObject = function(includeInstance, msg) { var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - keysList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] + componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + format: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -12755,23 +15442,23 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.toObject = function(in /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest; - return proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleGetKeyRequest; + return proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.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.SubscribeConfigurationRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12780,17 +15467,15 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.deserializeBinaryFromR switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setStoreName(value); + msg.setComponentName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addKeys(value); + msg.setName(value); break; case 3: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); + var value = /** @type {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} */ (reader.readEnum()); + msg.setFormat(value); break; default: reader.skipField(); @@ -12805,9 +15490,9 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.deserializeBinaryFromR * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12815,108 +15500,96 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.serializeBin /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} message + * @param {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStoreName(); + f = message.getComponentName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getKeysList(); + f = message.getName(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeString( 2, f ); } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + f = message.getFormat(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); } }; /** - * optional string store_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.getStoreName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this + * @enum {number} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat = { + PEM: 0, + JSON: 1 }; - /** - * repeated string keys = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.getKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); + * optional string component_name = 1; + * @return {string} + */ +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.getComponentName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.setKeysList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.setComponentName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this + * optional string name = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.addKeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.clearKeysList = function() { - return this.setKeysList([]); +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * map metadata = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * optional KeyFormat format = 3; + * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.getFormat = function() { + return /** @type {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this + * @param {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} value + * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; +proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.setFormat = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; @@ -12935,8 +15608,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.toObject(opt_includeInstance, this); }; @@ -12945,14 +15618,14 @@ proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.toObject = * @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.UnsubscribeConfigurationRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.toObject = function(includeInstance, msg) { var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - id: jspb.Message.getFieldWithDefault(msg, 2, "") + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + publicKey: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -12966,23 +15639,23 @@ proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.toObject = function( /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest; - return proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleGetKeyResponse; + return proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.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.UnsubscribeConfigurationRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12991,11 +15664,11 @@ proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.deserializeBinaryFro switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setStoreName(value); + msg.setName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setPublicKey(value); break; default: reader.skipField(); @@ -13010,9 +15683,9 @@ proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.deserializeBinaryFro * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13020,20 +15693,20 @@ proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.serializeB /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} message + * @param {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStoreName(); + f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getId(); + f = message.getPublicKey(); if (f.length > 0) { writer.writeString( 2, @@ -13044,37 +15717,37 @@ proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.serializeBinaryToWri /** - * optional string store_name = 1; + * optional string name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.getStoreName = function() { +proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} returns this */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.setStoreName = function(value) { +proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string id = 2; + * optional string public_key = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.getId = function() { +proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.getPublicKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} returns this */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.setId = function(value) { +proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.setPublicKey = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -13095,8 +15768,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleEncryptRequest.toObject(opt_includeInstance, this); }; @@ -13105,14 +15778,18 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.toObject = * @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.SubscribeConfigurationResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - itemsMap: (f = msg.getItemsMap()) ? f.toObject(includeInstance, proto.dapr.proto.common.v1.ConfigurationItem.toObject) : [] + componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), + plaintext: msg.getPlaintext_asB64(), + algorithm: jspb.Message.getFieldWithDefault(msg, 3, ""), + keyName: jspb.Message.getFieldWithDefault(msg, 4, ""), + nonce: msg.getNonce_asB64(), + associatedData: msg.getAssociatedData_asB64() }; if (includeInstance) { @@ -13126,23 +15803,23 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.toObject = function(i /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse; - return proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleEncryptRequest; + return proto.dapr.proto.runtime.v1.SubtleEncryptRequest.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.SubscribeConfigurationResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -13151,13 +15828,27 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.deserializeBinaryFrom switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setComponentName(value); break; case 2: - var value = msg.getItemsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.common.v1.ConfigurationItem.deserializeBinaryFromReader, "", new proto.dapr.proto.common.v1.ConfigurationItem()); - }); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPlaintext(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAlgorithm(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyName(value); + break; + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setNonce(value); + break; + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setAssociatedData(value); break; default: reader.skipField(); @@ -13172,9 +15863,9 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.deserializeBinaryFrom * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleEncryptRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13182,223 +15873,234 @@ proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.serializeBi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} message + * @param {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getComponentName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getItemsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.common.v1.ConfigurationItem.serializeBinaryToWriter); + f = message.getPlaintext_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getAlgorithm(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getKeyName(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getNonce_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } + f = message.getAssociatedData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 6, + f + ); } }; /** - * optional string id = 1; + * optional string component_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.getId = function() { +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getComponentName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this + */ +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setComponentName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bytes plaintext = 2; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getPlaintext = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes plaintext = 2; + * This is a type-conversion wrapper around `getPlaintext()` + * @return {string} + */ +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getPlaintext_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPlaintext())); +}; + + +/** + * optional bytes plaintext = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPlaintext()` + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getPlaintext_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPlaintext())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setPlaintext = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); }; /** - * map items = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * optional string algorithm = 3; + * @return {string} */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.getItemsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - proto.dapr.proto.common.v1.ConfigurationItem)); +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAlgorithm = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.clearItemsMap = function() { - this.getItemsMap().clear(); - return this;}; - - - +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setAlgorithm = 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} + * optional string key_name = 4; + * @return {string} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getKeyName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * 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.UnsubscribeConfigurationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - message: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setKeyName = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} + * optional bytes nonce = 5; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse; - return proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.deserializeBinaryFromReader(msg, reader); +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getNonce = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} + * optional bytes nonce = 5; + * This is a type-conversion wrapper around `getNonce()` + * @return {string} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOk(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getNonce_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getNonce())); }; /** - * Serializes the message to binary data (in protobuf wire format). + * optional bytes nonce = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getNonce()` * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getNonce_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getNonce())); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOk(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setNonce = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); }; /** - * optional bool ok = 1; - * @return {boolean} + * optional bytes associated_data = 6; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.getOk = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAssociatedData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} returns this + * optional bytes associated_data = 6; + * This is a type-conversion wrapper around `getAssociatedData()` + * @return {string} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.setOk = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAssociatedData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getAssociatedData())); }; /** - * optional string message = 2; - * @return {string} + * optional bytes associated_data = 6; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getAssociatedData()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAssociatedData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getAssociatedData())); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} returns this + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setAssociatedData = function(value) { + return jspb.Message.setProto3BytesField(this, 6, value); }; @@ -13418,8 +16120,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.TryLockRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TryLockRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleEncryptResponse.toObject(opt_includeInstance, this); }; @@ -13428,16 +16130,14 @@ proto.dapr.proto.runtime.v1.TryLockRequest.prototype.toObject = function(opt_inc * @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.TryLockRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.TryLockRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.toObject = function(includeInstance, msg) { var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - resourceId: jspb.Message.getFieldWithDefault(msg, 2, ""), - lockOwner: jspb.Message.getFieldWithDefault(msg, 3, ""), - expiryInSeconds: jspb.Message.getFieldWithDefault(msg, 4, 0) + ciphertext: msg.getCiphertext_asB64(), + tag: msg.getTag_asB64() }; if (includeInstance) { @@ -13451,23 +16151,23 @@ proto.dapr.proto.runtime.v1.TryLockRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} */ -proto.dapr.proto.runtime.v1.TryLockRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TryLockRequest; - return proto.dapr.proto.runtime.v1.TryLockRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleEncryptResponse; + return proto.dapr.proto.runtime.v1.SubtleEncryptResponse.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.TryLockRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} */ -proto.dapr.proto.runtime.v1.TryLockRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -13475,20 +16175,12 @@ proto.dapr.proto.runtime.v1.TryLockRequest.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setStoreName(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setCiphertext(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setResourceId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLockOwner(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setExpiryInSeconds(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setTag(value); break; default: reader.skipField(); @@ -13503,9 +16195,9 @@ proto.dapr.proto.runtime.v1.TryLockRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.TryLockRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TryLockRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleEncryptResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13513,37 +16205,23 @@ proto.dapr.proto.runtime.v1.TryLockRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.TryLockRequest} message + * @param {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.TryLockRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStoreName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResourceId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLockOwner(); + f = message.getCiphertext_asU8(); if (f.length > 0) { - writer.writeString( - 3, + writer.writeBytes( + 1, f ); } - f = message.getExpiryInSeconds(); - if (f !== 0) { - writer.writeInt32( - 4, + f = message.getTag_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, f ); } @@ -13551,74 +16229,86 @@ proto.dapr.proto.runtime.v1.TryLockRequest.serializeBinaryToWriter = function(me /** - * optional string store_name = 1; - * @return {string} + * optional bytes ciphertext = 1; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.TryLockRequest.prototype.getStoreName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getCiphertext = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} returns this + * optional bytes ciphertext = 1; + * This is a type-conversion wrapper around `getCiphertext()` + * @return {string} */ -proto.dapr.proto.runtime.v1.TryLockRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getCiphertext_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getCiphertext())); }; /** - * optional string resource_id = 2; - * @return {string} + * optional bytes ciphertext = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getCiphertext()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.TryLockRequest.prototype.getResourceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getCiphertext_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getCiphertext())); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} returns this + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} returns this */ -proto.dapr.proto.runtime.v1.TryLockRequest.prototype.setResourceId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.setCiphertext = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; /** - * optional string lock_owner = 3; - * @return {string} + * optional bytes tag = 2; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.TryLockRequest.prototype.getLockOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getTag = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} returns this + * optional bytes tag = 2; + * This is a type-conversion wrapper around `getTag()` + * @return {string} */ -proto.dapr.proto.runtime.v1.TryLockRequest.prototype.setLockOwner = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getTag_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getTag())); }; /** - * optional int32 expiry_in_seconds = 4; - * @return {number} + * optional bytes tag = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getTag()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.TryLockRequest.prototype.getExpiryInSeconds = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getTag_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getTag())); }; /** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} returns this + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} returns this */ -proto.dapr.proto.runtime.v1.TryLockRequest.prototype.setExpiryInSeconds = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.setTag = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -13638,8 +16328,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.TryLockResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TryLockResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleDecryptRequest.toObject(opt_includeInstance, this); }; @@ -13648,13 +16338,19 @@ proto.dapr.proto.runtime.v1.TryLockResponse.prototype.toObject = function(opt_in * @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.TryLockResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.TryLockResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.toObject = function(includeInstance, msg) { var f, obj = { - success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), + ciphertext: msg.getCiphertext_asB64(), + algorithm: jspb.Message.getFieldWithDefault(msg, 3, ""), + keyName: jspb.Message.getFieldWithDefault(msg, 4, ""), + nonce: msg.getNonce_asB64(), + tag: msg.getTag_asB64(), + associatedData: msg.getAssociatedData_asB64() }; if (includeInstance) { @@ -13668,23 +16364,23 @@ proto.dapr.proto.runtime.v1.TryLockResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.TryLockResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} */ -proto.dapr.proto.runtime.v1.TryLockResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TryLockResponse; - return proto.dapr.proto.runtime.v1.TryLockResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleDecryptRequest; + return proto.dapr.proto.runtime.v1.SubtleDecryptRequest.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.TryLockResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TryLockResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} */ -proto.dapr.proto.runtime.v1.TryLockResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -13692,8 +16388,32 @@ proto.dapr.proto.runtime.v1.TryLockResponse.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); + var value = /** @type {string} */ (reader.readString()); + msg.setComponentName(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setCiphertext(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAlgorithm(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyName(value); + break; + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setNonce(value); + break; + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setTag(value); + break; + case 7: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setAssociatedData(value); break; default: reader.skipField(); @@ -13708,9 +16428,9 @@ proto.dapr.proto.runtime.v1.TryLockResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.TryLockResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TryLockResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleDecryptRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13718,227 +16438,283 @@ proto.dapr.proto.runtime.v1.TryLockResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.TryLockResponse} message + * @param {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.TryLockResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getSuccess(); - if (f) { - writer.writeBool( + f = message.getComponentName(); + if (f.length > 0) { + writer.writeString( 1, f ); } + f = message.getCiphertext_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getAlgorithm(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getKeyName(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getNonce_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } + f = message.getTag_asU8(); + if (f.length > 0) { + writer.writeBytes( + 6, + f + ); + } + f = message.getAssociatedData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 7, + f + ); + } +}; + + +/** + * optional string component_name = 1; + * @return {string} + */ +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getComponentName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this + */ +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setComponentName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bytes ciphertext = 2; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getCiphertext = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes ciphertext = 2; + * This is a type-conversion wrapper around `getCiphertext()` + * @return {string} + */ +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getCiphertext_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getCiphertext())); +}; + + +/** + * optional bytes ciphertext = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getCiphertext()` + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getCiphertext_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getCiphertext())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this + */ +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setCiphertext = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); }; /** - * optional bool success = 1; - * @return {boolean} + * optional string algorithm = 3; + * @return {string} */ -proto.dapr.proto.runtime.v1.TryLockResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getAlgorithm = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.TryLockResponse} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this */ -proto.dapr.proto.runtime.v1.TryLockResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setAlgorithm = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; +/** + * optional string key_name = 4; + * @return {string} + */ +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getKeyName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; - -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} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnlockRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setKeyName = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * 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.UnlockRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional bytes nonce = 5; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.UnlockRequest.toObject = function(includeInstance, msg) { - var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - resourceId: jspb.Message.getFieldWithDefault(msg, 2, ""), - lockOwner: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getNonce = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} + * optional bytes nonce = 5; + * This is a type-conversion wrapper around `getNonce()` + * @return {string} */ -proto.dapr.proto.runtime.v1.UnlockRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.UnlockRequest; - return proto.dapr.proto.runtime.v1.UnlockRequest.deserializeBinaryFromReader(msg, reader); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getNonce_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getNonce())); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.runtime.v1.UnlockRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} + * optional bytes nonce = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getNonce()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.UnlockRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setStoreName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setResourceId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLockOwner(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getNonce_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getNonce())); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnlockRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setNonce = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.UnlockRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional bytes tag = 6; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.UnlockRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStoreName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResourceId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLockOwner(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getTag = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * optional string store_name = 1; + * optional bytes tag = 6; + * This is a type-conversion wrapper around `getTag()` * @return {string} */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.getStoreName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getTag_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getTag())); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} returns this + * optional bytes tag = 6; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getTag()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getTag_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getTag())); }; /** - * optional string resource_id = 2; - * @return {string} + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.getResourceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setTag = function(value) { + return jspb.Message.setProto3BytesField(this, 6, value); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} returns this + * optional bytes associated_data = 7; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.setResourceId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getAssociatedData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** - * optional string lock_owner = 3; + * optional bytes associated_data = 7; + * This is a type-conversion wrapper around `getAssociatedData()` * @return {string} */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.getLockOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getAssociatedData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getAssociatedData())); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} returns this + * optional bytes associated_data = 7; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getAssociatedData()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.setLockOwner = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getAssociatedData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getAssociatedData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this + */ +proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setAssociatedData = function(value) { + return jspb.Message.setProto3BytesField(this, 7, value); }; @@ -13958,8 +16734,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.UnlockResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnlockResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleDecryptResponse.toObject(opt_includeInstance, this); }; @@ -13968,13 +16744,13 @@ proto.dapr.proto.runtime.v1.UnlockResponse.prototype.toObject = function(opt_inc * @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.UnlockResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleDecryptResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.UnlockResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleDecryptResponse.toObject = function(includeInstance, msg) { var f, obj = { - status: jspb.Message.getFieldWithDefault(msg, 1, 0) + plaintext: msg.getPlaintext_asB64() }; if (includeInstance) { @@ -13988,23 +16764,23 @@ proto.dapr.proto.runtime.v1.UnlockResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.UnlockResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptResponse} */ -proto.dapr.proto.runtime.v1.UnlockResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleDecryptResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.UnlockResponse; - return proto.dapr.proto.runtime.v1.UnlockResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleDecryptResponse; + return proto.dapr.proto.runtime.v1.SubtleDecryptResponse.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.UnlockResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleDecryptResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnlockResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptResponse} */ -proto.dapr.proto.runtime.v1.UnlockResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleDecryptResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14012,8 +16788,8 @@ proto.dapr.proto.runtime.v1.UnlockResponse.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!proto.dapr.proto.runtime.v1.UnlockResponse.Status} */ (reader.readEnum()); - msg.setStatus(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPlaintext(value); break; default: reader.skipField(); @@ -14028,9 +16804,9 @@ proto.dapr.proto.runtime.v1.UnlockResponse.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.UnlockResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnlockResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleDecryptResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14038,15 +16814,15 @@ proto.dapr.proto.runtime.v1.UnlockResponse.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.UnlockResponse} message + * @param {!proto.dapr.proto.runtime.v1.SubtleDecryptResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.UnlockResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleDecryptResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( + f = message.getPlaintext_asU8(); + if (f.length > 0) { + writer.writeBytes( 1, f ); @@ -14055,30 +16831,44 @@ proto.dapr.proto.runtime.v1.UnlockResponse.serializeBinaryToWriter = function(me /** - * @enum {number} + * optional bytes plaintext = 1; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.UnlockResponse.Status = { - SUCCESS: 0, - LOCK_DOES_NOT_EXIST: 1, - LOCK_BELONGS_TO_OTHERS: 2, - INTERNAL_ERROR: 3 +proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.getPlaintext = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; + /** - * optional Status status = 1; - * @return {!proto.dapr.proto.runtime.v1.UnlockResponse.Status} + * optional bytes plaintext = 1; + * This is a type-conversion wrapper around `getPlaintext()` + * @return {string} */ -proto.dapr.proto.runtime.v1.UnlockResponse.prototype.getStatus = function() { - return /** @type {!proto.dapr.proto.runtime.v1.UnlockResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.getPlaintext_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPlaintext())); }; /** - * @param {!proto.dapr.proto.runtime.v1.UnlockResponse.Status} value - * @return {!proto.dapr.proto.runtime.v1.UnlockResponse} returns this + * optional bytes plaintext = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPlaintext()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.UnlockResponse.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); +proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.getPlaintext_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPlaintext())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptResponse} returns this + */ +proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.setPlaintext = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -14098,8 +16888,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.toObject(opt_includeInstance, this); }; @@ -14108,15 +16898,18 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.toObject = function(op * @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.SubtleGetKeyRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.toObject = function(includeInstance, msg) { var f, obj = { componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - format: jspb.Message.getFieldWithDefault(msg, 3, 0) + plaintextKey: msg.getPlaintextKey_asB64(), + algorithm: jspb.Message.getFieldWithDefault(msg, 3, ""), + keyName: jspb.Message.getFieldWithDefault(msg, 4, ""), + nonce: msg.getNonce_asB64(), + associatedData: msg.getAssociatedData_asB64() }; if (includeInstance) { @@ -14130,23 +16923,23 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleGetKeyRequest; - return proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest; + return proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.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.SubtleGetKeyRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14158,12 +16951,24 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.deserializeBinaryFromReader = fu msg.setComponentName(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPlaintextKey(value); break; case 3: - var value = /** @type {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} */ (reader.readEnum()); - msg.setFormat(value); + var value = /** @type {string} */ (reader.readString()); + msg.setAlgorithm(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyName(value); + break; + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setNonce(value); + break; + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setAssociatedData(value); break; default: reader.skipField(); @@ -14178,9 +16983,9 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14188,11 +16993,11 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} message + * @param {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getComponentName(); if (f.length > 0) { @@ -14201,82 +17006,221 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.serializeBinaryToWriter = functi f ); } - f = message.getName(); + f = message.getPlaintextKey_asU8(); if (f.length > 0) { - writer.writeString( + writer.writeBytes( 2, f ); } - f = message.getFormat(); - if (f !== 0.0) { - writer.writeEnum( + f = message.getAlgorithm(); + if (f.length > 0) { + writer.writeString( 3, f ); } + f = message.getKeyName(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getNonce_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } + f = message.getAssociatedData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 6, + f + ); + } }; /** - * @enum {number} + * optional string component_name = 1; + * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat = { - PEM: 0, - JSON: 1 +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getComponentName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setComponentName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bytes plaintext_key = 2; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getPlaintextKey = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes plaintext_key = 2; + * This is a type-conversion wrapper around `getPlaintextKey()` + * @return {string} + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getPlaintextKey_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPlaintextKey())); +}; + + +/** + * optional bytes plaintext_key = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPlaintextKey()` + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getPlaintextKey_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPlaintextKey())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setPlaintextKey = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional string algorithm = 3; + * @return {string} + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getAlgorithm = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setAlgorithm = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string key_name = 4; + * @return {string} + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getKeyName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setKeyName = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional bytes nonce = 5; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getNonce = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * optional bytes nonce = 5; + * This is a type-conversion wrapper around `getNonce()` + * @return {string} + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getNonce_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getNonce())); }; + /** - * optional string component_name = 1; - * @return {string} + * optional bytes nonce = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getNonce()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.getComponentName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getNonce_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getNonce())); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} returns this + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.setComponentName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setNonce = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); }; /** - * optional string name = 2; - * @return {string} + * optional bytes associated_data = 6; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getAssociatedData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} returns this + * optional bytes associated_data = 6; + * This is a type-conversion wrapper around `getAssociatedData()` + * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getAssociatedData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getAssociatedData())); }; /** - * optional KeyFormat format = 3; - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} + * optional bytes associated_data = 6; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getAssociatedData()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.getFormat = function() { - return /** @type {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getAssociatedData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getAssociatedData())); }; /** - * @param {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} value - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} returns this + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.setFormat = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); +proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setAssociatedData = function(value) { + return jspb.Message.setProto3BytesField(this, 6, value); }; @@ -14296,8 +17240,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.toObject(opt_includeInstance, this); }; @@ -14306,14 +17250,14 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.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.SubtleGetKeyResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.toObject = function(includeInstance, msg) { var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - publicKey: jspb.Message.getFieldWithDefault(msg, 2, "") + wrappedKey: msg.getWrappedKey_asB64(), + tag: msg.getTag_asB64() }; if (includeInstance) { @@ -14327,23 +17271,23 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleGetKeyResponse; - return proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse; + return proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.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.SubtleGetKeyResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14351,12 +17295,12 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setWrappedKey(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPublicKey(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setTag(value); break; default: reader.skipField(); @@ -14371,9 +17315,9 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14381,22 +17325,22 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.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.SubtleGetKeyResponse} message + * @param {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getName(); + f = message.getWrappedKey_asU8(); if (f.length > 0) { - writer.writeString( + writer.writeBytes( 1, f ); } - f = message.getPublicKey(); + f = message.getTag_asU8(); if (f.length > 0) { - writer.writeString( + writer.writeBytes( 2, f ); @@ -14405,38 +17349,86 @@ proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.serializeBinaryToWriter = funct /** - * optional string name = 1; + * optional bytes wrapped_key = 1; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getWrappedKey = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes wrapped_key = 1; + * This is a type-conversion wrapper around `getWrappedKey()` * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getWrappedKey_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getWrappedKey())); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} returns this + * optional bytes wrapped_key = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getWrappedKey()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getWrappedKey_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getWrappedKey())); }; /** - * optional string public_key = 2; + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} returns this + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.setWrappedKey = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * optional bytes tag = 2; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getTag = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes tag = 2; + * This is a type-conversion wrapper around `getTag()` * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.getPublicKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getTag_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getTag())); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} returns this + * optional bytes tag = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getTag()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.setPublicKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getTag_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getTag())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} returns this + */ +proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.setTag = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -14456,8 +17448,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleEncryptRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.toObject(opt_includeInstance, this); }; @@ -14466,17 +17458,18 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.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.SubtleEncryptRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.toObject = function(includeInstance, msg) { var f, obj = { componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - plaintext: msg.getPlaintext_asB64(), + wrappedKey: msg.getWrappedKey_asB64(), algorithm: jspb.Message.getFieldWithDefault(msg, 3, ""), keyName: jspb.Message.getFieldWithDefault(msg, 4, ""), nonce: msg.getNonce_asB64(), + tag: msg.getTag_asB64(), associatedData: msg.getAssociatedData_asB64() }; @@ -14491,23 +17484,23 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleEncryptRequest; - return proto.dapr.proto.runtime.v1.SubtleEncryptRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest; + return proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.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.SubtleEncryptRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14520,7 +17513,7 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.deserializeBinaryFromReader = f break; case 2: var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPlaintext(value); + msg.setWrappedKey(value); break; case 3: var value = /** @type {string} */ (reader.readString()); @@ -14535,6 +17528,10 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.deserializeBinaryFromReader = f msg.setNonce(value); break; case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setTag(value); + break; + case 7: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setAssociatedData(value); break; @@ -14551,9 +17548,9 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleEncryptRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14561,11 +17558,11 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.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.SubtleEncryptRequest} message + * @param {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getComponentName(); if (f.length > 0) { @@ -14574,7 +17571,7 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.serializeBinaryToWriter = funct f ); } - f = message.getPlaintext_asU8(); + f = message.getWrappedKey_asU8(); if (f.length > 0) { writer.writeBytes( 2, @@ -14602,13 +17599,20 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.serializeBinaryToWriter = funct f ); } - f = message.getAssociatedData_asU8(); + f = message.getTag_asU8(); if (f.length > 0) { writer.writeBytes( 6, f ); } + f = message.getAssociatedData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 7, + f + ); + } }; @@ -14616,58 +17620,58 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.serializeBinaryToWriter = funct * optional string component_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getComponentName = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getComponentName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setComponentName = function(value) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setComponentName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional bytes plaintext = 2; + * optional bytes wrapped_key = 2; * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getPlaintext = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getWrappedKey = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * optional bytes plaintext = 2; - * This is a type-conversion wrapper around `getPlaintext()` + * optional bytes wrapped_key = 2; + * This is a type-conversion wrapper around `getWrappedKey()` * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getPlaintext_asB64 = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getWrappedKey_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPlaintext())); + this.getWrappedKey())); }; /** - * optional bytes plaintext = 2; + * optional bytes wrapped_key = 2; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPlaintext()` + * This is a type-conversion wrapper around `getWrappedKey()` * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getPlaintext_asU8 = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getWrappedKey_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPlaintext())); + this.getWrappedKey())); }; /** * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setPlaintext = function(value) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setWrappedKey = function(value) { return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -14676,16 +17680,16 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setPlaintext = functi * optional string algorithm = 3; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAlgorithm = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getAlgorithm = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setAlgorithm = function(value) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setAlgorithm = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -14694,16 +17698,16 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setAlgorithm = functi * optional string key_name = 4; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getKeyName = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getKeyName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setKeyName = function(value) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setKeyName = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -14712,7 +17716,7 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setKeyName = function * optional bytes nonce = 5; * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getNonce = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getNonce = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -14722,7 +17726,7 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getNonce = function() * This is a type-conversion wrapper around `getNonce()` * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getNonce_asB64 = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getNonce_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getNonce())); }; @@ -14735,7 +17739,7 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getNonce_asB64 = func * This is a type-conversion wrapper around `getNonce()` * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getNonce_asU8 = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getNonce_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getNonce())); }; @@ -14743,41 +17747,83 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getNonce_asU8 = funct /** * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setNonce = function(value) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setNonce = function(value) { return jspb.Message.setProto3BytesField(this, 5, value); }; /** - * optional bytes associated_data = 6; + * optional bytes tag = 6; * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAssociatedData = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getTag = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * optional bytes associated_data = 6; + * optional bytes tag = 6; + * This is a type-conversion wrapper around `getTag()` + * @return {string} + */ +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getTag_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getTag())); +}; + + +/** + * optional bytes tag = 6; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getTag()` + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getTag_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getTag())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this + */ +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setTag = function(value) { + return jspb.Message.setProto3BytesField(this, 6, value); +}; + + +/** + * optional bytes associated_data = 7; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getAssociatedData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * optional bytes associated_data = 7; * This is a type-conversion wrapper around `getAssociatedData()` * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAssociatedData_asB64 = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getAssociatedData_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getAssociatedData())); }; /** - * optional bytes associated_data = 6; + * optional bytes associated_data = 7; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getAssociatedData()` * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAssociatedData_asU8 = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getAssociatedData_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getAssociatedData())); }; @@ -14785,10 +17831,10 @@ proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAssociatedData_asU /** * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setAssociatedData = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setAssociatedData = function(value) { + return jspb.Message.setProto3BytesField(this, 7, value); }; @@ -14808,8 +17854,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleEncryptResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.toObject(opt_includeInstance, this); }; @@ -14818,14 +17864,13 @@ proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.toObject = function( * @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.SubtleEncryptResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.toObject = function(includeInstance, msg) { var f, obj = { - ciphertext: msg.getCiphertext_asB64(), - tag: msg.getTag_asB64() + plaintextKey: msg.getPlaintextKey_asB64() }; if (includeInstance) { @@ -14839,23 +17884,23 @@ proto.dapr.proto.runtime.v1.SubtleEncryptResponse.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleEncryptResponse; - return proto.dapr.proto.runtime.v1.SubtleEncryptResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse; + return proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.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.SubtleEncryptResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14864,11 +17909,7 @@ proto.dapr.proto.runtime.v1.SubtleEncryptResponse.deserializeBinaryFromReader = switch (field) { case 1: var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCiphertext(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTag(value); + msg.setPlaintextKey(value); break; default: reader.skipField(); @@ -14883,9 +17924,9 @@ proto.dapr.proto.runtime.v1.SubtleEncryptResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleEncryptResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14893,113 +17934,64 @@ proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} message + * @param {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCiphertext_asU8(); + f = message.getPlaintextKey_asU8(); if (f.length > 0) { writer.writeBytes( 1, f ); } - f = message.getTag_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } }; /** - * optional bytes ciphertext = 1; + * optional bytes plaintext_key = 1; * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getCiphertext = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.getPlaintextKey = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional bytes ciphertext = 1; - * This is a type-conversion wrapper around `getCiphertext()` + * optional bytes plaintext_key = 1; + * This is a type-conversion wrapper around `getPlaintextKey()` * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getCiphertext_asB64 = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.getPlaintextKey_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCiphertext())); + this.getPlaintextKey())); }; /** - * optional bytes ciphertext = 1; + * optional bytes plaintext_key = 1; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getCiphertext()` + * This is a type-conversion wrapper around `getPlaintextKey()` * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getCiphertext_asU8 = function() { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.getPlaintextKey_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCiphertext())); + this.getPlaintextKey())); }; /** * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} returns this */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.setCiphertext = function(value) { +proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.setPlaintextKey = function(value) { return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * optional bytes tag = 2; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getTag = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes tag = 2; - * This is a type-conversion wrapper around `getTag()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getTag_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTag())); -}; - - -/** - * optional bytes tag = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTag()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getTag_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTag())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} returns this - */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.setTag = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - @@ -15016,8 +18008,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleDecryptRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleSignRequest.toObject(opt_includeInstance, this); }; @@ -15026,19 +18018,16 @@ proto.dapr.proto.runtime.v1.SubtleDecryptRequest.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.SubtleDecryptRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleSignRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleSignRequest.toObject = function(includeInstance, msg) { var f, obj = { componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - ciphertext: msg.getCiphertext_asB64(), + digest: msg.getDigest_asB64(), algorithm: jspb.Message.getFieldWithDefault(msg, 3, ""), - keyName: jspb.Message.getFieldWithDefault(msg, 4, ""), - nonce: msg.getNonce_asB64(), - tag: msg.getTag_asB64(), - associatedData: msg.getAssociatedData_asB64() + keyName: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -15052,23 +18041,23 @@ proto.dapr.proto.runtime.v1.SubtleDecryptRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleSignRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleDecryptRequest; - return proto.dapr.proto.runtime.v1.SubtleDecryptRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleSignRequest; + return proto.dapr.proto.runtime.v1.SubtleSignRequest.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.SubtleDecryptRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleSignRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleSignRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -15081,7 +18070,7 @@ proto.dapr.proto.runtime.v1.SubtleDecryptRequest.deserializeBinaryFromReader = f break; case 2: var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCiphertext(value); + msg.setDigest(value); break; case 3: var value = /** @type {string} */ (reader.readString()); @@ -15091,18 +18080,6 @@ proto.dapr.proto.runtime.v1.SubtleDecryptRequest.deserializeBinaryFromReader = f var value = /** @type {string} */ (reader.readString()); msg.setKeyName(value); break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setNonce(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTag(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAssociatedData(value); - break; default: reader.skipField(); break; @@ -15116,9 +18093,9 @@ proto.dapr.proto.runtime.v1.SubtleDecryptRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleDecryptRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleSignRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -15126,11 +18103,11 @@ proto.dapr.proto.runtime.v1.SubtleDecryptRequest.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.SubtleDecryptRequest} message + * @param {!proto.dapr.proto.runtime.v1.SubtleSignRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleSignRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getComponentName(); if (f.length > 0) { @@ -15139,7 +18116,7 @@ proto.dapr.proto.runtime.v1.SubtleDecryptRequest.serializeBinaryToWriter = funct f ); } - f = message.getCiphertext_asU8(); + f = message.getDigest_asU8(); if (f.length > 0) { writer.writeBytes( 2, @@ -15160,27 +18137,6 @@ proto.dapr.proto.runtime.v1.SubtleDecryptRequest.serializeBinaryToWriter = funct f ); } - f = message.getNonce_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getTag_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getAssociatedData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } }; @@ -15188,58 +18144,58 @@ proto.dapr.proto.runtime.v1.SubtleDecryptRequest.serializeBinaryToWriter = funct * optional string component_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getComponentName = function() { +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getComponentName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setComponentName = function(value) { +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.setComponentName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional bytes ciphertext = 2; + * optional bytes digest = 2; * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getCiphertext = function() { +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getDigest = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * optional bytes ciphertext = 2; - * This is a type-conversion wrapper around `getCiphertext()` + * optional bytes digest = 2; + * This is a type-conversion wrapper around `getDigest()` * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getCiphertext_asB64 = function() { +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getDigest_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCiphertext())); + this.getDigest())); }; /** - * optional bytes ciphertext = 2; + * optional bytes digest = 2; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getCiphertext()` + * This is a type-conversion wrapper around `getDigest()` * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getCiphertext_asU8 = function() { +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getDigest_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCiphertext())); + this.getDigest())); }; /** * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setCiphertext = function(value) { +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.setDigest = function(value) { return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -15248,16 +18204,16 @@ proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setCiphertext = funct * optional string algorithm = 3; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getAlgorithm = function() { +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getAlgorithm = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setAlgorithm = function(value) { +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.setAlgorithm = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -15266,146 +18222,20 @@ proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setAlgorithm = functi * optional string key_name = 4; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getKeyName = function() { +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getKeyName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setKeyName = function(value) { +proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.setKeyName = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; -/** - * optional bytes nonce = 5; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getNonce = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes nonce = 5; - * This is a type-conversion wrapper around `getNonce()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getNonce_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getNonce())); -}; - - -/** - * optional bytes nonce = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getNonce()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getNonce_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getNonce())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setNonce = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional bytes tag = 6; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getTag = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes tag = 6; - * This is a type-conversion wrapper around `getTag()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getTag_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTag())); -}; - - -/** - * optional bytes tag = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTag()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getTag_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTag())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setTag = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - -/** - * optional bytes associated_data = 7; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getAssociatedData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * optional bytes associated_data = 7; - * This is a type-conversion wrapper around `getAssociatedData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getAssociatedData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAssociatedData())); -}; - - -/** - * optional bytes associated_data = 7; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAssociatedData()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getAssociatedData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAssociatedData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.setAssociatedData = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - - @@ -15422,8 +18252,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleDecryptResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleSignResponse.toObject(opt_includeInstance, this); }; @@ -15432,13 +18262,13 @@ proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.toObject = function( * @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.SubtleDecryptResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleSignResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleSignResponse.toObject = function(includeInstance, msg) { var f, obj = { - plaintext: msg.getPlaintext_asB64() + signature: msg.getSignature_asB64() }; if (includeInstance) { @@ -15452,23 +18282,23 @@ proto.dapr.proto.runtime.v1.SubtleDecryptResponse.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleSignResponse} */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleSignResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleDecryptResponse; - return proto.dapr.proto.runtime.v1.SubtleDecryptResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleSignResponse; + return proto.dapr.proto.runtime.v1.SubtleSignResponse.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.SubtleDecryptResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleSignResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptResponse} + * @return {!proto.dapr.proto.runtime.v1.SubtleSignResponse} */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleSignResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -15477,7 +18307,7 @@ proto.dapr.proto.runtime.v1.SubtleDecryptResponse.deserializeBinaryFromReader = switch (field) { case 1: var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPlaintext(value); + msg.setSignature(value); break; default: reader.skipField(); @@ -15492,9 +18322,9 @@ proto.dapr.proto.runtime.v1.SubtleDecryptResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleDecryptResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleSignResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -15502,13 +18332,13 @@ proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SubtleDecryptResponse} message + * @param {!proto.dapr.proto.runtime.v1.SubtleSignResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleSignResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPlaintext_asU8(); + f = message.getSignature_asU8(); if (f.length > 0) { writer.writeBytes( 1, @@ -15519,43 +18349,43 @@ proto.dapr.proto.runtime.v1.SubtleDecryptResponse.serializeBinaryToWriter = func /** - * optional bytes plaintext = 1; + * optional bytes signature = 1; * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.getPlaintext = function() { +proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.getSignature = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional bytes plaintext = 1; - * This is a type-conversion wrapper around `getPlaintext()` + * optional bytes signature = 1; + * This is a type-conversion wrapper around `getSignature()` * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.getPlaintext_asB64 = function() { +proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.getSignature_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPlaintext())); + this.getSignature())); }; /** - * optional bytes plaintext = 1; + * optional bytes signature = 1; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPlaintext()` + * This is a type-conversion wrapper around `getSignature()` * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.getPlaintext_asU8 = function() { +proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.getSignature_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPlaintext())); + this.getSignature())); }; /** * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptResponse} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleSignResponse} returns this */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.setPlaintext = function(value) { +proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.setSignature = function(value) { return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -15576,8 +18406,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleVerifyRequest.toObject(opt_includeInstance, this); }; @@ -15586,18 +18416,17 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.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.SubtleWrapKeyRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.toObject = function(includeInstance, msg) { var f, obj = { componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - plaintextKey: msg.getPlaintextKey_asB64(), + digest: msg.getDigest_asB64(), algorithm: jspb.Message.getFieldWithDefault(msg, 3, ""), keyName: jspb.Message.getFieldWithDefault(msg, 4, ""), - nonce: msg.getNonce_asB64(), - associatedData: msg.getAssociatedData_asB64() + signature: msg.getSignature_asB64() }; if (includeInstance) { @@ -15611,23 +18440,23 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest; - return proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.SubtleVerifyRequest; + return proto.dapr.proto.runtime.v1.SubtleVerifyRequest.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.SubtleWrapKeyRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} + * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -15640,7 +18469,7 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.deserializeBinaryFromReader = f break; case 2: var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPlaintextKey(value); + msg.setDigest(value); break; case 3: var value = /** @type {string} */ (reader.readString()); @@ -15652,11 +18481,7 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.deserializeBinaryFromReader = f break; case 5: var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setNonce(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAssociatedData(value); + msg.setSignature(value); break; default: reader.skipField(); @@ -15671,9 +18496,9 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.SubtleVerifyRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -15681,11 +18506,11 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.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.SubtleWrapKeyRequest} message + * @param {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getComponentName(); if (f.length > 0) { @@ -15694,7 +18519,7 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.serializeBinaryToWriter = funct f ); } - f = message.getPlaintextKey_asU8(); + f = message.getDigest_asU8(); if (f.length > 0) { writer.writeBytes( 2, @@ -15715,20 +18540,13 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.serializeBinaryToWriter = funct f ); } - f = message.getNonce_asU8(); + f = message.getSignature_asU8(); if (f.length > 0) { writer.writeBytes( 5, f ); } - f = message.getAssociatedData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } }; @@ -15736,58 +18554,58 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.serializeBinaryToWriter = funct * optional string component_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getComponentName = function() { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getComponentName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setComponentName = function(value) { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setComponentName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional bytes plaintext_key = 2; + * optional bytes digest = 2; * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getPlaintextKey = function() { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getDigest = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * optional bytes plaintext_key = 2; - * This is a type-conversion wrapper around `getPlaintextKey()` + * optional bytes digest = 2; + * This is a type-conversion wrapper around `getDigest()` * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getPlaintextKey_asB64 = function() { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getDigest_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPlaintextKey())); + this.getDigest())); }; /** - * optional bytes plaintext_key = 2; + * optional bytes digest = 2; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPlaintextKey()` + * This is a type-conversion wrapper around `getDigest()` * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getPlaintextKey_asU8 = function() { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getDigest_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPlaintextKey())); + this.getDigest())); }; /** * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setPlaintextKey = function(value) { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setDigest = function(value) { return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -15796,16 +18614,16 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setPlaintextKey = fun * optional string algorithm = 3; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getAlgorithm = function() { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getAlgorithm = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setAlgorithm = function(value) { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setAlgorithm = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -15814,101 +18632,189 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setAlgorithm = functi * optional string key_name = 4; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getKeyName = function() { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getKeyName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setKeyName = function(value) { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setKeyName = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional bytes nonce = 5; + * optional bytes signature = 5; * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getNonce = function() { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getSignature = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * optional bytes nonce = 5; - * This is a type-conversion wrapper around `getNonce()` + * optional bytes signature = 5; + * This is a type-conversion wrapper around `getSignature()` * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getNonce_asB64 = function() { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getSignature_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getNonce())); + this.getSignature())); }; /** - * optional bytes nonce = 5; + * optional bytes signature = 5; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getNonce()` + * This is a type-conversion wrapper around `getSignature()` * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getNonce_asU8 = function() { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getSignature_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getNonce())); + this.getSignature())); }; /** * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setNonce = function(value) { +proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setSignature = function(value) { return jspb.Message.setProto3BytesField(this, 5, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional bytes associated_data = 6; - * @return {!(string|Uint8Array)} + * 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.SubtleWrapKeyRequest.prototype.getAssociatedData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.dapr.proto.runtime.v1.SubtleVerifyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.SubtleVerifyResponse.toObject(opt_includeInstance, this); }; /** - * optional bytes associated_data = 6; - * This is a type-conversion wrapper around `getAssociatedData()` - * @return {string} + * 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.SubtleVerifyResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getAssociatedData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAssociatedData())); +proto.dapr.proto.runtime.v1.SubtleVerifyResponse.toObject = function(includeInstance, msg) { + var f, obj = { + valid: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional bytes associated_data = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAssociatedData()` + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyResponse} + */ +proto.dapr.proto.runtime.v1.SubtleVerifyResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.SubtleVerifyResponse; + return proto.dapr.proto.runtime.v1.SubtleVerifyResponse.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.SubtleVerifyResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyResponse} + */ +proto.dapr.proto.runtime.v1.SubtleVerifyResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setValid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getAssociatedData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAssociatedData())); +proto.dapr.proto.runtime.v1.SubtleVerifyResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.SubtleVerifyResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.dapr.proto.runtime.v1.SubtleVerifyResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setAssociatedData = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); +proto.dapr.proto.runtime.v1.SubtleVerifyResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getValid(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool valid = 1; + * @return {boolean} + */ +proto.dapr.proto.runtime.v1.SubtleVerifyResponse.prototype.getValid = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyResponse} returns this + */ +proto.dapr.proto.runtime.v1.SubtleVerifyResponse.prototype.setValid = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -15928,8 +18834,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.EncryptRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.EncryptRequest.toObject(opt_includeInstance, this); }; @@ -15938,14 +18844,14 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.toObject = function( * @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.SubtleWrapKeyResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.EncryptRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - wrappedKey: msg.getWrappedKey_asB64(), - tag: msg.getTag_asB64() +proto.dapr.proto.runtime.v1.EncryptRequest.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.dapr.proto.runtime.v1.EncryptRequestOptions.toObject(includeInstance, f), + payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) }; if (includeInstance) { @@ -15959,23 +18865,23 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} + * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.EncryptRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse; - return proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.EncryptRequest; + return proto.dapr.proto.runtime.v1.EncryptRequest.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.SubtleWrapKeyResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.EncryptRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} + * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.EncryptRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -15983,12 +18889,14 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setWrappedKey(value); + var value = new proto.dapr.proto.runtime.v1.EncryptRequestOptions; + reader.readMessage(value,proto.dapr.proto.runtime.v1.EncryptRequestOptions.deserializeBinaryFromReader); + msg.setOptions(value); break; case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTag(value); + var value = new dapr_proto_common_v1_common_pb.StreamPayload; + reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); + msg.setPayload(value); break; default: reader.skipField(); @@ -16003,9 +18911,9 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.EncryptRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.EncryptRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -16013,110 +18921,102 @@ proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} message + * @param {!proto.dapr.proto.runtime.v1.EncryptRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.EncryptRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getWrappedKey_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getOptions(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto.dapr.proto.runtime.v1.EncryptRequestOptions.serializeBinaryToWriter ); } - f = message.getTag_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getPayload(); + if (f != null) { + writer.writeMessage( 2, - f + f, + dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter ); } }; /** - * optional bytes wrapped_key = 1; - * @return {!(string|Uint8Array)} + * optional EncryptRequestOptions options = 1; + * @return {?proto.dapr.proto.runtime.v1.EncryptRequestOptions} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getWrappedKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.EncryptRequest.prototype.getOptions = function() { + return /** @type{?proto.dapr.proto.runtime.v1.EncryptRequestOptions} */ ( + jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.EncryptRequestOptions, 1)); }; /** - * optional bytes wrapped_key = 1; - * This is a type-conversion wrapper around `getWrappedKey()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getWrappedKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getWrappedKey())); + * @param {?proto.dapr.proto.runtime.v1.EncryptRequestOptions|undefined} value + * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} returns this +*/ +proto.dapr.proto.runtime.v1.EncryptRequest.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional bytes wrapped_key = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getWrappedKey()` - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getWrappedKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getWrappedKey())); +proto.dapr.proto.runtime.v1.EncryptRequest.prototype.clearOptions = function() { + return this.setOptions(undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.setWrappedKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.dapr.proto.runtime.v1.EncryptRequest.prototype.hasOptions = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional bytes tag = 2; - * @return {!(string|Uint8Array)} + * optional dapr.proto.common.v1.StreamPayload payload = 2; + * @return {?proto.dapr.proto.common.v1.StreamPayload} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getTag = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.EncryptRequest.prototype.getPayload = function() { + return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( + jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 2)); }; /** - * optional bytes tag = 2; - * This is a type-conversion wrapper around `getTag()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getTag_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTag())); + * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value + * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} returns this +*/ +proto.dapr.proto.runtime.v1.EncryptRequest.prototype.setPayload = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional bytes tag = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTag()` - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.getTag_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTag())); +proto.dapr.proto.runtime.v1.EncryptRequest.prototype.clearPayload = function() { + return this.setPayload(undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.prototype.setTag = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); +proto.dapr.proto.runtime.v1.EncryptRequest.prototype.hasPayload = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -16136,8 +19036,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.EncryptRequestOptions.toObject(opt_includeInstance, this); }; @@ -16146,19 +19046,18 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.toObject = function * @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.SubtleUnwrapKeyRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.EncryptRequestOptions.toObject = function(includeInstance, msg) { var f, obj = { componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - wrappedKey: msg.getWrappedKey_asB64(), - algorithm: jspb.Message.getFieldWithDefault(msg, 3, ""), - keyName: jspb.Message.getFieldWithDefault(msg, 4, ""), - nonce: msg.getNonce_asB64(), - tag: msg.getTag_asB64(), - associatedData: msg.getAssociatedData_asB64() + keyName: jspb.Message.getFieldWithDefault(msg, 2, ""), + keyWrapAlgorithm: jspb.Message.getFieldWithDefault(msg, 3, ""), + dataEncryptionCipher: jspb.Message.getFieldWithDefault(msg, 10, ""), + omitDecryptionKeyName: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), + decryptionKeyName: jspb.Message.getFieldWithDefault(msg, 12, "") }; if (includeInstance) { @@ -16172,23 +19071,23 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} + * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.EncryptRequestOptions.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest; - return proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.EncryptRequestOptions; + return proto.dapr.proto.runtime.v1.EncryptRequestOptions.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.SubtleUnwrapKeyRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} + * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.EncryptRequestOptions.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -16200,28 +19099,24 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.deserializeBinaryFromReader = msg.setComponentName(value); break; case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setWrappedKey(value); + var value = /** @type {string} */ (reader.readString()); + msg.setKeyName(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setAlgorithm(value); + msg.setKeyWrapAlgorithm(value); break; - case 4: + case 10: var value = /** @type {string} */ (reader.readString()); - msg.setKeyName(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setNonce(value); + msg.setDataEncryptionCipher(value); break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTag(value); + case 11: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setOmitDecryptionKeyName(value); break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAssociatedData(value); + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setDecryptionKeyName(value); break; default: reader.skipField(); @@ -16236,9 +19131,9 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.EncryptRequestOptions.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -16246,11 +19141,11 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} message + * @param {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.EncryptRequestOptions.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getComponentName(); if (f.length > 0) { @@ -16259,45 +19154,38 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.serializeBinaryToWriter = fun f ); } - f = message.getWrappedKey_asU8(); + f = message.getKeyName(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 2, f ); } - f = message.getAlgorithm(); + f = message.getKeyWrapAlgorithm(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getKeyName(); + f = message.getDataEncryptionCipher(); if (f.length > 0) { writer.writeString( - 4, - f - ); - } - f = message.getNonce_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, + 10, f ); } - f = message.getTag_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, + f = message.getOmitDecryptionKeyName(); + if (f) { + writer.writeBool( + 11, f ); } - f = message.getAssociatedData_asU8(); + f = message.getDecryptionKeyName(); if (f.length > 0) { - writer.writeBytes( - 7, + writer.writeString( + 12, f ); } @@ -16308,221 +19196,258 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.serializeBinaryToWriter = fun * optional string component_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getComponentName = function() { +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getComponentName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setComponentName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes wrapped_key = 2; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getWrappedKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes wrapped_key = 2; - * This is a type-conversion wrapper around `getWrappedKey()` - * @return {string} + * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getWrappedKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getWrappedKey())); +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setComponentName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional bytes wrapped_key = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getWrappedKey()` - * @return {!Uint8Array} + * optional string key_name = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getWrappedKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getWrappedKey())); +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getKeyName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setWrappedKey = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setKeyName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string algorithm = 3; + * optional string key_wrap_algorithm = 3; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getAlgorithm = function() { +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getKeyWrapAlgorithm = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setAlgorithm = function(value) { +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setKeyWrapAlgorithm = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional string key_name = 4; + * optional string data_encryption_cipher = 10; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getKeyName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getDataEncryptionCipher = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setKeyName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setDataEncryptionCipher = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); }; /** - * optional bytes nonce = 5; - * @return {!(string|Uint8Array)} + * optional bool omit_decryption_key_name = 11; + * @return {boolean} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getNonce = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getOmitDecryptionKeyName = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); }; /** - * optional bytes nonce = 5; - * This is a type-conversion wrapper around `getNonce()` + * @param {boolean} value + * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this + */ +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setOmitDecryptionKeyName = function(value) { + return jspb.Message.setProto3BooleanField(this, 11, value); +}; + + +/** + * optional string decryption_key_name = 12; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getNonce_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getNonce())); +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getDecryptionKeyName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** - * optional bytes nonce = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getNonce()` - * @return {!Uint8Array} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getNonce_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getNonce())); +proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setDecryptionKeyName = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this + * 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.SubtleUnwrapKeyRequest.prototype.setNonce = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); +proto.dapr.proto.runtime.v1.EncryptResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.EncryptResponse.toObject(opt_includeInstance, this); }; /** - * optional bytes tag = 6; - * @return {!(string|Uint8Array)} + * 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.EncryptResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getTag = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.dapr.proto.runtime.v1.EncryptResponse.toObject = function(includeInstance, msg) { + var f, obj = { + payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional bytes tag = 6; - * This is a type-conversion wrapper around `getTag()` - * @return {string} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.dapr.proto.runtime.v1.EncryptResponse} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getTag_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTag())); +proto.dapr.proto.runtime.v1.EncryptResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.dapr.proto.runtime.v1.EncryptResponse; + return proto.dapr.proto.runtime.v1.EncryptResponse.deserializeBinaryFromReader(msg, reader); }; /** - * optional bytes tag = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTag()` - * @return {!Uint8Array} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.dapr.proto.runtime.v1.EncryptResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.dapr.proto.runtime.v1.EncryptResponse} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getTag_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTag())); +proto.dapr.proto.runtime.v1.EncryptResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new dapr_proto_common_v1_common_pb.StreamPayload; + reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); + msg.setPayload(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setTag = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); +proto.dapr.proto.runtime.v1.EncryptResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.EncryptResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional bytes associated_data = 7; - * @return {!(string|Uint8Array)} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.dapr.proto.runtime.v1.EncryptResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getAssociatedData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +proto.dapr.proto.runtime.v1.EncryptResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPayload(); + if (f != null) { + writer.writeMessage( + 1, + f, + dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter + ); + } }; /** - * optional bytes associated_data = 7; - * This is a type-conversion wrapper around `getAssociatedData()` - * @return {string} + * optional dapr.proto.common.v1.StreamPayload payload = 1; + * @return {?proto.dapr.proto.common.v1.StreamPayload} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getAssociatedData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAssociatedData())); +proto.dapr.proto.runtime.v1.EncryptResponse.prototype.getPayload = function() { + return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( + jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 1)); }; /** - * optional bytes associated_data = 7; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAssociatedData()` - * @return {!Uint8Array} + * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value + * @return {!proto.dapr.proto.runtime.v1.EncryptResponse} returns this +*/ +proto.dapr.proto.runtime.v1.EncryptResponse.prototype.setPayload = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.EncryptResponse} returns this */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getAssociatedData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAssociatedData())); +proto.dapr.proto.runtime.v1.EncryptResponse.prototype.clearPayload = function() { + return this.setPayload(undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setAssociatedData = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); +proto.dapr.proto.runtime.v1.EncryptResponse.prototype.hasPayload = function() { + return jspb.Message.getField(this, 1) != null; }; @@ -16542,8 +19467,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.DecryptRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.DecryptRequest.toObject(opt_includeInstance, this); }; @@ -16552,13 +19477,14 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.toObject = functio * @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.SubtleUnwrapKeyResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.DecryptRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.DecryptRequest.toObject = function(includeInstance, msg) { var f, obj = { - plaintextKey: msg.getPlaintextKey_asB64() + options: (f = msg.getOptions()) && proto.dapr.proto.runtime.v1.DecryptRequestOptions.toObject(includeInstance, f), + payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) }; if (includeInstance) { @@ -16572,23 +19498,23 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} + * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.DecryptRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse; - return proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.DecryptRequest; + return proto.dapr.proto.runtime.v1.DecryptRequest.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.SubtleUnwrapKeyResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.DecryptRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} + * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.DecryptRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -16596,8 +19522,14 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPlaintextKey(value); + var value = new proto.dapr.proto.runtime.v1.DecryptRequestOptions; + reader.readMessage(value,proto.dapr.proto.runtime.v1.DecryptRequestOptions.deserializeBinaryFromReader); + msg.setOptions(value); + break; + case 2: + var value = new dapr_proto_common_v1_common_pb.StreamPayload; + reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); + msg.setPayload(value); break; default: reader.skipField(); @@ -16612,9 +19544,9 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.DecryptRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.DecryptRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -16622,61 +19554,102 @@ proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} message + * @param {!proto.dapr.proto.runtime.v1.DecryptRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.DecryptRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPlaintextKey_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getOptions(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto.dapr.proto.runtime.v1.DecryptRequestOptions.serializeBinaryToWriter + ); + } + f = message.getPayload(); + if (f != null) { + writer.writeMessage( + 2, + f, + dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter ); } }; /** - * optional bytes plaintext_key = 1; - * @return {!(string|Uint8Array)} + * optional DecryptRequestOptions options = 1; + * @return {?proto.dapr.proto.runtime.v1.DecryptRequestOptions} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.getPlaintextKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.DecryptRequest.prototype.getOptions = function() { + return /** @type{?proto.dapr.proto.runtime.v1.DecryptRequestOptions} */ ( + jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.DecryptRequestOptions, 1)); }; /** - * optional bytes plaintext_key = 1; - * This is a type-conversion wrapper around `getPlaintextKey()` - * @return {string} + * @param {?proto.dapr.proto.runtime.v1.DecryptRequestOptions|undefined} value + * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} returns this +*/ +proto.dapr.proto.runtime.v1.DecryptRequest.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.getPlaintextKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPlaintextKey())); +proto.dapr.proto.runtime.v1.DecryptRequest.prototype.clearOptions = function() { + return this.setOptions(undefined); }; /** - * optional bytes plaintext_key = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPlaintextKey()` - * @return {!Uint8Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.getPlaintextKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPlaintextKey())); +proto.dapr.proto.runtime.v1.DecryptRequest.prototype.hasOptions = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} returns this + * optional dapr.proto.common.v1.StreamPayload payload = 2; + * @return {?proto.dapr.proto.common.v1.StreamPayload} */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.setPlaintextKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.dapr.proto.runtime.v1.DecryptRequest.prototype.getPayload = function() { + return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( + jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 2)); +}; + + +/** + * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value + * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} returns this +*/ +proto.dapr.proto.runtime.v1.DecryptRequest.prototype.setPayload = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} returns this + */ +proto.dapr.proto.runtime.v1.DecryptRequest.prototype.clearPayload = function() { + return this.setPayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.dapr.proto.runtime.v1.DecryptRequest.prototype.hasPayload = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -16696,8 +19669,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleSignRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.DecryptRequestOptions.toObject(opt_includeInstance, this); }; @@ -16706,16 +19679,14 @@ proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.toObject = function(opt_ * @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.SubtleSignRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.DecryptRequestOptions.toObject = function(includeInstance, msg) { var f, obj = { componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - digest: msg.getDigest_asB64(), - algorithm: jspb.Message.getFieldWithDefault(msg, 3, ""), - keyName: jspb.Message.getFieldWithDefault(msg, 4, "") + keyName: jspb.Message.getFieldWithDefault(msg, 12, "") }; if (includeInstance) { @@ -16729,23 +19700,23 @@ proto.dapr.proto.runtime.v1.SubtleSignRequest.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} + * @return {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.DecryptRequestOptions.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleSignRequest; - return proto.dapr.proto.runtime.v1.SubtleSignRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.DecryptRequestOptions; + return proto.dapr.proto.runtime.v1.DecryptRequestOptions.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.SubtleSignRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} + * @return {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.DecryptRequestOptions.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -16756,15 +19727,7 @@ proto.dapr.proto.runtime.v1.SubtleSignRequest.deserializeBinaryFromReader = func var value = /** @type {string} */ (reader.readString()); msg.setComponentName(value); break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDigest(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAlgorithm(value); - break; - case 4: + case 12: var value = /** @type {string} */ (reader.readString()); msg.setKeyName(value); break; @@ -16781,9 +19744,9 @@ proto.dapr.proto.runtime.v1.SubtleSignRequest.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleSignRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.DecryptRequestOptions.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -16791,11 +19754,11 @@ proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SubtleSignRequest} message + * @param {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.DecryptRequestOptions.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getComponentName(); if (f.length > 0) { @@ -16804,24 +19767,10 @@ proto.dapr.proto.runtime.v1.SubtleSignRequest.serializeBinaryToWriter = function f ); } - f = message.getDigest_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getAlgorithm(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } f = message.getKeyName(); if (f.length > 0) { writer.writeString( - 4, + 12, f ); } @@ -16832,95 +19781,35 @@ proto.dapr.proto.runtime.v1.SubtleSignRequest.serializeBinaryToWriter = function * optional string component_name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getComponentName = function() { +proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.getComponentName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} returns this */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.setComponentName = function(value) { +proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.setComponentName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional bytes digest = 2; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getDigest = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes digest = 2; - * This is a type-conversion wrapper around `getDigest()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getDigest_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDigest())); -}; - - -/** - * optional bytes digest = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getDigest()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getDigest_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDigest())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.setDigest = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional string algorithm = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getAlgorithm = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.setAlgorithm = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string key_name = 4; + * optional string key_name = 12; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.getKeyName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.getKeyName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} returns this */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.setKeyName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.setKeyName = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); }; @@ -16940,8 +19829,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleSignResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.DecryptResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.DecryptResponse.toObject(opt_includeInstance, this); }; @@ -16950,13 +19839,13 @@ proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.toObject = function(opt * @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.SubtleSignResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.DecryptResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.DecryptResponse.toObject = function(includeInstance, msg) { var f, obj = { - signature: msg.getSignature_asB64() + payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) }; if (includeInstance) { @@ -16970,23 +19859,23 @@ proto.dapr.proto.runtime.v1.SubtleSignResponse.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleSignResponse} + * @return {!proto.dapr.proto.runtime.v1.DecryptResponse} */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.DecryptResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleSignResponse; - return proto.dapr.proto.runtime.v1.SubtleSignResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.DecryptResponse; + return proto.dapr.proto.runtime.v1.DecryptResponse.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.SubtleSignResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.DecryptResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleSignResponse} + * @return {!proto.dapr.proto.runtime.v1.DecryptResponse} */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.DecryptResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -16994,8 +19883,9 @@ proto.dapr.proto.runtime.v1.SubtleSignResponse.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignature(value); + var value = new dapr_proto_common_v1_common_pb.StreamPayload; + reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); + msg.setPayload(value); break; default: reader.skipField(); @@ -17010,9 +19900,9 @@ proto.dapr.proto.runtime.v1.SubtleSignResponse.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.DecryptResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleSignResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.DecryptResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -17020,61 +19910,57 @@ proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.SubtleSignResponse} message + * @param {!proto.dapr.proto.runtime.v1.DecryptResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.DecryptResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getPayload(); + if (f != null) { + writer.writeMessage( 1, - f + f, + dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter ); } }; /** - * optional bytes signature = 1; - * @return {!(string|Uint8Array)} + * optional dapr.proto.common.v1.StreamPayload payload = 1; + * @return {?proto.dapr.proto.common.v1.StreamPayload} */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.DecryptResponse.prototype.getPayload = function() { + return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( + jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 1)); }; /** - * optional bytes signature = 1; - * This is a type-conversion wrapper around `getSignature()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.getSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignature())); + * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value + * @return {!proto.dapr.proto.runtime.v1.DecryptResponse} returns this +*/ +proto.dapr.proto.runtime.v1.DecryptResponse.prototype.setPayload = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional bytes signature = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSignature()` - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.DecryptResponse} returns this */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.getSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignature())); +proto.dapr.proto.runtime.v1.DecryptResponse.prototype.clearPayload = function() { + return this.setPayload(undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleSignResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.dapr.proto.runtime.v1.DecryptResponse.prototype.hasPayload = function() { + return jspb.Message.getField(this, 1) != null; }; @@ -17094,8 +19980,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleVerifyRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetWorkflowRequest.toObject(opt_includeInstance, this); }; @@ -17104,17 +19990,14 @@ proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.toObject = function(op * @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.SubtleVerifyRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetWorkflowRequest.toObject = function(includeInstance, msg) { var f, obj = { - componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - digest: msg.getDigest_asB64(), - algorithm: jspb.Message.getFieldWithDefault(msg, 3, ""), - keyName: jspb.Message.getFieldWithDefault(msg, 4, ""), - signature: msg.getSignature_asB64() + instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), + workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -17128,23 +20011,23 @@ proto.dapr.proto.runtime.v1.SubtleVerifyRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.GetWorkflowRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleVerifyRequest; - return proto.dapr.proto.runtime.v1.SubtleVerifyRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.GetWorkflowRequest; + return proto.dapr.proto.runtime.v1.GetWorkflowRequest.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.SubtleVerifyRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -17153,226 +20036,91 @@ proto.dapr.proto.runtime.v1.SubtleVerifyRequest.deserializeBinaryFromReader = fu switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setComponentName(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDigest(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAlgorithm(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setKeyName(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignature(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleVerifyRequest.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.SubtleVerifyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getComponentName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDigest_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getAlgorithm(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getKeyName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } -}; - - -/** - * optional string component_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getComponentName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setComponentName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes digest = 2; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getDigest = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes digest = 2; - * This is a type-conversion wrapper around `getDigest()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getDigest_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDigest())); -}; - - -/** - * optional bytes digest = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getDigest()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getDigest_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDigest())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setDigest = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + msg.setInstanceId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowComponent(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional string algorithm = 3; - * @return {string} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getAlgorithm = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.GetWorkflowRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setAlgorithm = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.dapr.proto.runtime.v1.GetWorkflowRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInstanceId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getWorkflowComponent(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } }; /** - * optional string key_name = 4; + * optional string instance_id = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getKeyName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.getInstanceId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setKeyName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes signature = 5; - * @return {!(string|Uint8Array)} + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.setInstanceId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional bytes signature = 5; - * This is a type-conversion wrapper around `getSignature()` + * optional string workflow_component = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignature())); -}; - - -/** - * optional bytes signature = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSignature()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignature())); +proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.getWorkflowComponent = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); +proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.setWorkflowComponent = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -17392,8 +20140,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.SubtleVerifyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleVerifyResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetWorkflowResponse.toObject(opt_includeInstance, this); }; @@ -17402,13 +20150,18 @@ proto.dapr.proto.runtime.v1.SubtleVerifyResponse.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.SubtleVerifyResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleVerifyResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetWorkflowResponse.toObject = function(includeInstance, msg) { var f, obj = { - valid: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), + workflowName: jspb.Message.getFieldWithDefault(msg, 2, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + lastUpdatedAt: (f = msg.getLastUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + runtimeStatus: jspb.Message.getFieldWithDefault(msg, 5, ""), + propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -17422,23 +20175,23 @@ proto.dapr.proto.runtime.v1.SubtleVerifyResponse.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyResponse} + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} */ -proto.dapr.proto.runtime.v1.SubtleVerifyResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.GetWorkflowResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SubtleVerifyResponse; - return proto.dapr.proto.runtime.v1.SubtleVerifyResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.GetWorkflowResponse; + return proto.dapr.proto.runtime.v1.GetWorkflowResponse.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.SubtleVerifyResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyResponse} + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} */ -proto.dapr.proto.runtime.v1.SubtleVerifyResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetWorkflowResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -17446,8 +20199,32 @@ proto.dapr.proto.runtime.v1.SubtleVerifyResponse.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setValid(value); + var value = /** @type {string} */ (reader.readString()); + msg.setInstanceId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowName(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setLastUpdatedAt(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setRuntimeStatus(value); + break; + case 6: + var value = msg.getPropertiesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); break; default: reader.skipField(); @@ -17462,9 +20239,9 @@ proto.dapr.proto.runtime.v1.SubtleVerifyResponse.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.SubtleVerifyResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleVerifyResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetWorkflowResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -17472,193 +20249,154 @@ proto.dapr.proto.runtime.v1.SubtleVerifyResponse.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.SubtleVerifyResponse} message + * @param {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.SubtleVerifyResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.GetWorkflowResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getValid(); - if (f) { - writer.writeBool( + f = message.getInstanceId(); + if (f.length > 0) { + writer.writeString( 1, f ); } + f = message.getWorkflowName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getLastUpdatedAt(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getRuntimeStatus(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getPropertiesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } }; /** - * optional bool valid = 1; - * @return {boolean} + * optional string instance_id = 1; + * @return {string} */ -proto.dapr.proto.runtime.v1.SubtleVerifyResponse.prototype.getValid = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getInstanceId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyResponse} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this */ -proto.dapr.proto.runtime.v1.SubtleVerifyResponse.prototype.setValid = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.setInstanceId = function(value) { + return jspb.Message.setProto3StringField(this, 1, 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} + * optional string workflow_name = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.EncryptRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getWorkflowName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * 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.EncryptRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.EncryptRequest.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.dapr.proto.runtime.v1.EncryptRequestOptions.toObject(includeInstance, f), - payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.setWorkflowName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} + * optional google.protobuf.Timestamp created_at = 3; + * @return {?proto.google.protobuf.Timestamp} */ -proto.dapr.proto.runtime.v1.EncryptRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.EncryptRequest; - return proto.dapr.proto.runtime.v1.EncryptRequest.deserializeBinaryFromReader(msg, reader); +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.runtime.v1.EncryptRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} - */ -proto.dapr.proto.runtime.v1.EncryptRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.dapr.proto.runtime.v1.EncryptRequestOptions; - reader.readMessage(value,proto.dapr.proto.runtime.v1.EncryptRequestOptions.deserializeBinaryFromReader); - msg.setOptions(value); - break; - case 2: - var value = new dapr_proto_common_v1_common_pb.StreamPayload; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); - msg.setPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this +*/ +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.EncryptRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.EncryptRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.EncryptRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.runtime.v1.EncryptRequestOptions.serializeBinaryToWriter - ); - } - f = message.getPayload(); - if (f != null) { - writer.writeMessage( - 2, - f, - dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter - ); - } +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional EncryptRequestOptions options = 1; - * @return {?proto.dapr.proto.runtime.v1.EncryptRequestOptions} + * optional google.protobuf.Timestamp last_updated_at = 4; + * @return {?proto.google.protobuf.Timestamp} */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.getOptions = function() { - return /** @type{?proto.dapr.proto.runtime.v1.EncryptRequestOptions} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.EncryptRequestOptions, 1)); +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getLastUpdatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); }; /** - * @param {?proto.dapr.proto.runtime.v1.EncryptRequestOptions|undefined} value - * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.setLastUpdatedAt = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.clearOptions = function() { - return this.setOptions(undefined); +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.clearLastUpdatedAt = function() { + return this.setLastUpdatedAt(undefined); }; @@ -17666,45 +20404,49 @@ proto.dapr.proto.runtime.v1.EncryptRequest.prototype.clearOptions = function() { * Returns whether this field is set. * @return {boolean} */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.hasOptions = function() { - return jspb.Message.getField(this, 1) != null; +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.hasLastUpdatedAt = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional dapr.proto.common.v1.StreamPayload payload = 2; - * @return {?proto.dapr.proto.common.v1.StreamPayload} + * optional string runtime_status = 5; + * @return {string} */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.getPayload = function() { - return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 2)); +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getRuntimeStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value - * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} returns this -*/ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.setPayload = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this + */ +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.setRuntimeStatus = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} returns this + * map properties = 6; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.clearPayload = function() { - return this.setPayload(undefined); +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getPropertiesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 6, opt_noLazyCreate, + null)); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.hasPayload = function() { - return jspb.Message.getField(this, 2) != null; +proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.clearPropertiesMap = function() { + this.getPropertiesMap().clear(); + return this; }; @@ -17724,8 +20466,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.EncryptRequestOptions.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.StartWorkflowRequest.toObject(opt_includeInstance, this); }; @@ -17734,18 +20476,17 @@ proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.toObject = function( * @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.EncryptRequestOptions} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.StartWorkflowRequest.toObject = function(includeInstance, msg) { var f, obj = { - componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - keyName: jspb.Message.getFieldWithDefault(msg, 2, ""), - keyWrapAlgorithm: jspb.Message.getFieldWithDefault(msg, 3, ""), - dataEncryptionCipher: jspb.Message.getFieldWithDefault(msg, 10, ""), - omitDecryptionKeyName: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), - decryptionKeyName: jspb.Message.getFieldWithDefault(msg, 12, "") + instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), + workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, ""), + workflowName: jspb.Message.getFieldWithDefault(msg, 3, ""), + optionsMap: (f = msg.getOptionsMap()) ? f.toObject(includeInstance, undefined) : [], + input: msg.getInput_asB64() }; if (includeInstance) { @@ -17759,23 +20500,23 @@ proto.dapr.proto.runtime.v1.EncryptRequestOptions.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} + * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.StartWorkflowRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.EncryptRequestOptions; - return proto.dapr.proto.runtime.v1.EncryptRequestOptions.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.StartWorkflowRequest; + return proto.dapr.proto.runtime.v1.StartWorkflowRequest.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.EncryptRequestOptions} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} + * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.StartWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -17784,27 +20525,25 @@ proto.dapr.proto.runtime.v1.EncryptRequestOptions.deserializeBinaryFromReader = switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setComponentName(value); + msg.setInstanceId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setKeyName(value); + msg.setWorkflowComponent(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setKeyWrapAlgorithm(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setDataEncryptionCipher(value); + msg.setWorkflowName(value); break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOmitDecryptionKeyName(value); + case 4: + var value = msg.getOptionsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setDecryptionKeyName(value); + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setInput(value); break; default: reader.skipField(); @@ -17819,9 +20558,9 @@ proto.dapr.proto.runtime.v1.EncryptRequestOptions.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.EncryptRequestOptions.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.StartWorkflowRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -17829,51 +20568,41 @@ proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} message + * @param {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.StartWorkflowRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getComponentName(); + f = message.getInstanceId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getKeyName(); + f = message.getWorkflowComponent(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getKeyWrapAlgorithm(); + f = message.getWorkflowName(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getDataEncryptionCipher(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getOmitDecryptionKeyName(); - if (f) { - writer.writeBool( - 11, - f - ); + f = message.getOptionsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } - f = message.getDecryptionKeyName(); + f = message.getInput_asU8(); if (f.length > 0) { - writer.writeString( - 12, + writer.writeBytes( + 5, f ); } @@ -17881,110 +20610,121 @@ proto.dapr.proto.runtime.v1.EncryptRequestOptions.serializeBinaryToWriter = func /** - * optional string component_name = 1; + * optional string instance_id = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getComponentName = function() { +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getInstanceId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this + * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setComponentName = function(value) { +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setInstanceId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string key_name = 2; + * optional string workflow_component = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getKeyName = function() { +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getWorkflowComponent = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this + * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setKeyName = function(value) { +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setWorkflowComponent = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string key_wrap_algorithm = 3; + * optional string workflow_name = 3; * @return {string} */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getKeyWrapAlgorithm = function() { +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getWorkflowName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this + * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setKeyWrapAlgorithm = function(value) { +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setWorkflowName = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional string data_encryption_cipher = 10; - * @return {string} + * map options = 4; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getDataEncryptionCipher = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getOptionsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 4, opt_noLazyCreate, + null)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setDataEncryptionCipher = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.clearOptionsMap = function() { + this.getOptionsMap().clear(); + return this; }; /** - * optional bool omit_decryption_key_name = 11; - * @return {boolean} + * optional bytes input = 5; + * @return {!(string|Uint8Array)} */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getOmitDecryptionKeyName = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getInput = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this + * optional bytes input = 5; + * This is a type-conversion wrapper around `getInput()` + * @return {string} */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setOmitDecryptionKeyName = function(value) { - return jspb.Message.setProto3BooleanField(this, 11, value); +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getInput_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getInput())); }; /** - * optional string decryption_key_name = 12; - * @return {string} + * optional bytes input = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getInput()` + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getDecryptionKeyName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getInput_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getInput())); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setDecryptionKeyName = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); +proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setInput = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); }; @@ -18004,8 +20744,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.EncryptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.EncryptResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.StartWorkflowResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.StartWorkflowResponse.toObject(opt_includeInstance, this); }; @@ -18014,13 +20754,13 @@ proto.dapr.proto.runtime.v1.EncryptResponse.prototype.toObject = function(opt_in * @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.EncryptResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.EncryptResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.StartWorkflowResponse.toObject = function(includeInstance, msg) { var f, obj = { - payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) + instanceId: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -18034,23 +20774,23 @@ proto.dapr.proto.runtime.v1.EncryptResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.EncryptResponse} + * @return {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} */ -proto.dapr.proto.runtime.v1.EncryptResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.StartWorkflowResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.EncryptResponse; - return proto.dapr.proto.runtime.v1.EncryptResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.StartWorkflowResponse; + return proto.dapr.proto.runtime.v1.StartWorkflowResponse.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.EncryptResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.EncryptResponse} + * @return {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} */ -proto.dapr.proto.runtime.v1.EncryptResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.StartWorkflowResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18058,9 +20798,8 @@ proto.dapr.proto.runtime.v1.EncryptResponse.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new dapr_proto_common_v1_common_pb.StreamPayload; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); - msg.setPayload(value); + var value = /** @type {string} */ (reader.readString()); + msg.setInstanceId(value); break; default: reader.skipField(); @@ -18075,9 +20814,9 @@ proto.dapr.proto.runtime.v1.EncryptResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.EncryptResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.StartWorkflowResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.EncryptResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.StartWorkflowResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18085,57 +20824,37 @@ proto.dapr.proto.runtime.v1.EncryptResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.EncryptResponse} message + * @param {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.EncryptResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.StartWorkflowResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPayload(); - if (f != null) { - writer.writeMessage( + f = message.getInstanceId(); + if (f.length > 0) { + writer.writeString( 1, - f, - dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter + f ); } }; /** - * optional dapr.proto.common.v1.StreamPayload payload = 1; - * @return {?proto.dapr.proto.common.v1.StreamPayload} - */ -proto.dapr.proto.runtime.v1.EncryptResponse.prototype.getPayload = function() { - return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 1)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value - * @return {!proto.dapr.proto.runtime.v1.EncryptResponse} returns this -*/ -proto.dapr.proto.runtime.v1.EncryptResponse.prototype.setPayload = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.EncryptResponse} returns this + * optional string instance_id = 1; + * @return {string} */ -proto.dapr.proto.runtime.v1.EncryptResponse.prototype.clearPayload = function() { - return this.setPayload(undefined); +proto.dapr.proto.runtime.v1.StartWorkflowResponse.prototype.getInstanceId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} returns this */ -proto.dapr.proto.runtime.v1.EncryptResponse.prototype.hasPayload = function() { - return jspb.Message.getField(this, 1) != null; +proto.dapr.proto.runtime.v1.StartWorkflowResponse.prototype.setInstanceId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -18155,8 +20874,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DecryptRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.toObject(opt_includeInstance, this); }; @@ -18165,14 +20884,14 @@ proto.dapr.proto.runtime.v1.DecryptRequest.prototype.toObject = function(opt_inc * @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.DecryptRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.DecryptRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.toObject = function(includeInstance, msg) { var f, obj = { - options: (f = msg.getOptions()) && proto.dapr.proto.runtime.v1.DecryptRequestOptions.toObject(includeInstance, f), - payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) + instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), + workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -18186,23 +20905,23 @@ proto.dapr.proto.runtime.v1.DecryptRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} + * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} */ -proto.dapr.proto.runtime.v1.DecryptRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.DecryptRequest; - return proto.dapr.proto.runtime.v1.DecryptRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.TerminateWorkflowRequest; + return proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.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.DecryptRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} + * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} */ -proto.dapr.proto.runtime.v1.DecryptRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18210,134 +20929,92 @@ proto.dapr.proto.runtime.v1.DecryptRequest.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.dapr.proto.runtime.v1.DecryptRequestOptions; - reader.readMessage(value,proto.dapr.proto.runtime.v1.DecryptRequestOptions.deserializeBinaryFromReader); - msg.setOptions(value); + var value = /** @type {string} */ (reader.readString()); + msg.setInstanceId(value); break; case 2: - var value = new dapr_proto_common_v1_common_pb.StreamPayload; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); - msg.setPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.DecryptRequest.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.DecryptRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DecryptRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.runtime.v1.DecryptRequestOptions.serializeBinaryToWriter - ); - } - f = message.getPayload(); - if (f != null) { - writer.writeMessage( - 2, - f, - dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DecryptRequestOptions options = 1; - * @return {?proto.dapr.proto.runtime.v1.DecryptRequestOptions} - */ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.getOptions = function() { - return /** @type{?proto.dapr.proto.runtime.v1.DecryptRequestOptions} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.DecryptRequestOptions, 1)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.DecryptRequestOptions|undefined} value - * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} returns this -*/ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowComponent(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.clearOptions = function() { - return this.setOptions(undefined); +proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.hasOptions = function() { - return jspb.Message.getField(this, 1) != null; +proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInstanceId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getWorkflowComponent(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } }; /** - * optional dapr.proto.common.v1.StreamPayload payload = 2; - * @return {?proto.dapr.proto.common.v1.StreamPayload} + * optional string instance_id = 1; + * @return {string} */ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.getPayload = function() { - return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 2)); +proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.getInstanceId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value - * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} returns this -*/ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.setPayload = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} returns this + */ +proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.setInstanceId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} returns this + * optional string workflow_component = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.clearPayload = function() { - return this.setPayload(undefined); +proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.getWorkflowComponent = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.hasPayload = function() { - return jspb.Message.getField(this, 2) != null; +proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.setWorkflowComponent = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -18357,8 +21034,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DecryptRequestOptions.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.PauseWorkflowRequest.toObject(opt_includeInstance, this); }; @@ -18367,14 +21044,14 @@ proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.toObject = function( * @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.DecryptRequestOptions} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.PauseWorkflowRequest.toObject = function(includeInstance, msg) { var f, obj = { - componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - keyName: jspb.Message.getFieldWithDefault(msg, 12, "") + instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), + workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -18388,23 +21065,23 @@ proto.dapr.proto.runtime.v1.DecryptRequestOptions.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} + * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.PauseWorkflowRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.DecryptRequestOptions; - return proto.dapr.proto.runtime.v1.DecryptRequestOptions.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.PauseWorkflowRequest; + return proto.dapr.proto.runtime.v1.PauseWorkflowRequest.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.DecryptRequestOptions} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} + * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.PauseWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18413,11 +21090,11 @@ proto.dapr.proto.runtime.v1.DecryptRequestOptions.deserializeBinaryFromReader = switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setComponentName(value); + msg.setInstanceId(value); break; - case 12: + case 2: var value = /** @type {string} */ (reader.readString()); - msg.setKeyName(value); + msg.setWorkflowComponent(value); break; default: reader.skipField(); @@ -18432,9 +21109,9 @@ proto.dapr.proto.runtime.v1.DecryptRequestOptions.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.DecryptRequestOptions.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.PauseWorkflowRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18442,23 +21119,23 @@ proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} message + * @param {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.PauseWorkflowRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getComponentName(); + f = message.getInstanceId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getKeyName(); + f = message.getWorkflowComponent(); if (f.length > 0) { writer.writeString( - 12, + 2, f ); } @@ -18466,38 +21143,38 @@ proto.dapr.proto.runtime.v1.DecryptRequestOptions.serializeBinaryToWriter = func /** - * optional string component_name = 1; + * optional string instance_id = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.getComponentName = function() { +proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.getInstanceId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} returns this + * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.setComponentName = function(value) { +proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.setInstanceId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string key_name = 12; + * optional string workflow_component = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.getKeyName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.getWorkflowComponent = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} returns this + * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.setKeyName = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); +proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.setWorkflowComponent = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -18517,8 +21194,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.DecryptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DecryptResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.toObject(opt_includeInstance, this); }; @@ -18527,13 +21204,14 @@ proto.dapr.proto.runtime.v1.DecryptResponse.prototype.toObject = function(opt_in * @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.DecryptResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.DecryptResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.toObject = function(includeInstance, msg) { var f, obj = { - payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) + instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), + workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -18547,23 +21225,23 @@ proto.dapr.proto.runtime.v1.DecryptResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.DecryptResponse} + * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} */ -proto.dapr.proto.runtime.v1.DecryptResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.DecryptResponse; - return proto.dapr.proto.runtime.v1.DecryptResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.ResumeWorkflowRequest; + return proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.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.DecryptResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.DecryptResponse} + * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} */ -proto.dapr.proto.runtime.v1.DecryptResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18571,9 +21249,12 @@ proto.dapr.proto.runtime.v1.DecryptResponse.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new dapr_proto_common_v1_common_pb.StreamPayload; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); - msg.setPayload(value); + var value = /** @type {string} */ (reader.readString()); + msg.setInstanceId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowComponent(value); break; default: reader.skipField(); @@ -18588,9 +21269,9 @@ proto.dapr.proto.runtime.v1.DecryptResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.DecryptResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.DecryptResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18598,57 +21279,62 @@ proto.dapr.proto.runtime.v1.DecryptResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.DecryptResponse} message + * @param {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.DecryptResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPayload(); - if (f != null) { - writer.writeMessage( + f = message.getInstanceId(); + if (f.length > 0) { + writer.writeString( 1, - f, - dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter + f + ); + } + f = message.getWorkflowComponent(); + if (f.length > 0) { + writer.writeString( + 2, + f ); } }; /** - * optional dapr.proto.common.v1.StreamPayload payload = 1; - * @return {?proto.dapr.proto.common.v1.StreamPayload} + * optional string instance_id = 1; + * @return {string} */ -proto.dapr.proto.runtime.v1.DecryptResponse.prototype.getPayload = function() { - return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 1)); +proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.getInstanceId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value - * @return {!proto.dapr.proto.runtime.v1.DecryptResponse} returns this -*/ -proto.dapr.proto.runtime.v1.DecryptResponse.prototype.setPayload = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} returns this + */ +proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.setInstanceId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.DecryptResponse} returns this + * optional string workflow_component = 2; + * @return {string} */ -proto.dapr.proto.runtime.v1.DecryptResponse.prototype.clearPayload = function() { - return this.setPayload(undefined); +proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.getWorkflowComponent = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.DecryptResponse.prototype.hasPayload = function() { - return jspb.Message.getField(this, 1) != null; +proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.setWorkflowComponent = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -18668,8 +21354,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetWorkflowRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.toObject(opt_includeInstance, this); }; @@ -18678,14 +21364,16 @@ proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.toObject = function(opt * @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.GetWorkflowRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.toObject = function(includeInstance, msg) { var f, obj = { instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") + workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, ""), + eventName: jspb.Message.getFieldWithDefault(msg, 3, ""), + eventData: msg.getEventData_asB64() }; if (includeInstance) { @@ -18699,23 +21387,23 @@ proto.dapr.proto.runtime.v1.GetWorkflowRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetWorkflowRequest; - return proto.dapr.proto.runtime.v1.GetWorkflowRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest; + return proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.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.GetWorkflowRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18730,6 +21418,14 @@ proto.dapr.proto.runtime.v1.GetWorkflowRequest.deserializeBinaryFromReader = fun var value = /** @type {string} */ (reader.readString()); msg.setWorkflowComponent(value); break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setEventName(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setEventData(value); + break; default: reader.skipField(); break; @@ -18743,9 +21439,9 @@ proto.dapr.proto.runtime.v1.GetWorkflowRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetWorkflowRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18753,11 +21449,11 @@ proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} message + * @param {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getInstanceId(); if (f.length > 0) { @@ -18773,6 +21469,20 @@ proto.dapr.proto.runtime.v1.GetWorkflowRequest.serializeBinaryToWriter = functio f ); } + f = message.getEventName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getEventData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } }; @@ -18780,16 +21490,16 @@ proto.dapr.proto.runtime.v1.GetWorkflowRequest.serializeBinaryToWriter = functio * optional string instance_id = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.getInstanceId = function() { +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getInstanceId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.setInstanceId = function(value) { +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setInstanceId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -18798,20 +21508,80 @@ proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.setInstanceId = functio * optional string workflow_component = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.getWorkflowComponent = function() { +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getWorkflowComponent = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.setWorkflowComponent = function(value) { +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setWorkflowComponent = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; +/** + * optional string event_name = 3; + * @return {string} + */ +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this + */ +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setEventName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional bytes event_data = 4; + * @return {!(string|Uint8Array)} + */ +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes event_data = 4; + * This is a type-conversion wrapper around `getEventData()` + * @return {string} + */ +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getEventData())); +}; + + +/** + * optional bytes event_data = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getEventData()` + * @return {!Uint8Array} + */ +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getEventData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this + */ +proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setEventData = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + @@ -18828,8 +21598,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetWorkflowResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.toObject(opt_includeInstance, this); }; @@ -18838,18 +21608,14 @@ proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.toObject = function(op * @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.GetWorkflowResponse} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.toObject = function(includeInstance, msg) { var f, obj = { instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowName: jspb.Message.getFieldWithDefault(msg, 2, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastUpdatedAt: (f = msg.getLastUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - runtimeStatus: jspb.Message.getFieldWithDefault(msg, 5, ""), - propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, undefined) : [] + workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -18863,23 +21629,23 @@ proto.dapr.proto.runtime.v1.GetWorkflowResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} + * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetWorkflowResponse; - return proto.dapr.proto.runtime.v1.GetWorkflowResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.PurgeWorkflowRequest; + return proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.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.GetWorkflowResponse} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} + * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18892,27 +21658,7 @@ proto.dapr.proto.runtime.v1.GetWorkflowResponse.deserializeBinaryFromReader = fu break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowName(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastUpdatedAt(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setRuntimeStatus(value); - break; - case 6: - var value = msg.getPropertiesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); + msg.setWorkflowComponent(value); break; default: reader.skipField(); @@ -18927,9 +21673,9 @@ proto.dapr.proto.runtime.v1.GetWorkflowResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetWorkflowResponse.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18937,11 +21683,11 @@ proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} message + * @param {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getInstanceId(); if (f.length > 0) { @@ -18950,40 +21696,13 @@ proto.dapr.proto.runtime.v1.GetWorkflowResponse.serializeBinaryToWriter = functi f ); } - f = message.getWorkflowName(); + f = message.getWorkflowComponent(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastUpdatedAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getRuntimeStatus(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getPropertiesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } }; @@ -18991,150 +21710,137 @@ proto.dapr.proto.runtime.v1.GetWorkflowResponse.serializeBinaryToWriter = functi * optional string instance_id = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getInstanceId = function() { +proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.getInstanceId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this + * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.setInstanceId = function(value) { +proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.setInstanceId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string workflow_name = 2; + * optional string workflow_component = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getWorkflowName = function() { +proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.getWorkflowComponent = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this + * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} returns this */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.setWorkflowName = function(value) { +proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.setWorkflowComponent = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * optional google.protobuf.Timestamp created_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this -*/ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_updated_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getLastUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this -*/ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.setLastUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this + * 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.GetWorkflowResponse.prototype.clearLastUpdatedAt = function() { - return this.setLastUpdatedAt(undefined); +proto.dapr.proto.runtime.v1.ShutdownRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.ShutdownRequest.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * 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.GetWorkflowResponse.prototype.hasLastUpdatedAt = function() { - return jspb.Message.getField(this, 4) != null; +proto.dapr.proto.runtime.v1.ShutdownRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional string runtime_status = 5; - * @return {string} + * 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.GetWorkflowResponse.prototype.getRuntimeStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +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); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this + * 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.GetWorkflowResponse.prototype.setRuntimeStatus = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +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; }; /** - * map properties = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getPropertiesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); +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(); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this + * 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.GetWorkflowResponse.prototype.clearPropertiesMap = function() { - this.getPropertiesMap().clear(); - return this;}; +proto.dapr.proto.runtime.v1.ShutdownRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; @@ -19153,8 +21859,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.StartWorkflowRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.Job.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.Job.toObject(opt_includeInstance, this); }; @@ -19163,17 +21869,18 @@ proto.dapr.proto.runtime.v1.StartWorkflowRequest.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.StartWorkflowRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.Job} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.Job.toObject = function(includeInstance, msg) { var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, ""), - workflowName: jspb.Message.getFieldWithDefault(msg, 3, ""), - optionsMap: (f = msg.getOptionsMap()) ? f.toObject(includeInstance, undefined) : [], - input: msg.getInput_asB64() + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + schedule: jspb.Message.getFieldWithDefault(msg, 2, ""), + repeats: jspb.Message.getFieldWithDefault(msg, 3, 0), + dueTime: jspb.Message.getFieldWithDefault(msg, 4, ""), + ttl: jspb.Message.getFieldWithDefault(msg, 5, ""), + data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f) }; if (includeInstance) { @@ -19187,23 +21894,23 @@ proto.dapr.proto.runtime.v1.StartWorkflowRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.Job} */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.Job.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.StartWorkflowRequest; - return proto.dapr.proto.runtime.v1.StartWorkflowRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.Job; + return proto.dapr.proto.runtime.v1.Job.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.StartWorkflowRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.Job} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.Job} */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.Job.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -19212,25 +21919,28 @@ proto.dapr.proto.runtime.v1.StartWorkflowRequest.deserializeBinaryFromReader = f switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setInstanceId(value); + msg.setName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowComponent(value); + msg.setSchedule(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowName(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setRepeats(value); break; case 4: - var value = msg.getOptionsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); + var value = /** @type {string} */ (reader.readString()); + msg.setDueTime(value); break; case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setInput(value); + var value = /** @type {string} */ (reader.readString()); + msg.setTtl(value); + break; + case 6: + var value = new google_protobuf_any_pb.Any; + reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); + msg.setData(value); break; default: reader.skipField(); @@ -19245,9 +21955,9 @@ proto.dapr.proto.runtime.v1.StartWorkflowRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.Job.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.StartWorkflowRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.Job.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -19255,292 +21965,254 @@ proto.dapr.proto.runtime.v1.StartWorkflowRequest.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.StartWorkflowRequest} message + * @param {!proto.dapr.proto.runtime.v1.Job} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.Job.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getInstanceId(); + f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getWorkflowComponent(); - if (f.length > 0) { + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { writer.writeString( 2, f ); } - f = message.getWorkflowName(); - if (f.length > 0) { - writer.writeString( + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint32( 3, f ); } - f = message.getOptionsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); } - f = message.getInput_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString( 5, f ); } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_any_pb.Any.serializeBinaryToWriter + ); + } }; /** - * optional string instance_id = 1; + * optional string name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getInstanceId = function() { +proto.dapr.proto.runtime.v1.Job.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.Job} returns this */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setInstanceId = function(value) { +proto.dapr.proto.runtime.v1.Job.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string workflow_component = 2; + * optional string schedule = 2; * @return {string} */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getWorkflowComponent = function() { +proto.dapr.proto.runtime.v1.Job.prototype.getSchedule = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.Job} returns this */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.Job.prototype.setSchedule = function(value) { + return jspb.Message.setField(this, 2, value); }; /** - * optional string workflow_name = 3; - * @return {string} + * Clears the field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.Job} returns this */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getWorkflowName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.dapr.proto.runtime.v1.Job.prototype.clearSchedule = function() { + return jspb.Message.setField(this, 2, undefined); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setWorkflowName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.dapr.proto.runtime.v1.Job.prototype.hasSchedule = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * map options = 4; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * optional uint32 repeats = 3; + * @return {number} */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getOptionsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 4, opt_noLazyCreate, - null)); +proto.dapr.proto.runtime.v1.Job.prototype.getRepeats = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} returns this + * @param {number} value + * @return {!proto.dapr.proto.runtime.v1.Job} returns this */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.clearOptionsMap = function() { - this.getOptionsMap().clear(); - return this;}; +proto.dapr.proto.runtime.v1.Job.prototype.setRepeats = function(value) { + return jspb.Message.setField(this, 3, value); +}; /** - * optional bytes input = 5; - * @return {!(string|Uint8Array)} + * Clears the field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.Job} returns this */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getInput = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.dapr.proto.runtime.v1.Job.prototype.clearRepeats = function() { + return jspb.Message.setField(this, 3, undefined); }; /** - * optional bytes input = 5; - * This is a type-conversion wrapper around `getInput()` - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getInput_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getInput())); +proto.dapr.proto.runtime.v1.Job.prototype.hasRepeats = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional bytes input = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getInput()` - * @return {!Uint8Array} + * optional string due_time = 4; + * @return {string} */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getInput_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getInput())); +proto.dapr.proto.runtime.v1.Job.prototype.getDueTime = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} returns this + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.Job} returns this */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setInput = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); +proto.dapr.proto.runtime.v1.Job.prototype.setDueTime = function(value) { + return jspb.Message.setField(this, 4, 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} +/** + * Clears the field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.Job} returns this */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.StartWorkflowResponse.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.Job.prototype.clearDueTime = function() { + return jspb.Message.setField(this, 4, undefined); }; /** - * 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.StartWorkflowResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.toObject = function(includeInstance, msg) { - var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; +proto.dapr.proto.runtime.v1.Job.prototype.hasDueTime = function() { + return jspb.Message.getField(this, 4) != null; +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * optional string ttl = 5; + * @return {string} + */ +proto.dapr.proto.runtime.v1.Job.prototype.getTtl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} + * @param {string} value + * @return {!proto.dapr.proto.runtime.v1.Job} returns this */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.StartWorkflowResponse; - return proto.dapr.proto.runtime.v1.StartWorkflowResponse.deserializeBinaryFromReader(msg, reader); +proto.dapr.proto.runtime.v1.Job.prototype.setTtl = function(value) { + return jspb.Message.setField(this, 5, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} + * Clears the field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.Job} returns this */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setInstanceId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.dapr.proto.runtime.v1.Job.prototype.clearTtl = function() { + return jspb.Message.setField(this, 5, undefined); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.StartWorkflowResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.dapr.proto.runtime.v1.Job.prototype.hasTtl = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional google.protobuf.Any data = 6; + * @return {?proto.google.protobuf.Any} */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInstanceId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } +proto.dapr.proto.runtime.v1.Job.prototype.getData = function() { + return /** @type{?proto.google.protobuf.Any} */ ( + jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 6)); }; /** - * optional string instance_id = 1; - * @return {string} + * @param {?proto.google.protobuf.Any|undefined} value + * @return {!proto.dapr.proto.runtime.v1.Job} returns this +*/ +proto.dapr.proto.runtime.v1.Job.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.Job} returns this */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.Job.prototype.clearData = function() { + return this.setData(undefined); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.dapr.proto.runtime.v1.Job.prototype.hasData = function() { + return jspb.Message.getField(this, 6) != null; }; @@ -19560,8 +22232,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.ScheduleJobRequest.toObject(opt_includeInstance, this); }; @@ -19570,14 +22242,13 @@ proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.toObject = functi * @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.TerminateWorkflowRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.ScheduleJobRequest.toObject = function(includeInstance, msg) { var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") + job: (f = msg.getJob()) && proto.dapr.proto.runtime.v1.Job.toObject(includeInstance, f) }; if (includeInstance) { @@ -19591,23 +22262,23 @@ proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.toObject = function(include /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.ScheduleJobRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TerminateWorkflowRequest; - return proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.ScheduleJobRequest; + return proto.dapr.proto.runtime.v1.ScheduleJobRequest.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.TerminateWorkflowRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.ScheduleJobRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -19615,12 +22286,9 @@ proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setInstanceId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowComponent(value); + var value = new proto.dapr.proto.runtime.v1.Job; + reader.readMessage(value,proto.dapr.proto.runtime.v1.Job.deserializeBinaryFromReader); + msg.setJob(value); break; default: reader.skipField(); @@ -19635,9 +22303,9 @@ proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.ScheduleJobRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -19645,62 +22313,57 @@ proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} message + * @param {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.ScheduleJobRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getInstanceId(); - if (f.length > 0) { - writer.writeString( + f = message.getJob(); + if (f != null) { + writer.writeMessage( 1, - f - ); - } - f = message.getWorkflowComponent(); - if (f.length > 0) { - writer.writeString( - 2, - f + f, + proto.dapr.proto.runtime.v1.Job.serializeBinaryToWriter ); } }; /** - * optional string instance_id = 1; - * @return {string} + * optional Job job = 1; + * @return {?proto.dapr.proto.runtime.v1.Job} */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.getJob = function() { + return /** @type{?proto.dapr.proto.runtime.v1.Job} */ ( + jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.Job, 1)); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + * @param {?proto.dapr.proto.runtime.v1.Job|undefined} value + * @return {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} returns this +*/ +proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.setJob = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional string workflow_component = 2; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} returns this */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.clearJob = function() { + return this.setJob(undefined); }; /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.hasJob = function() { + return jspb.Message.getField(this, 1) != null; }; @@ -19720,8 +22383,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PauseWorkflowRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.ScheduleJobResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.ScheduleJobResponse.toObject(opt_includeInstance, this); }; @@ -19730,14 +22393,13 @@ proto.dapr.proto.runtime.v1.PauseWorkflowRequest.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.PauseWorkflowRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.ScheduleJobResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.ScheduleJobResponse.toObject = function(includeInstance, msg) { var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") + }; if (includeInstance) { @@ -19751,37 +22413,29 @@ proto.dapr.proto.runtime.v1.PauseWorkflowRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.ScheduleJobResponse} */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.ScheduleJobResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.PauseWorkflowRequest; - return proto.dapr.proto.runtime.v1.PauseWorkflowRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.ScheduleJobResponse; + return proto.dapr.proto.runtime.v1.ScheduleJobResponse.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.PauseWorkflowRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.ScheduleJobResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.ScheduleJobResponse} */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.ScheduleJobResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setInstanceId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowComponent(value); - break; default: reader.skipField(); break; @@ -19795,9 +22449,9 @@ proto.dapr.proto.runtime.v1.PauseWorkflowRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.ScheduleJobResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.PauseWorkflowRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.ScheduleJobResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -19805,62 +22459,12 @@ proto.dapr.proto.runtime.v1.PauseWorkflowRequest.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.PauseWorkflowRequest} message + * @param {!proto.dapr.proto.runtime.v1.ScheduleJobResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.ScheduleJobResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getInstanceId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getWorkflowComponent(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string instance_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string workflow_component = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); }; @@ -19880,8 +22484,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetJobRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetJobRequest.toObject(opt_includeInstance, this); }; @@ -19890,14 +22494,13 @@ proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.toObject = function( * @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.ResumeWorkflowRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.GetJobRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetJobRequest.toObject = function(includeInstance, msg) { var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") + name: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -19911,23 +22514,23 @@ proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.GetJobRequest} */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.GetJobRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ResumeWorkflowRequest; - return proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.GetJobRequest; + return proto.dapr.proto.runtime.v1.GetJobRequest.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.ResumeWorkflowRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.GetJobRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.GetJobRequest} */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetJobRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -19936,11 +22539,7 @@ proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.deserializeBinaryFromReader = switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setInstanceId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowComponent(value); + msg.setName(value); break; default: reader.skipField(); @@ -19955,9 +22554,9 @@ proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetJobRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetJobRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -19965,65 +22564,40 @@ proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} message + * @param {!proto.dapr.proto.runtime.v1.GetJobRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.GetJobRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getInstanceId(); + f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getWorkflowComponent(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } }; /** - * optional string instance_id = 1; + * optional string name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.getInstanceId = function() { +proto.dapr.proto.runtime.v1.GetJobRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.GetJobRequest} returns this */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.setInstanceId = function(value) { +proto.dapr.proto.runtime.v1.GetJobRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * optional string workflow_component = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - @@ -20040,8 +22614,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.GetJobResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.GetJobResponse.toObject(opt_includeInstance, this); }; @@ -20050,16 +22624,13 @@ proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.toObject = funct * @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.RaiseEventWorkflowRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.GetJobResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.GetJobResponse.toObject = function(includeInstance, msg) { var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, ""), - eventName: jspb.Message.getFieldWithDefault(msg, 3, ""), - eventData: msg.getEventData_asB64() + job: (f = msg.getJob()) && proto.dapr.proto.runtime.v1.Job.toObject(includeInstance, f) }; if (includeInstance) { @@ -20073,23 +22644,23 @@ proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.GetJobResponse} */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.GetJobResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest; - return proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.GetJobResponse; + return proto.dapr.proto.runtime.v1.GetJobResponse.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.RaiseEventWorkflowRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.GetJobResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.GetJobResponse} */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.GetJobResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -20097,20 +22668,9 @@ proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.deserializeBinaryFromReade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setInstanceId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowComponent(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setEventName(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEventData(value); + var value = new proto.dapr.proto.runtime.v1.Job; + reader.readMessage(value,proto.dapr.proto.runtime.v1.Job.deserializeBinaryFromReader); + msg.setJob(value); break; default: reader.skipField(); @@ -20125,9 +22685,9 @@ proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.GetJobResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.GetJobResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -20135,136 +22695,57 @@ proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} message + * @param {!proto.dapr.proto.runtime.v1.GetJobResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.GetJobResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getInstanceId(); - if (f.length > 0) { - writer.writeString( + f = message.getJob(); + if (f != null) { + writer.writeMessage( 1, - f - ); - } - f = message.getWorkflowComponent(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getEventName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getEventData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f + f, + proto.dapr.proto.runtime.v1.Job.serializeBinaryToWriter ); } }; /** - * optional string instance_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string workflow_component = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string event_name = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setEventName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bytes event_data = 4; - * @return {!(string|Uint8Array)} + * optional Job job = 1; + * @return {?proto.dapr.proto.runtime.v1.Job} */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.dapr.proto.runtime.v1.GetJobResponse.prototype.getJob = function() { + return /** @type{?proto.dapr.proto.runtime.v1.Job} */ ( + jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.Job, 1)); }; /** - * optional bytes event_data = 4; - * This is a type-conversion wrapper around `getEventData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEventData())); + * @param {?proto.dapr.proto.runtime.v1.Job|undefined} value + * @return {!proto.dapr.proto.runtime.v1.GetJobResponse} returns this +*/ +proto.dapr.proto.runtime.v1.GetJobResponse.prototype.setJob = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional bytes event_data = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getEventData()` - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.dapr.proto.runtime.v1.GetJobResponse} returns this */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEventData())); +proto.dapr.proto.runtime.v1.GetJobResponse.prototype.clearJob = function() { + return this.setJob(undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setEventData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); +proto.dapr.proto.runtime.v1.GetJobResponse.prototype.hasJob = function() { + return jspb.Message.getField(this, 1) != null; }; @@ -20284,8 +22765,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.toObject(opt_includeInstance, this); +proto.dapr.proto.runtime.v1.DeleteJobRequest.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.DeleteJobRequest.toObject(opt_includeInstance, this); }; @@ -20294,14 +22775,13 @@ proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.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.PurgeWorkflowRequest} msg The msg instance to transform. + * @param {!proto.dapr.proto.runtime.v1.DeleteJobRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.toObject = function(includeInstance, msg) { +proto.dapr.proto.runtime.v1.DeleteJobRequest.toObject = function(includeInstance, msg) { var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") + name: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -20315,23 +22795,23 @@ proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.DeleteJobRequest} */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.DeleteJobRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.PurgeWorkflowRequest; - return proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.dapr.proto.runtime.v1.DeleteJobRequest; + return proto.dapr.proto.runtime.v1.DeleteJobRequest.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.PurgeWorkflowRequest} msg The message object to deserialize into. + * @param {!proto.dapr.proto.runtime.v1.DeleteJobRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} + * @return {!proto.dapr.proto.runtime.v1.DeleteJobRequest} */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.DeleteJobRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -20340,11 +22820,7 @@ proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.deserializeBinaryFromReader = f switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setInstanceId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowComponent(value); + msg.setName(value); break; default: reader.skipField(); @@ -20359,9 +22835,9 @@ proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.DeleteJobRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.DeleteJobRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -20369,65 +22845,40 @@ proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.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.PurgeWorkflowRequest} message + * @param {!proto.dapr.proto.runtime.v1.DeleteJobRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.DeleteJobRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getInstanceId(); + f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getWorkflowComponent(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } }; /** - * optional string instance_id = 1; + * optional string name = 1; * @return {string} */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.getInstanceId = function() { +proto.dapr.proto.runtime.v1.DeleteJobRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} returns this + * @return {!proto.dapr.proto.runtime.v1.DeleteJobRequest} returns this */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.setInstanceId = function(value) { +proto.dapr.proto.runtime.v1.DeleteJobRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * optional string workflow_component = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - @@ -20444,8 +22895,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * 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); +proto.dapr.proto.runtime.v1.DeleteJobResponse.prototype.toObject = function(opt_includeInstance) { + return proto.dapr.proto.runtime.v1.DeleteJobResponse.toObject(opt_includeInstance, this); }; @@ -20454,11 +22905,11 @@ proto.dapr.proto.runtime.v1.ShutdownRequest.prototype.toObject = function(opt_in * @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. + * @param {!proto.dapr.proto.runtime.v1.DeleteJobResponse} 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) { +proto.dapr.proto.runtime.v1.DeleteJobResponse.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -20474,23 +22925,23 @@ proto.dapr.proto.runtime.v1.ShutdownRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.ShutdownRequest} + * @return {!proto.dapr.proto.runtime.v1.DeleteJobResponse} */ -proto.dapr.proto.runtime.v1.ShutdownRequest.deserializeBinary = function(bytes) { +proto.dapr.proto.runtime.v1.DeleteJobResponse.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); + var msg = new proto.dapr.proto.runtime.v1.DeleteJobResponse; + return proto.dapr.proto.runtime.v1.DeleteJobResponse.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 {!proto.dapr.proto.runtime.v1.DeleteJobResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ShutdownRequest} + * @return {!proto.dapr.proto.runtime.v1.DeleteJobResponse} */ -proto.dapr.proto.runtime.v1.ShutdownRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.dapr.proto.runtime.v1.DeleteJobResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -20510,9 +22961,9 @@ proto.dapr.proto.runtime.v1.ShutdownRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.dapr.proto.runtime.v1.ShutdownRequest.prototype.serializeBinary = function() { +proto.dapr.proto.runtime.v1.DeleteJobResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ShutdownRequest.serializeBinaryToWriter(this, writer); + proto.dapr.proto.runtime.v1.DeleteJobResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -20520,13 +22971,23 @@ proto.dapr.proto.runtime.v1.ShutdownRequest.prototype.serializeBinary = function /** * 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 {!proto.dapr.proto.runtime.v1.DeleteJobResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.dapr.proto.runtime.v1.ShutdownRequest.serializeBinaryToWriter = function(message, writer) { +proto.dapr.proto.runtime.v1.DeleteJobResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; +/** + * @enum {number} + */ +proto.dapr.proto.runtime.v1.PubsubSubscriptionType = { + UNKNOWN: 0, + DECLARATIVE: 1, + PROGRAMMATIC: 2, + STREAMING: 3 +}; + 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 9844418a..8d52a41f 100644 --- a/src/proto/dapr/proto/sentry/v1/sentry_pb.js +++ b/src/proto/dapr/proto/sentry/v1/sentry_pb.js @@ -13,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); +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 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 c32e01f6..c9799fca 100644 --- a/src/proto/google/protobuf/any_pb.js +++ b/src/proto/google/protobuf/any_pb.js @@ -13,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); +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')(); 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 52428f70..8cabbd24 100644 --- a/src/proto/google/protobuf/empty_pb.js +++ b/src/proto/google/protobuf/empty_pb.js @@ -13,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); +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')(); 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 9cf8e7f2..88db5c81 100644 --- a/src/proto/google/protobuf/timestamp_pb.js +++ b/src/proto/google/protobuf/timestamp_pb.js @@ -13,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); +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')(); goog.exportSymbol('proto.google.protobuf.Timestamp', null, global); /** From dc22587e916a3835fe5aaca69d6f37cdade46ce4 Mon Sep 17 00:00:00 2001 From: Deepanshu Agarwal Date: Fri, 26 Jul 2024 18:14:00 +0530 Subject: [PATCH 2/5] Version correction Signed-off-by: Deepanshu Agarwal --- .github/workflows/test-e2e.yml | 4 ++-- scripts/fetch-proto.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index bd9a1cbc..9e60c071 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -35,8 +35,8 @@ jobs: runs-on: ubuntu-latest env: GOVER: 1.22 - DAPR_CLI_VER: 1.14.0-rc.6 - DAPR_RUNTIME_VER: 1.14.0-rc.6 + DAPR_CLI_VER: 1.14.0-rc.7 + DAPR_RUNTIME_VER: 1.14.0-rc.5 DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh DAPR_CLI_REF: "" DAPR_REF: "" diff --git a/scripts/fetch-proto.sh b/scripts/fetch-proto.sh index 333844d0..b8831544 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.14.0-rc.6" +BRANCH_NAME="v1.14.0-rc.5" # Path to store output PATH_ROOT=$(pwd) From 5983591bdd66e731ac1ffbe65127dc58c9d2287b Mon Sep 17 00:00:00 2001 From: Paul Yuknewicz Date: Tue, 30 Jul 2024 22:19:26 -0700 Subject: [PATCH 3/5] Update .github/workflows/test-e2e.yml Co-authored-by: Mike Nguyen Signed-off-by: Paul Yuknewicz --- .github/workflows/test-e2e.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 9e60c071..04e98e1d 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -35,8 +35,8 @@ jobs: runs-on: ubuntu-latest env: GOVER: 1.22 - DAPR_CLI_VER: 1.14.0-rc.7 - DAPR_RUNTIME_VER: 1.14.0-rc.5 + DAPR_CLI_VER: 1.14.0-rc.8 + DAPR_RUNTIME_VER: 1.14.0-rc.7 DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh DAPR_CLI_REF: "" DAPR_REF: "" From 5fcc72346e989977edc949c1e8ea5a43fe8bfd37 Mon Sep 17 00:00:00 2001 From: Deepanshu Agarwal Date: Wed, 31 Jul 2024 20:39:33 +0530 Subject: [PATCH 4/5] update Signed-off-by: Deepanshu Agarwal --- scripts/fetch-proto.sh | 2 +- test/components/binding-mqtt.yaml | 6 ++++-- test/e2e/grpc/server.test.ts | 5 ++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/fetch-proto.sh b/scripts/fetch-proto.sh index b8831544..d0ef577e 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.14.0-rc.5" +BRANCH_NAME="v1.14.0-rc.7" # Path to store output PATH_ROOT=$(pwd) diff --git a/test/components/binding-mqtt.yaml b/test/components/binding-mqtt.yaml index 03deb75d..49cf6c30 100644 --- a/test/components/binding-mqtt.yaml +++ b/test/components/binding-mqtt.yaml @@ -18,7 +18,7 @@ metadata: name: binding-mqtt namespace: default spec: - type: bindings.mqtt + type: bindings.mqtt3 version: v1 metadata: - name: consumerID @@ -32,4 +32,6 @@ spec: - name: retain value: "false" - name: cleanSession - value: "false" \ No newline at end of file + value: "false" + - name: direction + value: "input, output" \ No newline at end of file diff --git a/test/e2e/grpc/server.test.ts b/test/e2e/grpc/server.test.ts index 333226bb..2d565dc3 100644 --- a/test/e2e/grpc/server.test.ts +++ b/test/e2e/grpc/server.test.ts @@ -11,7 +11,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { CommunicationProtocolEnum, DaprServer, HttpMethod } from "../../../src"; +import { CommunicationProtocolEnum, DaprServer, HttpMethod, LogLevel } from "../../../src"; const serverHost = "localhost"; const serverPort = "50001"; @@ -35,6 +35,9 @@ describe("grpc/server", () => { daprHost, daprPort, maxBodySizeMb: 20, // we set sending larger than receiving to test the error handling + logger: { + level: LogLevel.Debug, + }, }, maxBodySizeMb: 10, }); From 253aa0ede38566254149b7ee7d882b070a5bdd38 Mon Sep 17 00:00:00 2001 From: Deepanshu Agarwal Date: Wed, 31 Jul 2024 20:53:34 +0530 Subject: [PATCH 5/5] update Signed-off-by: Deepanshu Agarwal --- test/components/binding-mqtt.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/components/binding-mqtt.yaml b/test/components/binding-mqtt.yaml index 49cf6c30..38d0e840 100644 --- a/test/components/binding-mqtt.yaml +++ b/test/components/binding-mqtt.yaml @@ -18,7 +18,7 @@ metadata: name: binding-mqtt namespace: default spec: - type: bindings.mqtt3 + type: bindings.mqtt version: v1 metadata: - name: consumerID