diff --git a/.dapr-proto-ref b/.dapr-proto-ref new file mode 100644 index 00000000..fc8e3289 --- /dev/null +++ b/.dapr-proto-ref @@ -0,0 +1 @@ +88f467a2feef18defec06b1425b8229b27a18045 diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..85750e6f --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +.PHONY: proto +proto: + @command -v buf >/dev/null 2>&1 || { echo "buf is not installed. Install it from https://docs.buf.build/installation"; exit 1; } + @if [ ! -f .dapr-proto-ref ]; then echo "No .dapr-proto-ref file found. Run 'make proto-update' first."; exit 1; fi + @find ./src/proto -type f -name '*.js' -delete + @find ./src/proto -type f -name '*.ts' -delete + @COMMIT=$$(cat .dapr-proto-ref | tr -d '\n'); \ + buf generate \ + --template buf.gen.yaml \ + --path dapr/proto/common/v1 \ + --path dapr/proto/runtime/v1 \ + "https://github.com/dapr/dapr.git#commit=$$COMMIT" + +.PHONY: proto-update +proto-update: + @echo "Updating Dapr to latest commit..." + @git ls-remote https://github.com/dapr/dapr.git HEAD | cut -f1 > .dapr-proto-ref + @echo "Updated .dapr-proto-ref to: $$(cat .dapr-proto-ref)" + @$(MAKE) proto + +PROTO_PATH := internal/proto +.PHONY: proto-check-diff +proto-check-diff: + @$(MAKE) proto + @# single‐shell if…then…fi block + @if ! git diff --quiet -- $(PROTO_PATH); then \ + echo "::error ::Proto files are out of date. Please run 'make proto' and commit the changes."; \ + git --no-pager diff -- $(PROTO_PATH); \ + exit 1; \ + fi diff --git a/buf.gen.yaml b/buf.gen.yaml new file mode 100644 index 00000000..34f7c742 --- /dev/null +++ b/buf.gen.yaml @@ -0,0 +1,10 @@ +version: v2 +managed: + enabled: true +plugins: + - remote: buf.build/bufbuild/es + out: src/proto + include_imports: true + opt: + - target=js+dts + - import_extension=none diff --git a/src/proto/dapr/proto/common/v1/common.proto b/src/proto/dapr/proto/common/v1/common.proto deleted file mode 100644 index 1e63b885..00000000 --- a/src/proto/dapr/proto/common/v1/common.proto +++ /dev/null @@ -1,160 +0,0 @@ -/* -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. -*/ - -syntax = "proto3"; - -package dapr.proto.common.v1; - -import "google/protobuf/any.proto"; - -option csharp_namespace = "Dapr.Client.Autogen.Grpc.v1"; -option java_outer_classname = "CommonProtos"; -option java_package = "io.dapr.v1"; -option go_package = "github.com/dapr/dapr/pkg/proto/common/v1;common"; - -// HTTPExtension includes HTTP verb and querystring -// when Dapr runtime delivers HTTP content. -// -// For example, when callers calls http invoke api -// POST http://localhost:3500/v1.0/invoke//method/?query1=value1&query2=value2 -// -// Dapr runtime will parse POST as a verb and extract querystring to quersytring map. -message HTTPExtension { - // Type of HTTP 1.1 Methods - // RFC 7231: https://tools.ietf.org/html/rfc7231#page-24 - // RFC 5789: https://datatracker.ietf.org/doc/html/rfc5789 - enum Verb { - NONE = 0; - GET = 1; - HEAD = 2; - POST = 3; - PUT = 4; - DELETE = 5; - CONNECT = 6; - OPTIONS = 7; - TRACE = 8; - PATCH = 9; - } - - // Required. HTTP verb. - Verb verb = 1; - - // Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2 - string querystring = 2; -} - -// InvokeRequest is the message to invoke a method with the data. -// This message is used in InvokeService of Dapr gRPC Service and OnInvoke -// of AppCallback gRPC service. -message InvokeRequest { - // Required. method is a method name which will be invoked by caller. - string method = 1; - - // Required in unary RPCs. Bytes value or Protobuf message which caller sent. - // Dapr treats Any.value as bytes type if Any.type_url is unset. - google.protobuf.Any data = 2; - - // The type of data content. - // - // This field is required if data delivers http request body - // Otherwise, this is optional. - string content_type = 3; - - // HTTP specific fields if request conveys http-compatible request. - // - // This field is required for http-compatible request. Otherwise, - // this field is optional. - HTTPExtension http_extension = 4; -} - -// InvokeResponse is the response message including data and its content type -// from app callback. -// This message is used in InvokeService of Dapr gRPC Service and OnInvoke -// of AppCallback gRPC service. -message InvokeResponse { - // Required in unary RPCs. The content body of InvokeService response. - google.protobuf.Any data = 1; - - // Required. The type of data content. - string content_type = 2; -} - -// Chunk of data sent in a streaming request or response. -// This is used in requests including InternalInvokeRequestStream. -message StreamPayload { - // Data sent in the chunk. - // The amount of data included in each chunk is up to the discretion of the sender, and can be empty. - // Additionally, the amount of data doesn't need to be fixed and subsequent messages can send more, or less, data. - // Receivers must not make assumptions about the number of bytes they'll receive in each chunk. - bytes data = 1; - - // Sequence number. This is a counter that starts from 0 and increments by 1 on each chunk sent. - uint64 seq = 2; -} - -// StateItem represents state key, value, and additional options to save state. -message StateItem { - // Required. The state key - string key = 1; - - // Required. The state data for key - bytes value = 2; - - // The entity tag which represents the specific version of data. - // The exact ETag format is defined by the corresponding data store. - Etag etag = 3; - - // The metadata which will be passed to state store component. - map metadata = 4; - - // Options for concurrency and consistency to save the state. - StateOptions options = 5; -} - -// Etag represents a state item version -message Etag { - // value sets the etag value - string value = 1; -} - -// StateOptions configures concurrency and consistency for state operations -message StateOptions { - // Enum describing the supported concurrency for state. - enum StateConcurrency { - CONCURRENCY_UNSPECIFIED = 0; - CONCURRENCY_FIRST_WRITE = 1; - CONCURRENCY_LAST_WRITE = 2; - } - - // Enum describing the supported consistency for state. - enum StateConsistency { - CONSISTENCY_UNSPECIFIED = 0; - CONSISTENCY_EVENTUAL = 1; - CONSISTENCY_STRONG = 2; - } - - StateConcurrency concurrency = 1; - StateConsistency consistency = 2; -} - -// ConfigurationItem represents all the configuration with its name(key). -message ConfigurationItem { - // Required. The value of configuration item. - string value = 1; - - // Version is response only and cannot be fetched. Store is not expected to keep all versions available - string version = 2; - - // the metadata which will be passed to/from configuration store component. - map metadata = 3; -} diff --git a/src/proto/dapr/proto/common/v1/common_grpc_pb.js b/src/proto/dapr/proto/common/v1/common_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/common/v1/common_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/src/proto/dapr/proto/common/v1/common_pb.d.ts b/src/proto/dapr/proto/common/v1/common_pb.d.ts index ddc0ae88..783bf3bc 100644 --- a/src/proto/dapr/proto/common/v1/common_pb.d.ts +++ b/src/proto/dapr/proto/common/v1/common_pb.d.ts @@ -1,257 +1,487 @@ -// package: dapr.proto.common.v1 -// file: dapr/proto/common/v1/common.proto - -/* tslint:disable */ +// +//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. + +// @generated by protoc-gen-es v2.7.0 with parameter "target=js+dts,import_extension=none" +// @generated from file dapr/proto/common/v1/common.proto (package dapr.proto.common.v1, syntax proto3) /* eslint-disable */ -import * as jspb from "google-protobuf"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; - -export class HTTPExtension extends jspb.Message { - getVerb(): HTTPExtension.Verb; - setVerb(value: HTTPExtension.Verb): HTTPExtension; - getQuerystring(): string; - setQuerystring(value: string): HTTPExtension; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HTTPExtension.AsObject; - static toObject(includeInstance: boolean, msg: HTTPExtension): HTTPExtension.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HTTPExtension, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HTTPExtension; - static deserializeBinaryFromReader(message: HTTPExtension, reader: jspb.BinaryReader): HTTPExtension; -} - -export namespace HTTPExtension { - export type AsObject = { - verb: HTTPExtension.Verb, - querystring: string, - } - - export enum Verb { - NONE = 0, - GET = 1, - HEAD = 2, - POST = 3, - PUT = 4, - DELETE = 5, - CONNECT = 6, - OPTIONS = 7, - TRACE = 8, - PATCH = 9, - } - -} - -export class InvokeRequest extends jspb.Message { - getMethod(): string; - setMethod(value: string): InvokeRequest; - - hasData(): boolean; - clearData(): void; - getData(): google_protobuf_any_pb.Any | undefined; - setData(value?: google_protobuf_any_pb.Any): InvokeRequest; - getContentType(): string; - setContentType(value: string): InvokeRequest; - - hasHttpExtension(): boolean; - clearHttpExtension(): void; - getHttpExtension(): HTTPExtension | undefined; - setHttpExtension(value?: HTTPExtension): InvokeRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InvokeRequest.AsObject; - static toObject(includeInstance: boolean, msg: InvokeRequest): InvokeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InvokeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InvokeRequest; - static deserializeBinaryFromReader(message: InvokeRequest, reader: jspb.BinaryReader): InvokeRequest; -} - -export namespace InvokeRequest { - export type AsObject = { - method: string, - data?: google_protobuf_any_pb.Any.AsObject, - contentType: string, - httpExtension?: HTTPExtension.AsObject, - } +import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; +import type { Message } from "@bufbuild/protobuf"; +import type { Any, Duration } from "@bufbuild/protobuf/wkt"; + +/** + * Describes the file dapr/proto/common/v1/common.proto. + */ +export declare const file_dapr_proto_common_v1_common: GenFile; + +/** + * HTTPExtension includes HTTP verb and querystring + * when Dapr runtime delivers HTTP content. + * + * For example, when callers calls http invoke api + * `POST http://localhost:3500/v1.0/invoke//method/?query1=value1&query2=value2` + * + * Dapr runtime will parse POST as a verb and extract querystring to quersytring map. + * + * @generated from message dapr.proto.common.v1.HTTPExtension + */ +export declare type HTTPExtension = Message<"dapr.proto.common.v1.HTTPExtension"> & { + /** + * Required. HTTP verb. + * + * @generated from field: dapr.proto.common.v1.HTTPExtension.Verb verb = 1; + */ + verb: HTTPExtension_Verb; + + /** + * Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2 + * + * @generated from field: string querystring = 2; + */ + querystring: string; +}; + +/** + * Describes the message dapr.proto.common.v1.HTTPExtension. + * Use `create(HTTPExtensionSchema)` to create a new message. + */ +export declare const HTTPExtensionSchema: GenMessage; + +/** + * Type of HTTP 1.1 Methods + * RFC 7231: https://tools.ietf.org/html/rfc7231#page-24 + * RFC 5789: https://datatracker.ietf.org/doc/html/rfc5789 + * + * @generated from enum dapr.proto.common.v1.HTTPExtension.Verb + */ +export enum HTTPExtension_Verb { + /** + * @generated from enum value: NONE = 0; + */ + NONE = 0, + + /** + * @generated from enum value: GET = 1; + */ + GET = 1, + + /** + * @generated from enum value: HEAD = 2; + */ + HEAD = 2, + + /** + * @generated from enum value: POST = 3; + */ + POST = 3, + + /** + * @generated from enum value: PUT = 4; + */ + PUT = 4, + + /** + * @generated from enum value: DELETE = 5; + */ + DELETE = 5, + + /** + * @generated from enum value: CONNECT = 6; + */ + CONNECT = 6, + + /** + * @generated from enum value: OPTIONS = 7; + */ + OPTIONS = 7, + + /** + * @generated from enum value: TRACE = 8; + */ + TRACE = 8, + + /** + * @generated from enum value: PATCH = 9; + */ + PATCH = 9, } -export class InvokeResponse extends jspb.Message { - - hasData(): boolean; - clearData(): void; - getData(): google_protobuf_any_pb.Any | undefined; - setData(value?: google_protobuf_any_pb.Any): InvokeResponse; - getContentType(): string; - setContentType(value: string): InvokeResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InvokeResponse.AsObject; - static toObject(includeInstance: boolean, msg: InvokeResponse): InvokeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InvokeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InvokeResponse; - static deserializeBinaryFromReader(message: InvokeResponse, reader: jspb.BinaryReader): InvokeResponse; +/** + * Describes the enum dapr.proto.common.v1.HTTPExtension.Verb. + */ +export declare const HTTPExtension_VerbSchema: GenEnum; + +/** + * InvokeRequest is the message to invoke a method with the data. + * This message is used in InvokeService of Dapr gRPC Service and OnInvoke + * of AppCallback gRPC service. + * + * @generated from message dapr.proto.common.v1.InvokeRequest + */ +export declare type InvokeRequest = Message<"dapr.proto.common.v1.InvokeRequest"> & { + /** + * Required. method is a method name which will be invoked by caller. + * + * @generated from field: string method = 1; + */ + method: string; + + /** + * Required in unary RPCs. Bytes value or Protobuf message which caller sent. + * Dapr treats Any.value as bytes type if Any.type_url is unset. + * + * @generated from field: google.protobuf.Any data = 2; + */ + data?: Any; + + /** + * The type of data content. + * + * This field is required if data delivers http request body + * Otherwise, this is optional. + * + * @generated from field: string content_type = 3; + */ + contentType: string; + + /** + * HTTP specific fields if request conveys http-compatible request. + * + * This field is required for http-compatible request. Otherwise, + * this field is optional. + * + * @generated from field: dapr.proto.common.v1.HTTPExtension http_extension = 4; + */ + httpExtension?: HTTPExtension; +}; + +/** + * Describes the message dapr.proto.common.v1.InvokeRequest. + * Use `create(InvokeRequestSchema)` to create a new message. + */ +export declare const InvokeRequestSchema: GenMessage; + +/** + * InvokeResponse is the response message including data and its content type + * from app callback. + * This message is used in InvokeService of Dapr gRPC Service and OnInvoke + * of AppCallback gRPC service. + * + * @generated from message dapr.proto.common.v1.InvokeResponse + */ +export declare type InvokeResponse = Message<"dapr.proto.common.v1.InvokeResponse"> & { + /** + * Required in unary RPCs. The content body of InvokeService response. + * + * @generated from field: google.protobuf.Any data = 1; + */ + data?: Any; + + /** + * Required. The type of data content. + * + * @generated from field: string content_type = 2; + */ + contentType: string; +}; + +/** + * Describes the message dapr.proto.common.v1.InvokeResponse. + * Use `create(InvokeResponseSchema)` to create a new message. + */ +export declare const InvokeResponseSchema: GenMessage; + +/** + * Chunk of data sent in a streaming request or response. + * This is used in requests including InternalInvokeRequestStream. + * + * @generated from message dapr.proto.common.v1.StreamPayload + */ +export declare type StreamPayload = Message<"dapr.proto.common.v1.StreamPayload"> & { + /** + * Data sent in the chunk. + * The amount of data included in each chunk is up to the discretion of the sender, and can be empty. + * Additionally, the amount of data doesn't need to be fixed and subsequent messages can send more, or less, data. + * Receivers must not make assumptions about the number of bytes they'll receive in each chunk. + * + * @generated from field: bytes data = 1; + */ + data: Uint8Array; + + /** + * Sequence number. This is a counter that starts from 0 and increments by 1 on each chunk sent. + * + * @generated from field: uint64 seq = 2; + */ + seq: bigint; +}; + +/** + * Describes the message dapr.proto.common.v1.StreamPayload. + * Use `create(StreamPayloadSchema)` to create a new message. + */ +export declare const StreamPayloadSchema: GenMessage; + +/** + * StateItem represents state key, value, and additional options to save state. + * + * @generated from message dapr.proto.common.v1.StateItem + */ +export declare type StateItem = Message<"dapr.proto.common.v1.StateItem"> & { + /** + * Required. The state key + * + * @generated from field: string key = 1; + */ + key: string; + + /** + * Required. The state data for key + * + * @generated from field: bytes value = 2; + */ + value: Uint8Array; + + /** + * The entity tag which represents the specific version of data. + * The exact ETag format is defined by the corresponding data store. + * + * @generated from field: dapr.proto.common.v1.Etag etag = 3; + */ + etag?: Etag; + + /** + * The metadata which will be passed to state store component. + * + * @generated from field: map metadata = 4; + */ + metadata: { [key: string]: string }; + + /** + * Options for concurrency and consistency to save the state. + * + * @generated from field: dapr.proto.common.v1.StateOptions options = 5; + */ + options?: StateOptions; +}; + +/** + * Describes the message dapr.proto.common.v1.StateItem. + * Use `create(StateItemSchema)` to create a new message. + */ +export declare const StateItemSchema: GenMessage; + +/** + * Etag represents a state item version + * + * @generated from message dapr.proto.common.v1.Etag + */ +export declare type Etag = Message<"dapr.proto.common.v1.Etag"> & { + /** + * value sets the etag value + * + * @generated from field: string value = 1; + */ + value: string; +}; + +/** + * Describes the message dapr.proto.common.v1.Etag. + * Use `create(EtagSchema)` to create a new message. + */ +export declare const EtagSchema: GenMessage; + +/** + * StateOptions configures concurrency and consistency for state operations + * + * @generated from message dapr.proto.common.v1.StateOptions + */ +export declare type StateOptions = Message<"dapr.proto.common.v1.StateOptions"> & { + /** + * @generated from field: dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; + */ + concurrency: StateOptions_StateConcurrency; + + /** + * @generated from field: dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; + */ + consistency: StateOptions_StateConsistency; +}; + +/** + * Describes the message dapr.proto.common.v1.StateOptions. + * Use `create(StateOptionsSchema)` to create a new message. + */ +export declare const StateOptionsSchema: GenMessage; + +/** + * Enum describing the supported concurrency for state. + * + * @generated from enum dapr.proto.common.v1.StateOptions.StateConcurrency + */ +export enum StateOptions_StateConcurrency { + /** + * @generated from enum value: CONCURRENCY_UNSPECIFIED = 0; + */ + CONCURRENCY_UNSPECIFIED = 0, + + /** + * @generated from enum value: CONCURRENCY_FIRST_WRITE = 1; + */ + CONCURRENCY_FIRST_WRITE = 1, + + /** + * @generated from enum value: CONCURRENCY_LAST_WRITE = 2; + */ + CONCURRENCY_LAST_WRITE = 2, } -export namespace InvokeResponse { - export type AsObject = { - data?: google_protobuf_any_pb.Any.AsObject, - contentType: string, - } +/** + * Describes the enum dapr.proto.common.v1.StateOptions.StateConcurrency. + */ +export declare const StateOptions_StateConcurrencySchema: GenEnum; + +/** + * Enum describing the supported consistency for state. + * + * @generated from enum dapr.proto.common.v1.StateOptions.StateConsistency + */ +export enum StateOptions_StateConsistency { + /** + * @generated from enum value: CONSISTENCY_UNSPECIFIED = 0; + */ + CONSISTENCY_UNSPECIFIED = 0, + + /** + * @generated from enum value: CONSISTENCY_EVENTUAL = 1; + */ + CONSISTENCY_EVENTUAL = 1, + + /** + * @generated from enum value: CONSISTENCY_STRONG = 2; + */ + CONSISTENCY_STRONG = 2, } -export class StreamPayload extends jspb.Message { - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): StreamPayload; - getSeq(): number; - setSeq(value: number): StreamPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StreamPayload.AsObject; - static toObject(includeInstance: boolean, msg: StreamPayload): StreamPayload.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StreamPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StreamPayload; - static deserializeBinaryFromReader(message: StreamPayload, reader: jspb.BinaryReader): StreamPayload; -} - -export namespace StreamPayload { - export type AsObject = { - data: Uint8Array | string, - seq: number, - } -} - -export class StateItem extends jspb.Message { - getKey(): string; - setKey(value: string): StateItem; - getValue(): Uint8Array | string; - getValue_asU8(): Uint8Array; - getValue_asB64(): string; - setValue(value: Uint8Array | string): StateItem; - - hasEtag(): boolean; - clearEtag(): void; - getEtag(): Etag | undefined; - setEtag(value?: Etag): StateItem; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): StateOptions | undefined; - setOptions(value?: StateOptions): StateItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StateItem.AsObject; - static toObject(includeInstance: boolean, msg: StateItem): StateItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StateItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StateItem; - static deserializeBinaryFromReader(message: StateItem, reader: jspb.BinaryReader): StateItem; -} - -export namespace StateItem { - export type AsObject = { - key: string, - value: Uint8Array | string, - etag?: Etag.AsObject, - - metadataMap: Array<[string, string]>, - options?: StateOptions.AsObject, - } -} +/** + * Describes the enum dapr.proto.common.v1.StateOptions.StateConsistency. + */ +export declare const StateOptions_StateConsistencySchema: GenEnum; + +/** + * ConfigurationItem represents all the configuration with its name(key). + * + * @generated from message dapr.proto.common.v1.ConfigurationItem + */ +export declare type ConfigurationItem = Message<"dapr.proto.common.v1.ConfigurationItem"> & { + /** + * Required. The value of configuration item. + * + * @generated from field: string value = 1; + */ + value: string; + + /** + * Version is response only and cannot be fetched. Store is not expected to keep all versions available + * + * @generated from field: string version = 2; + */ + version: string; + + /** + * the metadata which will be passed to/from configuration store component. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.common.v1.ConfigurationItem. + * Use `create(ConfigurationItemSchema)` to create a new message. + */ +export declare const ConfigurationItemSchema: GenMessage; + +/** + * JobFailurePolicy defines the policy to apply when a job fails to trigger. + * + * @generated from message dapr.proto.common.v1.JobFailurePolicy + */ +export declare type JobFailurePolicy = Message<"dapr.proto.common.v1.JobFailurePolicy"> & { + /** + * policy is the policy to apply when a job fails to trigger. + * + * @generated from oneof dapr.proto.common.v1.JobFailurePolicy.policy + */ + policy: { + /** + * @generated from field: dapr.proto.common.v1.JobFailurePolicyDrop drop = 1; + */ + value: JobFailurePolicyDrop; + case: "drop"; + } | { + /** + * @generated from field: dapr.proto.common.v1.JobFailurePolicyConstant constant = 2; + */ + value: JobFailurePolicyConstant; + case: "constant"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message dapr.proto.common.v1.JobFailurePolicy. + * Use `create(JobFailurePolicySchema)` to create a new message. + */ +export declare const JobFailurePolicySchema: GenMessage; + +/** + * JobFailurePolicyDrop is a policy which drops the job tick when the job fails to trigger. + * + * @generated from message dapr.proto.common.v1.JobFailurePolicyDrop + */ +export declare type JobFailurePolicyDrop = Message<"dapr.proto.common.v1.JobFailurePolicyDrop"> & { +}; + +/** + * Describes the message dapr.proto.common.v1.JobFailurePolicyDrop. + * Use `create(JobFailurePolicyDropSchema)` to create a new message. + */ +export declare const JobFailurePolicyDropSchema: GenMessage; + +/** + * JobFailurePolicyConstant is a policy which retries the job at a consistent interval when the job fails to trigger. + * + * @generated from message dapr.proto.common.v1.JobFailurePolicyConstant + */ +export declare type JobFailurePolicyConstant = Message<"dapr.proto.common.v1.JobFailurePolicyConstant"> & { + /** + * interval is the constant delay to wait before retrying the job. + * + * @generated from field: google.protobuf.Duration interval = 1; + */ + interval?: Duration; + + /** + * max_retries is the optional maximum number of retries to attempt before giving up. + * If unset, the Job will be retried indefinitely. + * + * @generated from field: optional uint32 max_retries = 2; + */ + maxRetries?: number; +}; + +/** + * Describes the message dapr.proto.common.v1.JobFailurePolicyConstant. + * Use `create(JobFailurePolicyConstantSchema)` to create a new message. + */ +export declare const JobFailurePolicyConstantSchema: GenMessage; -export class Etag extends jspb.Message { - getValue(): string; - setValue(value: string): Etag; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Etag.AsObject; - static toObject(includeInstance: boolean, msg: Etag): Etag.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Etag, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Etag; - static deserializeBinaryFromReader(message: Etag, reader: jspb.BinaryReader): Etag; -} - -export namespace Etag { - export type AsObject = { - value: string, - } -} - -export class StateOptions extends jspb.Message { - getConcurrency(): StateOptions.StateConcurrency; - setConcurrency(value: StateOptions.StateConcurrency): StateOptions; - getConsistency(): StateOptions.StateConsistency; - setConsistency(value: StateOptions.StateConsistency): StateOptions; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StateOptions.AsObject; - static toObject(includeInstance: boolean, msg: StateOptions): StateOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StateOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StateOptions; - static deserializeBinaryFromReader(message: StateOptions, reader: jspb.BinaryReader): StateOptions; -} - -export namespace StateOptions { - export type AsObject = { - concurrency: StateOptions.StateConcurrency, - consistency: StateOptions.StateConsistency, - } - - export enum StateConcurrency { - CONCURRENCY_UNSPECIFIED = 0, - CONCURRENCY_FIRST_WRITE = 1, - CONCURRENCY_LAST_WRITE = 2, - } - - export enum StateConsistency { - CONSISTENCY_UNSPECIFIED = 0, - CONSISTENCY_EVENTUAL = 1, - CONSISTENCY_STRONG = 2, - } - -} - -export class ConfigurationItem extends jspb.Message { - getValue(): string; - setValue(value: string): ConfigurationItem; - getVersion(): string; - setVersion(value: string): ConfigurationItem; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConfigurationItem.AsObject; - static toObject(includeInstance: boolean, msg: ConfigurationItem): ConfigurationItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConfigurationItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConfigurationItem; - static deserializeBinaryFromReader(message: ConfigurationItem, reader: jspb.BinaryReader): ConfigurationItem; -} - -export namespace ConfigurationItem { - export type AsObject = { - value: string, - version: string, - - metadataMap: Array<[string, string]>, - } -} diff --git a/src/proto/dapr/proto/common/v1/common_pb.js b/src/proto/dapr/proto/common/v1/common_pb.js index d6c232b1..75ca04ec 100644 --- a/src/proto/dapr/proto/common/v1/common_pb.js +++ b/src/proto/dapr/proto/common/v1/common_pb.js @@ -1,1830 +1,146 @@ -// source: dapr/proto/common/v1/common.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! +// +//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. + +// @generated by protoc-gen-es v2.7.0 with parameter "target=js+dts,import_extension=none" +// @generated from file dapr/proto/common/v1/common.proto (package dapr.proto.common.v1, syntax proto3) /* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); - -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -goog.exportSymbol('proto.dapr.proto.common.v1.ConfigurationItem', null, global); -goog.exportSymbol('proto.dapr.proto.common.v1.Etag', null, global); -goog.exportSymbol('proto.dapr.proto.common.v1.HTTPExtension', null, global); -goog.exportSymbol('proto.dapr.proto.common.v1.HTTPExtension.Verb', null, global); -goog.exportSymbol('proto.dapr.proto.common.v1.InvokeRequest', null, global); -goog.exportSymbol('proto.dapr.proto.common.v1.InvokeResponse', null, global); -goog.exportSymbol('proto.dapr.proto.common.v1.StateItem', null, global); -goog.exportSymbol('proto.dapr.proto.common.v1.StateOptions', null, global); -goog.exportSymbol('proto.dapr.proto.common.v1.StateOptions.StateConcurrency', null, global); -goog.exportSymbol('proto.dapr.proto.common.v1.StateOptions.StateConsistency', null, global); -goog.exportSymbol('proto.dapr.proto.common.v1.StreamPayload', 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.common.v1.HTTPExtension = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.common.v1.HTTPExtension, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.common.v1.HTTPExtension.displayName = 'proto.dapr.proto.common.v1.HTTPExtension'; -} -/** - * 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.common.v1.InvokeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.common.v1.InvokeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.common.v1.InvokeRequest.displayName = 'proto.dapr.proto.common.v1.InvokeRequest'; -} -/** - * 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.common.v1.InvokeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.common.v1.InvokeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.common.v1.InvokeResponse.displayName = 'proto.dapr.proto.common.v1.InvokeResponse'; -} -/** - * 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.common.v1.StreamPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.common.v1.StreamPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.common.v1.StreamPayload.displayName = 'proto.dapr.proto.common.v1.StreamPayload'; -} -/** - * 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.common.v1.StateItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.common.v1.StateItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.common.v1.StateItem.displayName = 'proto.dapr.proto.common.v1.StateItem'; -} -/** - * 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.common.v1.Etag = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.common.v1.Etag, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.common.v1.Etag.displayName = 'proto.dapr.proto.common.v1.Etag'; -} -/** - * 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.common.v1.StateOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.common.v1.StateOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.common.v1.StateOptions.displayName = 'proto.dapr.proto.common.v1.StateOptions'; -} -/** - * 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.common.v1.ConfigurationItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.common.v1.ConfigurationItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.common.v1.ConfigurationItem.displayName = 'proto.dapr.proto.common.v1.ConfigurationItem'; -} - - - -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.common.v1.HTTPExtension.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.common.v1.HTTPExtension.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.common.v1.HTTPExtension} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.HTTPExtension.toObject = function(includeInstance, msg) { - var f, obj = { - verb: jspb.Message.getFieldWithDefault(msg, 1, 0), - querystring: 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.common.v1.HTTPExtension} - */ -proto.dapr.proto.common.v1.HTTPExtension.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.common.v1.HTTPExtension; - return proto.dapr.proto.common.v1.HTTPExtension.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.common.v1.HTTPExtension} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.common.v1.HTTPExtension} - */ -proto.dapr.proto.common.v1.HTTPExtension.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.common.v1.HTTPExtension.Verb} */ (reader.readEnum()); - msg.setVerb(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setQuerystring(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.common.v1.HTTPExtension.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.common.v1.HTTPExtension.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.common.v1.HTTPExtension} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.HTTPExtension.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVerb(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getQuerystring(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.dapr.proto.common.v1.HTTPExtension.Verb = { - NONE: 0, - GET: 1, - HEAD: 2, - POST: 3, - PUT: 4, - DELETE: 5, - CONNECT: 6, - OPTIONS: 7, - TRACE: 8, - PATCH: 9 -}; - -/** - * optional Verb verb = 1; - * @return {!proto.dapr.proto.common.v1.HTTPExtension.Verb} - */ -proto.dapr.proto.common.v1.HTTPExtension.prototype.getVerb = function() { - return /** @type {!proto.dapr.proto.common.v1.HTTPExtension.Verb} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.dapr.proto.common.v1.HTTPExtension.Verb} value - * @return {!proto.dapr.proto.common.v1.HTTPExtension} returns this - */ -proto.dapr.proto.common.v1.HTTPExtension.prototype.setVerb = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional string querystring = 2; - * @return {string} - */ -proto.dapr.proto.common.v1.HTTPExtension.prototype.getQuerystring = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.common.v1.HTTPExtension} returns this - */ -proto.dapr.proto.common.v1.HTTPExtension.prototype.setQuerystring = 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.common.v1.InvokeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.common.v1.InvokeRequest.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.common.v1.InvokeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.InvokeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - method: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), - contentType: jspb.Message.getFieldWithDefault(msg, 3, ""), - httpExtension: (f = msg.getHttpExtension()) && proto.dapr.proto.common.v1.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.common.v1.InvokeRequest} - */ -proto.dapr.proto.common.v1.InvokeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.common.v1.InvokeRequest; - return proto.dapr.proto.common.v1.InvokeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.common.v1.InvokeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.common.v1.InvokeRequest} - */ -proto.dapr.proto.common.v1.InvokeRequest.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.setMethod(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.setContentType(value); - break; - case 4: - var value = new proto.dapr.proto.common.v1.HTTPExtension; - reader.readMessage(value,proto.dapr.proto.common.v1.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.common.v1.InvokeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.common.v1.InvokeRequest.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.common.v1.InvokeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.InvokeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMethod(); - 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.getContentType(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getHttpExtension(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.dapr.proto.common.v1.HTTPExtension.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string method = 1; - * @return {string} - */ -proto.dapr.proto.common.v1.InvokeRequest.prototype.getMethod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.common.v1.InvokeRequest} returns this - */ -proto.dapr.proto.common.v1.InvokeRequest.prototype.setMethod = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Any data = 2; - * @return {?proto.google.protobuf.Any} - */ -proto.dapr.proto.common.v1.InvokeRequest.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.common.v1.InvokeRequest} returns this -*/ -proto.dapr.proto.common.v1.InvokeRequest.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.common.v1.InvokeRequest} returns this - */ -proto.dapr.proto.common.v1.InvokeRequest.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.common.v1.InvokeRequest.prototype.hasData = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string content_type = 3; - * @return {string} - */ -proto.dapr.proto.common.v1.InvokeRequest.prototype.getContentType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.common.v1.InvokeRequest} returns this - */ -proto.dapr.proto.common.v1.InvokeRequest.prototype.setContentType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional HTTPExtension http_extension = 4; - * @return {?proto.dapr.proto.common.v1.HTTPExtension} - */ -proto.dapr.proto.common.v1.InvokeRequest.prototype.getHttpExtension = function() { - return /** @type{?proto.dapr.proto.common.v1.HTTPExtension} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.common.v1.HTTPExtension, 4)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.HTTPExtension|undefined} value - * @return {!proto.dapr.proto.common.v1.InvokeRequest} returns this -*/ -proto.dapr.proto.common.v1.InvokeRequest.prototype.setHttpExtension = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.common.v1.InvokeRequest} returns this - */ -proto.dapr.proto.common.v1.InvokeRequest.prototype.clearHttpExtension = function() { - return this.setHttpExtension(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.common.v1.InvokeRequest.prototype.hasHttpExtension = 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.common.v1.InvokeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.common.v1.InvokeResponse.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.common.v1.InvokeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.InvokeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), - contentType: 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.common.v1.InvokeResponse} - */ -proto.dapr.proto.common.v1.InvokeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.common.v1.InvokeResponse; - return proto.dapr.proto.common.v1.InvokeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.common.v1.InvokeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.common.v1.InvokeResponse} - */ -proto.dapr.proto.common.v1.InvokeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.setData(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setContentType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.common.v1.InvokeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.common.v1.InvokeResponse.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.common.v1.InvokeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.InvokeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } - f = message.getContentType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional google.protobuf.Any data = 1; - * @return {?proto.google.protobuf.Any} - */ -proto.dapr.proto.common.v1.InvokeResponse.prototype.getData = function() { - return /** @type{?proto.google.protobuf.Any} */ ( - jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Any|undefined} value - * @return {!proto.dapr.proto.common.v1.InvokeResponse} returns this -*/ -proto.dapr.proto.common.v1.InvokeResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.common.v1.InvokeResponse} returns this - */ -proto.dapr.proto.common.v1.InvokeResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.common.v1.InvokeResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string content_type = 2; - * @return {string} - */ -proto.dapr.proto.common.v1.InvokeResponse.prototype.getContentType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.common.v1.InvokeResponse} returns this - */ -proto.dapr.proto.common.v1.InvokeResponse.prototype.setContentType = 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.common.v1.StreamPayload.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.common.v1.StreamPayload.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.common.v1.StreamPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.StreamPayload.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - seq: 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.common.v1.StreamPayload} - */ -proto.dapr.proto.common.v1.StreamPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.common.v1.StreamPayload; - return proto.dapr.proto.common.v1.StreamPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.common.v1.StreamPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.common.v1.StreamPayload} - */ -proto.dapr.proto.common.v1.StreamPayload.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 = /** @type {number} */ (reader.readUint64()); - msg.setSeq(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.common.v1.StreamPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.common.v1.StreamPayload.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.common.v1.StreamPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.StreamPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getSeq(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } -}; - - -/** - * optional bytes data = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.common.v1.StreamPayload.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.common.v1.StreamPayload.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.common.v1.StreamPayload.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.common.v1.StreamPayload} returns this - */ -proto.dapr.proto.common.v1.StreamPayload.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional uint64 seq = 2; - * @return {number} - */ -proto.dapr.proto.common.v1.StreamPayload.prototype.getSeq = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.common.v1.StreamPayload} returns this - */ -proto.dapr.proto.common.v1.StreamPayload.prototype.setSeq = function(value) { - return jspb.Message.setProto3IntField(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.common.v1.StateItem.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.common.v1.StateItem.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.common.v1.StateItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.StateItem.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: msg.getValue_asB64(), - etag: (f = msg.getEtag()) && proto.dapr.proto.common.v1.Etag.toObject(includeInstance, f), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - options: (f = msg.getOptions()) && proto.dapr.proto.common.v1.StateOptions.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.common.v1.StateItem} - */ -proto.dapr.proto.common.v1.StateItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.common.v1.StateItem; - return proto.dapr.proto.common.v1.StateItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.common.v1.StateItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.common.v1.StateItem} - */ -proto.dapr.proto.common.v1.StateItem.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.setKey(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setValue(value); - break; - case 3: - var value = new proto.dapr.proto.common.v1.Etag; - reader.readMessage(value,proto.dapr.proto.common.v1.Etag.deserializeBinaryFromReader); - msg.setEtag(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; - case 5: - var value = new proto.dapr.proto.common.v1.StateOptions; - reader.readMessage(value,proto.dapr.proto.common.v1.StateOptions.deserializeBinaryFromReader); - msg.setOptions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.common.v1.StateItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.common.v1.StateItem.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.common.v1.StateItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.StateItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getValue_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getEtag(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.dapr.proto.common.v1.Etag.serializeBinaryToWriter - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.dapr.proto.common.v1.StateOptions.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string key = 1; - * @return {string} - */ -proto.dapr.proto.common.v1.StateItem.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.common.v1.StateItem} returns this - */ -proto.dapr.proto.common.v1.StateItem.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes value = 2; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.common.v1.StateItem.prototype.getValue = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes value = 2; - * This is a type-conversion wrapper around `getValue()` - * @return {string} - */ -proto.dapr.proto.common.v1.StateItem.prototype.getValue_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getValue())); -}; - - -/** - * optional bytes value = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getValue()` - * @return {!Uint8Array} - */ -proto.dapr.proto.common.v1.StateItem.prototype.getValue_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getValue())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.common.v1.StateItem} returns this - */ -proto.dapr.proto.common.v1.StateItem.prototype.setValue = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional Etag etag = 3; - * @return {?proto.dapr.proto.common.v1.Etag} - */ -proto.dapr.proto.common.v1.StateItem.prototype.getEtag = function() { - return /** @type{?proto.dapr.proto.common.v1.Etag} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.common.v1.Etag, 3)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.Etag|undefined} value - * @return {!proto.dapr.proto.common.v1.StateItem} returns this -*/ -proto.dapr.proto.common.v1.StateItem.prototype.setEtag = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.common.v1.StateItem} returns this - */ -proto.dapr.proto.common.v1.StateItem.prototype.clearEtag = function() { - return this.setEtag(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.common.v1.StateItem.prototype.hasEtag = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * map metadata = 4; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.common.v1.StateItem.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.common.v1.StateItem} returns this - */ -proto.dapr.proto.common.v1.StateItem.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - - -/** - * optional StateOptions options = 5; - * @return {?proto.dapr.proto.common.v1.StateOptions} - */ -proto.dapr.proto.common.v1.StateItem.prototype.getOptions = function() { - return /** @type{?proto.dapr.proto.common.v1.StateOptions} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.common.v1.StateOptions, 5)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.StateOptions|undefined} value - * @return {!proto.dapr.proto.common.v1.StateItem} returns this -*/ -proto.dapr.proto.common.v1.StateItem.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.common.v1.StateItem} returns this - */ -proto.dapr.proto.common.v1.StateItem.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.common.v1.StateItem.prototype.hasOptions = 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.common.v1.Etag.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.common.v1.Etag.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.common.v1.Etag} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.Etag.toObject = function(includeInstance, msg) { - var f, obj = { - value: 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.common.v1.Etag} - */ -proto.dapr.proto.common.v1.Etag.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.common.v1.Etag; - return proto.dapr.proto.common.v1.Etag.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.common.v1.Etag} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.common.v1.Etag} - */ -proto.dapr.proto.common.v1.Etag.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.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.common.v1.Etag.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.common.v1.Etag.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.common.v1.Etag} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.Etag.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string value = 1; - * @return {string} - */ -proto.dapr.proto.common.v1.Etag.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; +import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2"; +import { file_google_protobuf_any, file_google_protobuf_duration } from "@bufbuild/protobuf/wkt"; /** - * @param {string} value - * @return {!proto.dapr.proto.common.v1.Etag} returns this + * Describes the file dapr/proto/common/v1/common.proto. */ -proto.dapr.proto.common.v1.Etag.prototype.setValue = 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.common.v1.StateOptions.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.common.v1.StateOptions.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.common.v1.StateOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.StateOptions.toObject = function(includeInstance, msg) { - var f, obj = { - concurrency: jspb.Message.getFieldWithDefault(msg, 1, 0), - consistency: 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.common.v1.StateOptions} - */ -proto.dapr.proto.common.v1.StateOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.common.v1.StateOptions; - return proto.dapr.proto.common.v1.StateOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.common.v1.StateOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.common.v1.StateOptions} - */ -proto.dapr.proto.common.v1.StateOptions.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.common.v1.StateOptions.StateConcurrency} */ (reader.readEnum()); - msg.setConcurrency(value); - break; - case 2: - var value = /** @type {!proto.dapr.proto.common.v1.StateOptions.StateConsistency} */ (reader.readEnum()); - msg.setConsistency(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.common.v1.StateOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.common.v1.StateOptions.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.common.v1.StateOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.common.v1.StateOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConcurrency(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getConsistency(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - +export const file_dapr_proto_common_v1_common = /*@__PURE__*/ + fileDesc("CiFkYXByL3Byb3RvL2NvbW1vbi92MS9jb21tb24ucHJvdG8SFGRhcHIucHJvdG8uY29tbW9uLnYxItABCg1IVFRQRXh0ZW5zaW9uEjYKBHZlcmIYASABKA4yKC5kYXByLnByb3RvLmNvbW1vbi52MS5IVFRQRXh0ZW5zaW9uLlZlcmISEwoLcXVlcnlzdHJpbmcYAiABKAkicgoEVmVyYhIICgROT05FEAASBwoDR0VUEAESCAoESEVBRBACEggKBFBPU1QQAxIHCgNQVVQQBBIKCgZERUxFVEUQBRILCgdDT05ORUNUEAYSCwoHT1BUSU9OUxAHEgkKBVRSQUNFEAgSCQoFUEFUQ0gQCSKWAQoNSW52b2tlUmVxdWVzdBIOCgZtZXRob2QYASABKAkSIgoEZGF0YRgCIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSFAoMY29udGVudF90eXBlGAMgASgJEjsKDmh0dHBfZXh0ZW5zaW9uGAQgASgLMiMuZGFwci5wcm90by5jb21tb24udjEuSFRUUEV4dGVuc2lvbiJKCg5JbnZva2VSZXNwb25zZRIiCgRkYXRhGAEgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueRIUCgxjb250ZW50X3R5cGUYAiABKAkiKgoNU3RyZWFtUGF5bG9hZBIMCgRkYXRhGAEgASgMEgsKA3NlcRgCIAEoBCL4AQoJU3RhdGVJdGVtEgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoDBIoCgRldGFnGAMgASgLMhouZGFwci5wcm90by5jb21tb24udjEuRXRhZxI/CghtZXRhZGF0YRgEIAMoCzItLmRhcHIucHJvdG8uY29tbW9uLnYxLlN0YXRlSXRlbS5NZXRhZGF0YUVudHJ5EjMKB29wdGlvbnMYBSABKAsyIi5kYXByLnByb3RvLmNvbW1vbi52MS5TdGF0ZU9wdGlvbnMaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIhUKBEV0YWcSDQoFdmFsdWUYASABKAki7wIKDFN0YXRlT3B0aW9ucxJICgtjb25jdXJyZW5jeRgBIAEoDjIzLmRhcHIucHJvdG8uY29tbW9uLnYxLlN0YXRlT3B0aW9ucy5TdGF0ZUNvbmN1cnJlbmN5EkgKC2NvbnNpc3RlbmN5GAIgASgOMjMuZGFwci5wcm90by5jb21tb24udjEuU3RhdGVPcHRpb25zLlN0YXRlQ29uc2lzdGVuY3kiaAoQU3RhdGVDb25jdXJyZW5jeRIbChdDT05DVVJSRU5DWV9VTlNQRUNJRklFRBAAEhsKF0NPTkNVUlJFTkNZX0ZJUlNUX1dSSVRFEAESGgoWQ09OQ1VSUkVOQ1lfTEFTVF9XUklURRACImEKEFN0YXRlQ29uc2lzdGVuY3kSGwoXQ09OU0lTVEVOQ1lfVU5TUEVDSUZJRUQQABIYChRDT05TSVNURU5DWV9FVkVOVFVBTBABEhYKEkNPTlNJU1RFTkNZX1NUUk9ORxACIq0BChFDb25maWd1cmF0aW9uSXRlbRINCgV2YWx1ZRgBIAEoCRIPCgd2ZXJzaW9uGAIgASgJEkcKCG1ldGFkYXRhGAMgAygLMjUuZGFwci5wcm90by5jb21tb24udjEuQ29uZmlndXJhdGlvbkl0ZW0uTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEinAEKEEpvYkZhaWx1cmVQb2xpY3kSOgoEZHJvcBgBIAEoCzIqLmRhcHIucHJvdG8uY29tbW9uLnYxLkpvYkZhaWx1cmVQb2xpY3lEcm9wSAASQgoIY29uc3RhbnQYAiABKAsyLi5kYXByLnByb3RvLmNvbW1vbi52MS5Kb2JGYWlsdXJlUG9saWN5Q29uc3RhbnRIAEIICgZwb2xpY3kiFgoUSm9iRmFpbHVyZVBvbGljeURyb3AicQoYSm9iRmFpbHVyZVBvbGljeUNvbnN0YW50EisKCGludGVydmFsGAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEhgKC21heF9yZXRyaWVzGAIgASgNSACIAQFCDgoMX21heF9yZXRyaWVzQssBChhjb20uZGFwci5wcm90by5jb21tb24udjFCC0NvbW1vblByb3RvUAFaL2dpdGh1Yi5jb20vZGFwci9kYXByL3BrZy9wcm90by9jb21tb24vdjE7Y29tbW9uogIDRFBDqgIURGFwci5Qcm90by5Db21tb24uVjHKAhREYXByXFByb3RvXENvbW1vblxWMeICIERhcHJcUHJvdG9cQ29tbW9uXFYxXEdQQk1ldGFkYXRh6gIXRGFwcjo6UHJvdG86OkNvbW1vbjo6VjFiBnByb3RvMw", [file_google_protobuf_any, file_google_protobuf_duration]); /** - * @enum {number} + * Describes the message dapr.proto.common.v1.HTTPExtension. + * Use `create(HTTPExtensionSchema)` to create a new message. */ -proto.dapr.proto.common.v1.StateOptions.StateConcurrency = { - CONCURRENCY_UNSPECIFIED: 0, - CONCURRENCY_FIRST_WRITE: 1, - CONCURRENCY_LAST_WRITE: 2 -}; +export const HTTPExtensionSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_common_v1_common, 0); /** - * @enum {number} + * Describes the enum dapr.proto.common.v1.HTTPExtension.Verb. */ -proto.dapr.proto.common.v1.StateOptions.StateConsistency = { - CONSISTENCY_UNSPECIFIED: 0, - CONSISTENCY_EVENTUAL: 1, - CONSISTENCY_STRONG: 2 -}; +export const HTTPExtension_VerbSchema = /*@__PURE__*/ + enumDesc(file_dapr_proto_common_v1_common, 0, 0); /** - * optional StateConcurrency concurrency = 1; - * @return {!proto.dapr.proto.common.v1.StateOptions.StateConcurrency} + * Type of HTTP 1.1 Methods + * RFC 7231: https://tools.ietf.org/html/rfc7231#page-24 + * RFC 5789: https://datatracker.ietf.org/doc/html/rfc5789 + * + * @generated from enum dapr.proto.common.v1.HTTPExtension.Verb */ -proto.dapr.proto.common.v1.StateOptions.prototype.getConcurrency = function() { - return /** @type {!proto.dapr.proto.common.v1.StateOptions.StateConcurrency} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +export const HTTPExtension_Verb = /*@__PURE__*/ + tsEnum(HTTPExtension_VerbSchema); /** - * @param {!proto.dapr.proto.common.v1.StateOptions.StateConcurrency} value - * @return {!proto.dapr.proto.common.v1.StateOptions} returns this + * Describes the message dapr.proto.common.v1.InvokeRequest. + * Use `create(InvokeRequestSchema)` to create a new message. */ -proto.dapr.proto.common.v1.StateOptions.prototype.setConcurrency = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - +export const InvokeRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_common_v1_common, 1); /** - * optional StateConsistency consistency = 2; - * @return {!proto.dapr.proto.common.v1.StateOptions.StateConsistency} + * Describes the message dapr.proto.common.v1.InvokeResponse. + * Use `create(InvokeResponseSchema)` to create a new message. */ -proto.dapr.proto.common.v1.StateOptions.prototype.getConsistency = function() { - return /** @type {!proto.dapr.proto.common.v1.StateOptions.StateConsistency} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.dapr.proto.common.v1.StateOptions.StateConsistency} value - * @return {!proto.dapr.proto.common.v1.StateOptions} returns this - */ -proto.dapr.proto.common.v1.StateOptions.prototype.setConsistency = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - - - +export const InvokeResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_common_v1_common, 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} + * Describes the message dapr.proto.common.v1.StreamPayload. + * Use `create(StreamPayloadSchema)` to create a new message. */ -proto.dapr.proto.common.v1.ConfigurationItem.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.common.v1.ConfigurationItem.toObject(opt_includeInstance, this); -}; - +export const StreamPayloadSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_common_v1_common, 3); /** - * 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.common.v1.ConfigurationItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.common.v1.StateItem. + * Use `create(StateItemSchema)` to create a new message. */ -proto.dapr.proto.common.v1.ConfigurationItem.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFieldWithDefault(msg, 1, ""), - version: jspb.Message.getFieldWithDefault(msg, 2, ""), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const StateItemSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_common_v1_common, 4); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.common.v1.ConfigurationItem} + * Describes the message dapr.proto.common.v1.Etag. + * Use `create(EtagSchema)` to create a new message. */ -proto.dapr.proto.common.v1.ConfigurationItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.common.v1.ConfigurationItem; - return proto.dapr.proto.common.v1.ConfigurationItem.deserializeBinaryFromReader(msg, reader); -}; - +export const EtagSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_common_v1_common, 5); /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.common.v1.ConfigurationItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.common.v1.ConfigurationItem} + * Describes the message dapr.proto.common.v1.StateOptions. + * Use `create(StateOptionsSchema)` to create a new message. */ -proto.dapr.proto.common.v1.ConfigurationItem.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.setValue(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - +export const StateOptionsSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_common_v1_common, 6); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the enum dapr.proto.common.v1.StateOptions.StateConcurrency. */ -proto.dapr.proto.common.v1.ConfigurationItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.common.v1.ConfigurationItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const StateOptions_StateConcurrencySchema = /*@__PURE__*/ + enumDesc(file_dapr_proto_common_v1_common, 6, 0); /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.common.v1.ConfigurationItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Enum describing the supported concurrency for state. + * + * @generated from enum dapr.proto.common.v1.StateOptions.StateConcurrency */ -proto.dapr.proto.common.v1.ConfigurationItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getVersion(); - 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); - } -}; - +export const StateOptions_StateConcurrency = /*@__PURE__*/ + tsEnum(StateOptions_StateConcurrencySchema); /** - * optional string value = 1; - * @return {string} + * Describes the enum dapr.proto.common.v1.StateOptions.StateConsistency. */ -proto.dapr.proto.common.v1.ConfigurationItem.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +export const StateOptions_StateConsistencySchema = /*@__PURE__*/ + enumDesc(file_dapr_proto_common_v1_common, 6, 1); /** - * @param {string} value - * @return {!proto.dapr.proto.common.v1.ConfigurationItem} returns this + * Enum describing the supported consistency for state. + * + * @generated from enum dapr.proto.common.v1.StateOptions.StateConsistency */ -proto.dapr.proto.common.v1.ConfigurationItem.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +export const StateOptions_StateConsistency = /*@__PURE__*/ + tsEnum(StateOptions_StateConsistencySchema); /** - * optional string version = 2; - * @return {string} + * Describes the message dapr.proto.common.v1.ConfigurationItem. + * Use `create(ConfigurationItemSchema)` to create a new message. */ -proto.dapr.proto.common.v1.ConfigurationItem.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +export const ConfigurationItemSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_common_v1_common, 7); /** - * @param {string} value - * @return {!proto.dapr.proto.common.v1.ConfigurationItem} returns this + * Describes the message dapr.proto.common.v1.JobFailurePolicy. + * Use `create(JobFailurePolicySchema)` to create a new message. */ -proto.dapr.proto.common.v1.ConfigurationItem.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +export const JobFailurePolicySchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_common_v1_common, 8); /** - * map metadata = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * Describes the message dapr.proto.common.v1.JobFailurePolicyDrop. + * Use `create(JobFailurePolicyDropSchema)` to create a new message. */ -proto.dapr.proto.common.v1.ConfigurationItem.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); -}; - +export const JobFailurePolicyDropSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_common_v1_common, 9); /** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.common.v1.ConfigurationItem} returns this + * Describes the message dapr.proto.common.v1.JobFailurePolicyConstant. + * Use `create(JobFailurePolicyConstantSchema)` to create a new message. */ -proto.dapr.proto.common.v1.ConfigurationItem.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - +export const JobFailurePolicyConstantSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_common_v1_common, 10); -goog.object.extend(exports, proto.dapr.proto.common.v1); diff --git a/src/proto/dapr/proto/internals/v1/apiversion.proto b/src/proto/dapr/proto/internals/v1/apiversion.proto deleted file mode 100644 index cb6c6ff0..00000000 --- a/src/proto/dapr/proto/internals/v1/apiversion.proto +++ /dev/null @@ -1,27 +0,0 @@ -/* -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. -*/ - -syntax = "proto3"; - -package dapr.proto.internals.v1; - -option go_package = "github.com/dapr/dapr/pkg/proto/internals/v1;internals"; - -// APIVersion represents the version of Dapr Runtime API. -enum APIVersion { - // unspecified apiversion - APIVERSION_UNSPECIFIED = 0; - - // Dapr API v1 - V1 = 1; -} diff --git a/src/proto/dapr/proto/internals/v1/apiversion_grpc_pb.js b/src/proto/dapr/proto/internals/v1/apiversion_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/internals/v1/apiversion_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/src/proto/dapr/proto/internals/v1/apiversion_pb.d.ts b/src/proto/dapr/proto/internals/v1/apiversion_pb.d.ts deleted file mode 100644 index fcda85e8..00000000 --- a/src/proto/dapr/proto/internals/v1/apiversion_pb.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// package: dapr.proto.internals.v1 -// file: dapr/proto/internals/v1/apiversion.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export enum APIVersion { - APIVERSION_UNSPECIFIED = 0, - V1 = 1, -} diff --git a/src/proto/dapr/proto/internals/v1/apiversion_pb.js b/src/proto/dapr/proto/internals/v1/apiversion_pb.js deleted file mode 100644 index 31dbf02c..00000000 --- a/src/proto/dapr/proto/internals/v1/apiversion_pb.js +++ /dev/null @@ -1,33 +0,0 @@ -// source: dapr/proto/internals/v1/apiversion.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 = - (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); -/** - * @enum {number} - */ -proto.dapr.proto.internals.v1.APIVersion = { - APIVERSION_UNSPECIFIED: 0, - V1: 1 -}; - -goog.object.extend(exports, proto.dapr.proto.internals.v1); diff --git a/src/proto/dapr/proto/internals/v1/service_invocation.proto b/src/proto/dapr/proto/internals/v1/service_invocation.proto deleted file mode 100644 index b45c31d6..00000000 --- a/src/proto/dapr/proto/internals/v1/service_invocation.proto +++ /dev/null @@ -1,125 +0,0 @@ -/* -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. -*/ - -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"; - -// 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. -service ServiceInvocation { - // Invokes a method of the specific actor. - rpc CallActor (InternalInvokeRequest) returns (InternalInvokeResponse) {} - - // 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): - // - 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). - rpc CallLocalStream (stream InternalInvokeRequestStream) returns (stream InternalInvokeResponseStream) {} -} - -// Actor represents actor using actor_type and actor_id -message Actor { - // Required. The type of actor. - string actor_type = 1; - - // Required. The ID of actor type (actor_type) - string actor_id = 2; -} - -// InternalInvokeRequest is the message to transfer caller's data to callee -// for service invocation. This includes callee's app id and caller's request data. -message InternalInvokeRequest { - // Required. The version of Dapr runtime API. - APIVersion ver = 1; - - // Required. metadata holds caller's HTTP headers or gRPC metadata. - map metadata = 2; - - // Required. message including caller's invocation request. - common.v1.InvokeRequest message = 3; - - // Actor type and id. This field is used only for - // actor service invocation. - Actor actor = 4; -} - -// InternalInvokeResponse is the message to transfer callee's response to caller -// for service invocation. -message InternalInvokeResponse { - // Required. HTTP/gRPC status. - Status status = 1; - - // Required. The app callback response headers. - map headers = 2; - - // App callback response trailers. - // This will be used only for gRPC app callback - map trailers = 3; - - // Callee's invocation response message. - common.v1.InvokeResponse message = 4; -} - -// InternalInvokeRequestStream is a variant of InternalInvokeRequest used in streaming RPCs. -message InternalInvokeRequestStream { - // Request details. - // This does not contain any data in message.data. - InternalInvokeRequest request = 1; - - // Chunk of data. - common.v1.StreamPayload payload = 2; -} - -// InternalInvokeResponseStream is a variant of InternalInvokeResponse used in streaming RPCs. -message InternalInvokeResponseStream { - // Response details. - // This does not contain any data in message.data. - InternalInvokeResponse response = 1; - - // Chunk of data. - common.v1.StreamPayload payload = 2; -} - -// ListStringValue represents string value array -message ListStringValue { - // The array of string. - repeated string values = 1; -} diff --git a/src/proto/dapr/proto/internals/v1/status.proto b/src/proto/dapr/proto/internals/v1/status.proto deleted file mode 100644 index 3a6e47eb..00000000 --- a/src/proto/dapr/proto/internals/v1/status.proto +++ /dev/null @@ -1,32 +0,0 @@ -/* -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. -*/ - -syntax = "proto3"; - -package dapr.proto.internals.v1; - -import "google/protobuf/any.proto"; - -option go_package = "github.com/dapr/dapr/pkg/proto/internals/v1;internals"; - -// Status represents the response status for HTTP and gRPC app channel. -message Status { - // Required. The status code - int32 code = 1; - - // Error message - string message = 2; - - // A list of messages that carry the error details - repeated google.protobuf.Any details = 3; -} diff --git a/src/proto/dapr/proto/internals/v1/status_grpc_pb.js b/src/proto/dapr/proto/internals/v1/status_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/internals/v1/status_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/src/proto/dapr/proto/internals/v1/status_pb.d.ts b/src/proto/dapr/proto/internals/v1/status_pb.d.ts deleted file mode 100644 index e86f7c4c..00000000 --- a/src/proto/dapr/proto/internals/v1/status_pb.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -// package: dapr.proto.internals.v1 -// file: dapr/proto/internals/v1/status.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; - -export class Status extends jspb.Message { - getCode(): number; - setCode(value: number): Status; - getMessage(): string; - setMessage(value: string): Status; - clearDetailsList(): void; - getDetailsList(): Array; - setDetailsList(value: Array): Status; - addDetails(value?: google_protobuf_any_pb.Any, index?: number): google_protobuf_any_pb.Any; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Status.AsObject; - static toObject(includeInstance: boolean, msg: Status): Status.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Status, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Status; - static deserializeBinaryFromReader(message: Status, reader: jspb.BinaryReader): Status; -} - -export namespace Status { - export type AsObject = { - code: number, - message: string, - detailsList: Array, - } -} diff --git a/src/proto/dapr/proto/internals/v1/status_pb.js b/src/proto/dapr/proto/internals/v1/status_pb.js deleted file mode 100644 index bb945491..00000000 --- a/src/proto/dapr/proto/internals/v1/status_pb.js +++ /dev/null @@ -1,268 +0,0 @@ -// source: dapr/proto/internals/v1/status.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 = - (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); -goog.exportSymbol('proto.dapr.proto.internals.v1.Status', 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.Status = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.internals.v1.Status.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.Status, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.Status.displayName = 'proto.dapr.proto.internals.v1.Status'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.internals.v1.Status.repeatedFields_ = [3]; - - - -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.Status.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.Status.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.Status} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.Status.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, 0), - message: jspb.Message.getFieldWithDefault(msg, 2, ""), - detailsList: jspb.Message.toObjectList(msg.getDetailsList(), - google_protobuf_any_pb.Any.toObject, includeInstance) - }; - - 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.Status} - */ -proto.dapr.proto.internals.v1.Status.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.Status; - return proto.dapr.proto.internals.v1.Status.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.Status} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.Status} - */ -proto.dapr.proto.internals.v1.Status.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.setCode(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMessage(value); - break; - case 3: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.addDetails(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.Status.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.Status.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.Status} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.Status.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDetailsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 code = 1; - * @return {number} - */ -proto.dapr.proto.internals.v1.Status.prototype.getCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.internals.v1.Status} returns this - */ -proto.dapr.proto.internals.v1.Status.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string message = 2; - * @return {string} - */ -proto.dapr.proto.internals.v1.Status.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.Status} returns this - */ -proto.dapr.proto.internals.v1.Status.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated google.protobuf.Any details = 3; - * @return {!Array} - */ -proto.dapr.proto.internals.v1.Status.prototype.getDetailsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.internals.v1.Status} returns this -*/ -proto.dapr.proto.internals.v1.Status.prototype.setDetailsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.protobuf.Any=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Any} - */ -proto.dapr.proto.internals.v1.Status.prototype.addDetails = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Any, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.internals.v1.Status} returns this - */ -proto.dapr.proto.internals.v1.Status.prototype.clearDetailsList = function() { - return this.setDetailsList([]); -}; - - -goog.object.extend(exports, proto.dapr.proto.internals.v1); diff --git a/src/proto/dapr/proto/operator/v1/operator.proto b/src/proto/dapr/proto/operator/v1/operator.proto deleted file mode 100644 index 4046627f..00000000 --- a/src/proto/dapr/proto/operator/v1/operator.proto +++ /dev/null @@ -1,172 +0,0 @@ -/* -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. -*/ - -syntax = "proto3"; - -package dapr.proto.operator.v1; - -import "google/protobuf/empty.proto"; - -option go_package = "github.com/dapr/dapr/pkg/proto/operator/v1;operator"; - -service Operator { - // Sends events to Dapr sidecars upon component changes. - rpc ComponentUpdate (ComponentUpdateRequest) returns (stream ComponentUpdateEvent) {} - // Returns a list of available components - rpc ListComponents (ListComponentsRequest) returns (ListComponentResponse) {} - // Returns a given configuration by name - rpc GetConfiguration (GetConfigurationRequest) returns (GetConfigurationResponse) {} - // Returns a list of pub/sub subscriptions - rpc ListSubscriptions (google.protobuf.Empty) returns (ListSubscriptionsResponse) {} - // Returns a given resiliency configuration by name - rpc GetResiliency (GetResiliencyRequest) returns (GetResiliencyResponse) {} - // Returns a list of resiliency configurations - 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. - rpc HTTPEndpointUpdate (HTTPEndpointUpdateRequest) returns (stream HTTPEndpointUpdateEvent) {} -} - -// ResourceEventType is the type of event to a resource. -enum ResourceEventType { - // UNKNOWN indicates that the event type is unknown. - UNKNOWN = 0; - - // CREATED indicates that the resource has been created. - CREATED = 1; - - // UPDATED indicates that the resource has been updated. - UPDATED = 2; - - // DELETED indicates that the resource has been deleted. - DELETED = 3; -} - -// ListComponentsRequest is the request to get components for a sidecar in namespace. -message ListComponentsRequest { - string namespace = 1; - string podName = 2; -} - -// ComponentUpdateRequest is the request to get updates about new components for a given namespace. -message ComponentUpdateRequest { - string namespace = 1; - string podName = 2; -} - -// ComponentUpdateEvent includes the updated component event. -message ComponentUpdateEvent { - bytes component = 1; - - // type is the type of event. - ResourceEventType type = 2; -} - -// ListComponentResponse includes the list of available components. -message ListComponentResponse { - repeated bytes components = 1; -} - -// GetConfigurationRequest is the request message to get the configuration. -message GetConfigurationRequest { - string name = 1; - string namespace = 2; - string podName = 3; -} - -// GetConfigurationResponse includes the requested configuration. -message GetConfigurationResponse { - bytes configuration = 1; -} - -// ListSubscriptionsResponse includes pub/sub subscriptions. -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; - string namespace = 2; -} - -// GetResiliencyResponse includes the requested resiliency configuration. -message GetResiliencyResponse { - bytes resiliency = 1; -} - -// ListResiliencyRequest is the requests to get resiliency configurations for a sidecar namespace. -message ListResiliencyRequest { - string namespace = 1; -} - -// ListResiliencyResponse includes the list of available resiliency configurations. -message ListResiliencyResponse { - repeated bytes resiliencies = 1; -} - -message ListSubscriptionsRequest { - string podName = 1; - string namespace = 2; -} - -// GetHTTPEndpointRequest is the request to get an http endpoint configuration. -message GetHTTPEndpointRequest { - string name = 1; - string namespace = 2; -} - -// GetHTTPEndpointResponse includes the requested http endpoint configuration. -message GetHTTPEndpointResponse { - bytes http_endpoint = 1; -} - -// ListHTTPEndpointsResponse includes the list of available http endpoint configurations. -message ListHTTPEndpointsResponse { - repeated bytes http_endpoints = 1; -} - -message ListHTTPEndpointsRequest { - string namespace = 1; -} - -// HTTPEndpointsUpdateRequest is the request to get updates about new http endpoints for a given namespace. -message HTTPEndpointUpdateRequest { - string namespace = 1; - string pod_name = 2; -} - -// HTTPEndpointsUpdateEvent includes the updated http endpoint event. -message HTTPEndpointUpdateEvent { - bytes http_endpoints = 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 deleted file mode 100644 index bfaff618..00000000 --- a/src/proto/dapr/proto/operator/v1/operator_grpc_pb.d.ts +++ /dev/null @@ -1,189 +0,0 @@ -// package: dapr.proto.operator.v1 -// file: dapr/proto/operator/v1/operator.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as dapr_proto_operator_v1_operator_pb from "../../../../dapr/proto/operator/v1/operator_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; - -interface IOperatorService extends grpc.ServiceDefinition { - componentUpdate: IOperatorService_IComponentUpdate; - listComponents: IOperatorService_IListComponents; - getConfiguration: IOperatorService_IGetConfiguration; - listSubscriptions: IOperatorService_IListSubscriptions; - getResiliency: IOperatorService_IGetResiliency; - listResiliency: IOperatorService_IListResiliency; - listSubscriptionsV2: IOperatorService_IListSubscriptionsV2; - subscriptionUpdate: IOperatorService_ISubscriptionUpdate; - listHTTPEndpoints: IOperatorService_IListHTTPEndpoints; - hTTPEndpointUpdate: IOperatorService_IHTTPEndpointUpdate; -} - -interface IOperatorService_IComponentUpdate extends grpc.MethodDefinition { - path: "/dapr.proto.operator.v1.Operator/ComponentUpdate"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperatorService_IListComponents extends grpc.MethodDefinition { - path: "/dapr.proto.operator.v1.Operator/ListComponents"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperatorService_IGetConfiguration extends grpc.MethodDefinition { - path: "/dapr.proto.operator.v1.Operator/GetConfiguration"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperatorService_IListSubscriptions extends grpc.MethodDefinition { - path: "/dapr.proto.operator.v1.Operator/ListSubscriptions"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperatorService_IGetResiliency extends grpc.MethodDefinition { - path: "/dapr.proto.operator.v1.Operator/GetResiliency"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperatorService_IListResiliency extends grpc.MethodDefinition { - path: "/dapr.proto.operator.v1.Operator/ListResiliency"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperatorService_IListSubscriptionsV2 extends grpc.MethodDefinition { - path: "/dapr.proto.operator.v1.Operator/ListSubscriptionsV2"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - 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; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperatorService_IHTTPEndpointUpdate extends grpc.MethodDefinition { - path: "/dapr.proto.operator.v1.Operator/HTTPEndpointUpdate"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const OperatorService: IOperatorService; - -export interface IOperatorServer extends grpc.UntypedServiceImplementation { - componentUpdate: grpc.handleServerStreamingCall; - listComponents: grpc.handleUnaryCall; - getConfiguration: grpc.handleUnaryCall; - listSubscriptions: grpc.handleUnaryCall; - getResiliency: grpc.handleUnaryCall; - listResiliency: grpc.handleUnaryCall; - listSubscriptionsV2: grpc.handleUnaryCall; - subscriptionUpdate: grpc.handleServerStreamingCall; - listHTTPEndpoints: grpc.handleUnaryCall; - hTTPEndpointUpdate: grpc.handleServerStreamingCall; -} - -export interface IOperatorClient { - componentUpdate(request: dapr_proto_operator_v1_operator_pb.ComponentUpdateRequest, options?: Partial): grpc.ClientReadableStream; - componentUpdate(request: dapr_proto_operator_v1_operator_pb.ComponentUpdateRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - listComponents(request: dapr_proto_operator_v1_operator_pb.ListComponentsRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListComponentResponse) => void): grpc.ClientUnaryCall; - listComponents(request: dapr_proto_operator_v1_operator_pb.ListComponentsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListComponentResponse) => void): grpc.ClientUnaryCall; - listComponents(request: dapr_proto_operator_v1_operator_pb.ListComponentsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListComponentResponse) => void): grpc.ClientUnaryCall; - getConfiguration(request: dapr_proto_operator_v1_operator_pb.GetConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfiguration(request: dapr_proto_operator_v1_operator_pb.GetConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfiguration(request: dapr_proto_operator_v1_operator_pb.GetConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - listSubscriptions(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; - listSubscriptions(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; - listSubscriptions(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; - getResiliency(request: dapr_proto_operator_v1_operator_pb.GetResiliencyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetResiliencyResponse) => void): grpc.ClientUnaryCall; - getResiliency(request: dapr_proto_operator_v1_operator_pb.GetResiliencyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetResiliencyResponse) => void): grpc.ClientUnaryCall; - getResiliency(request: dapr_proto_operator_v1_operator_pb.GetResiliencyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetResiliencyResponse) => void): grpc.ClientUnaryCall; - listResiliency(request: dapr_proto_operator_v1_operator_pb.ListResiliencyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListResiliencyResponse) => void): grpc.ClientUnaryCall; - listResiliency(request: dapr_proto_operator_v1_operator_pb.ListResiliencyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListResiliencyResponse) => void): grpc.ClientUnaryCall; - listResiliency(request: dapr_proto_operator_v1_operator_pb.ListResiliencyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListResiliencyResponse) => void): grpc.ClientUnaryCall; - 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; - hTTPEndpointUpdate(request: dapr_proto_operator_v1_operator_pb.HTTPEndpointUpdateRequest, options?: Partial): grpc.ClientReadableStream; - hTTPEndpointUpdate(request: dapr_proto_operator_v1_operator_pb.HTTPEndpointUpdateRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; -} - -export class OperatorClient extends grpc.Client implements IOperatorClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public componentUpdate(request: dapr_proto_operator_v1_operator_pb.ComponentUpdateRequest, options?: Partial): grpc.ClientReadableStream; - public componentUpdate(request: dapr_proto_operator_v1_operator_pb.ComponentUpdateRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public listComponents(request: dapr_proto_operator_v1_operator_pb.ListComponentsRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListComponentResponse) => void): grpc.ClientUnaryCall; - public listComponents(request: dapr_proto_operator_v1_operator_pb.ListComponentsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListComponentResponse) => void): grpc.ClientUnaryCall; - public listComponents(request: dapr_proto_operator_v1_operator_pb.ListComponentsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListComponentResponse) => void): grpc.ClientUnaryCall; - public getConfiguration(request: dapr_proto_operator_v1_operator_pb.GetConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfiguration(request: dapr_proto_operator_v1_operator_pb.GetConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfiguration(request: dapr_proto_operator_v1_operator_pb.GetConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public listSubscriptions(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; - public listSubscriptions(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; - public listSubscriptions(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse) => void): grpc.ClientUnaryCall; - public getResiliency(request: dapr_proto_operator_v1_operator_pb.GetResiliencyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetResiliencyResponse) => void): grpc.ClientUnaryCall; - public getResiliency(request: dapr_proto_operator_v1_operator_pb.GetResiliencyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetResiliencyResponse) => void): grpc.ClientUnaryCall; - public getResiliency(request: dapr_proto_operator_v1_operator_pb.GetResiliencyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.GetResiliencyResponse) => void): grpc.ClientUnaryCall; - public listResiliency(request: dapr_proto_operator_v1_operator_pb.ListResiliencyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListResiliencyResponse) => void): grpc.ClientUnaryCall; - public listResiliency(request: dapr_proto_operator_v1_operator_pb.ListResiliencyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListResiliencyResponse) => void): grpc.ClientUnaryCall; - public listResiliency(request: dapr_proto_operator_v1_operator_pb.ListResiliencyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_operator_v1_operator_pb.ListResiliencyResponse) => void): grpc.ClientUnaryCall; - 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; - public hTTPEndpointUpdate(request: dapr_proto_operator_v1_operator_pb.HTTPEndpointUpdateRequest, options?: Partial): grpc.ClientReadableStream; - public hTTPEndpointUpdate(request: dapr_proto_operator_v1_operator_pb.HTTPEndpointUpdateRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; -} diff --git a/src/proto/dapr/proto/operator/v1/operator_grpc_pb.js b/src/proto/dapr/proto/operator/v1/operator_grpc_pb.js deleted file mode 100644 index f3ceca92..00000000 --- a/src/proto/dapr/proto/operator/v1/operator_grpc_pb.js +++ /dev/null @@ -1,354 +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_operator_v1_operator_pb = require('../../../../dapr/proto/operator/v1/operator_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); - -function serialize_dapr_proto_operator_v1_ComponentUpdateEvent(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.ComponentUpdateEvent)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.ComponentUpdateEvent'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_ComponentUpdateEvent(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.ComponentUpdateEvent.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_ComponentUpdateRequest(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.ComponentUpdateRequest)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.ComponentUpdateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_ComponentUpdateRequest(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.ComponentUpdateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_GetConfigurationRequest(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.GetConfigurationRequest)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.GetConfigurationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_GetConfigurationRequest(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.GetConfigurationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_GetConfigurationResponse(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.GetConfigurationResponse)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.GetConfigurationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_GetConfigurationResponse(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.GetConfigurationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_GetResiliencyRequest(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.GetResiliencyRequest)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.GetResiliencyRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_GetResiliencyRequest(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.GetResiliencyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_GetResiliencyResponse(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.GetResiliencyResponse)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.GetResiliencyResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_GetResiliencyResponse(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.GetResiliencyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_HTTPEndpointUpdateEvent(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.HTTPEndpointUpdateEvent)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.HTTPEndpointUpdateEvent'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_HTTPEndpointUpdateEvent(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.HTTPEndpointUpdateEvent.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_HTTPEndpointUpdateRequest(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.HTTPEndpointUpdateRequest)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.HTTPEndpointUpdateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_HTTPEndpointUpdateRequest(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.HTTPEndpointUpdateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_ListComponentResponse(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.ListComponentResponse)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.ListComponentResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_ListComponentResponse(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.ListComponentResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_ListComponentsRequest(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.ListComponentsRequest)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.ListComponentsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_ListComponentsRequest(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.ListComponentsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_ListHTTPEndpointsRequest(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsRequest)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.ListHTTPEndpointsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_ListHTTPEndpointsRequest(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_ListHTTPEndpointsResponse(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsResponse)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.ListHTTPEndpointsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_ListHTTPEndpointsResponse(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_ListResiliencyRequest(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.ListResiliencyRequest)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.ListResiliencyRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_ListResiliencyRequest(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.ListResiliencyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_ListResiliencyResponse(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.ListResiliencyResponse)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.ListResiliencyResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_ListResiliencyResponse(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.ListResiliencyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_ListSubscriptionsRequest(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.ListSubscriptionsRequest)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.ListSubscriptionsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_operator_v1_ListSubscriptionsRequest(buffer_arg) { - return dapr_proto_operator_v1_operator_pb.ListSubscriptionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_operator_v1_ListSubscriptionsResponse(arg) { - if (!(arg instanceof dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse)) { - throw new Error('Expected argument of type dapr.proto.operator.v1.ListSubscriptionsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -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'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var OperatorService = exports.OperatorService = { - // Sends events to Dapr sidecars upon component changes. -componentUpdate: { - path: '/dapr.proto.operator.v1.Operator/ComponentUpdate', - requestStream: false, - responseStream: true, - requestType: dapr_proto_operator_v1_operator_pb.ComponentUpdateRequest, - responseType: dapr_proto_operator_v1_operator_pb.ComponentUpdateEvent, - requestSerialize: serialize_dapr_proto_operator_v1_ComponentUpdateRequest, - requestDeserialize: deserialize_dapr_proto_operator_v1_ComponentUpdateRequest, - responseSerialize: serialize_dapr_proto_operator_v1_ComponentUpdateEvent, - responseDeserialize: deserialize_dapr_proto_operator_v1_ComponentUpdateEvent, - }, - // Returns a list of available components -listComponents: { - path: '/dapr.proto.operator.v1.Operator/ListComponents', - requestStream: false, - responseStream: false, - requestType: dapr_proto_operator_v1_operator_pb.ListComponentsRequest, - responseType: dapr_proto_operator_v1_operator_pb.ListComponentResponse, - requestSerialize: serialize_dapr_proto_operator_v1_ListComponentsRequest, - requestDeserialize: deserialize_dapr_proto_operator_v1_ListComponentsRequest, - responseSerialize: serialize_dapr_proto_operator_v1_ListComponentResponse, - responseDeserialize: deserialize_dapr_proto_operator_v1_ListComponentResponse, - }, - // Returns a given configuration by name -getConfiguration: { - path: '/dapr.proto.operator.v1.Operator/GetConfiguration', - requestStream: false, - responseStream: false, - requestType: dapr_proto_operator_v1_operator_pb.GetConfigurationRequest, - responseType: dapr_proto_operator_v1_operator_pb.GetConfigurationResponse, - requestSerialize: serialize_dapr_proto_operator_v1_GetConfigurationRequest, - requestDeserialize: deserialize_dapr_proto_operator_v1_GetConfigurationRequest, - responseSerialize: serialize_dapr_proto_operator_v1_GetConfigurationResponse, - responseDeserialize: deserialize_dapr_proto_operator_v1_GetConfigurationResponse, - }, - // Returns a list of pub/sub subscriptions -listSubscriptions: { - path: '/dapr.proto.operator.v1.Operator/ListSubscriptions', - requestStream: false, - responseStream: false, - requestType: google_protobuf_empty_pb.Empty, - responseType: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse, - requestSerialize: serialize_google_protobuf_Empty, - requestDeserialize: deserialize_google_protobuf_Empty, - responseSerialize: serialize_dapr_proto_operator_v1_ListSubscriptionsResponse, - responseDeserialize: deserialize_dapr_proto_operator_v1_ListSubscriptionsResponse, - }, - // Returns a given resiliency configuration by name -getResiliency: { - path: '/dapr.proto.operator.v1.Operator/GetResiliency', - requestStream: false, - responseStream: false, - requestType: dapr_proto_operator_v1_operator_pb.GetResiliencyRequest, - responseType: dapr_proto_operator_v1_operator_pb.GetResiliencyResponse, - requestSerialize: serialize_dapr_proto_operator_v1_GetResiliencyRequest, - requestDeserialize: deserialize_dapr_proto_operator_v1_GetResiliencyRequest, - responseSerialize: serialize_dapr_proto_operator_v1_GetResiliencyResponse, - responseDeserialize: deserialize_dapr_proto_operator_v1_GetResiliencyResponse, - }, - // Returns a list of resiliency configurations -listResiliency: { - path: '/dapr.proto.operator.v1.Operator/ListResiliency', - requestStream: false, - responseStream: false, - requestType: dapr_proto_operator_v1_operator_pb.ListResiliencyRequest, - responseType: dapr_proto_operator_v1_operator_pb.ListResiliencyResponse, - requestSerialize: serialize_dapr_proto_operator_v1_ListResiliencyRequest, - requestDeserialize: deserialize_dapr_proto_operator_v1_ListResiliencyRequest, - responseSerialize: serialize_dapr_proto_operator_v1_ListResiliencyResponse, - responseDeserialize: deserialize_dapr_proto_operator_v1_ListResiliencyResponse, - }, - // Returns a list of pub/sub subscriptions, ListSubscriptionsRequest to expose pod info -listSubscriptionsV2: { - path: '/dapr.proto.operator.v1.Operator/ListSubscriptionsV2', - requestStream: false, - responseStream: false, - requestType: dapr_proto_operator_v1_operator_pb.ListSubscriptionsRequest, - responseType: dapr_proto_operator_v1_operator_pb.ListSubscriptionsResponse, - requestSerialize: serialize_dapr_proto_operator_v1_ListSubscriptionsRequest, - requestDeserialize: deserialize_dapr_proto_operator_v1_ListSubscriptionsRequest, - 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', - requestStream: false, - responseStream: false, - requestType: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsRequest, - responseType: dapr_proto_operator_v1_operator_pb.ListHTTPEndpointsResponse, - requestSerialize: serialize_dapr_proto_operator_v1_ListHTTPEndpointsRequest, - requestDeserialize: deserialize_dapr_proto_operator_v1_ListHTTPEndpointsRequest, - responseSerialize: serialize_dapr_proto_operator_v1_ListHTTPEndpointsResponse, - responseDeserialize: deserialize_dapr_proto_operator_v1_ListHTTPEndpointsResponse, - }, - // Sends events to Dapr sidecars upon http endpoint changes. -hTTPEndpointUpdate: { - path: '/dapr.proto.operator.v1.Operator/HTTPEndpointUpdate', - requestStream: false, - responseStream: true, - requestType: dapr_proto_operator_v1_operator_pb.HTTPEndpointUpdateRequest, - responseType: dapr_proto_operator_v1_operator_pb.HTTPEndpointUpdateEvent, - requestSerialize: serialize_dapr_proto_operator_v1_HTTPEndpointUpdateRequest, - requestDeserialize: deserialize_dapr_proto_operator_v1_HTTPEndpointUpdateRequest, - responseSerialize: serialize_dapr_proto_operator_v1_HTTPEndpointUpdateEvent, - responseDeserialize: deserialize_dapr_proto_operator_v1_HTTPEndpointUpdateEvent, - }, -}; - -exports.OperatorClient = grpc.makeGenericClientConstructor(OperatorService); diff --git a/src/proto/dapr/proto/operator/v1/operator_pb.d.ts b/src/proto/dapr/proto/operator/v1/operator_pb.d.ts deleted file mode 100644 index 6ba87107..00000000 --- a/src/proto/dapr/proto/operator/v1/operator_pb.d.ts +++ /dev/null @@ -1,476 +0,0 @@ -// package: dapr.proto.operator.v1 -// file: dapr/proto/operator/v1/operator.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; - -export class ListComponentsRequest extends jspb.Message { - getNamespace(): string; - setNamespace(value: string): ListComponentsRequest; - getPodname(): string; - setPodname(value: string): ListComponentsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListComponentsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListComponentsRequest): ListComponentsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListComponentsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListComponentsRequest; - static deserializeBinaryFromReader(message: ListComponentsRequest, reader: jspb.BinaryReader): ListComponentsRequest; -} - -export namespace ListComponentsRequest { - export type AsObject = { - namespace: string, - podname: string, - } -} - -export class ComponentUpdateRequest extends jspb.Message { - getNamespace(): string; - setNamespace(value: string): ComponentUpdateRequest; - getPodname(): string; - setPodname(value: string): ComponentUpdateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ComponentUpdateRequest.AsObject; - static toObject(includeInstance: boolean, msg: ComponentUpdateRequest): ComponentUpdateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ComponentUpdateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ComponentUpdateRequest; - static deserializeBinaryFromReader(message: ComponentUpdateRequest, reader: jspb.BinaryReader): ComponentUpdateRequest; -} - -export namespace ComponentUpdateRequest { - export type AsObject = { - namespace: string, - podname: string, - } -} - -export class ComponentUpdateEvent extends jspb.Message { - getComponent(): Uint8Array | string; - getComponent_asU8(): Uint8Array; - getComponent_asB64(): string; - setComponent(value: Uint8Array | string): ComponentUpdateEvent; - getType(): ResourceEventType; - setType(value: ResourceEventType): ComponentUpdateEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ComponentUpdateEvent.AsObject; - static toObject(includeInstance: boolean, msg: ComponentUpdateEvent): ComponentUpdateEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ComponentUpdateEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ComponentUpdateEvent; - static deserializeBinaryFromReader(message: ComponentUpdateEvent, reader: jspb.BinaryReader): ComponentUpdateEvent; -} - -export namespace ComponentUpdateEvent { - export type AsObject = { - component: Uint8Array | string, - type: ResourceEventType, - } -} - -export class ListComponentResponse extends jspb.Message { - clearComponentsList(): void; - getComponentsList(): Array; - getComponentsList_asU8(): Array; - getComponentsList_asB64(): Array; - setComponentsList(value: Array): ListComponentResponse; - addComponents(value: Uint8Array | string, index?: number): Uint8Array | string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListComponentResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListComponentResponse): ListComponentResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListComponentResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListComponentResponse; - static deserializeBinaryFromReader(message: ListComponentResponse, reader: jspb.BinaryReader): ListComponentResponse; -} - -export namespace ListComponentResponse { - export type AsObject = { - componentsList: Array, - } -} - -export class GetConfigurationRequest extends jspb.Message { - getName(): string; - setName(value: string): GetConfigurationRequest; - getNamespace(): string; - setNamespace(value: string): GetConfigurationRequest; - getPodname(): string; - setPodname(value: string): GetConfigurationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetConfigurationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetConfigurationRequest): GetConfigurationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetConfigurationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetConfigurationRequest; - static deserializeBinaryFromReader(message: GetConfigurationRequest, reader: jspb.BinaryReader): GetConfigurationRequest; -} - -export namespace GetConfigurationRequest { - export type AsObject = { - name: string, - namespace: string, - podname: string, - } -} - -export class GetConfigurationResponse extends jspb.Message { - getConfiguration(): Uint8Array | string; - getConfiguration_asU8(): Uint8Array; - getConfiguration_asB64(): string; - setConfiguration(value: Uint8Array | string): GetConfigurationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetConfigurationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetConfigurationResponse): GetConfigurationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetConfigurationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetConfigurationResponse; - static deserializeBinaryFromReader(message: GetConfigurationResponse, reader: jspb.BinaryReader): GetConfigurationResponse; -} - -export namespace GetConfigurationResponse { - export type AsObject = { - configuration: Uint8Array | string, - } -} - -export class ListSubscriptionsResponse extends jspb.Message { - clearSubscriptionsList(): void; - getSubscriptionsList(): Array; - getSubscriptionsList_asU8(): Array; - getSubscriptionsList_asB64(): Array; - setSubscriptionsList(value: Array): ListSubscriptionsResponse; - addSubscriptions(value: Uint8Array | string, index?: number): Uint8Array | string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListSubscriptionsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListSubscriptionsResponse): ListSubscriptionsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListSubscriptionsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListSubscriptionsResponse; - static deserializeBinaryFromReader(message: ListSubscriptionsResponse, reader: jspb.BinaryReader): ListSubscriptionsResponse; -} - -export namespace ListSubscriptionsResponse { - export type AsObject = { - subscriptionsList: Array, - } -} - -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; - getNamespace(): string; - setNamespace(value: string): GetResiliencyRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetResiliencyRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetResiliencyRequest): GetResiliencyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetResiliencyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetResiliencyRequest; - static deserializeBinaryFromReader(message: GetResiliencyRequest, reader: jspb.BinaryReader): GetResiliencyRequest; -} - -export namespace GetResiliencyRequest { - export type AsObject = { - name: string, - namespace: string, - } -} - -export class GetResiliencyResponse extends jspb.Message { - getResiliency(): Uint8Array | string; - getResiliency_asU8(): Uint8Array; - getResiliency_asB64(): string; - setResiliency(value: Uint8Array | string): GetResiliencyResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetResiliencyResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetResiliencyResponse): GetResiliencyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetResiliencyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetResiliencyResponse; - static deserializeBinaryFromReader(message: GetResiliencyResponse, reader: jspb.BinaryReader): GetResiliencyResponse; -} - -export namespace GetResiliencyResponse { - export type AsObject = { - resiliency: Uint8Array | string, - } -} - -export class ListResiliencyRequest extends jspb.Message { - getNamespace(): string; - setNamespace(value: string): ListResiliencyRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListResiliencyRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListResiliencyRequest): ListResiliencyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListResiliencyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListResiliencyRequest; - static deserializeBinaryFromReader(message: ListResiliencyRequest, reader: jspb.BinaryReader): ListResiliencyRequest; -} - -export namespace ListResiliencyRequest { - export type AsObject = { - namespace: string, - } -} - -export class ListResiliencyResponse extends jspb.Message { - clearResilienciesList(): void; - getResilienciesList(): Array; - getResilienciesList_asU8(): Array; - getResilienciesList_asB64(): Array; - setResilienciesList(value: Array): ListResiliencyResponse; - addResiliencies(value: Uint8Array | string, index?: number): Uint8Array | string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListResiliencyResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListResiliencyResponse): ListResiliencyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListResiliencyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListResiliencyResponse; - static deserializeBinaryFromReader(message: ListResiliencyResponse, reader: jspb.BinaryReader): ListResiliencyResponse; -} - -export namespace ListResiliencyResponse { - export type AsObject = { - resilienciesList: Array, - } -} - -export class ListSubscriptionsRequest extends jspb.Message { - getPodname(): string; - setPodname(value: string): ListSubscriptionsRequest; - getNamespace(): string; - setNamespace(value: string): ListSubscriptionsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListSubscriptionsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListSubscriptionsRequest): ListSubscriptionsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListSubscriptionsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListSubscriptionsRequest; - static deserializeBinaryFromReader(message: ListSubscriptionsRequest, reader: jspb.BinaryReader): ListSubscriptionsRequest; -} - -export namespace ListSubscriptionsRequest { - export type AsObject = { - podname: string, - namespace: string, - } -} - -export class GetHTTPEndpointRequest extends jspb.Message { - getName(): string; - setName(value: string): GetHTTPEndpointRequest; - getNamespace(): string; - setNamespace(value: string): GetHTTPEndpointRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetHTTPEndpointRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetHTTPEndpointRequest): GetHTTPEndpointRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetHTTPEndpointRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetHTTPEndpointRequest; - static deserializeBinaryFromReader(message: GetHTTPEndpointRequest, reader: jspb.BinaryReader): GetHTTPEndpointRequest; -} - -export namespace GetHTTPEndpointRequest { - export type AsObject = { - name: string, - namespace: string, - } -} - -export class GetHTTPEndpointResponse extends jspb.Message { - getHttpEndpoint(): Uint8Array | string; - getHttpEndpoint_asU8(): Uint8Array; - getHttpEndpoint_asB64(): string; - setHttpEndpoint(value: Uint8Array | string): GetHTTPEndpointResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetHTTPEndpointResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetHTTPEndpointResponse): GetHTTPEndpointResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetHTTPEndpointResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetHTTPEndpointResponse; - static deserializeBinaryFromReader(message: GetHTTPEndpointResponse, reader: jspb.BinaryReader): GetHTTPEndpointResponse; -} - -export namespace GetHTTPEndpointResponse { - export type AsObject = { - httpEndpoint: Uint8Array | string, - } -} - -export class ListHTTPEndpointsResponse extends jspb.Message { - clearHttpEndpointsList(): void; - getHttpEndpointsList(): Array; - getHttpEndpointsList_asU8(): Array; - getHttpEndpointsList_asB64(): Array; - setHttpEndpointsList(value: Array): ListHTTPEndpointsResponse; - addHttpEndpoints(value: Uint8Array | string, index?: number): Uint8Array | string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListHTTPEndpointsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListHTTPEndpointsResponse): ListHTTPEndpointsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListHTTPEndpointsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListHTTPEndpointsResponse; - static deserializeBinaryFromReader(message: ListHTTPEndpointsResponse, reader: jspb.BinaryReader): ListHTTPEndpointsResponse; -} - -export namespace ListHTTPEndpointsResponse { - export type AsObject = { - httpEndpointsList: Array, - } -} - -export class ListHTTPEndpointsRequest extends jspb.Message { - getNamespace(): string; - setNamespace(value: string): ListHTTPEndpointsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListHTTPEndpointsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListHTTPEndpointsRequest): ListHTTPEndpointsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListHTTPEndpointsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListHTTPEndpointsRequest; - static deserializeBinaryFromReader(message: ListHTTPEndpointsRequest, reader: jspb.BinaryReader): ListHTTPEndpointsRequest; -} - -export namespace ListHTTPEndpointsRequest { - export type AsObject = { - namespace: string, - } -} - -export class HTTPEndpointUpdateRequest extends jspb.Message { - getNamespace(): string; - setNamespace(value: string): HTTPEndpointUpdateRequest; - getPodName(): string; - setPodName(value: string): HTTPEndpointUpdateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HTTPEndpointUpdateRequest.AsObject; - static toObject(includeInstance: boolean, msg: HTTPEndpointUpdateRequest): HTTPEndpointUpdateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HTTPEndpointUpdateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HTTPEndpointUpdateRequest; - static deserializeBinaryFromReader(message: HTTPEndpointUpdateRequest, reader: jspb.BinaryReader): HTTPEndpointUpdateRequest; -} - -export namespace HTTPEndpointUpdateRequest { - export type AsObject = { - namespace: string, - podName: string, - } -} - -export class HTTPEndpointUpdateEvent extends jspb.Message { - getHttpEndpoints(): Uint8Array | string; - getHttpEndpoints_asU8(): Uint8Array; - getHttpEndpoints_asB64(): string; - setHttpEndpoints(value: Uint8Array | string): HTTPEndpointUpdateEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HTTPEndpointUpdateEvent.AsObject; - static toObject(includeInstance: boolean, msg: HTTPEndpointUpdateEvent): HTTPEndpointUpdateEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HTTPEndpointUpdateEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HTTPEndpointUpdateEvent; - static deserializeBinaryFromReader(message: HTTPEndpointUpdateEvent, reader: jspb.BinaryReader): HTTPEndpointUpdateEvent; -} - -export namespace HTTPEndpointUpdateEvent { - export type AsObject = { - httpEndpoints: Uint8Array | string, - } -} - -export enum ResourceEventType { - UNKNOWN = 0, - CREATED = 1, - UPDATED = 2, - DELETED = 3, -} diff --git a/src/proto/dapr/proto/operator/v1/operator_pb.js b/src/proto/dapr/proto/operator/v1/operator_pb.js deleted file mode 100644 index d983c9c3..00000000 --- a/src/proto/dapr/proto/operator/v1/operator_pb.js +++ /dev/null @@ -1,3751 +0,0 @@ -// source: dapr/proto/operator/v1/operator.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 = - (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); -goog.exportSymbol('proto.dapr.proto.operator.v1.ComponentUpdateEvent', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.ComponentUpdateRequest', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.GetConfigurationRequest', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.GetConfigurationResponse', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.GetHTTPEndpointRequest', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.GetHTTPEndpointResponse', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.GetResiliencyRequest', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.GetResiliencyResponse', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.ListComponentResponse', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.ListComponentsRequest', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.ListResiliencyRequest', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.ListResiliencyResponse', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.ListSubscriptionsRequest', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.ListSubscriptionsResponse', null, global); -goog.exportSymbol('proto.dapr.proto.operator.v1.ResourceEventType', null, global); -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 - * 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.ListComponentsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.ListComponentsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.ListComponentsRequest.displayName = 'proto.dapr.proto.operator.v1.ListComponentsRequest'; -} -/** - * 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.ComponentUpdateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.ComponentUpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.ComponentUpdateRequest.displayName = 'proto.dapr.proto.operator.v1.ComponentUpdateRequest'; -} -/** - * 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.ComponentUpdateEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.ComponentUpdateEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.ComponentUpdateEvent.displayName = 'proto.dapr.proto.operator.v1.ComponentUpdateEvent'; -} -/** - * 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.ListComponentResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.operator.v1.ListComponentResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.ListComponentResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.ListComponentResponse.displayName = 'proto.dapr.proto.operator.v1.ListComponentResponse'; -} -/** - * 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.GetConfigurationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.GetConfigurationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.GetConfigurationRequest.displayName = 'proto.dapr.proto.operator.v1.GetConfigurationRequest'; -} -/** - * 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.GetConfigurationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.GetConfigurationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.GetConfigurationResponse.displayName = 'proto.dapr.proto.operator.v1.GetConfigurationResponse'; -} -/** - * 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.ListSubscriptionsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.operator.v1.ListSubscriptionsResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.ListSubscriptionsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.GetResiliencyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.GetResiliencyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.GetResiliencyRequest.displayName = 'proto.dapr.proto.operator.v1.GetResiliencyRequest'; -} -/** - * 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.GetResiliencyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.GetResiliencyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.GetResiliencyResponse.displayName = 'proto.dapr.proto.operator.v1.GetResiliencyResponse'; -} -/** - * 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.ListResiliencyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.ListResiliencyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.ListResiliencyRequest.displayName = 'proto.dapr.proto.operator.v1.ListResiliencyRequest'; -} -/** - * 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.ListResiliencyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.operator.v1.ListResiliencyResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.ListResiliencyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.ListResiliencyResponse.displayName = 'proto.dapr.proto.operator.v1.ListResiliencyResponse'; -} -/** - * 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.ListSubscriptionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.ListSubscriptionsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.ListSubscriptionsRequest.displayName = 'proto.dapr.proto.operator.v1.ListSubscriptionsRequest'; -} -/** - * 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.GetHTTPEndpointRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.GetHTTPEndpointRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.displayName = 'proto.dapr.proto.operator.v1.GetHTTPEndpointRequest'; -} -/** - * 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.GetHTTPEndpointResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.GetHTTPEndpointResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.displayName = 'proto.dapr.proto.operator.v1.GetHTTPEndpointResponse'; -} -/** - * 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.ListHTTPEndpointsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.displayName = 'proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse'; -} -/** - * 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.ListHTTPEndpointsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest.displayName = 'proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest'; -} -/** - * 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.HTTPEndpointUpdateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest.displayName = 'proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest'; -} -/** - * 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.HTTPEndpointUpdateEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.displayName = 'proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent'; -} - - - -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.ListComponentsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.ListComponentsRequest.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.ListComponentsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListComponentsRequest.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.ListComponentsRequest} - */ -proto.dapr.proto.operator.v1.ListComponentsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.ListComponentsRequest; - return proto.dapr.proto.operator.v1.ListComponentsRequest.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.ListComponentsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.ListComponentsRequest} - */ -proto.dapr.proto.operator.v1.ListComponentsRequest.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.ListComponentsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.ListComponentsRequest.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.ListComponentsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListComponentsRequest.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.ListComponentsRequest.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.ListComponentsRequest} returns this - */ -proto.dapr.proto.operator.v1.ListComponentsRequest.prototype.setNamespace = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string podName = 2; - * @return {string} - */ -proto.dapr.proto.operator.v1.ListComponentsRequest.prototype.getPodname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.ListComponentsRequest} returns this - */ -proto.dapr.proto.operator.v1.ListComponentsRequest.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.ComponentUpdateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.ComponentUpdateRequest.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.ComponentUpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ComponentUpdateRequest.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.ComponentUpdateRequest} - */ -proto.dapr.proto.operator.v1.ComponentUpdateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.ComponentUpdateRequest; - return proto.dapr.proto.operator.v1.ComponentUpdateRequest.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.ComponentUpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.ComponentUpdateRequest} - */ -proto.dapr.proto.operator.v1.ComponentUpdateRequest.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.ComponentUpdateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.ComponentUpdateRequest.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.ComponentUpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ComponentUpdateRequest.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.ComponentUpdateRequest.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.ComponentUpdateRequest} returns this - */ -proto.dapr.proto.operator.v1.ComponentUpdateRequest.prototype.setNamespace = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string podName = 2; - * @return {string} - */ -proto.dapr.proto.operator.v1.ComponentUpdateRequest.prototype.getPodname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.ComponentUpdateRequest} returns this - */ -proto.dapr.proto.operator.v1.ComponentUpdateRequest.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.ComponentUpdateEvent.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.ComponentUpdateEvent.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.ComponentUpdateEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ComponentUpdateEvent.toObject = function(includeInstance, msg) { - var f, obj = { - component: msg.getComponent_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.ComponentUpdateEvent} - */ -proto.dapr.proto.operator.v1.ComponentUpdateEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.ComponentUpdateEvent; - return proto.dapr.proto.operator.v1.ComponentUpdateEvent.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.ComponentUpdateEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.ComponentUpdateEvent} - */ -proto.dapr.proto.operator.v1.ComponentUpdateEvent.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.setComponent(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.ComponentUpdateEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.ComponentUpdateEvent.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.ComponentUpdateEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ComponentUpdateEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getComponent_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional bytes component = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.getComponent = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes component = 1; - * This is a type-conversion wrapper around `getComponent()` - * @return {string} - */ -proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.getComponent_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getComponent())); -}; - - -/** - * optional bytes component = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getComponent()` - * @return {!Uint8Array} - */ -proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.getComponent_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getComponent())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.operator.v1.ComponentUpdateEvent} returns this - */ -proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.setComponent = 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.ComponentUpdateEvent.prototype.getType = function() { - return /** @type {!proto.dapr.proto.operator.v1.ResourceEventType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.dapr.proto.operator.v1.ResourceEventType} value - * @return {!proto.dapr.proto.operator.v1.ComponentUpdateEvent} returns this - */ -proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.operator.v1.ListComponentResponse.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.operator.v1.ListComponentResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.ListComponentResponse.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.ListComponentResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListComponentResponse.toObject = function(includeInstance, msg) { - var f, obj = { - componentsList: msg.getComponentsList_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.operator.v1.ListComponentResponse} - */ -proto.dapr.proto.operator.v1.ListComponentResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.ListComponentResponse; - return proto.dapr.proto.operator.v1.ListComponentResponse.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.ListComponentResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.ListComponentResponse} - */ -proto.dapr.proto.operator.v1.ListComponentResponse.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.addComponents(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.ListComponentResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.ListComponentResponse.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.ListComponentResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListComponentResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getComponentsList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 1, - f - ); - } -}; - - -/** - * repeated bytes components = 1; - * @return {!(Array|Array)} - */ -proto.dapr.proto.operator.v1.ListComponentResponse.prototype.getComponentsList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * repeated bytes components = 1; - * This is a type-conversion wrapper around `getComponentsList()` - * @return {!Array} - */ -proto.dapr.proto.operator.v1.ListComponentResponse.prototype.getComponentsList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getComponentsList())); -}; - - -/** - * repeated bytes components = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getComponentsList()` - * @return {!Array} - */ -proto.dapr.proto.operator.v1.ListComponentResponse.prototype.getComponentsList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getComponentsList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.dapr.proto.operator.v1.ListComponentResponse} returns this - */ -proto.dapr.proto.operator.v1.ListComponentResponse.prototype.setComponentsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.operator.v1.ListComponentResponse} returns this - */ -proto.dapr.proto.operator.v1.ListComponentResponse.prototype.addComponents = 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.operator.v1.ListComponentResponse} returns this - */ -proto.dapr.proto.operator.v1.ListComponentResponse.prototype.clearComponentsList = function() { - return this.setComponentsList([]); -}; - - - - - -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.GetConfigurationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.GetConfigurationRequest.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.GetConfigurationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetConfigurationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - namespace: jspb.Message.getFieldWithDefault(msg, 2, ""), - podname: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - 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.GetConfigurationRequest} - */ -proto.dapr.proto.operator.v1.GetConfigurationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.GetConfigurationRequest; - return proto.dapr.proto.operator.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.operator.v1.GetConfigurationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.GetConfigurationRequest} - */ -proto.dapr.proto.operator.v1.GetConfigurationRequest.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.setNamespace(value); - break; - case 3: - 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.GetConfigurationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.GetConfigurationRequest.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.GetConfigurationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetConfigurationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getNamespace(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPodname(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.operator.v1.GetConfigurationRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.GetConfigurationRequest} returns this - */ -proto.dapr.proto.operator.v1.GetConfigurationRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string namespace = 2; - * @return {string} - */ -proto.dapr.proto.operator.v1.GetConfigurationRequest.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.GetConfigurationRequest} returns this - */ -proto.dapr.proto.operator.v1.GetConfigurationRequest.prototype.setNamespace = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string podName = 3; - * @return {string} - */ -proto.dapr.proto.operator.v1.GetConfigurationRequest.prototype.getPodname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.GetConfigurationRequest} returns this - */ -proto.dapr.proto.operator.v1.GetConfigurationRequest.prototype.setPodname = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.operator.v1.GetConfigurationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.GetConfigurationResponse.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.GetConfigurationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetConfigurationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - configuration: msg.getConfiguration_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.operator.v1.GetConfigurationResponse} - */ -proto.dapr.proto.operator.v1.GetConfigurationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.GetConfigurationResponse; - return proto.dapr.proto.operator.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.operator.v1.GetConfigurationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.GetConfigurationResponse} - */ -proto.dapr.proto.operator.v1.GetConfigurationResponse.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.setConfiguration(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.GetConfigurationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.GetConfigurationResponse.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.GetConfigurationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetConfigurationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConfiguration_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes configuration = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.operator.v1.GetConfigurationResponse.prototype.getConfiguration = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes configuration = 1; - * This is a type-conversion wrapper around `getConfiguration()` - * @return {string} - */ -proto.dapr.proto.operator.v1.GetConfigurationResponse.prototype.getConfiguration_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getConfiguration())); -}; - - -/** - * optional bytes configuration = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getConfiguration()` - * @return {!Uint8Array} - */ -proto.dapr.proto.operator.v1.GetConfigurationResponse.prototype.getConfiguration_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getConfiguration())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.operator.v1.GetConfigurationResponse} returns this - */ -proto.dapr.proto.operator.v1.GetConfigurationResponse.prototype.setConfiguration = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.operator.v1.ListSubscriptionsResponse.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.operator.v1.ListSubscriptionsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.ListSubscriptionsResponse.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.ListSubscriptionsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListSubscriptionsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - subscriptionsList: msg.getSubscriptionsList_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.operator.v1.ListSubscriptionsResponse} - */ -proto.dapr.proto.operator.v1.ListSubscriptionsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.ListSubscriptionsResponse; - return proto.dapr.proto.operator.v1.ListSubscriptionsResponse.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.ListSubscriptionsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.ListSubscriptionsResponse} - */ -proto.dapr.proto.operator.v1.ListSubscriptionsResponse.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.addSubscriptions(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.ListSubscriptionsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.ListSubscriptionsResponse.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.ListSubscriptionsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListSubscriptionsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubscriptionsList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 1, - f - ); - } -}; - - -/** - * repeated bytes subscriptions = 1; - * @return {!(Array|Array)} - */ -proto.dapr.proto.operator.v1.ListSubscriptionsResponse.prototype.getSubscriptionsList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * repeated bytes subscriptions = 1; - * This is a type-conversion wrapper around `getSubscriptionsList()` - * @return {!Array} - */ -proto.dapr.proto.operator.v1.ListSubscriptionsResponse.prototype.getSubscriptionsList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getSubscriptionsList())); -}; - - -/** - * repeated bytes subscriptions = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSubscriptionsList()` - * @return {!Array} - */ -proto.dapr.proto.operator.v1.ListSubscriptionsResponse.prototype.getSubscriptionsList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getSubscriptionsList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.dapr.proto.operator.v1.ListSubscriptionsResponse} returns this - */ -proto.dapr.proto.operator.v1.ListSubscriptionsResponse.prototype.setSubscriptionsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.operator.v1.ListSubscriptionsResponse} returns this - */ -proto.dapr.proto.operator.v1.ListSubscriptionsResponse.prototype.addSubscriptions = 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.operator.v1.ListSubscriptionsResponse} returns this - */ -proto.dapr.proto.operator.v1.ListSubscriptionsResponse.prototype.clearSubscriptionsList = function() { - return this.setSubscriptionsList([]); -}; - - - - - -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. - * 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.GetResiliencyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.GetResiliencyRequest.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.GetResiliencyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetResiliencyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - namespace: 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.GetResiliencyRequest} - */ -proto.dapr.proto.operator.v1.GetResiliencyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.GetResiliencyRequest; - return proto.dapr.proto.operator.v1.GetResiliencyRequest.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.GetResiliencyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.GetResiliencyRequest} - */ -proto.dapr.proto.operator.v1.GetResiliencyRequest.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.setNamespace(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.GetResiliencyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.GetResiliencyRequest.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.GetResiliencyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetResiliencyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getNamespace(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.operator.v1.GetResiliencyRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.GetResiliencyRequest} returns this - */ -proto.dapr.proto.operator.v1.GetResiliencyRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string namespace = 2; - * @return {string} - */ -proto.dapr.proto.operator.v1.GetResiliencyRequest.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.GetResiliencyRequest} returns this - */ -proto.dapr.proto.operator.v1.GetResiliencyRequest.prototype.setNamespace = 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.GetResiliencyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.GetResiliencyResponse.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.GetResiliencyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetResiliencyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - resiliency: msg.getResiliency_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.operator.v1.GetResiliencyResponse} - */ -proto.dapr.proto.operator.v1.GetResiliencyResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.GetResiliencyResponse; - return proto.dapr.proto.operator.v1.GetResiliencyResponse.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.GetResiliencyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.GetResiliencyResponse} - */ -proto.dapr.proto.operator.v1.GetResiliencyResponse.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.setResiliency(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.GetResiliencyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.GetResiliencyResponse.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.GetResiliencyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetResiliencyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResiliency_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes resiliency = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.operator.v1.GetResiliencyResponse.prototype.getResiliency = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes resiliency = 1; - * This is a type-conversion wrapper around `getResiliency()` - * @return {string} - */ -proto.dapr.proto.operator.v1.GetResiliencyResponse.prototype.getResiliency_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getResiliency())); -}; - - -/** - * optional bytes resiliency = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getResiliency()` - * @return {!Uint8Array} - */ -proto.dapr.proto.operator.v1.GetResiliencyResponse.prototype.getResiliency_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getResiliency())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.operator.v1.GetResiliencyResponse} returns this - */ -proto.dapr.proto.operator.v1.GetResiliencyResponse.prototype.setResiliency = 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.operator.v1.ListResiliencyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.ListResiliencyRequest.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.ListResiliencyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListResiliencyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - namespace: 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.operator.v1.ListResiliencyRequest} - */ -proto.dapr.proto.operator.v1.ListResiliencyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.ListResiliencyRequest; - return proto.dapr.proto.operator.v1.ListResiliencyRequest.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.ListResiliencyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.ListResiliencyRequest} - */ -proto.dapr.proto.operator.v1.ListResiliencyRequest.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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.operator.v1.ListResiliencyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.ListResiliencyRequest.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.ListResiliencyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListResiliencyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNamespace(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string namespace = 1; - * @return {string} - */ -proto.dapr.proto.operator.v1.ListResiliencyRequest.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.ListResiliencyRequest} returns this - */ -proto.dapr.proto.operator.v1.ListResiliencyRequest.prototype.setNamespace = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.operator.v1.ListResiliencyResponse.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.operator.v1.ListResiliencyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.ListResiliencyResponse.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.ListResiliencyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListResiliencyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - resilienciesList: msg.getResilienciesList_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.operator.v1.ListResiliencyResponse} - */ -proto.dapr.proto.operator.v1.ListResiliencyResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.ListResiliencyResponse; - return proto.dapr.proto.operator.v1.ListResiliencyResponse.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.ListResiliencyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.ListResiliencyResponse} - */ -proto.dapr.proto.operator.v1.ListResiliencyResponse.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.addResiliencies(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.ListResiliencyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.ListResiliencyResponse.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.ListResiliencyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListResiliencyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResilienciesList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 1, - f - ); - } -}; - - -/** - * repeated bytes resiliencies = 1; - * @return {!(Array|Array)} - */ -proto.dapr.proto.operator.v1.ListResiliencyResponse.prototype.getResilienciesList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * repeated bytes resiliencies = 1; - * This is a type-conversion wrapper around `getResilienciesList()` - * @return {!Array} - */ -proto.dapr.proto.operator.v1.ListResiliencyResponse.prototype.getResilienciesList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getResilienciesList())); -}; - - -/** - * repeated bytes resiliencies = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getResilienciesList()` - * @return {!Array} - */ -proto.dapr.proto.operator.v1.ListResiliencyResponse.prototype.getResilienciesList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getResilienciesList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.dapr.proto.operator.v1.ListResiliencyResponse} returns this - */ -proto.dapr.proto.operator.v1.ListResiliencyResponse.prototype.setResilienciesList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.operator.v1.ListResiliencyResponse} returns this - */ -proto.dapr.proto.operator.v1.ListResiliencyResponse.prototype.addResiliencies = 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.operator.v1.ListResiliencyResponse} returns this - */ -proto.dapr.proto.operator.v1.ListResiliencyResponse.prototype.clearResilienciesList = function() { - return this.setResilienciesList([]); -}; - - - - - -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.ListSubscriptionsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.ListSubscriptionsRequest.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.ListSubscriptionsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListSubscriptionsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - podname: jspb.Message.getFieldWithDefault(msg, 1, ""), - namespace: 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.ListSubscriptionsRequest} - */ -proto.dapr.proto.operator.v1.ListSubscriptionsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.ListSubscriptionsRequest; - return proto.dapr.proto.operator.v1.ListSubscriptionsRequest.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.ListSubscriptionsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.ListSubscriptionsRequest} - */ -proto.dapr.proto.operator.v1.ListSubscriptionsRequest.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.setPodname(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setNamespace(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.ListSubscriptionsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.ListSubscriptionsRequest.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.ListSubscriptionsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListSubscriptionsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPodname(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getNamespace(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string podName = 1; - * @return {string} - */ -proto.dapr.proto.operator.v1.ListSubscriptionsRequest.prototype.getPodname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.ListSubscriptionsRequest} returns this - */ -proto.dapr.proto.operator.v1.ListSubscriptionsRequest.prototype.setPodname = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string namespace = 2; - * @return {string} - */ -proto.dapr.proto.operator.v1.ListSubscriptionsRequest.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.ListSubscriptionsRequest} returns this - */ -proto.dapr.proto.operator.v1.ListSubscriptionsRequest.prototype.setNamespace = 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.GetHTTPEndpointRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.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.GetHTTPEndpointRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - namespace: 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.GetHTTPEndpointRequest} - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.GetHTTPEndpointRequest; - return proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.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.GetHTTPEndpointRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.GetHTTPEndpointRequest} - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.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.setNamespace(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.GetHTTPEndpointRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.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.GetHTTPEndpointRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getNamespace(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.GetHTTPEndpointRequest} returns this - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string namespace = 2; - * @return {string} - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.GetHTTPEndpointRequest} returns this - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointRequest.prototype.setNamespace = 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.GetHTTPEndpointResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.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.GetHTTPEndpointResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.toObject = function(includeInstance, msg) { - var f, obj = { - httpEndpoint: msg.getHttpEndpoint_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.operator.v1.GetHTTPEndpointResponse} - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.GetHTTPEndpointResponse; - return proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.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.GetHTTPEndpointResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.GetHTTPEndpointResponse} - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.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.setHttpEndpoint(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.GetHTTPEndpointResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.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.GetHTTPEndpointResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHttpEndpoint_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes http_endpoint = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.prototype.getHttpEndpoint = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes http_endpoint = 1; - * This is a type-conversion wrapper around `getHttpEndpoint()` - * @return {string} - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.prototype.getHttpEndpoint_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getHttpEndpoint())); -}; - - -/** - * optional bytes http_endpoint = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getHttpEndpoint()` - * @return {!Uint8Array} - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.prototype.getHttpEndpoint_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getHttpEndpoint())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.operator.v1.GetHTTPEndpointResponse} returns this - */ -proto.dapr.proto.operator.v1.GetHTTPEndpointResponse.prototype.setHttpEndpoint = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.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.operator.v1.ListHTTPEndpointsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.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.ListHTTPEndpointsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - httpEndpointsList: msg.getHttpEndpointsList_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.operator.v1.ListHTTPEndpointsResponse} - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse; - return proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.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.ListHTTPEndpointsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse} - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.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.addHttpEndpoints(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.ListHTTPEndpointsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.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.ListHTTPEndpointsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHttpEndpointsList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 1, - f - ); - } -}; - - -/** - * repeated bytes http_endpoints = 1; - * @return {!(Array|Array)} - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.prototype.getHttpEndpointsList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * repeated bytes http_endpoints = 1; - * This is a type-conversion wrapper around `getHttpEndpointsList()` - * @return {!Array} - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.prototype.getHttpEndpointsList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getHttpEndpointsList())); -}; - - -/** - * repeated bytes http_endpoints = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getHttpEndpointsList()` - * @return {!Array} - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.prototype.getHttpEndpointsList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getHttpEndpointsList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse} returns this - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.prototype.setHttpEndpointsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse} returns this - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.prototype.addHttpEndpoints = 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.operator.v1.ListHTTPEndpointsResponse} returns this - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsResponse.prototype.clearHttpEndpointsList = function() { - return this.setHttpEndpointsList([]); -}; - - - - - -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.ListHTTPEndpointsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest.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.ListHTTPEndpointsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - namespace: 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.operator.v1.ListHTTPEndpointsRequest} - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest; - return proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest.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.ListHTTPEndpointsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest} - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest.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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest.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.ListHTTPEndpointsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNamespace(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string namespace = 1; - * @return {string} - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest} returns this - */ -proto.dapr.proto.operator.v1.ListHTTPEndpointsRequest.prototype.setNamespace = 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.operator.v1.HTTPEndpointUpdateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest.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.HTTPEndpointUpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest.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.HTTPEndpointUpdateRequest} - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest; - return proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest.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.HTTPEndpointUpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest} - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest.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.HTTPEndpointUpdateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest.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.HTTPEndpointUpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest.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.HTTPEndpointUpdateRequest.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest} returns this - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest.prototype.setNamespace = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string pod_name = 2; - * @return {string} - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest.prototype.getPodName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest} returns this - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateRequest.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.HTTPEndpointUpdateEvent.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.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.HTTPEndpointUpdateEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.toObject = function(includeInstance, msg) { - var f, obj = { - httpEndpoints: msg.getHttpEndpoints_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.operator.v1.HTTPEndpointUpdateEvent} - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent; - return proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.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.HTTPEndpointUpdateEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent} - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.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.setHttpEndpoints(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.HTTPEndpointUpdateEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.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.HTTPEndpointUpdateEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHttpEndpoints_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes http_endpoints = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.prototype.getHttpEndpoints = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes http_endpoints = 1; - * This is a type-conversion wrapper around `getHttpEndpoints()` - * @return {string} - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.prototype.getHttpEndpoints_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getHttpEndpoints())); -}; - - -/** - * optional bytes http_endpoints = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getHttpEndpoints()` - * @return {!Uint8Array} - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.prototype.getHttpEndpoints_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getHttpEndpoints())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent} returns this - */ -proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.prototype.setHttpEndpoints = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * @enum {number} - */ -proto.dapr.proto.operator.v1.ResourceEventType = { - UNKNOWN: 0, - CREATED: 1, - UPDATED: 2, - DELETED: 3 -}; - -goog.object.extend(exports, proto.dapr.proto.operator.v1); diff --git a/src/proto/dapr/proto/placement/v1/placement.proto b/src/proto/dapr/proto/placement/v1/placement.proto deleted file mode 100644 index 605d92bb..00000000 --- a/src/proto/dapr/proto/placement/v1/placement.proto +++ /dev/null @@ -1,56 +0,0 @@ -/* -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. -*/ - -syntax = "proto3"; - -package dapr.proto.placement.v1; - -option go_package = "github.com/dapr/dapr/pkg/proto/placement/v1;placement"; - -// Placement service is used to report Dapr runtime host status. -service Placement { - // Reports Dapr actor status and retrieves actor placement table. - rpc ReportDaprStatus(stream Host) returns (stream PlacementOrder) {} -} - -message PlacementOrder { - PlacementTables tables = 1; - string operation = 2; -} - -message PlacementTables { - map entries = 1; - string version = 2; - // Minimum observed version of the Actor APIs supported by connected runtimes - uint32 api_level = 3; - int64 replication_factor = 4; -} - -message PlacementTable { - map hosts = 1; - repeated uint64 sorted_set = 2; - map load_map = 3; - int64 total_load = 4; -} - -message Host { - string name = 1; - int64 port = 2; - int64 load = 3; - repeated string entities = 4; - string id = 5; - 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_grpc_pb.d.ts b/src/proto/dapr/proto/placement/v1/placement_grpc_pb.d.ts deleted file mode 100644 index 20a5dde6..00000000 --- a/src/proto/dapr/proto/placement/v1/placement_grpc_pb.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -// package: dapr.proto.placement.v1 -// file: dapr/proto/placement/v1/placement.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as dapr_proto_placement_v1_placement_pb from "../../../../dapr/proto/placement/v1/placement_pb"; - -interface IPlacementService extends grpc.ServiceDefinition { - reportDaprStatus: IPlacementService_IReportDaprStatus; -} - -interface IPlacementService_IReportDaprStatus extends grpc.MethodDefinition { - path: "/dapr.proto.placement.v1.Placement/ReportDaprStatus"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const PlacementService: IPlacementService; - -export interface IPlacementServer extends grpc.UntypedServiceImplementation { - reportDaprStatus: grpc.handleBidiStreamingCall; -} - -export interface IPlacementClient { - reportDaprStatus(): grpc.ClientDuplexStream; - reportDaprStatus(options: Partial): grpc.ClientDuplexStream; - reportDaprStatus(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; -} - -export class PlacementClient extends grpc.Client implements IPlacementClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public reportDaprStatus(options?: Partial): grpc.ClientDuplexStream; - public reportDaprStatus(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; -} diff --git a/src/proto/dapr/proto/placement/v1/placement_grpc_pb.js b/src/proto/dapr/proto/placement/v1/placement_grpc_pb.js deleted file mode 100644 index 3bc7ac5d..00000000 --- a/src/proto/dapr/proto/placement/v1/placement_grpc_pb.js +++ /dev/null @@ -1,59 +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_placement_v1_placement_pb = require('../../../../dapr/proto/placement/v1/placement_pb.js'); - -function serialize_dapr_proto_placement_v1_Host(arg) { - if (!(arg instanceof dapr_proto_placement_v1_placement_pb.Host)) { - throw new Error('Expected argument of type dapr.proto.placement.v1.Host'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_placement_v1_Host(buffer_arg) { - return dapr_proto_placement_v1_placement_pb.Host.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_placement_v1_PlacementOrder(arg) { - if (!(arg instanceof dapr_proto_placement_v1_placement_pb.PlacementOrder)) { - throw new Error('Expected argument of type dapr.proto.placement.v1.PlacementOrder'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_placement_v1_PlacementOrder(buffer_arg) { - return dapr_proto_placement_v1_placement_pb.PlacementOrder.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// Placement service is used to report Dapr runtime host status. -var PlacementService = exports.PlacementService = { - // Reports Dapr actor status and retrieves actor placement table. -reportDaprStatus: { - path: '/dapr.proto.placement.v1.Placement/ReportDaprStatus', - requestStream: true, - responseStream: true, - requestType: dapr_proto_placement_v1_placement_pb.Host, - responseType: dapr_proto_placement_v1_placement_pb.PlacementOrder, - requestSerialize: serialize_dapr_proto_placement_v1_Host, - requestDeserialize: deserialize_dapr_proto_placement_v1_Host, - responseSerialize: serialize_dapr_proto_placement_v1_PlacementOrder, - responseDeserialize: deserialize_dapr_proto_placement_v1_PlacementOrder, - }, -}; - -exports.PlacementClient = grpc.makeGenericClientConstructor(PlacementService); diff --git a/src/proto/dapr/proto/placement/v1/placement_pb.d.ts b/src/proto/dapr/proto/placement/v1/placement_pb.d.ts deleted file mode 100644 index b3db081e..00000000 --- a/src/proto/dapr/proto/placement/v1/placement_pb.d.ts +++ /dev/null @@ -1,142 +0,0 @@ -// package: dapr.proto.placement.v1 -// file: dapr/proto/placement/v1/placement.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class PlacementOrder extends jspb.Message { - - hasTables(): boolean; - clearTables(): void; - getTables(): PlacementTables | undefined; - setTables(value?: PlacementTables): PlacementOrder; - getOperation(): string; - setOperation(value: string): PlacementOrder; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlacementOrder.AsObject; - static toObject(includeInstance: boolean, msg: PlacementOrder): PlacementOrder.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlacementOrder, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlacementOrder; - static deserializeBinaryFromReader(message: PlacementOrder, reader: jspb.BinaryReader): PlacementOrder; -} - -export namespace PlacementOrder { - export type AsObject = { - tables?: PlacementTables.AsObject, - operation: string, - } -} - -export class PlacementTables extends jspb.Message { - - getEntriesMap(): jspb.Map; - clearEntriesMap(): void; - getVersion(): string; - setVersion(value: string): PlacementTables; - getApiLevel(): number; - setApiLevel(value: number): PlacementTables; - getReplicationFactor(): number; - setReplicationFactor(value: number): PlacementTables; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlacementTables.AsObject; - static toObject(includeInstance: boolean, msg: PlacementTables): PlacementTables.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlacementTables, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlacementTables; - static deserializeBinaryFromReader(message: PlacementTables, reader: jspb.BinaryReader): PlacementTables; -} - -export namespace PlacementTables { - export type AsObject = { - - entriesMap: Array<[string, PlacementTable.AsObject]>, - version: string, - apiLevel: number, - replicationFactor: number, - } -} - -export class PlacementTable extends jspb.Message { - - getHostsMap(): jspb.Map; - clearHostsMap(): void; - clearSortedSetList(): void; - getSortedSetList(): Array; - setSortedSetList(value: Array): PlacementTable; - addSortedSet(value: number, index?: number): number; - - getLoadMapMap(): jspb.Map; - clearLoadMapMap(): void; - getTotalLoad(): number; - setTotalLoad(value: number): PlacementTable; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlacementTable.AsObject; - static toObject(includeInstance: boolean, msg: PlacementTable): PlacementTable.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlacementTable, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlacementTable; - static deserializeBinaryFromReader(message: PlacementTable, reader: jspb.BinaryReader): PlacementTable; -} - -export namespace PlacementTable { - export type AsObject = { - - hostsMap: Array<[number, string]>, - sortedSetList: Array, - - loadMapMap: Array<[string, Host.AsObject]>, - totalLoad: number, - } -} - -export class Host extends jspb.Message { - getName(): string; - setName(value: string): Host; - getPort(): number; - setPort(value: number): Host; - getLoad(): number; - setLoad(value: number): Host; - clearEntitiesList(): void; - getEntitiesList(): Array; - setEntitiesList(value: Array): Host; - addEntities(value: string, index?: number): string; - getId(): string; - setId(value: string): Host; - getPod(): string; - setPod(value: string): Host; - getApiLevel(): number; - setApiLevel(value: number): Host; - getNamespace(): string; - setNamespace(value: string): Host; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Host.AsObject; - static toObject(includeInstance: boolean, msg: Host): Host.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Host, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Host; - static deserializeBinaryFromReader(message: Host, reader: jspb.BinaryReader): Host; -} - -export namespace Host { - export type AsObject = { - name: string, - port: number, - load: number, - entitiesList: Array, - 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 deleted file mode 100644 index f234416f..00000000 --- a/src/proto/dapr/proto/placement/v1/placement_pb.js +++ /dev/null @@ -1,1139 +0,0 @@ -// source: dapr/proto/placement/v1/placement.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 = - (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); -goog.exportSymbol('proto.dapr.proto.placement.v1.PlacementTable', null, global); -goog.exportSymbol('proto.dapr.proto.placement.v1.PlacementTables', 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.placement.v1.PlacementOrder = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.placement.v1.PlacementOrder, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.placement.v1.PlacementOrder.displayName = 'proto.dapr.proto.placement.v1.PlacementOrder'; -} -/** - * 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.placement.v1.PlacementTables = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.placement.v1.PlacementTables, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.placement.v1.PlacementTables.displayName = 'proto.dapr.proto.placement.v1.PlacementTables'; -} -/** - * 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.placement.v1.PlacementTable = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.placement.v1.PlacementTable.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.placement.v1.PlacementTable, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.placement.v1.PlacementTable.displayName = 'proto.dapr.proto.placement.v1.PlacementTable'; -} -/** - * 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.placement.v1.Host = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.placement.v1.Host.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.placement.v1.Host, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.placement.v1.Host.displayName = 'proto.dapr.proto.placement.v1.Host'; -} - - - -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.placement.v1.PlacementOrder.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.placement.v1.PlacementOrder.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.placement.v1.PlacementOrder} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.placement.v1.PlacementOrder.toObject = function(includeInstance, msg) { - var f, obj = { - tables: (f = msg.getTables()) && proto.dapr.proto.placement.v1.PlacementTables.toObject(includeInstance, f), - operation: 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.placement.v1.PlacementOrder} - */ -proto.dapr.proto.placement.v1.PlacementOrder.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.placement.v1.PlacementOrder; - return proto.dapr.proto.placement.v1.PlacementOrder.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.placement.v1.PlacementOrder} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.placement.v1.PlacementOrder} - */ -proto.dapr.proto.placement.v1.PlacementOrder.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.placement.v1.PlacementTables; - reader.readMessage(value,proto.dapr.proto.placement.v1.PlacementTables.deserializeBinaryFromReader); - msg.setTables(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setOperation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.placement.v1.PlacementOrder.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.placement.v1.PlacementOrder.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.placement.v1.PlacementOrder} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.placement.v1.PlacementOrder.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTables(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.placement.v1.PlacementTables.serializeBinaryToWriter - ); - } - f = message.getOperation(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional PlacementTables tables = 1; - * @return {?proto.dapr.proto.placement.v1.PlacementTables} - */ -proto.dapr.proto.placement.v1.PlacementOrder.prototype.getTables = function() { - return /** @type{?proto.dapr.proto.placement.v1.PlacementTables} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.placement.v1.PlacementTables, 1)); -}; - - -/** - * @param {?proto.dapr.proto.placement.v1.PlacementTables|undefined} value - * @return {!proto.dapr.proto.placement.v1.PlacementOrder} returns this -*/ -proto.dapr.proto.placement.v1.PlacementOrder.prototype.setTables = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.placement.v1.PlacementOrder} returns this - */ -proto.dapr.proto.placement.v1.PlacementOrder.prototype.clearTables = function() { - return this.setTables(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.placement.v1.PlacementOrder.prototype.hasTables = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string operation = 2; - * @return {string} - */ -proto.dapr.proto.placement.v1.PlacementOrder.prototype.getOperation = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.placement.v1.PlacementOrder} returns this - */ -proto.dapr.proto.placement.v1.PlacementOrder.prototype.setOperation = 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.placement.v1.PlacementTables.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.placement.v1.PlacementTables.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.placement.v1.PlacementTables} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.placement.v1.PlacementTables.toObject = function(includeInstance, msg) { - var f, obj = { - entriesMap: (f = msg.getEntriesMap()) ? f.toObject(includeInstance, proto.dapr.proto.placement.v1.PlacementTable.toObject) : [], - version: jspb.Message.getFieldWithDefault(msg, 2, ""), - apiLevel: jspb.Message.getFieldWithDefault(msg, 3, 0), - replicationFactor: 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.placement.v1.PlacementTables} - */ -proto.dapr.proto.placement.v1.PlacementTables.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.placement.v1.PlacementTables; - return proto.dapr.proto.placement.v1.PlacementTables.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.placement.v1.PlacementTables} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.placement.v1.PlacementTables} - */ -proto.dapr.proto.placement.v1.PlacementTables.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = msg.getEntriesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.placement.v1.PlacementTable.deserializeBinaryFromReader, "", new proto.dapr.proto.placement.v1.PlacementTable()); - }); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setApiLevel(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setReplicationFactor(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.placement.v1.PlacementTables.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.placement.v1.PlacementTables.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.placement.v1.PlacementTables} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.placement.v1.PlacementTables.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEntriesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.placement.v1.PlacementTable.serializeBinaryToWriter); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getApiLevel(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getReplicationFactor(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } -}; - - -/** - * map entries = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.placement.v1.PlacementTables.prototype.getEntriesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - proto.dapr.proto.placement.v1.PlacementTable)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.placement.v1.PlacementTables} returns this - */ -proto.dapr.proto.placement.v1.PlacementTables.prototype.clearEntriesMap = function() { - this.getEntriesMap().clear(); - return this; -}; - - -/** - * optional string version = 2; - * @return {string} - */ -proto.dapr.proto.placement.v1.PlacementTables.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.placement.v1.PlacementTables} returns this - */ -proto.dapr.proto.placement.v1.PlacementTables.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 api_level = 3; - * @return {number} - */ -proto.dapr.proto.placement.v1.PlacementTables.prototype.getApiLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.placement.v1.PlacementTables} returns this - */ -proto.dapr.proto.placement.v1.PlacementTables.prototype.setApiLevel = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int64 replication_factor = 4; - * @return {number} - */ -proto.dapr.proto.placement.v1.PlacementTables.prototype.getReplicationFactor = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.placement.v1.PlacementTables} returns this - */ -proto.dapr.proto.placement.v1.PlacementTables.prototype.setReplicationFactor = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.placement.v1.PlacementTable.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.placement.v1.PlacementTable.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.placement.v1.PlacementTable.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.placement.v1.PlacementTable} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.placement.v1.PlacementTable.toObject = function(includeInstance, msg) { - var f, obj = { - hostsMap: (f = msg.getHostsMap()) ? f.toObject(includeInstance, undefined) : [], - sortedSetList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - loadMapMap: (f = msg.getLoadMapMap()) ? f.toObject(includeInstance, proto.dapr.proto.placement.v1.Host.toObject) : [], - totalLoad: 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.placement.v1.PlacementTable} - */ -proto.dapr.proto.placement.v1.PlacementTable.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.placement.v1.PlacementTable; - return proto.dapr.proto.placement.v1.PlacementTable.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.placement.v1.PlacementTable} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.placement.v1.PlacementTable} - */ -proto.dapr.proto.placement.v1.PlacementTable.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = msg.getHostsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readString, null, 0, ""); - }); - break; - case 2: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]); - for (var i = 0; i < values.length; i++) { - msg.addSortedSet(values[i]); - } - break; - case 3: - var value = msg.getLoadMapMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.placement.v1.Host.deserializeBinaryFromReader, "", new proto.dapr.proto.placement.v1.Host()); - }); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTotalLoad(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.placement.v1.PlacementTable.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.placement.v1.PlacementTable.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.placement.v1.PlacementTable} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.placement.v1.PlacementTable.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHostsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeString); - } - f = message.getSortedSetList(); - if (f.length > 0) { - writer.writePackedUint64( - 2, - f - ); - } - f = message.getLoadMapMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.placement.v1.Host.serializeBinaryToWriter); - } - f = message.getTotalLoad(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } -}; - - -/** - * map hosts = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.placement.v1.PlacementTable.prototype.getHostsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.placement.v1.PlacementTable} returns this - */ -proto.dapr.proto.placement.v1.PlacementTable.prototype.clearHostsMap = function() { - this.getHostsMap().clear(); - return this; -}; - - -/** - * repeated uint64 sorted_set = 2; - * @return {!Array} - */ -proto.dapr.proto.placement.v1.PlacementTable.prototype.getSortedSetList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.placement.v1.PlacementTable} returns this - */ -proto.dapr.proto.placement.v1.PlacementTable.prototype.setSortedSetList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.placement.v1.PlacementTable} returns this - */ -proto.dapr.proto.placement.v1.PlacementTable.prototype.addSortedSet = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.placement.v1.PlacementTable} returns this - */ -proto.dapr.proto.placement.v1.PlacementTable.prototype.clearSortedSetList = function() { - return this.setSortedSetList([]); -}; - - -/** - * map load_map = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.placement.v1.PlacementTable.prototype.getLoadMapMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - proto.dapr.proto.placement.v1.Host)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.placement.v1.PlacementTable} returns this - */ -proto.dapr.proto.placement.v1.PlacementTable.prototype.clearLoadMapMap = function() { - this.getLoadMapMap().clear(); - return this; -}; - - -/** - * optional int64 total_load = 4; - * @return {number} - */ -proto.dapr.proto.placement.v1.PlacementTable.prototype.getTotalLoad = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.placement.v1.PlacementTable} returns this - */ -proto.dapr.proto.placement.v1.PlacementTable.prototype.setTotalLoad = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.placement.v1.Host.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.placement.v1.Host.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.placement.v1.Host.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.placement.v1.Host} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.placement.v1.Host.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - port: jspb.Message.getFieldWithDefault(msg, 2, 0), - load: jspb.Message.getFieldWithDefault(msg, 3, 0), - 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), - namespace: jspb.Message.getFieldWithDefault(msg, 8, "") - }; - - 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.placement.v1.Host} - */ -proto.dapr.proto.placement.v1.Host.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.placement.v1.Host; - return proto.dapr.proto.placement.v1.Host.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.placement.v1.Host} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.placement.v1.Host} - */ -proto.dapr.proto.placement.v1.Host.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 {number} */ (reader.readInt64()); - msg.setPort(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLoad(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addEntities(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setPod(value); - break; - case 7: - 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; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.placement.v1.Host.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.placement.v1.Host.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.placement.v1.Host} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.placement.v1.Host.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getLoad(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getEntitiesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getPod(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getApiLevel(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getNamespace(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.placement.v1.Host.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 port = 2; - * @return {number} - */ -proto.dapr.proto.placement.v1.Host.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int64 load = 3; - * @return {number} - */ -proto.dapr.proto.placement.v1.Host.prototype.getLoad = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.setLoad = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated string entities = 4; - * @return {!Array} - */ -proto.dapr.proto.placement.v1.Host.prototype.getEntitiesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.setEntitiesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.addEntities = 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.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.clearEntitiesList = function() { - return this.setEntitiesList([]); -}; - - -/** - * optional string id = 5; - * @return {string} - */ -proto.dapr.proto.placement.v1.Host.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string pod = 6; - * @return {string} - */ -proto.dapr.proto.placement.v1.Host.prototype.getPod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.setPod = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint32 api_level = 7; - * @return {number} - */ -proto.dapr.proto.placement.v1.Host.prototype.getApiLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.setApiLevel = function(value) { - return jspb.Message.setProto3IntField(this, 7, 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 deleted file mode 100644 index 3e98b536..00000000 --- a/src/proto/dapr/proto/runtime/v1/appcallback.proto +++ /dev/null @@ -1,343 +0,0 @@ -/* -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. -*/ - -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"; - -option csharp_namespace = "Dapr.AppCallback.Autogen.Grpc.v1"; -option java_outer_classname = "DaprAppCallbackProtos"; -option java_package = "io.dapr.v1"; -option go_package = "github.com/dapr/dapr/pkg/proto/runtime/v1;runtime"; - -// AppCallback V1 allows user application to interact with Dapr runtime. -// User application needs to implement AppCallback service if it needs to -// receive message from dapr runtime. -service AppCallback { - // Invokes service method with InvokeRequest. - rpc OnInvoke (common.v1.InvokeRequest) returns (common.v1.InvokeResponse) {} - - // Lists all topics subscribed by this app. - rpc ListTopicSubscriptions(google.protobuf.Empty) returns (ListTopicSubscriptionsResponse) {} - - // Subscribes events from Pubsub - rpc OnTopicEvent(TopicEventRequest) returns (TopicEventResponse) {} - - // Lists all input bindings subscribed by this app. - rpc ListInputBindings(google.protobuf.Empty) returns (ListInputBindingsResponse) {} - - // Listens events from the input bindings - // - // User application can save the states or send the events to the output - // bindings optionally by returning BindingEventResponse. - rpc OnBindingEvent(BindingEventRequest) returns (BindingEventResponse) {} -} - -// AppCallbackHealthCheck V1 is an optional extension to AppCallback V1 to implement -// the HealthCheck method. -service AppCallbackHealthCheck { - // Health check. - rpc HealthCheck(google.protobuf.Empty) returns (HealthCheckResponse) {} -} - -// AppCallbackAlpha V1 is an optional extension to AppCallback V1 to opt -// for Alpha RPCs. -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 { - // id identifies the event. Producers MUST ensure that source + id - // is unique for each distinct event. If a duplicate event is re-sent - // (e.g. due to a network error) it MAY have the same id. - string id = 1; - - // source identifies the context in which an event happened. - // Often this will include information such as the type of the - // event source, the organization publishing the event or the process - // that produced the event. The exact syntax and semantics behind - // the data encoded in the URI is defined by the event producer. - string source = 2; - - // The type of event related to the originating occurrence. - string type = 3; - - // The version of the CloudEvents specification. - string spec_version = 4; - - // The content type of data value. - string data_content_type = 5; - - // The content of the event. - bytes data = 7; - - // The pubsub topic which publisher sent to. - string topic = 6; - - // The name of the pubsub the publisher sent to. - string pubsub_name = 8; - - // The matching path from TopicSubscription/routes (if specified) for this event. - // This value is used by OnTopicEvent to "switch" inside the handler. - string path = 9; - - // The map of additional custom properties to be sent to the app. These are considered to be cloud event extensions. - google.protobuf.Struct extensions = 10; -} - -// TopicEventResponse is response from app on published message -message TopicEventResponse { - // TopicEventResponseStatus allows apps to have finer control over handling of the message. - enum TopicEventResponseStatus { - // SUCCESS is the default behavior: message is acknowledged and not retried or logged. - SUCCESS = 0; - // RETRY status signals Dapr to retry the message as part of an expected scenario (no warning is logged). - RETRY = 1; - // DROP status signals Dapr to drop the message as part of an unexpected scenario (warning is logged). - DROP = 2; - } - - // The list of output bindings. - TopicEventResponseStatus status = 1; -} - -// TopicEventCERequest message is compatible with CloudEvent spec v1.0 -message TopicEventCERequest { - // The unique identifier of this cloud event. - string id = 1; - - // source identifies the context in which an event happened. - string source = 2; - - // The type of event related to the originating occurrence. - string type = 3; - - // The version of the CloudEvents specification. - string spec_version = 4; - - // The content type of data value. - string data_content_type = 5; - - // The content of the event. - bytes data = 6; - - // Custom attributes which includes cloud event extensions. - google.protobuf.Struct extensions = 7; -} - -// TopicEventBulkRequestEntry represents a single message inside a bulk request -message TopicEventBulkRequestEntry { - // Unique identifier for the message. - string entry_id = 1; - - // The content of the event. - oneof event { - bytes bytes = 2; - TopicEventCERequest cloud_event = 3; - } - - // content type of the event contained. - string content_type = 4; - - // The metadata associated with the event. - map metadata = 5; -} - -// TopicEventBulkRequest represents request for bulk message -message TopicEventBulkRequest { - // Unique identifier for the bulk request. - string id = 1; - - // The list of items inside this bulk request. - repeated TopicEventBulkRequestEntry entries = 2; - - // The metadata associated with the this bulk request. - map metadata = 3; - - // The pubsub topic which publisher sent to. - string topic = 4; - - // The name of the pubsub the publisher sent to. - string pubsub_name = 5; - - // The type of event related to the originating occurrence. - string type = 6; - - // The matching path from TopicSubscription/routes (if specified) for this event. - // This value is used by OnTopicEvent to "switch" inside the handler. - string path = 7; -} - -// TopicEventBulkResponseEntry Represents single response, as part of TopicEventBulkResponse, to be -// sent by subscibed App for the corresponding single message during bulk subscribe -message TopicEventBulkResponseEntry { - // Unique identifier associated the message. - string entry_id = 1; - - // The status of the response. - TopicEventResponse.TopicEventResponseStatus status = 2; -} - -// AppBulkResponse is response from app on published message -message TopicEventBulkResponse { - - // The list of all responses for the bulk request. - repeated TopicEventBulkResponseEntry statuses = 1; -} - -// BindingEventRequest represents input bindings event. -message BindingEventRequest { - // Required. The name of the input binding component. - string name = 1; - - // Required. The payload that the input bindings sent - bytes data = 2; - - // The metadata set by the input binging components. - map metadata = 3; -} - -// BindingEventResponse includes operations to save state or -// send data to output bindings optionally. -message BindingEventResponse { - // The name of state store where states are saved. - string store_name = 1; - - // The state key values which will be stored in store_name. - repeated common.v1.StateItem states = 2; - - // BindingEventConcurrency is the kind of concurrency - enum BindingEventConcurrency { - // SEQUENTIAL sends data to output bindings specified in "to" sequentially. - SEQUENTIAL = 0; - // PARALLEL sends data to output bindings specified in "to" in parallel. - PARALLEL = 1; - } - - // The list of output bindings. - repeated string to = 3; - - // The content which will be sent to "to" output bindings. - bytes data = 4; - - // The concurrency of output bindings to send data to - // "to" output bindings list. The default is SEQUENTIAL. - BindingEventConcurrency concurrency = 5; -} - -// ListTopicSubscriptionsResponse is the message including the list of the subscribing topics. -message ListTopicSubscriptionsResponse { - // The list of topics. - repeated TopicSubscription subscriptions = 1; -} - -// TopicSubscription represents topic and metadata. -message TopicSubscription { - // Required. The name of the pubsub containing the topic below to subscribe to. - string pubsub_name = 1; - - // Required. The name of topic which will be subscribed - string topic = 2; - - // The optional properties used for this topic's subscription e.g. session id - map metadata = 3; - - // The optional routing rules to match against. In the gRPC interface, OnTopicEvent - // is still invoked but the matching path is sent in the TopicEventRequest. - TopicRoutes routes = 5; - - // The optional dead letter queue for this topic to send events to. - string dead_letter_topic = 6; - - // The optional bulk subscribe settings for this topic. - BulkSubscribeConfig bulk_subscribe = 7; -} - -message TopicRoutes { - // The list of rules for this topic. - repeated TopicRule rules = 1; - - // The default path for this topic. - string default = 2; -} - -message TopicRule { - // The optional CEL expression used to match the event. - // If the match is not specified, then the route is considered - // the default. - string match = 1; - - // The path used to identify matches for this subscription. - // This value is passed in TopicEventRequest and used by OnTopicEvent to "switch" - // inside the handler. - string path = 2; -} - -// BulkSubscribeConfig is the message to pass settings for bulk subscribe -message BulkSubscribeConfig { - // Required. Flag to enable/disable bulk subscribe - bool enabled = 1; - - // Optional. Max number of messages to be sent in a single bulk request - int32 max_messages_count = 2; - - // Optional. Max duration to wait for messages to be sent in a single bulk request - int32 max_await_duration_ms = 3; -} - -// ListInputBindingsResponse is the message including the list of input bindings. -message ListInputBindingsResponse { - // The list of input bindings. - repeated string bindings = 1; -} - -// HealthCheckResponse is the message with the response to the health check. -// This message is currently empty as used as placeholder. -message HealthCheckResponse {} diff --git a/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.d.ts b/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.d.ts deleted file mode 100644 index b2a88812..00000000 --- a/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.d.ts +++ /dev/null @@ -1,196 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/appcallback.proto - -/* tslint:disable */ -/* eslint-disable */ - -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"; - -interface IAppCallbackService extends grpc.ServiceDefinition { - onInvoke: IAppCallbackService_IOnInvoke; - listTopicSubscriptions: IAppCallbackService_IListTopicSubscriptions; - onTopicEvent: IAppCallbackService_IOnTopicEvent; - listInputBindings: IAppCallbackService_IListInputBindings; - onBindingEvent: IAppCallbackService_IOnBindingEvent; -} - -interface IAppCallbackService_IOnInvoke extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.AppCallback/OnInvoke"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAppCallbackService_IListTopicSubscriptions extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.AppCallback/ListTopicSubscriptions"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAppCallbackService_IOnTopicEvent extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.AppCallback/OnTopicEvent"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAppCallbackService_IListInputBindings extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.AppCallback/ListInputBindings"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IAppCallbackService_IOnBindingEvent extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.AppCallback/OnBindingEvent"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const AppCallbackService: IAppCallbackService; - -export interface IAppCallbackServer extends grpc.UntypedServiceImplementation { - onInvoke: grpc.handleUnaryCall; - listTopicSubscriptions: grpc.handleUnaryCall; - onTopicEvent: grpc.handleUnaryCall; - listInputBindings: grpc.handleUnaryCall; - onBindingEvent: grpc.handleUnaryCall; -} - -export interface IAppCallbackClient { - onInvoke(request: dapr_proto_common_v1_common_pb.InvokeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - onInvoke(request: dapr_proto_common_v1_common_pb.InvokeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - onInvoke(request: dapr_proto_common_v1_common_pb.InvokeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - listTopicSubscriptions(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse) => void): grpc.ClientUnaryCall; - listTopicSubscriptions(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse) => void): grpc.ClientUnaryCall; - listTopicSubscriptions(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse) => void): grpc.ClientUnaryCall; - onTopicEvent(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse) => void): grpc.ClientUnaryCall; - onTopicEvent(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse) => void): grpc.ClientUnaryCall; - onTopicEvent(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse) => void): grpc.ClientUnaryCall; - listInputBindings(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse) => void): grpc.ClientUnaryCall; - listInputBindings(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse) => void): grpc.ClientUnaryCall; - listInputBindings(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse) => void): grpc.ClientUnaryCall; - onBindingEvent(request: dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.BindingEventResponse) => void): grpc.ClientUnaryCall; - onBindingEvent(request: dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.BindingEventResponse) => void): grpc.ClientUnaryCall; - onBindingEvent(request: dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.BindingEventResponse) => void): grpc.ClientUnaryCall; -} - -export class AppCallbackClient extends grpc.Client implements IAppCallbackClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public onInvoke(request: dapr_proto_common_v1_common_pb.InvokeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - public onInvoke(request: dapr_proto_common_v1_common_pb.InvokeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - public onInvoke(request: dapr_proto_common_v1_common_pb.InvokeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - public listTopicSubscriptions(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse) => void): grpc.ClientUnaryCall; - public listTopicSubscriptions(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse) => void): grpc.ClientUnaryCall; - public listTopicSubscriptions(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse) => void): grpc.ClientUnaryCall; - public onTopicEvent(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse) => void): grpc.ClientUnaryCall; - public onTopicEvent(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse) => void): grpc.ClientUnaryCall; - public onTopicEvent(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse) => void): grpc.ClientUnaryCall; - public listInputBindings(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse) => void): grpc.ClientUnaryCall; - public listInputBindings(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse) => void): grpc.ClientUnaryCall; - public listInputBindings(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse) => void): grpc.ClientUnaryCall; - public onBindingEvent(request: dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.BindingEventResponse) => void): grpc.ClientUnaryCall; - public onBindingEvent(request: dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.BindingEventResponse) => void): grpc.ClientUnaryCall; - public onBindingEvent(request: dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.BindingEventResponse) => void): grpc.ClientUnaryCall; -} - -interface IAppCallbackHealthCheckService extends grpc.ServiceDefinition { - healthCheck: IAppCallbackHealthCheckService_IHealthCheck; -} - -interface IAppCallbackHealthCheckService_IHealthCheck extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.AppCallbackHealthCheck/HealthCheck"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const AppCallbackHealthCheckService: IAppCallbackHealthCheckService; - -export interface IAppCallbackHealthCheckServer extends grpc.UntypedServiceImplementation { - healthCheck: grpc.handleUnaryCall; -} - -export interface IAppCallbackHealthCheckClient { - healthCheck(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall; - healthCheck(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall; - healthCheck(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall; -} - -export class AppCallbackHealthCheckClient extends grpc.Client implements IAppCallbackHealthCheckClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public healthCheck(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall; - public healthCheck(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall; - public healthCheck(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall; -} - -interface IAppCallbackAlphaService extends grpc.ServiceDefinition { - onBulkTopicEventAlpha1: IAppCallbackAlphaService_IOnBulkTopicEventAlpha1; - onJobEventAlpha1: IAppCallbackAlphaService_IOnJobEventAlpha1; -} - -interface IAppCallbackAlphaService_IOnBulkTopicEventAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.AppCallbackAlpha/OnBulkTopicEventAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - 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 { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - 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 deleted file mode 100644 index 4b5633c5..00000000 --- a/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.js +++ /dev/null @@ -1,296 +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_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'); - -function serialize_dapr_proto_common_v1_InvokeRequest(arg) { - if (!(arg instanceof dapr_proto_common_v1_common_pb.InvokeRequest)) { - throw new Error('Expected argument of type dapr.proto.common.v1.InvokeRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_common_v1_InvokeRequest(buffer_arg) { - return dapr_proto_common_v1_common_pb.InvokeRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_common_v1_InvokeResponse(arg) { - if (!(arg instanceof dapr_proto_common_v1_common_pb.InvokeResponse)) { - throw new Error('Expected argument of type dapr.proto.common.v1.InvokeResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_common_v1_InvokeResponse(buffer_arg) { - return dapr_proto_common_v1_common_pb.InvokeResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_BindingEventRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.BindingEventRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_BindingEventRequest(buffer_arg) { - return dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_BindingEventResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_appcallback_pb.BindingEventResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.BindingEventResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_BindingEventResponse(buffer_arg) { - return dapr_proto_runtime_v1_appcallback_pb.BindingEventResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_HealthCheckResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_appcallback_pb.HealthCheckResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.HealthCheckResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -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'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ListInputBindingsResponse(buffer_arg) { - return dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ListTopicSubscriptionsResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ListTopicSubscriptionsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ListTopicSubscriptionsResponse(buffer_arg) { - return dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_TopicEventBulkRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.TopicEventBulkRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_TopicEventBulkRequest(buffer_arg) { - return dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_TopicEventBulkResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.TopicEventBulkResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_TopicEventBulkResponse(buffer_arg) { - return dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_TopicEventRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.TopicEventRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_TopicEventRequest(buffer_arg) { - return dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_TopicEventResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.TopicEventResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_TopicEventResponse(buffer_arg) { - return dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse.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'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// AppCallback V1 allows user application to interact with Dapr runtime. -// User application needs to implement AppCallback service if it needs to -// receive message from dapr runtime. -var AppCallbackService = exports.AppCallbackService = { - // Invokes service method with InvokeRequest. -onInvoke: { - path: '/dapr.proto.runtime.v1.AppCallback/OnInvoke', - requestStream: false, - responseStream: false, - requestType: dapr_proto_common_v1_common_pb.InvokeRequest, - responseType: dapr_proto_common_v1_common_pb.InvokeResponse, - requestSerialize: serialize_dapr_proto_common_v1_InvokeRequest, - requestDeserialize: deserialize_dapr_proto_common_v1_InvokeRequest, - responseSerialize: serialize_dapr_proto_common_v1_InvokeResponse, - responseDeserialize: deserialize_dapr_proto_common_v1_InvokeResponse, - }, - // Lists all topics subscribed by this app. -listTopicSubscriptions: { - path: '/dapr.proto.runtime.v1.AppCallback/ListTopicSubscriptions', - requestStream: false, - responseStream: false, - requestType: google_protobuf_empty_pb.Empty, - responseType: dapr_proto_runtime_v1_appcallback_pb.ListTopicSubscriptionsResponse, - requestSerialize: serialize_google_protobuf_Empty, - requestDeserialize: deserialize_google_protobuf_Empty, - responseSerialize: serialize_dapr_proto_runtime_v1_ListTopicSubscriptionsResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_ListTopicSubscriptionsResponse, - }, - // Subscribes events from Pubsub -onTopicEvent: { - path: '/dapr.proto.runtime.v1.AppCallback/OnTopicEvent', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_appcallback_pb.TopicEventRequest, - responseType: dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_TopicEventRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_TopicEventRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_TopicEventResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_TopicEventResponse, - }, - // Lists all input bindings subscribed by this app. -listInputBindings: { - path: '/dapr.proto.runtime.v1.AppCallback/ListInputBindings', - requestStream: false, - responseStream: false, - requestType: google_protobuf_empty_pb.Empty, - responseType: dapr_proto_runtime_v1_appcallback_pb.ListInputBindingsResponse, - requestSerialize: serialize_google_protobuf_Empty, - requestDeserialize: deserialize_google_protobuf_Empty, - responseSerialize: serialize_dapr_proto_runtime_v1_ListInputBindingsResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_ListInputBindingsResponse, - }, - // Listens events from the input bindings -// -// User application can save the states or send the events to the output -// bindings optionally by returning BindingEventResponse. -onBindingEvent: { - path: '/dapr.proto.runtime.v1.AppCallback/OnBindingEvent', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_appcallback_pb.BindingEventRequest, - responseType: dapr_proto_runtime_v1_appcallback_pb.BindingEventResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_BindingEventRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_BindingEventRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_BindingEventResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_BindingEventResponse, - }, -}; - -exports.AppCallbackClient = grpc.makeGenericClientConstructor(AppCallbackService); -// AppCallbackHealthCheck V1 is an optional extension to AppCallback V1 to implement -// the HealthCheck method. -var AppCallbackHealthCheckService = exports.AppCallbackHealthCheckService = { - // Health check. -healthCheck: { - path: '/dapr.proto.runtime.v1.AppCallbackHealthCheck/HealthCheck', - requestStream: false, - responseStream: false, - requestType: google_protobuf_empty_pb.Empty, - responseType: dapr_proto_runtime_v1_appcallback_pb.HealthCheckResponse, - requestSerialize: serialize_google_protobuf_Empty, - requestDeserialize: deserialize_google_protobuf_Empty, - responseSerialize: serialize_dapr_proto_runtime_v1_HealthCheckResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_HealthCheckResponse, - }, -}; - -exports.AppCallbackHealthCheckClient = grpc.makeGenericClientConstructor(AppCallbackHealthCheckService); -// AppCallbackAlpha V1 is an optional extension to AppCallback V1 to opt -// for Alpha RPCs. -var AppCallbackAlphaService = exports.AppCallbackAlphaService = { - // Subscribes bulk events from Pubsub -onBulkTopicEventAlpha1: { - path: '/dapr.proto.runtime.v1.AppCallbackAlpha/OnBulkTopicEventAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkRequest, - responseType: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_TopicEventBulkRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_TopicEventBulkRequest, - 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 bf3d0bc7..c433d74d 100644 --- a/src/proto/dapr/proto/runtime/v1/appcallback_pb.d.ts +++ b/src/proto/dapr/proto/runtime/v1/appcallback_pb.d.ts @@ -1,578 +1,882 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/appcallback.proto - -/* tslint:disable */ +// +//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. + +// @generated by protoc-gen-es v2.7.0 with parameter "target=js+dts,import_extension=none" +// @generated from file dapr/proto/runtime/v1/appcallback.proto (package dapr.proto.runtime.v1, syntax proto3) /* 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; - getSource(): string; - setSource(value: string): TopicEventRequest; - getType(): string; - setType(value: string): TopicEventRequest; - getSpecVersion(): string; - setSpecVersion(value: string): TopicEventRequest; - getDataContentType(): string; - setDataContentType(value: string): TopicEventRequest; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): TopicEventRequest; - getTopic(): string; - setTopic(value: string): TopicEventRequest; - getPubsubName(): string; - setPubsubName(value: string): TopicEventRequest; - getPath(): string; - setPath(value: string): TopicEventRequest; - - hasExtensions(): boolean; - clearExtensions(): void; - getExtensions(): google_protobuf_struct_pb.Struct | undefined; - setExtensions(value?: google_protobuf_struct_pb.Struct): TopicEventRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TopicEventRequest.AsObject; - static toObject(includeInstance: boolean, msg: TopicEventRequest): TopicEventRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TopicEventRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TopicEventRequest; - static deserializeBinaryFromReader(message: TopicEventRequest, reader: jspb.BinaryReader): TopicEventRequest; -} - -export namespace TopicEventRequest { - export type AsObject = { - id: string, - source: string, - type: string, - specVersion: string, - dataContentType: string, - data: Uint8Array | string, - topic: string, - pubsubName: string, - path: string, - extensions?: google_protobuf_struct_pb.Struct.AsObject, - } -} - -export class TopicEventResponse extends jspb.Message { - getStatus(): TopicEventResponse.TopicEventResponseStatus; - setStatus(value: TopicEventResponse.TopicEventResponseStatus): TopicEventResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TopicEventResponse.AsObject; - static toObject(includeInstance: boolean, msg: TopicEventResponse): TopicEventResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TopicEventResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TopicEventResponse; - static deserializeBinaryFromReader(message: TopicEventResponse, reader: jspb.BinaryReader): TopicEventResponse; -} - -export namespace TopicEventResponse { - export type AsObject = { - status: TopicEventResponse.TopicEventResponseStatus, - } - - export enum TopicEventResponseStatus { - SUCCESS = 0, - RETRY = 1, - DROP = 2, - } - -} - -export class TopicEventCERequest extends jspb.Message { - getId(): string; - setId(value: string): TopicEventCERequest; - getSource(): string; - setSource(value: string): TopicEventCERequest; - getType(): string; - setType(value: string): TopicEventCERequest; - getSpecVersion(): string; - setSpecVersion(value: string): TopicEventCERequest; - getDataContentType(): string; - setDataContentType(value: string): TopicEventCERequest; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): TopicEventCERequest; - - hasExtensions(): boolean; - clearExtensions(): void; - getExtensions(): google_protobuf_struct_pb.Struct | undefined; - setExtensions(value?: google_protobuf_struct_pb.Struct): TopicEventCERequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TopicEventCERequest.AsObject; - static toObject(includeInstance: boolean, msg: TopicEventCERequest): TopicEventCERequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TopicEventCERequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TopicEventCERequest; - static deserializeBinaryFromReader(message: TopicEventCERequest, reader: jspb.BinaryReader): TopicEventCERequest; -} - -export namespace TopicEventCERequest { - export type AsObject = { - id: string, - source: string, - type: string, - specVersion: string, - dataContentType: string, - data: Uint8Array | string, - extensions?: google_protobuf_struct_pb.Struct.AsObject, - } -} - -export class TopicEventBulkRequestEntry extends jspb.Message { - getEntryId(): string; - setEntryId(value: string): TopicEventBulkRequestEntry; - - hasBytes(): boolean; - clearBytes(): void; - getBytes(): Uint8Array | string; - getBytes_asU8(): Uint8Array; - getBytes_asB64(): string; - setBytes(value: Uint8Array | string): TopicEventBulkRequestEntry; - - hasCloudEvent(): boolean; - clearCloudEvent(): void; - getCloudEvent(): TopicEventCERequest | undefined; - setCloudEvent(value?: TopicEventCERequest): TopicEventBulkRequestEntry; - getContentType(): string; - setContentType(value: string): TopicEventBulkRequestEntry; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - getEventCase(): TopicEventBulkRequestEntry.EventCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TopicEventBulkRequestEntry.AsObject; - static toObject(includeInstance: boolean, msg: TopicEventBulkRequestEntry): TopicEventBulkRequestEntry.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TopicEventBulkRequestEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TopicEventBulkRequestEntry; - static deserializeBinaryFromReader(message: TopicEventBulkRequestEntry, reader: jspb.BinaryReader): TopicEventBulkRequestEntry; -} - -export namespace TopicEventBulkRequestEntry { - export type AsObject = { - entryId: string, - bytes: Uint8Array | string, - cloudEvent?: TopicEventCERequest.AsObject, - contentType: string, - - metadataMap: Array<[string, string]>, - } - - export enum EventCase { - EVENT_NOT_SET = 0, - BYTES = 2, - CLOUD_EVENT = 3, - } - -} - -export class TopicEventBulkRequest extends jspb.Message { - getId(): string; - setId(value: string): TopicEventBulkRequest; - clearEntriesList(): void; - getEntriesList(): Array; - setEntriesList(value: Array): TopicEventBulkRequest; - addEntries(value?: TopicEventBulkRequestEntry, index?: number): TopicEventBulkRequestEntry; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - getTopic(): string; - setTopic(value: string): TopicEventBulkRequest; - getPubsubName(): string; - setPubsubName(value: string): TopicEventBulkRequest; - getType(): string; - setType(value: string): TopicEventBulkRequest; - getPath(): string; - setPath(value: string): TopicEventBulkRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TopicEventBulkRequest.AsObject; - static toObject(includeInstance: boolean, msg: TopicEventBulkRequest): TopicEventBulkRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TopicEventBulkRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TopicEventBulkRequest; - static deserializeBinaryFromReader(message: TopicEventBulkRequest, reader: jspb.BinaryReader): TopicEventBulkRequest; -} - -export namespace TopicEventBulkRequest { - export type AsObject = { - id: string, - entriesList: Array, - - metadataMap: Array<[string, string]>, - topic: string, - pubsubName: string, - type: string, - path: string, - } -} - -export class TopicEventBulkResponseEntry extends jspb.Message { - getEntryId(): string; - setEntryId(value: string): TopicEventBulkResponseEntry; - getStatus(): TopicEventResponse.TopicEventResponseStatus; - setStatus(value: TopicEventResponse.TopicEventResponseStatus): TopicEventBulkResponseEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TopicEventBulkResponseEntry.AsObject; - static toObject(includeInstance: boolean, msg: TopicEventBulkResponseEntry): TopicEventBulkResponseEntry.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TopicEventBulkResponseEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TopicEventBulkResponseEntry; - static deserializeBinaryFromReader(message: TopicEventBulkResponseEntry, reader: jspb.BinaryReader): TopicEventBulkResponseEntry; -} - -export namespace TopicEventBulkResponseEntry { - export type AsObject = { - entryId: string, - status: TopicEventResponse.TopicEventResponseStatus, - } -} - -export class TopicEventBulkResponse extends jspb.Message { - clearStatusesList(): void; - getStatusesList(): Array; - setStatusesList(value: Array): TopicEventBulkResponse; - addStatuses(value?: TopicEventBulkResponseEntry, index?: number): TopicEventBulkResponseEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TopicEventBulkResponse.AsObject; - static toObject(includeInstance: boolean, msg: TopicEventBulkResponse): TopicEventBulkResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TopicEventBulkResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TopicEventBulkResponse; - static deserializeBinaryFromReader(message: TopicEventBulkResponse, reader: jspb.BinaryReader): TopicEventBulkResponse; -} - -export namespace TopicEventBulkResponse { - export type AsObject = { - statusesList: Array, - } -} - -export class BindingEventRequest extends jspb.Message { - getName(): string; - setName(value: string): BindingEventRequest; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): BindingEventRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BindingEventRequest.AsObject; - static toObject(includeInstance: boolean, msg: BindingEventRequest): BindingEventRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BindingEventRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BindingEventRequest; - static deserializeBinaryFromReader(message: BindingEventRequest, reader: jspb.BinaryReader): BindingEventRequest; -} - -export namespace BindingEventRequest { - export type AsObject = { - name: string, - data: Uint8Array | string, - - metadataMap: Array<[string, string]>, - } -} - -export class BindingEventResponse extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): BindingEventResponse; - clearStatesList(): void; - getStatesList(): Array; - setStatesList(value: Array): BindingEventResponse; - addStates(value?: dapr_proto_common_v1_common_pb.StateItem, index?: number): dapr_proto_common_v1_common_pb.StateItem; - clearToList(): void; - getToList(): Array; - setToList(value: Array): BindingEventResponse; - addTo(value: string, index?: number): string; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): BindingEventResponse; - getConcurrency(): BindingEventResponse.BindingEventConcurrency; - setConcurrency(value: BindingEventResponse.BindingEventConcurrency): BindingEventResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BindingEventResponse.AsObject; - static toObject(includeInstance: boolean, msg: BindingEventResponse): BindingEventResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BindingEventResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BindingEventResponse; - static deserializeBinaryFromReader(message: BindingEventResponse, reader: jspb.BinaryReader): BindingEventResponse; -} - -export namespace BindingEventResponse { - export type AsObject = { - storeName: string, - statesList: Array, - toList: Array, - data: Uint8Array | string, - concurrency: BindingEventResponse.BindingEventConcurrency, - } - - export enum BindingEventConcurrency { - SEQUENTIAL = 0, - PARALLEL = 1, - } - -} - -export class ListTopicSubscriptionsResponse extends jspb.Message { - clearSubscriptionsList(): void; - getSubscriptionsList(): Array; - setSubscriptionsList(value: Array): ListTopicSubscriptionsResponse; - addSubscriptions(value?: TopicSubscription, index?: number): TopicSubscription; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListTopicSubscriptionsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListTopicSubscriptionsResponse): ListTopicSubscriptionsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListTopicSubscriptionsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListTopicSubscriptionsResponse; - static deserializeBinaryFromReader(message: ListTopicSubscriptionsResponse, reader: jspb.BinaryReader): ListTopicSubscriptionsResponse; -} - -export namespace ListTopicSubscriptionsResponse { - export type AsObject = { - subscriptionsList: Array, - } -} - -export class TopicSubscription extends jspb.Message { - getPubsubName(): string; - setPubsubName(value: string): TopicSubscription; - getTopic(): string; - setTopic(value: string): TopicSubscription; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - hasRoutes(): boolean; - clearRoutes(): void; - getRoutes(): TopicRoutes | undefined; - setRoutes(value?: TopicRoutes): TopicSubscription; - getDeadLetterTopic(): string; - setDeadLetterTopic(value: string): TopicSubscription; - - hasBulkSubscribe(): boolean; - clearBulkSubscribe(): void; - getBulkSubscribe(): BulkSubscribeConfig | undefined; - setBulkSubscribe(value?: BulkSubscribeConfig): TopicSubscription; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TopicSubscription.AsObject; - static toObject(includeInstance: boolean, msg: TopicSubscription): TopicSubscription.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TopicSubscription, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TopicSubscription; - static deserializeBinaryFromReader(message: TopicSubscription, reader: jspb.BinaryReader): TopicSubscription; -} - -export namespace TopicSubscription { - export type AsObject = { - pubsubName: string, - topic: string, - - metadataMap: Array<[string, string]>, - routes?: TopicRoutes.AsObject, - deadLetterTopic: string, - bulkSubscribe?: BulkSubscribeConfig.AsObject, - } -} +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; +import type { JsonObject, Message } from "@bufbuild/protobuf"; +import type { Any, EmptySchema } from "@bufbuild/protobuf/wkt"; +import type { HTTPExtension, InvokeRequestSchema, InvokeResponseSchema, StateItem } from "../../common/v1/common_pb"; + +/** + * Describes the file dapr/proto/runtime/v1/appcallback.proto. + */ +export declare const file_dapr_proto_runtime_v1_appcallback: GenFile; + +/** + * @generated from message dapr.proto.runtime.v1.JobEventRequest + */ +export declare type JobEventRequest = Message<"dapr.proto.runtime.v1.JobEventRequest"> & { + /** + * Job name. + * + * @generated from field: string name = 1; + */ + name: string; + + /** + * Job data to be sent back to app. + * + * @generated from field: google.protobuf.Any data = 2; + */ + data?: Any; + + /** + * Required. method is a method name which will be invoked by caller. + * + * @generated from field: string method = 3; + */ + method: string; + + /** + * The type of data content. + * + * This field is required if data delivers http request body + * Otherwise, this is optional. + * + * @generated from field: string content_type = 4; + */ + contentType: string; + + /** + * HTTP specific fields if request conveys http-compatible request. + * + * This field is required for http-compatible request. Otherwise, + * this field is optional. + * + * @generated from field: dapr.proto.common.v1.HTTPExtension http_extension = 5; + */ + httpExtension?: HTTPExtension; +}; + +/** + * Describes the message dapr.proto.runtime.v1.JobEventRequest. + * Use `create(JobEventRequestSchema)` to create a new message. + */ +export declare const JobEventRequestSchema: GenMessage; + +/** + * JobEventResponse is the response from the app when a job is triggered. + * + * @generated from message dapr.proto.runtime.v1.JobEventResponse + */ +export declare type JobEventResponse = Message<"dapr.proto.runtime.v1.JobEventResponse"> & { +}; + +/** + * Describes the message dapr.proto.runtime.v1.JobEventResponse. + * Use `create(JobEventResponseSchema)` to create a new message. + */ +export declare const JobEventResponseSchema: GenMessage; + +/** + * TopicEventRequest message is compatible with CloudEvent spec v1.0 + * https://github.com/cloudevents/spec/blob/v1.0/spec.md + * + * @generated from message dapr.proto.runtime.v1.TopicEventRequest + */ +export declare type TopicEventRequest = Message<"dapr.proto.runtime.v1.TopicEventRequest"> & { + /** + * id identifies the event. Producers MUST ensure that source + id + * is unique for each distinct event. If a duplicate event is re-sent + * (e.g. due to a network error) it MAY have the same id. + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * source identifies the context in which an event happened. + * Often this will include information such as the type of the + * event source, the organization publishing the event or the process + * that produced the event. The exact syntax and semantics behind + * the data encoded in the URI is defined by the event producer. + * + * @generated from field: string source = 2; + */ + source: string; + + /** + * The type of event related to the originating occurrence. + * + * @generated from field: string type = 3; + */ + type: string; + + /** + * The version of the CloudEvents specification. + * + * @generated from field: string spec_version = 4; + */ + specVersion: string; + + /** + * The content type of data value. + * + * @generated from field: string data_content_type = 5; + */ + dataContentType: string; + + /** + * The content of the event. + * + * @generated from field: bytes data = 7; + */ + data: Uint8Array; + + /** + * The pubsub topic which publisher sent to. + * + * @generated from field: string topic = 6; + */ + topic: string; + + /** + * The name of the pubsub the publisher sent to. + * + * @generated from field: string pubsub_name = 8; + */ + pubsubName: string; + + /** + * The matching path from TopicSubscription/routes (if specified) for this event. + * This value is used by OnTopicEvent to "switch" inside the handler. + * + * @generated from field: string path = 9; + */ + path: string; + + /** + * The map of additional custom properties to be sent to the app. These are considered to be cloud event extensions. + * + * @generated from field: google.protobuf.Struct extensions = 10; + */ + extensions?: JsonObject; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TopicEventRequest. + * Use `create(TopicEventRequestSchema)` to create a new message. + */ +export declare const TopicEventRequestSchema: GenMessage; + +/** + * TopicEventResponse is response from app on published message + * + * @generated from message dapr.proto.runtime.v1.TopicEventResponse + */ +export declare type TopicEventResponse = Message<"dapr.proto.runtime.v1.TopicEventResponse"> & { + /** + * The list of output bindings. + * + * @generated from field: dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 1; + */ + status: TopicEventResponse_TopicEventResponseStatus; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TopicEventResponse. + * Use `create(TopicEventResponseSchema)` to create a new message. + */ +export declare const TopicEventResponseSchema: GenMessage; + +/** + * TopicEventResponseStatus allows apps to have finer control over handling of the message. + * + * @generated from enum dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus + */ +export enum TopicEventResponse_TopicEventResponseStatus { + /** + * SUCCESS is the default behavior: message is acknowledged and not retried or logged. + * + * @generated from enum value: SUCCESS = 0; + */ + SUCCESS = 0, + + /** + * RETRY status signals Dapr to retry the message as part of an expected scenario (no warning is logged). + * + * @generated from enum value: RETRY = 1; + */ + RETRY = 1, + + /** + * DROP status signals Dapr to drop the message as part of an unexpected scenario (warning is logged). + * + * @generated from enum value: DROP = 2; + */ + DROP = 2, +} + +/** + * Describes the enum dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus. + */ +export declare const TopicEventResponse_TopicEventResponseStatusSchema: GenEnum; + +/** + * TopicEventCERequest message is compatible with CloudEvent spec v1.0 + * + * @generated from message dapr.proto.runtime.v1.TopicEventCERequest + */ +export declare type TopicEventCERequest = Message<"dapr.proto.runtime.v1.TopicEventCERequest"> & { + /** + * The unique identifier of this cloud event. + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * source identifies the context in which an event happened. + * + * @generated from field: string source = 2; + */ + source: string; + + /** + * The type of event related to the originating occurrence. + * + * @generated from field: string type = 3; + */ + type: string; + + /** + * The version of the CloudEvents specification. + * + * @generated from field: string spec_version = 4; + */ + specVersion: string; + + /** + * The content type of data value. + * + * @generated from field: string data_content_type = 5; + */ + dataContentType: string; + + /** + * The content of the event. + * + * @generated from field: bytes data = 6; + */ + data: Uint8Array; + + /** + * Custom attributes which includes cloud event extensions. + * + * @generated from field: google.protobuf.Struct extensions = 7; + */ + extensions?: JsonObject; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TopicEventCERequest. + * Use `create(TopicEventCERequestSchema)` to create a new message. + */ +export declare const TopicEventCERequestSchema: GenMessage; + +/** + * TopicEventBulkRequestEntry represents a single message inside a bulk request + * + * @generated from message dapr.proto.runtime.v1.TopicEventBulkRequestEntry + */ +export declare type TopicEventBulkRequestEntry = Message<"dapr.proto.runtime.v1.TopicEventBulkRequestEntry"> & { + /** + * Unique identifier for the message. + * + * @generated from field: string entry_id = 1; + */ + entryId: string; + + /** + * The content of the event. + * + * @generated from oneof dapr.proto.runtime.v1.TopicEventBulkRequestEntry.event + */ + event: { + /** + * @generated from field: bytes bytes = 2; + */ + value: Uint8Array; + case: "bytes"; + } | { + /** + * @generated from field: dapr.proto.runtime.v1.TopicEventCERequest cloud_event = 3; + */ + value: TopicEventCERequest; + case: "cloudEvent"; + } | { case: undefined; value?: undefined }; + + /** + * content type of the event contained. + * + * @generated from field: string content_type = 4; + */ + contentType: string; + + /** + * The metadata associated with the event. + * + * @generated from field: map metadata = 5; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TopicEventBulkRequestEntry. + * Use `create(TopicEventBulkRequestEntrySchema)` to create a new message. + */ +export declare const TopicEventBulkRequestEntrySchema: GenMessage; + +/** + * TopicEventBulkRequest represents request for bulk message + * + * @generated from message dapr.proto.runtime.v1.TopicEventBulkRequest + */ +export declare type TopicEventBulkRequest = Message<"dapr.proto.runtime.v1.TopicEventBulkRequest"> & { + /** + * Unique identifier for the bulk request. + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The list of items inside this bulk request. + * + * @generated from field: repeated dapr.proto.runtime.v1.TopicEventBulkRequestEntry entries = 2; + */ + entries: TopicEventBulkRequestEntry[]; + + /** + * The metadata associated with the this bulk request. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; + + /** + * The pubsub topic which publisher sent to. + * + * @generated from field: string topic = 4; + */ + topic: string; + + /** + * The name of the pubsub the publisher sent to. + * + * @generated from field: string pubsub_name = 5; + */ + pubsubName: string; + + /** + * The type of event related to the originating occurrence. + * + * @generated from field: string type = 6; + */ + type: string; + + /** + * The matching path from TopicSubscription/routes (if specified) for this event. + * This value is used by OnTopicEvent to "switch" inside the handler. + * + * @generated from field: string path = 7; + */ + path: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TopicEventBulkRequest. + * Use `create(TopicEventBulkRequestSchema)` to create a new message. + */ +export declare const TopicEventBulkRequestSchema: GenMessage; + +/** + * TopicEventBulkResponseEntry Represents single response, as part of TopicEventBulkResponse, to be + * sent by subscibed App for the corresponding single message during bulk subscribe + * + * @generated from message dapr.proto.runtime.v1.TopicEventBulkResponseEntry + */ +export declare type TopicEventBulkResponseEntry = Message<"dapr.proto.runtime.v1.TopicEventBulkResponseEntry"> & { + /** + * Unique identifier associated the message. + * + * @generated from field: string entry_id = 1; + */ + entryId: string; + + /** + * The status of the response. + * + * @generated from field: dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 2; + */ + status: TopicEventResponse_TopicEventResponseStatus; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TopicEventBulkResponseEntry. + * Use `create(TopicEventBulkResponseEntrySchema)` to create a new message. + */ +export declare const TopicEventBulkResponseEntrySchema: GenMessage; + +/** + * AppBulkResponse is response from app on published message + * + * @generated from message dapr.proto.runtime.v1.TopicEventBulkResponse + */ +export declare type TopicEventBulkResponse = Message<"dapr.proto.runtime.v1.TopicEventBulkResponse"> & { + /** + * The list of all responses for the bulk request. + * + * @generated from field: repeated dapr.proto.runtime.v1.TopicEventBulkResponseEntry statuses = 1; + */ + statuses: TopicEventBulkResponseEntry[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TopicEventBulkResponse. + * Use `create(TopicEventBulkResponseSchema)` to create a new message. + */ +export declare const TopicEventBulkResponseSchema: GenMessage; + +/** + * BindingEventRequest represents input bindings event. + * + * @generated from message dapr.proto.runtime.v1.BindingEventRequest + */ +export declare type BindingEventRequest = Message<"dapr.proto.runtime.v1.BindingEventRequest"> & { + /** + * Required. The name of the input binding component. + * + * @generated from field: string name = 1; + */ + name: string; + + /** + * Required. The payload that the input bindings sent + * + * @generated from field: bytes data = 2; + */ + data: Uint8Array; + + /** + * The metadata set by the input binging components. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.BindingEventRequest. + * Use `create(BindingEventRequestSchema)` to create a new message. + */ +export declare const BindingEventRequestSchema: GenMessage; + +/** + * BindingEventResponse includes operations to save state or + * send data to output bindings optionally. + * + * @generated from message dapr.proto.runtime.v1.BindingEventResponse + */ +export declare type BindingEventResponse = Message<"dapr.proto.runtime.v1.BindingEventResponse"> & { + /** + * The name of state store where states are saved. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * The state key values which will be stored in store_name. + * + * @generated from field: repeated dapr.proto.common.v1.StateItem states = 2; + */ + states: StateItem[]; + + /** + * The list of output bindings. + * + * @generated from field: repeated string to = 3; + */ + to: string[]; + + /** + * The content which will be sent to "to" output bindings. + * + * @generated from field: bytes data = 4; + */ + data: Uint8Array; + + /** + * The concurrency of output bindings to send data to + * "to" output bindings list. The default is SEQUENTIAL. + * + * @generated from field: dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5; + */ + concurrency: BindingEventResponse_BindingEventConcurrency; +}; + +/** + * Describes the message dapr.proto.runtime.v1.BindingEventResponse. + * Use `create(BindingEventResponseSchema)` to create a new message. + */ +export declare const BindingEventResponseSchema: GenMessage; + +/** + * BindingEventConcurrency is the kind of concurrency + * + * @generated from enum dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency + */ +export enum BindingEventResponse_BindingEventConcurrency { + /** + * SEQUENTIAL sends data to output bindings specified in "to" sequentially. + * + * @generated from enum value: SEQUENTIAL = 0; + */ + SEQUENTIAL = 0, + + /** + * PARALLEL sends data to output bindings specified in "to" in parallel. + * + * @generated from enum value: PARALLEL = 1; + */ + PARALLEL = 1, +} + +/** + * Describes the enum dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency. + */ +export declare const BindingEventResponse_BindingEventConcurrencySchema: GenEnum; + +/** + * ListTopicSubscriptionsResponse is the message including the list of the subscribing topics. + * + * @generated from message dapr.proto.runtime.v1.ListTopicSubscriptionsResponse + */ +export declare type ListTopicSubscriptionsResponse = Message<"dapr.proto.runtime.v1.ListTopicSubscriptionsResponse"> & { + /** + * The list of topics. + * + * @generated from field: repeated dapr.proto.runtime.v1.TopicSubscription subscriptions = 1; + */ + subscriptions: TopicSubscription[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ListTopicSubscriptionsResponse. + * Use `create(ListTopicSubscriptionsResponseSchema)` to create a new message. + */ +export declare const ListTopicSubscriptionsResponseSchema: GenMessage; + +/** + * TopicSubscription represents topic and metadata. + * + * @generated from message dapr.proto.runtime.v1.TopicSubscription + */ +export declare type TopicSubscription = Message<"dapr.proto.runtime.v1.TopicSubscription"> & { + /** + * Required. The name of the pubsub containing the topic below to subscribe to. + * + * @generated from field: string pubsub_name = 1; + */ + pubsubName: string; + + /** + * Required. The name of topic which will be subscribed + * + * @generated from field: string topic = 2; + */ + topic: string; + + /** + * The optional properties used for this topic's subscription e.g. session id + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; + + /** + * The optional routing rules to match against. In the gRPC interface, OnTopicEvent + * is still invoked but the matching path is sent in the TopicEventRequest. + * + * @generated from field: dapr.proto.runtime.v1.TopicRoutes routes = 5; + */ + routes?: TopicRoutes; + + /** + * The optional dead letter queue for this topic to send events to. + * + * @generated from field: string dead_letter_topic = 6; + */ + deadLetterTopic: string; + + /** + * The optional bulk subscribe settings for this topic. + * + * @generated from field: dapr.proto.runtime.v1.BulkSubscribeConfig bulk_subscribe = 7; + */ + bulkSubscribe?: BulkSubscribeConfig; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TopicSubscription. + * Use `create(TopicSubscriptionSchema)` to create a new message. + */ +export declare const TopicSubscriptionSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.TopicRoutes + */ +export declare type TopicRoutes = Message<"dapr.proto.runtime.v1.TopicRoutes"> & { + /** + * The list of rules for this topic. + * + * @generated from field: repeated dapr.proto.runtime.v1.TopicRule rules = 1; + */ + rules: TopicRule[]; + + /** + * The default path for this topic. + * + * @generated from field: string default = 2; + */ + default: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TopicRoutes. + * Use `create(TopicRoutesSchema)` to create a new message. + */ +export declare const TopicRoutesSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.TopicRule + */ +export declare type TopicRule = Message<"dapr.proto.runtime.v1.TopicRule"> & { + /** + * The optional CEL expression used to match the event. + * If the match is not specified, then the route is considered + * the default. + * + * @generated from field: string match = 1; + */ + match: string; + + /** + * The path used to identify matches for this subscription. + * This value is passed in TopicEventRequest and used by OnTopicEvent to "switch" + * inside the handler. + * + * @generated from field: string path = 2; + */ + path: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TopicRule. + * Use `create(TopicRuleSchema)` to create a new message. + */ +export declare const TopicRuleSchema: GenMessage; + +/** + * BulkSubscribeConfig is the message to pass settings for bulk subscribe + * + * @generated from message dapr.proto.runtime.v1.BulkSubscribeConfig + */ +export declare type BulkSubscribeConfig = Message<"dapr.proto.runtime.v1.BulkSubscribeConfig"> & { + /** + * Required. Flag to enable/disable bulk subscribe + * + * @generated from field: bool enabled = 1; + */ + enabled: boolean; + + /** + * Optional. Max number of messages to be sent in a single bulk request + * + * @generated from field: int32 max_messages_count = 2; + */ + maxMessagesCount: number; + + /** + * Optional. Max duration to wait for messages to be sent in a single bulk request + * + * @generated from field: int32 max_await_duration_ms = 3; + */ + maxAwaitDurationMs: number; +}; + +/** + * Describes the message dapr.proto.runtime.v1.BulkSubscribeConfig. + * Use `create(BulkSubscribeConfigSchema)` to create a new message. + */ +export declare const BulkSubscribeConfigSchema: GenMessage; + +/** + * ListInputBindingsResponse is the message including the list of input bindings. + * + * @generated from message dapr.proto.runtime.v1.ListInputBindingsResponse + */ +export declare type ListInputBindingsResponse = Message<"dapr.proto.runtime.v1.ListInputBindingsResponse"> & { + /** + * The list of input bindings. + * + * @generated from field: repeated string bindings = 1; + */ + bindings: string[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ListInputBindingsResponse. + * Use `create(ListInputBindingsResponseSchema)` to create a new message. + */ +export declare const ListInputBindingsResponseSchema: GenMessage; + +/** + * HealthCheckResponse is the message with the response to the health check. + * This message is currently empty as used as placeholder. + * + * @generated from message dapr.proto.runtime.v1.HealthCheckResponse + */ +export declare type HealthCheckResponse = Message<"dapr.proto.runtime.v1.HealthCheckResponse"> & { +}; + +/** + * Describes the message dapr.proto.runtime.v1.HealthCheckResponse. + * Use `create(HealthCheckResponseSchema)` to create a new message. + */ +export declare const HealthCheckResponseSchema: GenMessage; + +/** + * AppCallback V1 allows user application to interact with Dapr runtime. + * User application needs to implement AppCallback service if it needs to + * receive message from dapr runtime. + * + * @generated from service dapr.proto.runtime.v1.AppCallback + */ +export declare const AppCallback: GenService<{ + /** + * Invokes service method with InvokeRequest. + * + * @generated from rpc dapr.proto.runtime.v1.AppCallback.OnInvoke + */ + onInvoke: { + methodKind: "unary"; + input: typeof InvokeRequestSchema; + output: typeof InvokeResponseSchema; + }, + /** + * Lists all topics subscribed by this app. + * + * @generated from rpc dapr.proto.runtime.v1.AppCallback.ListTopicSubscriptions + */ + listTopicSubscriptions: { + methodKind: "unary"; + input: typeof EmptySchema; + output: typeof ListTopicSubscriptionsResponseSchema; + }, + /** + * Subscribes events from Pubsub + * + * @generated from rpc dapr.proto.runtime.v1.AppCallback.OnTopicEvent + */ + onTopicEvent: { + methodKind: "unary"; + input: typeof TopicEventRequestSchema; + output: typeof TopicEventResponseSchema; + }, + /** + * Lists all input bindings subscribed by this app. + * + * @generated from rpc dapr.proto.runtime.v1.AppCallback.ListInputBindings + */ + listInputBindings: { + methodKind: "unary"; + input: typeof EmptySchema; + output: typeof ListInputBindingsResponseSchema; + }, + /** + * Listens events from the input bindings + * + * User application can save the states or send the events to the output + * bindings optionally by returning BindingEventResponse. + * + * @generated from rpc dapr.proto.runtime.v1.AppCallback.OnBindingEvent + */ + onBindingEvent: { + methodKind: "unary"; + input: typeof BindingEventRequestSchema; + output: typeof BindingEventResponseSchema; + }, +}>; + +/** + * AppCallbackHealthCheck V1 is an optional extension to AppCallback V1 to implement + * the HealthCheck method. + * + * @generated from service dapr.proto.runtime.v1.AppCallbackHealthCheck + */ +export declare const AppCallbackHealthCheck: GenService<{ + /** + * Health check. + * + * @generated from rpc dapr.proto.runtime.v1.AppCallbackHealthCheck.HealthCheck + */ + healthCheck: { + methodKind: "unary"; + input: typeof EmptySchema; + output: typeof HealthCheckResponseSchema; + }, +}>; + +/** + * AppCallbackAlpha V1 is an optional extension to AppCallback V1 to opt + * for Alpha RPCs. + * + * @generated from service dapr.proto.runtime.v1.AppCallbackAlpha + */ +export declare const AppCallbackAlpha: GenService<{ + /** + * Subscribes bulk events from Pubsub + * + * @generated from rpc dapr.proto.runtime.v1.AppCallbackAlpha.OnBulkTopicEventAlpha1 + */ + onBulkTopicEventAlpha1: { + methodKind: "unary"; + input: typeof TopicEventBulkRequestSchema; + output: typeof TopicEventBulkResponseSchema; + }, + /** + * Sends job back to the app's endpoint at trigger time. + * + * @generated from rpc dapr.proto.runtime.v1.AppCallbackAlpha.OnJobEventAlpha1 + */ + onJobEventAlpha1: { + methodKind: "unary"; + input: typeof JobEventRequestSchema; + output: typeof JobEventResponseSchema; + }, +}>; -export class TopicRoutes extends jspb.Message { - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): TopicRoutes; - addRules(value?: TopicRule, index?: number): TopicRule; - getDefault(): string; - setDefault(value: string): TopicRoutes; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TopicRoutes.AsObject; - static toObject(includeInstance: boolean, msg: TopicRoutes): TopicRoutes.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TopicRoutes, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TopicRoutes; - static deserializeBinaryFromReader(message: TopicRoutes, reader: jspb.BinaryReader): TopicRoutes; -} - -export namespace TopicRoutes { - export type AsObject = { - rulesList: Array, - pb_default: string, - } -} - -export class TopicRule extends jspb.Message { - getMatch(): string; - setMatch(value: string): TopicRule; - getPath(): string; - setPath(value: string): TopicRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TopicRule.AsObject; - static toObject(includeInstance: boolean, msg: TopicRule): TopicRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TopicRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TopicRule; - static deserializeBinaryFromReader(message: TopicRule, reader: jspb.BinaryReader): TopicRule; -} - -export namespace TopicRule { - export type AsObject = { - match: string, - path: string, - } -} - -export class BulkSubscribeConfig extends jspb.Message { - getEnabled(): boolean; - setEnabled(value: boolean): BulkSubscribeConfig; - getMaxMessagesCount(): number; - setMaxMessagesCount(value: number): BulkSubscribeConfig; - getMaxAwaitDurationMs(): number; - setMaxAwaitDurationMs(value: number): BulkSubscribeConfig; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BulkSubscribeConfig.AsObject; - static toObject(includeInstance: boolean, msg: BulkSubscribeConfig): BulkSubscribeConfig.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BulkSubscribeConfig, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BulkSubscribeConfig; - static deserializeBinaryFromReader(message: BulkSubscribeConfig, reader: jspb.BinaryReader): BulkSubscribeConfig; -} - -export namespace BulkSubscribeConfig { - export type AsObject = { - enabled: boolean, - maxMessagesCount: number, - maxAwaitDurationMs: number, - } -} - -export class ListInputBindingsResponse extends jspb.Message { - clearBindingsList(): void; - getBindingsList(): Array; - setBindingsList(value: Array): ListInputBindingsResponse; - addBindings(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListInputBindingsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListInputBindingsResponse): ListInputBindingsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListInputBindingsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListInputBindingsResponse; - static deserializeBinaryFromReader(message: ListInputBindingsResponse, reader: jspb.BinaryReader): ListInputBindingsResponse; -} - -export namespace ListInputBindingsResponse { - export type AsObject = { - bindingsList: Array, - } -} - -export class HealthCheckResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HealthCheckResponse.AsObject; - static toObject(includeInstance: boolean, msg: HealthCheckResponse): HealthCheckResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HealthCheckResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HealthCheckResponse; - static deserializeBinaryFromReader(message: HealthCheckResponse, reader: jspb.BinaryReader): HealthCheckResponse; -} - -export namespace HealthCheckResponse { - export type AsObject = { - } -} diff --git a/src/proto/dapr/proto/runtime/v1/appcallback_pb.js b/src/proto/dapr/proto/runtime/v1/appcallback_pb.js index b14643a5..fc6dfcb6 100644 --- a/src/proto/dapr/proto/runtime/v1/appcallback_pb.js +++ b/src/proto/dapr/proto/runtime/v1/appcallback_pb.js @@ -1,4602 +1,208 @@ -// source: dapr/proto/runtime/v1/appcallback.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! +// +//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. + +// @generated by protoc-gen-es v2.7.0 with parameter "target=js+dts,import_extension=none" +// @generated from file dapr/proto/runtime/v1/appcallback.proto (package dapr.proto.runtime.v1, syntax proto3) /* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof window !== 'undefined' && window) || - (typeof global !== 'undefined' && global) || - (typeof self !== 'undefined' && self) || - (function () { return this; }).call(null) || - Function('return this')(); - -var 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'); -goog.object.extend(proto, dapr_proto_common_v1_common_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -goog.exportSymbol('proto.dapr.proto.runtime.v1.BindingEventRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.BindingEventResponse', null, global); -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); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.EventCase', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventBulkResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventCERequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus', null, global); -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 - * 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.TopicEventRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TopicEventRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TopicEventRequest.displayName = 'proto.dapr.proto.runtime.v1.TopicEventRequest'; -} -/** - * 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.TopicEventResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TopicEventResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TopicEventResponse.displayName = 'proto.dapr.proto.runtime.v1.TopicEventResponse'; -} -/** - * 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.TopicEventCERequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TopicEventCERequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TopicEventCERequest.displayName = 'proto.dapr.proto.runtime.v1.TopicEventCERequest'; -} -/** - * 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.TopicEventBulkRequestEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.oneofGroups_); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.displayName = 'proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry'; -} -/** - * 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.TopicEventBulkRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.TopicEventBulkRequest.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TopicEventBulkRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TopicEventBulkRequest.displayName = 'proto.dapr.proto.runtime.v1.TopicEventBulkRequest'; -} -/** - * 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.TopicEventBulkResponseEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.displayName = 'proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry'; -} -/** - * 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.TopicEventBulkResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.TopicEventBulkResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TopicEventBulkResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TopicEventBulkResponse.displayName = 'proto.dapr.proto.runtime.v1.TopicEventBulkResponse'; -} -/** - * 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.BindingEventRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.BindingEventRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.BindingEventRequest.displayName = 'proto.dapr.proto.runtime.v1.BindingEventRequest'; -} -/** - * 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.BindingEventResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.BindingEventResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.BindingEventResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.BindingEventResponse.displayName = 'proto.dapr.proto.runtime.v1.BindingEventResponse'; -} -/** - * 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.ListTopicSubscriptionsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.displayName = 'proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse'; -} -/** - * 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.TopicSubscription = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TopicSubscription, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TopicSubscription.displayName = 'proto.dapr.proto.runtime.v1.TopicSubscription'; -} -/** - * 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.TopicRoutes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.TopicRoutes.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TopicRoutes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TopicRoutes.displayName = 'proto.dapr.proto.runtime.v1.TopicRoutes'; -} -/** - * 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.TopicRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TopicRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TopicRule.displayName = 'proto.dapr.proto.runtime.v1.TopicRule'; -} -/** - * 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.BulkSubscribeConfig = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.BulkSubscribeConfig, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.BulkSubscribeConfig.displayName = 'proto.dapr.proto.runtime.v1.BulkSubscribeConfig'; -} -/** - * 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.ListInputBindingsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ListInputBindingsResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ListInputBindingsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ListInputBindingsResponse.displayName = 'proto.dapr.proto.runtime.v1.ListInputBindingsResponse'; -} -/** - * 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.HealthCheckResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.HealthCheckResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.HealthCheckResponse.displayName = 'proto.dapr.proto.runtime.v1.HealthCheckResponse'; -} - - - -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. - * 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.TopicEventRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TopicEventRequest.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.TopicEventRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - source: jspb.Message.getFieldWithDefault(msg, 2, ""), - type: jspb.Message.getFieldWithDefault(msg, 3, ""), - specVersion: jspb.Message.getFieldWithDefault(msg, 4, ""), - dataContentType: jspb.Message.getFieldWithDefault(msg, 5, ""), - data: msg.getData_asB64(), - topic: jspb.Message.getFieldWithDefault(msg, 6, ""), - pubsubName: jspb.Message.getFieldWithDefault(msg, 8, ""), - path: jspb.Message.getFieldWithDefault(msg, 9, ""), - extensions: (f = msg.getExtensions()) && google_protobuf_struct_pb.Struct.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.TopicEventRequest} - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TopicEventRequest; - return proto.dapr.proto.runtime.v1.TopicEventRequest.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.TopicEventRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.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 = /** @type {string} */ (reader.readString()); - msg.setSource(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSpecVersion(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDataContentType(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setTopic(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setPubsubName(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 10: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setExtensions(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.TopicEventRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TopicEventRequest.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.TopicEventRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSource(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSpecVersion(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDataContentType(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } - f = message.getTopic(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getPubsubName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getExtensions(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string source = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.setSource = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string type = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string spec_version = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getSpecVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.setSpecVersion = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string data_content_type = 5; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getDataContentType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.setDataContentType = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bytes data = 7; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; +import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2"; +import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt"; +import { file_dapr_proto_common_v1_common } from "../../common/v1/common_pb"; /** - * optional bytes data = 7; - * This is a type-conversion wrapper around `getData()` - * @return {string} + * Describes the file dapr/proto/runtime/v1/appcallback.proto. */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - +export const file_dapr_proto_runtime_v1_appcallback = /*@__PURE__*/ + fileDesc("CidkYXByL3Byb3RvL3J1bnRpbWUvdjEvYXBwY2FsbGJhY2sucHJvdG8SFWRhcHIucHJvdG8ucnVudGltZS52MSKmAQoPSm9iRXZlbnRSZXF1ZXN0EgwKBG5hbWUYASABKAkSIgoEZGF0YRgCIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSDgoGbWV0aG9kGAMgASgJEhQKDGNvbnRlbnRfdHlwZRgEIAEoCRI7Cg5odHRwX2V4dGVuc2lvbhgFIAEoCzIjLmRhcHIucHJvdG8uY29tbW9uLnYxLkhUVFBFeHRlbnNpb24iEgoQSm9iRXZlbnRSZXNwb25zZSLbAQoRVG9waWNFdmVudFJlcXVlc3QSCgoCaWQYASABKAkSDgoGc291cmNlGAIgASgJEgwKBHR5cGUYAyABKAkSFAoMc3BlY192ZXJzaW9uGAQgASgJEhkKEWRhdGFfY29udGVudF90eXBlGAUgASgJEgwKBGRhdGEYByABKAwSDQoFdG9waWMYBiABKAkSEwoLcHVic3ViX25hbWUYCCABKAkSDAoEcGF0aBgJIAEoCRIrCgpleHRlbnNpb25zGAogASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdCKmAQoSVG9waWNFdmVudFJlc3BvbnNlElIKBnN0YXR1cxgBIAEoDjJCLmRhcHIucHJvdG8ucnVudGltZS52MS5Ub3BpY0V2ZW50UmVzcG9uc2UuVG9waWNFdmVudFJlc3BvbnNlU3RhdHVzIjwKGFRvcGljRXZlbnRSZXNwb25zZVN0YXR1cxILCgdTVUNDRVNTEAASCQoFUkVUUlkQARIICgREUk9QEAIiqwEKE1RvcGljRXZlbnRDRVJlcXVlc3QSCgoCaWQYASABKAkSDgoGc291cmNlGAIgASgJEgwKBHR5cGUYAyABKAkSFAoMc3BlY192ZXJzaW9uGAQgASgJEhkKEWRhdGFfY29udGVudF90eXBlGAUgASgJEgwKBGRhdGEYBiABKAwSKwoKZXh0ZW5zaW9ucxgHIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QipQIKGlRvcGljRXZlbnRCdWxrUmVxdWVzdEVudHJ5EhAKCGVudHJ5X2lkGAEgASgJEg8KBWJ5dGVzGAIgASgMSAASQQoLY2xvdWRfZXZlbnQYAyABKAsyKi5kYXByLnByb3RvLnJ1bnRpbWUudjEuVG9waWNFdmVudENFUmVxdWVzdEgAEhQKDGNvbnRlbnRfdHlwZRgEIAEoCRJRCghtZXRhZGF0YRgFIAMoCzI/LmRhcHIucHJvdG8ucnVudGltZS52MS5Ub3BpY0V2ZW50QnVsa1JlcXVlc3RFbnRyeS5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUIHCgVldmVudCKmAgoVVG9waWNFdmVudEJ1bGtSZXF1ZXN0EgoKAmlkGAEgASgJEkIKB2VudHJpZXMYAiADKAsyMS5kYXByLnByb3RvLnJ1bnRpbWUudjEuVG9waWNFdmVudEJ1bGtSZXF1ZXN0RW50cnkSTAoIbWV0YWRhdGEYAyADKAsyOi5kYXByLnByb3RvLnJ1bnRpbWUudjEuVG9waWNFdmVudEJ1bGtSZXF1ZXN0Lk1ldGFkYXRhRW50cnkSDQoFdG9waWMYBCABKAkSEwoLcHVic3ViX25hbWUYBSABKAkSDAoEdHlwZRgGIAEoCRIMCgRwYXRoGAcgASgJGi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASKDAQobVG9waWNFdmVudEJ1bGtSZXNwb25zZUVudHJ5EhAKCGVudHJ5X2lkGAEgASgJElIKBnN0YXR1cxgCIAEoDjJCLmRhcHIucHJvdG8ucnVudGltZS52MS5Ub3BpY0V2ZW50UmVzcG9uc2UuVG9waWNFdmVudFJlc3BvbnNlU3RhdHVzIl4KFlRvcGljRXZlbnRCdWxrUmVzcG9uc2USRAoIc3RhdHVzZXMYASADKAsyMi5kYXByLnByb3RvLnJ1bnRpbWUudjEuVG9waWNFdmVudEJ1bGtSZXNwb25zZUVudHJ5Iq4BChNCaW5kaW5nRXZlbnRSZXF1ZXN0EgwKBG5hbWUYASABKAkSDAoEZGF0YRgCIAEoDBJKCghtZXRhZGF0YRgDIAMoCzI4LmRhcHIucHJvdG8ucnVudGltZS52MS5CaW5kaW5nRXZlbnRSZXF1ZXN0Lk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIogCChRCaW5kaW5nRXZlbnRSZXNwb25zZRISCgpzdG9yZV9uYW1lGAEgASgJEi8KBnN0YXRlcxgCIAMoCzIfLmRhcHIucHJvdG8uY29tbW9uLnYxLlN0YXRlSXRlbRIKCgJ0bxgDIAMoCRIMCgRkYXRhGAQgASgMElgKC2NvbmN1cnJlbmN5GAUgASgOMkMuZGFwci5wcm90by5ydW50aW1lLnYxLkJpbmRpbmdFdmVudFJlc3BvbnNlLkJpbmRpbmdFdmVudENvbmN1cnJlbmN5IjcKF0JpbmRpbmdFdmVudENvbmN1cnJlbmN5Eg4KClNFUVVFTlRJQUwQABIMCghQQVJBTExFTBABImEKHkxpc3RUb3BpY1N1YnNjcmlwdGlvbnNSZXNwb25zZRI/Cg1zdWJzY3JpcHRpb25zGAEgAygLMiguZGFwci5wcm90by5ydW50aW1lLnYxLlRvcGljU3Vic2NyaXB0aW9uIsUCChFUb3BpY1N1YnNjcmlwdGlvbhITCgtwdWJzdWJfbmFtZRgBIAEoCRINCgV0b3BpYxgCIAEoCRJICghtZXRhZGF0YRgDIAMoCzI2LmRhcHIucHJvdG8ucnVudGltZS52MS5Ub3BpY1N1YnNjcmlwdGlvbi5NZXRhZGF0YUVudHJ5EjIKBnJvdXRlcxgFIAEoCzIiLmRhcHIucHJvdG8ucnVudGltZS52MS5Ub3BpY1JvdXRlcxIZChFkZWFkX2xldHRlcl90b3BpYxgGIAEoCRJCCg5idWxrX3N1YnNjcmliZRgHIAEoCzIqLmRhcHIucHJvdG8ucnVudGltZS52MS5CdWxrU3Vic2NyaWJlQ29uZmlnGi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJPCgtUb3BpY1JvdXRlcxIvCgVydWxlcxgBIAMoCzIgLmRhcHIucHJvdG8ucnVudGltZS52MS5Ub3BpY1J1bGUSDwoHZGVmYXVsdBgCIAEoCSIoCglUb3BpY1J1bGUSDQoFbWF0Y2gYASABKAkSDAoEcGF0aBgCIAEoCSJhChNCdWxrU3Vic2NyaWJlQ29uZmlnEg8KB2VuYWJsZWQYASABKAgSGgoSbWF4X21lc3NhZ2VzX2NvdW50GAIgASgFEh0KFW1heF9hd2FpdF9kdXJhdGlvbl9tcxgDIAEoBSItChlMaXN0SW5wdXRCaW5kaW5nc1Jlc3BvbnNlEhAKCGJpbmRpbmdzGAEgAygJIhUKE0hlYWx0aENoZWNrUmVzcG9uc2UyhgQKC0FwcENhbGxiYWNrElcKCE9uSW52b2tlEiMuZGFwci5wcm90by5jb21tb24udjEuSW52b2tlUmVxdWVzdBokLmRhcHIucHJvdG8uY29tbW9uLnYxLkludm9rZVJlc3BvbnNlIgASaQoWTGlzdFRvcGljU3Vic2NyaXB0aW9ucxIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRo1LmRhcHIucHJvdG8ucnVudGltZS52MS5MaXN0VG9waWNTdWJzY3JpcHRpb25zUmVzcG9uc2UiABJlCgxPblRvcGljRXZlbnQSKC5kYXByLnByb3RvLnJ1bnRpbWUudjEuVG9waWNFdmVudFJlcXVlc3QaKS5kYXByLnByb3RvLnJ1bnRpbWUudjEuVG9waWNFdmVudFJlc3BvbnNlIgASXwoRTGlzdElucHV0QmluZGluZ3MSFi5nb29nbGUucHJvdG9idWYuRW1wdHkaMC5kYXByLnByb3RvLnJ1bnRpbWUudjEuTGlzdElucHV0QmluZGluZ3NSZXNwb25zZSIAEmsKDk9uQmluZGluZ0V2ZW50EiouZGFwci5wcm90by5ydW50aW1lLnYxLkJpbmRpbmdFdmVudFJlcXVlc3QaKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuQmluZGluZ0V2ZW50UmVzcG9uc2UiADJtChZBcHBDYWxsYmFja0hlYWx0aENoZWNrElMKC0hlYWx0aENoZWNrEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GiouZGFwci5wcm90by5ydW50aW1lLnYxLkhlYWx0aENoZWNrUmVzcG9uc2UiADLwAQoQQXBwQ2FsbGJhY2tBbHBoYRJ3ChZPbkJ1bGtUb3BpY0V2ZW50QWxwaGExEiwuZGFwci5wcm90by5ydW50aW1lLnYxLlRvcGljRXZlbnRCdWxrUmVxdWVzdBotLmRhcHIucHJvdG8ucnVudGltZS52MS5Ub3BpY0V2ZW50QnVsa1Jlc3BvbnNlIgASYwoQT25Kb2JFdmVudEFscGhhMRImLmRhcHIucHJvdG8ucnVudGltZS52MS5Kb2JFdmVudFJlcXVlc3QaJy5kYXByLnByb3RvLnJ1bnRpbWUudjEuSm9iRXZlbnRSZXNwb25zZULXAQoZY29tLmRhcHIucHJvdG8ucnVudGltZS52MUIQQXBwY2FsbGJhY2tQcm90b1ABWjFnaXRodWIuY29tL2RhcHIvZGFwci9wa2cvcHJvdG8vcnVudGltZS92MTtydW50aW1logIDRFBSqgIVRGFwci5Qcm90by5SdW50aW1lLlYxygIVRGFwclxQcm90b1xSdW50aW1lXFYx4gIhRGFwclxQcm90b1xSdW50aW1lXFYxXEdQQk1ldGFkYXRh6gIYRGFwcjo6UHJvdG86OlJ1bnRpbWU6OlYxYgZwcm90bzM", [file_google_protobuf_any, file_google_protobuf_empty, file_dapr_proto_common_v1_common, file_google_protobuf_struct]); /** - * 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} + * Describes the message dapr.proto.runtime.v1.JobEventRequest. + * Use `create(JobEventRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - +export const JobEventRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 0); /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} returns this + * Describes the message dapr.proto.runtime.v1.JobEventResponse. + * Use `create(JobEventResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - +export const JobEventResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 1); /** - * optional string topic = 6; - * @return {string} + * Describes the message dapr.proto.runtime.v1.TopicEventRequest. + * Use `create(TopicEventRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getTopic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - +export const TopicEventRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 2); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} returns this + * Describes the message dapr.proto.runtime.v1.TopicEventResponse. + * Use `create(TopicEventResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.setTopic = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - +export const TopicEventResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 3); /** - * optional string pubsub_name = 8; - * @return {string} + * Describes the enum dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus. */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getPubsubName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - +export const TopicEventResponse_TopicEventResponseStatusSchema = /*@__PURE__*/ + enumDesc(file_dapr_proto_runtime_v1_appcallback, 3, 0); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} returns this + * TopicEventResponseStatus allows apps to have finer control over handling of the message. + * + * @generated from enum dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.setPubsubName = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - +export const TopicEventResponse_TopicEventResponseStatus = /*@__PURE__*/ + tsEnum(TopicEventResponse_TopicEventResponseStatusSchema); /** - * optional string path = 9; - * @return {string} + * Describes the message dapr.proto.runtime.v1.TopicEventCERequest. + * Use `create(TopicEventCERequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - +export const TopicEventCERequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 4); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} returns this + * Describes the message dapr.proto.runtime.v1.TopicEventBulkRequestEntry. + * Use `create(TopicEventBulkRequestEntrySchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - +export const TopicEventBulkRequestEntrySchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 5); /** - * optional google.protobuf.Struct extensions = 10; - * @return {?proto.google.protobuf.Struct} + * Describes the message dapr.proto.runtime.v1.TopicEventBulkRequest. + * Use `create(TopicEventBulkRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.getExtensions = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 10)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} returns this -*/ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.setExtensions = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - +export const TopicEventBulkRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 6); /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.TopicEventRequest} returns this + * Describes the message dapr.proto.runtime.v1.TopicEventBulkResponseEntry. + * Use `create(TopicEventBulkResponseEntrySchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.clearExtensions = function() { - return this.setExtensions(undefined); -}; - +export const TopicEventBulkResponseEntrySchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 7); /** - * Returns whether this field is set. - * @return {boolean} + * Describes the message dapr.proto.runtime.v1.TopicEventBulkResponse. + * Use `create(TopicEventBulkResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventRequest.prototype.hasExtensions = function() { - return jspb.Message.getField(this, 10) != null; -}; - +export const TopicEventBulkResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 8); - - - -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} + * Describes the message dapr.proto.runtime.v1.BindingEventRequest. + * Use `create(BindingEventRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TopicEventResponse.toObject(opt_includeInstance, this); -}; - +export const BindingEventRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 9); /** - * 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.TopicEventResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.BindingEventResponse. + * Use `create(BindingEventResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventResponse.toObject = function(includeInstance, msg) { - var f, obj = { - status: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const BindingEventResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 10); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.TopicEventResponse} + * Describes the enum dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency. */ -proto.dapr.proto.runtime.v1.TopicEventResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TopicEventResponse; - return proto.dapr.proto.runtime.v1.TopicEventResponse.deserializeBinaryFromReader(msg, reader); -}; - +export const BindingEventResponse_BindingEventConcurrencySchema = /*@__PURE__*/ + enumDesc(file_dapr_proto_runtime_v1_appcallback, 10, 0); /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.runtime.v1.TopicEventResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TopicEventResponse} + * BindingEventConcurrency is the kind of concurrency + * + * @generated from enum dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency */ -proto.dapr.proto.runtime.v1.TopicEventResponse.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.TopicEventResponse.TopicEventResponseStatus} */ (reader.readEnum()); - msg.setStatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - +export const BindingEventResponse_BindingEventConcurrency = /*@__PURE__*/ + tsEnum(BindingEventResponse_BindingEventConcurrencySchema); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the message dapr.proto.runtime.v1.ListTopicSubscriptionsResponse. + * Use `create(ListTopicSubscriptionsResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TopicEventResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const ListTopicSubscriptionsResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 11); /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.TopicEventResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.TopicSubscription. + * Use `create(TopicSubscriptionSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } -}; - +export const TopicSubscriptionSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 12); /** - * @enum {number} + * Describes the message dapr.proto.runtime.v1.TopicRoutes. + * Use `create(TopicRoutesSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus = { - SUCCESS: 0, - RETRY: 1, - DROP: 2 -}; +export const TopicRoutesSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 13); /** - * optional TopicEventResponseStatus status = 1; - * @return {!proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus} + * Describes the message dapr.proto.runtime.v1.TopicRule. + * Use `create(TopicRuleSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventResponse.prototype.getStatus = function() { - return /** @type {!proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +export const TopicRuleSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 14); /** - * @param {!proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventResponse} returns this + * Describes the message dapr.proto.runtime.v1.BulkSubscribeConfig. + * Use `create(BulkSubscribeConfigSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventResponse.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - +export const BulkSubscribeConfigSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 15); - - - -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} + * Describes the message dapr.proto.runtime.v1.ListInputBindingsResponse. + * Use `create(ListInputBindingsResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TopicEventCERequest.toObject(opt_includeInstance, this); -}; - +export const ListInputBindingsResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 16); /** - * 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.TopicEventCERequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.HealthCheckResponse. + * Use `create(HealthCheckResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - source: jspb.Message.getFieldWithDefault(msg, 2, ""), - type: jspb.Message.getFieldWithDefault(msg, 3, ""), - specVersion: jspb.Message.getFieldWithDefault(msg, 4, ""), - dataContentType: jspb.Message.getFieldWithDefault(msg, 5, ""), - data: msg.getData_asB64(), - extensions: (f = msg.getExtensions()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const HealthCheckResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_appcallback, 17); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.TopicEventCERequest} + * AppCallback V1 allows user application to interact with Dapr runtime. + * User application needs to implement AppCallback service if it needs to + * receive message from dapr runtime. + * + * @generated from service dapr.proto.runtime.v1.AppCallback */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TopicEventCERequest; - return proto.dapr.proto.runtime.v1.TopicEventCERequest.deserializeBinaryFromReader(msg, reader); -}; - +export const AppCallback = /*@__PURE__*/ + serviceDesc(file_dapr_proto_runtime_v1_appcallback, 0); /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.runtime.v1.TopicEventCERequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TopicEventCERequest} + * AppCallbackHealthCheck V1 is an optional extension to AppCallback V1 to implement + * the HealthCheck method. + * + * @generated from service dapr.proto.runtime.v1.AppCallbackHealthCheck */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.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 = /** @type {string} */ (reader.readString()); - msg.setSource(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSpecVersion(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDataContentType(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 7: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setExtensions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - +export const AppCallbackHealthCheck = /*@__PURE__*/ + serviceDesc(file_dapr_proto_runtime_v1_appcallback, 1); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * AppCallbackAlpha V1 is an optional extension to AppCallback V1 to opt + * for Alpha RPCs. + * + * @generated from service dapr.proto.runtime.v1.AppCallbackAlpha */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TopicEventCERequest.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.TopicEventCERequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSource(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSpecVersion(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDataContentType(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getExtensions(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventCERequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string source = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.getSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventCERequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.setSource = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string type = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventCERequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string spec_version = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.getSpecVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventCERequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.setSpecVersion = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string data_content_type = 5; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.getDataContentType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventCERequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.setDataContentType = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bytes data = 6; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.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.TopicEventCERequest.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.TopicEventCERequest.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventCERequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - -/** - * optional google.protobuf.Struct extensions = 7; - * @return {?proto.google.protobuf.Struct} - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.getExtensions = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 7)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventCERequest} returns this -*/ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.setExtensions = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.TopicEventCERequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.clearExtensions = function() { - return this.setExtensions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.TopicEventCERequest.prototype.hasExtensions = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - -/** - * 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.TopicEventBulkRequestEntry.oneofGroups_ = [[2,3]]; - -/** - * @enum {number} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.EventCase = { - EVENT_NOT_SET: 0, - BYTES: 2, - CLOUD_EVENT: 3 -}; - -/** - * @return {proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.EventCase} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.getEventCase = function() { - return /** @type {proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.EventCase} */(jspb.Message.computeOneofCase(this, proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.oneofGroups_[0])); -}; - - - -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.TopicEventBulkRequestEntry.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.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.TopicEventBulkRequestEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.toObject = function(includeInstance, msg) { - var f, obj = { - entryId: jspb.Message.getFieldWithDefault(msg, 1, ""), - bytes: msg.getBytes_asB64(), - cloudEvent: (f = msg.getCloudEvent()) && proto.dapr.proto.runtime.v1.TopicEventCERequest.toObject(includeInstance, f), - contentType: jspb.Message.getFieldWithDefault(msg, 4, ""), - 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.TopicEventBulkRequestEntry} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry; - return proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.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.TopicEventBulkRequestEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.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.setEntryId(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBytes(value); - break; - case 3: - var value = new proto.dapr.proto.runtime.v1.TopicEventCERequest; - reader.readMessage(value,proto.dapr.proto.runtime.v1.TopicEventCERequest.deserializeBinaryFromReader); - msg.setCloudEvent(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setContentType(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.TopicEventBulkRequestEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.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.TopicEventBulkRequestEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEntryId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeBytes( - 2, - f - ); - } - f = message.getCloudEvent(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.dapr.proto.runtime.v1.TopicEventCERequest.serializeBinaryToWriter - ); - } - f = message.getContentType(); - if (f.length > 0) { - writer.writeString( - 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 entry_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.getEntryId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.setEntryId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes bytes = 2; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.getBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes bytes = 2; - * This is a type-conversion wrapper around `getBytes()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.getBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBytes())); -}; - - -/** - * optional bytes bytes = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBytes()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.getBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.setBytes = function(value) { - return jspb.Message.setOneofField(this, 2, proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.clearBytes = function() { - return jspb.Message.setOneofField(this, 2, proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.hasBytes = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional TopicEventCERequest cloud_event = 3; - * @return {?proto.dapr.proto.runtime.v1.TopicEventCERequest} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.getCloudEvent = function() { - return /** @type{?proto.dapr.proto.runtime.v1.TopicEventCERequest} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.TopicEventCERequest, 3)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.TopicEventCERequest|undefined} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry} returns this -*/ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.setCloudEvent = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.clearCloudEvent = function() { - return this.setCloudEvent(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.hasCloudEvent = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string content_type = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.getContentType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.setContentType = function(value) { - return jspb.Message.setProto3StringField(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.TopicEventBulkRequestEntry.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.TopicEventBulkRequestEntry} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.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.TopicEventBulkRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TopicEventBulkRequest.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.TopicEventBulkRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - entriesList: jspb.Message.toObjectList(msg.getEntriesList(), - proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.toObject, includeInstance), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - topic: jspb.Message.getFieldWithDefault(msg, 4, ""), - pubsubName: jspb.Message.getFieldWithDefault(msg, 5, ""), - type: jspb.Message.getFieldWithDefault(msg, 6, ""), - path: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - 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.TopicEventBulkRequest} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TopicEventBulkRequest; - return proto.dapr.proto.runtime.v1.TopicEventBulkRequest.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.TopicEventBulkRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequest} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.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.TopicEventBulkRequestEntry; - reader.readMessage(value,proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.deserializeBinaryFromReader); - msg.addEntries(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.setTopic(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPubsubName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(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.TopicEventBulkRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TopicEventBulkRequest.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.TopicEventBulkRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEntriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry.serializeBinaryToWriter - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getTopic(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPubsubName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated TopicEventBulkRequestEntry entries = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.getEntriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequest} returns this -*/ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.setEntriesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.addEntries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.TopicEventBulkRequestEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.clearEntriesList = function() { - return this.setEntriesList([]); -}; - - -/** - * 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.TopicEventBulkRequest.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.TopicEventBulkRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - - -/** - * optional string topic = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.getTopic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.setTopic = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string pubsub_name = 5; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.getPubsubName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.setPubsubName = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string type = 6; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string path = 7; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkRequest} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkRequest.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 7, 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.TopicEventBulkResponseEntry.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.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.TopicEventBulkResponseEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.toObject = function(includeInstance, msg) { - var f, obj = { - entryId: jspb.Message.getFieldWithDefault(msg, 1, ""), - status: 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.TopicEventBulkResponseEntry} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry; - return proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.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.TopicEventBulkResponseEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.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.setEntryId(value); - break; - case 2: - var value = /** @type {!proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus} */ (reader.readEnum()); - msg.setStatus(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.TopicEventBulkResponseEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.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.TopicEventBulkResponseEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEntryId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional string entry_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.prototype.getEntryId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.prototype.setEntryId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional TopicEventResponse.TopicEventResponseStatus status = 2; - * @return {!proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.prototype.getStatus = function() { - return /** @type {!proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponse.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.runtime.v1.TopicEventBulkResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TopicEventBulkResponse.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.TopicEventBulkResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponse.toObject = function(includeInstance, msg) { - var f, obj = { - statusesList: jspb.Message.toObjectList(msg.getStatusesList(), - proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.toObject, includeInstance) - }; - - 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.TopicEventBulkResponse} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TopicEventBulkResponse; - return proto.dapr.proto.runtime.v1.TopicEventBulkResponse.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.TopicEventBulkResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkResponse} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponse.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.TopicEventBulkResponseEntry; - reader.readMessage(value,proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.deserializeBinaryFromReader); - msg.addStatuses(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.TopicEventBulkResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TopicEventBulkResponse.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.TopicEventBulkResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatusesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated TopicEventBulkResponseEntry statuses = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponse.prototype.getStatusesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkResponse} returns this -*/ -proto.dapr.proto.runtime.v1.TopicEventBulkResponse.prototype.setStatusesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry} - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponse.prototype.addStatuses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.TopicEventBulkResponseEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.TopicEventBulkResponse} returns this - */ -proto.dapr.proto.runtime.v1.TopicEventBulkResponse.prototype.clearStatusesList = function() { - return this.setStatusesList([]); -}; - - - - - -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.BindingEventRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.BindingEventRequest.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.BindingEventRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BindingEventRequest.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) : [] - }; - - 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.BindingEventRequest} - */ -proto.dapr.proto.runtime.v1.BindingEventRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.BindingEventRequest; - return proto.dapr.proto.runtime.v1.BindingEventRequest.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.BindingEventRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.BindingEventRequest} - */ -proto.dapr.proto.runtime.v1.BindingEventRequest.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 {!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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.BindingEventRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.BindingEventRequest.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.BindingEventRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BindingEventRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - 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(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.BindingEventRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.BindingEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.BindingEventRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes data = 2; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.BindingEventRequest.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes data = 2; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.BindingEventRequest.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * 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.BindingEventRequest.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.BindingEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.BindingEventRequest.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(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.BindingEventRequest.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.BindingEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.BindingEventRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.repeatedFields_ = [2,3]; - - - -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.BindingEventResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.BindingEventResponse.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.BindingEventResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.toObject = function(includeInstance, msg) { - var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - statesList: jspb.Message.toObjectList(msg.getStatesList(), - dapr_proto_common_v1_common_pb.StateItem.toObject, includeInstance), - toList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - data: msg.getData_asB64(), - concurrency: jspb.Message.getFieldWithDefault(msg, 5, 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.BindingEventResponse} - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.BindingEventResponse; - return proto.dapr.proto.runtime.v1.BindingEventResponse.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.BindingEventResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.BindingEventResponse} - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.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 = new dapr_proto_common_v1_common_pb.StateItem; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StateItem.deserializeBinaryFromReader); - msg.addStates(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addTo(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 5: - var value = /** @type {!proto.dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency} */ (reader.readEnum()); - msg.setConcurrency(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.BindingEventResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.BindingEventResponse.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.BindingEventResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStoreName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStatesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - dapr_proto_common_v1_common_pb.StateItem.serializeBinaryToWriter - ); - } - f = message.getToList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getConcurrency(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency = { - SEQUENTIAL: 0, - PARALLEL: 1 -}; - -/** - * optional string store_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.getStoreName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.BindingEventResponse} returns this - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated dapr.proto.common.v1.StateItem states = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.getStatesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, dapr_proto_common_v1_common_pb.StateItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.BindingEventResponse} returns this -*/ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.setStatesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.common.v1.StateItem=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.common.v1.StateItem} - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.addStates = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.common.v1.StateItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.BindingEventResponse} returns this - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.clearStatesList = function() { - return this.setStatesList([]); -}; - - -/** - * repeated string to = 3; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.getToList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.BindingEventResponse} returns this - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.setToList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.BindingEventResponse} returns this - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.addTo = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.BindingEventResponse} returns this - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.clearToList = function() { - return this.setToList([]); -}; - - -/** - * optional bytes data = 4; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.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.BindingEventResponse.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.BindingEventResponse.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.BindingEventResponse} returns this - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional BindingEventConcurrency concurrency = 5; - * @return {!proto.dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency} - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.getConcurrency = function() { - return /** @type {!proto.dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency} value - * @return {!proto.dapr.proto.runtime.v1.BindingEventResponse} returns this - */ -proto.dapr.proto.runtime.v1.BindingEventResponse.prototype.setConcurrency = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.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.runtime.v1.ListTopicSubscriptionsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.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.ListTopicSubscriptionsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - subscriptionsList: jspb.Message.toObjectList(msg.getSubscriptionsList(), - proto.dapr.proto.runtime.v1.TopicSubscription.toObject, includeInstance) - }; - - 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.ListTopicSubscriptionsResponse} - */ -proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse; - return proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.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.ListTopicSubscriptionsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse} - */ -proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.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.TopicSubscription; - reader.readMessage(value,proto.dapr.proto.runtime.v1.TopicSubscription.deserializeBinaryFromReader); - msg.addSubscriptions(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.ListTopicSubscriptionsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.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.ListTopicSubscriptionsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubscriptionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.runtime.v1.TopicSubscription.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated TopicSubscription subscriptions = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.prototype.getSubscriptionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.TopicSubscription, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse} returns this -*/ -proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.prototype.setSubscriptionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.TopicSubscription=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.TopicSubscription} - */ -proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.prototype.addSubscriptions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.TopicSubscription, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse} returns this - */ -proto.dapr.proto.runtime.v1.ListTopicSubscriptionsResponse.prototype.clearSubscriptionsList = function() { - return this.setSubscriptionsList([]); -}; - - - - - -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.TopicSubscription.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TopicSubscription.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.TopicSubscription} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicSubscription.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) : [], - routes: (f = msg.getRoutes()) && proto.dapr.proto.runtime.v1.TopicRoutes.toObject(includeInstance, f), - deadLetterTopic: jspb.Message.getFieldWithDefault(msg, 6, ""), - bulkSubscribe: (f = msg.getBulkSubscribe()) && proto.dapr.proto.runtime.v1.BulkSubscribeConfig.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.TopicSubscription} - */ -proto.dapr.proto.runtime.v1.TopicSubscription.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TopicSubscription; - return proto.dapr.proto.runtime.v1.TopicSubscription.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.TopicSubscription} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TopicSubscription} - */ -proto.dapr.proto.runtime.v1.TopicSubscription.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 5: - var value = new proto.dapr.proto.runtime.v1.TopicRoutes; - reader.readMessage(value,proto.dapr.proto.runtime.v1.TopicRoutes.deserializeBinaryFromReader); - msg.setRoutes(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDeadLetterTopic(value); - break; - case 7: - var value = new proto.dapr.proto.runtime.v1.BulkSubscribeConfig; - reader.readMessage(value,proto.dapr.proto.runtime.v1.BulkSubscribeConfig.deserializeBinaryFromReader); - msg.setBulkSubscribe(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.TopicSubscription.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TopicSubscription.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.TopicSubscription} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicSubscription.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.getRoutes(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.dapr.proto.runtime.v1.TopicRoutes.serializeBinaryToWriter - ); - } - f = message.getDeadLetterTopic(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getBulkSubscribe(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.dapr.proto.runtime.v1.BulkSubscribeConfig.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string pubsub_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.getPubsubName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicSubscription} returns this - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.setPubsubName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string topic = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.getTopic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicSubscription} returns this - */ -proto.dapr.proto.runtime.v1.TopicSubscription.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.TopicSubscription.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.TopicSubscription} returns this - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - - -/** - * optional TopicRoutes routes = 5; - * @return {?proto.dapr.proto.runtime.v1.TopicRoutes} - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.getRoutes = function() { - return /** @type{?proto.dapr.proto.runtime.v1.TopicRoutes} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.TopicRoutes, 5)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.TopicRoutes|undefined} value - * @return {!proto.dapr.proto.runtime.v1.TopicSubscription} returns this -*/ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.setRoutes = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.TopicSubscription} returns this - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.clearRoutes = function() { - return this.setRoutes(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.hasRoutes = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string dead_letter_topic = 6; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.getDeadLetterTopic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicSubscription} returns this - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.setDeadLetterTopic = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional BulkSubscribeConfig bulk_subscribe = 7; - * @return {?proto.dapr.proto.runtime.v1.BulkSubscribeConfig} - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.getBulkSubscribe = function() { - return /** @type{?proto.dapr.proto.runtime.v1.BulkSubscribeConfig} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.BulkSubscribeConfig, 7)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.BulkSubscribeConfig|undefined} value - * @return {!proto.dapr.proto.runtime.v1.TopicSubscription} returns this -*/ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.setBulkSubscribe = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.TopicSubscription} returns this - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.clearBulkSubscribe = function() { - return this.setBulkSubscribe(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.TopicSubscription.prototype.hasBulkSubscribe = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.TopicRoutes.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.runtime.v1.TopicRoutes.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TopicRoutes.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.TopicRoutes} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicRoutes.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.dapr.proto.runtime.v1.TopicRule.toObject, includeInstance), - pb_default: 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.TopicRoutes} - */ -proto.dapr.proto.runtime.v1.TopicRoutes.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TopicRoutes; - return proto.dapr.proto.runtime.v1.TopicRoutes.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.TopicRoutes} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TopicRoutes} - */ -proto.dapr.proto.runtime.v1.TopicRoutes.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.TopicRule; - reader.readMessage(value,proto.dapr.proto.runtime.v1.TopicRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDefault(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.TopicRoutes.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TopicRoutes.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.TopicRoutes} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicRoutes.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.runtime.v1.TopicRule.serializeBinaryToWriter - ); - } - f = message.getDefault(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * repeated TopicRule rules = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.TopicRoutes.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.TopicRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.TopicRoutes} returns this -*/ -proto.dapr.proto.runtime.v1.TopicRoutes.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.TopicRule=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.TopicRule} - */ -proto.dapr.proto.runtime.v1.TopicRoutes.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.TopicRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.TopicRoutes} returns this - */ -proto.dapr.proto.runtime.v1.TopicRoutes.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - -/** - * optional string default = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicRoutes.prototype.getDefault = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicRoutes} returns this - */ -proto.dapr.proto.runtime.v1.TopicRoutes.prototype.setDefault = 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.runtime.v1.TopicRule.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TopicRule.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.TopicRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicRule.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.TopicRule} - */ -proto.dapr.proto.runtime.v1.TopicRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.TopicRule; - return proto.dapr.proto.runtime.v1.TopicRule.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.TopicRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TopicRule} - */ -proto.dapr.proto.runtime.v1.TopicRule.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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.TopicRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TopicRule.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.TopicRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TopicRule.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 string match = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicRule.prototype.getMatch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicRule} returns this - */ -proto.dapr.proto.runtime.v1.TopicRule.prototype.setMatch = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TopicRule.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TopicRule} returns this - */ -proto.dapr.proto.runtime.v1.TopicRule.prototype.setPath = 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.runtime.v1.BulkSubscribeConfig.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.BulkSubscribeConfig.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.BulkSubscribeConfig} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkSubscribeConfig.toObject = function(includeInstance, msg) { - var f, obj = { - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - maxMessagesCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - maxAwaitDurationMs: jspb.Message.getFieldWithDefault(msg, 3, 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.BulkSubscribeConfig} - */ -proto.dapr.proto.runtime.v1.BulkSubscribeConfig.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.BulkSubscribeConfig; - return proto.dapr.proto.runtime.v1.BulkSubscribeConfig.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.BulkSubscribeConfig} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.BulkSubscribeConfig} - */ -proto.dapr.proto.runtime.v1.BulkSubscribeConfig.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.setEnabled(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxMessagesCount(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxAwaitDurationMs(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.BulkSubscribeConfig.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.BulkSubscribeConfig.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.BulkSubscribeConfig} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkSubscribeConfig.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnabled(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getMaxMessagesCount(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getMaxAwaitDurationMs(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } -}; - - -/** - * optional bool enabled = 1; - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.BulkSubscribeConfig.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.BulkSubscribeConfig} returns this - */ -proto.dapr.proto.runtime.v1.BulkSubscribeConfig.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional int32 max_messages_count = 2; - * @return {number} - */ -proto.dapr.proto.runtime.v1.BulkSubscribeConfig.prototype.getMaxMessagesCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.BulkSubscribeConfig} returns this - */ -proto.dapr.proto.runtime.v1.BulkSubscribeConfig.prototype.setMaxMessagesCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int32 max_await_duration_ms = 3; - * @return {number} - */ -proto.dapr.proto.runtime.v1.BulkSubscribeConfig.prototype.getMaxAwaitDurationMs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.BulkSubscribeConfig} returns this - */ -proto.dapr.proto.runtime.v1.BulkSubscribeConfig.prototype.setMaxAwaitDurationMs = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ListInputBindingsResponse.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.runtime.v1.ListInputBindingsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ListInputBindingsResponse.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.ListInputBindingsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListInputBindingsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - bindingsList: (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.runtime.v1.ListInputBindingsResponse} - */ -proto.dapr.proto.runtime.v1.ListInputBindingsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ListInputBindingsResponse; - return proto.dapr.proto.runtime.v1.ListInputBindingsResponse.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.ListInputBindingsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ListInputBindingsResponse} - */ -proto.dapr.proto.runtime.v1.ListInputBindingsResponse.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.addBindings(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.ListInputBindingsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ListInputBindingsResponse.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.ListInputBindingsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListInputBindingsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBindingsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string bindings = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ListInputBindingsResponse.prototype.getBindingsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ListInputBindingsResponse} returns this - */ -proto.dapr.proto.runtime.v1.ListInputBindingsResponse.prototype.setBindingsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ListInputBindingsResponse} returns this - */ -proto.dapr.proto.runtime.v1.ListInputBindingsResponse.prototype.addBindings = 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.runtime.v1.ListInputBindingsResponse} returns this - */ -proto.dapr.proto.runtime.v1.ListInputBindingsResponse.prototype.clearBindingsList = function() { - return this.setBindingsList([]); -}; - - - - - -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.HealthCheckResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.HealthCheckResponse.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.HealthCheckResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.HealthCheckResponse.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.HealthCheckResponse} - */ -proto.dapr.proto.runtime.v1.HealthCheckResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.HealthCheckResponse; - return proto.dapr.proto.runtime.v1.HealthCheckResponse.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.HealthCheckResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.HealthCheckResponse} - */ -proto.dapr.proto.runtime.v1.HealthCheckResponse.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.HealthCheckResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.HealthCheckResponse.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.HealthCheckResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.HealthCheckResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - +export const AppCallbackAlpha = /*@__PURE__*/ + serviceDesc(file_dapr_proto_runtime_v1_appcallback, 2); -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/dapr.proto b/src/proto/dapr/proto/runtime/v1/dapr.proto deleted file mode 100644 index 8ecc3984..00000000 --- a/src/proto/dapr/proto/runtime/v1/dapr.proto +++ /dev/null @@ -1,1276 +0,0 @@ -/* -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. -*/ - -syntax = "proto3"; - -package dapr.proto.runtime.v1; - -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"; -option java_package = "io.dapr.v1"; -option go_package = "github.com/dapr/dapr/pkg/proto/runtime/v1;runtime"; - -// Dapr service provides APIs to user application to access Dapr building blocks. -service Dapr { - // Invokes a method on a remote Dapr app. - // Deprecated: Use proxy mode service invocation instead. - rpc InvokeService(InvokeServiceRequest) returns (common.v1.InvokeResponse) {} - - // Gets the state for a specific key. - rpc GetState(GetStateRequest) returns (GetStateResponse) {} - - // Gets a bulk of state items for a list of keys - rpc GetBulkState(GetBulkStateRequest) returns (GetBulkStateResponse) {} - - // Saves the state for a specific key. - rpc SaveState(SaveStateRequest) returns (google.protobuf.Empty) {} - - // Queries the state. - rpc QueryStateAlpha1(QueryStateRequest) returns (QueryStateResponse) {} - - // Deletes the state for a specific key. - rpc DeleteState(DeleteStateRequest) returns (google.protobuf.Empty) {} - - // Deletes a bulk of state items for a list of keys - rpc DeleteBulkState(DeleteBulkStateRequest) returns (google.protobuf.Empty) {} - - // Executes transactions for a specified store - rpc ExecuteStateTransaction(ExecuteStateTransactionRequest) returns (google.protobuf.Empty) {} - - // Publishes events to the specific topic. - rpc PublishEvent(PublishEventRequest) returns (google.protobuf.Empty) {} - - // 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) {} - - // Gets secrets from secret stores. - rpc GetSecret(GetSecretRequest) returns (GetSecretResponse) {} - - // Gets a bulk of secrets - rpc GetBulkSecret(GetBulkSecretRequest) returns (GetBulkSecretResponse) {} - - // Register an actor timer. - rpc RegisterActorTimer(RegisterActorTimerRequest) returns (google.protobuf.Empty) {} - - // Unregister an actor timer. - rpc UnregisterActorTimer(UnregisterActorTimerRequest) returns (google.protobuf.Empty) {} - - // Register an actor reminder. - rpc RegisterActorReminder(RegisterActorReminderRequest) returns (google.protobuf.Empty) {} - - // Unregister an actor reminder. - rpc UnregisterActorReminder(UnregisterActorReminderRequest) returns (google.protobuf.Empty) {} - - // Gets the state for a specific actor. - rpc GetActorState(GetActorStateRequest) returns (GetActorStateResponse) {} - - // Executes state transactions for a specified actor - rpc ExecuteActorStateTransaction(ExecuteActorStateTransactionRequest) returns (google.protobuf.Empty) {} - - // InvokeActor calls a method on an actor. - rpc InvokeActor (InvokeActorRequest) returns (InvokeActorResponse) {} - - // GetConfiguration gets configuration from configuration store. - rpc GetConfigurationAlpha1(GetConfigurationRequest) returns (GetConfigurationResponse) {} - - // GetConfiguration gets configuration from configuration store. - rpc GetConfiguration(GetConfigurationRequest) returns (GetConfigurationResponse) {} - - // SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream - rpc SubscribeConfigurationAlpha1(SubscribeConfigurationRequest) returns (stream SubscribeConfigurationResponse) {} - - // SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream - rpc SubscribeConfiguration(SubscribeConfigurationRequest) returns (stream SubscribeConfigurationResponse) {} - - // UnSubscribeConfiguration unsubscribe the subscription of configuration - rpc UnsubscribeConfigurationAlpha1(UnsubscribeConfigurationRequest) returns (UnsubscribeConfigurationResponse) {} - - // UnSubscribeConfiguration unsubscribe the subscription of configuration - rpc UnsubscribeConfiguration(UnsubscribeConfigurationRequest) returns (UnsubscribeConfigurationResponse) {} - - // TryLockAlpha1 tries to get a lock with an expiry. - rpc TryLockAlpha1(TryLockRequest)returns (TryLockResponse) {} - - // UnlockAlpha1 unlocks a lock. - rpc UnlockAlpha1(UnlockRequest)returns (UnlockResponse) {} - - // EncryptAlpha1 encrypts a message using the Dapr encryption scheme and a key stored in the vault. - rpc EncryptAlpha1(stream EncryptRequest) returns (stream EncryptResponse); - - // DecryptAlpha1 decrypts a message using the Dapr encryption scheme and a key stored in the vault. - rpc DecryptAlpha1(stream DecryptRequest) returns (stream DecryptResponse); - - // Gets metadata of the sidecar - rpc GetMetadata (GetMetadataRequest) returns (GetMetadataResponse) {} - - // Sets value in extended metadata of the sidecar - rpc SetMetadata (SetMetadataRequest) returns (google.protobuf.Empty) {} - - // SubtleGetKeyAlpha1 returns the public part of an asymmetric key stored in the vault. - rpc SubtleGetKeyAlpha1(SubtleGetKeyRequest) returns (SubtleGetKeyResponse); - - // SubtleEncryptAlpha1 encrypts a small message using a key stored in the vault. - rpc SubtleEncryptAlpha1(SubtleEncryptRequest) returns (SubtleEncryptResponse); - - // SubtleDecryptAlpha1 decrypts a small message using a key stored in the vault. - rpc SubtleDecryptAlpha1(SubtleDecryptRequest) returns (SubtleDecryptResponse); - - // SubtleWrapKeyAlpha1 wraps a key using a key stored in the vault. - rpc SubtleWrapKeyAlpha1(SubtleWrapKeyRequest) returns (SubtleWrapKeyResponse); - - // SubtleUnwrapKeyAlpha1 unwraps a key using a key stored in the vault. - rpc SubtleUnwrapKeyAlpha1(SubtleUnwrapKeyRequest) returns (SubtleUnwrapKeyResponse); - - // SubtleSignAlpha1 signs a message using a key stored in the vault. - rpc SubtleSignAlpha1(SubtleSignRequest) returns (SubtleSignResponse); - - // SubtleVerifyAlpha1 verifies the signature of a message using a key stored in the vault. - rpc SubtleVerifyAlpha1(SubtleVerifyRequest) returns (SubtleVerifyResponse); - - // Starts a new instance of a workflow - rpc StartWorkflowAlpha1 (StartWorkflowRequest) returns (StartWorkflowResponse) {} - - // Gets details about a started workflow instance - rpc GetWorkflowAlpha1 (GetWorkflowRequest) returns (GetWorkflowResponse) {} - - // Purge Workflow - rpc PurgeWorkflowAlpha1 (PurgeWorkflowRequest) returns (google.protobuf.Empty) {} - - // Terminates a running workflow instance - rpc TerminateWorkflowAlpha1 (TerminateWorkflowRequest) returns (google.protobuf.Empty) {} - - // Pauses a running workflow instance - rpc PauseWorkflowAlpha1 (PauseWorkflowRequest) returns (google.protobuf.Empty) {} - - // Resumes a paused workflow instance - rpc ResumeWorkflowAlpha1 (ResumeWorkflowRequest) returns (google.protobuf.Empty) {} - - // Raise an event to a running workflow instance - rpc RaiseEventWorkflowAlpha1 (RaiseEventWorkflowRequest) returns (google.protobuf.Empty) {} - - // Starts a new instance of a workflow - rpc StartWorkflowBeta1 (StartWorkflowRequest) returns (StartWorkflowResponse) {} - - // Gets details about a started workflow instance - rpc GetWorkflowBeta1 (GetWorkflowRequest) returns (GetWorkflowResponse) {} - - // Purge Workflow - rpc PurgeWorkflowBeta1 (PurgeWorkflowRequest) returns (google.protobuf.Empty) {} - - // Terminates a running workflow instance - rpc TerminateWorkflowBeta1 (TerminateWorkflowRequest) returns (google.protobuf.Empty) {} - - // Pauses a running workflow instance - rpc PauseWorkflowBeta1 (PauseWorkflowRequest) returns (google.protobuf.Empty) {} - - // Resumes a paused workflow instance - rpc ResumeWorkflowBeta1 (ResumeWorkflowRequest) returns (google.protobuf.Empty) {} - - // Raise an event to a running workflow instance - 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. -message InvokeServiceRequest { - // Required. Callee's app id. - string id = 1; - - // Required. message which will be delivered to callee. - common.v1.InvokeRequest message = 3; -} - -// GetStateRequest is the message to get key-value states from specific state store. -message GetStateRequest { - // The name of state store. - string store_name = 1; - - // The key of the desired state - string key = 2; - - // The read consistency of the state store. - common.v1.StateOptions.StateConsistency consistency = 3; - - // The metadata which will be sent to state store components. - map metadata = 4; -} - -// GetBulkStateRequest is the message to get a list of key-value states from specific state store. -message GetBulkStateRequest { - // The name of state store. - string store_name = 1; - - // The keys to get. - repeated string keys = 2; - - // The number of parallel operations executed on the state store for a get operation. - int32 parallelism = 3; - - // The metadata which will be sent to state store components. - map metadata = 4; -} - -// GetBulkStateResponse is the response conveying the list of state values. -message GetBulkStateResponse { - // The list of items containing the keys to get values for. - repeated BulkStateItem items = 1; -} - -// BulkStateItem is the response item for a bulk get operation. -// Return values include the item key, data and etag. -message BulkStateItem { - // state item key - string key = 1; - - // The byte array data - bytes data = 2; - - // The entity tag which represents the specific version of data. - // ETag format is defined by the corresponding data store. - string etag = 3; - - // The error that was returned from the state store in case of a failed get operation. - string error = 4; - - // The metadata which will be sent to app. - map metadata = 5; -} - -// GetStateResponse is the response conveying the state value and etag. -message GetStateResponse { - // The byte array data - bytes data = 1; - - // The entity tag which represents the specific version of data. - // ETag format is defined by the corresponding data store. - string etag = 2; - - // The metadata which will be sent to app. - map metadata = 3; -} - -// DeleteStateRequest is the message to delete key-value states in the specific state store. -message DeleteStateRequest { - // The name of state store. - string store_name = 1; - - // The key of the desired state - string key = 2; - - // The entity tag which represents the specific version of data. - // The exact ETag format is defined by the corresponding data store. - common.v1.Etag etag = 3; - - // State operation options which includes concurrency/ - // consistency/retry_policy. - common.v1.StateOptions options = 4; - - // The metadata which will be sent to state store components. - map metadata = 5; -} - -// DeleteBulkStateRequest is the message to delete a list of key-value states from specific state store. -message DeleteBulkStateRequest { - // The name of state store. - string store_name = 1; - - // The array of the state key values. - repeated common.v1.StateItem states = 2; -} - -// SaveStateRequest is the message to save multiple states into state store. -message SaveStateRequest { - // The name of state store. - string store_name = 1; - - // The array of the state key values. - repeated common.v1.StateItem states = 2; -} - -// QueryStateRequest is the message to query state store. -message QueryStateRequest { - // The name of state store. - string store_name = 1 [json_name = "storeName"]; - - // The query in JSON format. - string query = 2; - - // The metadata which will be sent to state store components. - map metadata = 3; -} - -message QueryStateItem { - // The object key. - string key = 1; - - // The object value. - bytes data = 2; - - // The entity tag which represents the specific version of data. - // ETag format is defined by the corresponding data store. - string etag = 3; - - // The error message indicating an error in processing of the query result. - string error = 4; -} - -// QueryStateResponse is the response conveying the query results. -message QueryStateResponse { - // An array of query results. - repeated QueryStateItem results = 1; - - // Pagination token. - string token = 2; - - // The metadata which will be sent to app. - map metadata = 3; -} - -// PublishEventRequest is the message to publish event data to pubsub topic -message PublishEventRequest { - // The name of the pubsub component - string pubsub_name = 1; - - // The pubsub topic - string topic = 2; - - // The data which will be published to topic. - bytes data = 3; - - // The content type for the data (optional). - string data_content_type = 4; - - // The metadata passing to pub components - // - // metadata property: - // - key : the key of the message. - map metadata = 5; -} - -// BulkPublishRequest is the message to bulk publish events to pubsub topic -message BulkPublishRequest { - // The name of the pubsub component - string pubsub_name = 1; - - // The pubsub topic - string topic = 2; - - // The entries which contain the individual events and associated details to be published - repeated BulkPublishRequestEntry entries = 3; - - // The request level metadata passing to to the pubsub components - map metadata = 4; -} - -// BulkPublishRequestEntry is the message containing the event to be bulk published -message BulkPublishRequestEntry { - // The request scoped unique ID referring to this message. Used to map status in response - string entry_id = 1; - - // The event which will be pulished to the topic - bytes event = 2; - - // The content type for the event - string content_type = 3; - - // The event level metadata passing to the pubsub component - map metadata = 4; -} - -// BulkPublishResponse is the message returned from a BulkPublishEvent call -message BulkPublishResponse { - // The entries for different events that failed publish in the BulkPublishEvent call - repeated BulkPublishResponseFailedEntry failedEntries = 1; -} - -// BulkPublishResponseFailedEntry is the message containing the entryID and error of a failed event in BulkPublishEvent call -message BulkPublishResponseFailedEntry { - // The response scoped unique ID referring to this message - string entry_id = 1; - - // The error message if any on failure - 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. - string name = 1; - - // The data which will be sent to output binding. - bytes data = 2; - - // The metadata passing to output binding components - // - // Common metadata property: - // - ttlInSeconds : the time to live in seconds for the message. - // If set in the binding definition will cause all messages to - // have a default time to live. The message ttl overrides any value - // in the binding definition. - map metadata = 3; - - // The name of the operation type for the binding to invoke - string operation = 4; -} - -// InvokeBindingResponse is the message returned from an output binding invocation -message InvokeBindingResponse { - // The data which will be sent to output binding. - bytes data = 1; - - // The metadata returned from an external system - map metadata = 2; -} - -// GetSecretRequest is the message to get secret from secret store. -message GetSecretRequest { - // The name of secret store. - string store_name = 1 [json_name = "storeName"]; - - // The name of secret key. - string key = 2; - - // The metadata which will be sent to secret store components. - map metadata = 3; -} - -// GetSecretResponse is the response message to convey the requested secret. -message GetSecretResponse { - // data is the secret value. Some secret store, such as kubernetes secret - // store, can save multiple secrets for single secret key. - map data = 1; -} - -// GetBulkSecretRequest is the message to get the secrets from secret store. -message GetBulkSecretRequest { - // The name of secret store. - string store_name = 1 [json_name = "storeName"]; - - // The metadata which will be sent to secret store components. - map metadata = 2; -} - -// SecretResponse is a map of decrypted string/string values -message SecretResponse { - map secrets = 1; -} - -// GetBulkSecretResponse is the response message to convey the requested secrets. -message GetBulkSecretResponse { - // data hold the secret values. Some secret store, such as kubernetes secret - // store, can save multiple secrets for single secret key. - map data = 1; -} - -// TransactionalStateOperation is the message to execute a specified operation with a key-value pair. -message TransactionalStateOperation { - // The type of operation to be executed - string operationType = 1; - - // State values to be operated on - common.v1.StateItem request = 2; -} - -// ExecuteStateTransactionRequest is the message to execute multiple operations on a specified store. -message ExecuteStateTransactionRequest { - // Required. name of state store. - string storeName = 1; - - // Required. transactional operation list. - repeated TransactionalStateOperation operations = 2; - - // The metadata used for transactional operations. - map metadata = 3; -} - -// RegisterActorTimerRequest is the message to register a timer for an actor of a given type and id. -message RegisterActorTimerRequest { - string actor_type = 1 [json_name = "actorType"]; - string actor_id = 2 [json_name = "actorId"]; - string name = 3; - string due_time = 4 [json_name = "dueTime"]; - string period = 5; - string callback = 6; - bytes data = 7; - string ttl = 8; -} - -// UnregisterActorTimerRequest is the message to unregister an actor timer -message UnregisterActorTimerRequest { - 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 [json_name = "actorType"]; - string actor_id = 2 [json_name = "actorId"]; - string name = 3; - string due_time = 4 [json_name = "dueTime"]; - string period = 5; - bytes data = 6; - string ttl = 7; -} - -// UnregisterActorReminderRequest is the message to unregister an actor reminder. -message UnregisterActorReminderRequest { - 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 [json_name = "actorType"]; - string actor_id = 2 [json_name = "actorId"]; - string key = 3; -} - -// GetActorStateResponse is the response conveying the actor's state value. -message GetActorStateResponse { - bytes data = 1; - - // The metadata which will be sent to app. - map metadata = 2; -} - -// ExecuteActorStateTransactionRequest is the message to execute multiple operations on a specified actor. -message ExecuteActorStateTransactionRequest { - string actor_type = 1 [json_name = "actorType"]; - string actor_id = 2 [json_name = "actorId"]; - repeated TransactionalActorStateOperation operations = 3; -} - -// TransactionalActorStateOperation is the message to execute a specified operation with a key-value pair. -message TransactionalActorStateOperation { - string operationType = 1; - string key = 2; - google.protobuf.Any value = 3; - // The metadata used for transactional operations. - // - // Common metadata property: - // - ttlInSeconds : the time to live in seconds for the stored value. - map metadata = 4; -} - -// InvokeActorRequest is the message to call an actor. -message InvokeActorRequest { - string actor_type = 1 [json_name = "actorType"]; - string actor_id = 2 [json_name = "actorId"]; - string method = 3; - bytes data = 4; - map metadata = 5; -} - -// InvokeActorResponse is the method that returns an actor invocation response. -message InvokeActorResponse { - bytes data = 1; -} - -// GetMetadataRequest is the message for the GetMetadata request. -message GetMetadataRequest { - // Empty -} - -// GetMetadataResponse is a message that is returned on GetMetadata rpc call. -message GetMetadataResponse { - string id = 1; - // Deprecated alias for actor_runtime.active_actors. - repeated ActiveActorsCount active_actors_count = 2 [json_name = "actors", deprecated = true]; - repeated RegisteredComponents registered_components = 3 [json_name = "components"]; - map extended_metadata = 4 [json_name = "extended"]; - repeated PubsubSubscription subscriptions = 5 [json_name = "subscriptions"]; - repeated MetadataHTTPEndpoint http_endpoints = 6 [json_name = "httpEndpoints"]; - AppConnectionProperties app_connection_properties = 7 [json_name = "appConnectionProperties"]; - string runtime_version = 8 [json_name = "runtimeVersion"]; - repeated string enabled_features = 9 [json_name = "enabledFeatures"]; - ActorRuntime actor_runtime = 10 [json_name = "actorRuntime"]; - //TODO: Cassie: probably add scheduler runtime status -} - -message ActorRuntime { - enum ActorRuntimeStatus { - // Indicates that the actor runtime is still being initialized. - INITIALIZING = 0; - // Indicates that the actor runtime is disabled. - // This normally happens when Dapr is started without "placement-host-address" - DISABLED = 1; - // Indicates the actor runtime is running, either as an actor host or client. - RUNNING = 2; - } - - // Contains an enum indicating whether the actor runtime has been initialized. - ActorRuntimeStatus runtime_status = 1 [json_name = "runtimeStatus"]; - // Count of active actors per type. - repeated ActiveActorsCount active_actors = 2 [json_name = "activeActors"]; - // Indicates whether the actor runtime is ready to host actors. - bool host_ready = 3 [json_name = "hostReady"]; - // Custom message from the placement provider. - string placement = 4 [json_name = "placement"]; -} - -message ActiveActorsCount { - string type = 1; - int32 count = 2; -} - -message RegisteredComponents { - string name = 1; - string type = 2; - string version = 3; - repeated string capabilities = 4; -} - -message MetadataHTTPEndpoint { - string name = 1 [json_name = "name"]; -} - -message AppConnectionProperties { - int32 port = 1; - string protocol = 2; - string channel_address = 3 [json_name = "channelAddress"]; - int32 max_concurrency = 4 [json_name = "maxConcurrency"]; - AppConnectionHealthProperties health = 5; -} - -message AppConnectionHealthProperties { - string health_check_path = 1 [json_name = "healthCheckPath"]; - string health_probe_interval = 2 [json_name = "healthProbeInterval"]; - string health_probe_timeout = 3 [json_name = "healthProbeTimeout"]; - int32 health_threshold = 4 [json_name = "healthThreshold"]; -} - -message PubsubSubscription { - string pubsub_name = 1 [json_name = "pubsubname"]; - string topic = 2 [json_name = "topic"]; - 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 { - repeated PubsubSubscriptionRule rules = 1; -} - -message PubsubSubscriptionRule { - string match = 1; - string path = 2; -} - -message SetMetadataRequest { - string key = 1; - string value = 2; -} - -// GetConfigurationRequest is the message to get a list of key-value configuration from specified configuration store. -message GetConfigurationRequest { - // Required. The name of configuration store. - string store_name = 1; - - // Optional. The key of the configuration item to fetch. - // If set, only query for the specified configuration items. - // Empty list means fetch all. - repeated string keys = 2; - - // Optional. The metadata which will be sent to configuration store components. - map metadata = 3; -} - -// GetConfigurationResponse is the response conveying the list of configuration values. -// It should be the FULL configuration of specified application which contains all of its configuration items. -message GetConfigurationResponse { - map items = 1; -} - -// SubscribeConfigurationRequest is the message to get a list of key-value configuration from specified configuration store. -message SubscribeConfigurationRequest { - // The name of configuration store. - string store_name = 1; - - // Optional. The key of the configuration item to fetch. - // If set, only query for the specified configuration items. - // Empty list means fetch all. - repeated string keys = 2; - - // The metadata which will be sent to configuration store components. - map metadata = 3; -} - -// UnSubscribeConfigurationRequest is the message to stop watching the key-value configuration. -message UnsubscribeConfigurationRequest { - // The name of configuration store. - string store_name = 1; - - // The id to unsubscribe. - string id = 2; -} - -message SubscribeConfigurationResponse { - // Subscribe id, used to stop subscription. - string id = 1; - - // The list of items containing configuration values - map items = 2; -} - -message UnsubscribeConfigurationResponse { - bool ok = 1; - string message = 2; -} - -message TryLockRequest { - // Required. The lock store name,e.g. `redis`. - string store_name = 1 [json_name = "storeName"]; - - // Required. resource_id is the lock key. e.g. `order_id_111` - // It stands for "which resource I want to protect" - string resource_id = 2 [json_name = "resourceId"]; - - // Required. lock_owner indicate the identifier of lock owner. - // You can generate a uuid as lock_owner.For example,in golang: - // - // req.LockOwner = uuid.New().String() - // - // This field is per request,not per process,so it is different for each request, - // which aims to prevent multi-thread in the same process trying the same lock concurrently. - // - // The reason why we don't make it automatically generated is: - // 1. If it is automatically generated,there must be a 'my_lock_owner_id' field in the response. - // This name is so weird that we think it is inappropriate to put it into the api spec - // 2. If we change the field 'my_lock_owner_id' in the response to 'lock_owner',which means the current lock owner of this lock, - // we find that in some lock services users can't get the current lock owner.Actually users don't need it at all. - // 3. When reentrant lock is needed,the existing lock_owner is required to identify client and check "whether this client can reenter this lock". - // So this field in the request shouldn't be removed. - string lock_owner = 3 [json_name = "lockOwner"]; - - // Required. The time before expiry.The time unit is second. - int32 expiry_in_seconds = 4 [json_name = "expiryInSeconds"]; -} - -message TryLockResponse { - bool success = 1; -} - -message UnlockRequest { - string store_name = 1 [json_name = "storeName"]; - // resource_id is the lock key. - string resource_id = 2 [json_name = "resourceId"]; - string lock_owner = 3 [json_name = "lockOwner"]; -} - -message UnlockResponse { - enum Status { - SUCCESS = 0; - LOCK_DOES_NOT_EXIST = 1; - LOCK_BELONGS_TO_OTHERS = 2; - INTERNAL_ERROR = 3; - } - - Status status = 1; -} - -// SubtleGetKeyRequest is the request object for SubtleGetKeyAlpha1. -message SubtleGetKeyRequest { - enum KeyFormat { - // PEM (PKIX) (default) - PEM = 0; - // JSON (JSON Web Key) as string - JSON = 1; - } - - // Name of the component - string component_name = 1 [json_name="componentName"]; - // Name (or name/version) of the key to use in the key vault - string name = 2; - // Response format - KeyFormat format = 3; -} - -// SubtleGetKeyResponse is the response for SubtleGetKeyAlpha1. -message SubtleGetKeyResponse { - // Name (or name/version) of the key. - // This is returned as response too in case there is a version. - string name = 1; - // Public key, encoded in the requested format - string public_key = 2 [json_name="publicKey"]; -} - -// SubtleEncryptRequest is the request for SubtleEncryptAlpha1. -message SubtleEncryptRequest { - // Name of the component - string component_name = 1 [json_name="componentName"]; - // Message to encrypt. - bytes plaintext = 2; - // Algorithm to use, as in the JWA standard. - string algorithm = 3; - // Name (or name/version) of the key. - string key_name = 4 [json_name="keyName"]; - // Nonce / initialization vector. - // Ignored with asymmetric ciphers. - bytes nonce = 5; - // Associated Data when using AEAD ciphers (optional). - bytes associated_data = 6 [json_name="associatedData"]; -} - -// SubtleEncryptResponse is the response for SubtleEncryptAlpha1. -message SubtleEncryptResponse { - // Encrypted ciphertext. - bytes ciphertext = 1; - // Authentication tag. - // This is nil when not using an authenticated cipher. - bytes tag = 2; -} - -// SubtleDecryptRequest is the request for SubtleDecryptAlpha1. -message SubtleDecryptRequest { - // Name of the component - string component_name = 1 [json_name="componentName"]; - // Message to decrypt. - bytes ciphertext = 2; - // Algorithm to use, as in the JWA standard. - string algorithm = 3; - // Name (or name/version) of the key. - string key_name = 4 [json_name="keyName"]; - // Nonce / initialization vector. - // Ignored with asymmetric ciphers. - bytes nonce = 5; - // Authentication tag. - // This is nil when not using an authenticated cipher. - bytes tag = 6; - // Associated Data when using AEAD ciphers (optional). - bytes associated_data = 7 [json_name="associatedData"]; -} - -// SubtleDecryptResponse is the response for SubtleDecryptAlpha1. -message SubtleDecryptResponse { - // Decrypted plaintext. - bytes plaintext = 1; -} - -// SubtleWrapKeyRequest is the request for SubtleWrapKeyAlpha1. -message SubtleWrapKeyRequest { - // Name of the component - string component_name = 1 [json_name="componentName"]; - // Key to wrap - bytes plaintext_key = 2 [json_name="plaintextKey"]; - // Algorithm to use, as in the JWA standard. - string algorithm = 3; - // Name (or name/version) of the key. - string key_name = 4 [json_name="keyName"]; - // Nonce / initialization vector. - // Ignored with asymmetric ciphers. - bytes nonce = 5; - // Associated Data when using AEAD ciphers (optional). - bytes associated_data = 6 [json_name="associatedData"]; -} - -// SubtleWrapKeyResponse is the response for SubtleWrapKeyAlpha1. -message SubtleWrapKeyResponse { - // Wrapped key. - bytes wrapped_key = 1 [json_name="wrappedKey"]; - // Authentication tag. - // This is nil when not using an authenticated cipher. - bytes tag = 2; -} - -// SubtleUnwrapKeyRequest is the request for SubtleUnwrapKeyAlpha1. -message SubtleUnwrapKeyRequest { - // Name of the component - string component_name = 1 [json_name="componentName"]; - // Wrapped key. - bytes wrapped_key = 2 [json_name="wrappedKey"]; - // Algorithm to use, as in the JWA standard. - string algorithm = 3; - // Name (or name/version) of the key. - string key_name = 4 [json_name="keyName"]; - // Nonce / initialization vector. - // Ignored with asymmetric ciphers. - bytes nonce = 5; - // Authentication tag. - // This is nil when not using an authenticated cipher. - bytes tag = 6; - // Associated Data when using AEAD ciphers (optional). - bytes associated_data = 7 [json_name="associatedData"]; -} - -// SubtleUnwrapKeyResponse is the response for SubtleUnwrapKeyAlpha1. -message SubtleUnwrapKeyResponse { - // Key in plaintext - bytes plaintext_key = 1 [json_name="plaintextKey"]; -} - -// SubtleSignRequest is the request for SubtleSignAlpha1. -message SubtleSignRequest { - // Name of the component - string component_name = 1 [json_name="componentName"]; - // Digest to sign. - bytes digest = 2; - // Algorithm to use, as in the JWA standard. - string algorithm = 3; - // Name (or name/version) of the key. - string key_name = 4 [json_name="keyName"]; -} - -// SubtleSignResponse is the response for SubtleSignAlpha1. -message SubtleSignResponse { - // The signature that was computed - bytes signature = 1; -} - -// SubtleVerifyRequest is the request for SubtleVerifyAlpha1. -message SubtleVerifyRequest { - // Name of the component - string component_name = 1 [json_name="componentName"]; - // Digest of the message. - bytes digest = 2; - // Algorithm to use, as in the JWA standard. - string algorithm = 3; - // Name (or name/version) of the key. - string key_name = 4 [json_name="keyName"]; - // Signature to verify. - bytes signature = 5; -} - -// SubtleVerifyResponse is the response for SubtleVerifyAlpha1. -message SubtleVerifyResponse { - // True if the signature is valid. - bool valid = 1; -} - -// EncryptRequest is the request for EncryptAlpha1. -message EncryptRequest { - // Request details. Must be present in the first message only. - EncryptRequestOptions options = 1; - // Chunk of data of arbitrary size. - common.v1.StreamPayload payload = 2; -} - -// EncryptRequestOptions contains options for the first message in the EncryptAlpha1 request. -message EncryptRequestOptions { - // Name of the component. Required. - string component_name = 1 [json_name="componentName"]; - // Name (or name/version) of the key. Required. - string key_name = 2 [json_name="keyName"]; - // Key wrapping algorithm to use. Required. - // Supported options include: A256KW (alias: AES), A128CBC, A192CBC, A256CBC, RSA-OAEP-256 (alias: RSA). - string key_wrap_algorithm = 3; - // Cipher used to encrypt data (optional): "aes-gcm" (default) or "chacha20-poly1305" - string data_encryption_cipher = 10; - // If true, the encrypted document does not contain a key reference. - // In that case, calls to the Decrypt method must provide a key reference (name or name/version). - // Defaults to false. - bool omit_decryption_key_name = 11 [json_name="omitDecryptionKeyName"]; - // Key reference to embed in the encrypted document (name or name/version). - // This is helpful if the reference of the key used to decrypt the document is different from the one used to encrypt it. - // If unset, uses the reference of the key used to encrypt the document (this is the default behavior). - // This option is ignored if omit_decryption_key_name is true. - string decryption_key_name = 12 [json_name="decryptionKeyName"]; -} - -// EncryptResponse is the response for EncryptAlpha1. -message EncryptResponse { - // Chunk of data. - common.v1.StreamPayload payload = 1; -} - -// DecryptRequest is the request for DecryptAlpha1. -message DecryptRequest { - // Request details. Must be present in the first message only. - DecryptRequestOptions options = 1; - // Chunk of data of arbitrary size. - common.v1.StreamPayload payload = 2; -} - -// DecryptRequestOptions contains options for the first message in the DecryptAlpha1 request. -message DecryptRequestOptions { - // Name of the component - string component_name = 1 [json_name="componentName"]; - // Name (or name/version) of the key to decrypt the message. - // Overrides any key reference included in the message if present. - // This is required if the message doesn't include a key reference (i.e. was created with omit_decryption_key_name set to true). - string key_name = 12 [json_name="keyName"]; -} - -// DecryptResponse is the response for DecryptAlpha1. -message DecryptResponse { - // Chunk of data. - common.v1.StreamPayload payload = 1; -} - -// GetWorkflowRequest is the request for GetWorkflowBeta1. -message GetWorkflowRequest { - // ID of the workflow instance to query. - string instance_id = 1 [json_name = "instanceID"]; - // Name of the workflow component. - string workflow_component = 2 [json_name = "workflowComponent"]; -} - -// GetWorkflowResponse is the response for GetWorkflowBeta1. -message GetWorkflowResponse { - // ID of the workflow instance. - string instance_id = 1 [json_name = "instanceID"]; - // Name of the workflow. - string workflow_name = 2 [json_name = "workflowName"]; - // The time at which the workflow instance was created. - google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; - // The last time at which the workflow instance had its state changed. - google.protobuf.Timestamp last_updated_at = 4 [json_name = "lastUpdatedAt"]; - // The current status of the workflow instance, for example, "PENDING", "RUNNING", "SUSPENDED", "COMPLETED", "FAILED", and "TERMINATED". - string runtime_status = 5 [json_name = "runtimeStatus"]; - // Additional component-specific properties of the workflow instance. - map properties = 6; -} - -// StartWorkflowRequest is the request for StartWorkflowBeta1. -message StartWorkflowRequest { - // The ID to assign to the started workflow instance. If empty, a random ID is generated. - string instance_id = 1 [json_name = "instanceID"]; - // Name of the workflow component. - string workflow_component = 2 [json_name = "workflowComponent"]; - // Name of the workflow. - string workflow_name = 3 [json_name = "workflowName"]; - // Additional component-specific options for starting the workflow instance. - map options = 4; - // Input data for the workflow instance. - bytes input = 5; -} - -// StartWorkflowResponse is the response for StartWorkflowBeta1. -message StartWorkflowResponse { - // ID of the started workflow instance. - string instance_id = 1 [json_name = "instanceID"]; -} - -// TerminateWorkflowRequest is the request for TerminateWorkflowBeta1. -message TerminateWorkflowRequest { - // ID of the workflow instance to terminate. - string instance_id = 1 [json_name = "instanceID"]; - // Name of the workflow component. - string workflow_component = 2 [json_name = "workflowComponent"]; -} - -// PauseWorkflowRequest is the request for PauseWorkflowBeta1. -message PauseWorkflowRequest { - // ID of the workflow instance to pause. - string instance_id = 1 [json_name = "instanceID"]; - // Name of the workflow component. - string workflow_component = 2 [json_name = "workflowComponent"]; -} - -// ResumeWorkflowRequest is the request for ResumeWorkflowBeta1. -message ResumeWorkflowRequest { - // ID of the workflow instance to resume. - string instance_id = 1 [json_name = "instanceID"]; - // Name of the workflow component. - string workflow_component = 2 [json_name = "workflowComponent"]; -} - -// RaiseEventWorkflowRequest is the request for RaiseEventWorkflowBeta1. -message RaiseEventWorkflowRequest { - // ID of the workflow instance to raise an event for. - string instance_id = 1 [json_name = "instanceID"]; - // Name of the workflow component. - string workflow_component = 2 [json_name = "workflowComponent"]; - // Name of the event. - string event_name = 3 [json_name = "eventName"]; - // Data associated with the event. - bytes event_data = 4; -} - -// PurgeWorkflowRequest is the request for PurgeWorkflowBeta1. -message PurgeWorkflowRequest { - // ID of the workflow instance to purge. - string instance_id = 1 [json_name = "instanceID"]; - // Name of the workflow component. - string workflow_component = 2 [json_name = "workflowComponent"]; -} - -// ShutdownRequest is the request for Shutdown. -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 deleted file mode 100644 index 7c2e718d..00000000 --- a/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.d.ts +++ /dev/null @@ -1,1008 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/dapr.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as dapr_proto_runtime_v1_dapr_pb from "../../../../dapr/proto/runtime/v1/dapr_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 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; - getState: IDaprService_IGetState; - getBulkState: IDaprService_IGetBulkState; - saveState: IDaprService_ISaveState; - queryStateAlpha1: IDaprService_IQueryStateAlpha1; - deleteState: IDaprService_IDeleteState; - deleteBulkState: IDaprService_IDeleteBulkState; - executeStateTransaction: IDaprService_IExecuteStateTransaction; - publishEvent: IDaprService_IPublishEvent; - bulkPublishEventAlpha1: IDaprService_IBulkPublishEventAlpha1; - subscribeTopicEventsAlpha1: IDaprService_ISubscribeTopicEventsAlpha1; - invokeBinding: IDaprService_IInvokeBinding; - getSecret: IDaprService_IGetSecret; - getBulkSecret: IDaprService_IGetBulkSecret; - registerActorTimer: IDaprService_IRegisterActorTimer; - unregisterActorTimer: IDaprService_IUnregisterActorTimer; - registerActorReminder: IDaprService_IRegisterActorReminder; - unregisterActorReminder: IDaprService_IUnregisterActorReminder; - getActorState: IDaprService_IGetActorState; - executeActorStateTransaction: IDaprService_IExecuteActorStateTransaction; - invokeActor: IDaprService_IInvokeActor; - getConfigurationAlpha1: IDaprService_IGetConfigurationAlpha1; - getConfiguration: IDaprService_IGetConfiguration; - subscribeConfigurationAlpha1: IDaprService_ISubscribeConfigurationAlpha1; - subscribeConfiguration: IDaprService_ISubscribeConfiguration; - unsubscribeConfigurationAlpha1: IDaprService_IUnsubscribeConfigurationAlpha1; - unsubscribeConfiguration: IDaprService_IUnsubscribeConfiguration; - tryLockAlpha1: IDaprService_ITryLockAlpha1; - unlockAlpha1: IDaprService_IUnlockAlpha1; - encryptAlpha1: IDaprService_IEncryptAlpha1; - decryptAlpha1: IDaprService_IDecryptAlpha1; - getMetadata: IDaprService_IGetMetadata; - setMetadata: IDaprService_ISetMetadata; - subtleGetKeyAlpha1: IDaprService_ISubtleGetKeyAlpha1; - subtleEncryptAlpha1: IDaprService_ISubtleEncryptAlpha1; - subtleDecryptAlpha1: IDaprService_ISubtleDecryptAlpha1; - subtleWrapKeyAlpha1: IDaprService_ISubtleWrapKeyAlpha1; - subtleUnwrapKeyAlpha1: IDaprService_ISubtleUnwrapKeyAlpha1; - subtleSignAlpha1: IDaprService_ISubtleSignAlpha1; - subtleVerifyAlpha1: IDaprService_ISubtleVerifyAlpha1; - startWorkflowAlpha1: IDaprService_IStartWorkflowAlpha1; - getWorkflowAlpha1: IDaprService_IGetWorkflowAlpha1; - purgeWorkflowAlpha1: IDaprService_IPurgeWorkflowAlpha1; - terminateWorkflowAlpha1: IDaprService_ITerminateWorkflowAlpha1; - pauseWorkflowAlpha1: IDaprService_IPauseWorkflowAlpha1; - resumeWorkflowAlpha1: IDaprService_IResumeWorkflowAlpha1; - raiseEventWorkflowAlpha1: IDaprService_IRaiseEventWorkflowAlpha1; - startWorkflowBeta1: IDaprService_IStartWorkflowBeta1; - getWorkflowBeta1: IDaprService_IGetWorkflowBeta1; - purgeWorkflowBeta1: IDaprService_IPurgeWorkflowBeta1; - terminateWorkflowBeta1: IDaprService_ITerminateWorkflowBeta1; - pauseWorkflowBeta1: IDaprService_IPauseWorkflowBeta1; - resumeWorkflowBeta1: IDaprService_IResumeWorkflowBeta1; - raiseEventWorkflowBeta1: IDaprService_IRaiseEventWorkflowBeta1; - shutdown: IDaprService_IShutdown; - scheduleJobAlpha1: IDaprService_IScheduleJobAlpha1; - getJobAlpha1: IDaprService_IGetJobAlpha1; - deleteJobAlpha1: IDaprService_IDeleteJobAlpha1; -} - -interface IDaprService_IInvokeService extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/InvokeService"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IGetState extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/GetState"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IGetBulkState extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/GetBulkState"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ISaveState extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/SaveState"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IQueryStateAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/QueryStateAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IDeleteState extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/DeleteState"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IDeleteBulkState extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/DeleteBulkState"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IExecuteStateTransaction extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/ExecuteStateTransaction"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IPublishEvent extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/PublishEvent"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IBulkPublishEventAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/BulkPublishEventAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - 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; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IGetSecret extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/GetSecret"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IGetBulkSecret extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/GetBulkSecret"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IRegisterActorTimer extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/RegisterActorTimer"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IUnregisterActorTimer extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/UnregisterActorTimer"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IRegisterActorReminder extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/RegisterActorReminder"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IUnregisterActorReminder extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/UnregisterActorReminder"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IGetActorState extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/GetActorState"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IExecuteActorStateTransaction extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/ExecuteActorStateTransaction"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IInvokeActor extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/InvokeActor"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IGetConfigurationAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/GetConfigurationAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IGetConfiguration extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/GetConfiguration"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ISubscribeConfigurationAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/SubscribeConfigurationAlpha1"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ISubscribeConfiguration extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/SubscribeConfiguration"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IUnsubscribeConfigurationAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/UnsubscribeConfigurationAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IUnsubscribeConfiguration extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/UnsubscribeConfiguration"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ITryLockAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/TryLockAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IUnlockAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/UnlockAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IEncryptAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/EncryptAlpha1"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IDecryptAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/DecryptAlpha1"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IGetMetadata extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/GetMetadata"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ISetMetadata extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/SetMetadata"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ISubtleGetKeyAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/SubtleGetKeyAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ISubtleEncryptAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/SubtleEncryptAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ISubtleDecryptAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/SubtleDecryptAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ISubtleWrapKeyAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/SubtleWrapKeyAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ISubtleUnwrapKeyAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/SubtleUnwrapKeyAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ISubtleSignAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/SubtleSignAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ISubtleVerifyAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/SubtleVerifyAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IStartWorkflowAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/StartWorkflowAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IGetWorkflowAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/GetWorkflowAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IPurgeWorkflowAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/PurgeWorkflowAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ITerminateWorkflowAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/TerminateWorkflowAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IPauseWorkflowAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/PauseWorkflowAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IResumeWorkflowAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/ResumeWorkflowAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IRaiseEventWorkflowAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/RaiseEventWorkflowAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IStartWorkflowBeta1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/StartWorkflowBeta1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IGetWorkflowBeta1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/GetWorkflowBeta1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IPurgeWorkflowBeta1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/PurgeWorkflowBeta1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_ITerminateWorkflowBeta1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/TerminateWorkflowBeta1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IPauseWorkflowBeta1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/PauseWorkflowBeta1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IResumeWorkflowBeta1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/ResumeWorkflowBeta1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IRaiseEventWorkflowBeta1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/RaiseEventWorkflowBeta1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IShutdown extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/Shutdown"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - 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; - -export interface IDaprServer extends grpc.UntypedServiceImplementation { - invokeService: grpc.handleUnaryCall; - getState: grpc.handleUnaryCall; - getBulkState: grpc.handleUnaryCall; - saveState: grpc.handleUnaryCall; - queryStateAlpha1: grpc.handleUnaryCall; - deleteState: grpc.handleUnaryCall; - deleteBulkState: grpc.handleUnaryCall; - executeStateTransaction: grpc.handleUnaryCall; - publishEvent: grpc.handleUnaryCall; - bulkPublishEventAlpha1: grpc.handleUnaryCall; - subscribeTopicEventsAlpha1: grpc.handleBidiStreamingCall; - invokeBinding: grpc.handleUnaryCall; - getSecret: grpc.handleUnaryCall; - getBulkSecret: grpc.handleUnaryCall; - registerActorTimer: grpc.handleUnaryCall; - unregisterActorTimer: grpc.handleUnaryCall; - registerActorReminder: grpc.handleUnaryCall; - unregisterActorReminder: grpc.handleUnaryCall; - getActorState: grpc.handleUnaryCall; - executeActorStateTransaction: grpc.handleUnaryCall; - invokeActor: grpc.handleUnaryCall; - getConfigurationAlpha1: grpc.handleUnaryCall; - getConfiguration: grpc.handleUnaryCall; - subscribeConfigurationAlpha1: grpc.handleServerStreamingCall; - subscribeConfiguration: grpc.handleServerStreamingCall; - unsubscribeConfigurationAlpha1: grpc.handleUnaryCall; - unsubscribeConfiguration: grpc.handleUnaryCall; - tryLockAlpha1: grpc.handleUnaryCall; - unlockAlpha1: grpc.handleUnaryCall; - encryptAlpha1: grpc.handleBidiStreamingCall; - decryptAlpha1: grpc.handleBidiStreamingCall; - getMetadata: grpc.handleUnaryCall; - setMetadata: grpc.handleUnaryCall; - subtleGetKeyAlpha1: grpc.handleUnaryCall; - subtleEncryptAlpha1: grpc.handleUnaryCall; - subtleDecryptAlpha1: grpc.handleUnaryCall; - subtleWrapKeyAlpha1: grpc.handleUnaryCall; - subtleUnwrapKeyAlpha1: grpc.handleUnaryCall; - subtleSignAlpha1: grpc.handleUnaryCall; - subtleVerifyAlpha1: grpc.handleUnaryCall; - startWorkflowAlpha1: grpc.handleUnaryCall; - getWorkflowAlpha1: grpc.handleUnaryCall; - purgeWorkflowAlpha1: grpc.handleUnaryCall; - terminateWorkflowAlpha1: grpc.handleUnaryCall; - pauseWorkflowAlpha1: grpc.handleUnaryCall; - resumeWorkflowAlpha1: grpc.handleUnaryCall; - raiseEventWorkflowAlpha1: grpc.handleUnaryCall; - startWorkflowBeta1: grpc.handleUnaryCall; - getWorkflowBeta1: grpc.handleUnaryCall; - purgeWorkflowBeta1: grpc.handleUnaryCall; - terminateWorkflowBeta1: grpc.handleUnaryCall; - pauseWorkflowBeta1: grpc.handleUnaryCall; - resumeWorkflowBeta1: grpc.handleUnaryCall; - raiseEventWorkflowBeta1: grpc.handleUnaryCall; - shutdown: grpc.handleUnaryCall; - scheduleJobAlpha1: grpc.handleUnaryCall; - getJobAlpha1: grpc.handleUnaryCall; - deleteJobAlpha1: grpc.handleUnaryCall; -} - -export interface IDaprClient { - invokeService(request: dapr_proto_runtime_v1_dapr_pb.InvokeServiceRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - invokeService(request: dapr_proto_runtime_v1_dapr_pb.InvokeServiceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - invokeService(request: dapr_proto_runtime_v1_dapr_pb.InvokeServiceRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - getState(request: dapr_proto_runtime_v1_dapr_pb.GetStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - getState(request: dapr_proto_runtime_v1_dapr_pb.GetStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - getState(request: dapr_proto_runtime_v1_dapr_pb.GetStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - getBulkState(request: dapr_proto_runtime_v1_dapr_pb.GetBulkStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - getBulkState(request: dapr_proto_runtime_v1_dapr_pb.GetBulkStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - getBulkState(request: dapr_proto_runtime_v1_dapr_pb.GetBulkStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - saveState(request: dapr_proto_runtime_v1_dapr_pb.SaveStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - saveState(request: dapr_proto_runtime_v1_dapr_pb.SaveStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - saveState(request: dapr_proto_runtime_v1_dapr_pb.SaveStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - queryStateAlpha1(request: dapr_proto_runtime_v1_dapr_pb.QueryStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - queryStateAlpha1(request: dapr_proto_runtime_v1_dapr_pb.QueryStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - queryStateAlpha1(request: dapr_proto_runtime_v1_dapr_pb.QueryStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - deleteState(request: dapr_proto_runtime_v1_dapr_pb.DeleteStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - deleteState(request: dapr_proto_runtime_v1_dapr_pb.DeleteStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - deleteState(request: dapr_proto_runtime_v1_dapr_pb.DeleteStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - deleteBulkState(request: dapr_proto_runtime_v1_dapr_pb.DeleteBulkStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - deleteBulkState(request: dapr_proto_runtime_v1_dapr_pb.DeleteBulkStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - deleteBulkState(request: dapr_proto_runtime_v1_dapr_pb.DeleteBulkStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - executeStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteStateTransactionRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - executeStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteStateTransactionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - executeStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteStateTransactionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - publishEvent(request: dapr_proto_runtime_v1_dapr_pb.PublishEventRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - publishEvent(request: dapr_proto_runtime_v1_dapr_pb.PublishEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - publishEvent(request: dapr_proto_runtime_v1_dapr_pb.PublishEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - 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; - getSecret(request: dapr_proto_runtime_v1_dapr_pb.GetSecretRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - getSecret(request: dapr_proto_runtime_v1_dapr_pb.GetSecretRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - getSecret(request: dapr_proto_runtime_v1_dapr_pb.GetSecretRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - getBulkSecret(request: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - getBulkSecret(request: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - getBulkSecret(request: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - registerActorTimer(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorTimerRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - registerActorTimer(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorTimerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - registerActorTimer(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorTimerRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - unregisterActorTimer(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorTimerRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - unregisterActorTimer(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorTimerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - unregisterActorTimer(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorTimerRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - registerActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - registerActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorReminderRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - registerActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - executeActorStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteActorStateTransactionRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - executeActorStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteActorStateTransactionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - executeActorStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteActorStateTransactionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - invokeActor(request: dapr_proto_runtime_v1_dapr_pb.InvokeActorRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - invokeActor(request: dapr_proto_runtime_v1_dapr_pb.InvokeActorRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - invokeActor(request: dapr_proto_runtime_v1_dapr_pb.InvokeActorRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - getConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfiguration(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfiguration(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfiguration(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - subscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest, options?: Partial): grpc.ClientReadableStream; - subscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - subscribeConfiguration(request: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest, options?: Partial): grpc.ClientReadableStream; - subscribeConfiguration(request: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - unsubscribeConfiguration(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - unsubscribeConfiguration(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - unsubscribeConfiguration(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - tryLockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TryLockRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - tryLockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TryLockRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - tryLockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TryLockRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - unlockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnlockRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnlockResponse) => void): grpc.ClientUnaryCall; - unlockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnlockRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnlockResponse) => void): grpc.ClientUnaryCall; - unlockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnlockRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnlockResponse) => void): grpc.ClientUnaryCall; - encryptAlpha1(): grpc.ClientDuplexStream; - encryptAlpha1(options: Partial): grpc.ClientDuplexStream; - encryptAlpha1(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - decryptAlpha1(): grpc.ClientDuplexStream; - decryptAlpha1(options: Partial): grpc.ClientDuplexStream; - decryptAlpha1(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - subtleGetKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - subtleGetKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - subtleGetKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - subtleEncryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - subtleEncryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - subtleEncryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - subtleDecryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - subtleDecryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - subtleDecryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleSignAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleSignRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - subtleSignAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleSignRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - subtleSignAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleSignRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - subtleVerifyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - subtleVerifyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - subtleVerifyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - startWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - startWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - startWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - purgeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - purgeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - purgeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - terminateWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - terminateWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - terminateWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - pauseWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - pauseWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - pauseWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - resumeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - resumeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - resumeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - raiseEventWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - raiseEventWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - raiseEventWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - startWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - startWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - startWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - purgeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - purgeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - purgeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - terminateWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - terminateWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - terminateWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - pauseWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - pauseWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - pauseWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - resumeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - resumeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - resumeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - shutdown(request: 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 { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public invokeService(request: dapr_proto_runtime_v1_dapr_pb.InvokeServiceRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - public invokeService(request: dapr_proto_runtime_v1_dapr_pb.InvokeServiceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - public invokeService(request: dapr_proto_runtime_v1_dapr_pb.InvokeServiceRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - public getState(request: dapr_proto_runtime_v1_dapr_pb.GetStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - public getState(request: dapr_proto_runtime_v1_dapr_pb.GetStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - public getState(request: dapr_proto_runtime_v1_dapr_pb.GetStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - public getBulkState(request: dapr_proto_runtime_v1_dapr_pb.GetBulkStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - public getBulkState(request: dapr_proto_runtime_v1_dapr_pb.GetBulkStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - public getBulkState(request: dapr_proto_runtime_v1_dapr_pb.GetBulkStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - public saveState(request: dapr_proto_runtime_v1_dapr_pb.SaveStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public saveState(request: dapr_proto_runtime_v1_dapr_pb.SaveStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public saveState(request: dapr_proto_runtime_v1_dapr_pb.SaveStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public queryStateAlpha1(request: dapr_proto_runtime_v1_dapr_pb.QueryStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - public queryStateAlpha1(request: dapr_proto_runtime_v1_dapr_pb.QueryStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - public queryStateAlpha1(request: dapr_proto_runtime_v1_dapr_pb.QueryStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - public deleteState(request: dapr_proto_runtime_v1_dapr_pb.DeleteStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public deleteState(request: dapr_proto_runtime_v1_dapr_pb.DeleteStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public deleteState(request: dapr_proto_runtime_v1_dapr_pb.DeleteStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public deleteBulkState(request: dapr_proto_runtime_v1_dapr_pb.DeleteBulkStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public deleteBulkState(request: dapr_proto_runtime_v1_dapr_pb.DeleteBulkStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public deleteBulkState(request: dapr_proto_runtime_v1_dapr_pb.DeleteBulkStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public executeStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteStateTransactionRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public executeStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteStateTransactionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public executeStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteStateTransactionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public publishEvent(request: dapr_proto_runtime_v1_dapr_pb.PublishEventRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public publishEvent(request: dapr_proto_runtime_v1_dapr_pb.PublishEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public publishEvent(request: dapr_proto_runtime_v1_dapr_pb.PublishEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - 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; - public getSecret(request: dapr_proto_runtime_v1_dapr_pb.GetSecretRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - public getSecret(request: dapr_proto_runtime_v1_dapr_pb.GetSecretRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - public getSecret(request: dapr_proto_runtime_v1_dapr_pb.GetSecretRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - public getBulkSecret(request: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - public getBulkSecret(request: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - public getBulkSecret(request: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - public registerActorTimer(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorTimerRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public registerActorTimer(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorTimerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public registerActorTimer(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorTimerRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public unregisterActorTimer(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorTimerRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public unregisterActorTimer(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorTimerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public unregisterActorTimer(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorTimerRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public registerActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public registerActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorReminderRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public registerActorReminder(request: dapr_proto_runtime_v1_dapr_pb.RegisterActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public unregisterActorReminder(request: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - public getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - public getActorState(request: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - public executeActorStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteActorStateTransactionRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public executeActorStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteActorStateTransactionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public executeActorStateTransaction(request: dapr_proto_runtime_v1_dapr_pb.ExecuteActorStateTransactionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public invokeActor(request: dapr_proto_runtime_v1_dapr_pb.InvokeActorRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - public invokeActor(request: dapr_proto_runtime_v1_dapr_pb.InvokeActorRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - public invokeActor(request: dapr_proto_runtime_v1_dapr_pb.InvokeActorRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - public getConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfiguration(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfiguration(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfiguration(request: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public subscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest, options?: Partial): grpc.ClientReadableStream; - public subscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public subscribeConfiguration(request: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest, options?: Partial): grpc.ClientReadableStream; - public subscribeConfiguration(request: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public unsubscribeConfiguration(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public unsubscribeConfiguration(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public unsubscribeConfiguration(request: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public tryLockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TryLockRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - public tryLockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TryLockRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - public tryLockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TryLockRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - public unlockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnlockRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnlockResponse) => void): grpc.ClientUnaryCall; - public unlockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnlockRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnlockResponse) => void): grpc.ClientUnaryCall; - public unlockAlpha1(request: dapr_proto_runtime_v1_dapr_pb.UnlockRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.UnlockResponse) => void): grpc.ClientUnaryCall; - public encryptAlpha1(options?: Partial): grpc.ClientDuplexStream; - public encryptAlpha1(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public decryptAlpha1(options?: Partial): grpc.ClientDuplexStream; - public decryptAlpha1(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - public getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - public getMetadata(request: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - public setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public setMetadata(request: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public subtleGetKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - public subtleGetKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - public subtleGetKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - public subtleEncryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - public subtleEncryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - public subtleEncryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - public subtleDecryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - public subtleDecryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - public subtleDecryptAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - public subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleSignAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleSignRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - public subtleSignAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleSignRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - public subtleSignAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleSignRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - public subtleVerifyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - public subtleVerifyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - public subtleVerifyAlpha1(request: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - public startWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public startWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public startWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public purgeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public purgeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public purgeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public terminateWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public terminateWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public terminateWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public pauseWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public pauseWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public pauseWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public resumeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public resumeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public resumeWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public raiseEventWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public raiseEventWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public raiseEventWorkflowAlpha1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public startWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public startWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public startWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public purgeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public purgeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public purgeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public terminateWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public terminateWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public terminateWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public pauseWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public pauseWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public pauseWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public resumeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public resumeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public resumeWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public shutdown(request: 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 deleted file mode 100644 index a4709e64..00000000 --- a/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.js +++ /dev/null @@ -1,1608 +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_runtime_v1_dapr_pb = require('../../../../dapr/proto/runtime/v1/dapr_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 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)) { - throw new Error('Expected argument of type dapr.proto.common.v1.InvokeResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_common_v1_InvokeResponse(buffer_arg) { - return dapr_proto_common_v1_common_pb.InvokeResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_BulkPublishRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.BulkPublishRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.BulkPublishRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_BulkPublishRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.BulkPublishRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_BulkPublishResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.BulkPublishResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.BulkPublishResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_BulkPublishResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.BulkPublishResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_DecryptRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.DecryptRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.DecryptRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_DecryptRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.DecryptRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_DecryptResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.DecryptResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.DecryptResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_DecryptResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.DecryptResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_DeleteBulkStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.DeleteBulkStateRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.DeleteBulkStateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -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'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_DeleteStateRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.DeleteStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_EncryptRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.EncryptRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.EncryptRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_EncryptRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.EncryptRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_EncryptResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.EncryptResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.EncryptResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_EncryptResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.EncryptResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ExecuteActorStateTransactionRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.ExecuteActorStateTransactionRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ExecuteActorStateTransactionRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.ExecuteActorStateTransactionRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ExecuteStateTransactionRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.ExecuteStateTransactionRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ExecuteStateTransactionRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ExecuteStateTransactionRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.ExecuteStateTransactionRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetActorStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetActorStateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetActorStateRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetActorStateResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetActorStateResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetActorStateResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetBulkSecretRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetBulkSecretRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetBulkSecretRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetBulkSecretRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetBulkSecretRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetBulkSecretResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetBulkSecretResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetBulkSecretResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetBulkSecretResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetBulkSecretResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetBulkStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetBulkStateRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetBulkStateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetBulkStateRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetBulkStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetBulkStateResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetBulkStateResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetBulkStateResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetBulkStateResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetBulkStateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetConfigurationRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetConfigurationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetConfigurationRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetConfigurationResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetConfigurationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -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'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetMetadataRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetMetadataResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetMetadataResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetMetadataResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetSecretRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetSecretRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetSecretRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetSecretRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetSecretRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetSecretResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetSecretResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetSecretResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetSecretResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetSecretResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetStateRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetStateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetStateRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetStateResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetStateResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetStateResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetStateResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetStateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetWorkflowRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetWorkflowRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetWorkflowResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetWorkflowResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetWorkflowResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_InvokeActorRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.InvokeActorRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.InvokeActorRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_InvokeActorRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.InvokeActorRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_InvokeActorResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.InvokeActorResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.InvokeActorResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_InvokeActorResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.InvokeActorResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_InvokeBindingRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.InvokeBindingRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.InvokeBindingRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_InvokeBindingRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.InvokeBindingRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_InvokeBindingResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.InvokeBindingResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.InvokeBindingResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_InvokeBindingResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.InvokeBindingResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_InvokeServiceRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.InvokeServiceRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.InvokeServiceRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_InvokeServiceRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.InvokeServiceRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_PauseWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.PauseWorkflowRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_PauseWorkflowRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_PublishEventRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.PublishEventRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.PublishEventRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_PublishEventRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.PublishEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_PurgeWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.PurgeWorkflowRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_PurgeWorkflowRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_QueryStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.QueryStateRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.QueryStateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_QueryStateRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.QueryStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_QueryStateResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.QueryStateResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.QueryStateResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_QueryStateResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.QueryStateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_RaiseEventWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.RaiseEventWorkflowRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_RaiseEventWorkflowRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_RegisterActorReminderRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.RegisterActorReminderRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.RegisterActorReminderRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_RegisterActorReminderRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.RegisterActorReminderRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_RegisterActorTimerRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.RegisterActorTimerRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.RegisterActorTimerRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_RegisterActorTimerRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.RegisterActorTimerRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ResumeWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ResumeWorkflowRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ResumeWorkflowRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SaveStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SaveStateRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SaveStateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -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'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SetMetadataRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ShutdownRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.ShutdownRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ShutdownRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ShutdownRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.ShutdownRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_StartWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.StartWorkflowRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_StartWorkflowRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_StartWorkflowResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.StartWorkflowResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_StartWorkflowResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubscribeConfigurationRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubscribeConfigurationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubscribeConfigurationRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubscribeConfigurationResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubscribeConfigurationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubscribeConfigurationResponse(buffer_arg) { - 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'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleDecryptRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleDecryptRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleDecryptResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleDecryptResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleDecryptResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleDecryptResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleDecryptResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleEncryptRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleEncryptRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleEncryptRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleEncryptRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleEncryptRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleEncryptResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleEncryptResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleEncryptResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleEncryptResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleEncryptResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleGetKeyRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleGetKeyRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleGetKeyRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleGetKeyResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleGetKeyResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleGetKeyResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleSignRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleSignRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleSignRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleSignRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleSignRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleSignResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleSignResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleSignResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleSignResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleSignResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleUnwrapKeyRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleUnwrapKeyRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleUnwrapKeyRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleUnwrapKeyResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleUnwrapKeyResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleUnwrapKeyResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleVerifyRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleVerifyRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleVerifyRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleVerifyRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleVerifyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleVerifyResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleVerifyResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleVerifyResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleVerifyResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleVerifyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleWrapKeyRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleWrapKeyRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleWrapKeyRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleWrapKeyResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.SubtleWrapKeyResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_SubtleWrapKeyResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_TerminateWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.TerminateWorkflowRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_TerminateWorkflowRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_TryLockRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.TryLockRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.TryLockRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_TryLockRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.TryLockRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_TryLockResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.TryLockResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.TryLockResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_TryLockResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.TryLockResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnlockRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.UnlockRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.UnlockRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_UnlockRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.UnlockRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnlockResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.UnlockResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.UnlockResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_UnlockResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.UnlockResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnregisterActorReminderRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.UnregisterActorReminderRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_UnregisterActorReminderRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnregisterActorTimerRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.UnregisterActorTimerRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.UnregisterActorTimerRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_UnregisterActorTimerRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.UnregisterActorTimerRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnsubscribeConfigurationRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.UnsubscribeConfigurationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_UnsubscribeConfigurationRequest(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnsubscribeConfigurationResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.UnsubscribeConfigurationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_UnsubscribeConfigurationResponse(buffer_arg) { - return dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse.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'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// Dapr service provides APIs to user application to access Dapr building blocks. -var DaprService = exports.DaprService = { - // Invokes a method on a remote Dapr app. -// Deprecated: Use proxy mode service invocation instead. -invokeService: { - path: '/dapr.proto.runtime.v1.Dapr/InvokeService', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.InvokeServiceRequest, - responseType: dapr_proto_common_v1_common_pb.InvokeResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_InvokeServiceRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_InvokeServiceRequest, - responseSerialize: serialize_dapr_proto_common_v1_InvokeResponse, - responseDeserialize: deserialize_dapr_proto_common_v1_InvokeResponse, - }, - // Gets the state for a specific key. -getState: { - path: '/dapr.proto.runtime.v1.Dapr/GetState', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.GetStateRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.GetStateResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_GetStateRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_GetStateRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_GetStateResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_GetStateResponse, - }, - // Gets a bulk of state items for a list of keys -getBulkState: { - path: '/dapr.proto.runtime.v1.Dapr/GetBulkState', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.GetBulkStateRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.GetBulkStateResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_GetBulkStateRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_GetBulkStateRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_GetBulkStateResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_GetBulkStateResponse, - }, - // Saves the state for a specific key. -saveState: { - path: '/dapr.proto.runtime.v1.Dapr/SaveState', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.SaveStateRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_SaveStateRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_SaveStateRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Queries the state. -queryStateAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/QueryStateAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.QueryStateRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.QueryStateResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_QueryStateRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_QueryStateRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_QueryStateResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_QueryStateResponse, - }, - // Deletes the state for a specific key. -deleteState: { - path: '/dapr.proto.runtime.v1.Dapr/DeleteState', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.DeleteStateRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_DeleteStateRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_DeleteStateRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Deletes a bulk of state items for a list of keys -deleteBulkState: { - path: '/dapr.proto.runtime.v1.Dapr/DeleteBulkState', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.DeleteBulkStateRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_DeleteBulkStateRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_DeleteBulkStateRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Executes transactions for a specified store -executeStateTransaction: { - path: '/dapr.proto.runtime.v1.Dapr/ExecuteStateTransaction', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.ExecuteStateTransactionRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_ExecuteStateTransactionRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_ExecuteStateTransactionRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Publishes events to the specific topic. -publishEvent: { - path: '/dapr.proto.runtime.v1.Dapr/PublishEvent', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.PublishEventRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_PublishEventRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_PublishEventRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Bulk Publishes multiple events to the specified topic. -bulkPublishEventAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/BulkPublishEventAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.BulkPublishRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.BulkPublishResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_BulkPublishRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_BulkPublishRequest, - 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', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.InvokeBindingRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.InvokeBindingResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_InvokeBindingRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_InvokeBindingRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_InvokeBindingResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_InvokeBindingResponse, - }, - // Gets secrets from secret stores. -getSecret: { - path: '/dapr.proto.runtime.v1.Dapr/GetSecret', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.GetSecretRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.GetSecretResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_GetSecretRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_GetSecretRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_GetSecretResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_GetSecretResponse, - }, - // Gets a bulk of secrets -getBulkSecret: { - path: '/dapr.proto.runtime.v1.Dapr/GetBulkSecret', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.GetBulkSecretResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_GetBulkSecretRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_GetBulkSecretRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_GetBulkSecretResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_GetBulkSecretResponse, - }, - // Register an actor timer. -registerActorTimer: { - path: '/dapr.proto.runtime.v1.Dapr/RegisterActorTimer', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.RegisterActorTimerRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_RegisterActorTimerRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_RegisterActorTimerRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Unregister an actor timer. -unregisterActorTimer: { - path: '/dapr.proto.runtime.v1.Dapr/UnregisterActorTimer', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.UnregisterActorTimerRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_UnregisterActorTimerRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_UnregisterActorTimerRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Register an actor reminder. -registerActorReminder: { - path: '/dapr.proto.runtime.v1.Dapr/RegisterActorReminder', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.RegisterActorReminderRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_RegisterActorReminderRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_RegisterActorReminderRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Unregister an actor reminder. -unregisterActorReminder: { - path: '/dapr.proto.runtime.v1.Dapr/UnregisterActorReminder', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.UnregisterActorReminderRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_UnregisterActorReminderRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_UnregisterActorReminderRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Gets the state for a specific actor. -getActorState: { - path: '/dapr.proto.runtime.v1.Dapr/GetActorState', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.GetActorStateRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.GetActorStateResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_GetActorStateRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_GetActorStateRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_GetActorStateResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_GetActorStateResponse, - }, - // Executes state transactions for a specified actor -executeActorStateTransaction: { - path: '/dapr.proto.runtime.v1.Dapr/ExecuteActorStateTransaction', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.ExecuteActorStateTransactionRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_ExecuteActorStateTransactionRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_ExecuteActorStateTransactionRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // InvokeActor calls a method on an actor. -invokeActor: { - path: '/dapr.proto.runtime.v1.Dapr/InvokeActor', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.InvokeActorRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.InvokeActorResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_InvokeActorRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_InvokeActorRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_InvokeActorResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_InvokeActorResponse, - }, - // GetConfiguration gets configuration from configuration store. -getConfigurationAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/GetConfigurationAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_GetConfigurationRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_GetConfigurationRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_GetConfigurationResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_GetConfigurationResponse, - }, - // GetConfiguration gets configuration from configuration store. -getConfiguration: { - path: '/dapr.proto.runtime.v1.Dapr/GetConfiguration', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.GetConfigurationRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.GetConfigurationResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_GetConfigurationRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_GetConfigurationRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_GetConfigurationResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_GetConfigurationResponse, - }, - // SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream -subscribeConfigurationAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/SubscribeConfigurationAlpha1', - requestStream: false, - responseStream: true, - requestType: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_SubscribeConfigurationRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_SubscribeConfigurationRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_SubscribeConfigurationResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_SubscribeConfigurationResponse, - }, - // SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream -subscribeConfiguration: { - path: '/dapr.proto.runtime.v1.Dapr/SubscribeConfiguration', - requestStream: false, - responseStream: true, - requestType: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.SubscribeConfigurationResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_SubscribeConfigurationRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_SubscribeConfigurationRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_SubscribeConfigurationResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_SubscribeConfigurationResponse, - }, - // UnSubscribeConfiguration unsubscribe the subscription of configuration -unsubscribeConfigurationAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/UnsubscribeConfigurationAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_UnsubscribeConfigurationRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_UnsubscribeConfigurationRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_UnsubscribeConfigurationResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_UnsubscribeConfigurationResponse, - }, - // UnSubscribeConfiguration unsubscribe the subscription of configuration -unsubscribeConfiguration: { - path: '/dapr.proto.runtime.v1.Dapr/UnsubscribeConfiguration', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.UnsubscribeConfigurationResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_UnsubscribeConfigurationRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_UnsubscribeConfigurationRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_UnsubscribeConfigurationResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_UnsubscribeConfigurationResponse, - }, - // TryLockAlpha1 tries to get a lock with an expiry. -tryLockAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/TryLockAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.TryLockRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.TryLockResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_TryLockRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_TryLockRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_TryLockResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_TryLockResponse, - }, - // UnlockAlpha1 unlocks a lock. -unlockAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/UnlockAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.UnlockRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.UnlockResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_UnlockRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_UnlockRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_UnlockResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_UnlockResponse, - }, - // EncryptAlpha1 encrypts a message using the Dapr encryption scheme and a key stored in the vault. -encryptAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/EncryptAlpha1', - requestStream: true, - responseStream: true, - requestType: dapr_proto_runtime_v1_dapr_pb.EncryptRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.EncryptResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_EncryptRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_EncryptRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_EncryptResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_EncryptResponse, - }, - // DecryptAlpha1 decrypts a message using the Dapr encryption scheme and a key stored in the vault. -decryptAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/DecryptAlpha1', - requestStream: true, - responseStream: true, - requestType: dapr_proto_runtime_v1_dapr_pb.DecryptRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.DecryptResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_DecryptRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_DecryptRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_DecryptResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_DecryptResponse, - }, - // Gets metadata of the sidecar -getMetadata: { - path: '/dapr.proto.runtime.v1.Dapr/GetMetadata', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.GetMetadataRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.GetMetadataResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_GetMetadataRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_GetMetadataRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_GetMetadataResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_GetMetadataResponse, - }, - // Sets value in extended metadata of the sidecar -setMetadata: { - path: '/dapr.proto.runtime.v1.Dapr/SetMetadata', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.SetMetadataRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_SetMetadataRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_SetMetadataRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // SubtleGetKeyAlpha1 returns the public part of an asymmetric key stored in the vault. -subtleGetKeyAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/SubtleGetKeyAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.SubtleGetKeyResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_SubtleGetKeyRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_SubtleGetKeyRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_SubtleGetKeyResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_SubtleGetKeyResponse, - }, - // SubtleEncryptAlpha1 encrypts a small message using a key stored in the vault. -subtleEncryptAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/SubtleEncryptAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.SubtleEncryptResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_SubtleEncryptRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_SubtleEncryptRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_SubtleEncryptResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_SubtleEncryptResponse, - }, - // SubtleDecryptAlpha1 decrypts a small message using a key stored in the vault. -subtleDecryptAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/SubtleDecryptAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.SubtleDecryptResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_SubtleDecryptRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_SubtleDecryptRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_SubtleDecryptResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_SubtleDecryptResponse, - }, - // SubtleWrapKeyAlpha1 wraps a key using a key stored in the vault. -subtleWrapKeyAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/SubtleWrapKeyAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.SubtleWrapKeyResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_SubtleWrapKeyRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_SubtleWrapKeyRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_SubtleWrapKeyResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_SubtleWrapKeyResponse, - }, - // SubtleUnwrapKeyAlpha1 unwraps a key using a key stored in the vault. -subtleUnwrapKeyAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/SubtleUnwrapKeyAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.SubtleUnwrapKeyResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_SubtleUnwrapKeyRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_SubtleUnwrapKeyRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_SubtleUnwrapKeyResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_SubtleUnwrapKeyResponse, - }, - // SubtleSignAlpha1 signs a message using a key stored in the vault. -subtleSignAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/SubtleSignAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.SubtleSignRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.SubtleSignResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_SubtleSignRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_SubtleSignRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_SubtleSignResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_SubtleSignResponse, - }, - // SubtleVerifyAlpha1 verifies the signature of a message using a key stored in the vault. -subtleVerifyAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/SubtleVerifyAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.SubtleVerifyResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_SubtleVerifyRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_SubtleVerifyRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_SubtleVerifyResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_SubtleVerifyResponse, - }, - // Starts a new instance of a workflow -startWorkflowAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/StartWorkflowAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_StartWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_StartWorkflowRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_StartWorkflowResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_StartWorkflowResponse, - }, - // Gets details about a started workflow instance -getWorkflowAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/GetWorkflowAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_GetWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_GetWorkflowRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_GetWorkflowResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_GetWorkflowResponse, - }, - // Purge Workflow -purgeWorkflowAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/PurgeWorkflowAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_PurgeWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_PurgeWorkflowRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Terminates a running workflow instance -terminateWorkflowAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/TerminateWorkflowAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_TerminateWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_TerminateWorkflowRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Pauses a running workflow instance -pauseWorkflowAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/PauseWorkflowAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_PauseWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_PauseWorkflowRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Resumes a paused workflow instance -resumeWorkflowAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/ResumeWorkflowAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_ResumeWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_ResumeWorkflowRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Raise an event to a running workflow instance -raiseEventWorkflowAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/RaiseEventWorkflowAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_RaiseEventWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_RaiseEventWorkflowRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Starts a new instance of a workflow -startWorkflowBeta1: { - path: '/dapr.proto.runtime.v1.Dapr/StartWorkflowBeta1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.StartWorkflowRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.StartWorkflowResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_StartWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_StartWorkflowRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_StartWorkflowResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_StartWorkflowResponse, - }, - // Gets details about a started workflow instance -getWorkflowBeta1: { - path: '/dapr.proto.runtime.v1.Dapr/GetWorkflowBeta1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.GetWorkflowRequest, - responseType: dapr_proto_runtime_v1_dapr_pb.GetWorkflowResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_GetWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_GetWorkflowRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_GetWorkflowResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_GetWorkflowResponse, - }, - // Purge Workflow -purgeWorkflowBeta1: { - path: '/dapr.proto.runtime.v1.Dapr/PurgeWorkflowBeta1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.PurgeWorkflowRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_PurgeWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_PurgeWorkflowRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Terminates a running workflow instance -terminateWorkflowBeta1: { - path: '/dapr.proto.runtime.v1.Dapr/TerminateWorkflowBeta1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.TerminateWorkflowRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_TerminateWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_TerminateWorkflowRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Pauses a running workflow instance -pauseWorkflowBeta1: { - path: '/dapr.proto.runtime.v1.Dapr/PauseWorkflowBeta1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.PauseWorkflowRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_PauseWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_PauseWorkflowRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Resumes a paused workflow instance -resumeWorkflowBeta1: { - path: '/dapr.proto.runtime.v1.Dapr/ResumeWorkflowBeta1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.ResumeWorkflowRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_ResumeWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_ResumeWorkflowRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Raise an event to a running workflow instance -raiseEventWorkflowBeta1: { - path: '/dapr.proto.runtime.v1.Dapr/RaiseEventWorkflowBeta1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.RaiseEventWorkflowRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_RaiseEventWorkflowRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_RaiseEventWorkflowRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Shutdown the sidecar -shutdown: { - path: '/dapr.proto.runtime.v1.Dapr/Shutdown', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_dapr_pb.ShutdownRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_runtime_v1_ShutdownRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_ShutdownRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // 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 69ad0cf8..3ce64d76 100644 --- a/src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts +++ b/src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts @@ -1,2871 +1,4755 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/dapr.proto - -/* tslint:disable */ +// +//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. + +// @generated by protoc-gen-es v2.7.0 with parameter "target=js+dts,import_extension=none" +// @generated from file dapr/proto/runtime/v1/dapr.proto (package dapr.proto.runtime.v1, syntax proto3) /* 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 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; - setId(value: string): InvokeServiceRequest; - - hasMessage(): boolean; - clearMessage(): void; - getMessage(): dapr_proto_common_v1_common_pb.InvokeRequest | undefined; - setMessage(value?: dapr_proto_common_v1_common_pb.InvokeRequest): InvokeServiceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InvokeServiceRequest.AsObject; - static toObject(includeInstance: boolean, msg: InvokeServiceRequest): InvokeServiceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InvokeServiceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InvokeServiceRequest; - static deserializeBinaryFromReader(message: InvokeServiceRequest, reader: jspb.BinaryReader): InvokeServiceRequest; -} - -export namespace InvokeServiceRequest { - export type AsObject = { - id: string, - message?: dapr_proto_common_v1_common_pb.InvokeRequest.AsObject, - } -} - -export class GetStateRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): GetStateRequest; - getKey(): string; - setKey(value: string): GetStateRequest; - getConsistency(): dapr_proto_common_v1_common_pb.StateOptions.StateConsistency; - setConsistency(value: dapr_proto_common_v1_common_pb.StateOptions.StateConsistency): GetStateRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetStateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetStateRequest): GetStateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetStateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetStateRequest; - static deserializeBinaryFromReader(message: GetStateRequest, reader: jspb.BinaryReader): GetStateRequest; -} - -export namespace GetStateRequest { - export type AsObject = { - storeName: string, - key: string, - consistency: dapr_proto_common_v1_common_pb.StateOptions.StateConsistency, - - metadataMap: Array<[string, string]>, - } -} - -export class GetBulkStateRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): GetBulkStateRequest; - clearKeysList(): void; - getKeysList(): Array; - setKeysList(value: Array): GetBulkStateRequest; - addKeys(value: string, index?: number): string; - getParallelism(): number; - setParallelism(value: number): GetBulkStateRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetBulkStateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetBulkStateRequest): GetBulkStateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetBulkStateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetBulkStateRequest; - static deserializeBinaryFromReader(message: GetBulkStateRequest, reader: jspb.BinaryReader): GetBulkStateRequest; -} - -export namespace GetBulkStateRequest { - export type AsObject = { - storeName: string, - keysList: Array, - parallelism: number, - - metadataMap: Array<[string, string]>, - } -} - -export class GetBulkStateResponse extends jspb.Message { - clearItemsList(): void; - getItemsList(): Array; - setItemsList(value: Array): GetBulkStateResponse; - addItems(value?: BulkStateItem, index?: number): BulkStateItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetBulkStateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetBulkStateResponse): GetBulkStateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetBulkStateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetBulkStateResponse; - static deserializeBinaryFromReader(message: GetBulkStateResponse, reader: jspb.BinaryReader): GetBulkStateResponse; -} - -export namespace GetBulkStateResponse { - export type AsObject = { - itemsList: Array, - } -} - -export class BulkStateItem extends jspb.Message { - getKey(): string; - setKey(value: string): BulkStateItem; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): BulkStateItem; - getEtag(): string; - setEtag(value: string): BulkStateItem; - getError(): string; - setError(value: string): BulkStateItem; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BulkStateItem.AsObject; - static toObject(includeInstance: boolean, msg: BulkStateItem): BulkStateItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BulkStateItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BulkStateItem; - static deserializeBinaryFromReader(message: BulkStateItem, reader: jspb.BinaryReader): BulkStateItem; -} - -export namespace BulkStateItem { - export type AsObject = { - key: string, - data: Uint8Array | string, - etag: string, - error: string, - - metadataMap: Array<[string, string]>, - } -} - -export class GetStateResponse extends jspb.Message { - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): GetStateResponse; - getEtag(): string; - setEtag(value: string): GetStateResponse; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetStateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetStateResponse): GetStateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetStateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetStateResponse; - static deserializeBinaryFromReader(message: GetStateResponse, reader: jspb.BinaryReader): GetStateResponse; -} - -export namespace GetStateResponse { - export type AsObject = { - data: Uint8Array | string, - etag: string, - - metadataMap: Array<[string, string]>, - } -} - -export class DeleteStateRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): DeleteStateRequest; - getKey(): string; - setKey(value: string): DeleteStateRequest; - - hasEtag(): boolean; - clearEtag(): void; - getEtag(): dapr_proto_common_v1_common_pb.Etag | undefined; - setEtag(value?: dapr_proto_common_v1_common_pb.Etag): DeleteStateRequest; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): dapr_proto_common_v1_common_pb.StateOptions | undefined; - setOptions(value?: dapr_proto_common_v1_common_pb.StateOptions): DeleteStateRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteStateRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteStateRequest): DeleteStateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteStateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteStateRequest; - static deserializeBinaryFromReader(message: DeleteStateRequest, reader: jspb.BinaryReader): DeleteStateRequest; -} - -export namespace DeleteStateRequest { - export type AsObject = { - storeName: string, - key: string, - etag?: dapr_proto_common_v1_common_pb.Etag.AsObject, - options?: dapr_proto_common_v1_common_pb.StateOptions.AsObject, - - metadataMap: Array<[string, string]>, - } -} - -export class DeleteBulkStateRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): DeleteBulkStateRequest; - clearStatesList(): void; - getStatesList(): Array; - setStatesList(value: Array): DeleteBulkStateRequest; - addStates(value?: dapr_proto_common_v1_common_pb.StateItem, index?: number): dapr_proto_common_v1_common_pb.StateItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteBulkStateRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteBulkStateRequest): DeleteBulkStateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteBulkStateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteBulkStateRequest; - static deserializeBinaryFromReader(message: DeleteBulkStateRequest, reader: jspb.BinaryReader): DeleteBulkStateRequest; -} - -export namespace DeleteBulkStateRequest { - export type AsObject = { - storeName: string, - statesList: Array, - } -} - -export class SaveStateRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): SaveStateRequest; - clearStatesList(): void; - getStatesList(): Array; - setStatesList(value: Array): SaveStateRequest; - addStates(value?: dapr_proto_common_v1_common_pb.StateItem, index?: number): dapr_proto_common_v1_common_pb.StateItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SaveStateRequest.AsObject; - static toObject(includeInstance: boolean, msg: SaveStateRequest): SaveStateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SaveStateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SaveStateRequest; - static deserializeBinaryFromReader(message: SaveStateRequest, reader: jspb.BinaryReader): SaveStateRequest; -} - -export namespace SaveStateRequest { - export type AsObject = { - storeName: string, - statesList: Array, - } -} - -export class QueryStateRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): QueryStateRequest; - getQuery(): string; - setQuery(value: string): QueryStateRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryStateRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryStateRequest): QueryStateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryStateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryStateRequest; - static deserializeBinaryFromReader(message: QueryStateRequest, reader: jspb.BinaryReader): QueryStateRequest; -} - -export namespace QueryStateRequest { - export type AsObject = { - storeName: string, - query: string, - - metadataMap: Array<[string, string]>, - } -} - -export class QueryStateItem extends jspb.Message { - getKey(): string; - setKey(value: string): QueryStateItem; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): QueryStateItem; - getEtag(): string; - setEtag(value: string): QueryStateItem; - getError(): string; - setError(value: string): QueryStateItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryStateItem.AsObject; - static toObject(includeInstance: boolean, msg: QueryStateItem): QueryStateItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryStateItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryStateItem; - static deserializeBinaryFromReader(message: QueryStateItem, reader: jspb.BinaryReader): QueryStateItem; -} - -export namespace QueryStateItem { - export type AsObject = { - key: string, - data: Uint8Array | string, - etag: string, - error: string, - } -} - -export class QueryStateResponse extends jspb.Message { - clearResultsList(): void; - getResultsList(): Array; - setResultsList(value: Array): QueryStateResponse; - addResults(value?: QueryStateItem, index?: number): QueryStateItem; - getToken(): string; - setToken(value: string): QueryStateResponse; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryStateResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryStateResponse): QueryStateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryStateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryStateResponse; - static deserializeBinaryFromReader(message: QueryStateResponse, reader: jspb.BinaryReader): QueryStateResponse; -} - -export namespace QueryStateResponse { - export type AsObject = { - resultsList: Array, - token: string, - - metadataMap: Array<[string, string]>, - } -} - -export class PublishEventRequest extends jspb.Message { - getPubsubName(): string; - setPubsubName(value: string): PublishEventRequest; - getTopic(): string; - setTopic(value: string): PublishEventRequest; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): PublishEventRequest; - getDataContentType(): string; - setDataContentType(value: string): PublishEventRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PublishEventRequest.AsObject; - static toObject(includeInstance: boolean, msg: PublishEventRequest): PublishEventRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PublishEventRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PublishEventRequest; - static deserializeBinaryFromReader(message: PublishEventRequest, reader: jspb.BinaryReader): PublishEventRequest; -} - -export namespace PublishEventRequest { - export type AsObject = { - pubsubName: string, - topic: string, - data: Uint8Array | string, - dataContentType: string, - - metadataMap: Array<[string, string]>, - } -} - -export class BulkPublishRequest extends jspb.Message { - getPubsubName(): string; - setPubsubName(value: string): BulkPublishRequest; - getTopic(): string; - setTopic(value: string): BulkPublishRequest; - clearEntriesList(): void; - getEntriesList(): Array; - setEntriesList(value: Array): BulkPublishRequest; - addEntries(value?: BulkPublishRequestEntry, index?: number): BulkPublishRequestEntry; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BulkPublishRequest.AsObject; - static toObject(includeInstance: boolean, msg: BulkPublishRequest): BulkPublishRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BulkPublishRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BulkPublishRequest; - static deserializeBinaryFromReader(message: BulkPublishRequest, reader: jspb.BinaryReader): BulkPublishRequest; -} - -export namespace BulkPublishRequest { - export type AsObject = { - pubsubName: string, - topic: string, - entriesList: Array, - - metadataMap: Array<[string, string]>, - } -} - -export class BulkPublishRequestEntry extends jspb.Message { - getEntryId(): string; - setEntryId(value: string): BulkPublishRequestEntry; - getEvent(): Uint8Array | string; - getEvent_asU8(): Uint8Array; - getEvent_asB64(): string; - setEvent(value: Uint8Array | string): BulkPublishRequestEntry; - getContentType(): string; - setContentType(value: string): BulkPublishRequestEntry; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BulkPublishRequestEntry.AsObject; - static toObject(includeInstance: boolean, msg: BulkPublishRequestEntry): BulkPublishRequestEntry.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BulkPublishRequestEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BulkPublishRequestEntry; - static deserializeBinaryFromReader(message: BulkPublishRequestEntry, reader: jspb.BinaryReader): BulkPublishRequestEntry; -} - -export namespace BulkPublishRequestEntry { - export type AsObject = { - entryId: string, - event: Uint8Array | string, - contentType: string, - - metadataMap: Array<[string, string]>, - } -} - -export class BulkPublishResponse extends jspb.Message { - clearFailedentriesList(): void; - getFailedentriesList(): Array; - setFailedentriesList(value: Array): BulkPublishResponse; - addFailedentries(value?: BulkPublishResponseFailedEntry, index?: number): BulkPublishResponseFailedEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BulkPublishResponse.AsObject; - static toObject(includeInstance: boolean, msg: BulkPublishResponse): BulkPublishResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BulkPublishResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BulkPublishResponse; - static deserializeBinaryFromReader(message: BulkPublishResponse, reader: jspb.BinaryReader): BulkPublishResponse; -} - -export namespace BulkPublishResponse { - export type AsObject = { - failedentriesList: Array, - } -} - -export class BulkPublishResponseFailedEntry extends jspb.Message { - getEntryId(): string; - setEntryId(value: string): BulkPublishResponseFailedEntry; - getError(): string; - setError(value: string): BulkPublishResponseFailedEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BulkPublishResponseFailedEntry.AsObject; - static toObject(includeInstance: boolean, msg: BulkPublishResponseFailedEntry): BulkPublishResponseFailedEntry.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BulkPublishResponseFailedEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BulkPublishResponseFailedEntry; - static deserializeBinaryFromReader(message: BulkPublishResponseFailedEntry, reader: jspb.BinaryReader): BulkPublishResponseFailedEntry; -} - -export namespace BulkPublishResponseFailedEntry { - export type AsObject = { - entryId: string, - error: string, - } -} - -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; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): InvokeBindingRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - getOperation(): string; - setOperation(value: string): InvokeBindingRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InvokeBindingRequest.AsObject; - static toObject(includeInstance: boolean, msg: InvokeBindingRequest): InvokeBindingRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InvokeBindingRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InvokeBindingRequest; - static deserializeBinaryFromReader(message: InvokeBindingRequest, reader: jspb.BinaryReader): InvokeBindingRequest; -} - -export namespace InvokeBindingRequest { - export type AsObject = { - name: string, - data: Uint8Array | string, - - metadataMap: Array<[string, string]>, - operation: string, - } -} - -export class InvokeBindingResponse extends jspb.Message { - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): InvokeBindingResponse; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InvokeBindingResponse.AsObject; - static toObject(includeInstance: boolean, msg: InvokeBindingResponse): InvokeBindingResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InvokeBindingResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InvokeBindingResponse; - static deserializeBinaryFromReader(message: InvokeBindingResponse, reader: jspb.BinaryReader): InvokeBindingResponse; -} - -export namespace InvokeBindingResponse { - export type AsObject = { - data: Uint8Array | string, - - metadataMap: Array<[string, string]>, - } -} - -export class GetSecretRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): GetSecretRequest; - getKey(): string; - setKey(value: string): GetSecretRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetSecretRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetSecretRequest): GetSecretRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetSecretRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetSecretRequest; - static deserializeBinaryFromReader(message: GetSecretRequest, reader: jspb.BinaryReader): GetSecretRequest; -} - -export namespace GetSecretRequest { - export type AsObject = { - storeName: string, - key: string, - - metadataMap: Array<[string, string]>, - } -} - -export class GetSecretResponse extends jspb.Message { - - getDataMap(): jspb.Map; - clearDataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetSecretResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetSecretResponse): GetSecretResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetSecretResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetSecretResponse; - static deserializeBinaryFromReader(message: GetSecretResponse, reader: jspb.BinaryReader): GetSecretResponse; -} - -export namespace GetSecretResponse { - export type AsObject = { - - dataMap: Array<[string, string]>, - } -} - -export class GetBulkSecretRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): GetBulkSecretRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetBulkSecretRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetBulkSecretRequest): GetBulkSecretRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetBulkSecretRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetBulkSecretRequest; - static deserializeBinaryFromReader(message: GetBulkSecretRequest, reader: jspb.BinaryReader): GetBulkSecretRequest; -} - -export namespace GetBulkSecretRequest { - export type AsObject = { - storeName: string, - - metadataMap: Array<[string, string]>, - } -} - -export class SecretResponse extends jspb.Message { - - getSecretsMap(): jspb.Map; - clearSecretsMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SecretResponse.AsObject; - static toObject(includeInstance: boolean, msg: SecretResponse): SecretResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SecretResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SecretResponse; - static deserializeBinaryFromReader(message: SecretResponse, reader: jspb.BinaryReader): SecretResponse; -} - -export namespace SecretResponse { - export type AsObject = { - - secretsMap: Array<[string, string]>, - } -} - -export class GetBulkSecretResponse extends jspb.Message { - - getDataMap(): jspb.Map; - clearDataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetBulkSecretResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetBulkSecretResponse): GetBulkSecretResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetBulkSecretResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetBulkSecretResponse; - static deserializeBinaryFromReader(message: GetBulkSecretResponse, reader: jspb.BinaryReader): GetBulkSecretResponse; -} - -export namespace GetBulkSecretResponse { - export type AsObject = { - - dataMap: Array<[string, SecretResponse.AsObject]>, - } -} - -export class TransactionalStateOperation extends jspb.Message { - getOperationtype(): string; - setOperationtype(value: string): TransactionalStateOperation; - - hasRequest(): boolean; - clearRequest(): void; - getRequest(): dapr_proto_common_v1_common_pb.StateItem | undefined; - setRequest(value?: dapr_proto_common_v1_common_pb.StateItem): TransactionalStateOperation; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TransactionalStateOperation.AsObject; - static toObject(includeInstance: boolean, msg: TransactionalStateOperation): TransactionalStateOperation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TransactionalStateOperation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TransactionalStateOperation; - static deserializeBinaryFromReader(message: TransactionalStateOperation, reader: jspb.BinaryReader): TransactionalStateOperation; -} - -export namespace TransactionalStateOperation { - export type AsObject = { - operationtype: string, - request?: dapr_proto_common_v1_common_pb.StateItem.AsObject, - } -} - -export class ExecuteStateTransactionRequest extends jspb.Message { - getStorename(): string; - setStorename(value: string): ExecuteStateTransactionRequest; - clearOperationsList(): void; - getOperationsList(): Array; - setOperationsList(value: Array): ExecuteStateTransactionRequest; - addOperations(value?: TransactionalStateOperation, index?: number): TransactionalStateOperation; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ExecuteStateTransactionRequest.AsObject; - static toObject(includeInstance: boolean, msg: ExecuteStateTransactionRequest): ExecuteStateTransactionRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ExecuteStateTransactionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ExecuteStateTransactionRequest; - static deserializeBinaryFromReader(message: ExecuteStateTransactionRequest, reader: jspb.BinaryReader): ExecuteStateTransactionRequest; -} - -export namespace ExecuteStateTransactionRequest { - export type AsObject = { - storename: string, - operationsList: Array, - - metadataMap: Array<[string, string]>, - } -} - -export class RegisterActorTimerRequest extends jspb.Message { - getActorType(): string; - setActorType(value: string): RegisterActorTimerRequest; - getActorId(): string; - setActorId(value: string): RegisterActorTimerRequest; - getName(): string; - setName(value: string): RegisterActorTimerRequest; - getDueTime(): string; - setDueTime(value: string): RegisterActorTimerRequest; - getPeriod(): string; - setPeriod(value: string): RegisterActorTimerRequest; - getCallback(): string; - setCallback(value: string): RegisterActorTimerRequest; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): RegisterActorTimerRequest; - getTtl(): string; - setTtl(value: string): RegisterActorTimerRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RegisterActorTimerRequest.AsObject; - static toObject(includeInstance: boolean, msg: RegisterActorTimerRequest): RegisterActorTimerRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RegisterActorTimerRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RegisterActorTimerRequest; - static deserializeBinaryFromReader(message: RegisterActorTimerRequest, reader: jspb.BinaryReader): RegisterActorTimerRequest; -} - -export namespace RegisterActorTimerRequest { - export type AsObject = { - actorType: string, - actorId: string, - name: string, - dueTime: string, - period: string, - callback: string, - data: Uint8Array | string, - ttl: string, - } -} - -export class UnregisterActorTimerRequest extends jspb.Message { - getActorType(): string; - setActorType(value: string): UnregisterActorTimerRequest; - getActorId(): string; - setActorId(value: string): UnregisterActorTimerRequest; - getName(): string; - setName(value: string): UnregisterActorTimerRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnregisterActorTimerRequest.AsObject; - static toObject(includeInstance: boolean, msg: UnregisterActorTimerRequest): UnregisterActorTimerRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UnregisterActorTimerRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnregisterActorTimerRequest; - static deserializeBinaryFromReader(message: UnregisterActorTimerRequest, reader: jspb.BinaryReader): UnregisterActorTimerRequest; -} - -export namespace UnregisterActorTimerRequest { - export type AsObject = { - actorType: string, - actorId: string, - name: string, - } -} - -export class RegisterActorReminderRequest extends jspb.Message { - getActorType(): string; - setActorType(value: string): RegisterActorReminderRequest; - getActorId(): string; - setActorId(value: string): RegisterActorReminderRequest; - getName(): string; - setName(value: string): RegisterActorReminderRequest; - getDueTime(): string; - setDueTime(value: string): RegisterActorReminderRequest; - getPeriod(): string; - setPeriod(value: string): RegisterActorReminderRequest; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): RegisterActorReminderRequest; - getTtl(): string; - setTtl(value: string): RegisterActorReminderRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RegisterActorReminderRequest.AsObject; - static toObject(includeInstance: boolean, msg: RegisterActorReminderRequest): RegisterActorReminderRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RegisterActorReminderRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RegisterActorReminderRequest; - static deserializeBinaryFromReader(message: RegisterActorReminderRequest, reader: jspb.BinaryReader): RegisterActorReminderRequest; -} - -export namespace RegisterActorReminderRequest { - export type AsObject = { - actorType: string, - actorId: string, - name: string, - dueTime: string, - period: string, - data: Uint8Array | string, - ttl: string, - } -} - -export class UnregisterActorReminderRequest extends jspb.Message { - getActorType(): string; - setActorType(value: string): UnregisterActorReminderRequest; - getActorId(): string; - setActorId(value: string): UnregisterActorReminderRequest; - getName(): string; - setName(value: string): UnregisterActorReminderRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnregisterActorReminderRequest.AsObject; - static toObject(includeInstance: boolean, msg: UnregisterActorReminderRequest): UnregisterActorReminderRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UnregisterActorReminderRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnregisterActorReminderRequest; - static deserializeBinaryFromReader(message: UnregisterActorReminderRequest, reader: jspb.BinaryReader): UnregisterActorReminderRequest; -} - -export namespace UnregisterActorReminderRequest { - export type AsObject = { - actorType: string, - actorId: string, - name: string, - } -} - -export class GetActorStateRequest extends jspb.Message { - getActorType(): string; - setActorType(value: string): GetActorStateRequest; - getActorId(): string; - setActorId(value: string): GetActorStateRequest; - getKey(): string; - setKey(value: string): GetActorStateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetActorStateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetActorStateRequest): GetActorStateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetActorStateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetActorStateRequest; - static deserializeBinaryFromReader(message: GetActorStateRequest, reader: jspb.BinaryReader): GetActorStateRequest; -} - -export namespace GetActorStateRequest { - export type AsObject = { - actorType: string, - actorId: string, - key: string, - } -} - -export class GetActorStateResponse extends jspb.Message { - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): GetActorStateResponse; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetActorStateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetActorStateResponse): GetActorStateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetActorStateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetActorStateResponse; - static deserializeBinaryFromReader(message: GetActorStateResponse, reader: jspb.BinaryReader): GetActorStateResponse; -} - -export namespace GetActorStateResponse { - export type AsObject = { - data: Uint8Array | string, - - metadataMap: Array<[string, string]>, - } -} - -export class ExecuteActorStateTransactionRequest extends jspb.Message { - getActorType(): string; - setActorType(value: string): ExecuteActorStateTransactionRequest; - getActorId(): string; - setActorId(value: string): ExecuteActorStateTransactionRequest; - clearOperationsList(): void; - getOperationsList(): Array; - setOperationsList(value: Array): ExecuteActorStateTransactionRequest; - addOperations(value?: TransactionalActorStateOperation, index?: number): TransactionalActorStateOperation; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ExecuteActorStateTransactionRequest.AsObject; - static toObject(includeInstance: boolean, msg: ExecuteActorStateTransactionRequest): ExecuteActorStateTransactionRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ExecuteActorStateTransactionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ExecuteActorStateTransactionRequest; - static deserializeBinaryFromReader(message: ExecuteActorStateTransactionRequest, reader: jspb.BinaryReader): ExecuteActorStateTransactionRequest; -} - -export namespace ExecuteActorStateTransactionRequest { - export type AsObject = { - actorType: string, - actorId: string, - operationsList: Array, - } -} - -export class TransactionalActorStateOperation extends jspb.Message { - getOperationtype(): string; - setOperationtype(value: string): TransactionalActorStateOperation; - getKey(): string; - setKey(value: string): TransactionalActorStateOperation; - - hasValue(): boolean; - clearValue(): void; - getValue(): google_protobuf_any_pb.Any | undefined; - setValue(value?: google_protobuf_any_pb.Any): TransactionalActorStateOperation; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TransactionalActorStateOperation.AsObject; - static toObject(includeInstance: boolean, msg: TransactionalActorStateOperation): TransactionalActorStateOperation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TransactionalActorStateOperation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TransactionalActorStateOperation; - static deserializeBinaryFromReader(message: TransactionalActorStateOperation, reader: jspb.BinaryReader): TransactionalActorStateOperation; -} - -export namespace TransactionalActorStateOperation { - export type AsObject = { - operationtype: string, - key: string, - value?: google_protobuf_any_pb.Any.AsObject, - - metadataMap: Array<[string, string]>, - } -} - -export class InvokeActorRequest extends jspb.Message { - getActorType(): string; - setActorType(value: string): InvokeActorRequest; - getActorId(): string; - setActorId(value: string): InvokeActorRequest; - getMethod(): string; - setMethod(value: string): InvokeActorRequest; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): InvokeActorRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InvokeActorRequest.AsObject; - static toObject(includeInstance: boolean, msg: InvokeActorRequest): InvokeActorRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InvokeActorRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InvokeActorRequest; - static deserializeBinaryFromReader(message: InvokeActorRequest, reader: jspb.BinaryReader): InvokeActorRequest; -} - -export namespace InvokeActorRequest { - export type AsObject = { - actorType: string, - actorId: string, - method: string, - data: Uint8Array | string, - - metadataMap: Array<[string, string]>, - } -} - -export class InvokeActorResponse extends jspb.Message { - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): InvokeActorResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InvokeActorResponse.AsObject; - static toObject(includeInstance: boolean, msg: InvokeActorResponse): InvokeActorResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InvokeActorResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InvokeActorResponse; - static deserializeBinaryFromReader(message: InvokeActorResponse, reader: jspb.BinaryReader): InvokeActorResponse; -} - -export namespace InvokeActorResponse { - export type AsObject = { - data: Uint8Array | string, - } -} - -export class GetMetadataRequest extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMetadataRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetMetadataRequest): GetMetadataRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetMetadataRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMetadataRequest; - static deserializeBinaryFromReader(message: GetMetadataRequest, reader: jspb.BinaryReader): GetMetadataRequest; -} - -export namespace GetMetadataRequest { - export type AsObject = { - } -} - -export class GetMetadataResponse extends jspb.Message { - getId(): string; - setId(value: string): GetMetadataResponse; - clearActiveActorsCountList(): void; - getActiveActorsCountList(): Array; - setActiveActorsCountList(value: Array): GetMetadataResponse; - addActiveActorsCount(value?: ActiveActorsCount, index?: number): ActiveActorsCount; - clearRegisteredComponentsList(): void; - getRegisteredComponentsList(): Array; - setRegisteredComponentsList(value: Array): GetMetadataResponse; - addRegisteredComponents(value?: RegisteredComponents, index?: number): RegisteredComponents; - - getExtendedMetadataMap(): jspb.Map; - clearExtendedMetadataMap(): void; - clearSubscriptionsList(): void; - getSubscriptionsList(): Array; - setSubscriptionsList(value: Array): GetMetadataResponse; - addSubscriptions(value?: PubsubSubscription, index?: number): PubsubSubscription; - clearHttpEndpointsList(): void; - getHttpEndpointsList(): Array; - setHttpEndpointsList(value: Array): GetMetadataResponse; - addHttpEndpoints(value?: MetadataHTTPEndpoint, index?: number): MetadataHTTPEndpoint; - - hasAppConnectionProperties(): boolean; - clearAppConnectionProperties(): void; - getAppConnectionProperties(): AppConnectionProperties | undefined; - setAppConnectionProperties(value?: AppConnectionProperties): GetMetadataResponse; - getRuntimeVersion(): string; - setRuntimeVersion(value: string): GetMetadataResponse; - clearEnabledFeaturesList(): void; - getEnabledFeaturesList(): Array; - setEnabledFeaturesList(value: Array): GetMetadataResponse; - addEnabledFeatures(value: string, index?: number): string; - - hasActorRuntime(): boolean; - clearActorRuntime(): void; - getActorRuntime(): ActorRuntime | undefined; - setActorRuntime(value?: ActorRuntime): GetMetadataResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMetadataResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetMetadataResponse): GetMetadataResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetMetadataResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMetadataResponse; - static deserializeBinaryFromReader(message: GetMetadataResponse, reader: jspb.BinaryReader): GetMetadataResponse; -} - -export namespace GetMetadataResponse { - export type AsObject = { - id: string, - activeActorsCountList: Array, - registeredComponentsList: Array, - - extendedMetadataMap: Array<[string, string]>, - subscriptionsList: Array, - httpEndpointsList: Array, - appConnectionProperties?: AppConnectionProperties.AsObject, - runtimeVersion: string, - enabledFeaturesList: Array, - actorRuntime?: ActorRuntime.AsObject, - } -} - -export class ActorRuntime extends jspb.Message { - getRuntimeStatus(): ActorRuntime.ActorRuntimeStatus; - setRuntimeStatus(value: ActorRuntime.ActorRuntimeStatus): ActorRuntime; - clearActiveActorsList(): void; - getActiveActorsList(): Array; - setActiveActorsList(value: Array): ActorRuntime; - addActiveActors(value?: ActiveActorsCount, index?: number): ActiveActorsCount; - getHostReady(): boolean; - setHostReady(value: boolean): ActorRuntime; - getPlacement(): string; - setPlacement(value: string): ActorRuntime; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ActorRuntime.AsObject; - static toObject(includeInstance: boolean, msg: ActorRuntime): ActorRuntime.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ActorRuntime, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ActorRuntime; - static deserializeBinaryFromReader(message: ActorRuntime, reader: jspb.BinaryReader): ActorRuntime; -} - -export namespace ActorRuntime { - export type AsObject = { - runtimeStatus: ActorRuntime.ActorRuntimeStatus, - activeActorsList: Array, - hostReady: boolean, - placement: string, - } - - export enum ActorRuntimeStatus { - INITIALIZING = 0, - DISABLED = 1, - RUNNING = 2, - } - -} - -export class ActiveActorsCount extends jspb.Message { - getType(): string; - setType(value: string): ActiveActorsCount; - getCount(): number; - setCount(value: number): ActiveActorsCount; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ActiveActorsCount.AsObject; - static toObject(includeInstance: boolean, msg: ActiveActorsCount): ActiveActorsCount.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ActiveActorsCount, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ActiveActorsCount; - static deserializeBinaryFromReader(message: ActiveActorsCount, reader: jspb.BinaryReader): ActiveActorsCount; -} - -export namespace ActiveActorsCount { - export type AsObject = { - type: string, - count: number, - } -} - -export class RegisteredComponents extends jspb.Message { - getName(): string; - setName(value: string): RegisteredComponents; - getType(): string; - setType(value: string): RegisteredComponents; - getVersion(): string; - setVersion(value: string): RegisteredComponents; - clearCapabilitiesList(): void; - getCapabilitiesList(): Array; - setCapabilitiesList(value: Array): RegisteredComponents; - addCapabilities(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RegisteredComponents.AsObject; - static toObject(includeInstance: boolean, msg: RegisteredComponents): RegisteredComponents.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RegisteredComponents, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RegisteredComponents; - static deserializeBinaryFromReader(message: RegisteredComponents, reader: jspb.BinaryReader): RegisteredComponents; -} - -export namespace RegisteredComponents { - export type AsObject = { - name: string, - type: string, - version: string, - capabilitiesList: Array, - } -} - -export class MetadataHTTPEndpoint extends jspb.Message { - getName(): string; - setName(value: string): MetadataHTTPEndpoint; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MetadataHTTPEndpoint.AsObject; - static toObject(includeInstance: boolean, msg: MetadataHTTPEndpoint): MetadataHTTPEndpoint.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MetadataHTTPEndpoint, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MetadataHTTPEndpoint; - static deserializeBinaryFromReader(message: MetadataHTTPEndpoint, reader: jspb.BinaryReader): MetadataHTTPEndpoint; -} - -export namespace MetadataHTTPEndpoint { - export type AsObject = { - name: string, - } -} - -export class AppConnectionProperties extends jspb.Message { - getPort(): number; - setPort(value: number): AppConnectionProperties; - getProtocol(): string; - setProtocol(value: string): AppConnectionProperties; - getChannelAddress(): string; - setChannelAddress(value: string): AppConnectionProperties; - getMaxConcurrency(): number; - setMaxConcurrency(value: number): AppConnectionProperties; - - hasHealth(): boolean; - clearHealth(): void; - getHealth(): AppConnectionHealthProperties | undefined; - setHealth(value?: AppConnectionHealthProperties): AppConnectionProperties; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AppConnectionProperties.AsObject; - static toObject(includeInstance: boolean, msg: AppConnectionProperties): AppConnectionProperties.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AppConnectionProperties, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AppConnectionProperties; - static deserializeBinaryFromReader(message: AppConnectionProperties, reader: jspb.BinaryReader): AppConnectionProperties; -} - -export namespace AppConnectionProperties { - export type AsObject = { - port: number, - protocol: string, - channelAddress: string, - maxConcurrency: number, - health?: AppConnectionHealthProperties.AsObject, - } -} - -export class AppConnectionHealthProperties extends jspb.Message { - getHealthCheckPath(): string; - setHealthCheckPath(value: string): AppConnectionHealthProperties; - getHealthProbeInterval(): string; - setHealthProbeInterval(value: string): AppConnectionHealthProperties; - getHealthProbeTimeout(): string; - setHealthProbeTimeout(value: string): AppConnectionHealthProperties; - getHealthThreshold(): number; - setHealthThreshold(value: number): AppConnectionHealthProperties; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AppConnectionHealthProperties.AsObject; - static toObject(includeInstance: boolean, msg: AppConnectionHealthProperties): AppConnectionHealthProperties.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AppConnectionHealthProperties, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AppConnectionHealthProperties; - static deserializeBinaryFromReader(message: AppConnectionHealthProperties, reader: jspb.BinaryReader): AppConnectionHealthProperties; -} - -export namespace AppConnectionHealthProperties { - export type AsObject = { - healthCheckPath: string, - healthProbeInterval: string, - healthProbeTimeout: string, - healthThreshold: number, - } -} - -export class PubsubSubscription extends jspb.Message { - getPubsubName(): string; - setPubsubName(value: string): PubsubSubscription; - getTopic(): string; - setTopic(value: string): PubsubSubscription; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - hasRules(): boolean; - clearRules(): void; - getRules(): PubsubSubscriptionRules | undefined; - setRules(value?: PubsubSubscriptionRules): PubsubSubscription; - getDeadLetterTopic(): string; - setDeadLetterTopic(value: string): PubsubSubscription; - getType(): PubsubSubscriptionType; - setType(value: PubsubSubscriptionType): PubsubSubscription; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PubsubSubscription.AsObject; - static toObject(includeInstance: boolean, msg: PubsubSubscription): PubsubSubscription.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PubsubSubscription, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PubsubSubscription; - static deserializeBinaryFromReader(message: PubsubSubscription, reader: jspb.BinaryReader): PubsubSubscription; -} - -export namespace PubsubSubscription { - export type AsObject = { - pubsubName: string, - topic: string, - - metadataMap: Array<[string, string]>, - rules?: PubsubSubscriptionRules.AsObject, - deadLetterTopic: string, - type: PubsubSubscriptionType, - } -} - -export class PubsubSubscriptionRules extends jspb.Message { - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): PubsubSubscriptionRules; - addRules(value?: PubsubSubscriptionRule, index?: number): PubsubSubscriptionRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PubsubSubscriptionRules.AsObject; - static toObject(includeInstance: boolean, msg: PubsubSubscriptionRules): PubsubSubscriptionRules.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PubsubSubscriptionRules, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PubsubSubscriptionRules; - static deserializeBinaryFromReader(message: PubsubSubscriptionRules, reader: jspb.BinaryReader): PubsubSubscriptionRules; -} - -export namespace PubsubSubscriptionRules { - export type AsObject = { - rulesList: Array, - } -} - -export class PubsubSubscriptionRule extends jspb.Message { - getMatch(): string; - setMatch(value: string): PubsubSubscriptionRule; - getPath(): string; - setPath(value: string): PubsubSubscriptionRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PubsubSubscriptionRule.AsObject; - static toObject(includeInstance: boolean, msg: PubsubSubscriptionRule): PubsubSubscriptionRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PubsubSubscriptionRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PubsubSubscriptionRule; - static deserializeBinaryFromReader(message: PubsubSubscriptionRule, reader: jspb.BinaryReader): PubsubSubscriptionRule; -} - -export namespace PubsubSubscriptionRule { - export type AsObject = { - match: string, - path: string, - } -} - -export class SetMetadataRequest extends jspb.Message { - getKey(): string; - setKey(value: string): SetMetadataRequest; - getValue(): string; - setValue(value: string): SetMetadataRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetMetadataRequest.AsObject; - static toObject(includeInstance: boolean, msg: SetMetadataRequest): SetMetadataRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SetMetadataRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetMetadataRequest; - static deserializeBinaryFromReader(message: SetMetadataRequest, reader: jspb.BinaryReader): SetMetadataRequest; -} - -export namespace SetMetadataRequest { - export type AsObject = { - key: string, - value: string, - } -} - -export class GetConfigurationRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): GetConfigurationRequest; - clearKeysList(): void; - getKeysList(): Array; - setKeysList(value: Array): GetConfigurationRequest; - addKeys(value: string, index?: number): string; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetConfigurationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetConfigurationRequest): GetConfigurationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetConfigurationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetConfigurationRequest; - static deserializeBinaryFromReader(message: GetConfigurationRequest, reader: jspb.BinaryReader): GetConfigurationRequest; -} - -export namespace GetConfigurationRequest { - export type AsObject = { - storeName: string, - keysList: Array, - - metadataMap: Array<[string, string]>, - } -} - -export class GetConfigurationResponse extends jspb.Message { - - getItemsMap(): jspb.Map; - clearItemsMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetConfigurationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetConfigurationResponse): GetConfigurationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetConfigurationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetConfigurationResponse; - static deserializeBinaryFromReader(message: GetConfigurationResponse, reader: jspb.BinaryReader): GetConfigurationResponse; -} - -export namespace GetConfigurationResponse { - export type AsObject = { - - itemsMap: Array<[string, dapr_proto_common_v1_common_pb.ConfigurationItem.AsObject]>, - } -} - -export class SubscribeConfigurationRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): SubscribeConfigurationRequest; - clearKeysList(): void; - getKeysList(): Array; - setKeysList(value: Array): SubscribeConfigurationRequest; - addKeys(value: string, index?: number): string; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubscribeConfigurationRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubscribeConfigurationRequest): SubscribeConfigurationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubscribeConfigurationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubscribeConfigurationRequest; - static deserializeBinaryFromReader(message: SubscribeConfigurationRequest, reader: jspb.BinaryReader): SubscribeConfigurationRequest; -} - -export namespace SubscribeConfigurationRequest { - export type AsObject = { - storeName: string, - keysList: Array, - - metadataMap: Array<[string, string]>, - } -} - -export class UnsubscribeConfigurationRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): UnsubscribeConfigurationRequest; - getId(): string; - setId(value: string): UnsubscribeConfigurationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnsubscribeConfigurationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UnsubscribeConfigurationRequest): UnsubscribeConfigurationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UnsubscribeConfigurationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnsubscribeConfigurationRequest; - static deserializeBinaryFromReader(message: UnsubscribeConfigurationRequest, reader: jspb.BinaryReader): UnsubscribeConfigurationRequest; -} - -export namespace UnsubscribeConfigurationRequest { - export type AsObject = { - storeName: string, - id: string, - } -} - -export class SubscribeConfigurationResponse extends jspb.Message { - getId(): string; - setId(value: string): SubscribeConfigurationResponse; - - getItemsMap(): jspb.Map; - clearItemsMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubscribeConfigurationResponse.AsObject; - static toObject(includeInstance: boolean, msg: SubscribeConfigurationResponse): SubscribeConfigurationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubscribeConfigurationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubscribeConfigurationResponse; - static deserializeBinaryFromReader(message: SubscribeConfigurationResponse, reader: jspb.BinaryReader): SubscribeConfigurationResponse; -} - -export namespace SubscribeConfigurationResponse { - export type AsObject = { - id: string, - - itemsMap: Array<[string, dapr_proto_common_v1_common_pb.ConfigurationItem.AsObject]>, - } -} - -export class UnsubscribeConfigurationResponse extends jspb.Message { - getOk(): boolean; - setOk(value: boolean): UnsubscribeConfigurationResponse; - getMessage(): string; - setMessage(value: string): UnsubscribeConfigurationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnsubscribeConfigurationResponse.AsObject; - static toObject(includeInstance: boolean, msg: UnsubscribeConfigurationResponse): UnsubscribeConfigurationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UnsubscribeConfigurationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnsubscribeConfigurationResponse; - static deserializeBinaryFromReader(message: UnsubscribeConfigurationResponse, reader: jspb.BinaryReader): UnsubscribeConfigurationResponse; -} - -export namespace UnsubscribeConfigurationResponse { - export type AsObject = { - ok: boolean, - message: string, - } -} - -export class TryLockRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): TryLockRequest; - getResourceId(): string; - setResourceId(value: string): TryLockRequest; - getLockOwner(): string; - setLockOwner(value: string): TryLockRequest; - getExpiryInSeconds(): number; - setExpiryInSeconds(value: number): TryLockRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TryLockRequest.AsObject; - static toObject(includeInstance: boolean, msg: TryLockRequest): TryLockRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TryLockRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TryLockRequest; - static deserializeBinaryFromReader(message: TryLockRequest, reader: jspb.BinaryReader): TryLockRequest; -} - -export namespace TryLockRequest { - export type AsObject = { - storeName: string, - resourceId: string, - lockOwner: string, - expiryInSeconds: number, - } -} - -export class TryLockResponse extends jspb.Message { - getSuccess(): boolean; - setSuccess(value: boolean): TryLockResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TryLockResponse.AsObject; - static toObject(includeInstance: boolean, msg: TryLockResponse): TryLockResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TryLockResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TryLockResponse; - static deserializeBinaryFromReader(message: TryLockResponse, reader: jspb.BinaryReader): TryLockResponse; -} - -export namespace TryLockResponse { - export type AsObject = { - success: boolean, - } -} - -export class UnlockRequest extends jspb.Message { - getStoreName(): string; - setStoreName(value: string): UnlockRequest; - getResourceId(): string; - setResourceId(value: string): UnlockRequest; - getLockOwner(): string; - setLockOwner(value: string): UnlockRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnlockRequest.AsObject; - static toObject(includeInstance: boolean, msg: UnlockRequest): UnlockRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UnlockRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnlockRequest; - static deserializeBinaryFromReader(message: UnlockRequest, reader: jspb.BinaryReader): UnlockRequest; -} - -export namespace UnlockRequest { - export type AsObject = { - storeName: string, - resourceId: string, - lockOwner: string, - } -} - -export class UnlockResponse extends jspb.Message { - getStatus(): UnlockResponse.Status; - setStatus(value: UnlockResponse.Status): UnlockResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnlockResponse.AsObject; - static toObject(includeInstance: boolean, msg: UnlockResponse): UnlockResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UnlockResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnlockResponse; - static deserializeBinaryFromReader(message: UnlockResponse, reader: jspb.BinaryReader): UnlockResponse; -} - -export namespace UnlockResponse { - export type AsObject = { - status: UnlockResponse.Status, - } - - export enum Status { - SUCCESS = 0, - LOCK_DOES_NOT_EXIST = 1, - LOCK_BELONGS_TO_OTHERS = 2, - INTERNAL_ERROR = 3, - } - -} - -export class SubtleGetKeyRequest extends jspb.Message { - getComponentName(): string; - setComponentName(value: string): SubtleGetKeyRequest; - getName(): string; - setName(value: string): SubtleGetKeyRequest; - getFormat(): SubtleGetKeyRequest.KeyFormat; - setFormat(value: SubtleGetKeyRequest.KeyFormat): SubtleGetKeyRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleGetKeyRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubtleGetKeyRequest): SubtleGetKeyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleGetKeyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleGetKeyRequest; - static deserializeBinaryFromReader(message: SubtleGetKeyRequest, reader: jspb.BinaryReader): SubtleGetKeyRequest; -} - -export namespace SubtleGetKeyRequest { - export type AsObject = { - componentName: string, - name: string, - format: SubtleGetKeyRequest.KeyFormat, - } - - export enum KeyFormat { - PEM = 0, - JSON = 1, - } - -} - -export class SubtleGetKeyResponse extends jspb.Message { - getName(): string; - setName(value: string): SubtleGetKeyResponse; - getPublicKey(): string; - setPublicKey(value: string): SubtleGetKeyResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleGetKeyResponse.AsObject; - static toObject(includeInstance: boolean, msg: SubtleGetKeyResponse): SubtleGetKeyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleGetKeyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleGetKeyResponse; - static deserializeBinaryFromReader(message: SubtleGetKeyResponse, reader: jspb.BinaryReader): SubtleGetKeyResponse; -} - -export namespace SubtleGetKeyResponse { - export type AsObject = { - name: string, - publicKey: string, - } -} - -export class SubtleEncryptRequest extends jspb.Message { - getComponentName(): string; - setComponentName(value: string): SubtleEncryptRequest; - getPlaintext(): Uint8Array | string; - getPlaintext_asU8(): Uint8Array; - getPlaintext_asB64(): string; - setPlaintext(value: Uint8Array | string): SubtleEncryptRequest; - getAlgorithm(): string; - setAlgorithm(value: string): SubtleEncryptRequest; - getKeyName(): string; - setKeyName(value: string): SubtleEncryptRequest; - getNonce(): Uint8Array | string; - getNonce_asU8(): Uint8Array; - getNonce_asB64(): string; - setNonce(value: Uint8Array | string): SubtleEncryptRequest; - getAssociatedData(): Uint8Array | string; - getAssociatedData_asU8(): Uint8Array; - getAssociatedData_asB64(): string; - setAssociatedData(value: Uint8Array | string): SubtleEncryptRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleEncryptRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubtleEncryptRequest): SubtleEncryptRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleEncryptRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleEncryptRequest; - static deserializeBinaryFromReader(message: SubtleEncryptRequest, reader: jspb.BinaryReader): SubtleEncryptRequest; -} - -export namespace SubtleEncryptRequest { - export type AsObject = { - componentName: string, - plaintext: Uint8Array | string, - algorithm: string, - keyName: string, - nonce: Uint8Array | string, - associatedData: Uint8Array | string, - } -} - -export class SubtleEncryptResponse extends jspb.Message { - getCiphertext(): Uint8Array | string; - getCiphertext_asU8(): Uint8Array; - getCiphertext_asB64(): string; - setCiphertext(value: Uint8Array | string): SubtleEncryptResponse; - getTag(): Uint8Array | string; - getTag_asU8(): Uint8Array; - getTag_asB64(): string; - setTag(value: Uint8Array | string): SubtleEncryptResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleEncryptResponse.AsObject; - static toObject(includeInstance: boolean, msg: SubtleEncryptResponse): SubtleEncryptResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleEncryptResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleEncryptResponse; - static deserializeBinaryFromReader(message: SubtleEncryptResponse, reader: jspb.BinaryReader): SubtleEncryptResponse; -} - -export namespace SubtleEncryptResponse { - export type AsObject = { - ciphertext: Uint8Array | string, - tag: Uint8Array | string, - } -} - -export class SubtleDecryptRequest extends jspb.Message { - getComponentName(): string; - setComponentName(value: string): SubtleDecryptRequest; - getCiphertext(): Uint8Array | string; - getCiphertext_asU8(): Uint8Array; - getCiphertext_asB64(): string; - setCiphertext(value: Uint8Array | string): SubtleDecryptRequest; - getAlgorithm(): string; - setAlgorithm(value: string): SubtleDecryptRequest; - getKeyName(): string; - setKeyName(value: string): SubtleDecryptRequest; - getNonce(): Uint8Array | string; - getNonce_asU8(): Uint8Array; - getNonce_asB64(): string; - setNonce(value: Uint8Array | string): SubtleDecryptRequest; - getTag(): Uint8Array | string; - getTag_asU8(): Uint8Array; - getTag_asB64(): string; - setTag(value: Uint8Array | string): SubtleDecryptRequest; - getAssociatedData(): Uint8Array | string; - getAssociatedData_asU8(): Uint8Array; - getAssociatedData_asB64(): string; - setAssociatedData(value: Uint8Array | string): SubtleDecryptRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleDecryptRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubtleDecryptRequest): SubtleDecryptRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleDecryptRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleDecryptRequest; - static deserializeBinaryFromReader(message: SubtleDecryptRequest, reader: jspb.BinaryReader): SubtleDecryptRequest; -} - -export namespace SubtleDecryptRequest { - export type AsObject = { - componentName: string, - ciphertext: Uint8Array | string, - algorithm: string, - keyName: string, - nonce: Uint8Array | string, - tag: Uint8Array | string, - associatedData: Uint8Array | string, - } -} - -export class SubtleDecryptResponse extends jspb.Message { - getPlaintext(): Uint8Array | string; - getPlaintext_asU8(): Uint8Array; - getPlaintext_asB64(): string; - setPlaintext(value: Uint8Array | string): SubtleDecryptResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleDecryptResponse.AsObject; - static toObject(includeInstance: boolean, msg: SubtleDecryptResponse): SubtleDecryptResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleDecryptResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleDecryptResponse; - static deserializeBinaryFromReader(message: SubtleDecryptResponse, reader: jspb.BinaryReader): SubtleDecryptResponse; -} - -export namespace SubtleDecryptResponse { - export type AsObject = { - plaintext: Uint8Array | string, - } -} - -export class SubtleWrapKeyRequest extends jspb.Message { - getComponentName(): string; - setComponentName(value: string): SubtleWrapKeyRequest; - getPlaintextKey(): Uint8Array | string; - getPlaintextKey_asU8(): Uint8Array; - getPlaintextKey_asB64(): string; - setPlaintextKey(value: Uint8Array | string): SubtleWrapKeyRequest; - getAlgorithm(): string; - setAlgorithm(value: string): SubtleWrapKeyRequest; - getKeyName(): string; - setKeyName(value: string): SubtleWrapKeyRequest; - getNonce(): Uint8Array | string; - getNonce_asU8(): Uint8Array; - getNonce_asB64(): string; - setNonce(value: Uint8Array | string): SubtleWrapKeyRequest; - getAssociatedData(): Uint8Array | string; - getAssociatedData_asU8(): Uint8Array; - getAssociatedData_asB64(): string; - setAssociatedData(value: Uint8Array | string): SubtleWrapKeyRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleWrapKeyRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubtleWrapKeyRequest): SubtleWrapKeyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleWrapKeyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleWrapKeyRequest; - static deserializeBinaryFromReader(message: SubtleWrapKeyRequest, reader: jspb.BinaryReader): SubtleWrapKeyRequest; -} - -export namespace SubtleWrapKeyRequest { - export type AsObject = { - componentName: string, - plaintextKey: Uint8Array | string, - algorithm: string, - keyName: string, - nonce: Uint8Array | string, - associatedData: Uint8Array | string, - } -} - -export class SubtleWrapKeyResponse extends jspb.Message { - getWrappedKey(): Uint8Array | string; - getWrappedKey_asU8(): Uint8Array; - getWrappedKey_asB64(): string; - setWrappedKey(value: Uint8Array | string): SubtleWrapKeyResponse; - getTag(): Uint8Array | string; - getTag_asU8(): Uint8Array; - getTag_asB64(): string; - setTag(value: Uint8Array | string): SubtleWrapKeyResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleWrapKeyResponse.AsObject; - static toObject(includeInstance: boolean, msg: SubtleWrapKeyResponse): SubtleWrapKeyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleWrapKeyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleWrapKeyResponse; - static deserializeBinaryFromReader(message: SubtleWrapKeyResponse, reader: jspb.BinaryReader): SubtleWrapKeyResponse; -} - -export namespace SubtleWrapKeyResponse { - export type AsObject = { - wrappedKey: Uint8Array | string, - tag: Uint8Array | string, - } -} - -export class SubtleUnwrapKeyRequest extends jspb.Message { - getComponentName(): string; - setComponentName(value: string): SubtleUnwrapKeyRequest; - getWrappedKey(): Uint8Array | string; - getWrappedKey_asU8(): Uint8Array; - getWrappedKey_asB64(): string; - setWrappedKey(value: Uint8Array | string): SubtleUnwrapKeyRequest; - getAlgorithm(): string; - setAlgorithm(value: string): SubtleUnwrapKeyRequest; - getKeyName(): string; - setKeyName(value: string): SubtleUnwrapKeyRequest; - getNonce(): Uint8Array | string; - getNonce_asU8(): Uint8Array; - getNonce_asB64(): string; - setNonce(value: Uint8Array | string): SubtleUnwrapKeyRequest; - getTag(): Uint8Array | string; - getTag_asU8(): Uint8Array; - getTag_asB64(): string; - setTag(value: Uint8Array | string): SubtleUnwrapKeyRequest; - getAssociatedData(): Uint8Array | string; - getAssociatedData_asU8(): Uint8Array; - getAssociatedData_asB64(): string; - setAssociatedData(value: Uint8Array | string): SubtleUnwrapKeyRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleUnwrapKeyRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubtleUnwrapKeyRequest): SubtleUnwrapKeyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleUnwrapKeyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleUnwrapKeyRequest; - static deserializeBinaryFromReader(message: SubtleUnwrapKeyRequest, reader: jspb.BinaryReader): SubtleUnwrapKeyRequest; -} - -export namespace SubtleUnwrapKeyRequest { - export type AsObject = { - componentName: string, - wrappedKey: Uint8Array | string, - algorithm: string, - keyName: string, - nonce: Uint8Array | string, - tag: Uint8Array | string, - associatedData: Uint8Array | string, - } -} - -export class SubtleUnwrapKeyResponse extends jspb.Message { - getPlaintextKey(): Uint8Array | string; - getPlaintextKey_asU8(): Uint8Array; - getPlaintextKey_asB64(): string; - setPlaintextKey(value: Uint8Array | string): SubtleUnwrapKeyResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleUnwrapKeyResponse.AsObject; - static toObject(includeInstance: boolean, msg: SubtleUnwrapKeyResponse): SubtleUnwrapKeyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleUnwrapKeyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleUnwrapKeyResponse; - static deserializeBinaryFromReader(message: SubtleUnwrapKeyResponse, reader: jspb.BinaryReader): SubtleUnwrapKeyResponse; -} - -export namespace SubtleUnwrapKeyResponse { - export type AsObject = { - plaintextKey: Uint8Array | string, - } -} - -export class SubtleSignRequest extends jspb.Message { - getComponentName(): string; - setComponentName(value: string): SubtleSignRequest; - getDigest(): Uint8Array | string; - getDigest_asU8(): Uint8Array; - getDigest_asB64(): string; - setDigest(value: Uint8Array | string): SubtleSignRequest; - getAlgorithm(): string; - setAlgorithm(value: string): SubtleSignRequest; - getKeyName(): string; - setKeyName(value: string): SubtleSignRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleSignRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubtleSignRequest): SubtleSignRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleSignRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleSignRequest; - static deserializeBinaryFromReader(message: SubtleSignRequest, reader: jspb.BinaryReader): SubtleSignRequest; -} - -export namespace SubtleSignRequest { - export type AsObject = { - componentName: string, - digest: Uint8Array | string, - algorithm: string, - keyName: string, - } -} - -export class SubtleSignResponse extends jspb.Message { - getSignature(): Uint8Array | string; - getSignature_asU8(): Uint8Array; - getSignature_asB64(): string; - setSignature(value: Uint8Array | string): SubtleSignResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleSignResponse.AsObject; - static toObject(includeInstance: boolean, msg: SubtleSignResponse): SubtleSignResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleSignResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleSignResponse; - static deserializeBinaryFromReader(message: SubtleSignResponse, reader: jspb.BinaryReader): SubtleSignResponse; -} - -export namespace SubtleSignResponse { - export type AsObject = { - signature: Uint8Array | string, - } -} - -export class SubtleVerifyRequest extends jspb.Message { - getComponentName(): string; - setComponentName(value: string): SubtleVerifyRequest; - getDigest(): Uint8Array | string; - getDigest_asU8(): Uint8Array; - getDigest_asB64(): string; - setDigest(value: Uint8Array | string): SubtleVerifyRequest; - getAlgorithm(): string; - setAlgorithm(value: string): SubtleVerifyRequest; - getKeyName(): string; - setKeyName(value: string): SubtleVerifyRequest; - getSignature(): Uint8Array | string; - getSignature_asU8(): Uint8Array; - getSignature_asB64(): string; - setSignature(value: Uint8Array | string): SubtleVerifyRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleVerifyRequest.AsObject; - static toObject(includeInstance: boolean, msg: SubtleVerifyRequest): SubtleVerifyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleVerifyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleVerifyRequest; - static deserializeBinaryFromReader(message: SubtleVerifyRequest, reader: jspb.BinaryReader): SubtleVerifyRequest; -} - -export namespace SubtleVerifyRequest { - export type AsObject = { - componentName: string, - digest: Uint8Array | string, - algorithm: string, - keyName: string, - signature: Uint8Array | string, - } -} - -export class SubtleVerifyResponse extends jspb.Message { - getValid(): boolean; - setValid(value: boolean): SubtleVerifyResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubtleVerifyResponse.AsObject; - static toObject(includeInstance: boolean, msg: SubtleVerifyResponse): SubtleVerifyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubtleVerifyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubtleVerifyResponse; - static deserializeBinaryFromReader(message: SubtleVerifyResponse, reader: jspb.BinaryReader): SubtleVerifyResponse; -} - -export namespace SubtleVerifyResponse { - export type AsObject = { - valid: boolean, - } -} - -export class EncryptRequest extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): EncryptRequestOptions | undefined; - setOptions(value?: EncryptRequestOptions): EncryptRequest; - - hasPayload(): boolean; - clearPayload(): void; - getPayload(): dapr_proto_common_v1_common_pb.StreamPayload | undefined; - setPayload(value?: dapr_proto_common_v1_common_pb.StreamPayload): EncryptRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EncryptRequest.AsObject; - static toObject(includeInstance: boolean, msg: EncryptRequest): EncryptRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EncryptRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EncryptRequest; - static deserializeBinaryFromReader(message: EncryptRequest, reader: jspb.BinaryReader): EncryptRequest; -} - -export namespace EncryptRequest { - export type AsObject = { - options?: EncryptRequestOptions.AsObject, - payload?: dapr_proto_common_v1_common_pb.StreamPayload.AsObject, - } -} - -export class EncryptRequestOptions extends jspb.Message { - getComponentName(): string; - setComponentName(value: string): EncryptRequestOptions; - getKeyName(): string; - setKeyName(value: string): EncryptRequestOptions; - getKeyWrapAlgorithm(): string; - setKeyWrapAlgorithm(value: string): EncryptRequestOptions; - getDataEncryptionCipher(): string; - setDataEncryptionCipher(value: string): EncryptRequestOptions; - getOmitDecryptionKeyName(): boolean; - setOmitDecryptionKeyName(value: boolean): EncryptRequestOptions; - getDecryptionKeyName(): string; - setDecryptionKeyName(value: string): EncryptRequestOptions; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EncryptRequestOptions.AsObject; - static toObject(includeInstance: boolean, msg: EncryptRequestOptions): EncryptRequestOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EncryptRequestOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EncryptRequestOptions; - static deserializeBinaryFromReader(message: EncryptRequestOptions, reader: jspb.BinaryReader): EncryptRequestOptions; -} - -export namespace EncryptRequestOptions { - export type AsObject = { - componentName: string, - keyName: string, - keyWrapAlgorithm: string, - dataEncryptionCipher: string, - omitDecryptionKeyName: boolean, - decryptionKeyName: string, - } -} - -export class EncryptResponse extends jspb.Message { - - hasPayload(): boolean; - clearPayload(): void; - getPayload(): dapr_proto_common_v1_common_pb.StreamPayload | undefined; - setPayload(value?: dapr_proto_common_v1_common_pb.StreamPayload): EncryptResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EncryptResponse.AsObject; - static toObject(includeInstance: boolean, msg: EncryptResponse): EncryptResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EncryptResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EncryptResponse; - static deserializeBinaryFromReader(message: EncryptResponse, reader: jspb.BinaryReader): EncryptResponse; -} - -export namespace EncryptResponse { - export type AsObject = { - payload?: dapr_proto_common_v1_common_pb.StreamPayload.AsObject, - } -} - -export class DecryptRequest extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): DecryptRequestOptions | undefined; - setOptions(value?: DecryptRequestOptions): DecryptRequest; - - hasPayload(): boolean; - clearPayload(): void; - getPayload(): dapr_proto_common_v1_common_pb.StreamPayload | undefined; - setPayload(value?: dapr_proto_common_v1_common_pb.StreamPayload): DecryptRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DecryptRequest.AsObject; - static toObject(includeInstance: boolean, msg: DecryptRequest): DecryptRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DecryptRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DecryptRequest; - static deserializeBinaryFromReader(message: DecryptRequest, reader: jspb.BinaryReader): DecryptRequest; -} - -export namespace DecryptRequest { - export type AsObject = { - options?: DecryptRequestOptions.AsObject, - payload?: dapr_proto_common_v1_common_pb.StreamPayload.AsObject, - } -} - -export class DecryptRequestOptions extends jspb.Message { - getComponentName(): string; - setComponentName(value: string): DecryptRequestOptions; - getKeyName(): string; - setKeyName(value: string): DecryptRequestOptions; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DecryptRequestOptions.AsObject; - static toObject(includeInstance: boolean, msg: DecryptRequestOptions): DecryptRequestOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DecryptRequestOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DecryptRequestOptions; - static deserializeBinaryFromReader(message: DecryptRequestOptions, reader: jspb.BinaryReader): DecryptRequestOptions; -} - -export namespace DecryptRequestOptions { - export type AsObject = { - componentName: string, - keyName: string, - } -} - -export class DecryptResponse extends jspb.Message { - - hasPayload(): boolean; - clearPayload(): void; - getPayload(): dapr_proto_common_v1_common_pb.StreamPayload | undefined; - setPayload(value?: dapr_proto_common_v1_common_pb.StreamPayload): DecryptResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DecryptResponse.AsObject; - static toObject(includeInstance: boolean, msg: DecryptResponse): DecryptResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DecryptResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DecryptResponse; - static deserializeBinaryFromReader(message: DecryptResponse, reader: jspb.BinaryReader): DecryptResponse; -} - -export namespace DecryptResponse { - export type AsObject = { - payload?: dapr_proto_common_v1_common_pb.StreamPayload.AsObject, - } -} - -export class GetWorkflowRequest extends jspb.Message { - getInstanceId(): string; - setInstanceId(value: string): GetWorkflowRequest; - getWorkflowComponent(): string; - setWorkflowComponent(value: string): GetWorkflowRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetWorkflowRequest): GetWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetWorkflowRequest; - static deserializeBinaryFromReader(message: GetWorkflowRequest, reader: jspb.BinaryReader): GetWorkflowRequest; -} - -export namespace GetWorkflowRequest { - export type AsObject = { - instanceId: string, - workflowComponent: string, - } -} - -export class GetWorkflowResponse extends jspb.Message { - getInstanceId(): string; - setInstanceId(value: string): GetWorkflowResponse; - getWorkflowName(): string; - setWorkflowName(value: string): GetWorkflowResponse; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetWorkflowResponse; - - hasLastUpdatedAt(): boolean; - clearLastUpdatedAt(): void; - getLastUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetWorkflowResponse; - getRuntimeStatus(): string; - setRuntimeStatus(value: string): GetWorkflowResponse; - - getPropertiesMap(): jspb.Map; - clearPropertiesMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetWorkflowResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetWorkflowResponse): GetWorkflowResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetWorkflowResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetWorkflowResponse; - static deserializeBinaryFromReader(message: GetWorkflowResponse, reader: jspb.BinaryReader): GetWorkflowResponse; -} - -export namespace GetWorkflowResponse { - export type AsObject = { - instanceId: string, - workflowName: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastUpdatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - runtimeStatus: string, - - propertiesMap: Array<[string, string]>, - } -} - -export class StartWorkflowRequest extends jspb.Message { - getInstanceId(): string; - setInstanceId(value: string): StartWorkflowRequest; - getWorkflowComponent(): string; - setWorkflowComponent(value: string): StartWorkflowRequest; - getWorkflowName(): string; - setWorkflowName(value: string): StartWorkflowRequest; - - getOptionsMap(): jspb.Map; - clearOptionsMap(): void; - getInput(): Uint8Array | string; - getInput_asU8(): Uint8Array; - getInput_asB64(): string; - setInput(value: Uint8Array | string): StartWorkflowRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StartWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: StartWorkflowRequest): StartWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StartWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StartWorkflowRequest; - static deserializeBinaryFromReader(message: StartWorkflowRequest, reader: jspb.BinaryReader): StartWorkflowRequest; -} - -export namespace StartWorkflowRequest { - export type AsObject = { - instanceId: string, - workflowComponent: string, - workflowName: string, - - optionsMap: Array<[string, string]>, - input: Uint8Array | string, - } -} - -export class StartWorkflowResponse extends jspb.Message { - getInstanceId(): string; - setInstanceId(value: string): StartWorkflowResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StartWorkflowResponse.AsObject; - static toObject(includeInstance: boolean, msg: StartWorkflowResponse): StartWorkflowResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StartWorkflowResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StartWorkflowResponse; - static deserializeBinaryFromReader(message: StartWorkflowResponse, reader: jspb.BinaryReader): StartWorkflowResponse; -} - -export namespace StartWorkflowResponse { - export type AsObject = { - instanceId: string, - } -} - -export class TerminateWorkflowRequest extends jspb.Message { - getInstanceId(): string; - setInstanceId(value: string): TerminateWorkflowRequest; - getWorkflowComponent(): string; - setWorkflowComponent(value: string): TerminateWorkflowRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TerminateWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: TerminateWorkflowRequest): TerminateWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TerminateWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TerminateWorkflowRequest; - static deserializeBinaryFromReader(message: TerminateWorkflowRequest, reader: jspb.BinaryReader): TerminateWorkflowRequest; -} - -export namespace TerminateWorkflowRequest { - export type AsObject = { - instanceId: string, - workflowComponent: string, - } -} - -export class PauseWorkflowRequest extends jspb.Message { - getInstanceId(): string; - setInstanceId(value: string): PauseWorkflowRequest; - getWorkflowComponent(): string; - setWorkflowComponent(value: string): PauseWorkflowRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PauseWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: PauseWorkflowRequest): PauseWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PauseWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PauseWorkflowRequest; - static deserializeBinaryFromReader(message: PauseWorkflowRequest, reader: jspb.BinaryReader): PauseWorkflowRequest; -} - -export namespace PauseWorkflowRequest { - export type AsObject = { - instanceId: string, - workflowComponent: string, - } -} - -export class ResumeWorkflowRequest extends jspb.Message { - getInstanceId(): string; - setInstanceId(value: string): ResumeWorkflowRequest; - getWorkflowComponent(): string; - setWorkflowComponent(value: string): ResumeWorkflowRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResumeWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: ResumeWorkflowRequest): ResumeWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResumeWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResumeWorkflowRequest; - static deserializeBinaryFromReader(message: ResumeWorkflowRequest, reader: jspb.BinaryReader): ResumeWorkflowRequest; -} - -export namespace ResumeWorkflowRequest { - export type AsObject = { - instanceId: string, - workflowComponent: string, - } -} - -export class RaiseEventWorkflowRequest extends jspb.Message { - getInstanceId(): string; - setInstanceId(value: string): RaiseEventWorkflowRequest; - getWorkflowComponent(): string; - setWorkflowComponent(value: string): RaiseEventWorkflowRequest; - getEventName(): string; - setEventName(value: string): RaiseEventWorkflowRequest; - getEventData(): Uint8Array | string; - getEventData_asU8(): Uint8Array; - getEventData_asB64(): string; - setEventData(value: Uint8Array | string): RaiseEventWorkflowRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RaiseEventWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: RaiseEventWorkflowRequest): RaiseEventWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RaiseEventWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RaiseEventWorkflowRequest; - static deserializeBinaryFromReader(message: RaiseEventWorkflowRequest, reader: jspb.BinaryReader): RaiseEventWorkflowRequest; -} - -export namespace RaiseEventWorkflowRequest { - export type AsObject = { - instanceId: string, - workflowComponent: string, - eventName: string, - eventData: Uint8Array | string, - } -} - -export class PurgeWorkflowRequest extends jspb.Message { - getInstanceId(): string; - setInstanceId(value: string): PurgeWorkflowRequest; - getWorkflowComponent(): string; - setWorkflowComponent(value: string): PurgeWorkflowRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PurgeWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: PurgeWorkflowRequest): PurgeWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PurgeWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PurgeWorkflowRequest; - static deserializeBinaryFromReader(message: PurgeWorkflowRequest, reader: jspb.BinaryReader): PurgeWorkflowRequest; -} - -export namespace PurgeWorkflowRequest { - export type AsObject = { - instanceId: string, - workflowComponent: string, - } -} - -export class ShutdownRequest extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ShutdownRequest.AsObject; - static toObject(includeInstance: boolean, msg: ShutdownRequest): ShutdownRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ShutdownRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ShutdownRequest; - static deserializeBinaryFromReader(message: ShutdownRequest, reader: jspb.BinaryReader): ShutdownRequest; -} - -export namespace ShutdownRequest { - export type AsObject = { - } -} - -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 = { - } -} - +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; +import type { JsonObject, Message } from "@bufbuild/protobuf"; +import type { ConfigurationItem, Etag, InvokeRequest, InvokeResponseSchema, JobFailurePolicy, StateItem, StateOptions, StateOptions_StateConsistency, StreamPayload } from "../../common/v1/common_pb"; +import type { TopicEventRequest, TopicEventResponse } from "./appcallback_pb"; +import type { Any, EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt"; + +/** + * Describes the file dapr/proto/runtime/v1/dapr.proto. + */ +export declare const file_dapr_proto_runtime_v1_dapr: GenFile; + +/** + * InvokeServiceRequest represents the request message for Service invocation. + * + * @generated from message dapr.proto.runtime.v1.InvokeServiceRequest + */ +export declare type InvokeServiceRequest = Message<"dapr.proto.runtime.v1.InvokeServiceRequest"> & { + /** + * Required. Callee's app id. + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * Required. message which will be delivered to callee. + * + * @generated from field: dapr.proto.common.v1.InvokeRequest message = 3; + */ + message?: InvokeRequest; +}; + +/** + * Describes the message dapr.proto.runtime.v1.InvokeServiceRequest. + * Use `create(InvokeServiceRequestSchema)` to create a new message. + */ +export declare const InvokeServiceRequestSchema: GenMessage; + +/** + * GetStateRequest is the message to get key-value states from specific state store. + * + * @generated from message dapr.proto.runtime.v1.GetStateRequest + */ +export declare type GetStateRequest = Message<"dapr.proto.runtime.v1.GetStateRequest"> & { + /** + * The name of state store. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * The key of the desired state + * + * @generated from field: string key = 2; + */ + key: string; + + /** + * The read consistency of the state store. + * + * @generated from field: dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3; + */ + consistency: StateOptions_StateConsistency; + + /** + * The metadata which will be sent to state store components. + * + * @generated from field: map metadata = 4; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetStateRequest. + * Use `create(GetStateRequestSchema)` to create a new message. + */ +export declare const GetStateRequestSchema: GenMessage; + +/** + * GetBulkStateRequest is the message to get a list of key-value states from specific state store. + * + * @generated from message dapr.proto.runtime.v1.GetBulkStateRequest + */ +export declare type GetBulkStateRequest = Message<"dapr.proto.runtime.v1.GetBulkStateRequest"> & { + /** + * The name of state store. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * The keys to get. + * + * @generated from field: repeated string keys = 2; + */ + keys: string[]; + + /** + * The number of parallel operations executed on the state store for a get operation. + * + * @generated from field: int32 parallelism = 3; + */ + parallelism: number; + + /** + * The metadata which will be sent to state store components. + * + * @generated from field: map metadata = 4; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetBulkStateRequest. + * Use `create(GetBulkStateRequestSchema)` to create a new message. + */ +export declare const GetBulkStateRequestSchema: GenMessage; + +/** + * GetBulkStateResponse is the response conveying the list of state values. + * + * @generated from message dapr.proto.runtime.v1.GetBulkStateResponse + */ +export declare type GetBulkStateResponse = Message<"dapr.proto.runtime.v1.GetBulkStateResponse"> & { + /** + * The list of items containing the keys to get values for. + * + * @generated from field: repeated dapr.proto.runtime.v1.BulkStateItem items = 1; + */ + items: BulkStateItem[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetBulkStateResponse. + * Use `create(GetBulkStateResponseSchema)` to create a new message. + */ +export declare const GetBulkStateResponseSchema: GenMessage; + +/** + * BulkStateItem is the response item for a bulk get operation. + * Return values include the item key, data and etag. + * + * @generated from message dapr.proto.runtime.v1.BulkStateItem + */ +export declare type BulkStateItem = Message<"dapr.proto.runtime.v1.BulkStateItem"> & { + /** + * state item key + * + * @generated from field: string key = 1; + */ + key: string; + + /** + * The byte array data + * + * @generated from field: bytes data = 2; + */ + data: Uint8Array; + + /** + * The entity tag which represents the specific version of data. + * ETag format is defined by the corresponding data store. + * + * @generated from field: string etag = 3; + */ + etag: string; + + /** + * The error that was returned from the state store in case of a failed get operation. + * + * @generated from field: string error = 4; + */ + error: string; + + /** + * The metadata which will be sent to app. + * + * @generated from field: map metadata = 5; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.BulkStateItem. + * Use `create(BulkStateItemSchema)` to create a new message. + */ +export declare const BulkStateItemSchema: GenMessage; + +/** + * GetStateResponse is the response conveying the state value and etag. + * + * @generated from message dapr.proto.runtime.v1.GetStateResponse + */ +export declare type GetStateResponse = Message<"dapr.proto.runtime.v1.GetStateResponse"> & { + /** + * The byte array data + * + * @generated from field: bytes data = 1; + */ + data: Uint8Array; + + /** + * The entity tag which represents the specific version of data. + * ETag format is defined by the corresponding data store. + * + * @generated from field: string etag = 2; + */ + etag: string; + + /** + * The metadata which will be sent to app. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetStateResponse. + * Use `create(GetStateResponseSchema)` to create a new message. + */ +export declare const GetStateResponseSchema: GenMessage; + +/** + * DeleteStateRequest is the message to delete key-value states in the specific state store. + * + * @generated from message dapr.proto.runtime.v1.DeleteStateRequest + */ +export declare type DeleteStateRequest = Message<"dapr.proto.runtime.v1.DeleteStateRequest"> & { + /** + * The name of state store. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * The key of the desired state + * + * @generated from field: string key = 2; + */ + key: string; + + /** + * The entity tag which represents the specific version of data. + * The exact ETag format is defined by the corresponding data store. + * + * @generated from field: dapr.proto.common.v1.Etag etag = 3; + */ + etag?: Etag; + + /** + * State operation options which includes concurrency/ + * consistency/retry_policy. + * + * @generated from field: dapr.proto.common.v1.StateOptions options = 4; + */ + options?: StateOptions; + + /** + * The metadata which will be sent to state store components. + * + * @generated from field: map metadata = 5; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.DeleteStateRequest. + * Use `create(DeleteStateRequestSchema)` to create a new message. + */ +export declare const DeleteStateRequestSchema: GenMessage; + +/** + * DeleteBulkStateRequest is the message to delete a list of key-value states from specific state store. + * + * @generated from message dapr.proto.runtime.v1.DeleteBulkStateRequest + */ +export declare type DeleteBulkStateRequest = Message<"dapr.proto.runtime.v1.DeleteBulkStateRequest"> & { + /** + * The name of state store. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * The array of the state key values. + * + * @generated from field: repeated dapr.proto.common.v1.StateItem states = 2; + */ + states: StateItem[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.DeleteBulkStateRequest. + * Use `create(DeleteBulkStateRequestSchema)` to create a new message. + */ +export declare const DeleteBulkStateRequestSchema: GenMessage; + +/** + * SaveStateRequest is the message to save multiple states into state store. + * + * @generated from message dapr.proto.runtime.v1.SaveStateRequest + */ +export declare type SaveStateRequest = Message<"dapr.proto.runtime.v1.SaveStateRequest"> & { + /** + * The name of state store. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * The array of the state key values. + * + * @generated from field: repeated dapr.proto.common.v1.StateItem states = 2; + */ + states: StateItem[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SaveStateRequest. + * Use `create(SaveStateRequestSchema)` to create a new message. + */ +export declare const SaveStateRequestSchema: GenMessage; + +/** + * QueryStateRequest is the message to query state store. + * + * @generated from message dapr.proto.runtime.v1.QueryStateRequest + */ +export declare type QueryStateRequest = Message<"dapr.proto.runtime.v1.QueryStateRequest"> & { + /** + * The name of state store. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * The query in JSON format. + * + * @generated from field: string query = 2; + */ + query: string; + + /** + * The metadata which will be sent to state store components. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.QueryStateRequest. + * Use `create(QueryStateRequestSchema)` to create a new message. + */ +export declare const QueryStateRequestSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.QueryStateItem + */ +export declare type QueryStateItem = Message<"dapr.proto.runtime.v1.QueryStateItem"> & { + /** + * The object key. + * + * @generated from field: string key = 1; + */ + key: string; + + /** + * The object value. + * + * @generated from field: bytes data = 2; + */ + data: Uint8Array; + + /** + * The entity tag which represents the specific version of data. + * ETag format is defined by the corresponding data store. + * + * @generated from field: string etag = 3; + */ + etag: string; + + /** + * The error message indicating an error in processing of the query result. + * + * @generated from field: string error = 4; + */ + error: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.QueryStateItem. + * Use `create(QueryStateItemSchema)` to create a new message. + */ +export declare const QueryStateItemSchema: GenMessage; + +/** + * QueryStateResponse is the response conveying the query results. + * + * @generated from message dapr.proto.runtime.v1.QueryStateResponse + */ +export declare type QueryStateResponse = Message<"dapr.proto.runtime.v1.QueryStateResponse"> & { + /** + * An array of query results. + * + * @generated from field: repeated dapr.proto.runtime.v1.QueryStateItem results = 1; + */ + results: QueryStateItem[]; + + /** + * Pagination token. + * + * @generated from field: string token = 2; + */ + token: string; + + /** + * The metadata which will be sent to app. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.QueryStateResponse. + * Use `create(QueryStateResponseSchema)` to create a new message. + */ +export declare const QueryStateResponseSchema: GenMessage; + +/** + * PublishEventRequest is the message to publish event data to pubsub topic + * + * @generated from message dapr.proto.runtime.v1.PublishEventRequest + */ +export declare type PublishEventRequest = Message<"dapr.proto.runtime.v1.PublishEventRequest"> & { + /** + * The name of the pubsub component + * + * @generated from field: string pubsub_name = 1; + */ + pubsubName: string; + + /** + * The pubsub topic + * + * @generated from field: string topic = 2; + */ + topic: string; + + /** + * The data which will be published to topic. + * + * @generated from field: bytes data = 3; + */ + data: Uint8Array; + + /** + * The content type for the data (optional). + * + * @generated from field: string data_content_type = 4; + */ + dataContentType: string; + + /** + * The metadata passing to pub components + * + * metadata property: + * - key : the key of the message. + * + * @generated from field: map metadata = 5; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.PublishEventRequest. + * Use `create(PublishEventRequestSchema)` to create a new message. + */ +export declare const PublishEventRequestSchema: GenMessage; + +/** + * BulkPublishRequest is the message to bulk publish events to pubsub topic + * + * @generated from message dapr.proto.runtime.v1.BulkPublishRequest + */ +export declare type BulkPublishRequest = Message<"dapr.proto.runtime.v1.BulkPublishRequest"> & { + /** + * The name of the pubsub component + * + * @generated from field: string pubsub_name = 1; + */ + pubsubName: string; + + /** + * The pubsub topic + * + * @generated from field: string topic = 2; + */ + topic: string; + + /** + * The entries which contain the individual events and associated details to be published + * + * @generated from field: repeated dapr.proto.runtime.v1.BulkPublishRequestEntry entries = 3; + */ + entries: BulkPublishRequestEntry[]; + + /** + * The request level metadata passing to to the pubsub components + * + * @generated from field: map metadata = 4; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.BulkPublishRequest. + * Use `create(BulkPublishRequestSchema)` to create a new message. + */ +export declare const BulkPublishRequestSchema: GenMessage; + +/** + * BulkPublishRequestEntry is the message containing the event to be bulk published + * + * @generated from message dapr.proto.runtime.v1.BulkPublishRequestEntry + */ +export declare type BulkPublishRequestEntry = Message<"dapr.proto.runtime.v1.BulkPublishRequestEntry"> & { + /** + * The request scoped unique ID referring to this message. Used to map status in response + * + * @generated from field: string entry_id = 1; + */ + entryId: string; + + /** + * The event which will be pulished to the topic + * + * @generated from field: bytes event = 2; + */ + event: Uint8Array; + + /** + * The content type for the event + * + * @generated from field: string content_type = 3; + */ + contentType: string; + + /** + * The event level metadata passing to the pubsub component + * + * @generated from field: map metadata = 4; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.BulkPublishRequestEntry. + * Use `create(BulkPublishRequestEntrySchema)` to create a new message. + */ +export declare const BulkPublishRequestEntrySchema: GenMessage; + +/** + * BulkPublishResponse is the message returned from a BulkPublishEvent call + * + * @generated from message dapr.proto.runtime.v1.BulkPublishResponse + */ +export declare type BulkPublishResponse = Message<"dapr.proto.runtime.v1.BulkPublishResponse"> & { + /** + * The entries for different events that failed publish in the BulkPublishEvent call + * + * @generated from field: repeated dapr.proto.runtime.v1.BulkPublishResponseFailedEntry failedEntries = 1; + */ + failedEntries: BulkPublishResponseFailedEntry[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.BulkPublishResponse. + * Use `create(BulkPublishResponseSchema)` to create a new message. + */ +export declare const BulkPublishResponseSchema: GenMessage; + +/** + * BulkPublishResponseFailedEntry is the message containing the entryID and error of a failed event in BulkPublishEvent call + * + * @generated from message dapr.proto.runtime.v1.BulkPublishResponseFailedEntry + */ +export declare type BulkPublishResponseFailedEntry = Message<"dapr.proto.runtime.v1.BulkPublishResponseFailedEntry"> & { + /** + * The response scoped unique ID referring to this message + * + * @generated from field: string entry_id = 1; + */ + entryId: string; + + /** + * The error message if any on failure + * + * @generated from field: string error = 2; + */ + error: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.BulkPublishResponseFailedEntry. + * Use `create(BulkPublishResponseFailedEntrySchema)` to create a new message. + */ +export declare const BulkPublishResponseFailedEntrySchema: GenMessage; + +/** + * 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. + * + * @generated from message dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1 + */ +export declare type SubscribeTopicEventsRequestAlpha1 = Message<"dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1"> & { + /** + * @generated from oneof dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.subscribe_topic_events_request_type + */ + subscribeTopicEventsRequestType: { + /** + * @generated from field: dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1 initial_request = 1; + */ + value: SubscribeTopicEventsRequestInitialAlpha1; + case: "initialRequest"; + } | { + /** + * @generated from field: dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1 event_processed = 2; + */ + value: SubscribeTopicEventsRequestProcessedAlpha1; + case: "eventProcessed"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1. + * Use `create(SubscribeTopicEventsRequestAlpha1Schema)` to create a new message. + */ +export declare const SubscribeTopicEventsRequestAlpha1Schema: GenMessage; + +/** + * SubscribeTopicEventsRequestInitialAlpha1 is the initial message containing + * the details for subscribing to a topic via streaming. + * + * @generated from message dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1 + */ +export declare type SubscribeTopicEventsRequestInitialAlpha1 = Message<"dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1"> & { + /** + * The name of the pubsub component + * + * @generated from field: string pubsub_name = 1; + */ + pubsubName: string; + + /** + * The pubsub topic + * + * @generated from field: string topic = 2; + */ + topic: string; + + /** + * The metadata passing to pub components + * + * metadata property: + * - key : the key of the message. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; + + /** + * dead_letter_topic is the topic to which messages that fail to be processed + * are sent. + * + * @generated from field: optional string dead_letter_topic = 4; + */ + deadLetterTopic?: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1. + * Use `create(SubscribeTopicEventsRequestInitialAlpha1Schema)` to create a new message. + */ +export declare const SubscribeTopicEventsRequestInitialAlpha1Schema: GenMessage; + +/** + * SubscribeTopicEventsRequestProcessedAlpha1 is the message containing the + * subscription to a topic. + * + * @generated from message dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1 + */ +export declare type SubscribeTopicEventsRequestProcessedAlpha1 = Message<"dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1"> & { + /** + * id is the unique identifier for the subscription request. + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * status is the result of the subscription request. + * + * @generated from field: dapr.proto.runtime.v1.TopicEventResponse status = 2; + */ + status?: TopicEventResponse; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1. + * Use `create(SubscribeTopicEventsRequestProcessedAlpha1Schema)` to create a new message. + */ +export declare const SubscribeTopicEventsRequestProcessedAlpha1Schema: GenMessage; + +/** + * SubscribeTopicEventsResponseAlpha1 is a message returned from daprd + * when subscribing to a topic via streaming. + * + * @generated from message dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1 + */ +export declare type SubscribeTopicEventsResponseAlpha1 = Message<"dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1"> & { + /** + * @generated from oneof dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.subscribe_topic_events_response_type + */ + subscribeTopicEventsResponseType: { + /** + * @generated from field: dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1 initial_response = 1; + */ + value: SubscribeTopicEventsResponseInitialAlpha1; + case: "initialResponse"; + } | { + /** + * @generated from field: dapr.proto.runtime.v1.TopicEventRequest event_message = 2; + */ + value: TopicEventRequest; + case: "eventMessage"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1. + * Use `create(SubscribeTopicEventsResponseAlpha1Schema)` to create a new message. + */ +export declare const SubscribeTopicEventsResponseAlpha1Schema: GenMessage; + +/** + * SubscribeTopicEventsResponseInitialAlpha1 is the initial response from daprd + * when subscribing to a topic. + * + * @generated from message dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1 + */ +export declare type SubscribeTopicEventsResponseInitialAlpha1 = Message<"dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1"> & { +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1. + * Use `create(SubscribeTopicEventsResponseInitialAlpha1Schema)` to create a new message. + */ +export declare const SubscribeTopicEventsResponseInitialAlpha1Schema: GenMessage; + +/** + * InvokeBindingRequest is the message to send data to output bindings + * + * @generated from message dapr.proto.runtime.v1.InvokeBindingRequest + */ +export declare type InvokeBindingRequest = Message<"dapr.proto.runtime.v1.InvokeBindingRequest"> & { + /** + * The name of the output binding to invoke. + * + * @generated from field: string name = 1; + */ + name: string; + + /** + * The data which will be sent to output binding. + * + * @generated from field: bytes data = 2; + */ + data: Uint8Array; + + /** + * The metadata passing to output binding components + * + * Common metadata property: + * - ttlInSeconds : the time to live in seconds for the message. + * + * If set in the binding definition will cause all messages to + * have a default time to live. The message ttl overrides any value + * in the binding definition. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; + + /** + * The name of the operation type for the binding to invoke + * + * @generated from field: string operation = 4; + */ + operation: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.InvokeBindingRequest. + * Use `create(InvokeBindingRequestSchema)` to create a new message. + */ +export declare const InvokeBindingRequestSchema: GenMessage; + +/** + * InvokeBindingResponse is the message returned from an output binding invocation + * + * @generated from message dapr.proto.runtime.v1.InvokeBindingResponse + */ +export declare type InvokeBindingResponse = Message<"dapr.proto.runtime.v1.InvokeBindingResponse"> & { + /** + * The data which will be sent to output binding. + * + * @generated from field: bytes data = 1; + */ + data: Uint8Array; + + /** + * The metadata returned from an external system + * + * @generated from field: map metadata = 2; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.InvokeBindingResponse. + * Use `create(InvokeBindingResponseSchema)` to create a new message. + */ +export declare const InvokeBindingResponseSchema: GenMessage; + +/** + * GetSecretRequest is the message to get secret from secret store. + * + * @generated from message dapr.proto.runtime.v1.GetSecretRequest + */ +export declare type GetSecretRequest = Message<"dapr.proto.runtime.v1.GetSecretRequest"> & { + /** + * The name of secret store. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * The name of secret key. + * + * @generated from field: string key = 2; + */ + key: string; + + /** + * The metadata which will be sent to secret store components. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetSecretRequest. + * Use `create(GetSecretRequestSchema)` to create a new message. + */ +export declare const GetSecretRequestSchema: GenMessage; + +/** + * GetSecretResponse is the response message to convey the requested secret. + * + * @generated from message dapr.proto.runtime.v1.GetSecretResponse + */ +export declare type GetSecretResponse = Message<"dapr.proto.runtime.v1.GetSecretResponse"> & { + /** + * data is the secret value. Some secret store, such as kubernetes secret + * store, can save multiple secrets for single secret key. + * + * @generated from field: map data = 1; + */ + data: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetSecretResponse. + * Use `create(GetSecretResponseSchema)` to create a new message. + */ +export declare const GetSecretResponseSchema: GenMessage; + +/** + * GetBulkSecretRequest is the message to get the secrets from secret store. + * + * @generated from message dapr.proto.runtime.v1.GetBulkSecretRequest + */ +export declare type GetBulkSecretRequest = Message<"dapr.proto.runtime.v1.GetBulkSecretRequest"> & { + /** + * The name of secret store. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * The metadata which will be sent to secret store components. + * + * @generated from field: map metadata = 2; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetBulkSecretRequest. + * Use `create(GetBulkSecretRequestSchema)` to create a new message. + */ +export declare const GetBulkSecretRequestSchema: GenMessage; + +/** + * SecretResponse is a map of decrypted string/string values + * + * @generated from message dapr.proto.runtime.v1.SecretResponse + */ +export declare type SecretResponse = Message<"dapr.proto.runtime.v1.SecretResponse"> & { + /** + * @generated from field: map secrets = 1; + */ + secrets: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SecretResponse. + * Use `create(SecretResponseSchema)` to create a new message. + */ +export declare const SecretResponseSchema: GenMessage; + +/** + * GetBulkSecretResponse is the response message to convey the requested secrets. + * + * @generated from message dapr.proto.runtime.v1.GetBulkSecretResponse + */ +export declare type GetBulkSecretResponse = Message<"dapr.proto.runtime.v1.GetBulkSecretResponse"> & { + /** + * data hold the secret values. Some secret store, such as kubernetes secret + * store, can save multiple secrets for single secret key. + * + * @generated from field: map data = 1; + */ + data: { [key: string]: SecretResponse }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetBulkSecretResponse. + * Use `create(GetBulkSecretResponseSchema)` to create a new message. + */ +export declare const GetBulkSecretResponseSchema: GenMessage; + +/** + * TransactionalStateOperation is the message to execute a specified operation with a key-value pair. + * + * @generated from message dapr.proto.runtime.v1.TransactionalStateOperation + */ +export declare type TransactionalStateOperation = Message<"dapr.proto.runtime.v1.TransactionalStateOperation"> & { + /** + * The type of operation to be executed + * + * @generated from field: string operationType = 1; + */ + operationType: string; + + /** + * State values to be operated on + * + * @generated from field: dapr.proto.common.v1.StateItem request = 2; + */ + request?: StateItem; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TransactionalStateOperation. + * Use `create(TransactionalStateOperationSchema)` to create a new message. + */ +export declare const TransactionalStateOperationSchema: GenMessage; + +/** + * ExecuteStateTransactionRequest is the message to execute multiple operations on a specified store. + * + * @generated from message dapr.proto.runtime.v1.ExecuteStateTransactionRequest + */ +export declare type ExecuteStateTransactionRequest = Message<"dapr.proto.runtime.v1.ExecuteStateTransactionRequest"> & { + /** + * Required. name of state store. + * + * @generated from field: string storeName = 1; + */ + storeName: string; + + /** + * Required. transactional operation list. + * + * @generated from field: repeated dapr.proto.runtime.v1.TransactionalStateOperation operations = 2; + */ + operations: TransactionalStateOperation[]; + + /** + * The metadata used for transactional operations. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ExecuteStateTransactionRequest. + * Use `create(ExecuteStateTransactionRequestSchema)` to create a new message. + */ +export declare const ExecuteStateTransactionRequestSchema: GenMessage; + +/** + * RegisterActorTimerRequest is the message to register a timer for an actor of a given type and id. + * + * @generated from message dapr.proto.runtime.v1.RegisterActorTimerRequest + */ +export declare type RegisterActorTimerRequest = Message<"dapr.proto.runtime.v1.RegisterActorTimerRequest"> & { + /** + * @generated from field: string actor_type = 1; + */ + actorType: string; + + /** + * @generated from field: string actor_id = 2; + */ + actorId: string; + + /** + * @generated from field: string name = 3; + */ + name: string; + + /** + * @generated from field: string due_time = 4; + */ + dueTime: string; + + /** + * @generated from field: string period = 5; + */ + period: string; + + /** + * @generated from field: string callback = 6; + */ + callback: string; + + /** + * @generated from field: bytes data = 7; + */ + data: Uint8Array; + + /** + * @generated from field: string ttl = 8; + */ + ttl: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.RegisterActorTimerRequest. + * Use `create(RegisterActorTimerRequestSchema)` to create a new message. + */ +export declare const RegisterActorTimerRequestSchema: GenMessage; + +/** + * UnregisterActorTimerRequest is the message to unregister an actor timer + * + * @generated from message dapr.proto.runtime.v1.UnregisterActorTimerRequest + */ +export declare type UnregisterActorTimerRequest = Message<"dapr.proto.runtime.v1.UnregisterActorTimerRequest"> & { + /** + * @generated from field: string actor_type = 1; + */ + actorType: string; + + /** + * @generated from field: string actor_id = 2; + */ + actorId: string; + + /** + * @generated from field: string name = 3; + */ + name: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.UnregisterActorTimerRequest. + * Use `create(UnregisterActorTimerRequestSchema)` to create a new message. + */ +export declare const UnregisterActorTimerRequestSchema: GenMessage; + +/** + * RegisterActorReminderRequest is the message to register a reminder for an actor of a given type and id. + * + * @generated from message dapr.proto.runtime.v1.RegisterActorReminderRequest + */ +export declare type RegisterActorReminderRequest = Message<"dapr.proto.runtime.v1.RegisterActorReminderRequest"> & { + /** + * @generated from field: string actor_type = 1; + */ + actorType: string; + + /** + * @generated from field: string actor_id = 2; + */ + actorId: string; + + /** + * @generated from field: string name = 3; + */ + name: string; + + /** + * @generated from field: string due_time = 4; + */ + dueTime: string; + + /** + * @generated from field: string period = 5; + */ + period: string; + + /** + * @generated from field: bytes data = 6; + */ + data: Uint8Array; + + /** + * @generated from field: string ttl = 7; + */ + ttl: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.RegisterActorReminderRequest. + * Use `create(RegisterActorReminderRequestSchema)` to create a new message. + */ +export declare const RegisterActorReminderRequestSchema: GenMessage; + +/** + * UnregisterActorReminderRequest is the message to unregister an actor reminder. + * + * @generated from message dapr.proto.runtime.v1.UnregisterActorReminderRequest + */ +export declare type UnregisterActorReminderRequest = Message<"dapr.proto.runtime.v1.UnregisterActorReminderRequest"> & { + /** + * @generated from field: string actor_type = 1; + */ + actorType: string; + + /** + * @generated from field: string actor_id = 2; + */ + actorId: string; + + /** + * @generated from field: string name = 3; + */ + name: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.UnregisterActorReminderRequest. + * Use `create(UnregisterActorReminderRequestSchema)` to create a new message. + */ +export declare const UnregisterActorReminderRequestSchema: GenMessage; + +/** + * GetActorStateRequest is the message to get key-value states from specific actor. + * + * @generated from message dapr.proto.runtime.v1.GetActorStateRequest + */ +export declare type GetActorStateRequest = Message<"dapr.proto.runtime.v1.GetActorStateRequest"> & { + /** + * @generated from field: string actor_type = 1; + */ + actorType: string; + + /** + * @generated from field: string actor_id = 2; + */ + actorId: string; + + /** + * @generated from field: string key = 3; + */ + key: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetActorStateRequest. + * Use `create(GetActorStateRequestSchema)` to create a new message. + */ +export declare const GetActorStateRequestSchema: GenMessage; + +/** + * GetActorStateResponse is the response conveying the actor's state value. + * + * @generated from message dapr.proto.runtime.v1.GetActorStateResponse + */ +export declare type GetActorStateResponse = Message<"dapr.proto.runtime.v1.GetActorStateResponse"> & { + /** + * @generated from field: bytes data = 1; + */ + data: Uint8Array; + + /** + * The metadata which will be sent to app. + * + * @generated from field: map metadata = 2; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetActorStateResponse. + * Use `create(GetActorStateResponseSchema)` to create a new message. + */ +export declare const GetActorStateResponseSchema: GenMessage; + +/** + * ExecuteActorStateTransactionRequest is the message to execute multiple operations on a specified actor. + * + * @generated from message dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest + */ +export declare type ExecuteActorStateTransactionRequest = Message<"dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest"> & { + /** + * @generated from field: string actor_type = 1; + */ + actorType: string; + + /** + * @generated from field: string actor_id = 2; + */ + actorId: string; + + /** + * @generated from field: repeated dapr.proto.runtime.v1.TransactionalActorStateOperation operations = 3; + */ + operations: TransactionalActorStateOperation[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest. + * Use `create(ExecuteActorStateTransactionRequestSchema)` to create a new message. + */ +export declare const ExecuteActorStateTransactionRequestSchema: GenMessage; + +/** + * TransactionalActorStateOperation is the message to execute a specified operation with a key-value pair. + * + * @generated from message dapr.proto.runtime.v1.TransactionalActorStateOperation + */ +export declare type TransactionalActorStateOperation = Message<"dapr.proto.runtime.v1.TransactionalActorStateOperation"> & { + /** + * @generated from field: string operationType = 1; + */ + operationType: string; + + /** + * @generated from field: string key = 2; + */ + key: string; + + /** + * @generated from field: google.protobuf.Any value = 3; + */ + value?: Any; + + /** + * The metadata used for transactional operations. + * + * Common metadata property: + * - ttlInSeconds : the time to live in seconds for the stored value. + * + * @generated from field: map metadata = 4; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TransactionalActorStateOperation. + * Use `create(TransactionalActorStateOperationSchema)` to create a new message. + */ +export declare const TransactionalActorStateOperationSchema: GenMessage; + +/** + * InvokeActorRequest is the message to call an actor. + * + * @generated from message dapr.proto.runtime.v1.InvokeActorRequest + */ +export declare type InvokeActorRequest = Message<"dapr.proto.runtime.v1.InvokeActorRequest"> & { + /** + * @generated from field: string actor_type = 1; + */ + actorType: string; + + /** + * @generated from field: string actor_id = 2; + */ + actorId: string; + + /** + * @generated from field: string method = 3; + */ + method: string; + + /** + * @generated from field: bytes data = 4; + */ + data: Uint8Array; + + /** + * @generated from field: map metadata = 5; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.InvokeActorRequest. + * Use `create(InvokeActorRequestSchema)` to create a new message. + */ +export declare const InvokeActorRequestSchema: GenMessage; + +/** + * InvokeActorResponse is the method that returns an actor invocation response. + * + * @generated from message dapr.proto.runtime.v1.InvokeActorResponse + */ +export declare type InvokeActorResponse = Message<"dapr.proto.runtime.v1.InvokeActorResponse"> & { + /** + * @generated from field: bytes data = 1; + */ + data: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.InvokeActorResponse. + * Use `create(InvokeActorResponseSchema)` to create a new message. + */ +export declare const InvokeActorResponseSchema: GenMessage; + +/** + * GetMetadataRequest is the message for the GetMetadata request. + * + * Empty + * + * @generated from message dapr.proto.runtime.v1.GetMetadataRequest + */ +export declare type GetMetadataRequest = Message<"dapr.proto.runtime.v1.GetMetadataRequest"> & { +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetMetadataRequest. + * Use `create(GetMetadataRequestSchema)` to create a new message. + */ +export declare const GetMetadataRequestSchema: GenMessage; + +/** + * GetMetadataResponse is a message that is returned on GetMetadata rpc call. + * + * @generated from message dapr.proto.runtime.v1.GetMetadataResponse + */ +export declare type GetMetadataResponse = Message<"dapr.proto.runtime.v1.GetMetadataResponse"> & { + /** + * @generated from field: string id = 1; + */ + id: string; + + /** + * Deprecated alias for actor_runtime.active_actors. + * + * @generated from field: repeated dapr.proto.runtime.v1.ActiveActorsCount active_actors_count = 2 [json_name = "actors", deprecated = true]; + * @deprecated + */ + activeActorsCount: ActiveActorsCount[]; + + /** + * @generated from field: repeated dapr.proto.runtime.v1.RegisteredComponents registered_components = 3 [json_name = "components"]; + */ + registeredComponents: RegisteredComponents[]; + + /** + * @generated from field: map extended_metadata = 4 [json_name = "extended"]; + */ + extendedMetadata: { [key: string]: string }; + + /** + * @generated from field: repeated dapr.proto.runtime.v1.PubsubSubscription subscriptions = 5; + */ + subscriptions: PubsubSubscription[]; + + /** + * @generated from field: repeated dapr.proto.runtime.v1.MetadataHTTPEndpoint http_endpoints = 6; + */ + httpEndpoints: MetadataHTTPEndpoint[]; + + /** + * @generated from field: dapr.proto.runtime.v1.AppConnectionProperties app_connection_properties = 7; + */ + appConnectionProperties?: AppConnectionProperties; + + /** + * @generated from field: string runtime_version = 8; + */ + runtimeVersion: string; + + /** + * @generated from field: repeated string enabled_features = 9; + */ + enabledFeatures: string[]; + + /** + * @generated from field: dapr.proto.runtime.v1.ActorRuntime actor_runtime = 10; + */ + actorRuntime?: ActorRuntime; + + /** + * @generated from field: optional dapr.proto.runtime.v1.MetadataScheduler scheduler = 11; + */ + scheduler?: MetadataScheduler; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetMetadataResponse. + * Use `create(GetMetadataResponseSchema)` to create a new message. + */ +export declare const GetMetadataResponseSchema: GenMessage; + +/** + * MetadataScheduler is a message that contains the list of addresses of the + * scheduler connections. + * + * @generated from message dapr.proto.runtime.v1.MetadataScheduler + */ +export declare type MetadataScheduler = Message<"dapr.proto.runtime.v1.MetadataScheduler"> & { + /** + * connected_addresses the list of addresses of the scheduler connections. + * + * @generated from field: repeated string connected_addresses = 1; + */ + connectedAddresses: string[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.MetadataScheduler. + * Use `create(MetadataSchedulerSchema)` to create a new message. + */ +export declare const MetadataSchedulerSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.ActorRuntime + */ +export declare type ActorRuntime = Message<"dapr.proto.runtime.v1.ActorRuntime"> & { + /** + * Contains an enum indicating whether the actor runtime has been initialized. + * + * @generated from field: dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus runtime_status = 1; + */ + runtimeStatus: ActorRuntime_ActorRuntimeStatus; + + /** + * Count of active actors per type. + * + * @generated from field: repeated dapr.proto.runtime.v1.ActiveActorsCount active_actors = 2; + */ + activeActors: ActiveActorsCount[]; + + /** + * Indicates whether the actor runtime is ready to host actors. + * + * @generated from field: bool host_ready = 3; + */ + hostReady: boolean; + + /** + * Custom message from the placement provider. + * + * @generated from field: string placement = 4; + */ + placement: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ActorRuntime. + * Use `create(ActorRuntimeSchema)` to create a new message. + */ +export declare const ActorRuntimeSchema: GenMessage; + +/** + * @generated from enum dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus + */ +export enum ActorRuntime_ActorRuntimeStatus { + /** + * Indicates that the actor runtime is still being initialized. + * + * @generated from enum value: INITIALIZING = 0; + */ + INITIALIZING = 0, + + /** + * Indicates that the actor runtime is disabled. + * This normally happens when Dapr is started without "placement-host-address" + * + * @generated from enum value: DISABLED = 1; + */ + DISABLED = 1, + + /** + * Indicates the actor runtime is running, either as an actor host or client. + * + * @generated from enum value: RUNNING = 2; + */ + RUNNING = 2, +} + +/** + * Describes the enum dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus. + */ +export declare const ActorRuntime_ActorRuntimeStatusSchema: GenEnum; + +/** + * @generated from message dapr.proto.runtime.v1.ActiveActorsCount + */ +export declare type ActiveActorsCount = Message<"dapr.proto.runtime.v1.ActiveActorsCount"> & { + /** + * @generated from field: string type = 1; + */ + type: string; + + /** + * @generated from field: int32 count = 2; + */ + count: number; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ActiveActorsCount. + * Use `create(ActiveActorsCountSchema)` to create a new message. + */ +export declare const ActiveActorsCountSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.RegisteredComponents + */ +export declare type RegisteredComponents = Message<"dapr.proto.runtime.v1.RegisteredComponents"> & { + /** + * @generated from field: string name = 1; + */ + name: string; + + /** + * @generated from field: string type = 2; + */ + type: string; + + /** + * @generated from field: string version = 3; + */ + version: string; + + /** + * @generated from field: repeated string capabilities = 4; + */ + capabilities: string[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.RegisteredComponents. + * Use `create(RegisteredComponentsSchema)` to create a new message. + */ +export declare const RegisteredComponentsSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.MetadataHTTPEndpoint + */ +export declare type MetadataHTTPEndpoint = Message<"dapr.proto.runtime.v1.MetadataHTTPEndpoint"> & { + /** + * @generated from field: string name = 1; + */ + name: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.MetadataHTTPEndpoint. + * Use `create(MetadataHTTPEndpointSchema)` to create a new message. + */ +export declare const MetadataHTTPEndpointSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.AppConnectionProperties + */ +export declare type AppConnectionProperties = Message<"dapr.proto.runtime.v1.AppConnectionProperties"> & { + /** + * @generated from field: int32 port = 1; + */ + port: number; + + /** + * @generated from field: string protocol = 2; + */ + protocol: string; + + /** + * @generated from field: string channel_address = 3; + */ + channelAddress: string; + + /** + * @generated from field: int32 max_concurrency = 4; + */ + maxConcurrency: number; + + /** + * @generated from field: dapr.proto.runtime.v1.AppConnectionHealthProperties health = 5; + */ + health?: AppConnectionHealthProperties; +}; + +/** + * Describes the message dapr.proto.runtime.v1.AppConnectionProperties. + * Use `create(AppConnectionPropertiesSchema)` to create a new message. + */ +export declare const AppConnectionPropertiesSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.AppConnectionHealthProperties + */ +export declare type AppConnectionHealthProperties = Message<"dapr.proto.runtime.v1.AppConnectionHealthProperties"> & { + /** + * @generated from field: string health_check_path = 1; + */ + healthCheckPath: string; + + /** + * @generated from field: string health_probe_interval = 2; + */ + healthProbeInterval: string; + + /** + * @generated from field: string health_probe_timeout = 3; + */ + healthProbeTimeout: string; + + /** + * @generated from field: int32 health_threshold = 4; + */ + healthThreshold: number; +}; + +/** + * Describes the message dapr.proto.runtime.v1.AppConnectionHealthProperties. + * Use `create(AppConnectionHealthPropertiesSchema)` to create a new message. + */ +export declare const AppConnectionHealthPropertiesSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.PubsubSubscription + */ +export declare type PubsubSubscription = Message<"dapr.proto.runtime.v1.PubsubSubscription"> & { + /** + * @generated from field: string pubsub_name = 1 [json_name = "pubsubname"]; + */ + pubsubName: string; + + /** + * @generated from field: string topic = 2; + */ + topic: string; + + /** + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; + + /** + * @generated from field: dapr.proto.runtime.v1.PubsubSubscriptionRules rules = 4; + */ + rules?: PubsubSubscriptionRules; + + /** + * @generated from field: string dead_letter_topic = 5; + */ + deadLetterTopic: string; + + /** + * @generated from field: dapr.proto.runtime.v1.PubsubSubscriptionType type = 6; + */ + type: PubsubSubscriptionType; +}; + +/** + * Describes the message dapr.proto.runtime.v1.PubsubSubscription. + * Use `create(PubsubSubscriptionSchema)` to create a new message. + */ +export declare const PubsubSubscriptionSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.PubsubSubscriptionRules + */ +export declare type PubsubSubscriptionRules = Message<"dapr.proto.runtime.v1.PubsubSubscriptionRules"> & { + /** + * @generated from field: repeated dapr.proto.runtime.v1.PubsubSubscriptionRule rules = 1; + */ + rules: PubsubSubscriptionRule[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.PubsubSubscriptionRules. + * Use `create(PubsubSubscriptionRulesSchema)` to create a new message. + */ +export declare const PubsubSubscriptionRulesSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.PubsubSubscriptionRule + */ +export declare type PubsubSubscriptionRule = Message<"dapr.proto.runtime.v1.PubsubSubscriptionRule"> & { + /** + * @generated from field: string match = 1; + */ + match: string; + + /** + * @generated from field: string path = 2; + */ + path: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.PubsubSubscriptionRule. + * Use `create(PubsubSubscriptionRuleSchema)` to create a new message. + */ +export declare const PubsubSubscriptionRuleSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.SetMetadataRequest + */ +export declare type SetMetadataRequest = Message<"dapr.proto.runtime.v1.SetMetadataRequest"> & { + /** + * @generated from field: string key = 1; + */ + key: string; + + /** + * @generated from field: string value = 2; + */ + value: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SetMetadataRequest. + * Use `create(SetMetadataRequestSchema)` to create a new message. + */ +export declare const SetMetadataRequestSchema: GenMessage; + +/** + * GetConfigurationRequest is the message to get a list of key-value configuration from specified configuration store. + * + * @generated from message dapr.proto.runtime.v1.GetConfigurationRequest + */ +export declare type GetConfigurationRequest = Message<"dapr.proto.runtime.v1.GetConfigurationRequest"> & { + /** + * Required. The name of configuration store. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * Optional. The key of the configuration item to fetch. + * If set, only query for the specified configuration items. + * Empty list means fetch all. + * + * @generated from field: repeated string keys = 2; + */ + keys: string[]; + + /** + * Optional. The metadata which will be sent to configuration store components. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetConfigurationRequest. + * Use `create(GetConfigurationRequestSchema)` to create a new message. + */ +export declare const GetConfigurationRequestSchema: GenMessage; + +/** + * GetConfigurationResponse is the response conveying the list of configuration values. + * It should be the FULL configuration of specified application which contains all of its configuration items. + * + * @generated from message dapr.proto.runtime.v1.GetConfigurationResponse + */ +export declare type GetConfigurationResponse = Message<"dapr.proto.runtime.v1.GetConfigurationResponse"> & { + /** + * @generated from field: map items = 1; + */ + items: { [key: string]: ConfigurationItem }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetConfigurationResponse. + * Use `create(GetConfigurationResponseSchema)` to create a new message. + */ +export declare const GetConfigurationResponseSchema: GenMessage; + +/** + * SubscribeConfigurationRequest is the message to get a list of key-value configuration from specified configuration store. + * + * @generated from message dapr.proto.runtime.v1.SubscribeConfigurationRequest + */ +export declare type SubscribeConfigurationRequest = Message<"dapr.proto.runtime.v1.SubscribeConfigurationRequest"> & { + /** + * The name of configuration store. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * Optional. The key of the configuration item to fetch. + * If set, only query for the specified configuration items. + * Empty list means fetch all. + * + * @generated from field: repeated string keys = 2; + */ + keys: string[]; + + /** + * The metadata which will be sent to configuration store components. + * + * @generated from field: map metadata = 3; + */ + metadata: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubscribeConfigurationRequest. + * Use `create(SubscribeConfigurationRequestSchema)` to create a new message. + */ +export declare const SubscribeConfigurationRequestSchema: GenMessage; + +/** + * UnSubscribeConfigurationRequest is the message to stop watching the key-value configuration. + * + * @generated from message dapr.proto.runtime.v1.UnsubscribeConfigurationRequest + */ +export declare type UnsubscribeConfigurationRequest = Message<"dapr.proto.runtime.v1.UnsubscribeConfigurationRequest"> & { + /** + * The name of configuration store. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * The id to unsubscribe. + * + * @generated from field: string id = 2; + */ + id: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.UnsubscribeConfigurationRequest. + * Use `create(UnsubscribeConfigurationRequestSchema)` to create a new message. + */ +export declare const UnsubscribeConfigurationRequestSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.SubscribeConfigurationResponse + */ +export declare type SubscribeConfigurationResponse = Message<"dapr.proto.runtime.v1.SubscribeConfigurationResponse"> & { + /** + * Subscribe id, used to stop subscription. + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The list of items containing configuration values + * + * @generated from field: map items = 2; + */ + items: { [key: string]: ConfigurationItem }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubscribeConfigurationResponse. + * Use `create(SubscribeConfigurationResponseSchema)` to create a new message. + */ +export declare const SubscribeConfigurationResponseSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.UnsubscribeConfigurationResponse + */ +export declare type UnsubscribeConfigurationResponse = Message<"dapr.proto.runtime.v1.UnsubscribeConfigurationResponse"> & { + /** + * @generated from field: bool ok = 1; + */ + ok: boolean; + + /** + * @generated from field: string message = 2; + */ + message: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.UnsubscribeConfigurationResponse. + * Use `create(UnsubscribeConfigurationResponseSchema)` to create a new message. + */ +export declare const UnsubscribeConfigurationResponseSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.TryLockRequest + */ +export declare type TryLockRequest = Message<"dapr.proto.runtime.v1.TryLockRequest"> & { + /** + * Required. The lock store name,e.g. `redis`. + * + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * Required. resource_id is the lock key. e.g. `order_id_111` + * It stands for "which resource I want to protect" + * + * @generated from field: string resource_id = 2; + */ + resourceId: string; + + /** + * Required. lock_owner indicate the identifier of lock owner. + * You can generate a uuid as lock_owner.For example,in golang: + * + * req.LockOwner = uuid.New().String() + * + * This field is per request,not per process,so it is different for each request, + * which aims to prevent multi-thread in the same process trying the same lock concurrently. + * + * The reason why we don't make it automatically generated is: + * 1. If it is automatically generated,there must be a 'my_lock_owner_id' field in the response. + * This name is so weird that we think it is inappropriate to put it into the api spec + * 2. If we change the field 'my_lock_owner_id' in the response to 'lock_owner',which means the current lock owner of this lock, + * we find that in some lock services users can't get the current lock owner.Actually users don't need it at all. + * 3. When reentrant lock is needed,the existing lock_owner is required to identify client and check "whether this client can reenter this lock". + * So this field in the request shouldn't be removed. + * + * @generated from field: string lock_owner = 3; + */ + lockOwner: string; + + /** + * Required. The time before expiry.The time unit is second. + * + * @generated from field: int32 expiry_in_seconds = 4; + */ + expiryInSeconds: number; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TryLockRequest. + * Use `create(TryLockRequestSchema)` to create a new message. + */ +export declare const TryLockRequestSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.TryLockResponse + */ +export declare type TryLockResponse = Message<"dapr.proto.runtime.v1.TryLockResponse"> & { + /** + * @generated from field: bool success = 1; + */ + success: boolean; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TryLockResponse. + * Use `create(TryLockResponseSchema)` to create a new message. + */ +export declare const TryLockResponseSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.UnlockRequest + */ +export declare type UnlockRequest = Message<"dapr.proto.runtime.v1.UnlockRequest"> & { + /** + * @generated from field: string store_name = 1; + */ + storeName: string; + + /** + * resource_id is the lock key. + * + * @generated from field: string resource_id = 2; + */ + resourceId: string; + + /** + * @generated from field: string lock_owner = 3; + */ + lockOwner: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.UnlockRequest. + * Use `create(UnlockRequestSchema)` to create a new message. + */ +export declare const UnlockRequestSchema: GenMessage; + +/** + * @generated from message dapr.proto.runtime.v1.UnlockResponse + */ +export declare type UnlockResponse = Message<"dapr.proto.runtime.v1.UnlockResponse"> & { + /** + * @generated from field: dapr.proto.runtime.v1.UnlockResponse.Status status = 1; + */ + status: UnlockResponse_Status; +}; + +/** + * Describes the message dapr.proto.runtime.v1.UnlockResponse. + * Use `create(UnlockResponseSchema)` to create a new message. + */ +export declare const UnlockResponseSchema: GenMessage; + +/** + * @generated from enum dapr.proto.runtime.v1.UnlockResponse.Status + */ +export enum UnlockResponse_Status { + /** + * @generated from enum value: SUCCESS = 0; + */ + SUCCESS = 0, + + /** + * @generated from enum value: LOCK_DOES_NOT_EXIST = 1; + */ + LOCK_DOES_NOT_EXIST = 1, + + /** + * @generated from enum value: LOCK_BELONGS_TO_OTHERS = 2; + */ + LOCK_BELONGS_TO_OTHERS = 2, + + /** + * @generated from enum value: INTERNAL_ERROR = 3; + */ + INTERNAL_ERROR = 3, +} + +/** + * Describes the enum dapr.proto.runtime.v1.UnlockResponse.Status. + */ +export declare const UnlockResponse_StatusSchema: GenEnum; + +/** + * SubtleGetKeyRequest is the request object for SubtleGetKeyAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleGetKeyRequest + */ +export declare type SubtleGetKeyRequest = Message<"dapr.proto.runtime.v1.SubtleGetKeyRequest"> & { + /** + * Name of the component + * + * @generated from field: string component_name = 1; + */ + componentName: string; + + /** + * Name (or name/version) of the key to use in the key vault + * + * @generated from field: string name = 2; + */ + name: string; + + /** + * Response format + * + * @generated from field: dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat format = 3; + */ + format: SubtleGetKeyRequest_KeyFormat; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleGetKeyRequest. + * Use `create(SubtleGetKeyRequestSchema)` to create a new message. + */ +export declare const SubtleGetKeyRequestSchema: GenMessage; + +/** + * @generated from enum dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat + */ +export enum SubtleGetKeyRequest_KeyFormat { + /** + * PEM (PKIX) (default) + * + * @generated from enum value: PEM = 0; + */ + PEM = 0, + + /** + * JSON (JSON Web Key) as string + * + * @generated from enum value: JSON = 1; + */ + JSON = 1, +} + +/** + * Describes the enum dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat. + */ +export declare const SubtleGetKeyRequest_KeyFormatSchema: GenEnum; + +/** + * SubtleGetKeyResponse is the response for SubtleGetKeyAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleGetKeyResponse + */ +export declare type SubtleGetKeyResponse = Message<"dapr.proto.runtime.v1.SubtleGetKeyResponse"> & { + /** + * Name (or name/version) of the key. + * This is returned as response too in case there is a version. + * + * @generated from field: string name = 1; + */ + name: string; + + /** + * Public key, encoded in the requested format + * + * @generated from field: string public_key = 2; + */ + publicKey: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleGetKeyResponse. + * Use `create(SubtleGetKeyResponseSchema)` to create a new message. + */ +export declare const SubtleGetKeyResponseSchema: GenMessage; + +/** + * SubtleEncryptRequest is the request for SubtleEncryptAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleEncryptRequest + */ +export declare type SubtleEncryptRequest = Message<"dapr.proto.runtime.v1.SubtleEncryptRequest"> & { + /** + * Name of the component + * + * @generated from field: string component_name = 1; + */ + componentName: string; + + /** + * Message to encrypt. + * + * @generated from field: bytes plaintext = 2; + */ + plaintext: Uint8Array; + + /** + * Algorithm to use, as in the JWA standard. + * + * @generated from field: string algorithm = 3; + */ + algorithm: string; + + /** + * Name (or name/version) of the key. + * + * @generated from field: string key_name = 4; + */ + keyName: string; + + /** + * Nonce / initialization vector. + * Ignored with asymmetric ciphers. + * + * @generated from field: bytes nonce = 5; + */ + nonce: Uint8Array; + + /** + * Associated Data when using AEAD ciphers (optional). + * + * @generated from field: bytes associated_data = 6; + */ + associatedData: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleEncryptRequest. + * Use `create(SubtleEncryptRequestSchema)` to create a new message. + */ +export declare const SubtleEncryptRequestSchema: GenMessage; + +/** + * SubtleEncryptResponse is the response for SubtleEncryptAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleEncryptResponse + */ +export declare type SubtleEncryptResponse = Message<"dapr.proto.runtime.v1.SubtleEncryptResponse"> & { + /** + * Encrypted ciphertext. + * + * @generated from field: bytes ciphertext = 1; + */ + ciphertext: Uint8Array; + + /** + * Authentication tag. + * This is nil when not using an authenticated cipher. + * + * @generated from field: bytes tag = 2; + */ + tag: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleEncryptResponse. + * Use `create(SubtleEncryptResponseSchema)` to create a new message. + */ +export declare const SubtleEncryptResponseSchema: GenMessage; + +/** + * SubtleDecryptRequest is the request for SubtleDecryptAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleDecryptRequest + */ +export declare type SubtleDecryptRequest = Message<"dapr.proto.runtime.v1.SubtleDecryptRequest"> & { + /** + * Name of the component + * + * @generated from field: string component_name = 1; + */ + componentName: string; + + /** + * Message to decrypt. + * + * @generated from field: bytes ciphertext = 2; + */ + ciphertext: Uint8Array; + + /** + * Algorithm to use, as in the JWA standard. + * + * @generated from field: string algorithm = 3; + */ + algorithm: string; + + /** + * Name (or name/version) of the key. + * + * @generated from field: string key_name = 4; + */ + keyName: string; + + /** + * Nonce / initialization vector. + * Ignored with asymmetric ciphers. + * + * @generated from field: bytes nonce = 5; + */ + nonce: Uint8Array; + + /** + * Authentication tag. + * This is nil when not using an authenticated cipher. + * + * @generated from field: bytes tag = 6; + */ + tag: Uint8Array; + + /** + * Associated Data when using AEAD ciphers (optional). + * + * @generated from field: bytes associated_data = 7; + */ + associatedData: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleDecryptRequest. + * Use `create(SubtleDecryptRequestSchema)` to create a new message. + */ +export declare const SubtleDecryptRequestSchema: GenMessage; + +/** + * SubtleDecryptResponse is the response for SubtleDecryptAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleDecryptResponse + */ +export declare type SubtleDecryptResponse = Message<"dapr.proto.runtime.v1.SubtleDecryptResponse"> & { + /** + * Decrypted plaintext. + * + * @generated from field: bytes plaintext = 1; + */ + plaintext: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleDecryptResponse. + * Use `create(SubtleDecryptResponseSchema)` to create a new message. + */ +export declare const SubtleDecryptResponseSchema: GenMessage; + +/** + * SubtleWrapKeyRequest is the request for SubtleWrapKeyAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleWrapKeyRequest + */ +export declare type SubtleWrapKeyRequest = Message<"dapr.proto.runtime.v1.SubtleWrapKeyRequest"> & { + /** + * Name of the component + * + * @generated from field: string component_name = 1; + */ + componentName: string; + + /** + * Key to wrap + * + * @generated from field: bytes plaintext_key = 2; + */ + plaintextKey: Uint8Array; + + /** + * Algorithm to use, as in the JWA standard. + * + * @generated from field: string algorithm = 3; + */ + algorithm: string; + + /** + * Name (or name/version) of the key. + * + * @generated from field: string key_name = 4; + */ + keyName: string; + + /** + * Nonce / initialization vector. + * Ignored with asymmetric ciphers. + * + * @generated from field: bytes nonce = 5; + */ + nonce: Uint8Array; + + /** + * Associated Data when using AEAD ciphers (optional). + * + * @generated from field: bytes associated_data = 6; + */ + associatedData: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleWrapKeyRequest. + * Use `create(SubtleWrapKeyRequestSchema)` to create a new message. + */ +export declare const SubtleWrapKeyRequestSchema: GenMessage; + +/** + * SubtleWrapKeyResponse is the response for SubtleWrapKeyAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleWrapKeyResponse + */ +export declare type SubtleWrapKeyResponse = Message<"dapr.proto.runtime.v1.SubtleWrapKeyResponse"> & { + /** + * Wrapped key. + * + * @generated from field: bytes wrapped_key = 1; + */ + wrappedKey: Uint8Array; + + /** + * Authentication tag. + * This is nil when not using an authenticated cipher. + * + * @generated from field: bytes tag = 2; + */ + tag: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleWrapKeyResponse. + * Use `create(SubtleWrapKeyResponseSchema)` to create a new message. + */ +export declare const SubtleWrapKeyResponseSchema: GenMessage; + +/** + * SubtleUnwrapKeyRequest is the request for SubtleUnwrapKeyAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleUnwrapKeyRequest + */ +export declare type SubtleUnwrapKeyRequest = Message<"dapr.proto.runtime.v1.SubtleUnwrapKeyRequest"> & { + /** + * Name of the component + * + * @generated from field: string component_name = 1; + */ + componentName: string; + + /** + * Wrapped key. + * + * @generated from field: bytes wrapped_key = 2; + */ + wrappedKey: Uint8Array; + + /** + * Algorithm to use, as in the JWA standard. + * + * @generated from field: string algorithm = 3; + */ + algorithm: string; + + /** + * Name (or name/version) of the key. + * + * @generated from field: string key_name = 4; + */ + keyName: string; + + /** + * Nonce / initialization vector. + * Ignored with asymmetric ciphers. + * + * @generated from field: bytes nonce = 5; + */ + nonce: Uint8Array; + + /** + * Authentication tag. + * This is nil when not using an authenticated cipher. + * + * @generated from field: bytes tag = 6; + */ + tag: Uint8Array; + + /** + * Associated Data when using AEAD ciphers (optional). + * + * @generated from field: bytes associated_data = 7; + */ + associatedData: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleUnwrapKeyRequest. + * Use `create(SubtleUnwrapKeyRequestSchema)` to create a new message. + */ +export declare const SubtleUnwrapKeyRequestSchema: GenMessage; + +/** + * SubtleUnwrapKeyResponse is the response for SubtleUnwrapKeyAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleUnwrapKeyResponse + */ +export declare type SubtleUnwrapKeyResponse = Message<"dapr.proto.runtime.v1.SubtleUnwrapKeyResponse"> & { + /** + * Key in plaintext + * + * @generated from field: bytes plaintext_key = 1; + */ + plaintextKey: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleUnwrapKeyResponse. + * Use `create(SubtleUnwrapKeyResponseSchema)` to create a new message. + */ +export declare const SubtleUnwrapKeyResponseSchema: GenMessage; + +/** + * SubtleSignRequest is the request for SubtleSignAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleSignRequest + */ +export declare type SubtleSignRequest = Message<"dapr.proto.runtime.v1.SubtleSignRequest"> & { + /** + * Name of the component + * + * @generated from field: string component_name = 1; + */ + componentName: string; + + /** + * Digest to sign. + * + * @generated from field: bytes digest = 2; + */ + digest: Uint8Array; + + /** + * Algorithm to use, as in the JWA standard. + * + * @generated from field: string algorithm = 3; + */ + algorithm: string; + + /** + * Name (or name/version) of the key. + * + * @generated from field: string key_name = 4; + */ + keyName: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleSignRequest. + * Use `create(SubtleSignRequestSchema)` to create a new message. + */ +export declare const SubtleSignRequestSchema: GenMessage; + +/** + * SubtleSignResponse is the response for SubtleSignAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleSignResponse + */ +export declare type SubtleSignResponse = Message<"dapr.proto.runtime.v1.SubtleSignResponse"> & { + /** + * The signature that was computed + * + * @generated from field: bytes signature = 1; + */ + signature: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleSignResponse. + * Use `create(SubtleSignResponseSchema)` to create a new message. + */ +export declare const SubtleSignResponseSchema: GenMessage; + +/** + * SubtleVerifyRequest is the request for SubtleVerifyAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleVerifyRequest + */ +export declare type SubtleVerifyRequest = Message<"dapr.proto.runtime.v1.SubtleVerifyRequest"> & { + /** + * Name of the component + * + * @generated from field: string component_name = 1; + */ + componentName: string; + + /** + * Digest of the message. + * + * @generated from field: bytes digest = 2; + */ + digest: Uint8Array; + + /** + * Algorithm to use, as in the JWA standard. + * + * @generated from field: string algorithm = 3; + */ + algorithm: string; + + /** + * Name (or name/version) of the key. + * + * @generated from field: string key_name = 4; + */ + keyName: string; + + /** + * Signature to verify. + * + * @generated from field: bytes signature = 5; + */ + signature: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleVerifyRequest. + * Use `create(SubtleVerifyRequestSchema)` to create a new message. + */ +export declare const SubtleVerifyRequestSchema: GenMessage; + +/** + * SubtleVerifyResponse is the response for SubtleVerifyAlpha1. + * + * @generated from message dapr.proto.runtime.v1.SubtleVerifyResponse + */ +export declare type SubtleVerifyResponse = Message<"dapr.proto.runtime.v1.SubtleVerifyResponse"> & { + /** + * True if the signature is valid. + * + * @generated from field: bool valid = 1; + */ + valid: boolean; +}; + +/** + * Describes the message dapr.proto.runtime.v1.SubtleVerifyResponse. + * Use `create(SubtleVerifyResponseSchema)` to create a new message. + */ +export declare const SubtleVerifyResponseSchema: GenMessage; + +/** + * EncryptRequest is the request for EncryptAlpha1. + * + * @generated from message dapr.proto.runtime.v1.EncryptRequest + */ +export declare type EncryptRequest = Message<"dapr.proto.runtime.v1.EncryptRequest"> & { + /** + * Request details. Must be present in the first message only. + * + * @generated from field: dapr.proto.runtime.v1.EncryptRequestOptions options = 1; + */ + options?: EncryptRequestOptions; + + /** + * Chunk of data of arbitrary size. + * + * @generated from field: dapr.proto.common.v1.StreamPayload payload = 2; + */ + payload?: StreamPayload; +}; + +/** + * Describes the message dapr.proto.runtime.v1.EncryptRequest. + * Use `create(EncryptRequestSchema)` to create a new message. + */ +export declare const EncryptRequestSchema: GenMessage; + +/** + * EncryptRequestOptions contains options for the first message in the EncryptAlpha1 request. + * + * @generated from message dapr.proto.runtime.v1.EncryptRequestOptions + */ +export declare type EncryptRequestOptions = Message<"dapr.proto.runtime.v1.EncryptRequestOptions"> & { + /** + * Name of the component. Required. + * + * @generated from field: string component_name = 1; + */ + componentName: string; + + /** + * Name (or name/version) of the key. Required. + * + * @generated from field: string key_name = 2; + */ + keyName: string; + + /** + * Key wrapping algorithm to use. Required. + * Supported options include: A256KW (alias: AES), A128CBC, A192CBC, A256CBC, RSA-OAEP-256 (alias: RSA). + * + * @generated from field: string key_wrap_algorithm = 3; + */ + keyWrapAlgorithm: string; + + /** + * Cipher used to encrypt data (optional): "aes-gcm" (default) or "chacha20-poly1305" + * + * @generated from field: string data_encryption_cipher = 10; + */ + dataEncryptionCipher: string; + + /** + * If true, the encrypted document does not contain a key reference. + * In that case, calls to the Decrypt method must provide a key reference (name or name/version). + * Defaults to false. + * + * @generated from field: bool omit_decryption_key_name = 11; + */ + omitDecryptionKeyName: boolean; + + /** + * Key reference to embed in the encrypted document (name or name/version). + * This is helpful if the reference of the key used to decrypt the document is different from the one used to encrypt it. + * If unset, uses the reference of the key used to encrypt the document (this is the default behavior). + * This option is ignored if omit_decryption_key_name is true. + * + * @generated from field: string decryption_key_name = 12; + */ + decryptionKeyName: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.EncryptRequestOptions. + * Use `create(EncryptRequestOptionsSchema)` to create a new message. + */ +export declare const EncryptRequestOptionsSchema: GenMessage; + +/** + * EncryptResponse is the response for EncryptAlpha1. + * + * @generated from message dapr.proto.runtime.v1.EncryptResponse + */ +export declare type EncryptResponse = Message<"dapr.proto.runtime.v1.EncryptResponse"> & { + /** + * Chunk of data. + * + * @generated from field: dapr.proto.common.v1.StreamPayload payload = 1; + */ + payload?: StreamPayload; +}; + +/** + * Describes the message dapr.proto.runtime.v1.EncryptResponse. + * Use `create(EncryptResponseSchema)` to create a new message. + */ +export declare const EncryptResponseSchema: GenMessage; + +/** + * DecryptRequest is the request for DecryptAlpha1. + * + * @generated from message dapr.proto.runtime.v1.DecryptRequest + */ +export declare type DecryptRequest = Message<"dapr.proto.runtime.v1.DecryptRequest"> & { + /** + * Request details. Must be present in the first message only. + * + * @generated from field: dapr.proto.runtime.v1.DecryptRequestOptions options = 1; + */ + options?: DecryptRequestOptions; + + /** + * Chunk of data of arbitrary size. + * + * @generated from field: dapr.proto.common.v1.StreamPayload payload = 2; + */ + payload?: StreamPayload; +}; + +/** + * Describes the message dapr.proto.runtime.v1.DecryptRequest. + * Use `create(DecryptRequestSchema)` to create a new message. + */ +export declare const DecryptRequestSchema: GenMessage; + +/** + * DecryptRequestOptions contains options for the first message in the DecryptAlpha1 request. + * + * @generated from message dapr.proto.runtime.v1.DecryptRequestOptions + */ +export declare type DecryptRequestOptions = Message<"dapr.proto.runtime.v1.DecryptRequestOptions"> & { + /** + * Name of the component + * + * @generated from field: string component_name = 1; + */ + componentName: string; + + /** + * Name (or name/version) of the key to decrypt the message. + * Overrides any key reference included in the message if present. + * This is required if the message doesn't include a key reference (i.e. was created with omit_decryption_key_name set to true). + * + * @generated from field: string key_name = 12; + */ + keyName: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.DecryptRequestOptions. + * Use `create(DecryptRequestOptionsSchema)` to create a new message. + */ +export declare const DecryptRequestOptionsSchema: GenMessage; + +/** + * DecryptResponse is the response for DecryptAlpha1. + * + * @generated from message dapr.proto.runtime.v1.DecryptResponse + */ +export declare type DecryptResponse = Message<"dapr.proto.runtime.v1.DecryptResponse"> & { + /** + * Chunk of data. + * + * @generated from field: dapr.proto.common.v1.StreamPayload payload = 1; + */ + payload?: StreamPayload; +}; + +/** + * Describes the message dapr.proto.runtime.v1.DecryptResponse. + * Use `create(DecryptResponseSchema)` to create a new message. + */ +export declare const DecryptResponseSchema: GenMessage; + +/** + * GetWorkflowRequest is the request for GetWorkflowBeta1. + * + * @generated from message dapr.proto.runtime.v1.GetWorkflowRequest + */ +export declare type GetWorkflowRequest = Message<"dapr.proto.runtime.v1.GetWorkflowRequest"> & { + /** + * ID of the workflow instance to query. + * + * @generated from field: string instance_id = 1 [json_name = "instanceID"]; + */ + instanceId: string; + + /** + * Name of the workflow component. + * + * @generated from field: string workflow_component = 2; + */ + workflowComponent: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetWorkflowRequest. + * Use `create(GetWorkflowRequestSchema)` to create a new message. + */ +export declare const GetWorkflowRequestSchema: GenMessage; + +/** + * GetWorkflowResponse is the response for GetWorkflowBeta1. + * + * @generated from message dapr.proto.runtime.v1.GetWorkflowResponse + */ +export declare type GetWorkflowResponse = Message<"dapr.proto.runtime.v1.GetWorkflowResponse"> & { + /** + * ID of the workflow instance. + * + * @generated from field: string instance_id = 1 [json_name = "instanceID"]; + */ + instanceId: string; + + /** + * Name of the workflow. + * + * @generated from field: string workflow_name = 2; + */ + workflowName: string; + + /** + * The time at which the workflow instance was created. + * + * @generated from field: google.protobuf.Timestamp created_at = 3; + */ + createdAt?: Timestamp; + + /** + * The last time at which the workflow instance had its state changed. + * + * @generated from field: google.protobuf.Timestamp last_updated_at = 4; + */ + lastUpdatedAt?: Timestamp; + + /** + * The current status of the workflow instance, for example, "PENDING", "RUNNING", "SUSPENDED", "COMPLETED", "FAILED", and "TERMINATED". + * + * @generated from field: string runtime_status = 5; + */ + runtimeStatus: string; + + /** + * Additional component-specific properties of the workflow instance. + * + * @generated from field: map properties = 6; + */ + properties: { [key: string]: string }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetWorkflowResponse. + * Use `create(GetWorkflowResponseSchema)` to create a new message. + */ +export declare const GetWorkflowResponseSchema: GenMessage; + +/** + * StartWorkflowRequest is the request for StartWorkflowBeta1. + * + * @generated from message dapr.proto.runtime.v1.StartWorkflowRequest + */ +export declare type StartWorkflowRequest = Message<"dapr.proto.runtime.v1.StartWorkflowRequest"> & { + /** + * The ID to assign to the started workflow instance. If empty, a random ID is generated. + * + * @generated from field: string instance_id = 1 [json_name = "instanceID"]; + */ + instanceId: string; + + /** + * Name of the workflow component. + * + * @generated from field: string workflow_component = 2; + */ + workflowComponent: string; + + /** + * Name of the workflow. + * + * @generated from field: string workflow_name = 3; + */ + workflowName: string; + + /** + * Additional component-specific options for starting the workflow instance. + * + * @generated from field: map options = 4; + */ + options: { [key: string]: string }; + + /** + * Input data for the workflow instance. + * + * @generated from field: bytes input = 5; + */ + input: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.StartWorkflowRequest. + * Use `create(StartWorkflowRequestSchema)` to create a new message. + */ +export declare const StartWorkflowRequestSchema: GenMessage; + +/** + * StartWorkflowResponse is the response for StartWorkflowBeta1. + * + * @generated from message dapr.proto.runtime.v1.StartWorkflowResponse + */ +export declare type StartWorkflowResponse = Message<"dapr.proto.runtime.v1.StartWorkflowResponse"> & { + /** + * ID of the started workflow instance. + * + * @generated from field: string instance_id = 1 [json_name = "instanceID"]; + */ + instanceId: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.StartWorkflowResponse. + * Use `create(StartWorkflowResponseSchema)` to create a new message. + */ +export declare const StartWorkflowResponseSchema: GenMessage; + +/** + * TerminateWorkflowRequest is the request for TerminateWorkflowBeta1. + * + * @generated from message dapr.proto.runtime.v1.TerminateWorkflowRequest + */ +export declare type TerminateWorkflowRequest = Message<"dapr.proto.runtime.v1.TerminateWorkflowRequest"> & { + /** + * ID of the workflow instance to terminate. + * + * @generated from field: string instance_id = 1 [json_name = "instanceID"]; + */ + instanceId: string; + + /** + * Name of the workflow component. + * + * @generated from field: string workflow_component = 2; + */ + workflowComponent: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.TerminateWorkflowRequest. + * Use `create(TerminateWorkflowRequestSchema)` to create a new message. + */ +export declare const TerminateWorkflowRequestSchema: GenMessage; + +/** + * PauseWorkflowRequest is the request for PauseWorkflowBeta1. + * + * @generated from message dapr.proto.runtime.v1.PauseWorkflowRequest + */ +export declare type PauseWorkflowRequest = Message<"dapr.proto.runtime.v1.PauseWorkflowRequest"> & { + /** + * ID of the workflow instance to pause. + * + * @generated from field: string instance_id = 1 [json_name = "instanceID"]; + */ + instanceId: string; + + /** + * Name of the workflow component. + * + * @generated from field: string workflow_component = 2; + */ + workflowComponent: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.PauseWorkflowRequest. + * Use `create(PauseWorkflowRequestSchema)` to create a new message. + */ +export declare const PauseWorkflowRequestSchema: GenMessage; + +/** + * ResumeWorkflowRequest is the request for ResumeWorkflowBeta1. + * + * @generated from message dapr.proto.runtime.v1.ResumeWorkflowRequest + */ +export declare type ResumeWorkflowRequest = Message<"dapr.proto.runtime.v1.ResumeWorkflowRequest"> & { + /** + * ID of the workflow instance to resume. + * + * @generated from field: string instance_id = 1 [json_name = "instanceID"]; + */ + instanceId: string; + + /** + * Name of the workflow component. + * + * @generated from field: string workflow_component = 2; + */ + workflowComponent: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ResumeWorkflowRequest. + * Use `create(ResumeWorkflowRequestSchema)` to create a new message. + */ +export declare const ResumeWorkflowRequestSchema: GenMessage; + +/** + * RaiseEventWorkflowRequest is the request for RaiseEventWorkflowBeta1. + * + * @generated from message dapr.proto.runtime.v1.RaiseEventWorkflowRequest + */ +export declare type RaiseEventWorkflowRequest = Message<"dapr.proto.runtime.v1.RaiseEventWorkflowRequest"> & { + /** + * ID of the workflow instance to raise an event for. + * + * @generated from field: string instance_id = 1 [json_name = "instanceID"]; + */ + instanceId: string; + + /** + * Name of the workflow component. + * + * @generated from field: string workflow_component = 2; + */ + workflowComponent: string; + + /** + * Name of the event. + * + * @generated from field: string event_name = 3; + */ + eventName: string; + + /** + * Data associated with the event. + * + * @generated from field: bytes event_data = 4; + */ + eventData: Uint8Array; +}; + +/** + * Describes the message dapr.proto.runtime.v1.RaiseEventWorkflowRequest. + * Use `create(RaiseEventWorkflowRequestSchema)` to create a new message. + */ +export declare const RaiseEventWorkflowRequestSchema: GenMessage; + +/** + * PurgeWorkflowRequest is the request for PurgeWorkflowBeta1. + * + * @generated from message dapr.proto.runtime.v1.PurgeWorkflowRequest + */ +export declare type PurgeWorkflowRequest = Message<"dapr.proto.runtime.v1.PurgeWorkflowRequest"> & { + /** + * ID of the workflow instance to purge. + * + * @generated from field: string instance_id = 1 [json_name = "instanceID"]; + */ + instanceId: string; + + /** + * Name of the workflow component. + * + * @generated from field: string workflow_component = 2; + */ + workflowComponent: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.PurgeWorkflowRequest. + * Use `create(PurgeWorkflowRequestSchema)` to create a new message. + */ +export declare const PurgeWorkflowRequestSchema: GenMessage; + +/** + * ShutdownRequest is the request for Shutdown. + * + * Empty + * + * @generated from message dapr.proto.runtime.v1.ShutdownRequest + */ +export declare type ShutdownRequest = Message<"dapr.proto.runtime.v1.ShutdownRequest"> & { +}; + +/** + * Describes the message dapr.proto.runtime.v1.ShutdownRequest. + * Use `create(ShutdownRequestSchema)` to create a new message. + */ +export declare const ShutdownRequestSchema: GenMessage; + +/** + * Job is the definition of a job. At least one of schedule or due_time must be + * provided but can also be provided together. + * + * @generated from message dapr.proto.runtime.v1.Job + */ +export declare type Job = Message<"dapr.proto.runtime.v1.Job"> & { + /** + * The unique name for the job. + * + * @generated from field: string name = 1; + */ + name: string; + + /** + * 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-6/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 * * * * + * + * @generated from field: optional string schedule = 2; + */ + schedule?: string; + + /** + * 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. + * + * @generated from field: optional uint32 repeats = 3; + */ + repeats?: number; + + /** + * 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. + * + * @generated from field: optional string due_time = 4; + */ + dueTime?: string; + + /** + * 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. + * + * @generated from field: optional string ttl = 5; + */ + ttl?: string; + + /** + * payload is the serialized job payload that will be sent to the recipient + * when the job is triggered. + * + * @generated from field: google.protobuf.Any data = 6; + */ + data?: Any; + + /** + * failure_policy is the optional policy for handling job failures. + * + * @generated from field: optional dapr.proto.common.v1.JobFailurePolicy failure_policy = 7; + */ + failurePolicy?: JobFailurePolicy; +}; + +/** + * Describes the message dapr.proto.runtime.v1.Job. + * Use `create(JobSchema)` to create a new message. + */ +export declare const JobSchema: GenMessage; + +/** + * ScheduleJobRequest is the message to create/schedule the job. + * + * @generated from message dapr.proto.runtime.v1.ScheduleJobRequest + */ +export declare type ScheduleJobRequest = Message<"dapr.proto.runtime.v1.ScheduleJobRequest"> & { + /** + * The job details. + * + * @generated from field: dapr.proto.runtime.v1.Job job = 1; + */ + job?: Job; + + /** + * If true, allows this job to overwrite an existing job with the same name. + * + * @generated from field: bool overwrite = 2; + */ + overwrite: boolean; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ScheduleJobRequest. + * Use `create(ScheduleJobRequestSchema)` to create a new message. + */ +export declare const ScheduleJobRequestSchema: GenMessage; + +/** + * ScheduleJobResponse is the message response to create/schedule the job. + * + * Empty + * + * @generated from message dapr.proto.runtime.v1.ScheduleJobResponse + */ +export declare type ScheduleJobResponse = Message<"dapr.proto.runtime.v1.ScheduleJobResponse"> & { +}; + +/** + * Describes the message dapr.proto.runtime.v1.ScheduleJobResponse. + * Use `create(ScheduleJobResponseSchema)` to create a new message. + */ +export declare const ScheduleJobResponseSchema: GenMessage; + +/** + * GetJobRequest is the message to retrieve a job. + * + * @generated from message dapr.proto.runtime.v1.GetJobRequest + */ +export declare type GetJobRequest = Message<"dapr.proto.runtime.v1.GetJobRequest"> & { + /** + * The name of the job. + * + * @generated from field: string name = 1; + */ + name: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetJobRequest. + * Use `create(GetJobRequestSchema)` to create a new message. + */ +export declare const GetJobRequestSchema: GenMessage; + +/** + * GetJobResponse is the message's response for a job retrieved. + * + * @generated from message dapr.proto.runtime.v1.GetJobResponse + */ +export declare type GetJobResponse = Message<"dapr.proto.runtime.v1.GetJobResponse"> & { + /** + * The job details. + * + * @generated from field: dapr.proto.runtime.v1.Job job = 1; + */ + job?: Job; +}; + +/** + * Describes the message dapr.proto.runtime.v1.GetJobResponse. + * Use `create(GetJobResponseSchema)` to create a new message. + */ +export declare const GetJobResponseSchema: GenMessage; + +/** + * DeleteJobRequest is the message to delete the job by name. + * + * @generated from message dapr.proto.runtime.v1.DeleteJobRequest + */ +export declare type DeleteJobRequest = Message<"dapr.proto.runtime.v1.DeleteJobRequest"> & { + /** + * The name of the job. + * + * @generated from field: string name = 1; + */ + name: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.DeleteJobRequest. + * Use `create(DeleteJobRequestSchema)` to create a new message. + */ +export declare const DeleteJobRequestSchema: GenMessage; + +/** + * DeleteJobResponse is the message response to delete the job by name. + * + * Empty + * + * @generated from message dapr.proto.runtime.v1.DeleteJobResponse + */ +export declare type DeleteJobResponse = Message<"dapr.proto.runtime.v1.DeleteJobResponse"> & { +}; + +/** + * Describes the message dapr.proto.runtime.v1.DeleteJobResponse. + * Use `create(DeleteJobResponseSchema)` to create a new message. + */ +export declare const DeleteJobResponseSchema: GenMessage; + +/** + * ConversationRequest is the request object for Conversation. + * + * @generated from message dapr.proto.runtime.v1.ConversationRequest + * @deprecated + */ +export declare type ConversationRequest = Message<"dapr.proto.runtime.v1.ConversationRequest"> & { + /** + * The name of Conversation component + * + * @generated from field: string name = 1; + */ + name: string; + + /** + * The ID of an existing chat (like in ChatGPT) + * + * @generated from field: optional string contextID = 2; + */ + contextID?: string; + + /** + * Inputs for the conversation, support multiple input in one time. + * + * @generated from field: repeated dapr.proto.runtime.v1.ConversationInput inputs = 3; + */ + inputs: ConversationInput[]; + + /** + * Parameters for all custom fields. + * + * @generated from field: map parameters = 4; + */ + parameters: { [key: string]: Any }; + + /** + * The metadata passing to conversation components. + * + * @generated from field: map metadata = 5; + */ + metadata: { [key: string]: string }; + + /** + * Scrub PII data that comes back from the LLM + * + * @generated from field: optional bool scrubPII = 6; + */ + scrubPII?: boolean; + + /** + * Temperature for the LLM to optimize for creativity or predictability + * + * @generated from field: optional double temperature = 7; + */ + temperature?: number; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationRequest. + * Use `create(ConversationRequestSchema)` to create a new message. + * @deprecated + */ +export declare const ConversationRequestSchema: GenMessage; + +/** + * ConversationRequestAlpha2 is the new request object for Conversation. + * Many of these fields are inspired by openai.ChatCompletionNewParams + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2106 + * + * @generated from message dapr.proto.runtime.v1.ConversationRequestAlpha2 + */ +export declare type ConversationRequestAlpha2 = Message<"dapr.proto.runtime.v1.ConversationRequestAlpha2"> & { + /** + * The name of Conversation component + * + * @generated from field: string name = 1; + */ + name: string; + + /** + * The ID of an existing chat (like in ChatGPT) + * + * @generated from field: optional string context_id = 2; + */ + contextId?: string; + + /** + * Inputs for the conversation, support multiple input in one time. + * This is the revamped conversation inputs better matching openai. + * + * @generated from field: repeated dapr.proto.runtime.v1.ConversationInputAlpha2 inputs = 3; + */ + inputs: ConversationInputAlpha2[]; + + /** + * Parameters for all custom fields. + * + * @generated from field: map parameters = 4; + */ + parameters: { [key: string]: Any }; + + /** + * The metadata passing to conversation components. + * + * @generated from field: map metadata = 5; + */ + metadata: { [key: string]: string }; + + /** + * Scrub PII data that comes back from the LLM + * + * @generated from field: optional bool scrub_pii = 6; + */ + scrubPii?: boolean; + + /** + * Temperature for the LLM to optimize for creativity or predictability + * + * @generated from field: optional double temperature = 7; + */ + temperature?: number; + + /** + * Tools register the tools available to be used by the LLM during the conversation. + * These are sent on a per request basis. + * The tools available during the first round of the conversation + * may be different than tools specified later on. + * + * @generated from field: repeated dapr.proto.runtime.v1.ConversationTools tools = 8; + */ + tools: ConversationTools[]; + + /** + * Controls which (if any) tool is called by the model. + * `none` means the model will not call any tool and instead generates a message. + * `auto` means the model can pick between generating a message or calling one or more tools. + * Alternatively, a specific tool name may be used here, and casing/syntax must match on tool name. + * `none` is the default when no tools are present. + * `auto` is the default if tools are present. + * `required` requires one or more functions to be called. + * ref: https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1976 + * ref: https://python.langchain.com/docs/how_to/tool_choice/ + * + * @generated from field: optional string tool_choice = 9; + */ + toolChoice?: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationRequestAlpha2. + * Use `create(ConversationRequestAlpha2Schema)` to create a new message. + */ +export declare const ConversationRequestAlpha2Schema: GenMessage; + +/** + * maintained for backwards compatibility + * + * @generated from message dapr.proto.runtime.v1.ConversationInput + * @deprecated + */ +export declare type ConversationInput = Message<"dapr.proto.runtime.v1.ConversationInput"> & { + /** + * The content to send to the llm + * + * @generated from field: string content = 1; + */ + content: string; + + /** + * The role to set for the message + * + * @generated from field: optional string role = 2; + */ + role?: string; + + /** + * Scrub PII data that goes into the LLM + * + * @generated from field: optional bool scrubPII = 3; + */ + scrubPII?: boolean; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationInput. + * Use `create(ConversationInputSchema)` to create a new message. + * @deprecated + */ +export declare const ConversationInputSchema: GenMessage; + +/** + * directly inspired by openai.ChatCompletionNewParams + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2106 + * + * @generated from message dapr.proto.runtime.v1.ConversationInputAlpha2 + */ +export declare type ConversationInputAlpha2 = Message<"dapr.proto.runtime.v1.ConversationInputAlpha2"> & { + /** + * The content to send to the llm + * + * @generated from field: repeated dapr.proto.runtime.v1.ConversationMessage messages = 1; + */ + messages: ConversationMessage[]; + + /** + * Scrub PII data that goes into the LLM + * + * @generated from field: optional bool scrub_pii = 2; + */ + scrubPii?: boolean; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationInputAlpha2. + * Use `create(ConversationInputAlpha2Schema)` to create a new message. + */ +export declare const ConversationInputAlpha2Schema: GenMessage; + +/** + * inspired by openai.ChatCompletionMessageParamUnion + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1449 + * The role field is inherent to the type of ConversationMessage, + * and is propagated in the backend according to the underlying LLM provider type. + * + * @generated from message dapr.proto.runtime.v1.ConversationMessage + */ +export declare type ConversationMessage = Message<"dapr.proto.runtime.v1.ConversationMessage"> & { + /** + * @generated from oneof dapr.proto.runtime.v1.ConversationMessage.message_types + */ + messageTypes: { + /** + * @generated from field: dapr.proto.runtime.v1.ConversationMessageOfDeveloper of_developer = 1; + */ + value: ConversationMessageOfDeveloper; + case: "ofDeveloper"; + } | { + /** + * @generated from field: dapr.proto.runtime.v1.ConversationMessageOfSystem of_system = 2; + */ + value: ConversationMessageOfSystem; + case: "ofSystem"; + } | { + /** + * @generated from field: dapr.proto.runtime.v1.ConversationMessageOfUser of_user = 3; + */ + value: ConversationMessageOfUser; + case: "ofUser"; + } | { + /** + * @generated from field: dapr.proto.runtime.v1.ConversationMessageOfAssistant of_assistant = 4; + */ + value: ConversationMessageOfAssistant; + case: "ofAssistant"; + } | { + /** + * Note: there could be a ConversationMessageOfFunction type here too, + * but that is deprecated in openai, so we will not support this. + * + * @generated from field: dapr.proto.runtime.v1.ConversationMessageOfTool of_tool = 5; + */ + value: ConversationMessageOfTool; + case: "ofTool"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationMessage. + * Use `create(ConversationMessageSchema)` to create a new message. + */ +export declare const ConversationMessageSchema: GenMessage; + +/** + * inspired by openai.ChatCompletionDeveloperMessageParam + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1130 + * ConversationMessageOfDeveloper is intended to be the contents of a conversation message, + * as the role of a developer. + * + * @generated from message dapr.proto.runtime.v1.ConversationMessageOfDeveloper + */ +export declare type ConversationMessageOfDeveloper = Message<"dapr.proto.runtime.v1.ConversationMessageOfDeveloper"> & { + /** + * The name of the participant in the message. + * + * @generated from field: optional string name = 1; + */ + name?: string; + + /** + * @generated from field: repeated dapr.proto.runtime.v1.ConversationMessageContent content = 2; + */ + content: ConversationMessageContent[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationMessageOfDeveloper. + * Use `create(ConversationMessageOfDeveloperSchema)` to create a new message. + */ +export declare const ConversationMessageOfDeveloperSchema: GenMessage; + +/** + * inspired by openai.ChatCompletionSystemMessageParam + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1842 + * ConversationMessageOfSystem is intended to be the contents of a conversation message, + * as the role of a system. + * + * @generated from message dapr.proto.runtime.v1.ConversationMessageOfSystem + */ +export declare type ConversationMessageOfSystem = Message<"dapr.proto.runtime.v1.ConversationMessageOfSystem"> & { + /** + * @generated from field: optional string name = 1; + */ + name?: string; + + /** + * @generated from field: repeated dapr.proto.runtime.v1.ConversationMessageContent content = 2; + */ + content: ConversationMessageContent[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationMessageOfSystem. + * Use `create(ConversationMessageOfSystemSchema)` to create a new message. + */ +export declare const ConversationMessageOfSystemSchema: GenMessage; + +/** + * inspired by openai.ChatCompletionUserMessageParam + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2060C6-L2060C36 + * ConversationMessageOfUser is intended to be the contents of a conversation message, + * as the role of an end user. + * + * @generated from message dapr.proto.runtime.v1.ConversationMessageOfUser + */ +export declare type ConversationMessageOfUser = Message<"dapr.proto.runtime.v1.ConversationMessageOfUser"> & { + /** + * @generated from field: optional string name = 1; + */ + name?: string; + + /** + * @generated from field: repeated dapr.proto.runtime.v1.ConversationMessageContent content = 2; + */ + content: ConversationMessageContent[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationMessageOfUser. + * Use `create(ConversationMessageOfUserSchema)` to create a new message. + */ +export declare const ConversationMessageOfUserSchema: GenMessage; + +/** + * inspired by openai.ChatCompletionAssistantMessageParam + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L310 + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2060C6-L2060C36 + * ConversationMessageOfAssistant is intended to be the contents of a conversation message, + * as the role of an assistant. + * + * @generated from message dapr.proto.runtime.v1.ConversationMessageOfAssistant + */ +export declare type ConversationMessageOfAssistant = Message<"dapr.proto.runtime.v1.ConversationMessageOfAssistant"> & { + /** + * @generated from field: optional string name = 1; + */ + name?: string; + + /** + * @generated from field: repeated dapr.proto.runtime.v1.ConversationMessageContent content = 2; + */ + content: ConversationMessageContent[]; + + /** + * Tool calls generated by the model, such as function calls for the client to then make. + * + * @generated from field: repeated dapr.proto.runtime.v1.ConversationToolCalls tool_calls = 3; + */ + toolCalls: ConversationToolCalls[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationMessageOfAssistant. + * Use `create(ConversationMessageOfAssistantSchema)` to create a new message. + */ +export declare const ConversationMessageOfAssistantSchema: GenMessage; + +/** + * inspired by openai.ChatCompletionToolMessageParam + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2011 + * ConversationMessageOfTool is intended to be the contents of a conversation message, + * as the role of a tool. + * + * @generated from message dapr.proto.runtime.v1.ConversationMessageOfTool + */ +export declare type ConversationMessageOfTool = Message<"dapr.proto.runtime.v1.ConversationMessageOfTool"> & { + /** + * Tool ID is helpful for tracking tool history + * + * @generated from field: optional string tool_id = 1; + */ + toolId?: string; + + /** + * Name of tool associated with the message + * + * @generated from field: string name = 2; + */ + name: string; + + /** + * @generated from field: repeated dapr.proto.runtime.v1.ConversationMessageContent content = 3; + */ + content: ConversationMessageContent[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationMessageOfTool. + * Use `create(ConversationMessageOfToolSchema)` to create a new message. + */ +export declare const ConversationMessageOfToolSchema: GenMessage; + +/** + * inspired by openai.ChatCompletionMessageToolCallParam and openai.ChatCompletionMessageToolCall + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1669 + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1611 + * ConversationToolCalls is the tool call request sent from the llm to the client to then call to execute. + * This assumes that in our api if a client makes a request that would get a tool call response from the llm, + * that this client can also have the tool handy itself to execute it. + * + * @generated from message dapr.proto.runtime.v1.ConversationToolCalls + */ +export declare type ConversationToolCalls = Message<"dapr.proto.runtime.v1.ConversationToolCalls"> & { + /** + * @generated from field: optional string id = 1; + */ + id?: string; + + /** + * @generated from oneof dapr.proto.runtime.v1.ConversationToolCalls.tool_types + */ + toolTypes: { + /** + * @generated from field: dapr.proto.runtime.v1.ConversationToolCallsOfFunction function = 2; + */ + value: ConversationToolCallsOfFunction; + case: "function"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationToolCalls. + * Use `create(ConversationToolCallsSchema)` to create a new message. + */ +export declare const ConversationToolCallsSchema: GenMessage; + +/** + * inspired by openai.ChatCompletionMessageToolCallFunctionParam + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1692 + * + * @generated from message dapr.proto.runtime.v1.ConversationToolCallsOfFunction + */ +export declare type ConversationToolCallsOfFunction = Message<"dapr.proto.runtime.v1.ConversationToolCallsOfFunction"> & { + /** + * @generated from field: string name = 1; + */ + name: string; + + /** + * The arguments to call the function with, as generated by the model in JSON + * format. Note that the model does not always generate valid JSON, and may + * hallucinate parameters not defined by your function schema. Validate the + * arguments in your code before calling your function. + * + * @generated from field: string arguments = 2; + */ + arguments: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationToolCallsOfFunction. + * Use `create(ConversationToolCallsOfFunctionSchema)` to create a new message. + */ +export declare const ConversationToolCallsOfFunctionSchema: GenMessage; + +/** + * inspired by openai.ChatCompletionContentPartTextParam & openai.ChatCompletionDeveloperMessageParamContentUnion + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1084 + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1154C6-L1154C53 + * Note: openai has this message be either a message of string or message of array type, + * so instead of this, we support that in one message type instead. + * + * @generated from message dapr.proto.runtime.v1.ConversationMessageContent + */ +export declare type ConversationMessageContent = Message<"dapr.proto.runtime.v1.ConversationMessageContent"> & { + /** + * @generated from field: string text = 1; + */ + text: string; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationMessageContent. + * Use `create(ConversationMessageContentSchema)` to create a new message. + */ +export declare const ConversationMessageContentSchema: GenMessage; + +/** + * ConversationResult is the result for one input. + * + * @generated from message dapr.proto.runtime.v1.ConversationResult + * @deprecated + */ +export declare type ConversationResult = Message<"dapr.proto.runtime.v1.ConversationResult"> & { + /** + * Result for the one conversation input. + * + * @generated from field: string result = 1; + */ + result: string; + + /** + * Parameters for all custom fields. + * + * @generated from field: map parameters = 2; + */ + parameters: { [key: string]: Any }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationResult. + * Use `create(ConversationResultSchema)` to create a new message. + * @deprecated + */ +export declare const ConversationResultSchema: GenMessage; + +/** + * inspired by openai.ChatCompletion + * ConversationResultAlpha2 is the result for one input. + * + * @generated from message dapr.proto.runtime.v1.ConversationResultAlpha2 + */ +export declare type ConversationResultAlpha2 = Message<"dapr.proto.runtime.v1.ConversationResultAlpha2"> & { + /** + * Result for the conversation input. + * + * @generated from field: repeated dapr.proto.runtime.v1.ConversationResultChoices choices = 1; + */ + choices: ConversationResultChoices[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationResultAlpha2. + * Use `create(ConversationResultAlpha2Schema)` to create a new message. + */ +export declare const ConversationResultAlpha2Schema: GenMessage; + +/** + * inspired by openai.ChatCompletionChoice + * based on https://github.com/openai/openai-go/blob/main/chatcompletion.go#L226 + * + * @generated from message dapr.proto.runtime.v1.ConversationResultChoices + */ +export declare type ConversationResultChoices = Message<"dapr.proto.runtime.v1.ConversationResultChoices"> & { + /** + * The reason the model stopped generating tokens. This will be `stop` if the model + * hit a natural stop point or a provided stop sequence, `length` if the maximum + * number of tokens specified in the request was reached, `content_filter` if + * content was omitted due to a flag from our content filters, `tool_calls` if the + * model called a tool. + * Any of "stop", "length", "tool_calls", "content_filter". + * + * @generated from field: string finish_reason = 1; + */ + finishReason: string; + + /** + * The index of the choice in the list of choices. + * + * @generated from field: int64 index = 2; + */ + index: bigint; + + /** + * @generated from field: dapr.proto.runtime.v1.ConversationResultMessage message = 3; + */ + message?: ConversationResultMessage; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationResultChoices. + * Use `create(ConversationResultChoicesSchema)` to create a new message. + */ +export declare const ConversationResultChoicesSchema: GenMessage; + +/** + * inspired by openai.ChatCompletionMessage + * based on https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1218C6-L1218C27 + * + * @generated from message dapr.proto.runtime.v1.ConversationResultMessage + */ +export declare type ConversationResultMessage = Message<"dapr.proto.runtime.v1.ConversationResultMessage"> & { + /** + * The contents of the message. + * + * @generated from field: string content = 1; + */ + content: string; + + /** + * The tool calls generated by the model. + * + * @generated from field: repeated dapr.proto.runtime.v1.ConversationToolCalls tool_calls = 2; + */ + toolCalls: ConversationToolCalls[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationResultMessage. + * Use `create(ConversationResultMessageSchema)` to create a new message. + */ +export declare const ConversationResultMessageSchema: GenMessage; + +/** + * ConversationResponse is the response for Conversation. + * + * @generated from message dapr.proto.runtime.v1.ConversationResponse + * @deprecated + */ +export declare type ConversationResponse = Message<"dapr.proto.runtime.v1.ConversationResponse"> & { + /** + * The ID of an existing chat (like in ChatGPT) + * + * @generated from field: optional string contextID = 1; + */ + contextID?: string; + + /** + * An array of results. + * + * @generated from field: repeated dapr.proto.runtime.v1.ConversationResult outputs = 2; + */ + outputs: ConversationResult[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationResponse. + * Use `create(ConversationResponseSchema)` to create a new message. + * @deprecated + */ +export declare const ConversationResponseSchema: GenMessage; + +/** + * ConversationResponseAlpha2 is the Alpha2 response for Conversation. + * + * @generated from message dapr.proto.runtime.v1.ConversationResponseAlpha2 + */ +export declare type ConversationResponseAlpha2 = Message<"dapr.proto.runtime.v1.ConversationResponseAlpha2"> & { + /** + * The ID of an existing chat (like in ChatGPT) + * + * @generated from field: optional string context_id = 1; + */ + contextId?: string; + + /** + * An array of results. + * + * @generated from field: repeated dapr.proto.runtime.v1.ConversationResultAlpha2 outputs = 2; + */ + outputs: ConversationResultAlpha2[]; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationResponseAlpha2. + * Use `create(ConversationResponseAlpha2Schema)` to create a new message. + */ +export declare const ConversationResponseAlpha2Schema: GenMessage; + +/** + * ConversationTools are the typed tools available to be called. + * inspired by openai.ChatCompletionToolParam + * https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1950 + * + * @generated from message dapr.proto.runtime.v1.ConversationTools + */ +export declare type ConversationTools = Message<"dapr.proto.runtime.v1.ConversationTools"> & { + /** + * @generated from oneof dapr.proto.runtime.v1.ConversationTools.tool_types + */ + toolTypes: { + /** + * @generated from field: dapr.proto.runtime.v1.ConversationToolsFunction function = 1; + */ + value: ConversationToolsFunction; + case: "function"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationTools. + * Use `create(ConversationToolsSchema)` to create a new message. + */ +export declare const ConversationToolsSchema: GenMessage; + +/** + * ConversationToolsFunction is the main tool type to be used in a conversation. + * inspired by openai.FunctionDefinitionParam + * https://pkg.go.dev/github.com/openai/openai-go/shared#FunctionDefinitionParam + * + * @generated from message dapr.proto.runtime.v1.ConversationToolsFunction + */ +export declare type ConversationToolsFunction = Message<"dapr.proto.runtime.v1.ConversationToolsFunction"> & { + /** + * The name of the function to be called. + * + * @generated from field: string name = 1; + */ + name: string; + + /** + * A description of what the function does, + * used by the model to choose when and how to call the function. + * + * @generated from field: optional string description = 2; + */ + description?: string; + + /** + * The parameters the functions accepts, described as a JSON Schema object. + * See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, + * and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. + * Omitting `parameters` defines a function with an empty parameter list. + * + * @generated from field: google.protobuf.Struct parameters = 3; + */ + parameters?: JsonObject; +}; + +/** + * Describes the message dapr.proto.runtime.v1.ConversationToolsFunction. + * Use `create(ConversationToolsFunctionSchema)` to create a new message. + */ +export declare const ConversationToolsFunctionSchema: GenMessage; + +/** + * PubsubSubscriptionType indicates the type of subscription + * + * @generated from enum dapr.proto.runtime.v1.PubsubSubscriptionType + */ export enum PubsubSubscriptionType { - UNKNOWN = 0, - DECLARATIVE = 1, - PROGRAMMATIC = 2, - STREAMING = 3, -} + /** + * UNKNOWN is the default value for the subscription type. + * + * @generated from enum value: UNKNOWN = 0; + */ + UNKNOWN = 0, + + /** + * Declarative subscription (k8s CRD) + * + * @generated from enum value: DECLARATIVE = 1; + */ + DECLARATIVE = 1, + + /** + * Programmatically created subscription + * + * @generated from enum value: PROGRAMMATIC = 2; + */ + PROGRAMMATIC = 2, + + /** + * Bidirectional Streaming subscription + * + * @generated from enum value: STREAMING = 3; + */ + STREAMING = 3, +} + +/** + * Describes the enum dapr.proto.runtime.v1.PubsubSubscriptionType. + */ +export declare const PubsubSubscriptionTypeSchema: GenEnum; + +/** + * Dapr service provides APIs to user application to access Dapr building blocks. + * + * @generated from service dapr.proto.runtime.v1.Dapr + */ +export declare const Dapr: GenService<{ + /** + * Invokes a method on a remote Dapr app. + * Deprecated: Use proxy mode service invocation instead. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.InvokeService + */ + invokeService: { + methodKind: "unary"; + input: typeof InvokeServiceRequestSchema; + output: typeof InvokeResponseSchema; + }, + /** + * Gets the state for a specific key. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.GetState + */ + getState: { + methodKind: "unary"; + input: typeof GetStateRequestSchema; + output: typeof GetStateResponseSchema; + }, + /** + * Gets a bulk of state items for a list of keys + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.GetBulkState + */ + getBulkState: { + methodKind: "unary"; + input: typeof GetBulkStateRequestSchema; + output: typeof GetBulkStateResponseSchema; + }, + /** + * Saves the state for a specific key. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SaveState + */ + saveState: { + methodKind: "unary"; + input: typeof SaveStateRequestSchema; + output: typeof EmptySchema; + }, + /** + * Queries the state. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.QueryStateAlpha1 + */ + queryStateAlpha1: { + methodKind: "unary"; + input: typeof QueryStateRequestSchema; + output: typeof QueryStateResponseSchema; + }, + /** + * Deletes the state for a specific key. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.DeleteState + */ + deleteState: { + methodKind: "unary"; + input: typeof DeleteStateRequestSchema; + output: typeof EmptySchema; + }, + /** + * Deletes a bulk of state items for a list of keys + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.DeleteBulkState + */ + deleteBulkState: { + methodKind: "unary"; + input: typeof DeleteBulkStateRequestSchema; + output: typeof EmptySchema; + }, + /** + * Executes transactions for a specified store + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.ExecuteStateTransaction + */ + executeStateTransaction: { + methodKind: "unary"; + input: typeof ExecuteStateTransactionRequestSchema; + output: typeof EmptySchema; + }, + /** + * Publishes events to the specific topic. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.PublishEvent + */ + publishEvent: { + methodKind: "unary"; + input: typeof PublishEventRequestSchema; + output: typeof EmptySchema; + }, + /** + * Bulk Publishes multiple events to the specified topic. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.BulkPublishEventAlpha1 + */ + bulkPublishEventAlpha1: { + methodKind: "unary"; + input: typeof BulkPublishRequestSchema; + output: typeof BulkPublishResponseSchema; + }, + /** + * SubscribeTopicEventsAlpha1 subscribes to a PubSub topic and receives topic + * events from it. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SubscribeTopicEventsAlpha1 + */ + subscribeTopicEventsAlpha1: { + methodKind: "bidi_streaming"; + input: typeof SubscribeTopicEventsRequestAlpha1Schema; + output: typeof SubscribeTopicEventsResponseAlpha1Schema; + }, + /** + * Invokes binding data to specific output bindings + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.InvokeBinding + */ + invokeBinding: { + methodKind: "unary"; + input: typeof InvokeBindingRequestSchema; + output: typeof InvokeBindingResponseSchema; + }, + /** + * Gets secrets from secret stores. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.GetSecret + */ + getSecret: { + methodKind: "unary"; + input: typeof GetSecretRequestSchema; + output: typeof GetSecretResponseSchema; + }, + /** + * Gets a bulk of secrets + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.GetBulkSecret + */ + getBulkSecret: { + methodKind: "unary"; + input: typeof GetBulkSecretRequestSchema; + output: typeof GetBulkSecretResponseSchema; + }, + /** + * Register an actor timer. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.RegisterActorTimer + */ + registerActorTimer: { + methodKind: "unary"; + input: typeof RegisterActorTimerRequestSchema; + output: typeof EmptySchema; + }, + /** + * Unregister an actor timer. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.UnregisterActorTimer + */ + unregisterActorTimer: { + methodKind: "unary"; + input: typeof UnregisterActorTimerRequestSchema; + output: typeof EmptySchema; + }, + /** + * Register an actor reminder. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.RegisterActorReminder + */ + registerActorReminder: { + methodKind: "unary"; + input: typeof RegisterActorReminderRequestSchema; + output: typeof EmptySchema; + }, + /** + * Unregister an actor reminder. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.UnregisterActorReminder + */ + unregisterActorReminder: { + methodKind: "unary"; + input: typeof UnregisterActorReminderRequestSchema; + output: typeof EmptySchema; + }, + /** + * Gets the state for a specific actor. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.GetActorState + */ + getActorState: { + methodKind: "unary"; + input: typeof GetActorStateRequestSchema; + output: typeof GetActorStateResponseSchema; + }, + /** + * Executes state transactions for a specified actor + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.ExecuteActorStateTransaction + */ + executeActorStateTransaction: { + methodKind: "unary"; + input: typeof ExecuteActorStateTransactionRequestSchema; + output: typeof EmptySchema; + }, + /** + * InvokeActor calls a method on an actor. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.InvokeActor + */ + invokeActor: { + methodKind: "unary"; + input: typeof InvokeActorRequestSchema; + output: typeof InvokeActorResponseSchema; + }, + /** + * GetConfiguration gets configuration from configuration store. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.GetConfigurationAlpha1 + */ + getConfigurationAlpha1: { + methodKind: "unary"; + input: typeof GetConfigurationRequestSchema; + output: typeof GetConfigurationResponseSchema; + }, + /** + * GetConfiguration gets configuration from configuration store. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.GetConfiguration + */ + getConfiguration: { + methodKind: "unary"; + input: typeof GetConfigurationRequestSchema; + output: typeof GetConfigurationResponseSchema; + }, + /** + * SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SubscribeConfigurationAlpha1 + */ + subscribeConfigurationAlpha1: { + methodKind: "server_streaming"; + input: typeof SubscribeConfigurationRequestSchema; + output: typeof SubscribeConfigurationResponseSchema; + }, + /** + * SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SubscribeConfiguration + */ + subscribeConfiguration: { + methodKind: "server_streaming"; + input: typeof SubscribeConfigurationRequestSchema; + output: typeof SubscribeConfigurationResponseSchema; + }, + /** + * UnSubscribeConfiguration unsubscribe the subscription of configuration + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.UnsubscribeConfigurationAlpha1 + */ + unsubscribeConfigurationAlpha1: { + methodKind: "unary"; + input: typeof UnsubscribeConfigurationRequestSchema; + output: typeof UnsubscribeConfigurationResponseSchema; + }, + /** + * UnSubscribeConfiguration unsubscribe the subscription of configuration + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.UnsubscribeConfiguration + */ + unsubscribeConfiguration: { + methodKind: "unary"; + input: typeof UnsubscribeConfigurationRequestSchema; + output: typeof UnsubscribeConfigurationResponseSchema; + }, + /** + * TryLockAlpha1 tries to get a lock with an expiry. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.TryLockAlpha1 + */ + tryLockAlpha1: { + methodKind: "unary"; + input: typeof TryLockRequestSchema; + output: typeof TryLockResponseSchema; + }, + /** + * UnlockAlpha1 unlocks a lock. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.UnlockAlpha1 + */ + unlockAlpha1: { + methodKind: "unary"; + input: typeof UnlockRequestSchema; + output: typeof UnlockResponseSchema; + }, + /** + * EncryptAlpha1 encrypts a message using the Dapr encryption scheme and a key stored in the vault. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.EncryptAlpha1 + */ + encryptAlpha1: { + methodKind: "bidi_streaming"; + input: typeof EncryptRequestSchema; + output: typeof EncryptResponseSchema; + }, + /** + * DecryptAlpha1 decrypts a message using the Dapr encryption scheme and a key stored in the vault. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.DecryptAlpha1 + */ + decryptAlpha1: { + methodKind: "bidi_streaming"; + input: typeof DecryptRequestSchema; + output: typeof DecryptResponseSchema; + }, + /** + * Gets metadata of the sidecar + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.GetMetadata + */ + getMetadata: { + methodKind: "unary"; + input: typeof GetMetadataRequestSchema; + output: typeof GetMetadataResponseSchema; + }, + /** + * Sets value in extended metadata of the sidecar + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SetMetadata + */ + setMetadata: { + methodKind: "unary"; + input: typeof SetMetadataRequestSchema; + output: typeof EmptySchema; + }, + /** + * SubtleGetKeyAlpha1 returns the public part of an asymmetric key stored in the vault. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleGetKeyAlpha1 + */ + subtleGetKeyAlpha1: { + methodKind: "unary"; + input: typeof SubtleGetKeyRequestSchema; + output: typeof SubtleGetKeyResponseSchema; + }, + /** + * SubtleEncryptAlpha1 encrypts a small message using a key stored in the vault. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleEncryptAlpha1 + */ + subtleEncryptAlpha1: { + methodKind: "unary"; + input: typeof SubtleEncryptRequestSchema; + output: typeof SubtleEncryptResponseSchema; + }, + /** + * SubtleDecryptAlpha1 decrypts a small message using a key stored in the vault. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleDecryptAlpha1 + */ + subtleDecryptAlpha1: { + methodKind: "unary"; + input: typeof SubtleDecryptRequestSchema; + output: typeof SubtleDecryptResponseSchema; + }, + /** + * SubtleWrapKeyAlpha1 wraps a key using a key stored in the vault. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleWrapKeyAlpha1 + */ + subtleWrapKeyAlpha1: { + methodKind: "unary"; + input: typeof SubtleWrapKeyRequestSchema; + output: typeof SubtleWrapKeyResponseSchema; + }, + /** + * SubtleUnwrapKeyAlpha1 unwraps a key using a key stored in the vault. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleUnwrapKeyAlpha1 + */ + subtleUnwrapKeyAlpha1: { + methodKind: "unary"; + input: typeof SubtleUnwrapKeyRequestSchema; + output: typeof SubtleUnwrapKeyResponseSchema; + }, + /** + * SubtleSignAlpha1 signs a message using a key stored in the vault. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleSignAlpha1 + */ + subtleSignAlpha1: { + methodKind: "unary"; + input: typeof SubtleSignRequestSchema; + output: typeof SubtleSignResponseSchema; + }, + /** + * SubtleVerifyAlpha1 verifies the signature of a message using a key stored in the vault. + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleVerifyAlpha1 + */ + subtleVerifyAlpha1: { + methodKind: "unary"; + input: typeof SubtleVerifyRequestSchema; + output: typeof SubtleVerifyResponseSchema; + }, + /** + * Starts a new instance of a workflow + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.StartWorkflowAlpha1 + * @deprecated + */ + startWorkflowAlpha1: { + methodKind: "unary"; + input: typeof StartWorkflowRequestSchema; + output: typeof StartWorkflowResponseSchema; + }, + /** + * Gets details about a started workflow instance + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.GetWorkflowAlpha1 + * @deprecated + */ + getWorkflowAlpha1: { + methodKind: "unary"; + input: typeof GetWorkflowRequestSchema; + output: typeof GetWorkflowResponseSchema; + }, + /** + * Purge Workflow + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.PurgeWorkflowAlpha1 + * @deprecated + */ + purgeWorkflowAlpha1: { + methodKind: "unary"; + input: typeof PurgeWorkflowRequestSchema; + output: typeof EmptySchema; + }, + /** + * Terminates a running workflow instance + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.TerminateWorkflowAlpha1 + * @deprecated + */ + terminateWorkflowAlpha1: { + methodKind: "unary"; + input: typeof TerminateWorkflowRequestSchema; + output: typeof EmptySchema; + }, + /** + * Pauses a running workflow instance + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.PauseWorkflowAlpha1 + * @deprecated + */ + pauseWorkflowAlpha1: { + methodKind: "unary"; + input: typeof PauseWorkflowRequestSchema; + output: typeof EmptySchema; + }, + /** + * Resumes a paused workflow instance + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.ResumeWorkflowAlpha1 + * @deprecated + */ + resumeWorkflowAlpha1: { + methodKind: "unary"; + input: typeof ResumeWorkflowRequestSchema; + output: typeof EmptySchema; + }, + /** + * Raise an event to a running workflow instance + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.RaiseEventWorkflowAlpha1 + * @deprecated + */ + raiseEventWorkflowAlpha1: { + methodKind: "unary"; + input: typeof RaiseEventWorkflowRequestSchema; + output: typeof EmptySchema; + }, + /** + * Starts a new instance of a workflow + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.StartWorkflowBeta1 + */ + startWorkflowBeta1: { + methodKind: "unary"; + input: typeof StartWorkflowRequestSchema; + output: typeof StartWorkflowResponseSchema; + }, + /** + * Gets details about a started workflow instance + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.GetWorkflowBeta1 + */ + getWorkflowBeta1: { + methodKind: "unary"; + input: typeof GetWorkflowRequestSchema; + output: typeof GetWorkflowResponseSchema; + }, + /** + * Purge Workflow + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.PurgeWorkflowBeta1 + */ + purgeWorkflowBeta1: { + methodKind: "unary"; + input: typeof PurgeWorkflowRequestSchema; + output: typeof EmptySchema; + }, + /** + * Terminates a running workflow instance + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.TerminateWorkflowBeta1 + */ + terminateWorkflowBeta1: { + methodKind: "unary"; + input: typeof TerminateWorkflowRequestSchema; + output: typeof EmptySchema; + }, + /** + * Pauses a running workflow instance + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.PauseWorkflowBeta1 + */ + pauseWorkflowBeta1: { + methodKind: "unary"; + input: typeof PauseWorkflowRequestSchema; + output: typeof EmptySchema; + }, + /** + * Resumes a paused workflow instance + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.ResumeWorkflowBeta1 + */ + resumeWorkflowBeta1: { + methodKind: "unary"; + input: typeof ResumeWorkflowRequestSchema; + output: typeof EmptySchema; + }, + /** + * Raise an event to a running workflow instance + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.RaiseEventWorkflowBeta1 + */ + raiseEventWorkflowBeta1: { + methodKind: "unary"; + input: typeof RaiseEventWorkflowRequestSchema; + output: typeof EmptySchema; + }, + /** + * Shutdown the sidecar + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.Shutdown + */ + shutdown: { + methodKind: "unary"; + input: typeof ShutdownRequestSchema; + output: typeof EmptySchema; + }, + /** + * Create and schedule a job + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.ScheduleJobAlpha1 + */ + scheduleJobAlpha1: { + methodKind: "unary"; + input: typeof ScheduleJobRequestSchema; + output: typeof ScheduleJobResponseSchema; + }, + /** + * Gets a scheduled job + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.GetJobAlpha1 + */ + getJobAlpha1: { + methodKind: "unary"; + input: typeof GetJobRequestSchema; + output: typeof GetJobResponseSchema; + }, + /** + * Delete a job + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.DeleteJobAlpha1 + */ + deleteJobAlpha1: { + methodKind: "unary"; + input: typeof DeleteJobRequestSchema; + output: typeof DeleteJobResponseSchema; + }, + /** + * Converse with a LLM service + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.ConverseAlpha1 + */ + converseAlpha1: { + methodKind: "unary"; + input: typeof ConversationRequestSchema; + output: typeof ConversationResponseSchema; + }, + /** + * Converse with a LLM service via alpha2 api + * + * @generated from rpc dapr.proto.runtime.v1.Dapr.ConverseAlpha2 + */ + converseAlpha2: { + methodKind: "unary"; + input: typeof ConversationRequestAlpha2Schema; + output: typeof ConversationResponseAlpha2Schema; + }, +}>; + diff --git a/src/proto/dapr/proto/runtime/v1/dapr_pb.js b/src/proto/dapr/proto/runtime/v1/dapr_pb.js index b995caf1..bd9911cf 100644 --- a/src/proto/dapr/proto/runtime/v1/dapr_pb.js +++ b/src/proto/dapr/proto/runtime/v1/dapr_pb.js @@ -1,22993 +1,943 @@ -// source: dapr/proto/runtime/v1/dapr.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 = - (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 google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -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); -goog.exportSymbol('proto.dapr.proto.runtime.v1.AppConnectionHealthProperties', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.AppConnectionProperties', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.BulkPublishRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.BulkPublishRequestEntry', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.BulkPublishResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.BulkStateItem', null, global); -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); -goog.exportSymbol('proto.dapr.proto.runtime.v1.EncryptResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetActorStateRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetActorStateResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetBulkSecretRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetBulkSecretResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetBulkStateRequest', null, global); -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); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetSecretResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetStateRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetStateResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetWorkflowRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetWorkflowResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.InvokeActorRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.InvokeActorResponse', null, global); -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); -goog.exportSymbol('proto.dapr.proto.runtime.v1.QueryStateResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.RegisterActorReminderRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.RegisterActorTimerRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.RegisteredComponents', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.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); -goog.exportSymbol('proto.dapr.proto.runtime.v1.StartWorkflowRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.StartWorkflowResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest', null, global); -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); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleEncryptResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleGetKeyRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleGetKeyResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleSignRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleSignResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleVerifyRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleVerifyResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TerminateWorkflowRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TransactionalActorStateOperation', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TransactionalStateOperation', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TryLockRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TryLockResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.UnlockRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.UnlockResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.UnlockResponse.Status', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse', 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.InvokeServiceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.InvokeServiceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.InvokeServiceRequest.displayName = 'proto.dapr.proto.runtime.v1.InvokeServiceRequest'; -} -/** - * 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.GetStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetStateRequest.displayName = 'proto.dapr.proto.runtime.v1.GetStateRequest'; -} -/** - * 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.GetBulkStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.GetBulkStateRequest.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetBulkStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetBulkStateRequest.displayName = 'proto.dapr.proto.runtime.v1.GetBulkStateRequest'; -} -/** - * 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.GetBulkStateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.GetBulkStateResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetBulkStateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetBulkStateResponse.displayName = 'proto.dapr.proto.runtime.v1.GetBulkStateResponse'; -} -/** - * 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.BulkStateItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.BulkStateItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.BulkStateItem.displayName = 'proto.dapr.proto.runtime.v1.BulkStateItem'; -} -/** - * 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.GetStateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetStateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetStateResponse.displayName = 'proto.dapr.proto.runtime.v1.GetStateResponse'; -} -/** - * 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.DeleteStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.DeleteStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.DeleteStateRequest.displayName = 'proto.dapr.proto.runtime.v1.DeleteStateRequest'; -} -/** - * 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.DeleteBulkStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.DeleteBulkStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.displayName = 'proto.dapr.proto.runtime.v1.DeleteBulkStateRequest'; -} -/** - * 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.SaveStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.SaveStateRequest.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SaveStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SaveStateRequest.displayName = 'proto.dapr.proto.runtime.v1.SaveStateRequest'; -} -/** - * 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.QueryStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.QueryStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.QueryStateRequest.displayName = 'proto.dapr.proto.runtime.v1.QueryStateRequest'; -} -/** - * 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.QueryStateItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.QueryStateItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.QueryStateItem.displayName = 'proto.dapr.proto.runtime.v1.QueryStateItem'; -} -/** - * 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.QueryStateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.QueryStateResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.QueryStateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.QueryStateResponse.displayName = 'proto.dapr.proto.runtime.v1.QueryStateResponse'; -} -/** - * 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.PublishEventRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.PublishEventRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.PublishEventRequest.displayName = 'proto.dapr.proto.runtime.v1.PublishEventRequest'; -} -/** - * 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.BulkPublishRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.BulkPublishRequest.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.BulkPublishRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.BulkPublishRequest.displayName = 'proto.dapr.proto.runtime.v1.BulkPublishRequest'; -} -/** - * 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.BulkPublishRequestEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.BulkPublishRequestEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.displayName = 'proto.dapr.proto.runtime.v1.BulkPublishRequestEntry'; -} -/** - * 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.BulkPublishResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.BulkPublishResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.BulkPublishResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.BulkPublishResponse.displayName = 'proto.dapr.proto.runtime.v1.BulkPublishResponse'; -} -/** - * 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.BulkPublishResponseFailedEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.InvokeBindingRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.InvokeBindingRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.InvokeBindingRequest.displayName = 'proto.dapr.proto.runtime.v1.InvokeBindingRequest'; -} -/** - * 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.InvokeBindingResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.InvokeBindingResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.InvokeBindingResponse.displayName = 'proto.dapr.proto.runtime.v1.InvokeBindingResponse'; -} -/** - * 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.GetSecretRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetSecretRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetSecretRequest.displayName = 'proto.dapr.proto.runtime.v1.GetSecretRequest'; -} -/** - * 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.GetSecretResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetSecretResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetSecretResponse.displayName = 'proto.dapr.proto.runtime.v1.GetSecretResponse'; -} -/** - * 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.GetBulkSecretRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetBulkSecretRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetBulkSecretRequest.displayName = 'proto.dapr.proto.runtime.v1.GetBulkSecretRequest'; -} -/** - * 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.SecretResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SecretResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SecretResponse.displayName = 'proto.dapr.proto.runtime.v1.SecretResponse'; -} -/** - * 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.GetBulkSecretResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetBulkSecretResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetBulkSecretResponse.displayName = 'proto.dapr.proto.runtime.v1.GetBulkSecretResponse'; -} -/** - * 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.TransactionalStateOperation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TransactionalStateOperation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TransactionalStateOperation.displayName = 'proto.dapr.proto.runtime.v1.TransactionalStateOperation'; -} -/** - * 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.ExecuteStateTransactionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.displayName = 'proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest'; -} -/** - * 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.RegisterActorTimerRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.RegisterActorTimerRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.displayName = 'proto.dapr.proto.runtime.v1.RegisterActorTimerRequest'; -} -/** - * 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.UnregisterActorTimerRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.displayName = 'proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest'; -} -/** - * 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.RegisterActorReminderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.RegisterActorReminderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.displayName = 'proto.dapr.proto.runtime.v1.RegisterActorReminderRequest'; -} -/** - * 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.UnregisterActorReminderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.displayName = 'proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.dapr.proto.runtime.v1.GetActorStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetActorStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetActorStateRequest.displayName = 'proto.dapr.proto.runtime.v1.GetActorStateRequest'; -} -/** - * 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.GetActorStateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetActorStateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetActorStateResponse.displayName = 'proto.dapr.proto.runtime.v1.GetActorStateResponse'; -} -/** - * 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.ExecuteActorStateTransactionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.displayName = 'proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest'; -} -/** - * 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.TransactionalActorStateOperation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TransactionalActorStateOperation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.displayName = 'proto.dapr.proto.runtime.v1.TransactionalActorStateOperation'; -} -/** - * 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.InvokeActorRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.InvokeActorRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.InvokeActorRequest.displayName = 'proto.dapr.proto.runtime.v1.InvokeActorRequest'; -} -/** - * 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.InvokeActorResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.InvokeActorResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.InvokeActorResponse.displayName = 'proto.dapr.proto.runtime.v1.InvokeActorResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.dapr.proto.runtime.v1.GetMetadataRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetMetadataRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetMetadataRequest.displayName = 'proto.dapr.proto.runtime.v1.GetMetadataRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * 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.GetMetadataResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.GetMetadataResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetMetadataResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetMetadataResponse.displayName = 'proto.dapr.proto.runtime.v1.GetMetadataResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.dapr.proto.runtime.v1.ActorRuntime = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ActorRuntime.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ActorRuntime, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ActorRuntime.displayName = 'proto.dapr.proto.runtime.v1.ActorRuntime'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * 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.ActiveActorsCount = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ActiveActorsCount, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ActiveActorsCount.displayName = 'proto.dapr.proto.runtime.v1.ActiveActorsCount'; -} -/** - * 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.RegisteredComponents = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.RegisteredComponents.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.RegisteredComponents, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.RegisteredComponents.displayName = 'proto.dapr.proto.runtime.v1.RegisteredComponents'; -} -/** - * 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.MetadataHTTPEndpoint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint.displayName = 'proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint'; -} -/** - * 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.AppConnectionProperties = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.AppConnectionProperties, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.AppConnectionProperties.displayName = 'proto.dapr.proto.runtime.v1.AppConnectionProperties'; -} -/** - * 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.AppConnectionHealthProperties = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.AppConnectionHealthProperties, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.AppConnectionHealthProperties.displayName = 'proto.dapr.proto.runtime.v1.AppConnectionHealthProperties'; -} -/** - * 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.PubsubSubscription = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.PubsubSubscription, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.PubsubSubscription.displayName = 'proto.dapr.proto.runtime.v1.PubsubSubscription'; -} -/** - * 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.PubsubSubscriptionRules = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.PubsubSubscriptionRules, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.displayName = 'proto.dapr.proto.runtime.v1.PubsubSubscriptionRules'; -} -/** - * 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.PubsubSubscriptionRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.PubsubSubscriptionRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.displayName = 'proto.dapr.proto.runtime.v1.PubsubSubscriptionRule'; -} -/** - * 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.SetMetadataRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SetMetadataRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SetMetadataRequest.displayName = 'proto.dapr.proto.runtime.v1.SetMetadataRequest'; -} -/** - * 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.GetConfigurationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.GetConfigurationRequest.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetConfigurationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetConfigurationRequest.displayName = 'proto.dapr.proto.runtime.v1.GetConfigurationRequest'; -} -/** - * 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.GetConfigurationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetConfigurationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetConfigurationResponse.displayName = 'proto.dapr.proto.runtime.v1.GetConfigurationResponse'; -} -/** - * 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.SubscribeConfigurationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.displayName = 'proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest'; -} -/** - * 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.UnsubscribeConfigurationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.displayName = 'proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest'; -} -/** - * 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.SubscribeConfigurationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.displayName = 'proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse'; -} -/** - * 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.UnsubscribeConfigurationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.displayName = 'proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse'; -} -/** - * 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.TryLockRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TryLockRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TryLockRequest.displayName = 'proto.dapr.proto.runtime.v1.TryLockRequest'; -} -/** - * 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.TryLockResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TryLockResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TryLockResponse.displayName = 'proto.dapr.proto.runtime.v1.TryLockResponse'; -} -/** - * 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.UnlockRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.UnlockRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.UnlockRequest.displayName = 'proto.dapr.proto.runtime.v1.UnlockRequest'; -} -/** - * 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.UnlockResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.UnlockResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.UnlockResponse.displayName = 'proto.dapr.proto.runtime.v1.UnlockResponse'; -} -/** - * 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.SubtleGetKeyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleGetKeyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.displayName = 'proto.dapr.proto.runtime.v1.SubtleGetKeyRequest'; -} -/** - * 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.SubtleGetKeyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleGetKeyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.displayName = 'proto.dapr.proto.runtime.v1.SubtleGetKeyResponse'; -} -/** - * 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.SubtleEncryptRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleEncryptRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleEncryptRequest.displayName = 'proto.dapr.proto.runtime.v1.SubtleEncryptRequest'; -} -/** - * 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.SubtleEncryptResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleEncryptResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleEncryptResponse.displayName = 'proto.dapr.proto.runtime.v1.SubtleEncryptResponse'; -} -/** - * 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.SubtleDecryptRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleDecryptRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleDecryptRequest.displayName = 'proto.dapr.proto.runtime.v1.SubtleDecryptRequest'; -} -/** - * 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.SubtleDecryptResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleDecryptResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleDecryptResponse.displayName = 'proto.dapr.proto.runtime.v1.SubtleDecryptResponse'; -} -/** - * 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.SubtleWrapKeyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.displayName = 'proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest'; -} -/** - * 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.SubtleWrapKeyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.displayName = 'proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse'; -} -/** - * 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.SubtleUnwrapKeyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.displayName = 'proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest'; -} -/** - * 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.SubtleUnwrapKeyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.displayName = 'proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse'; -} -/** - * 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.SubtleSignRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleSignRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleSignRequest.displayName = 'proto.dapr.proto.runtime.v1.SubtleSignRequest'; -} -/** - * 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.SubtleSignResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleSignResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleSignResponse.displayName = 'proto.dapr.proto.runtime.v1.SubtleSignResponse'; -} -/** - * 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.SubtleVerifyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleVerifyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleVerifyRequest.displayName = 'proto.dapr.proto.runtime.v1.SubtleVerifyRequest'; -} -/** - * 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.SubtleVerifyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.SubtleVerifyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.SubtleVerifyResponse.displayName = 'proto.dapr.proto.runtime.v1.SubtleVerifyResponse'; -} -/** - * 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.EncryptRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.EncryptRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.EncryptRequest.displayName = 'proto.dapr.proto.runtime.v1.EncryptRequest'; -} -/** - * 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.EncryptRequestOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.EncryptRequestOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.EncryptRequestOptions.displayName = 'proto.dapr.proto.runtime.v1.EncryptRequestOptions'; -} -/** - * 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.EncryptResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.EncryptResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.EncryptResponse.displayName = 'proto.dapr.proto.runtime.v1.EncryptResponse'; -} -/** - * 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.DecryptRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.DecryptRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.DecryptRequest.displayName = 'proto.dapr.proto.runtime.v1.DecryptRequest'; -} -/** - * 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.DecryptRequestOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.DecryptRequestOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.DecryptRequestOptions.displayName = 'proto.dapr.proto.runtime.v1.DecryptRequestOptions'; -} -/** - * 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.DecryptResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.DecryptResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.DecryptResponse.displayName = 'proto.dapr.proto.runtime.v1.DecryptResponse'; -} -/** - * 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.GetWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetWorkflowRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetWorkflowRequest.displayName = 'proto.dapr.proto.runtime.v1.GetWorkflowRequest'; -} -/** - * 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.GetWorkflowResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetWorkflowResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetWorkflowResponse.displayName = 'proto.dapr.proto.runtime.v1.GetWorkflowResponse'; -} -/** - * 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.StartWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.StartWorkflowRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.StartWorkflowRequest.displayName = 'proto.dapr.proto.runtime.v1.StartWorkflowRequest'; -} -/** - * 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.StartWorkflowResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.StartWorkflowResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.StartWorkflowResponse.displayName = 'proto.dapr.proto.runtime.v1.StartWorkflowResponse'; -} -/** - * 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.TerminateWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.TerminateWorkflowRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.displayName = 'proto.dapr.proto.runtime.v1.TerminateWorkflowRequest'; -} -/** - * 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.PauseWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.PauseWorkflowRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.PauseWorkflowRequest.displayName = 'proto.dapr.proto.runtime.v1.PauseWorkflowRequest'; -} -/** - * 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.ResumeWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ResumeWorkflowRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.displayName = 'proto.dapr.proto.runtime.v1.ResumeWorkflowRequest'; -} -/** - * 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.RaiseEventWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.displayName = 'proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest'; -} -/** - * 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.PurgeWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.PurgeWorkflowRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.displayName = 'proto.dapr.proto.runtime.v1.PurgeWorkflowRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.dapr.proto.runtime.v1.ShutdownRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ShutdownRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ShutdownRequest.displayName = 'proto.dapr.proto.runtime.v1.ShutdownRequest'; -} -/** - * 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'; -} - - - -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.InvokeServiceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.InvokeServiceRequest.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.InvokeServiceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.InvokeServiceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - message: (f = msg.getMessage()) && dapr_proto_common_v1_common_pb.InvokeRequest.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.InvokeServiceRequest} - */ -proto.dapr.proto.runtime.v1.InvokeServiceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.InvokeServiceRequest; - return proto.dapr.proto.runtime.v1.InvokeServiceRequest.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.InvokeServiceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.InvokeServiceRequest} - */ -proto.dapr.proto.runtime.v1.InvokeServiceRequest.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 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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.InvokeServiceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.InvokeServiceRequest.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.InvokeServiceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.InvokeServiceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMessage(); - if (f != null) { - writer.writeMessage( - 3, - f, - dapr_proto_common_v1_common_pb.InvokeRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.InvokeServiceRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.InvokeServiceRequest} returns this - */ -proto.dapr.proto.runtime.v1.InvokeServiceRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional dapr.proto.common.v1.InvokeRequest message = 3; - * @return {?proto.dapr.proto.common.v1.InvokeRequest} - */ -proto.dapr.proto.runtime.v1.InvokeServiceRequest.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.runtime.v1.InvokeServiceRequest} returns this -*/ -proto.dapr.proto.runtime.v1.InvokeServiceRequest.prototype.setMessage = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.InvokeServiceRequest} returns this - */ -proto.dapr.proto.runtime.v1.InvokeServiceRequest.prototype.clearMessage = function() { - return this.setMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.InvokeServiceRequest.prototype.hasMessage = function() { - return jspb.Message.getField(this, 3) != 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.GetStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetStateRequest.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.GetStateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetStateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - consistency: jspb.Message.getFieldWithDefault(msg, 3, 0), - 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.GetStateRequest} - */ -proto.dapr.proto.runtime.v1.GetStateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetStateRequest; - return proto.dapr.proto.runtime.v1.GetStateRequest.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.GetStateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetStateRequest} - */ -proto.dapr.proto.runtime.v1.GetStateRequest.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.setKey(value); - break; - case 3: - var value = /** @type {!proto.dapr.proto.common.v1.StateOptions.StateConsistency} */ (reader.readEnum()); - msg.setConsistency(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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetStateRequest.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.GetStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetStateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStoreName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getConsistency(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string store_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetStateRequest.prototype.getStoreName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetStateRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetStateRequest.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetStateRequest.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3; - * @return {!proto.dapr.proto.common.v1.StateOptions.StateConsistency} - */ -proto.dapr.proto.runtime.v1.GetStateRequest.prototype.getConsistency = function() { - return /** @type {!proto.dapr.proto.common.v1.StateOptions.StateConsistency} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.dapr.proto.common.v1.StateOptions.StateConsistency} value - * @return {!proto.dapr.proto.runtime.v1.GetStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetStateRequest.prototype.setConsistency = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * 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.GetStateRequest.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.GetStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetStateRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.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.GetBulkStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetBulkStateRequest.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.GetBulkStateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - keysList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - parallelism: jspb.Message.getFieldWithDefault(msg, 3, 0), - 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.GetBulkStateRequest} - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetBulkStateRequest; - return proto.dapr.proto.runtime.v1.GetBulkStateRequest.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.GetBulkStateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetBulkStateRequest} - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.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.addKeys(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setParallelism(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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetBulkStateRequest.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.GetBulkStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.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.getParallelism(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string store_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.getStoreName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetBulkStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string keys = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.getKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.GetBulkStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.setKeysList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.GetBulkStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.addKeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.GetBulkStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.clearKeysList = function() { - return this.setKeysList([]); -}; - - -/** - * optional int32 parallelism = 3; - * @return {number} - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.getParallelism = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.GetBulkStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.setParallelism = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * 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.GetBulkStateRequest.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.GetBulkStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.GetBulkStateResponse.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.runtime.v1.GetBulkStateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetBulkStateResponse.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.GetBulkStateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetBulkStateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - itemsList: jspb.Message.toObjectList(msg.getItemsList(), - proto.dapr.proto.runtime.v1.BulkStateItem.toObject, includeInstance) - }; - - 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.GetBulkStateResponse} - */ -proto.dapr.proto.runtime.v1.GetBulkStateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetBulkStateResponse; - return proto.dapr.proto.runtime.v1.GetBulkStateResponse.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.GetBulkStateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetBulkStateResponse} - */ -proto.dapr.proto.runtime.v1.GetBulkStateResponse.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.BulkStateItem; - reader.readMessage(value,proto.dapr.proto.runtime.v1.BulkStateItem.deserializeBinaryFromReader); - msg.addItems(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.GetBulkStateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetBulkStateResponse.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.GetBulkStateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetBulkStateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getItemsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.runtime.v1.BulkStateItem.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated BulkStateItem items = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.GetBulkStateResponse.prototype.getItemsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.BulkStateItem, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.GetBulkStateResponse} returns this -*/ -proto.dapr.proto.runtime.v1.GetBulkStateResponse.prototype.setItemsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.BulkStateItem=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.BulkStateItem} - */ -proto.dapr.proto.runtime.v1.GetBulkStateResponse.prototype.addItems = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.BulkStateItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.GetBulkStateResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetBulkStateResponse.prototype.clearItemsList = function() { - return this.setItemsList([]); -}; - - - - - -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.BulkStateItem.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.BulkStateItem.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.BulkStateItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkStateItem.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: msg.getData_asB64(), - etag: jspb.Message.getFieldWithDefault(msg, 3, ""), - error: jspb.Message.getFieldWithDefault(msg, 4, ""), - 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.BulkStateItem} - */ -proto.dapr.proto.runtime.v1.BulkStateItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.BulkStateItem; - return proto.dapr.proto.runtime.v1.BulkStateItem.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.BulkStateItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.BulkStateItem} - */ -proto.dapr.proto.runtime.v1.BulkStateItem.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.setKey(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setEtag(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setError(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.BulkStateItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.BulkStateItem.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.BulkStateItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkStateItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getEtag(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getError(); - if (f.length > 0) { - writer.writeString( - 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 key = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.BulkStateItem.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.BulkStateItem} returns this - */ -proto.dapr.proto.runtime.v1.BulkStateItem.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes data = 2; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.BulkStateItem.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes data = 2; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.BulkStateItem.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * 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.BulkStateItem.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.BulkStateItem} returns this - */ -proto.dapr.proto.runtime.v1.BulkStateItem.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional string etag = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.BulkStateItem.prototype.getEtag = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.BulkStateItem} returns this - */ -proto.dapr.proto.runtime.v1.BulkStateItem.prototype.setEtag = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string error = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.BulkStateItem.prototype.getError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.BulkStateItem} returns this - */ -proto.dapr.proto.runtime.v1.BulkStateItem.prototype.setError = function(value) { - return jspb.Message.setProto3StringField(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.BulkStateItem.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.BulkStateItem} returns this - */ -proto.dapr.proto.runtime.v1.BulkStateItem.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.GetStateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetStateResponse.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.GetStateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetStateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - etag: jspb.Message.getFieldWithDefault(msg, 2, ""), - 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.GetStateResponse} - */ -proto.dapr.proto.runtime.v1.GetStateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetStateResponse; - return proto.dapr.proto.runtime.v1.GetStateResponse.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.GetStateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetStateResponse} - */ -proto.dapr.proto.runtime.v1.GetStateResponse.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 = /** @type {string} */ (reader.readString()); - msg.setEtag(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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetStateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetStateResponse.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.GetStateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetStateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getEtag(); - 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); - } -}; - - -/** - * optional bytes data = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.GetStateResponse.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.GetStateResponse.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.GetStateResponse.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.GetStateResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetStateResponse.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string etag = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetStateResponse.prototype.getEtag = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetStateResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetStateResponse.prototype.setEtag = 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.GetStateResponse.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.GetStateResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetStateResponse.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.DeleteStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DeleteStateRequest.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.DeleteStateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - etag: (f = msg.getEtag()) && dapr_proto_common_v1_common_pb.Etag.toObject(includeInstance, f), - options: (f = msg.getOptions()) && dapr_proto_common_v1_common_pb.StateOptions.toObject(includeInstance, f), - 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.DeleteStateRequest} - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.DeleteStateRequest; - return proto.dapr.proto.runtime.v1.DeleteStateRequest.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.DeleteStateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.DeleteStateRequest} - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.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.setKey(value); - break; - case 3: - var value = new dapr_proto_common_v1_common_pb.Etag; - reader.readMessage(value,dapr_proto_common_v1_common_pb.Etag.deserializeBinaryFromReader); - msg.setEtag(value); - break; - case 4: - var value = new dapr_proto_common_v1_common_pb.StateOptions; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StateOptions.deserializeBinaryFromReader); - msg.setOptions(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.DeleteStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.DeleteStateRequest.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.DeleteStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStoreName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getEtag(); - if (f != null) { - writer.writeMessage( - 3, - f, - dapr_proto_common_v1_common_pb.Etag.serializeBinaryToWriter - ); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 4, - f, - dapr_proto_common_v1_common_pb.StateOptions.serializeBinaryToWriter - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string store_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.getStoreName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.DeleteStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.DeleteStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional dapr.proto.common.v1.Etag etag = 3; - * @return {?proto.dapr.proto.common.v1.Etag} - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.getEtag = function() { - return /** @type{?proto.dapr.proto.common.v1.Etag} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.Etag, 3)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.Etag|undefined} value - * @return {!proto.dapr.proto.runtime.v1.DeleteStateRequest} returns this -*/ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.setEtag = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.DeleteStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.clearEtag = function() { - return this.setEtag(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.hasEtag = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional dapr.proto.common.v1.StateOptions options = 4; - * @return {?proto.dapr.proto.common.v1.StateOptions} - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.getOptions = function() { - return /** @type{?proto.dapr.proto.common.v1.StateOptions} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StateOptions, 4)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.StateOptions|undefined} value - * @return {!proto.dapr.proto.runtime.v1.DeleteStateRequest} returns this -*/ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.DeleteStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.hasOptions = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * 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.DeleteStateRequest.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.DeleteStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.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.DeleteBulkStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.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.DeleteBulkStateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - statesList: jspb.Message.toObjectList(msg.getStatesList(), - dapr_proto_common_v1_common_pb.StateItem.toObject, includeInstance) - }; - - 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.DeleteBulkStateRequest} - */ -proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.DeleteBulkStateRequest; - return proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.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.DeleteBulkStateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.DeleteBulkStateRequest} - */ -proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.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 = new dapr_proto_common_v1_common_pb.StateItem; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StateItem.deserializeBinaryFromReader); - msg.addStates(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.DeleteBulkStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.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.DeleteBulkStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStoreName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStatesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - dapr_proto_common_v1_common_pb.StateItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string store_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.prototype.getStoreName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.DeleteBulkStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated dapr.proto.common.v1.StateItem states = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.prototype.getStatesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, dapr_proto_common_v1_common_pb.StateItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.DeleteBulkStateRequest} returns this -*/ -proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.prototype.setStatesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.common.v1.StateItem=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.common.v1.StateItem} - */ -proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.prototype.addStates = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.common.v1.StateItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.DeleteBulkStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.DeleteBulkStateRequest.prototype.clearStatesList = function() { - return this.setStatesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.SaveStateRequest.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.SaveStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SaveStateRequest.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.SaveStateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SaveStateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - statesList: jspb.Message.toObjectList(msg.getStatesList(), - dapr_proto_common_v1_common_pb.StateItem.toObject, includeInstance) - }; - - 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.SaveStateRequest} - */ -proto.dapr.proto.runtime.v1.SaveStateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.SaveStateRequest; - return proto.dapr.proto.runtime.v1.SaveStateRequest.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.SaveStateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SaveStateRequest} - */ -proto.dapr.proto.runtime.v1.SaveStateRequest.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 = new dapr_proto_common_v1_common_pb.StateItem; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StateItem.deserializeBinaryFromReader); - msg.addStates(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.SaveStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SaveStateRequest.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.SaveStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SaveStateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStoreName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStatesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - dapr_proto_common_v1_common_pb.StateItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string store_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.SaveStateRequest.prototype.getStoreName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SaveStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.SaveStateRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated dapr.proto.common.v1.StateItem states = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.SaveStateRequest.prototype.getStatesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, dapr_proto_common_v1_common_pb.StateItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.SaveStateRequest} returns this -*/ -proto.dapr.proto.runtime.v1.SaveStateRequest.prototype.setStatesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.common.v1.StateItem=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.common.v1.StateItem} - */ -proto.dapr.proto.runtime.v1.SaveStateRequest.prototype.addStates = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.common.v1.StateItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.SaveStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.SaveStateRequest.prototype.clearStatesList = function() { - return this.setStatesList([]); -}; - - - - - -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.QueryStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.QueryStateRequest.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.QueryStateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.QueryStateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - query: jspb.Message.getFieldWithDefault(msg, 2, ""), - 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.QueryStateRequest} - */ -proto.dapr.proto.runtime.v1.QueryStateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.QueryStateRequest; - return proto.dapr.proto.runtime.v1.QueryStateRequest.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.QueryStateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.QueryStateRequest} - */ -proto.dapr.proto.runtime.v1.QueryStateRequest.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.setQuery(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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.QueryStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.QueryStateRequest.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.QueryStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.QueryStateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStoreName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getQuery(); - 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); - } -}; - - -/** - * optional string store_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.QueryStateRequest.prototype.getStoreName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.QueryStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.QueryStateRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string query = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.QueryStateRequest.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.QueryStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.QueryStateRequest.prototype.setQuery = 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.QueryStateRequest.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.QueryStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.QueryStateRequest.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.QueryStateItem.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.QueryStateItem.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.QueryStateItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.QueryStateItem.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: msg.getData_asB64(), - etag: jspb.Message.getFieldWithDefault(msg, 3, ""), - error: 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.QueryStateItem} - */ -proto.dapr.proto.runtime.v1.QueryStateItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.QueryStateItem; - return proto.dapr.proto.runtime.v1.QueryStateItem.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.QueryStateItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.QueryStateItem} - */ -proto.dapr.proto.runtime.v1.QueryStateItem.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.setKey(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setEtag(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setError(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.QueryStateItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.QueryStateItem.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.QueryStateItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.QueryStateItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getEtag(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getError(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string key = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.QueryStateItem.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.QueryStateItem} returns this - */ -proto.dapr.proto.runtime.v1.QueryStateItem.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes data = 2; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.QueryStateItem.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes data = 2; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.QueryStateItem.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * 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.QueryStateItem.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.QueryStateItem} returns this - */ -proto.dapr.proto.runtime.v1.QueryStateItem.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional string etag = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.QueryStateItem.prototype.getEtag = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.QueryStateItem} returns this - */ -proto.dapr.proto.runtime.v1.QueryStateItem.prototype.setEtag = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string error = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.QueryStateItem.prototype.getError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.QueryStateItem} returns this - */ -proto.dapr.proto.runtime.v1.QueryStateItem.prototype.setError = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.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.runtime.v1.QueryStateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.QueryStateResponse.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.QueryStateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - resultsList: jspb.Message.toObjectList(msg.getResultsList(), - proto.dapr.proto.runtime.v1.QueryStateItem.toObject, includeInstance), - token: jspb.Message.getFieldWithDefault(msg, 2, ""), - 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.QueryStateResponse} - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.QueryStateResponse; - return proto.dapr.proto.runtime.v1.QueryStateResponse.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.QueryStateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.QueryStateResponse} - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.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.QueryStateItem; - reader.readMessage(value,proto.dapr.proto.runtime.v1.QueryStateItem.deserializeBinaryFromReader); - msg.addResults(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.QueryStateResponse.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.QueryStateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResultsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.runtime.v1.QueryStateItem.serializeBinaryToWriter - ); - } - f = message.getToken(); - 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); - } -}; - - -/** - * repeated QueryStateItem results = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.prototype.getResultsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.QueryStateItem, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.QueryStateResponse} returns this -*/ -proto.dapr.proto.runtime.v1.QueryStateResponse.prototype.setResultsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.QueryStateItem=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.QueryStateItem} - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.prototype.addResults = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.QueryStateItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.QueryStateResponse} returns this - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.prototype.clearResultsList = function() { - return this.setResultsList([]); -}; - - -/** - * optional string token = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.QueryStateResponse} returns this - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.prototype.setToken = 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.QueryStateResponse.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.QueryStateResponse} returns this - */ -proto.dapr.proto.runtime.v1.QueryStateResponse.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.PublishEventRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PublishEventRequest.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.PublishEventRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.toObject = function(includeInstance, msg) { - var f, obj = { - pubsubName: jspb.Message.getFieldWithDefault(msg, 1, ""), - topic: jspb.Message.getFieldWithDefault(msg, 2, ""), - data: msg.getData_asB64(), - dataContentType: jspb.Message.getFieldWithDefault(msg, 4, ""), - 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.PublishEventRequest} - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.PublishEventRequest; - return proto.dapr.proto.runtime.v1.PublishEventRequest.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.PublishEventRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.PublishEventRequest} - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.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 = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDataContentType(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.PublishEventRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.PublishEventRequest.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.PublishEventRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.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.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getDataContentType(); - if (f.length > 0) { - writer.writeString( - 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 pubsub_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.getPubsubName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PublishEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.setPubsubName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string topic = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.getTopic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PublishEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.setTopic = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bytes data = 3; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes data = 3; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 3; - * 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.PublishEventRequest.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.PublishEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional string data_content_type = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.getDataContentType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PublishEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.setDataContentType = function(value) { - return jspb.Message.setProto3StringField(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.PublishEventRequest.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.PublishEventRequest} returns this - */ -proto.dapr.proto.runtime.v1.PublishEventRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.repeatedFields_ = [3]; - - - -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.BulkPublishRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.BulkPublishRequest.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.BulkPublishRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.toObject = function(includeInstance, msg) { - var f, obj = { - pubsubName: jspb.Message.getFieldWithDefault(msg, 1, ""), - topic: jspb.Message.getFieldWithDefault(msg, 2, ""), - entriesList: jspb.Message.toObjectList(msg.getEntriesList(), - proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.toObject, includeInstance), - 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.BulkPublishRequest} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.BulkPublishRequest; - return proto.dapr.proto.runtime.v1.BulkPublishRequest.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.BulkPublishRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.BulkPublishRequest} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.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 = new proto.dapr.proto.runtime.v1.BulkPublishRequestEntry; - reader.readMessage(value,proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.deserializeBinaryFromReader); - msg.addEntries(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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.BulkPublishRequest.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.BulkPublishRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.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.getEntriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.serializeBinaryToWriter - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string pubsub_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.prototype.getPubsubName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.BulkPublishRequest} returns this - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.prototype.setPubsubName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string topic = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.prototype.getTopic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.BulkPublishRequest} returns this - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.prototype.setTopic = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated BulkPublishRequestEntry entries = 3; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.prototype.getEntriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.BulkPublishRequestEntry, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.BulkPublishRequest} returns this -*/ -proto.dapr.proto.runtime.v1.BulkPublishRequest.prototype.setEntriesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.BulkPublishRequestEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.BulkPublishRequestEntry} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.prototype.addEntries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.dapr.proto.runtime.v1.BulkPublishRequestEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.BulkPublishRequest} returns this - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.prototype.clearEntriesList = function() { - return this.setEntriesList([]); -}; - - -/** - * 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.BulkPublishRequest.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.BulkPublishRequest} returns this - */ -proto.dapr.proto.runtime.v1.BulkPublishRequest.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.BulkPublishRequestEntry.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.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.BulkPublishRequestEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.toObject = function(includeInstance, msg) { - var f, obj = { - entryId: jspb.Message.getFieldWithDefault(msg, 1, ""), - event: msg.getEvent_asB64(), - contentType: jspb.Message.getFieldWithDefault(msg, 3, ""), - 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.BulkPublishRequestEntry} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.BulkPublishRequestEntry; - return proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.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.BulkPublishRequestEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.BulkPublishRequestEntry} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.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.setEntryId(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEvent(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setContentType(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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.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.BulkPublishRequestEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEntryId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEvent_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getContentType(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string entry_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.getEntryId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.BulkPublishRequestEntry} returns this - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.setEntryId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes event = 2; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.getEvent = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes event = 2; - * This is a type-conversion wrapper around `getEvent()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.getEvent_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEvent())); -}; - - -/** - * optional bytes event = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getEvent()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.getEvent_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEvent())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.BulkPublishRequestEntry} returns this - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.setEvent = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional string content_type = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.getContentType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.BulkPublishRequestEntry} returns this - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.setContentType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * 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.BulkPublishRequestEntry.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.BulkPublishRequestEntry} returns this - */ -proto.dapr.proto.runtime.v1.BulkPublishRequestEntry.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.BulkPublishResponse.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.runtime.v1.BulkPublishResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.BulkPublishResponse.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.BulkPublishResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkPublishResponse.toObject = function(includeInstance, msg) { - var f, obj = { - failedentriesList: jspb.Message.toObjectList(msg.getFailedentriesList(), - proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.toObject, includeInstance) - }; - - 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.BulkPublishResponse} - */ -proto.dapr.proto.runtime.v1.BulkPublishResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.BulkPublishResponse; - return proto.dapr.proto.runtime.v1.BulkPublishResponse.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.BulkPublishResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.BulkPublishResponse} - */ -proto.dapr.proto.runtime.v1.BulkPublishResponse.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.BulkPublishResponseFailedEntry; - reader.readMessage(value,proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.deserializeBinaryFromReader); - msg.addFailedentries(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.BulkPublishResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.BulkPublishResponse.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.BulkPublishResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkPublishResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFailedentriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated BulkPublishResponseFailedEntry failedEntries = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.BulkPublishResponse.prototype.getFailedentriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.BulkPublishResponse} returns this -*/ -proto.dapr.proto.runtime.v1.BulkPublishResponse.prototype.setFailedentriesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry} - */ -proto.dapr.proto.runtime.v1.BulkPublishResponse.prototype.addFailedentries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.BulkPublishResponse} returns this - */ -proto.dapr.proto.runtime.v1.BulkPublishResponse.prototype.clearFailedentriesList = function() { - return this.setFailedentriesList([]); -}; - - - - - -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.BulkPublishResponseFailedEntry.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.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.BulkPublishResponseFailedEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.toObject = function(includeInstance, msg) { - var f, obj = { - entryId: jspb.Message.getFieldWithDefault(msg, 1, ""), - error: 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.BulkPublishResponseFailedEntry} - */ -proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry; - return proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.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.BulkPublishResponseFailedEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry} - */ -proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.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.setEntryId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setError(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.BulkPublishResponseFailedEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.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.BulkPublishResponseFailedEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEntryId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getError(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string entry_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.prototype.getEntryId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry} returns this - */ -proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.prototype.setEntryId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string error = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.prototype.getError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry} returns this - */ -proto.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry.prototype.setError = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * 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) { -/** - * 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.SubscribeTopicEventsRequestAlpha1.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.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.SubscribeTopicEventsRequestAlpha1} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.toObject = function(includeInstance, msg) { - var f, obj = { - 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) { - 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.SubscribeTopicEventsRequestAlpha1} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - 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.SubscribeTopicEventsRequestAlpha1} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.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.SubscribeTopicEventsRequestInitialAlpha1; - reader.readMessage(value,proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.deserializeBinaryFromReader); - msg.setInitialRequest(value); - break; - case 2: - 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(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.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.SubscribeTopicEventsRequestAlpha1} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInitialRequest(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.serializeBinaryToWriter - ); - } - f = message.getEventProcessed(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.serializeBinaryToWriter - ); - } -}; - - -/** - * optional SubscribeTopicEventsRequestInitialAlpha1 initial_request = 1; - * @return {?proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} - */ -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)); -}; - - -/** - * @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); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.clearInitialRequest = function() { - return this.setInitialRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.hasInitialRequest = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional SubscribeTopicEventsRequestProcessedAlpha1 event_processed = 2; - * @return {?proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} - */ -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)); -}; - - -/** - * @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 the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.clearEventProcessed = function() { - return this.setEventProcessed(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1.prototype.hasEventProcessed = 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.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.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.SubscribeTopicEventsRequestInitialAlpha1} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.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) : [], - deadLetterTopic: 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.SubscribeTopicEventsRequestInitialAlpha1} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - 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.SubscribeTopicEventsRequestInitialAlpha1} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.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 = /** @type {string} */ (reader.readString()); - msg.setDeadLetterTopic(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.SubscribeTopicEventsRequestInitialAlpha1.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.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.SubscribeTopicEventsRequestInitialAlpha1} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.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 = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string pubsub_name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.getPubsubName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.setPubsubName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string topic = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.getTopic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.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.SubscribeTopicEventsRequestInitialAlpha1.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.SubscribeTopicEventsRequestInitialAlpha1} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - 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; -}; - - - - - -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.SubscribeTopicEventsRequestProcessedAlpha1.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.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.SubscribeTopicEventsRequestProcessedAlpha1} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - status: (f = msg.getStatus()) && dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse.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.SubscribeTopicEventsRequestProcessedAlpha1} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - 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.SubscribeTopicEventsRequestProcessedAlpha1} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.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 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(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.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.SubscribeTopicEventsRequestProcessedAlpha1} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 2, - f, - dapr_proto_runtime_v1_appcallback_pb.TopicEventResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -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.SubscribeTopicEventsRequestProcessedAlpha1} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional TopicEventResponse status = 2; - * @return {?proto.dapr.proto.runtime.v1.TopicEventResponse} - */ -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 {?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.SubscribeTopicEventsRequestProcessedAlpha1.prototype.clearStatus = function() { - return this.setStatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1.prototype.hasStatus = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * 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.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])); -}; - - - -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.SubscribeTopicEventsResponseAlpha1.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.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.SubscribeTopicEventsResponseAlpha1} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.toObject = function(includeInstance, msg) { - var f, obj = { - 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) { - 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.SubscribeTopicEventsResponseAlpha1} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - 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.SubscribeTopicEventsResponseAlpha1} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.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.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(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.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.SubscribeTopicEventsResponseAlpha1} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - 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 - ); - } -}; - - -/** - * optional SubscribeTopicEventsResponseInitialAlpha1 initial_response = 1; - * @return {?proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1} - */ -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)); -}; - - -/** - * @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.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; -}; - - - - - -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.SubscribeTopicEventsResponseInitialAlpha1.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.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.SubscribeTopicEventsResponseInitialAlpha1} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.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.SubscribeTopicEventsResponseInitialAlpha1} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - 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.SubscribeTopicEventsResponseInitialAlpha1} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1} - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.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.SubscribeTopicEventsResponseInitialAlpha1.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.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.SubscribeTopicEventsResponseInitialAlpha1} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -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.InvokeBindingRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.InvokeBindingRequest.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.InvokeBindingRequest} 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) { - 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, "") - }; - - 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.InvokeBindingRequest} - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.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 {!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; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.InvokeBindingRequest.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.InvokeBindingRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - 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(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getOperation(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * 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 - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * 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, "")); -}; - - -/** - * optional bytes data = 2; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * 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.InvokeBindingRequest.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} returns this - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(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.InvokeBindingRequest.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.InvokeBindingRequest} returns this - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this; -}; - - -/** - * optional string operation = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.getOperation = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingRequest} returns this - */ -proto.dapr.proto.runtime.v1.InvokeBindingRequest.prototype.setOperation = 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.InvokeBindingResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.InvokeBindingResponse.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.InvokeBindingResponse} 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) { - var f, obj = { - data: msg.getData_asB64(), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} - */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.InvokeBindingResponse} - */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.InvokeBindingResponse.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.InvokeBindingResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.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.InvokeBindingResponse.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.InvokeBindingResponse.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.InvokeBindingResponse.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @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); -}; - - -/** - * 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.InvokeBindingResponse.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.InvokeBindingResponse} returns this - */ -proto.dapr.proto.runtime.v1.InvokeBindingResponse.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.GetSecretRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetSecretRequest.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.GetSecretRequest} 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) { - var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - 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.GetSecretRequest} - */ -proto.dapr.proto.runtime.v1.GetSecretRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} - */ -proto.dapr.proto.runtime.v1.GetSecretRequest.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.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, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetSecretRequest.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.GetSecretRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetSecretRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStoreName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKey(); - 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); - } -}; - - -/** - * optional string store_name = 1; - * @return {string} - */ -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.GetSecretRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetSecretRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetSecretRequest.prototype.setKey = 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.GetSecretRequest.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.GetSecretRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetSecretRequest.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.GetSecretResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetSecretResponse.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.GetSecretResponse} 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) { - var f, obj = { - dataMap: (f = msg.getDataMap()) ? 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.GetSecretResponse} - */ -proto.dapr.proto.runtime.v1.GetSecretResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetSecretResponse} - */ -proto.dapr.proto.runtime.v1.GetSecretResponse.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.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.GetSecretResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetSecretResponse.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.GetSecretResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetSecretResponse.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); - } -}; - - -/** - * 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.GetSecretResponse.prototype.getDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - null)); -}; - - -/** - * 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.GetSecretResponse.prototype.clearDataMap = function() { - this.getDataMap().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.GetBulkSecretRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetBulkSecretRequest.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.GetBulkSecretRequest} 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) { - var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - 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.GetBulkSecretRequest} - */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetBulkSecretRequest} - */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.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; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetBulkSecretRequest.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.GetBulkSecretRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetBulkSecretRequest.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; -}; - - - - - -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.SecretResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SecretResponse.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.SecretResponse} 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) { - var f, obj = { - secretsMap: (f = msg.getSecretsMap()) ? 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.SecretResponse} - */ -proto.dapr.proto.runtime.v1.SecretResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SecretResponse} - */ -proto.dapr.proto.runtime.v1.SecretResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - 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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SecretResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SecretResponse.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.SecretResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SecretResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSecretsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * 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.SecretResponse.prototype.getSecretsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - null)); -}; - - -/** - * 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.SecretResponse.prototype.clearSecretsMap = function() { - this.getSecretsMap().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.GetBulkSecretResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetBulkSecretResponse.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.GetBulkSecretResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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; -}; -} - - -/** - * 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.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); -}; - - -/** - * 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.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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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.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); - } -}; - - -/** - * 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.GetBulkSecretResponse.prototype.getDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - proto.dapr.proto.runtime.v1.SecretResponse)); -}; - - -/** - * 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.GetBulkSecretResponse.prototype.clearDataMap = function() { - this.getDataMap().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.TransactionalStateOperation.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TransactionalStateOperation.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.TransactionalStateOperation} 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) { - var f, obj = { - operationtype: jspb.Message.getFieldWithDefault(msg, 1, ""), - request: (f = msg.getRequest()) && dapr_proto_common_v1_common_pb.StateItem.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.TransactionalStateOperation} - */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} - */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.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 = 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(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TransactionalStateOperation.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.TransactionalStateOperation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOperationtype(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 2, - f, - dapr_proto_common_v1_common_pb.StateItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string operationType = 1; - * @return {string} - */ -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.TransactionalStateOperation} returns this - */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.setOperationtype = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional dapr.proto.common.v1.StateItem request = 2; - * @return {?proto.dapr.proto.common.v1.StateItem} - */ -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 {?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); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.TransactionalStateOperation} returns this - */ -proto.dapr.proto.runtime.v1.TransactionalStateOperation.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -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) { -/** - * 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.ExecuteStateTransactionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.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.ExecuteStateTransactionRequest} 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) { - var f, obj = { - 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) { - 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.ExecuteStateTransactionRequest} - */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} - */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.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 = 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 = 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.ExecuteStateTransactionRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.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.ExecuteStateTransactionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStorename(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOperationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.dapr.proto.runtime.v1.TransactionalStateOperation.serializeBinaryToWriter - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string storeName = 1; - * @return {string} - */ -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.ExecuteStateTransactionRequest} returns this - */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.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} - */ -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); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest} returns this - */ -proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.prototype.clearOperationsList = function() { - return this.setOperationsList([]); -}; - - -/** - * 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.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; -}; - - - - - -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.RegisterActorTimerRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.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.RegisterActorTimerRequest} 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) { - 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, "") - }; - - 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.RegisterActorTimerRequest} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.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.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); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.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.RegisterActorTimerRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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( - 7, - f - ); - } - f = message.getTtl(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } -}; - - -/** - * 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} - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.getTtl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorTimerRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorTimerRequest.prototype.setTtl = function(value) { - return jspb.Message.setProto3StringField(this, 8, 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.UnregisterActorTimerRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.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.UnregisterActorTimerRequest} 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) { - var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - 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.UnregisterActorTimerRequest} - */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} - */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.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.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.UnregisterActorTimerRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.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.UnregisterActorTimerRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.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 - ); - } -}; - - -/** - * optional string actor_type = 1; - * @return {string} - */ -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.UnregisterActorTimerRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.setActorType = 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} - */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.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.RegisterActorReminderRequest} 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) { - 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, "") - }; - - 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.RegisterActorReminderRequest} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.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.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); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.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.RegisterActorReminderRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.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 - ); - } -}; - - -/** - * optional string actor_type = 1; - * @return {string} - */ -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.RegisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * 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); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @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} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getPeriod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @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); -}; - - -/** - * 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); -}; - - - - - -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.UnregisterActorReminderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.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.UnregisterActorReminderRequest} 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) { - var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - 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.UnregisterActorReminderRequest} - */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest} - */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.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.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.UnregisterActorReminderRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.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.UnregisterActorReminderRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.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 - ); - } -}; - - -/** - * optional string actor_type = 1; - * @return {string} - */ -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.UnregisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string actor_id = 2; - * @return {string} - */ -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.UnregisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -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.UnregisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetActorStateRequest.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.GetActorStateRequest} 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) { - var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - key: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - 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.GetActorStateRequest} - */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} - */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.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.setKey(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.GetActorStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetActorStateRequest.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.GetActorStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.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.getKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string actor_type = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this - */ -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.GetActorStateRequest.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string key = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetActorStateRequest.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetActorStateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.dapr.proto.runtime.v1.GetActorStateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetActorStateResponse; - return proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.runtime.v1.GetActorStateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetActorStateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetActorStateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional bytes data = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.GetActorStateResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetActorStateResponse.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * 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; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.repeatedFields_ = [3]; - - - -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.ExecuteActorStateTransactionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.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.ExecuteActorStateTransactionRequest} 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) { - 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) - }; - - 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.ExecuteActorStateTransactionRequest} - */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} - */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.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 = new proto.dapr.proto.runtime.v1.TransactionalActorStateOperation; - reader.readMessage(value,proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.deserializeBinaryFromReader); - msg.addOperations(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.ExecuteActorStateTransactionRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.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.ExecuteActorStateTransactionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.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.getOperationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string actor_type = 1; - * @return {string} - */ -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.ExecuteActorStateTransactionRequest} returns this - */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string actor_id = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest} returns this - */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.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} - */ -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.ExecuteActorStateTransactionRequest} returns this - */ -proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest.prototype.clearOperationsList = function() { - return this.setOperationsList([]); -}; - - - - - -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.TransactionalActorStateOperation.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.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.TransactionalActorStateOperation} 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) { - 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; -}; -} - - -/** - * 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); -}; - - -/** - * 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.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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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.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); - } -}; - - -/** - * optional string operationType = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.getOperationtype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this - */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.setOperationtype = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TransactionalActorStateOperation} returns this - */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * 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.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.TransactionalActorStateOperation} returns this - */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.clearValue = function() { - return this.setValue(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.TransactionalActorStateOperation.prototype.hasValue = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * 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.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)); -}; - - -/** - * 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 - */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.setDeadLetterTopic = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional PubsubSubscriptionType type = 6; - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionType} - */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.getType = function() { - return /** @type {!proto.dapr.proto.runtime.v1.PubsubSubscriptionType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.PubsubSubscriptionType} value - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscription} returns this - */ -proto.dapr.proto.runtime.v1.PubsubSubscription.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - - -/** - * 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) { -/** - * 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.PubsubSubscriptionRules.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.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.PubsubSubscriptionRules} 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) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.toObject, includeInstance) - }; - - 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.PubsubSubscriptionRules} - */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} - */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.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.PubsubSubscriptionRule; - reader.readMessage(value,proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.deserializeBinaryFromReader); - msg.addRules(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.PubsubSubscriptionRules.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.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.PubsubSubscriptionRules} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated PubsubSubscriptionRule rules = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.PubsubSubscriptionRule, 1)); -}; - - -/** - * @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.PubsubSubscriptionRules.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.PubsubSubscriptionRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRules} returns this - */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRules.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - - - - -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.PubsubSubscriptionRule.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.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.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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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.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 string match = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.getMatch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PubsubSubscriptionRule} returns this - */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.setMatch = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -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.PubsubSubscriptionRule} returns this - */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionRule.prototype.setPath = 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.runtime.v1.SetMetadataRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SetMetadataRequest.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.SetMetadataRequest} 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) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: 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.SetMetadataRequest} - */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SetMetadataRequest} - */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.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.setKey(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(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.SetMetadataRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SetMetadataRequest.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.SetMetadataRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 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} - */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SetMetadataRequest} returns this - */ -proto.dapr.proto.runtime.v1.SetMetadataRequest.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 2, 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) { -/** - * 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.GetConfigurationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetConfigurationRequest.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.GetConfigurationRequest} 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) { - 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) : [] - }; - - 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.GetConfigurationRequest} - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.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.addKeys(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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetConfigurationRequest.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.GetConfigurationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.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 store_name = 1; - * @return {string} - */ -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.GetConfigurationRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.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 - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.setKeysList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.addKeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.prototype.clearKeysList = function() { - return this.setKeysList([]); -}; - - -/** - * 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.GetConfigurationRequest.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.GetConfigurationRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetConfigurationRequest.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.GetConfigurationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetConfigurationResponse.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.GetConfigurationResponse} 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) { - var f, obj = { - itemsMap: (f = msg.getItemsMap()) ? f.toObject(includeInstance, proto.dapr.proto.common.v1.ConfigurationItem.toObject) : [] - }; - - 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.GetConfigurationResponse} - */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetConfigurationResponse} - */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - 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()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetConfigurationResponse.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.GetConfigurationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetConfigurationResponse.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); - } -}; - - -/** - * 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.GetConfigurationResponse.prototype.getItemsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, 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.GetConfigurationResponse} returns this - */ -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) { -/** - * 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.SubscribeConfigurationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.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.SubscribeConfigurationRequest} 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) { - 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) : [] - }; - - 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.SubscribeConfigurationRequest} - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.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.addKeys(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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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.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 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 - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string keys = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.getKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.setKeysList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.addKeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.prototype.clearKeysList = function() { - return this.setKeysList([]); -}; - - -/** - * 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.SubscribeConfigurationRequest.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.SubscribeConfigurationRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationRequest.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.UnsubscribeConfigurationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.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.UnsubscribeConfigurationRequest} 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) { - var f, obj = { - storeName: jspb.Message.getFieldWithDefault(msg, 1, ""), - id: 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.UnsubscribeConfigurationRequest} - */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest} - */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.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.setId(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.UnsubscribeConfigurationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.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.UnsubscribeConfigurationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStoreName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string store_name = 1; - * @return {string} - */ -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.UnsubscribeConfigurationRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string id = 2; - * @return {string} - */ -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.UnsubscribeConfigurationRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest.prototype.setId = 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.runtime.v1.SubscribeConfigurationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.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.SubscribeConfigurationResponse} 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) { - 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) { - 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.SubscribeConfigurationResponse} - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse} - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.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 = 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(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.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.SubscribeConfigurationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - 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); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -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.SubscribeConfigurationResponse} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map items = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -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.SubscribeConfigurationResponse} returns this - */ -proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse.prototype.clearItemsMap = function() { - this.getItemsMap().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.UnsubscribeConfigurationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.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.UnsubscribeConfigurationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @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(); -}; - - -/** - * 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 - */ -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 - ); - } -}; - - -/** - * optional bool ok = 1; - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.getOk = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @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); -}; - - -/** - * optional string message = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse} returns this - */ -proto.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse.prototype.setMessage = 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.runtime.v1.TryLockRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TryLockRequest.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.TryLockRequest} 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) { - 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) - }; - - 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.TryLockRequest} - */ -proto.dapr.proto.runtime.v1.TryLockRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TryLockRequest} - */ -proto.dapr.proto.runtime.v1.TryLockRequest.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; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setExpiryInSeconds(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.TryLockRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TryLockRequest.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.TryLockRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TryLockRequest.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 - ); - } - f = message.getExpiryInSeconds(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } -}; - - -/** - * optional string store_name = 1; - * @return {string} - */ -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.TryLockRequest} returns this - */ -proto.dapr.proto.runtime.v1.TryLockRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string resource_id = 2; - * @return {string} - */ -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.TryLockRequest} returns this - */ -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); -}; - - - - - -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.TryLockResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TryLockResponse.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.TryLockResponse} 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) { - var f, obj = { - success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - 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.TryLockResponse} - */ -proto.dapr.proto.runtime.v1.TryLockResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TryLockResponse} - */ -proto.dapr.proto.runtime.v1.TryLockResponse.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.setSuccess(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.TryLockResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.TryLockResponse.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.TryLockResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TryLockResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSuccess(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool success = 1; - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.TryLockResponse.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.TryLockResponse} returns this - */ -proto.dapr.proto.runtime.v1.TryLockResponse.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(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.UnlockRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnlockRequest.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.UnlockRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -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 - ); - } -}; - - -/** - * optional string store_name = 1; - * @return {string} - */ -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.UnlockRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.setStoreName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string resource_id = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.getResourceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.setResourceId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string lock_owner = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.getLockOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnlockRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnlockRequest.prototype.setLockOwner = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.runtime.v1.UnlockResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnlockResponse.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.UnlockResponse} 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) { - var f, obj = { - status: jspb.Message.getFieldWithDefault(msg, 1, 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.UnlockResponse} - */ -proto.dapr.proto.runtime.v1.UnlockResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnlockResponse} - */ -proto.dapr.proto.runtime.v1.UnlockResponse.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.UnlockResponse.Status} */ (reader.readEnum()); - msg.setStatus(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.UnlockResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnlockResponse.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.UnlockResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.UnlockResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.dapr.proto.runtime.v1.UnlockResponse.Status = { - SUCCESS: 0, - LOCK_DOES_NOT_EXIST: 1, - LOCK_BELONGS_TO_OTHERS: 2, - INTERNAL_ERROR: 3 -}; - -/** - * optional Status status = 1; - * @return {!proto.dapr.proto.runtime.v1.UnlockResponse.Status} - */ -proto.dapr.proto.runtime.v1.UnlockResponse.prototype.getStatus = function() { - return /** @type {!proto.dapr.proto.runtime.v1.UnlockResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.UnlockResponse.Status} value - * @return {!proto.dapr.proto.runtime.v1.UnlockResponse} returns this - */ -proto.dapr.proto.runtime.v1.UnlockResponse.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(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.SubtleGetKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.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.SubtleGetKeyRequest} 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) { - var f, obj = { - componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - format: jspb.Message.getFieldWithDefault(msg, 3, 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.SubtleGetKeyRequest} - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.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.setComponentName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} */ (reader.readEnum()); - msg.setFormat(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.SubtleGetKeyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.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.SubtleGetKeyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getComponentName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getFormat(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat = { - PEM: 0, - JSON: 1 -}; - -/** - * 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 {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.setComponentName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional KeyFormat format = 3; - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.getFormat = function() { - return /** @type {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat} value - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyRequest.prototype.setFormat = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.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.SubtleGetKeyResponse} 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) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - publicKey: 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.SubtleGetKeyResponse} - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleGetKeyResponse} - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.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.setPublicKey(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.SubtleGetKeyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.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.SubtleGetKeyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPublicKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -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.SubtleGetKeyResponse} returns this - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string public_key = 2; - * @return {string} - */ -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.SubtleGetKeyResponse} returns this - */ -proto.dapr.proto.runtime.v1.SubtleGetKeyResponse.prototype.setPublicKey = 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.runtime.v1.SubtleEncryptRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleEncryptRequest.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.SubtleEncryptRequest} 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) { - var f, obj = { - 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) { - 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.SubtleEncryptRequest} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.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.setComponentName(value); - break; - case 2: - 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(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleEncryptRequest.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.SubtleEncryptRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getComponentName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - 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 component_name = 1; - * @return {string} - */ -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.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.SubtleEncryptRequest.prototype.setPlaintext = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional string algorithm = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAlgorithm = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setAlgorithm = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string key_name = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getKeyName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setKeyName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes nonce = 5; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.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.SubtleEncryptRequest.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.SubtleEncryptRequest.prototype.getNonce_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getNonce())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setNonce = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional bytes associated_data = 6; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAssociatedData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes associated_data = 6; - * This is a type-conversion wrapper around `getAssociatedData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.getAssociatedData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAssociatedData())); -}; - - -/** - * 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.SubtleEncryptRequest.prototype.getAssociatedData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAssociatedData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleEncryptRequest.prototype.setAssociatedData = function(value) { - return jspb.Message.setProto3BytesField(this, 6, 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.SubtleEncryptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleEncryptResponse.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.SubtleEncryptResponse} 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) { - var f, obj = { - ciphertext: msg.getCiphertext_asB64(), - tag: msg.getTag_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.SubtleEncryptResponse} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.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.setCiphertext(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTag(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.SubtleEncryptResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleEncryptResponse.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.SubtleEncryptResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCiphertext_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; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getCiphertext = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes ciphertext = 1; - * This is a type-conversion wrapper around `getCiphertext()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.getCiphertext_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCiphertext())); -}; - - -/** - * 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.SubtleEncryptResponse.prototype.getCiphertext_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCiphertext())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleEncryptResponse} returns this - */ -proto.dapr.proto.runtime.v1.SubtleEncryptResponse.prototype.setCiphertext = 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); -}; - - - - - -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.SubtleDecryptRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleDecryptRequest.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.SubtleDecryptRequest} 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) { - var f, obj = { - 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) { - 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.SubtleDecryptRequest} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.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.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(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleDecryptRequest.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.SubtleDecryptRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - 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 string algorithm = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.prototype.getAlgorithm = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this - */ -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, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleDecryptRequest.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); -}; - - - - - -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.SubtleDecryptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleDecryptResponse.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.SubtleDecryptResponse} 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) { - var f, obj = { - plaintext: msg.getPlaintext_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.SubtleDecryptResponse} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleDecryptResponse} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.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.setPlaintext(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.SubtleDecryptResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleDecryptResponse.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.SubtleDecryptResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPlaintext_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes plaintext = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.getPlaintext = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes plaintext = 1; - * This is a type-conversion wrapper around `getPlaintext()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleDecryptResponse.prototype.getPlaintext_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPlaintext())); -}; - - -/** - * 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.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); -}; - - - - - -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.SubtleWrapKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.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.SubtleWrapKeyRequest} 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) { - var f, obj = { - componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - 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) { - 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.SubtleWrapKeyRequest} - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.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.setComponentName(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPlaintextKey(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(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.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.SubtleWrapKeyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getComponentName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPlaintextKey_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 component_name = 1; - * @return {string} - */ -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 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.SubtleWrapKeyRequest.prototype.getNonce_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getNonce())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setNonce = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional bytes associated_data = 6; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getAssociatedData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes associated_data = 6; - * This is a type-conversion wrapper around `getAssociatedData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.getAssociatedData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAssociatedData())); -}; - - -/** - * 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.SubtleWrapKeyRequest.prototype.getAssociatedData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAssociatedData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyRequest.prototype.setAssociatedData = function(value) { - return jspb.Message.setProto3BytesField(this, 6, 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.SubtleWrapKeyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.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.SubtleWrapKeyResponse} 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() - }; - - 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.SubtleWrapKeyResponse} - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse} - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.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.setWrappedKey(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTag(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.SubtleWrapKeyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.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.SubtleWrapKeyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleWrapKeyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWrappedKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTag_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * 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.SubtleWrapKeyResponse.prototype.getWrappedKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getWrappedKey())); -}; - - -/** - * 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.SubtleWrapKeyResponse.prototype.getWrappedKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getWrappedKey())); -}; - - -/** - * @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.SubtleWrapKeyResponse.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.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); -}; - - - - - -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.SubtleUnwrapKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.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.SubtleUnwrapKeyRequest} 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) { - 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() - }; - - 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.SubtleUnwrapKeyRequest} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.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.setComponentName(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setWrappedKey(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(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.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.SubtleUnwrapKeyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getComponentName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getWrappedKey_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.SubtleUnwrapKeyRequest.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} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getWrappedKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getWrappedKey())); -}; - - -/** - * 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} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.getWrappedKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getWrappedKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setWrappedKey = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional string algorithm = 3; - * @return {string} - */ -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.SubtleUnwrapKeyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setAlgorithm = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string key_name = 4; - * @return {string} - */ -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.SubtleUnwrapKeyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setKeyName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes nonce = 5; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.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.SubtleUnwrapKeyRequest.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.SubtleUnwrapKeyRequest.prototype.getNonce_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getNonce())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setNonce = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional bytes tag = 6; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.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.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.SubtleUnwrapKeyRequest.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.SubtleUnwrapKeyRequest.prototype.getAssociatedData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAssociatedData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest.prototype.setAssociatedData = function(value) { - return jspb.Message.setProto3BytesField(this, 7, 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.SubtleUnwrapKeyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.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.SubtleUnwrapKeyResponse} 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) { - var f, obj = { - plaintextKey: msg.getPlaintextKey_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.SubtleUnwrapKeyResponse} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.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.setPlaintextKey(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.SubtleUnwrapKeyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.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.SubtleUnwrapKeyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPlaintextKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes plaintext_key = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.getPlaintextKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes plaintext_key = 1; - * This is a type-conversion wrapper around `getPlaintextKey()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.getPlaintextKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPlaintextKey())); -}; - - -/** - * 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} - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.getPlaintextKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPlaintextKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse} returns this - */ -proto.dapr.proto.runtime.v1.SubtleUnwrapKeyResponse.prototype.setPlaintextKey = 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.SubtleSignRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleSignRequest.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.SubtleSignRequest} 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) { - 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, "") - }; - - 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.SubtleSignRequest} - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleSignRequest} - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.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.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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleSignRequest.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.SubtleSignRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.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 - ); - } -}; - - -/** - * optional string component_name = 1; - * @return {string} - */ -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.SubtleSignRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.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; - * @return {string} - */ -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.SubtleSignRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleSignRequest.prototype.setKeyName = 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.SubtleSignResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleSignResponse.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.SubtleSignResponse} 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) { - var f, obj = { - signature: msg.getSignature_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.SubtleSignResponse} - */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleSignResponse} - */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.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.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.SubtleSignResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleSignResponse.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.SubtleSignResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes signature = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 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())); -}; - - -/** - * 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} - */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.getSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleSignResponse} returns this - */ -proto.dapr.proto.runtime.v1.SubtleSignResponse.prototype.setSignature = 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.SubtleVerifyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleVerifyRequest.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.SubtleVerifyRequest} 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) { - 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() - }; - - 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.SubtleVerifyRequest} - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.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.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); -}; - - -/** - * optional string algorithm = 3; - * @return {string} - */ -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.SubtleVerifyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setAlgorithm = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string key_name = 4; - * @return {string} - */ -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.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)} - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes signature = 5; - * This is a type-conversion wrapper around `getSignature()` - * @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())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.SubtleVerifyRequest} returns this - */ -proto.dapr.proto.runtime.v1.SubtleVerifyRequest.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 5, 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.SubtleVerifyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.SubtleVerifyResponse.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.SubtleVerifyResponse} 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) { - var f, obj = { - valid: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - 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.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.SubtleVerifyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.SubtleVerifyResponse.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.SubtleVerifyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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); -}; - - - - - -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.EncryptRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.EncryptRequest.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.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; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} - */ -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); -}; - - -/** - * 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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -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 - ); - } -}; - - -/** - * optional EncryptRequestOptions options = 1; - * @return {?proto.dapr.proto.runtime.v1.EncryptRequestOptions} - */ -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)); -}; - - -/** - * @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); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} returns this - */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.hasOptions = 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.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)); -}; - - -/** - * @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); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.EncryptRequest} returns this - */ -proto.dapr.proto.runtime.v1.EncryptRequest.prototype.clearPayload = function() { - return this.setPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.EncryptRequest.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.runtime.v1.EncryptRequestOptions.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.EncryptRequestOptions.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.EncryptRequestOptions} 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) { - 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, "") - }; - - 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.EncryptRequestOptions} - */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} - */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.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.setComponentName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKeyName(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); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOmitDecryptionKeyName(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setDecryptionKeyName(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.EncryptRequestOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.EncryptRequestOptions.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.EncryptRequestOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getComponentName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKeyName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getKeyWrapAlgorithm(); - 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.getDecryptionKeyName(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } -}; - - -/** - * optional string component_name = 1; - * @return {string} - */ -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.EncryptRequestOptions} returns this - */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setComponentName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key_name = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getKeyName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this - */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setKeyName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string key_wrap_algorithm = 3; - * @return {string} - */ -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.EncryptRequestOptions} returns this - */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setKeyWrapAlgorithm = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string data_encryption_cipher = 10; - * @return {string} - */ -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.EncryptRequestOptions} returns this - */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setDataEncryptionCipher = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional bool omit_decryption_key_name = 11; - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.getOmitDecryptionKeyName = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); -}; - - -/** - * @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.EncryptRequestOptions.prototype.getDecryptionKeyName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.EncryptRequestOptions} returns this - */ -proto.dapr.proto.runtime.v1.EncryptRequestOptions.prototype.setDecryptionKeyName = function(value) { - return jspb.Message.setProto3StringField(this, 12, 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.EncryptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.EncryptResponse.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.EncryptResponse} 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) { - var f, obj = { - 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.runtime.v1.EncryptResponse} - */ -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); -}; - - -/** - * 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.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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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.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 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 - */ -proto.dapr.proto.runtime.v1.EncryptResponse.prototype.clearPayload = function() { - return this.setPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.EncryptResponse.prototype.hasPayload = function() { - return jspb.Message.getField(this, 1) != 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.DecryptRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DecryptRequest.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.DecryptRequest} 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) { - 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) - }; - - 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.DecryptRequest} - */ -proto.dapr.proto.runtime.v1.DecryptRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} - */ -proto.dapr.proto.runtime.v1.DecryptRequest.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.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(); - 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); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.DecryptRequest} returns this - */ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.DecryptRequest.prototype.hasOptions = 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.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; -}; - - - - - -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.DecryptRequestOptions.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DecryptRequestOptions.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.DecryptRequestOptions} 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) { - var f, obj = { - componentName: jspb.Message.getFieldWithDefault(msg, 1, ""), - keyName: jspb.Message.getFieldWithDefault(msg, 12, "") - }; - - 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.DecryptRequestOptions} - */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.DecryptRequestOptions} - */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.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.setComponentName(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setKeyName(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.DecryptRequestOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.DecryptRequestOptions.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.DecryptRequestOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getComponentName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKeyName(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } -}; - - -/** - * optional string component_name = 1; - * @return {string} - */ -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.DecryptRequestOptions} returns this - */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.setComponentName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key_name = 12; - * @return {string} - */ -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.DecryptRequestOptions} returns this - */ -proto.dapr.proto.runtime.v1.DecryptRequestOptions.prototype.setKeyName = function(value) { - return jspb.Message.setProto3StringField(this, 12, 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.DecryptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DecryptResponse.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.DecryptResponse} 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) { - var f, obj = { - 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.runtime.v1.DecryptResponse} - */ -proto.dapr.proto.runtime.v1.DecryptResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.DecryptResponse} - */ -proto.dapr.proto.runtime.v1.DecryptResponse.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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.DecryptResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.DecryptResponse.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.DecryptResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DecryptResponse.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 dapr.proto.common.v1.StreamPayload payload = 1; - * @return {?proto.dapr.proto.common.v1.StreamPayload} - */ -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)); -}; - - -/** - * @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); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.DecryptResponse} returns this - */ -proto.dapr.proto.runtime.v1.DecryptResponse.prototype.clearPayload = function() { - return this.setPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.DecryptResponse.prototype.hasPayload = function() { - return jspb.Message.getField(this, 1) != 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.GetWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetWorkflowRequest.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.GetWorkflowRequest} 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) { - var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: 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.GetWorkflowRequest} - */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} - */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.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; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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.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 instance_id = 1; - * @return {string} - */ -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.GetWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string workflow_component = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetWorkflowRequest.prototype.setWorkflowComponent = 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.runtime.v1.GetWorkflowResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetWorkflowResponse.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.GetWorkflowResponse} 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) { - 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) : [] - }; - - 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.GetWorkflowResponse} - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.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.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(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetWorkflowResponse.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.GetWorkflowResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - 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 string instance_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string workflow_name = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getWorkflowName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @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); -}; - - -/** - * 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); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetWorkflowResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.clearLastUpdatedAt = function() { - return this.setLastUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.hasLastUpdatedAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string runtime_status = 5; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetWorkflowResponse.prototype.getRuntimeStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @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); -}; - - -/** - * 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.GetWorkflowResponse.prototype.getPropertiesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * 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.GetWorkflowResponse.prototype.clearPropertiesMap = function() { - this.getPropertiesMap().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.StartWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.StartWorkflowRequest.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.StartWorkflowRequest} 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) { - 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() - }; - - 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.StartWorkflowRequest} - */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} - */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.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; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowName(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, "", ""); - }); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setInput(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.StartWorkflowRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.StartWorkflowRequest.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.StartWorkflowRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.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 - ); - } - f = message.getWorkflowName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getOptionsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getInput_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } -}; - - -/** - * optional string instance_id = 1; - * @return {string} - */ -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.StartWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string workflow_component = 2; - * @return {string} - */ -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.StartWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string workflow_name = 3; - * @return {string} - */ -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.StartWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setWorkflowName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * 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.StartWorkflowRequest.prototype.getOptionsMap = 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.StartWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.clearOptionsMap = function() { - this.getOptionsMap().clear(); - return this; -}; - - -/** - * optional bytes input = 5; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getInput = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes input = 5; - * This is a type-conversion wrapper around `getInput()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.getInput_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getInput())); -}; - - -/** - * 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.StartWorkflowRequest.prototype.getInput_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getInput())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.StartWorkflowRequest.prototype.setInput = function(value) { - return jspb.Message.setProto3BytesField(this, 5, 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.StartWorkflowResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.StartWorkflowResponse.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.StartWorkflowResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.toObject = function(includeInstance, msg) { - var f, obj = { - instanceId: 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.StartWorkflowResponse} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInstanceId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string instance_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.StartWorkflowResponse} returns this - */ -proto.dapr.proto.runtime.v1.StartWorkflowResponse.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} - */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.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.TerminateWorkflowRequest} 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) { - var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: 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.TerminateWorkflowRequest} - */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.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); -}; - - -/** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} - */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.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; - } - } - return msg; -}; +// +//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. + +// @generated by protoc-gen-es v2.7.0 with parameter "target=js+dts,import_extension=none" +// @generated from file dapr/proto/runtime/v1/dapr.proto (package dapr.proto.runtime.v1, syntax proto3) +/* eslint-disable */ +import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2"; +import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import { file_dapr_proto_common_v1_common } from "../../common/v1/common_pb"; +import { file_dapr_proto_runtime_v1_appcallback } from "./appcallback_pb"; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the file dapr/proto/runtime/v1/dapr.proto. */ -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(); -}; - +export const file_dapr_proto_runtime_v1_dapr = /*@__PURE__*/ + fileDesc("CiBkYXByL3Byb3RvL3J1bnRpbWUvdjEvZGFwci5wcm90bxIVZGFwci5wcm90by5ydW50aW1lLnYxIlgKFEludm9rZVNlcnZpY2VSZXF1ZXN0EgoKAmlkGAEgASgJEjQKB21lc3NhZ2UYAyABKAsyIy5kYXByLnByb3RvLmNvbW1vbi52MS5JbnZva2VSZXF1ZXN0IvUBCg9HZXRTdGF0ZVJlcXVlc3QSEgoKc3RvcmVfbmFtZRgBIAEoCRILCgNrZXkYAiABKAkSSAoLY29uc2lzdGVuY3kYAyABKA4yMy5kYXByLnByb3RvLmNvbW1vbi52MS5TdGF0ZU9wdGlvbnMuU3RhdGVDb25zaXN0ZW5jeRJGCghtZXRhZGF0YRgEIAMoCzI0LmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRTdGF0ZVJlcXVlc3QuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiyQEKE0dldEJ1bGtTdGF0ZVJlcXVlc3QSEgoKc3RvcmVfbmFtZRgBIAEoCRIMCgRrZXlzGAIgAygJEhMKC3BhcmFsbGVsaXNtGAMgASgFEkoKCG1ldGFkYXRhGAQgAygLMjguZGFwci5wcm90by5ydW50aW1lLnYxLkdldEJ1bGtTdGF0ZVJlcXVlc3QuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiSwoUR2V0QnVsa1N0YXRlUmVzcG9uc2USMwoFaXRlbXMYASADKAsyJC5kYXByLnByb3RvLnJ1bnRpbWUudjEuQnVsa1N0YXRlSXRlbSK+AQoNQnVsa1N0YXRlSXRlbRILCgNrZXkYASABKAkSDAoEZGF0YRgCIAEoDBIMCgRldGFnGAMgASgJEg0KBWVycm9yGAQgASgJEkQKCG1ldGFkYXRhGAUgAygLMjIuZGFwci5wcm90by5ydW50aW1lLnYxLkJ1bGtTdGF0ZUl0ZW0uTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiqAEKEEdldFN0YXRlUmVzcG9uc2USDAoEZGF0YRgBIAEoDBIMCgRldGFnGAIgASgJEkcKCG1ldGFkYXRhGAMgAygLMjUuZGFwci5wcm90by5ydW50aW1lLnYxLkdldFN0YXRlUmVzcG9uc2UuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEikAIKEkRlbGV0ZVN0YXRlUmVxdWVzdBISCgpzdG9yZV9uYW1lGAEgASgJEgsKA2tleRgCIAEoCRIoCgRldGFnGAMgASgLMhouZGFwci5wcm90by5jb21tb24udjEuRXRhZxIzCgdvcHRpb25zGAQgASgLMiIuZGFwci5wcm90by5jb21tb24udjEuU3RhdGVPcHRpb25zEkkKCG1ldGFkYXRhGAUgAygLMjcuZGFwci5wcm90by5ydW50aW1lLnYxLkRlbGV0ZVN0YXRlUmVxdWVzdC5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJdChZEZWxldGVCdWxrU3RhdGVSZXF1ZXN0EhIKCnN0b3JlX25hbWUYASABKAkSLwoGc3RhdGVzGAIgAygLMh8uZGFwci5wcm90by5jb21tb24udjEuU3RhdGVJdGVtIlcKEFNhdmVTdGF0ZVJlcXVlc3QSEgoKc3RvcmVfbmFtZRgBIAEoCRIvCgZzdGF0ZXMYAiADKAsyHy5kYXByLnByb3RvLmNvbW1vbi52MS5TdGF0ZUl0ZW0isQEKEVF1ZXJ5U3RhdGVSZXF1ZXN0EhIKCnN0b3JlX25hbWUYASABKAkSDQoFcXVlcnkYAiABKAkSSAoIbWV0YWRhdGEYAyADKAsyNi5kYXByLnByb3RvLnJ1bnRpbWUudjEuUXVlcnlTdGF0ZVJlcXVlc3QuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiSAoOUXVlcnlTdGF0ZUl0ZW0SCwoDa2V5GAEgASgJEgwKBGRhdGEYAiABKAwSDAoEZXRhZxgDIAEoCRINCgVlcnJvchgEIAEoCSLXAQoSUXVlcnlTdGF0ZVJlc3BvbnNlEjYKB3Jlc3VsdHMYASADKAsyJS5kYXByLnByb3RvLnJ1bnRpbWUudjEuUXVlcnlTdGF0ZUl0ZW0SDQoFdG9rZW4YAiABKAkSSQoIbWV0YWRhdGEYAyADKAsyNy5kYXByLnByb3RvLnJ1bnRpbWUudjEuUXVlcnlTdGF0ZVJlc3BvbnNlLk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIt8BChNQdWJsaXNoRXZlbnRSZXF1ZXN0EhMKC3B1YnN1Yl9uYW1lGAEgASgJEg0KBXRvcGljGAIgASgJEgwKBGRhdGEYAyABKAwSGQoRZGF0YV9jb250ZW50X3R5cGUYBCABKAkSSgoIbWV0YWRhdGEYBSADKAsyOC5kYXByLnByb3RvLnJ1bnRpbWUudjEuUHVibGlzaEV2ZW50UmVxdWVzdC5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASL1AQoSQnVsa1B1Ymxpc2hSZXF1ZXN0EhMKC3B1YnN1Yl9uYW1lGAEgASgJEg0KBXRvcGljGAIgASgJEj8KB2VudHJpZXMYAyADKAsyLi5kYXByLnByb3RvLnJ1bnRpbWUudjEuQnVsa1B1Ymxpc2hSZXF1ZXN0RW50cnkSSQoIbWV0YWRhdGEYBCADKAsyNy5kYXByLnByb3RvLnJ1bnRpbWUudjEuQnVsa1B1Ymxpc2hSZXF1ZXN0Lk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBItEBChdCdWxrUHVibGlzaFJlcXVlc3RFbnRyeRIQCghlbnRyeV9pZBgBIAEoCRINCgVldmVudBgCIAEoDBIUCgxjb250ZW50X3R5cGUYAyABKAkSTgoIbWV0YWRhdGEYBCADKAsyPC5kYXByLnByb3RvLnJ1bnRpbWUudjEuQnVsa1B1Ymxpc2hSZXF1ZXN0RW50cnkuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiYwoTQnVsa1B1Ymxpc2hSZXNwb25zZRJMCg1mYWlsZWRFbnRyaWVzGAEgAygLMjUuZGFwci5wcm90by5ydW50aW1lLnYxLkJ1bGtQdWJsaXNoUmVzcG9uc2VGYWlsZWRFbnRyeSJBCh5CdWxrUHVibGlzaFJlc3BvbnNlRmFpbGVkRW50cnkSEAoIZW50cnlfaWQYASABKAkSDQoFZXJyb3IYAiABKAkihAIKIVN1YnNjcmliZVRvcGljRXZlbnRzUmVxdWVzdEFscGhhMRJaCg9pbml0aWFsX3JlcXVlc3QYASABKAsyPy5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3Vic2NyaWJlVG9waWNFdmVudHNSZXF1ZXN0SW5pdGlhbEFscGhhMUgAElwKD2V2ZW50X3Byb2Nlc3NlZBgCIAEoCzJBLmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJzY3JpYmVUb3BpY0V2ZW50c1JlcXVlc3RQcm9jZXNzZWRBbHBoYTFIAEIlCiNzdWJzY3JpYmVfdG9waWNfZXZlbnRzX3JlcXVlc3RfdHlwZSKWAgooU3Vic2NyaWJlVG9waWNFdmVudHNSZXF1ZXN0SW5pdGlhbEFscGhhMRITCgtwdWJzdWJfbmFtZRgBIAEoCRINCgV0b3BpYxgCIAEoCRJfCghtZXRhZGF0YRgDIAMoCzJNLmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJzY3JpYmVUb3BpY0V2ZW50c1JlcXVlc3RJbml0aWFsQWxwaGExLk1ldGFkYXRhRW50cnkSHgoRZGVhZF9sZXR0ZXJfdG9waWMYBCABKAlIAIgBARovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAFCFAoSX2RlYWRfbGV0dGVyX3RvcGljInMKKlN1YnNjcmliZVRvcGljRXZlbnRzUmVxdWVzdFByb2Nlc3NlZEFscGhhMRIKCgJpZBgBIAEoCRI5CgZzdGF0dXMYAiABKAsyKS5kYXByLnByb3RvLnJ1bnRpbWUudjEuVG9waWNFdmVudFJlc3BvbnNlIu0BCiJTdWJzY3JpYmVUb3BpY0V2ZW50c1Jlc3BvbnNlQWxwaGExElwKEGluaXRpYWxfcmVzcG9uc2UYASABKAsyQC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3Vic2NyaWJlVG9waWNFdmVudHNSZXNwb25zZUluaXRpYWxBbHBoYTFIABJBCg1ldmVudF9tZXNzYWdlGAIgASgLMiguZGFwci5wcm90by5ydW50aW1lLnYxLlRvcGljRXZlbnRSZXF1ZXN0SABCJgokc3Vic2NyaWJlX3RvcGljX2V2ZW50c19yZXNwb25zZV90eXBlIisKKVN1YnNjcmliZVRvcGljRXZlbnRzUmVzcG9uc2VJbml0aWFsQWxwaGExIsMBChRJbnZva2VCaW5kaW5nUmVxdWVzdBIMCgRuYW1lGAEgASgJEgwKBGRhdGEYAiABKAwSSwoIbWV0YWRhdGEYAyADKAsyOS5kYXByLnByb3RvLnJ1bnRpbWUudjEuSW52b2tlQmluZGluZ1JlcXVlc3QuTWV0YWRhdGFFbnRyeRIRCglvcGVyYXRpb24YBCABKAkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIqQBChVJbnZva2VCaW5kaW5nUmVzcG9uc2USDAoEZGF0YRgBIAEoDBJMCghtZXRhZGF0YRgCIAMoCzI6LmRhcHIucHJvdG8ucnVudGltZS52MS5JbnZva2VCaW5kaW5nUmVzcG9uc2UuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEirQEKEEdldFNlY3JldFJlcXVlc3QSEgoKc3RvcmVfbmFtZRgBIAEoCRILCgNrZXkYAiABKAkSRwoIbWV0YWRhdGEYAyADKAsyNS5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0U2VjcmV0UmVxdWVzdC5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASKCAQoRR2V0U2VjcmV0UmVzcG9uc2USQAoEZGF0YRgBIAMoCzIyLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRTZWNyZXRSZXNwb25zZS5EYXRhRW50cnkaKwoJRGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiqAEKFEdldEJ1bGtTZWNyZXRSZXF1ZXN0EhIKCnN0b3JlX25hbWUYASABKAkSSwoIbWV0YWRhdGEYAiADKAsyOS5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0QnVsa1NlY3JldFJlcXVlc3QuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEihQEKDlNlY3JldFJlc3BvbnNlEkMKB3NlY3JldHMYASADKAsyMi5kYXByLnByb3RvLnJ1bnRpbWUudjEuU2VjcmV0UmVzcG9uc2UuU2VjcmV0c0VudHJ5Gi4KDFNlY3JldHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIrEBChVHZXRCdWxrU2VjcmV0UmVzcG9uc2USRAoEZGF0YRgBIAMoCzI2LmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRCdWxrU2VjcmV0UmVzcG9uc2UuRGF0YUVudHJ5GlIKCURhdGFFbnRyeRILCgNrZXkYASABKAkSNAoFdmFsdWUYAiABKAsyJS5kYXByLnByb3RvLnJ1bnRpbWUudjEuU2VjcmV0UmVzcG9uc2U6AjgBImYKG1RyYW5zYWN0aW9uYWxTdGF0ZU9wZXJhdGlvbhIVCg1vcGVyYXRpb25UeXBlGAEgASgJEjAKB3JlcXVlc3QYAiABKAsyHy5kYXByLnByb3RvLmNvbW1vbi52MS5TdGF0ZUl0ZW0igwIKHkV4ZWN1dGVTdGF0ZVRyYW5zYWN0aW9uUmVxdWVzdBIRCglzdG9yZU5hbWUYASABKAkSRgoKb3BlcmF0aW9ucxgCIAMoCzIyLmRhcHIucHJvdG8ucnVudGltZS52MS5UcmFuc2FjdGlvbmFsU3RhdGVPcGVyYXRpb24SVQoIbWV0YWRhdGEYAyADKAsyQy5kYXByLnByb3RvLnJ1bnRpbWUudjEuRXhlY3V0ZVN0YXRlVHJhbnNhY3Rpb25SZXF1ZXN0Lk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIp4BChlSZWdpc3RlckFjdG9yVGltZXJSZXF1ZXN0EhIKCmFjdG9yX3R5cGUYASABKAkSEAoIYWN0b3JfaWQYAiABKAkSDAoEbmFtZRgDIAEoCRIQCghkdWVfdGltZRgEIAEoCRIOCgZwZXJpb2QYBSABKAkSEAoIY2FsbGJhY2sYBiABKAkSDAoEZGF0YRgHIAEoDBILCgN0dGwYCCABKAkiUQobVW5yZWdpc3RlckFjdG9yVGltZXJSZXF1ZXN0EhIKCmFjdG9yX3R5cGUYASABKAkSEAoIYWN0b3JfaWQYAiABKAkSDAoEbmFtZRgDIAEoCSKPAQocUmVnaXN0ZXJBY3RvclJlbWluZGVyUmVxdWVzdBISCgphY3Rvcl90eXBlGAEgASgJEhAKCGFjdG9yX2lkGAIgASgJEgwKBG5hbWUYAyABKAkSEAoIZHVlX3RpbWUYBCABKAkSDgoGcGVyaW9kGAUgASgJEgwKBGRhdGEYBiABKAwSCwoDdHRsGAcgASgJIlQKHlVucmVnaXN0ZXJBY3RvclJlbWluZGVyUmVxdWVzdBISCgphY3Rvcl90eXBlGAEgASgJEhAKCGFjdG9yX2lkGAIgASgJEgwKBG5hbWUYAyABKAkiSQoUR2V0QWN0b3JTdGF0ZVJlcXVlc3QSEgoKYWN0b3JfdHlwZRgBIAEoCRIQCghhY3Rvcl9pZBgCIAEoCRILCgNrZXkYAyABKAkipAEKFUdldEFjdG9yU3RhdGVSZXNwb25zZRIMCgRkYXRhGAEgASgMEkwKCG1ldGFkYXRhGAIgAygLMjouZGFwci5wcm90by5ydW50aW1lLnYxLkdldEFjdG9yU3RhdGVSZXNwb25zZS5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASKYAQojRXhlY3V0ZUFjdG9yU3RhdGVUcmFuc2FjdGlvblJlcXVlc3QSEgoKYWN0b3JfdHlwZRgBIAEoCRIQCghhY3Rvcl9pZBgCIAEoCRJLCgpvcGVyYXRpb25zGAMgAygLMjcuZGFwci5wcm90by5ydW50aW1lLnYxLlRyYW5zYWN0aW9uYWxBY3RvclN0YXRlT3BlcmF0aW9uIvUBCiBUcmFuc2FjdGlvbmFsQWN0b3JTdGF0ZU9wZXJhdGlvbhIVCg1vcGVyYXRpb25UeXBlGAEgASgJEgsKA2tleRgCIAEoCRIjCgV2YWx1ZRgDIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSVwoIbWV0YWRhdGEYBCADKAsyRS5kYXByLnByb3RvLnJ1bnRpbWUudjEuVHJhbnNhY3Rpb25hbEFjdG9yU3RhdGVPcGVyYXRpb24uTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEi1AEKEkludm9rZUFjdG9yUmVxdWVzdBISCgphY3Rvcl90eXBlGAEgASgJEhAKCGFjdG9yX2lkGAIgASgJEg4KBm1ldGhvZBgDIAEoCRIMCgRkYXRhGAQgASgMEkkKCG1ldGFkYXRhGAUgAygLMjcuZGFwci5wcm90by5ydW50aW1lLnYxLkludm9rZUFjdG9yUmVxdWVzdC5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASIjChNJbnZva2VBY3RvclJlc3BvbnNlEgwKBGRhdGEYASABKAwiFAoSR2V0TWV0YWRhdGFSZXF1ZXN0IoUGChNHZXRNZXRhZGF0YVJlc3BvbnNlEgoKAmlkGAEgASgJElEKE2FjdGl2ZV9hY3RvcnNfY291bnQYAiADKAsyKC5kYXByLnByb3RvLnJ1bnRpbWUudjEuQWN0aXZlQWN0b3JzQ291bnRCAhgBUgZhY3RvcnMSVgoVcmVnaXN0ZXJlZF9jb21wb25lbnRzGAMgAygLMisuZGFwci5wcm90by5ydW50aW1lLnYxLlJlZ2lzdGVyZWRDb21wb25lbnRzUgpjb21wb25lbnRzEmUKEWV4dGVuZGVkX21ldGFkYXRhGAQgAygLMkAuZGFwci5wcm90by5ydW50aW1lLnYxLkdldE1ldGFkYXRhUmVzcG9uc2UuRXh0ZW5kZWRNZXRhZGF0YUVudHJ5UghleHRlbmRlZBJACg1zdWJzY3JpcHRpb25zGAUgAygLMikuZGFwci5wcm90by5ydW50aW1lLnYxLlB1YnN1YlN1YnNjcmlwdGlvbhJDCg5odHRwX2VuZHBvaW50cxgGIAMoCzIrLmRhcHIucHJvdG8ucnVudGltZS52MS5NZXRhZGF0YUhUVFBFbmRwb2ludBJRChlhcHBfY29ubmVjdGlvbl9wcm9wZXJ0aWVzGAcgASgLMi4uZGFwci5wcm90by5ydW50aW1lLnYxLkFwcENvbm5lY3Rpb25Qcm9wZXJ0aWVzEhcKD3J1bnRpbWVfdmVyc2lvbhgIIAEoCRIYChBlbmFibGVkX2ZlYXR1cmVzGAkgAygJEjoKDWFjdG9yX3J1bnRpbWUYCiABKAsyIy5kYXByLnByb3RvLnJ1bnRpbWUudjEuQWN0b3JSdW50aW1lEkAKCXNjaGVkdWxlchgLIAEoCzIoLmRhcHIucHJvdG8ucnVudGltZS52MS5NZXRhZGF0YVNjaGVkdWxlckgAiAEBGjcKFUV4dGVuZGVkTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBQgwKCl9zY2hlZHVsZXIiMAoRTWV0YWRhdGFTY2hlZHVsZXISGwoTY29ubmVjdGVkX2FkZHJlc3NlcxgBIAMoCSKJAgoMQWN0b3JSdW50aW1lEk4KDnJ1bnRpbWVfc3RhdHVzGAEgASgOMjYuZGFwci5wcm90by5ydW50aW1lLnYxLkFjdG9yUnVudGltZS5BY3RvclJ1bnRpbWVTdGF0dXMSPwoNYWN0aXZlX2FjdG9ycxgCIAMoCzIoLmRhcHIucHJvdG8ucnVudGltZS52MS5BY3RpdmVBY3RvcnNDb3VudBISCgpob3N0X3JlYWR5GAMgASgIEhEKCXBsYWNlbWVudBgEIAEoCSJBChJBY3RvclJ1bnRpbWVTdGF0dXMSEAoMSU5JVElBTElaSU5HEAASDAoIRElTQUJMRUQQARILCgdSVU5OSU5HEAIiMAoRQWN0aXZlQWN0b3JzQ291bnQSDAoEdHlwZRgBIAEoCRINCgVjb3VudBgCIAEoBSJZChRSZWdpc3RlcmVkQ29tcG9uZW50cxIMCgRuYW1lGAEgASgJEgwKBHR5cGUYAiABKAkSDwoHdmVyc2lvbhgDIAEoCRIUCgxjYXBhYmlsaXRpZXMYBCADKAkiJAoUTWV0YWRhdGFIVFRQRW5kcG9pbnQSDAoEbmFtZRgBIAEoCSKxAQoXQXBwQ29ubmVjdGlvblByb3BlcnRpZXMSDAoEcG9ydBgBIAEoBRIQCghwcm90b2NvbBgCIAEoCRIXCg9jaGFubmVsX2FkZHJlc3MYAyABKAkSFwoPbWF4X2NvbmN1cnJlbmN5GAQgASgFEkQKBmhlYWx0aBgFIAEoCzI0LmRhcHIucHJvdG8ucnVudGltZS52MS5BcHBDb25uZWN0aW9uSGVhbHRoUHJvcGVydGllcyKRAQodQXBwQ29ubmVjdGlvbkhlYWx0aFByb3BlcnRpZXMSGQoRaGVhbHRoX2NoZWNrX3BhdGgYASABKAkSHQoVaGVhbHRoX3Byb2JlX2ludGVydmFsGAIgASgJEhwKFGhlYWx0aF9wcm9iZV90aW1lb3V0GAMgASgJEhgKEGhlYWx0aF90aHJlc2hvbGQYBCABKAUi1wIKElB1YnN1YlN1YnNjcmlwdGlvbhIfCgtwdWJzdWJfbmFtZRgBIAEoCVIKcHVic3VibmFtZRINCgV0b3BpYxgCIAEoCRJJCghtZXRhZGF0YRgDIAMoCzI3LmRhcHIucHJvdG8ucnVudGltZS52MS5QdWJzdWJTdWJzY3JpcHRpb24uTWV0YWRhdGFFbnRyeRI9CgVydWxlcxgEIAEoCzIuLmRhcHIucHJvdG8ucnVudGltZS52MS5QdWJzdWJTdWJzY3JpcHRpb25SdWxlcxIZChFkZWFkX2xldHRlcl90b3BpYxgFIAEoCRI7CgR0eXBlGAYgASgOMi0uZGFwci5wcm90by5ydW50aW1lLnYxLlB1YnN1YlN1YnNjcmlwdGlvblR5cGUaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIlcKF1B1YnN1YlN1YnNjcmlwdGlvblJ1bGVzEjwKBXJ1bGVzGAEgAygLMi0uZGFwci5wcm90by5ydW50aW1lLnYxLlB1YnN1YlN1YnNjcmlwdGlvblJ1bGUiNQoWUHVic3ViU3Vic2NyaXB0aW9uUnVsZRINCgVtYXRjaBgBIAEoCRIMCgRwYXRoGAIgASgJIjAKElNldE1ldGFkYXRhUmVxdWVzdBILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAkivAEKF0dldENvbmZpZ3VyYXRpb25SZXF1ZXN0EhIKCnN0b3JlX25hbWUYASABKAkSDAoEa2V5cxgCIAMoCRJOCghtZXRhZGF0YRgDIAMoCzI8LmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRDb25maWd1cmF0aW9uUmVxdWVzdC5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASK8AQoYR2V0Q29uZmlndXJhdGlvblJlc3BvbnNlEkkKBWl0ZW1zGAEgAygLMjouZGFwci5wcm90by5ydW50aW1lLnYxLkdldENvbmZpZ3VyYXRpb25SZXNwb25zZS5JdGVtc0VudHJ5GlUKCkl0ZW1zRW50cnkSCwoDa2V5GAEgASgJEjYKBXZhbHVlGAIgASgLMicuZGFwci5wcm90by5jb21tb24udjEuQ29uZmlndXJhdGlvbkl0ZW06AjgBIsgBCh1TdWJzY3JpYmVDb25maWd1cmF0aW9uUmVxdWVzdBISCgpzdG9yZV9uYW1lGAEgASgJEgwKBGtleXMYAiADKAkSVAoIbWV0YWRhdGEYAyADKAsyQi5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3Vic2NyaWJlQ29uZmlndXJhdGlvblJlcXVlc3QuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiQQofVW5zdWJzY3JpYmVDb25maWd1cmF0aW9uUmVxdWVzdBISCgpzdG9yZV9uYW1lGAEgASgJEgoKAmlkGAIgASgJItQBCh5TdWJzY3JpYmVDb25maWd1cmF0aW9uUmVzcG9uc2USCgoCaWQYASABKAkSTwoFaXRlbXMYAiADKAsyQC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3Vic2NyaWJlQ29uZmlndXJhdGlvblJlc3BvbnNlLkl0ZW1zRW50cnkaVQoKSXRlbXNFbnRyeRILCgNrZXkYASABKAkSNgoFdmFsdWUYAiABKAsyJy5kYXByLnByb3RvLmNvbW1vbi52MS5Db25maWd1cmF0aW9uSXRlbToCOAEiPwogVW5zdWJzY3JpYmVDb25maWd1cmF0aW9uUmVzcG9uc2USCgoCb2sYASABKAgSDwoHbWVzc2FnZRgCIAEoCSJoCg5UcnlMb2NrUmVxdWVzdBISCgpzdG9yZV9uYW1lGAEgASgJEhMKC3Jlc291cmNlX2lkGAIgASgJEhIKCmxvY2tfb3duZXIYAyABKAkSGQoRZXhwaXJ5X2luX3NlY29uZHMYBCABKAUiIgoPVHJ5TG9ja1Jlc3BvbnNlEg8KB3N1Y2Nlc3MYASABKAgiTAoNVW5sb2NrUmVxdWVzdBISCgpzdG9yZV9uYW1lGAEgASgJEhMKC3Jlc291cmNlX2lkGAIgASgJEhIKCmxvY2tfb3duZXIYAyABKAkirgEKDlVubG9ja1Jlc3BvbnNlEjwKBnN0YXR1cxgBIAEoDjIsLmRhcHIucHJvdG8ucnVudGltZS52MS5VbmxvY2tSZXNwb25zZS5TdGF0dXMiXgoGU3RhdHVzEgsKB1NVQ0NFU1MQABIXChNMT0NLX0RPRVNfTk9UX0VYSVNUEAESGgoWTE9DS19CRUxPTkdTX1RPX09USEVSUxACEhIKDklOVEVSTkFMX0VSUk9SEAMioQEKE1N1YnRsZUdldEtleVJlcXVlc3QSFgoOY29tcG9uZW50X25hbWUYASABKAkSDAoEbmFtZRgCIAEoCRJECgZmb3JtYXQYAyABKA4yNC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlR2V0S2V5UmVxdWVzdC5LZXlGb3JtYXQiHgoJS2V5Rm9ybWF0EgcKA1BFTRAAEggKBEpTT04QASI4ChRTdWJ0bGVHZXRLZXlSZXNwb25zZRIMCgRuYW1lGAEgASgJEhIKCnB1YmxpY19rZXkYAiABKAkijgEKFFN1YnRsZUVuY3J5cHRSZXF1ZXN0EhYKDmNvbXBvbmVudF9uYW1lGAEgASgJEhEKCXBsYWludGV4dBgCIAEoDBIRCglhbGdvcml0aG0YAyABKAkSEAoIa2V5X25hbWUYBCABKAkSDQoFbm9uY2UYBSABKAwSFwoPYXNzb2NpYXRlZF9kYXRhGAYgASgMIjgKFVN1YnRsZUVuY3J5cHRSZXNwb25zZRISCgpjaXBoZXJ0ZXh0GAEgASgMEgsKA3RhZxgCIAEoDCKcAQoUU3VidGxlRGVjcnlwdFJlcXVlc3QSFgoOY29tcG9uZW50X25hbWUYASABKAkSEgoKY2lwaGVydGV4dBgCIAEoDBIRCglhbGdvcml0aG0YAyABKAkSEAoIa2V5X25hbWUYBCABKAkSDQoFbm9uY2UYBSABKAwSCwoDdGFnGAYgASgMEhcKD2Fzc29jaWF0ZWRfZGF0YRgHIAEoDCIqChVTdWJ0bGVEZWNyeXB0UmVzcG9uc2USEQoJcGxhaW50ZXh0GAEgASgMIpIBChRTdWJ0bGVXcmFwS2V5UmVxdWVzdBIWCg5jb21wb25lbnRfbmFtZRgBIAEoCRIVCg1wbGFpbnRleHRfa2V5GAIgASgMEhEKCWFsZ29yaXRobRgDIAEoCRIQCghrZXlfbmFtZRgEIAEoCRINCgVub25jZRgFIAEoDBIXCg9hc3NvY2lhdGVkX2RhdGEYBiABKAwiOQoVU3VidGxlV3JhcEtleVJlc3BvbnNlEhMKC3dyYXBwZWRfa2V5GAEgASgMEgsKA3RhZxgCIAEoDCKfAQoWU3VidGxlVW53cmFwS2V5UmVxdWVzdBIWCg5jb21wb25lbnRfbmFtZRgBIAEoCRITCgt3cmFwcGVkX2tleRgCIAEoDBIRCglhbGdvcml0aG0YAyABKAkSEAoIa2V5X25hbWUYBCABKAkSDQoFbm9uY2UYBSABKAwSCwoDdGFnGAYgASgMEhcKD2Fzc29jaWF0ZWRfZGF0YRgHIAEoDCIwChdTdWJ0bGVVbndyYXBLZXlSZXNwb25zZRIVCg1wbGFpbnRleHRfa2V5GAEgASgMImAKEVN1YnRsZVNpZ25SZXF1ZXN0EhYKDmNvbXBvbmVudF9uYW1lGAEgASgJEg4KBmRpZ2VzdBgCIAEoDBIRCglhbGdvcml0aG0YAyABKAkSEAoIa2V5X25hbWUYBCABKAkiJwoSU3VidGxlU2lnblJlc3BvbnNlEhEKCXNpZ25hdHVyZRgBIAEoDCJ1ChNTdWJ0bGVWZXJpZnlSZXF1ZXN0EhYKDmNvbXBvbmVudF9uYW1lGAEgASgJEg4KBmRpZ2VzdBgCIAEoDBIRCglhbGdvcml0aG0YAyABKAkSEAoIa2V5X25hbWUYBCABKAkSEQoJc2lnbmF0dXJlGAUgASgMIiUKFFN1YnRsZVZlcmlmeVJlc3BvbnNlEg0KBXZhbGlkGAEgASgIIoUBCg5FbmNyeXB0UmVxdWVzdBI9CgdvcHRpb25zGAEgASgLMiwuZGFwci5wcm90by5ydW50aW1lLnYxLkVuY3J5cHRSZXF1ZXN0T3B0aW9ucxI0CgdwYXlsb2FkGAIgASgLMiMuZGFwci5wcm90by5jb21tb24udjEuU3RyZWFtUGF5bG9hZCK8AQoVRW5jcnlwdFJlcXVlc3RPcHRpb25zEhYKDmNvbXBvbmVudF9uYW1lGAEgASgJEhAKCGtleV9uYW1lGAIgASgJEhoKEmtleV93cmFwX2FsZ29yaXRobRgDIAEoCRIeChZkYXRhX2VuY3J5cHRpb25fY2lwaGVyGAogASgJEiAKGG9taXRfZGVjcnlwdGlvbl9rZXlfbmFtZRgLIAEoCBIbChNkZWNyeXB0aW9uX2tleV9uYW1lGAwgASgJIkcKD0VuY3J5cHRSZXNwb25zZRI0CgdwYXlsb2FkGAEgASgLMiMuZGFwci5wcm90by5jb21tb24udjEuU3RyZWFtUGF5bG9hZCKFAQoORGVjcnlwdFJlcXVlc3QSPQoHb3B0aW9ucxgBIAEoCzIsLmRhcHIucHJvdG8ucnVudGltZS52MS5EZWNyeXB0UmVxdWVzdE9wdGlvbnMSNAoHcGF5bG9hZBgCIAEoCzIjLmRhcHIucHJvdG8uY29tbW9uLnYxLlN0cmVhbVBheWxvYWQiQQoVRGVjcnlwdFJlcXVlc3RPcHRpb25zEhYKDmNvbXBvbmVudF9uYW1lGAEgASgJEhAKCGtleV9uYW1lGAwgASgJIkcKD0RlY3J5cHRSZXNwb25zZRI0CgdwYXlsb2FkGAEgASgLMiMuZGFwci5wcm90by5jb21tb24udjEuU3RyZWFtUGF5bG9hZCJRChJHZXRXb3JrZmxvd1JlcXVlc3QSHwoLaW5zdGFuY2VfaWQYASABKAlSCmluc3RhbmNlSUQSGgoSd29ya2Zsb3dfY29tcG9uZW50GAIgASgJIs0CChNHZXRXb3JrZmxvd1Jlc3BvbnNlEh8KC2luc3RhbmNlX2lkGAEgASgJUgppbnN0YW5jZUlEEhUKDXdvcmtmbG93X25hbWUYAiABKAkSLgoKY3JlYXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASMwoPbGFzdF91cGRhdGVkX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIWCg5ydW50aW1lX3N0YXR1cxgFIAEoCRJOCgpwcm9wZXJ0aWVzGAYgAygLMjouZGFwci5wcm90by5ydW50aW1lLnYxLkdldFdvcmtmbG93UmVzcG9uc2UuUHJvcGVydGllc0VudHJ5GjEKD1Byb3BlcnRpZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIvQBChRTdGFydFdvcmtmbG93UmVxdWVzdBIfCgtpbnN0YW5jZV9pZBgBIAEoCVIKaW5zdGFuY2VJRBIaChJ3b3JrZmxvd19jb21wb25lbnQYAiABKAkSFQoNd29ya2Zsb3dfbmFtZRgDIAEoCRJJCgdvcHRpb25zGAQgAygLMjguZGFwci5wcm90by5ydW50aW1lLnYxLlN0YXJ0V29ya2Zsb3dSZXF1ZXN0Lk9wdGlvbnNFbnRyeRINCgVpbnB1dBgFIAEoDBouCgxPcHRpb25zRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASI4ChVTdGFydFdvcmtmbG93UmVzcG9uc2USHwoLaW5zdGFuY2VfaWQYASABKAlSCmluc3RhbmNlSUQiVwoYVGVybWluYXRlV29ya2Zsb3dSZXF1ZXN0Eh8KC2luc3RhbmNlX2lkGAEgASgJUgppbnN0YW5jZUlEEhoKEndvcmtmbG93X2NvbXBvbmVudBgCIAEoCSJTChRQYXVzZVdvcmtmbG93UmVxdWVzdBIfCgtpbnN0YW5jZV9pZBgBIAEoCVIKaW5zdGFuY2VJRBIaChJ3b3JrZmxvd19jb21wb25lbnQYAiABKAkiVAoVUmVzdW1lV29ya2Zsb3dSZXF1ZXN0Eh8KC2luc3RhbmNlX2lkGAEgASgJUgppbnN0YW5jZUlEEhoKEndvcmtmbG93X2NvbXBvbmVudBgCIAEoCSKAAQoZUmFpc2VFdmVudFdvcmtmbG93UmVxdWVzdBIfCgtpbnN0YW5jZV9pZBgBIAEoCVIKaW5zdGFuY2VJRBIaChJ3b3JrZmxvd19jb21wb25lbnQYAiABKAkSEgoKZXZlbnRfbmFtZRgDIAEoCRISCgpldmVudF9kYXRhGAQgASgMIlMKFFB1cmdlV29ya2Zsb3dSZXF1ZXN0Eh8KC2luc3RhbmNlX2lkGAEgASgJUgppbnN0YW5jZUlEEhoKEndvcmtmbG93X2NvbXBvbmVudBgCIAEoCSIRCg9TaHV0ZG93blJlcXVlc3QikwIKA0pvYhIMCgRuYW1lGAEgASgJEhUKCHNjaGVkdWxlGAIgASgJSACIAQESFAoHcmVwZWF0cxgDIAEoDUgBiAEBEhUKCGR1ZV90aW1lGAQgASgJSAKIAQESEAoDdHRsGAUgASgJSAOIAQESIgoEZGF0YRgGIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSQwoOZmFpbHVyZV9wb2xpY3kYByABKAsyJi5kYXByLnByb3RvLmNvbW1vbi52MS5Kb2JGYWlsdXJlUG9saWN5SASIAQFCCwoJX3NjaGVkdWxlQgoKCF9yZXBlYXRzQgsKCV9kdWVfdGltZUIGCgRfdHRsQhEKD19mYWlsdXJlX3BvbGljeSJQChJTY2hlZHVsZUpvYlJlcXVlc3QSJwoDam9iGAEgASgLMhouZGFwci5wcm90by5ydW50aW1lLnYxLkpvYhIRCglvdmVyd3JpdGUYAiABKAgiFQoTU2NoZWR1bGVKb2JSZXNwb25zZSIdCg1HZXRKb2JSZXF1ZXN0EgwKBG5hbWUYASABKAkiOQoOR2V0Sm9iUmVzcG9uc2USJwoDam9iGAEgASgLMhouZGFwci5wcm90by5ydW50aW1lLnYxLkpvYiIgChBEZWxldGVKb2JSZXF1ZXN0EgwKBG5hbWUYASABKAkiEwoRRGVsZXRlSm9iUmVzcG9uc2Ui6wMKE0NvbnZlcnNhdGlvblJlcXVlc3QSDAoEbmFtZRgBIAEoCRIWCgljb250ZXh0SUQYAiABKAlIAIgBARI4CgZpbnB1dHMYAyADKAsyKC5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uSW5wdXQSTgoKcGFyYW1ldGVycxgEIAMoCzI6LmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25SZXF1ZXN0LlBhcmFtZXRlcnNFbnRyeRJKCghtZXRhZGF0YRgFIAMoCzI4LmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25SZXF1ZXN0Lk1ldGFkYXRhRW50cnkSFQoIc2NydWJQSUkYBiABKAhIAYgBARIYCgt0ZW1wZXJhdHVyZRgHIAEoAUgCiAEBGkcKD1BhcmFtZXRlcnNFbnRyeRILCgNrZXkYASABKAkSIwoFdmFsdWUYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55OgI4ARovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAE6AhgBQgwKCl9jb250ZXh0SURCCwoJX3NjcnViUElJQg4KDF90ZW1wZXJhdHVyZSLmBAoZQ29udmVyc2F0aW9uUmVxdWVzdEFscGhhMhIMCgRuYW1lGAEgASgJEhcKCmNvbnRleHRfaWQYAiABKAlIAIgBARI+CgZpbnB1dHMYAyADKAsyLi5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uSW5wdXRBbHBoYTISVAoKcGFyYW1ldGVycxgEIAMoCzJALmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25SZXF1ZXN0QWxwaGEyLlBhcmFtZXRlcnNFbnRyeRJQCghtZXRhZGF0YRgFIAMoCzI+LmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25SZXF1ZXN0QWxwaGEyLk1ldGFkYXRhRW50cnkSFgoJc2NydWJfcGlpGAYgASgISAGIAQESGAoLdGVtcGVyYXR1cmUYByABKAFIAogBARI3CgV0b29scxgIIAMoCzIoLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25Ub29scxIYCgt0b29sX2Nob2ljZRgJIAEoCUgDiAEBGkcKD1BhcmFtZXRlcnNFbnRyeRILCgNrZXkYASABKAkSIwoFdmFsdWUYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55OgI4ARovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAFCDQoLX2NvbnRleHRfaWRCDAoKX3NjcnViX3BpaUIOCgxfdGVtcGVyYXR1cmVCDgoMX3Rvb2xfY2hvaWNlImgKEUNvbnZlcnNhdGlvbklucHV0Eg8KB2NvbnRlbnQYASABKAkSEQoEcm9sZRgCIAEoCUgAiAEBEhUKCHNjcnViUElJGAMgASgISAGIAQE6AhgBQgcKBV9yb2xlQgsKCV9zY3J1YlBJSSJ9ChdDb252ZXJzYXRpb25JbnB1dEFscGhhMhI8CghtZXNzYWdlcxgBIAMoCzIqLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25NZXNzYWdlEhYKCXNjcnViX3BpaRgCIAEoCEgAiAEBQgwKCl9zY3J1Yl9waWkilwMKE0NvbnZlcnNhdGlvbk1lc3NhZ2USTQoMb2ZfZGV2ZWxvcGVyGAEgASgLMjUuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvbk1lc3NhZ2VPZkRldmVsb3BlckgAEkcKCW9mX3N5c3RlbRgCIAEoCzIyLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25NZXNzYWdlT2ZTeXN0ZW1IABJDCgdvZl91c2VyGAMgASgLMjAuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvbk1lc3NhZ2VPZlVzZXJIABJNCgxvZl9hc3Npc3RhbnQYBCABKAsyNS5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uTWVzc2FnZU9mQXNzaXN0YW50SAASQwoHb2ZfdG9vbBgFIAEoCzIwLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25NZXNzYWdlT2ZUb29sSABCDwoNbWVzc2FnZV90eXBlcyKAAQoeQ29udmVyc2F0aW9uTWVzc2FnZU9mRGV2ZWxvcGVyEhEKBG5hbWUYASABKAlIAIgBARJCCgdjb250ZW50GAIgAygLMjEuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvbk1lc3NhZ2VDb250ZW50QgcKBV9uYW1lIn0KG0NvbnZlcnNhdGlvbk1lc3NhZ2VPZlN5c3RlbRIRCgRuYW1lGAEgASgJSACIAQESQgoHY29udGVudBgCIAMoCzIxLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25NZXNzYWdlQ29udGVudEIHCgVfbmFtZSJ7ChlDb252ZXJzYXRpb25NZXNzYWdlT2ZVc2VyEhEKBG5hbWUYASABKAlIAIgBARJCCgdjb250ZW50GAIgAygLMjEuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvbk1lc3NhZ2VDb250ZW50QgcKBV9uYW1lIsIBCh5Db252ZXJzYXRpb25NZXNzYWdlT2ZBc3Npc3RhbnQSEQoEbmFtZRgBIAEoCUgAiAEBEkIKB2NvbnRlbnQYAiADKAsyMS5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uTWVzc2FnZUNvbnRlbnQSQAoKdG9vbF9jYWxscxgDIAMoCzIsLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25Ub29sQ2FsbHNCBwoFX25hbWUijwEKGUNvbnZlcnNhdGlvbk1lc3NhZ2VPZlRvb2wSFAoHdG9vbF9pZBgBIAEoCUgAiAEBEgwKBG5hbWUYAiABKAkSQgoHY29udGVudBgDIAMoCzIxLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25NZXNzYWdlQ29udGVudEIKCghfdG9vbF9pZCKJAQoVQ29udmVyc2F0aW9uVG9vbENhbGxzEg8KAmlkGAEgASgJSAGIAQESSgoIZnVuY3Rpb24YAiABKAsyNi5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uVG9vbENhbGxzT2ZGdW5jdGlvbkgAQgwKCnRvb2xfdHlwZXNCBQoDX2lkIkIKH0NvbnZlcnNhdGlvblRvb2xDYWxsc09mRnVuY3Rpb24SDAoEbmFtZRgBIAEoCRIRCglhcmd1bWVudHMYAiABKAkiKgoaQ29udmVyc2F0aW9uTWVzc2FnZUNvbnRlbnQSDAoEdGV4dBgBIAEoCSLAAQoSQ29udmVyc2F0aW9uUmVzdWx0Eg4KBnJlc3VsdBgBIAEoCRJNCgpwYXJhbWV0ZXJzGAIgAygLMjkuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblJlc3VsdC5QYXJhbWV0ZXJzRW50cnkaRwoPUGFyYW1ldGVyc0VudHJ5EgsKA2tleRgBIAEoCRIjCgV2YWx1ZRgCIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5Bbnk6AjgBOgIYASJdChhDb252ZXJzYXRpb25SZXN1bHRBbHBoYTISQQoHY2hvaWNlcxgBIAMoCzIwLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25SZXN1bHRDaG9pY2VzIoQBChlDb252ZXJzYXRpb25SZXN1bHRDaG9pY2VzEhUKDWZpbmlzaF9yZWFzb24YASABKAkSDQoFaW5kZXgYAiABKAMSQQoHbWVzc2FnZRgDIAEoCzIwLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25SZXN1bHRNZXNzYWdlIm4KGUNvbnZlcnNhdGlvblJlc3VsdE1lc3NhZ2USDwoHY29udGVudBgBIAEoCRJACgp0b29sX2NhbGxzGAIgAygLMiwuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblRvb2xDYWxscyJ8ChRDb252ZXJzYXRpb25SZXNwb25zZRIWCgljb250ZXh0SUQYASABKAlIAIgBARI6CgdvdXRwdXRzGAIgAygLMikuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblJlc3VsdDoCGAFCDAoKX2NvbnRleHRJRCKGAQoaQ29udmVyc2F0aW9uUmVzcG9uc2VBbHBoYTISFwoKY29udGV4dF9pZBgBIAEoCUgAiAEBEkAKB291dHB1dHMYAiADKAsyLy5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uUmVzdWx0QWxwaGEyQg0KC19jb250ZXh0X2lkImcKEUNvbnZlcnNhdGlvblRvb2xzEkQKCGZ1bmN0aW9uGAEgASgLMjAuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblRvb2xzRnVuY3Rpb25IAEIMCgp0b29sX3R5cGVzIoABChlDb252ZXJzYXRpb25Ub29sc0Z1bmN0aW9uEgwKBG5hbWUYASABKAkSGAoLZGVzY3JpcHRpb24YAiABKAlIAIgBARIrCgpwYXJhbWV0ZXJzGAMgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdEIOCgxfZGVzY3JpcHRpb24qVwoWUHVic3ViU3Vic2NyaXB0aW9uVHlwZRILCgdVTktOT1dOEAASDwoLREVDTEFSQVRJVkUQARIQCgxQUk9HUkFNTUFUSUMQAhINCglTVFJFQU1JTkcQAzK3MgoERGFwchJkCg1JbnZva2VTZXJ2aWNlEisuZGFwci5wcm90by5ydW50aW1lLnYxLkludm9rZVNlcnZpY2VSZXF1ZXN0GiQuZGFwci5wcm90by5jb21tb24udjEuSW52b2tlUmVzcG9uc2UiABJdCghHZXRTdGF0ZRImLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRTdGF0ZVJlcXVlc3QaJy5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0U3RhdGVSZXNwb25zZSIAEmkKDEdldEJ1bGtTdGF0ZRIqLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRCdWxrU3RhdGVSZXF1ZXN0GisuZGFwci5wcm90by5ydW50aW1lLnYxLkdldEJ1bGtTdGF0ZVJlc3BvbnNlIgASTgoJU2F2ZVN0YXRlEicuZGFwci5wcm90by5ydW50aW1lLnYxLlNhdmVTdGF0ZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJpChBRdWVyeVN0YXRlQWxwaGExEiguZGFwci5wcm90by5ydW50aW1lLnYxLlF1ZXJ5U3RhdGVSZXF1ZXN0GikuZGFwci5wcm90by5ydW50aW1lLnYxLlF1ZXJ5U3RhdGVSZXNwb25zZSIAElIKC0RlbGV0ZVN0YXRlEikuZGFwci5wcm90by5ydW50aW1lLnYxLkRlbGV0ZVN0YXRlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEloKD0RlbGV0ZUJ1bGtTdGF0ZRItLmRhcHIucHJvdG8ucnVudGltZS52MS5EZWxldGVCdWxrU3RhdGVSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASagoXRXhlY3V0ZVN0YXRlVHJhbnNhY3Rpb24SNS5kYXByLnByb3RvLnJ1bnRpbWUudjEuRXhlY3V0ZVN0YXRlVHJhbnNhY3Rpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASVAoMUHVibGlzaEV2ZW50EiouZGFwci5wcm90by5ydW50aW1lLnYxLlB1Ymxpc2hFdmVudFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJxChZCdWxrUHVibGlzaEV2ZW50QWxwaGExEikuZGFwci5wcm90by5ydW50aW1lLnYxLkJ1bGtQdWJsaXNoUmVxdWVzdBoqLmRhcHIucHJvdG8ucnVudGltZS52MS5CdWxrUHVibGlzaFJlc3BvbnNlIgASlwEKGlN1YnNjcmliZVRvcGljRXZlbnRzQWxwaGExEjguZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnNjcmliZVRvcGljRXZlbnRzUmVxdWVzdEFscGhhMRo5LmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJzY3JpYmVUb3BpY0V2ZW50c1Jlc3BvbnNlQWxwaGExIgAoATABEmwKDUludm9rZUJpbmRpbmcSKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuSW52b2tlQmluZGluZ1JlcXVlc3QaLC5kYXByLnByb3RvLnJ1bnRpbWUudjEuSW52b2tlQmluZGluZ1Jlc3BvbnNlIgASYAoJR2V0U2VjcmV0EicuZGFwci5wcm90by5ydW50aW1lLnYxLkdldFNlY3JldFJlcXVlc3QaKC5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0U2VjcmV0UmVzcG9uc2UiABJsCg1HZXRCdWxrU2VjcmV0EisuZGFwci5wcm90by5ydW50aW1lLnYxLkdldEJ1bGtTZWNyZXRSZXF1ZXN0GiwuZGFwci5wcm90by5ydW50aW1lLnYxLkdldEJ1bGtTZWNyZXRSZXNwb25zZSIAEmAKElJlZ2lzdGVyQWN0b3JUaW1lchIwLmRhcHIucHJvdG8ucnVudGltZS52MS5SZWdpc3RlckFjdG9yVGltZXJSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASZAoUVW5yZWdpc3RlckFjdG9yVGltZXISMi5kYXByLnByb3RvLnJ1bnRpbWUudjEuVW5yZWdpc3RlckFjdG9yVGltZXJSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASZgoVUmVnaXN0ZXJBY3RvclJlbWluZGVyEjMuZGFwci5wcm90by5ydW50aW1lLnYxLlJlZ2lzdGVyQWN0b3JSZW1pbmRlclJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJqChdVbnJlZ2lzdGVyQWN0b3JSZW1pbmRlchI1LmRhcHIucHJvdG8ucnVudGltZS52MS5VbnJlZ2lzdGVyQWN0b3JSZW1pbmRlclJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJsCg1HZXRBY3RvclN0YXRlEisuZGFwci5wcm90by5ydW50aW1lLnYxLkdldEFjdG9yU3RhdGVSZXF1ZXN0GiwuZGFwci5wcm90by5ydW50aW1lLnYxLkdldEFjdG9yU3RhdGVSZXNwb25zZSIAEnQKHEV4ZWN1dGVBY3RvclN0YXRlVHJhbnNhY3Rpb24SOi5kYXByLnByb3RvLnJ1bnRpbWUudjEuRXhlY3V0ZUFjdG9yU3RhdGVUcmFuc2FjdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJmCgtJbnZva2VBY3RvchIpLmRhcHIucHJvdG8ucnVudGltZS52MS5JbnZva2VBY3RvclJlcXVlc3QaKi5kYXByLnByb3RvLnJ1bnRpbWUudjEuSW52b2tlQWN0b3JSZXNwb25zZSIAEnsKFkdldENvbmZpZ3VyYXRpb25BbHBoYTESLi5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0Q29uZmlndXJhdGlvblJlcXVlc3QaLy5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0Q29uZmlndXJhdGlvblJlc3BvbnNlIgASdQoQR2V0Q29uZmlndXJhdGlvbhIuLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRDb25maWd1cmF0aW9uUmVxdWVzdBovLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRDb25maWd1cmF0aW9uUmVzcG9uc2UiABKPAQocU3Vic2NyaWJlQ29uZmlndXJhdGlvbkFscGhhMRI0LmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJzY3JpYmVDb25maWd1cmF0aW9uUmVxdWVzdBo1LmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJzY3JpYmVDb25maWd1cmF0aW9uUmVzcG9uc2UiADABEokBChZTdWJzY3JpYmVDb25maWd1cmF0aW9uEjQuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnNjcmliZUNvbmZpZ3VyYXRpb25SZXF1ZXN0GjUuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnNjcmliZUNvbmZpZ3VyYXRpb25SZXNwb25zZSIAMAESkwEKHlVuc3Vic2NyaWJlQ29uZmlndXJhdGlvbkFscGhhMRI2LmRhcHIucHJvdG8ucnVudGltZS52MS5VbnN1YnNjcmliZUNvbmZpZ3VyYXRpb25SZXF1ZXN0GjcuZGFwci5wcm90by5ydW50aW1lLnYxLlVuc3Vic2NyaWJlQ29uZmlndXJhdGlvblJlc3BvbnNlIgASjQEKGFVuc3Vic2NyaWJlQ29uZmlndXJhdGlvbhI2LmRhcHIucHJvdG8ucnVudGltZS52MS5VbnN1YnNjcmliZUNvbmZpZ3VyYXRpb25SZXF1ZXN0GjcuZGFwci5wcm90by5ydW50aW1lLnYxLlVuc3Vic2NyaWJlQ29uZmlndXJhdGlvblJlc3BvbnNlIgASYAoNVHJ5TG9ja0FscGhhMRIlLmRhcHIucHJvdG8ucnVudGltZS52MS5UcnlMb2NrUmVxdWVzdBomLmRhcHIucHJvdG8ucnVudGltZS52MS5UcnlMb2NrUmVzcG9uc2UiABJdCgxVbmxvY2tBbHBoYTESJC5kYXByLnByb3RvLnJ1bnRpbWUudjEuVW5sb2NrUmVxdWVzdBolLmRhcHIucHJvdG8ucnVudGltZS52MS5VbmxvY2tSZXNwb25zZSIAEmIKDUVuY3J5cHRBbHBoYTESJS5kYXByLnByb3RvLnJ1bnRpbWUudjEuRW5jcnlwdFJlcXVlc3QaJi5kYXByLnByb3RvLnJ1bnRpbWUudjEuRW5jcnlwdFJlc3BvbnNlKAEwARJiCg1EZWNyeXB0QWxwaGExEiUuZGFwci5wcm90by5ydW50aW1lLnYxLkRlY3J5cHRSZXF1ZXN0GiYuZGFwci5wcm90by5ydW50aW1lLnYxLkRlY3J5cHRSZXNwb25zZSgBMAESZgoLR2V0TWV0YWRhdGESKS5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0TWV0YWRhdGFSZXF1ZXN0GiouZGFwci5wcm90by5ydW50aW1lLnYxLkdldE1ldGFkYXRhUmVzcG9uc2UiABJSCgtTZXRNZXRhZGF0YRIpLmRhcHIucHJvdG8ucnVudGltZS52MS5TZXRNZXRhZGF0YVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJtChJTdWJ0bGVHZXRLZXlBbHBoYTESKi5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlR2V0S2V5UmVxdWVzdBorLmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJ0bGVHZXRLZXlSZXNwb25zZRJwChNTdWJ0bGVFbmNyeXB0QWxwaGExEisuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnRsZUVuY3J5cHRSZXF1ZXN0GiwuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnRsZUVuY3J5cHRSZXNwb25zZRJwChNTdWJ0bGVEZWNyeXB0QWxwaGExEisuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnRsZURlY3J5cHRSZXF1ZXN0GiwuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnRsZURlY3J5cHRSZXNwb25zZRJwChNTdWJ0bGVXcmFwS2V5QWxwaGExEisuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnRsZVdyYXBLZXlSZXF1ZXN0GiwuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnRsZVdyYXBLZXlSZXNwb25zZRJ2ChVTdWJ0bGVVbndyYXBLZXlBbHBoYTESLS5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlVW53cmFwS2V5UmVxdWVzdBouLmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJ0bGVVbndyYXBLZXlSZXNwb25zZRJnChBTdWJ0bGVTaWduQWxwaGExEiguZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnRsZVNpZ25SZXF1ZXN0GikuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnRsZVNpZ25SZXNwb25zZRJtChJTdWJ0bGVWZXJpZnlBbHBoYTESKi5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlVmVyaWZ5UmVxdWVzdBorLmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJ0bGVWZXJpZnlSZXNwb25zZRJ1ChNTdGFydFdvcmtmbG93QWxwaGExEisuZGFwci5wcm90by5ydW50aW1lLnYxLlN0YXJ0V29ya2Zsb3dSZXF1ZXN0GiwuZGFwci5wcm90by5ydW50aW1lLnYxLlN0YXJ0V29ya2Zsb3dSZXNwb25zZSIDiAIBEm8KEUdldFdvcmtmbG93QWxwaGExEikuZGFwci5wcm90by5ydW50aW1lLnYxLkdldFdvcmtmbG93UmVxdWVzdBoqLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRXb3JrZmxvd1Jlc3BvbnNlIgOIAgESXwoTUHVyZ2VXb3JrZmxvd0FscGhhMRIrLmRhcHIucHJvdG8ucnVudGltZS52MS5QdXJnZVdvcmtmbG93UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIDiAIBEmcKF1Rlcm1pbmF0ZVdvcmtmbG93QWxwaGExEi8uZGFwci5wcm90by5ydW50aW1lLnYxLlRlcm1pbmF0ZVdvcmtmbG93UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIDiAIBEl8KE1BhdXNlV29ya2Zsb3dBbHBoYTESKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuUGF1c2VXb3JrZmxvd1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiA4gCARJhChRSZXN1bWVXb3JrZmxvd0FscGhhMRIsLmRhcHIucHJvdG8ucnVudGltZS52MS5SZXN1bWVXb3JrZmxvd1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiA4gCARJpChhSYWlzZUV2ZW50V29ya2Zsb3dBbHBoYTESMC5kYXByLnByb3RvLnJ1bnRpbWUudjEuUmFpc2VFdmVudFdvcmtmbG93UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIDiAIBEnEKElN0YXJ0V29ya2Zsb3dCZXRhMRIrLmRhcHIucHJvdG8ucnVudGltZS52MS5TdGFydFdvcmtmbG93UmVxdWVzdBosLmRhcHIucHJvdG8ucnVudGltZS52MS5TdGFydFdvcmtmbG93UmVzcG9uc2UiABJrChBHZXRXb3JrZmxvd0JldGExEikuZGFwci5wcm90by5ydW50aW1lLnYxLkdldFdvcmtmbG93UmVxdWVzdBoqLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRXb3JrZmxvd1Jlc3BvbnNlIgASWwoSUHVyZ2VXb3JrZmxvd0JldGExEisuZGFwci5wcm90by5ydW50aW1lLnYxLlB1cmdlV29ya2Zsb3dSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASYwoWVGVybWluYXRlV29ya2Zsb3dCZXRhMRIvLmRhcHIucHJvdG8ucnVudGltZS52MS5UZXJtaW5hdGVXb3JrZmxvd1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJbChJQYXVzZVdvcmtmbG93QmV0YTESKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuUGF1c2VXb3JrZmxvd1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJdChNSZXN1bWVXb3JrZmxvd0JldGExEiwuZGFwci5wcm90by5ydW50aW1lLnYxLlJlc3VtZVdvcmtmbG93UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEmUKF1JhaXNlRXZlbnRXb3JrZmxvd0JldGExEjAuZGFwci5wcm90by5ydW50aW1lLnYxLlJhaXNlRXZlbnRXb3JrZmxvd1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJMCghTaHV0ZG93bhImLmRhcHIucHJvdG8ucnVudGltZS52MS5TaHV0ZG93blJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJsChFTY2hlZHVsZUpvYkFscGhhMRIpLmRhcHIucHJvdG8ucnVudGltZS52MS5TY2hlZHVsZUpvYlJlcXVlc3QaKi5kYXByLnByb3RvLnJ1bnRpbWUudjEuU2NoZWR1bGVKb2JSZXNwb25zZSIAEl0KDEdldEpvYkFscGhhMRIkLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRKb2JSZXF1ZXN0GiUuZGFwci5wcm90by5ydW50aW1lLnYxLkdldEpvYlJlc3BvbnNlIgASZgoPRGVsZXRlSm9iQWxwaGExEicuZGFwci5wcm90by5ydW50aW1lLnYxLkRlbGV0ZUpvYlJlcXVlc3QaKC5kYXByLnByb3RvLnJ1bnRpbWUudjEuRGVsZXRlSm9iUmVzcG9uc2UiABJrCg5Db252ZXJzZUFscGhhMRIqLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25SZXF1ZXN0GisuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblJlc3BvbnNlIgASdwoOQ29udmVyc2VBbHBoYTISMC5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uUmVxdWVzdEFscGhhMhoxLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25SZXNwb25zZUFscGhhMiIAQtABChljb20uZGFwci5wcm90by5ydW50aW1lLnYxQglEYXByUHJvdG9QAVoxZ2l0aHViLmNvbS9kYXByL2RhcHIvcGtnL3Byb3RvL3J1bnRpbWUvdjE7cnVudGltZaICA0RQUqoCFURhcHIuUHJvdG8uUnVudGltZS5WMcoCFURhcHJcUHJvdG9cUnVudGltZVxWMeICIURhcHJcUHJvdG9cUnVudGltZVxWMVxHUEJNZXRhZGF0YeoCGERhcHI6OlByb3RvOjpSdW50aW1lOjpWMWIGcHJvdG8z", [file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_timestamp, file_google_protobuf_struct, file_dapr_proto_common_v1_common, file_dapr_proto_runtime_v1_appcallback]); /** - * 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 + * Describes the message dapr.proto.runtime.v1.InvokeServiceRequest. + * Use `create(InvokeServiceRequestSchema)` to create a new message. */ -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 - ); - } -}; - +export const InvokeServiceRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 0); /** - * optional string instance_id = 1; - * @return {string} + * Describes the message dapr.proto.runtime.v1.GetStateRequest. + * Use `create(GetStateRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +export const GetStateRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 1); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.GetBulkStateRequest. + * Use `create(GetBulkStateRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +export const GetBulkStateRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 2); /** - * optional string workflow_component = 2; - * @return {string} + * Describes the message dapr.proto.runtime.v1.GetBulkStateResponse. + * Use `create(GetBulkStateResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +export const GetBulkStateResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 3); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.BulkStateItem. + * Use `create(BulkStateItemSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - +export const BulkStateItemSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 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} + * Describes the message dapr.proto.runtime.v1.GetStateResponse. + * Use `create(GetStateResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PauseWorkflowRequest.toObject(opt_includeInstance, this); -}; - +export const GetStateResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 5); /** - * 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.PauseWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.DeleteStateRequest. + * Use `create(DeleteStateRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.toObject = function(includeInstance, msg) { - var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const DeleteStateRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 6); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} + * Describes the message dapr.proto.runtime.v1.DeleteBulkStateRequest. + * Use `create(DeleteBulkStateRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.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); -}; - +export const DeleteBulkStateRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 7); /** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} + * Describes the message dapr.proto.runtime.v1.SaveStateRequest. + * Use `create(SaveStateRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.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; - } - } - return msg; -}; - +export const SaveStateRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 8); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the message dapr.proto.runtime.v1.QueryStateRequest. + * Use `create(QueryStateRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.PauseWorkflowRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const QueryStateRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 9); /** - * 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 {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.QueryStateItem. + * Use `create(QueryStateItemSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.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 - ); - } -}; - +export const QueryStateItemSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 10); /** - * optional string instance_id = 1; - * @return {string} + * Describes the message dapr.proto.runtime.v1.QueryStateResponse. + * Use `create(QueryStateResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +export const QueryStateResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 11); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.PublishEventRequest. + * Use `create(PublishEventRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +export const PublishEventRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 12); /** - * optional string workflow_component = 2; - * @return {string} + * Describes the message dapr.proto.runtime.v1.BulkPublishRequest. + * Use `create(BulkPublishRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +export const BulkPublishRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 13); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.BulkPublishRequestEntry. + * Use `create(BulkPublishRequestEntrySchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - +export const BulkPublishRequestEntrySchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 14); -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} + * Describes the message dapr.proto.runtime.v1.BulkPublishResponse. + * Use `create(BulkPublishResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.toObject(opt_includeInstance, this); -}; - +export const BulkPublishResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 15); /** - * 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.ResumeWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.BulkPublishResponseFailedEntry. + * Use `create(BulkPublishResponseFailedEntrySchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.toObject = function(includeInstance, msg) { - var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const BulkPublishResponseFailedEntrySchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 16); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} + * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1. + * Use `create(SubscribeTopicEventsRequestAlpha1Schema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.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); -}; - +export const SubscribeTopicEventsRequestAlpha1Schema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 17); /** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} + * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1. + * Use `create(SubscribeTopicEventsRequestInitialAlpha1Schema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.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; - } - } - return msg; -}; - +export const SubscribeTopicEventsRequestInitialAlpha1Schema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 18); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1. + * Use `create(SubscribeTopicEventsRequestProcessedAlpha1Schema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const SubscribeTopicEventsRequestProcessedAlpha1Schema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 19); /** - * 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 {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1. + * Use `create(SubscribeTopicEventsResponseAlpha1Schema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.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 - ); - } -}; - +export const SubscribeTopicEventsResponseAlpha1Schema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 20); /** - * optional string instance_id = 1; - * @return {string} + * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1. + * Use `create(SubscribeTopicEventsResponseInitialAlpha1Schema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +export const SubscribeTopicEventsResponseInitialAlpha1Schema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 21); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.InvokeBindingRequest. + * Use `create(InvokeBindingRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +export const InvokeBindingRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 22); /** - * optional string workflow_component = 2; - * @return {string} + * Describes the message dapr.proto.runtime.v1.InvokeBindingResponse. + * Use `create(InvokeBindingResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +export const InvokeBindingResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 23); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.GetSecretRequest. + * Use `create(GetSecretRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - +export const GetSecretRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 24); - - -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} + * Describes the message dapr.proto.runtime.v1.GetSecretResponse. + * Use `create(GetSecretResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.toObject(opt_includeInstance, this); -}; - +export const GetSecretResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 25); /** - * 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.RaiseEventWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.GetBulkSecretRequest. + * Use `create(GetBulkSecretRequestSchema)` to create a new message. */ -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, ""), - eventName: jspb.Message.getFieldWithDefault(msg, 3, ""), - eventData: msg.getEventData_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const GetBulkSecretRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 26); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} + * Describes the message dapr.proto.runtime.v1.SecretResponse. + * Use `create(SecretResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.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); -}; - +export const SecretResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 27); /** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} + * Describes the message dapr.proto.runtime.v1.GetBulkSecretResponse. + * Use `create(GetBulkSecretResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.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; - 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; - } - } - return msg; -}; - +export const GetBulkSecretResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 28); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the message dapr.proto.runtime.v1.TransactionalStateOperation. + * Use `create(TransactionalStateOperationSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const TransactionalStateOperationSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 29); /** - * 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 {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.ExecuteStateTransactionRequest. + * Use `create(ExecuteStateTransactionRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.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 - ); - } - f = message.getEventName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getEventData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } -}; - +export const ExecuteStateTransactionRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 30); /** - * optional string instance_id = 1; - * @return {string} + * Describes the message dapr.proto.runtime.v1.RegisterActorTimerRequest. + * Use `create(RegisterActorTimerRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +export const RegisterActorTimerRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 31); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.UnregisterActorTimerRequest. + * Use `create(UnregisterActorTimerRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +export const UnregisterActorTimerRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 32); /** - * optional string workflow_component = 2; - * @return {string} + * Describes the message dapr.proto.runtime.v1.RegisterActorReminderRequest. + * Use `create(RegisterActorReminderRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +export const RegisterActorReminderRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 33); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.UnregisterActorReminderRequest. + * Use `create(UnregisterActorReminderRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +export const UnregisterActorReminderRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 34); /** - * optional string event_name = 3; - * @return {string} + * Describes the message dapr.proto.runtime.v1.GetActorStateRequest. + * Use `create(GetActorStateRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +export const GetActorStateRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 35); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.GetActorStateResponse. + * Use `create(GetActorStateResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setEventName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - +export const GetActorStateResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 36); /** - * optional bytes event_data = 4; - * @return {!(string|Uint8Array)} + * Describes the message dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest. + * Use `create(ExecuteActorStateTransactionRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - +export const ExecuteActorStateTransactionRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 37); /** - * optional bytes event_data = 4; - * This is a type-conversion wrapper around `getEventData()` - * @return {string} + * Describes the message dapr.proto.runtime.v1.TransactionalActorStateOperation. + * Use `create(TransactionalActorStateOperationSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEventData())); -}; - +export const TransactionalActorStateOperationSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 38); /** - * 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} + * Describes the message dapr.proto.runtime.v1.InvokeActorRequest. + * Use `create(InvokeActorRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEventData())); -}; - +export const InvokeActorRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 39); /** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.InvokeActorResponse. + * Use `create(InvokeActorResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setEventData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - +export const InvokeActorResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 40); - - -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} + * Describes the message dapr.proto.runtime.v1.GetMetadataRequest. + * Use `create(GetMetadataRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.toObject(opt_includeInstance, this); -}; - +export const GetMetadataRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 41); /** - * 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.PurgeWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.GetMetadataResponse. + * Use `create(GetMetadataResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.toObject = function(includeInstance, msg) { - var f, obj = { - instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowComponent: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const GetMetadataResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 42); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} + * Describes the message dapr.proto.runtime.v1.MetadataScheduler. + * Use `create(MetadataSchedulerSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.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); -}; - +export const MetadataSchedulerSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 43); /** - * 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 {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} + * Describes the message dapr.proto.runtime.v1.ActorRuntime. + * Use `create(ActorRuntimeSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.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; - } - } - return msg; -}; - +export const ActorRuntimeSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 44); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the enum dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus. */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const ActorRuntime_ActorRuntimeStatusSchema = /*@__PURE__*/ + enumDesc(file_dapr_proto_runtime_v1_dapr, 44, 0); /** - * 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 {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @generated from enum dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.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 - ); - } -}; - +export const ActorRuntime_ActorRuntimeStatus = /*@__PURE__*/ + tsEnum(ActorRuntime_ActorRuntimeStatusSchema); /** - * optional string instance_id = 1; - * @return {string} + * Describes the message dapr.proto.runtime.v1.ActiveActorsCount. + * Use `create(ActiveActorsCountSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +export const ActiveActorsCountSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 45); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.RegisteredComponents. + * Use `create(RegisteredComponentsSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +export const RegisteredComponentsSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 46); /** - * optional string workflow_component = 2; - * @return {string} + * Describes the message dapr.proto.runtime.v1.MetadataHTTPEndpoint. + * Use `create(MetadataHTTPEndpointSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +export const MetadataHTTPEndpointSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 47); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} returns this + * Describes the message dapr.proto.runtime.v1.AppConnectionProperties. + * Use `create(AppConnectionPropertiesSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - +export const AppConnectionPropertiesSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 48); -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} + * Describes the message dapr.proto.runtime.v1.AppConnectionHealthProperties. + * Use `create(AppConnectionHealthPropertiesSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ShutdownRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ShutdownRequest.toObject(opt_includeInstance, this); -}; - +export const AppConnectionHealthPropertiesSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 49); /** - * 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 + * Describes the message dapr.proto.runtime.v1.PubsubSubscription. + * Use `create(PubsubSubscriptionSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ShutdownRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const PubsubSubscriptionSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 50); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.ShutdownRequest} + * Describes the message dapr.proto.runtime.v1.PubsubSubscriptionRules. + * Use `create(PubsubSubscriptionRulesSchema)` to create a new message. */ -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); -}; - +export const PubsubSubscriptionRulesSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 51); /** - * 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} + * Describes the message dapr.proto.runtime.v1.PubsubSubscriptionRule. + * Use `create(PubsubSubscriptionRuleSchema)` to create a new message. */ -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; -}; - +export const PubsubSubscriptionRuleSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 52); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the message dapr.proto.runtime.v1.SetMetadataRequest. + * Use `create(SetMetadataRequestSchema)` to create a new message. */ -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(); -}; - +export const SetMetadataRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 53); /** - * 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 + * Describes the message dapr.proto.runtime.v1.GetConfigurationRequest. + * Use `create(GetConfigurationRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ShutdownRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - +export const GetConfigurationRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 54); - - - -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} + * Describes the message dapr.proto.runtime.v1.GetConfigurationResponse. + * Use `create(GetConfigurationResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.Job.toObject(opt_includeInstance, this); -}; - +export const GetConfigurationResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 55); /** - * 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.Job} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.SubscribeConfigurationRequest. + * Use `create(SubscribeConfigurationRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.toObject = function(includeInstance, msg) { - var f, obj = { - 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) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const SubscribeConfigurationRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 56); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.Job} + * Describes the message dapr.proto.runtime.v1.UnsubscribeConfigurationRequest. + * Use `create(UnsubscribeConfigurationRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.Job; - return proto.dapr.proto.runtime.v1.Job.deserializeBinaryFromReader(msg, reader); -}; - +export const UnsubscribeConfigurationRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 57); /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @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.Job} + * Describes the message dapr.proto.runtime.v1.SubscribeConfigurationResponse. + * Use `create(SubscribeConfigurationResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.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.setSchedule(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRepeats(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDueTime(value); - break; - case 5: - 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(); - break; - } - } - return msg; -}; - +export const SubscribeConfigurationResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 58); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the message dapr.proto.runtime.v1.UnsubscribeConfigurationResponse. + * Use `create(UnsubscribeConfigurationResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.Job.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const UnsubscribeConfigurationResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 59); /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.Job} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.TryLockRequest. + * Use `create(TryLockRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeUint32( - 3, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } - 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 - ); - } -}; - +export const TryLockRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 60); /** - * optional string name = 1; - * @return {string} + * Describes the message dapr.proto.runtime.v1.TryLockResponse. + * Use `create(TryLockResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +export const TryLockResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 61); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.Job} returns this + * Describes the message dapr.proto.runtime.v1.UnlockRequest. + * Use `create(UnlockRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +export const UnlockRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 62); /** - * optional string schedule = 2; - * @return {string} + * Describes the message dapr.proto.runtime.v1.UnlockResponse. + * Use `create(UnlockResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.getSchedule = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +export const UnlockResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 63); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.Job} returns this + * Describes the enum dapr.proto.runtime.v1.UnlockResponse.Status. */ -proto.dapr.proto.runtime.v1.Job.prototype.setSchedule = function(value) { - return jspb.Message.setField(this, 2, value); -}; - +export const UnlockResponse_StatusSchema = /*@__PURE__*/ + enumDesc(file_dapr_proto_runtime_v1_dapr, 63, 0); /** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.Job} returns this + * @generated from enum dapr.proto.runtime.v1.UnlockResponse.Status */ -proto.dapr.proto.runtime.v1.Job.prototype.clearSchedule = function() { - return jspb.Message.setField(this, 2, undefined); -}; - +export const UnlockResponse_Status = /*@__PURE__*/ + tsEnum(UnlockResponse_StatusSchema); /** - * Returns whether this field is set. - * @return {boolean} + * Describes the message dapr.proto.runtime.v1.SubtleGetKeyRequest. + * Use `create(SubtleGetKeyRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.hasSchedule = function() { - return jspb.Message.getField(this, 2) != null; -}; - +export const SubtleGetKeyRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 64); /** - * optional uint32 repeats = 3; - * @return {number} + * Describes the enum dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat. */ -proto.dapr.proto.runtime.v1.Job.prototype.getRepeats = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +export const SubtleGetKeyRequest_KeyFormatSchema = /*@__PURE__*/ + enumDesc(file_dapr_proto_runtime_v1_dapr, 64, 0); /** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.Job} returns this + * @generated from enum dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat */ -proto.dapr.proto.runtime.v1.Job.prototype.setRepeats = function(value) { - return jspb.Message.setField(this, 3, value); -}; - +export const SubtleGetKeyRequest_KeyFormat = /*@__PURE__*/ + tsEnum(SubtleGetKeyRequest_KeyFormatSchema); /** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.Job} returns this + * Describes the message dapr.proto.runtime.v1.SubtleGetKeyResponse. + * Use `create(SubtleGetKeyResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.clearRepeats = function() { - return jspb.Message.setField(this, 3, undefined); -}; - +export const SubtleGetKeyResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 65); /** - * Returns whether this field is set. - * @return {boolean} + * Describes the message dapr.proto.runtime.v1.SubtleEncryptRequest. + * Use `create(SubtleEncryptRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.hasRepeats = function() { - return jspb.Message.getField(this, 3) != null; -}; - +export const SubtleEncryptRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 66); /** - * optional string due_time = 4; - * @return {string} + * Describes the message dapr.proto.runtime.v1.SubtleEncryptResponse. + * Use `create(SubtleEncryptResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.getDueTime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - +export const SubtleEncryptResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 67); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.Job} returns this + * Describes the message dapr.proto.runtime.v1.SubtleDecryptRequest. + * Use `create(SubtleDecryptRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.setDueTime = function(value) { - return jspb.Message.setField(this, 4, value); -}; - +export const SubtleDecryptRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 68); /** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.Job} returns this + * Describes the message dapr.proto.runtime.v1.SubtleDecryptResponse. + * Use `create(SubtleDecryptResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.clearDueTime = function() { - return jspb.Message.setField(this, 4, undefined); -}; - +export const SubtleDecryptResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 69); /** - * Returns whether this field is set. - * @return {boolean} + * Describes the message dapr.proto.runtime.v1.SubtleWrapKeyRequest. + * Use `create(SubtleWrapKeyRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.hasDueTime = function() { - return jspb.Message.getField(this, 4) != null; -}; - +export const SubtleWrapKeyRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 70); /** - * optional string ttl = 5; - * @return {string} + * Describes the message dapr.proto.runtime.v1.SubtleWrapKeyResponse. + * Use `create(SubtleWrapKeyResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.getTtl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - +export const SubtleWrapKeyResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 71); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.Job} returns this + * Describes the message dapr.proto.runtime.v1.SubtleUnwrapKeyRequest. + * Use `create(SubtleUnwrapKeyRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.setTtl = function(value) { - return jspb.Message.setField(this, 5, value); -}; - +export const SubtleUnwrapKeyRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 72); /** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.Job} returns this + * Describes the message dapr.proto.runtime.v1.SubtleUnwrapKeyResponse. + * Use `create(SubtleUnwrapKeyResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.clearTtl = function() { - return jspb.Message.setField(this, 5, undefined); -}; - +export const SubtleUnwrapKeyResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 73); /** - * Returns whether this field is set. - * @return {boolean} + * Describes the message dapr.proto.runtime.v1.SubtleSignRequest. + * Use `create(SubtleSignRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.hasTtl = function() { - return jspb.Message.getField(this, 5) != null; -}; - +export const SubtleSignRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 74); /** - * optional google.protobuf.Any data = 6; - * @return {?proto.google.protobuf.Any} + * Describes the message dapr.proto.runtime.v1.SubtleSignResponse. + * Use `create(SubtleSignResponseSchema)` to create a new message. */ -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)); -}; - - -/** - * @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); -}; - +export const SubtleSignResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 75); /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.Job} returns this + * Describes the message dapr.proto.runtime.v1.SubtleVerifyRequest. + * Use `create(SubtleVerifyRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.clearData = function() { - return this.setData(undefined); -}; - +export const SubtleVerifyRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 76); /** - * Returns whether this field is set. - * @return {boolean} + * Describes the message dapr.proto.runtime.v1.SubtleVerifyResponse. + * Use `create(SubtleVerifyResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.Job.prototype.hasData = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - +export const SubtleVerifyResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 77); - -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} + * Describes the message dapr.proto.runtime.v1.EncryptRequest. + * Use `create(EncryptRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ScheduleJobRequest.toObject(opt_includeInstance, this); -}; - +export const EncryptRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 78); /** - * 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.ScheduleJobRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.EncryptRequestOptions. + * Use `create(EncryptRequestOptionsSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.toObject = function(includeInstance, msg) { - var f, obj = { - job: (f = msg.getJob()) && proto.dapr.proto.runtime.v1.Job.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const EncryptRequestOptionsSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 79); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} + * Describes the message dapr.proto.runtime.v1.EncryptResponse. + * Use `create(EncryptResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ScheduleJobRequest; - return proto.dapr.proto.runtime.v1.ScheduleJobRequest.deserializeBinaryFromReader(msg, reader); -}; - +export const EncryptResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 80); /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @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.ScheduleJobRequest} + * Describes the message dapr.proto.runtime.v1.DecryptRequest. + * Use `create(DecryptRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.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.Job; - reader.readMessage(value,proto.dapr.proto.runtime.v1.Job.deserializeBinaryFromReader); - msg.setJob(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - +export const DecryptRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 81); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the message dapr.proto.runtime.v1.DecryptRequestOptions. + * Use `create(DecryptRequestOptionsSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ScheduleJobRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const DecryptRequestOptionsSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 82); /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.DecryptResponse. + * Use `create(DecryptResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJob(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.runtime.v1.Job.serializeBinaryToWriter - ); - } -}; - +export const DecryptResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 83); /** - * optional Job job = 1; - * @return {?proto.dapr.proto.runtime.v1.Job} + * Describes the message dapr.proto.runtime.v1.GetWorkflowRequest. + * Use `create(GetWorkflowRequestSchema)` to create a new message. */ -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 {?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); -}; - +export const GetWorkflowRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 84); /** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} returns this + * Describes the message dapr.proto.runtime.v1.GetWorkflowResponse. + * Use `create(GetWorkflowResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.clearJob = function() { - return this.setJob(undefined); -}; - +export const GetWorkflowResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 85); /** - * Returns whether this field is set. - * @return {boolean} + * Describes the message dapr.proto.runtime.v1.StartWorkflowRequest. + * Use `create(StartWorkflowRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.hasJob = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - +export const StartWorkflowRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 86); - -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} + * Describes the message dapr.proto.runtime.v1.StartWorkflowResponse. + * Use `create(StartWorkflowResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ScheduleJobResponse.toObject(opt_includeInstance, this); -}; - +export const StartWorkflowResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 87); /** - * 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.ScheduleJobResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.TerminateWorkflowRequest. + * Use `create(TerminateWorkflowRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const TerminateWorkflowRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 88); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.ScheduleJobResponse} + * Describes the message dapr.proto.runtime.v1.PauseWorkflowRequest. + * Use `create(PauseWorkflowRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ScheduleJobResponse; - return proto.dapr.proto.runtime.v1.ScheduleJobResponse.deserializeBinaryFromReader(msg, reader); -}; - +export const PauseWorkflowRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 89); /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @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.ScheduleJobResponse} + * Describes the message dapr.proto.runtime.v1.ResumeWorkflowRequest. + * Use `create(ResumeWorkflowRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - +export const ResumeWorkflowRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 90); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the message dapr.proto.runtime.v1.RaiseEventWorkflowRequest. + * Use `create(RaiseEventWorkflowRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ScheduleJobResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const RaiseEventWorkflowRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 91); /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.ScheduleJobResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.PurgeWorkflowRequest. + * Use `create(PurgeWorkflowRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.ScheduleJobResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - +export const PurgeWorkflowRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 92); -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} + * Describes the message dapr.proto.runtime.v1.ShutdownRequest. + * Use `create(ShutdownRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetJobRequest.toObject(opt_includeInstance, this); -}; - +export const ShutdownRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 93); /** - * 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.GetJobRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.Job. + * Use `create(JobSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const JobSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 94); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetJobRequest} + * Describes the message dapr.proto.runtime.v1.ScheduleJobRequest. + * Use `create(ScheduleJobRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetJobRequest; - return proto.dapr.proto.runtime.v1.GetJobRequest.deserializeBinaryFromReader(msg, reader); -}; - +export const ScheduleJobRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 95); /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @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.GetJobRequest} + * Describes the message dapr.proto.runtime.v1.ScheduleJobResponse. + * Use `create(ScheduleJobResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobRequest.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; -}; - +export const ScheduleJobResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 96); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the message dapr.proto.runtime.v1.GetJobRequest. + * Use `create(GetJobRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetJobRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const GetJobRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 97); /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetJobRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.GetJobResponse. + * Use `create(GetJobResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - +export const GetJobResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 98); /** - * optional string name = 1; - * @return {string} + * Describes the message dapr.proto.runtime.v1.DeleteJobRequest. + * Use `create(DeleteJobRequestSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +export const DeleteJobRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 99); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetJobRequest} returns this + * Describes the message dapr.proto.runtime.v1.DeleteJobResponse. + * Use `create(DeleteJobResponseSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; +export const DeleteJobResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 100); - - - - -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} + * Describes the message dapr.proto.runtime.v1.ConversationRequest. + * Use `create(ConversationRequestSchema)` to create a new message. + * @deprecated */ -proto.dapr.proto.runtime.v1.GetJobResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetJobResponse.toObject(opt_includeInstance, this); -}; - +export const ConversationRequestSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 101); /** - * 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.GetJobResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.ConversationRequestAlpha2. + * Use `create(ConversationRequestAlpha2Schema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobResponse.toObject = function(includeInstance, msg) { - var f, obj = { - job: (f = msg.getJob()) && proto.dapr.proto.runtime.v1.Job.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const ConversationRequestAlpha2Schema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 102); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetJobResponse} + * Describes the message dapr.proto.runtime.v1.ConversationInput. + * Use `create(ConversationInputSchema)` to create a new message. + * @deprecated */ -proto.dapr.proto.runtime.v1.GetJobResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetJobResponse; - return proto.dapr.proto.runtime.v1.GetJobResponse.deserializeBinaryFromReader(msg, reader); -}; - +export const ConversationInputSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 103); /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @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.GetJobResponse} + * Describes the message dapr.proto.runtime.v1.ConversationInputAlpha2. + * Use `create(ConversationInputAlpha2Schema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobResponse.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.Job; - reader.readMessage(value,proto.dapr.proto.runtime.v1.Job.deserializeBinaryFromReader); - msg.setJob(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - +export const ConversationInputAlpha2Schema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 104); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the message dapr.proto.runtime.v1.ConversationMessage. + * Use `create(ConversationMessageSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetJobResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const ConversationMessageSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 105); /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.GetJobResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.ConversationMessageOfDeveloper. + * Use `create(ConversationMessageOfDeveloperSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJob(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.runtime.v1.Job.serializeBinaryToWriter - ); - } -}; - +export const ConversationMessageOfDeveloperSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 106); /** - * optional Job job = 1; - * @return {?proto.dapr.proto.runtime.v1.Job} + * Describes the message dapr.proto.runtime.v1.ConversationMessageOfSystem. + * Use `create(ConversationMessageOfSystemSchema)` to create a new message. */ -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)); -}; - +export const ConversationMessageOfSystemSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 107); /** - * @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); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetJobResponse} returns this + * Describes the message dapr.proto.runtime.v1.ConversationMessageOfUser. + * Use `create(ConversationMessageOfUserSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobResponse.prototype.clearJob = function() { - return this.setJob(undefined); -}; - +export const ConversationMessageOfUserSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 108); /** - * Returns whether this field is set. - * @return {boolean} + * Describes the message dapr.proto.runtime.v1.ConversationMessageOfAssistant. + * Use `create(ConversationMessageOfAssistantSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.GetJobResponse.prototype.hasJob = function() { - return jspb.Message.getField(this, 1) != null; -}; +export const ConversationMessageOfAssistantSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 109); - - - - -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} + * Describes the message dapr.proto.runtime.v1.ConversationMessageOfTool. + * Use `create(ConversationMessageOfToolSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.DeleteJobRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DeleteJobRequest.toObject(opt_includeInstance, this); -}; - +export const ConversationMessageOfToolSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 110); /** - * 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.DeleteJobRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.ConversationToolCalls. + * Use `create(ConversationToolCallsSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.DeleteJobRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const ConversationToolCallsSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 111); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.DeleteJobRequest} + * Describes the message dapr.proto.runtime.v1.ConversationToolCallsOfFunction. + * Use `create(ConversationToolCallsOfFunctionSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.DeleteJobRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.DeleteJobRequest; - return proto.dapr.proto.runtime.v1.DeleteJobRequest.deserializeBinaryFromReader(msg, reader); -}; - +export const ConversationToolCallsOfFunctionSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 112); /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @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.DeleteJobRequest} + * Describes the message dapr.proto.runtime.v1.ConversationMessageContent. + * Use `create(ConversationMessageContentSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.DeleteJobRequest.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; -}; - +export const ConversationMessageContentSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 113); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the message dapr.proto.runtime.v1.ConversationResult. + * Use `create(ConversationResultSchema)` to create a new message. + * @deprecated */ -proto.dapr.proto.runtime.v1.DeleteJobRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.DeleteJobRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const ConversationResultSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 114); /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.DeleteJobRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.ConversationResultAlpha2. + * Use `create(ConversationResultAlpha2Schema)` to create a new message. */ -proto.dapr.proto.runtime.v1.DeleteJobRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - +export const ConversationResultAlpha2Schema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 115); /** - * optional string name = 1; - * @return {string} + * Describes the message dapr.proto.runtime.v1.ConversationResultChoices. + * Use `create(ConversationResultChoicesSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.DeleteJobRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +export const ConversationResultChoicesSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 116); /** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.DeleteJobRequest} returns this + * Describes the message dapr.proto.runtime.v1.ConversationResultMessage. + * Use `create(ConversationResultMessageSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.DeleteJobRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - +export const ConversationResultMessageSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 117); -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} + * Describes the message dapr.proto.runtime.v1.ConversationResponse. + * Use `create(ConversationResponseSchema)` to create a new message. + * @deprecated */ -proto.dapr.proto.runtime.v1.DeleteJobResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DeleteJobResponse.toObject(opt_includeInstance, this); -}; - +export const ConversationResponseSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 118); /** - * 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.DeleteJobResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Describes the message dapr.proto.runtime.v1.ConversationResponseAlpha2. + * Use `create(ConversationResponseAlpha2Schema)` to create a new message. */ -proto.dapr.proto.runtime.v1.DeleteJobResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - +export const ConversationResponseAlpha2Schema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 119); /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.DeleteJobResponse} + * Describes the message dapr.proto.runtime.v1.ConversationTools. + * Use `create(ConversationToolsSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.DeleteJobResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.DeleteJobResponse; - return proto.dapr.proto.runtime.v1.DeleteJobResponse.deserializeBinaryFromReader(msg, reader); -}; - +export const ConversationToolsSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 120); /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @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.DeleteJobResponse} + * Describes the message dapr.proto.runtime.v1.ConversationToolsFunction. + * Use `create(ConversationToolsFunctionSchema)` to create a new message. */ -proto.dapr.proto.runtime.v1.DeleteJobResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - +export const ConversationToolsFunctionSchema = /*@__PURE__*/ + messageDesc(file_dapr_proto_runtime_v1_dapr, 121); /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Describes the enum dapr.proto.runtime.v1.PubsubSubscriptionType. */ -proto.dapr.proto.runtime.v1.DeleteJobResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.DeleteJobResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +export const PubsubSubscriptionTypeSchema = /*@__PURE__*/ + enumDesc(file_dapr_proto_runtime_v1_dapr, 0); /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.DeleteJobResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * PubsubSubscriptionType indicates the type of subscription + * + * @generated from enum dapr.proto.runtime.v1.PubsubSubscriptionType */ -proto.dapr.proto.runtime.v1.DeleteJobResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - +export const PubsubSubscriptionType = /*@__PURE__*/ + tsEnum(PubsubSubscriptionTypeSchema); /** - * @enum {number} + * Dapr service provides APIs to user application to access Dapr building blocks. + * + * @generated from service dapr.proto.runtime.v1.Dapr */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionType = { - UNKNOWN: 0, - DECLARATIVE: 1, - PROGRAMMATIC: 2, - STREAMING: 3 -}; +export const Dapr = /*@__PURE__*/ + serviceDesc(file_dapr_proto_runtime_v1_dapr, 0); -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/sentry/v1/sentry.proto b/src/proto/dapr/proto/sentry/v1/sentry.proto deleted file mode 100644 index 49be6342..00000000 --- a/src/proto/dapr/proto/sentry/v1/sentry.proto +++ /dev/null @@ -1,60 +0,0 @@ -/* -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. -*/ - -syntax = "proto3"; - -package dapr.proto.sentry.v1; - -import "google/protobuf/timestamp.proto"; - -option go_package = "github.com/dapr/dapr/pkg/proto/sentry/v1;sentry"; - -service CA { - // A request for a time-bound certificate to be signed. - // - // The requesting side must provide an id for both loosely based - // And strong based identities. - rpc SignCertificate (SignCertificateRequest) returns (SignCertificateResponse) {} -} - -message SignCertificateRequest { - enum TokenValidator { - // Not specified - use the default value. - UNKNOWN = 0; - // Insecure validator (default on self-hosted). - INSECURE = 1; - // Kubernetes validator (default on Kubernetes). - KUBERNETES = 2; - // JWKS validator. - JWKS = 3; - } - string id = 1; - string token = 2; - string trust_domain = 3; - string namespace = 4; - // A PEM-encoded x509 CSR. - bytes certificate_signing_request = 5; - // Name of the validator to use, if not the default for the environemtn. - TokenValidator token_validator = 6; -} - -message SignCertificateResponse { - // A PEM-encoded x509 Certificate. - bytes workload_certificate = 1; - - // A list of PEM-encoded x509 Certificates that establish the trust chain - // between the workload certificate and the well-known trust root cert. - repeated bytes trust_chain_certificates = 2; - - google.protobuf.Timestamp valid_until = 3; -} diff --git a/src/proto/dapr/proto/sentry/v1/sentry_grpc_pb.d.ts b/src/proto/dapr/proto/sentry/v1/sentry_grpc_pb.d.ts deleted file mode 100644 index 6d66c9c2..00000000 --- a/src/proto/dapr/proto/sentry/v1/sentry_grpc_pb.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -// package: dapr.proto.sentry.v1 -// file: dapr/proto/sentry/v1/sentry.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as dapr_proto_sentry_v1_sentry_pb from "../../../../dapr/proto/sentry/v1/sentry_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -interface ICAService extends grpc.ServiceDefinition { - signCertificate: ICAService_ISignCertificate; -} - -interface ICAService_ISignCertificate extends grpc.MethodDefinition { - path: "/dapr.proto.sentry.v1.CA/SignCertificate"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const CAService: ICAService; - -export interface ICAServer extends grpc.UntypedServiceImplementation { - signCertificate: grpc.handleUnaryCall; -} - -export interface ICAClient { - signCertificate(request: dapr_proto_sentry_v1_sentry_pb.SignCertificateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_sentry_v1_sentry_pb.SignCertificateResponse) => void): grpc.ClientUnaryCall; - signCertificate(request: dapr_proto_sentry_v1_sentry_pb.SignCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_sentry_v1_sentry_pb.SignCertificateResponse) => void): grpc.ClientUnaryCall; - signCertificate(request: dapr_proto_sentry_v1_sentry_pb.SignCertificateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_sentry_v1_sentry_pb.SignCertificateResponse) => void): grpc.ClientUnaryCall; -} - -export class CAClient extends grpc.Client implements ICAClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public signCertificate(request: dapr_proto_sentry_v1_sentry_pb.SignCertificateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_sentry_v1_sentry_pb.SignCertificateResponse) => void): grpc.ClientUnaryCall; - public signCertificate(request: dapr_proto_sentry_v1_sentry_pb.SignCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_sentry_v1_sentry_pb.SignCertificateResponse) => void): grpc.ClientUnaryCall; - public signCertificate(request: dapr_proto_sentry_v1_sentry_pb.SignCertificateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_sentry_v1_sentry_pb.SignCertificateResponse) => void): grpc.ClientUnaryCall; -} diff --git a/src/proto/dapr/proto/sentry/v1/sentry_grpc_pb.js b/src/proto/dapr/proto/sentry/v1/sentry_grpc_pb.js deleted file mode 100644 index 30db90c1..00000000 --- a/src/proto/dapr/proto/sentry/v1/sentry_grpc_pb.js +++ /dev/null @@ -1,62 +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_sentry_v1_sentry_pb = require('../../../../dapr/proto/sentry/v1/sentry_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); - -function serialize_dapr_proto_sentry_v1_SignCertificateRequest(arg) { - if (!(arg instanceof dapr_proto_sentry_v1_sentry_pb.SignCertificateRequest)) { - throw new Error('Expected argument of type dapr.proto.sentry.v1.SignCertificateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_sentry_v1_SignCertificateRequest(buffer_arg) { - return dapr_proto_sentry_v1_sentry_pb.SignCertificateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_sentry_v1_SignCertificateResponse(arg) { - if (!(arg instanceof dapr_proto_sentry_v1_sentry_pb.SignCertificateResponse)) { - throw new Error('Expected argument of type dapr.proto.sentry.v1.SignCertificateResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_sentry_v1_SignCertificateResponse(buffer_arg) { - return dapr_proto_sentry_v1_sentry_pb.SignCertificateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var CAService = exports.CAService = { - // A request for a time-bound certificate to be signed. -// -// The requesting side must provide an id for both loosely based -// And strong based identities. -signCertificate: { - path: '/dapr.proto.sentry.v1.CA/SignCertificate', - requestStream: false, - responseStream: false, - requestType: dapr_proto_sentry_v1_sentry_pb.SignCertificateRequest, - responseType: dapr_proto_sentry_v1_sentry_pb.SignCertificateResponse, - requestSerialize: serialize_dapr_proto_sentry_v1_SignCertificateRequest, - requestDeserialize: deserialize_dapr_proto_sentry_v1_SignCertificateRequest, - responseSerialize: serialize_dapr_proto_sentry_v1_SignCertificateResponse, - responseDeserialize: deserialize_dapr_proto_sentry_v1_SignCertificateResponse, - }, -}; - -exports.CAClient = grpc.makeGenericClientConstructor(CAService); diff --git a/src/proto/dapr/proto/sentry/v1/sentry_pb.d.ts b/src/proto/dapr/proto/sentry/v1/sentry_pb.d.ts deleted file mode 100644 index f514dec3..00000000 --- a/src/proto/dapr/proto/sentry/v1/sentry_pb.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -// package: dapr.proto.sentry.v1 -// file: dapr/proto/sentry/v1/sentry.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -export class SignCertificateRequest extends jspb.Message { - getId(): string; - setId(value: string): SignCertificateRequest; - getToken(): string; - setToken(value: string): SignCertificateRequest; - getTrustDomain(): string; - setTrustDomain(value: string): SignCertificateRequest; - getNamespace(): string; - setNamespace(value: string): SignCertificateRequest; - getCertificateSigningRequest(): Uint8Array | string; - getCertificateSigningRequest_asU8(): Uint8Array; - getCertificateSigningRequest_asB64(): string; - setCertificateSigningRequest(value: Uint8Array | string): SignCertificateRequest; - getTokenValidator(): SignCertificateRequest.TokenValidator; - setTokenValidator(value: SignCertificateRequest.TokenValidator): SignCertificateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignCertificateRequest.AsObject; - static toObject(includeInstance: boolean, msg: SignCertificateRequest): SignCertificateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SignCertificateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignCertificateRequest; - static deserializeBinaryFromReader(message: SignCertificateRequest, reader: jspb.BinaryReader): SignCertificateRequest; -} - -export namespace SignCertificateRequest { - export type AsObject = { - id: string, - token: string, - trustDomain: string, - namespace: string, - certificateSigningRequest: Uint8Array | string, - tokenValidator: SignCertificateRequest.TokenValidator, - } - - export enum TokenValidator { - UNKNOWN = 0, - INSECURE = 1, - KUBERNETES = 2, - JWKS = 3, - } - -} - -export class SignCertificateResponse extends jspb.Message { - getWorkloadCertificate(): Uint8Array | string; - getWorkloadCertificate_asU8(): Uint8Array; - getWorkloadCertificate_asB64(): string; - setWorkloadCertificate(value: Uint8Array | string): SignCertificateResponse; - clearTrustChainCertificatesList(): void; - getTrustChainCertificatesList(): Array; - getTrustChainCertificatesList_asU8(): Array; - getTrustChainCertificatesList_asB64(): Array; - setTrustChainCertificatesList(value: Array): SignCertificateResponse; - addTrustChainCertificates(value: Uint8Array | string, index?: number): Uint8Array | string; - - hasValidUntil(): boolean; - clearValidUntil(): void; - getValidUntil(): google_protobuf_timestamp_pb.Timestamp | undefined; - setValidUntil(value?: google_protobuf_timestamp_pb.Timestamp): SignCertificateResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignCertificateResponse.AsObject; - static toObject(includeInstance: boolean, msg: SignCertificateResponse): SignCertificateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SignCertificateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignCertificateResponse; - static deserializeBinaryFromReader(message: SignCertificateResponse, reader: jspb.BinaryReader): SignCertificateResponse; -} - -export namespace SignCertificateResponse { - export type AsObject = { - workloadCertificate: Uint8Array | string, - trustChainCertificatesList: Array, - validUntil?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} diff --git a/src/proto/dapr/proto/sentry/v1/sentry_pb.js b/src/proto/dapr/proto/sentry/v1/sentry_pb.js deleted file mode 100644 index 8d52a41f..00000000 --- a/src/proto/dapr/proto/sentry/v1/sentry_pb.js +++ /dev/null @@ -1,670 +0,0 @@ -// source: dapr/proto/sentry/v1/sentry.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 = - (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); -goog.exportSymbol('proto.dapr.proto.sentry.v1.SignCertificateRequest', null, global); -goog.exportSymbol('proto.dapr.proto.sentry.v1.SignCertificateRequest.TokenValidator', null, global); -goog.exportSymbol('proto.dapr.proto.sentry.v1.SignCertificateResponse', 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.sentry.v1.SignCertificateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.sentry.v1.SignCertificateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.sentry.v1.SignCertificateRequest.displayName = 'proto.dapr.proto.sentry.v1.SignCertificateRequest'; -} -/** - * 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.sentry.v1.SignCertificateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.sentry.v1.SignCertificateResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.sentry.v1.SignCertificateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.sentry.v1.SignCertificateResponse.displayName = 'proto.dapr.proto.sentry.v1.SignCertificateResponse'; -} - - - -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.sentry.v1.SignCertificateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.sentry.v1.SignCertificateRequest.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.sentry.v1.SignCertificateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - token: jspb.Message.getFieldWithDefault(msg, 2, ""), - trustDomain: jspb.Message.getFieldWithDefault(msg, 3, ""), - namespace: jspb.Message.getFieldWithDefault(msg, 4, ""), - certificateSigningRequest: msg.getCertificateSigningRequest_asB64(), - tokenValidator: 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.sentry.v1.SignCertificateRequest} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.sentry.v1.SignCertificateRequest; - return proto.dapr.proto.sentry.v1.SignCertificateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.sentry.v1.SignCertificateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.sentry.v1.SignCertificateRequest} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.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 = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setTrustDomain(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNamespace(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCertificateSigningRequest(value); - break; - case 6: - var value = /** @type {!proto.dapr.proto.sentry.v1.SignCertificateRequest.TokenValidator} */ (reader.readEnum()); - msg.setTokenValidator(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.sentry.v1.SignCertificateRequest.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.sentry.v1.SignCertificateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTrustDomain(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getNamespace(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCertificateSigningRequest_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getTokenValidator(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.TokenValidator = { - UNKNOWN: 0, - INSECURE: 1, - KUBERNETES: 2, - JWKS: 3 -}; - -/** - * optional string id = 1; - * @return {string} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.sentry.v1.SignCertificateRequest} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string token = 2; - * @return {string} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.sentry.v1.SignCertificateRequest} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string trust_domain = 3; - * @return {string} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.getTrustDomain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.sentry.v1.SignCertificateRequest} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.setTrustDomain = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string namespace = 4; - * @return {string} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.sentry.v1.SignCertificateRequest} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.setNamespace = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes certificate_signing_request = 5; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.getCertificateSigningRequest = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes certificate_signing_request = 5; - * This is a type-conversion wrapper around `getCertificateSigningRequest()` - * @return {string} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.getCertificateSigningRequest_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCertificateSigningRequest())); -}; - - -/** - * optional bytes certificate_signing_request = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getCertificateSigningRequest()` - * @return {!Uint8Array} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.getCertificateSigningRequest_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCertificateSigningRequest())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.sentry.v1.SignCertificateRequest} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.setCertificateSigningRequest = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional TokenValidator token_validator = 6; - * @return {!proto.dapr.proto.sentry.v1.SignCertificateRequest.TokenValidator} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.getTokenValidator = function() { - return /** @type {!proto.dapr.proto.sentry.v1.SignCertificateRequest.TokenValidator} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.dapr.proto.sentry.v1.SignCertificateRequest.TokenValidator} value - * @return {!proto.dapr.proto.sentry.v1.SignCertificateRequest} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.setTokenValidator = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.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.sentry.v1.SignCertificateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.sentry.v1.SignCertificateResponse.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.sentry.v1.SignCertificateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - workloadCertificate: msg.getWorkloadCertificate_asB64(), - trustChainCertificatesList: msg.getTrustChainCertificatesList_asB64(), - validUntil: (f = msg.getValidUntil()) && google_protobuf_timestamp_pb.Timestamp.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.sentry.v1.SignCertificateResponse} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.sentry.v1.SignCertificateResponse; - return proto.dapr.proto.sentry.v1.SignCertificateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.sentry.v1.SignCertificateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.sentry.v1.SignCertificateResponse} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.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.setWorkloadCertificate(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.addTrustChainCertificates(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setValidUntil(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.sentry.v1.SignCertificateResponse.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.sentry.v1.SignCertificateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWorkloadCertificate_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTrustChainCertificatesList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 2, - f - ); - } - f = message.getValidUntil(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes workload_certificate = 1; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.getWorkloadCertificate = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes workload_certificate = 1; - * This is a type-conversion wrapper around `getWorkloadCertificate()` - * @return {string} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.getWorkloadCertificate_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getWorkloadCertificate())); -}; - - -/** - * optional bytes workload_certificate = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getWorkloadCertificate()` - * @return {!Uint8Array} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.getWorkloadCertificate_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getWorkloadCertificate())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.sentry.v1.SignCertificateResponse} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.setWorkloadCertificate = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * repeated bytes trust_chain_certificates = 2; - * @return {!(Array|Array)} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.getTrustChainCertificatesList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * repeated bytes trust_chain_certificates = 2; - * This is a type-conversion wrapper around `getTrustChainCertificatesList()` - * @return {!Array} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.getTrustChainCertificatesList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getTrustChainCertificatesList())); -}; - - -/** - * repeated bytes trust_chain_certificates = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTrustChainCertificatesList()` - * @return {!Array} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.getTrustChainCertificatesList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getTrustChainCertificatesList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.dapr.proto.sentry.v1.SignCertificateResponse} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.setTrustChainCertificatesList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.sentry.v1.SignCertificateResponse} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.addTrustChainCertificates = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.sentry.v1.SignCertificateResponse} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.clearTrustChainCertificatesList = function() { - return this.setTrustChainCertificatesList([]); -}; - - -/** - * optional google.protobuf.Timestamp valid_until = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.getValidUntil = 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.sentry.v1.SignCertificateResponse} returns this -*/ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.setValidUntil = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.sentry.v1.SignCertificateResponse} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.clearValidUntil = function() { - return this.setValidUntil(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.hasValidUntil = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -goog.object.extend(exports, proto.dapr.proto.sentry.v1); diff --git a/src/proto/google/protobuf/any.proto b/src/proto/google/protobuf/any.proto deleted file mode 100644 index eff44e50..00000000 --- a/src/proto/google/protobuf/any.proto +++ /dev/null @@ -1,162 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option go_package = "google.golang.org/protobuf/types/known/anypb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "AnyProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; - -// `Any` contains an arbitrary serialized protocol buffer message along with a -// URL that describes the type of the serialized message. -// -// Protobuf library provides support to pack/unpack Any values in the form -// of utility functions or additional generated methods of the Any type. -// -// Example 1: Pack and unpack a message in C++. -// -// Foo foo = ...; -// Any any; -// any.PackFrom(foo); -// ... -// if (any.UnpackTo(&foo)) { -// ... -// } -// -// Example 2: Pack and unpack a message in Java. -// -// Foo foo = ...; -// Any any = Any.pack(foo); -// ... -// if (any.is(Foo.class)) { -// foo = any.unpack(Foo.class); -// } -// // or ... -// if (any.isSameTypeAs(Foo.getDefaultInstance())) { -// foo = any.unpack(Foo.getDefaultInstance()); -// } -// -// Example 3: Pack and unpack a message in Python. -// -// foo = Foo(...) -// any = Any() -// any.Pack(foo) -// ... -// if any.Is(Foo.DESCRIPTOR): -// any.Unpack(foo) -// ... -// -// Example 4: Pack and unpack a message in Go -// -// foo := &pb.Foo{...} -// any, err := anypb.New(foo) -// if err != nil { -// ... -// } -// ... -// foo := &pb.Foo{} -// if err := any.UnmarshalTo(foo); err != nil { -// ... -// } -// -// The pack methods provided by protobuf library will by default use -// 'type.googleapis.com/full.type.name' as the type URL and the unpack -// methods only use the fully qualified type name after the last '/' -// in the type URL, for example "foo.bar.com/x/y.z" will yield type -// name "y.z". -// -// JSON -// ==== -// The JSON representation of an `Any` value uses the regular -// representation of the deserialized, embedded message, with an -// additional field `@type` which contains the type URL. Example: -// -// package google.profile; -// message Person { -// string first_name = 1; -// string last_name = 2; -// } -// -// { -// "@type": "type.googleapis.com/google.profile.Person", -// "firstName": , -// "lastName": -// } -// -// If the embedded message type is well-known and has a custom JSON -// representation, that representation will be embedded adding a field -// `value` which holds the custom JSON in addition to the `@type` -// field. Example (for message [google.protobuf.Duration][]): -// -// { -// "@type": "type.googleapis.com/google.protobuf.Duration", -// "value": "1.212s" -// } -// -message Any { - // A URL/resource name that uniquely identifies the type of the serialized - // protocol buffer message. This string must contain at least - // one "/" character. The last segment of the URL's path must represent - // the fully qualified name of the type (as in - // `path/google.protobuf.Duration`). The name should be in a canonical form - // (e.g., leading "." is not accepted). - // - // In practice, teams usually precompile into the binary all types that they - // expect it to use in the context of Any. However, for URLs which use the - // scheme `http`, `https`, or no scheme, one can optionally set up a type - // server that maps type URLs to message definitions as follows: - // - // * If no scheme is provided, `https` is assumed. - // * An HTTP GET on the URL must yield a [google.protobuf.Type][] - // value in binary format, or produce an error. - // * Applications are allowed to cache lookup results based on the - // URL, or have them precompiled into a binary to avoid any - // lookup. Therefore, binary compatibility needs to be preserved - // on changes to types. (Use versioned type names to manage - // breaking changes.) - // - // Note: this functionality is not currently available in the official - // protobuf release, and it is not used for type URLs beginning with - // type.googleapis.com. As of May 2023, there are no widely used type server - // implementations and no plans to implement one. - // - // Schemes other than `http`, `https` (or the empty scheme) might be - // used with implementation specific semantics. - // - string type_url = 1; - - // Must be a valid serialized protocol buffer of the above specified type. - bytes value = 2; -} diff --git a/src/proto/google/protobuf/any_grpc_pb.js b/src/proto/google/protobuf/any_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/google/protobuf/any_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/src/proto/google/protobuf/any_pb.d.ts b/src/proto/google/protobuf/any_pb.d.ts deleted file mode 100644 index be862a10..00000000 --- a/src/proto/google/protobuf/any_pb.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -// package: google.protobuf -// file: google/protobuf/any.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class Any extends jspb.Message { - getTypeUrl(): string; - setTypeUrl(value: string): Any; - getValue(): Uint8Array | string; - getValue_asU8(): Uint8Array; - getValue_asB64(): string; - setValue(value: Uint8Array | string): Any; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Any.AsObject; - static toObject(includeInstance: boolean, msg: Any): Any.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Any, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Any; - static deserializeBinaryFromReader(message: Any, reader: jspb.BinaryReader): Any; -} - -export namespace Any { - export type AsObject = { - typeUrl: string, - value: Uint8Array | string, - } -} diff --git a/src/proto/google/protobuf/any_pb.js b/src/proto/google/protobuf/any_pb.js deleted file mode 100644 index c9799fca..00000000 --- a/src/proto/google/protobuf/any_pb.js +++ /dev/null @@ -1,281 +0,0 @@ -// source: google/protobuf/any.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 = - (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); -/** - * 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.google.protobuf.Any = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.Any, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.Any.displayName = 'proto.google.protobuf.Any'; -} - - - -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.google.protobuf.Any.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.Any.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.google.protobuf.Any} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.Any.toObject = function(includeInstance, msg) { - var f, obj = { - typeUrl: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: msg.getValue_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.google.protobuf.Any} - */ -proto.google.protobuf.Any.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.Any; - return proto.google.protobuf.Any.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.Any} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.Any} - */ -proto.google.protobuf.Any.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.setTypeUrl(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.Any.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.Any.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.Any} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.Any.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTypeUrl(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getValue_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional string type_url = 1; - * @return {string} - */ -proto.google.protobuf.Any.prototype.getTypeUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.Any} returns this - */ -proto.google.protobuf.Any.prototype.setTypeUrl = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes value = 2; - * @return {!(string|Uint8Array)} - */ -proto.google.protobuf.Any.prototype.getValue = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes value = 2; - * This is a type-conversion wrapper around `getValue()` - * @return {string} - */ -proto.google.protobuf.Any.prototype.getValue_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getValue())); -}; - - -/** - * optional bytes value = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getValue()` - * @return {!Uint8Array} - */ -proto.google.protobuf.Any.prototype.getValue_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getValue())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.google.protobuf.Any} returns this - */ -proto.google.protobuf.Any.prototype.setValue = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -goog.object.extend(exports, proto.google.protobuf); -/* This code will be inserted into generated code for - * google/protobuf/any.proto. */ - -/** - * Returns the type name contained in this instance, if any. - * @return {string|undefined} - */ -proto.google.protobuf.Any.prototype.getTypeName = function() { - return this.getTypeUrl().split('/').pop(); -}; - - -/** - * Packs the given message instance into this Any. - * For binary format usage only. - * @param {!Uint8Array} serialized The serialized data to pack. - * @param {string} name The type name of this message object. - * @param {string=} opt_typeUrlPrefix the type URL prefix. - */ -proto.google.protobuf.Any.prototype.pack = function(serialized, name, - opt_typeUrlPrefix) { - if (!opt_typeUrlPrefix) { - opt_typeUrlPrefix = 'type.googleapis.com/'; - } - - if (opt_typeUrlPrefix.substr(-1) != '/') { - this.setTypeUrl(opt_typeUrlPrefix + '/' + name); - } else { - this.setTypeUrl(opt_typeUrlPrefix + name); - } - - this.setValue(serialized); -}; - - -/** - * @template T - * Unpacks this Any into the given message object. - * @param {function(Uint8Array):T} deserialize Function that will deserialize - * the binary data properly. - * @param {string} name The expected type name of this message object. - * @return {?T} If the name matched the expected name, returns the deserialized - * object, otherwise returns null. - */ -proto.google.protobuf.Any.prototype.unpack = function(deserialize, name) { - if (this.getTypeName() == name) { - return deserialize(this.getValue_asU8()); - } else { - return null; - } -}; diff --git a/src/proto/google/protobuf/empty.proto b/src/proto/google/protobuf/empty.proto deleted file mode 100644 index b87c89dc..00000000 --- a/src/proto/google/protobuf/empty.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option go_package = "google.golang.org/protobuf/types/known/emptypb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "EmptyProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; - -// A generic empty message that you can re-use to avoid defining duplicated -// empty messages in your APIs. A typical example is to use it as the request -// or the response type of an API method. For instance: -// -// service Foo { -// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); -// } -// -message Empty {} diff --git a/src/proto/google/protobuf/empty_grpc_pb.js b/src/proto/google/protobuf/empty_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/google/protobuf/empty_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/src/proto/google/protobuf/empty_pb.d.ts b/src/proto/google/protobuf/empty_pb.d.ts deleted file mode 100644 index 7c053e75..00000000 --- a/src/proto/google/protobuf/empty_pb.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -// package: google.protobuf -// file: google/protobuf/empty.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class Empty extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Empty.AsObject; - static toObject(includeInstance: boolean, msg: Empty): Empty.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Empty, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Empty; - static deserializeBinaryFromReader(message: Empty, reader: jspb.BinaryReader): Empty; -} - -export namespace Empty { - export type AsObject = { - } -} diff --git a/src/proto/google/protobuf/empty_pb.js b/src/proto/google/protobuf/empty_pb.js deleted file mode 100644 index 8cabbd24..00000000 --- a/src/proto/google/protobuf/empty_pb.js +++ /dev/null @@ -1,147 +0,0 @@ -// source: google/protobuf/empty.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 = - (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); -/** - * 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.google.protobuf.Empty = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.Empty, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.Empty.displayName = 'proto.google.protobuf.Empty'; -} - - - -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.google.protobuf.Empty.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.Empty.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.google.protobuf.Empty} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.Empty.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.google.protobuf.Empty} - */ -proto.google.protobuf.Empty.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.Empty; - return proto.google.protobuf.Empty.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.Empty} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.Empty} - */ -proto.google.protobuf.Empty.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.google.protobuf.Empty.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.Empty.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.Empty} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.Empty.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - -goog.object.extend(exports, proto.google.protobuf); diff --git a/src/proto/google/protobuf/timestamp.proto b/src/proto/google/protobuf/timestamp.proto deleted file mode 100644 index fd0bc07d..00000000 --- a/src/proto/google/protobuf/timestamp.proto +++ /dev/null @@ -1,144 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/protobuf/types/known/timestamppb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "TimestampProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; - -// A Timestamp represents a point in time independent of any time zone or local -// calendar, encoded as a count of seconds and fractions of seconds at -// nanosecond resolution. The count is relative to an epoch at UTC midnight on -// January 1, 1970, in the proleptic Gregorian calendar which extends the -// Gregorian calendar backwards to year one. -// -// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap -// second table is needed for interpretation, using a [24-hour linear -// smear](https://developers.google.com/time/smear). -// -// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By -// restricting to that range, we ensure that we can convert to and from [RFC -// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. -// -// # Examples -// -// Example 1: Compute Timestamp from POSIX `time()`. -// -// Timestamp timestamp; -// timestamp.set_seconds(time(NULL)); -// timestamp.set_nanos(0); -// -// Example 2: Compute Timestamp from POSIX `gettimeofday()`. -// -// struct timeval tv; -// gettimeofday(&tv, NULL); -// -// Timestamp timestamp; -// timestamp.set_seconds(tv.tv_sec); -// timestamp.set_nanos(tv.tv_usec * 1000); -// -// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. -// -// FILETIME ft; -// GetSystemTimeAsFileTime(&ft); -// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; -// -// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z -// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. -// Timestamp timestamp; -// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); -// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); -// -// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. -// -// long millis = System.currentTimeMillis(); -// -// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) -// .setNanos((int) ((millis % 1000) * 1000000)).build(); -// -// Example 5: Compute Timestamp from Java `Instant.now()`. -// -// Instant now = Instant.now(); -// -// Timestamp timestamp = -// Timestamp.newBuilder().setSeconds(now.getEpochSecond()) -// .setNanos(now.getNano()).build(); -// -// Example 6: Compute Timestamp from current time in Python. -// -// timestamp = Timestamp() -// timestamp.GetCurrentTime() -// -// # JSON Mapping -// -// In JSON format, the Timestamp type is encoded as a string in the -// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the -// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" -// where {year} is always expressed using four digits while {month}, {day}, -// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional -// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), -// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone -// is required. A proto3 JSON serializer should always use UTC (as indicated by -// "Z") when printing the Timestamp type and a proto3 JSON parser should be -// able to accept both UTC and other timezones (as indicated by an offset). -// -// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past -// 01:30 UTC on January 15, 2017. -// -// In JavaScript, one can convert a Date object to this format using the -// standard -// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) -// method. In Python, a standard `datetime.datetime` object can be converted -// to this format using -// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with -// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use -// the Joda Time's [`ISODateTimeFormat.dateTime()`]( -// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() -// ) to obtain a formatter capable of generating timestamps in this format. -// -message Timestamp { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - int64 seconds = 1; - - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. - int32 nanos = 2; -} diff --git a/src/proto/google/protobuf/timestamp_grpc_pb.js b/src/proto/google/protobuf/timestamp_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/google/protobuf/timestamp_grpc_pb.js +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/src/proto/google/protobuf/timestamp_pb.d.ts b/src/proto/google/protobuf/timestamp_pb.d.ts deleted file mode 100644 index bfc4b376..00000000 --- a/src/proto/google/protobuf/timestamp_pb.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -// package: google.protobuf -// file: google/protobuf/timestamp.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class Timestamp extends jspb.Message { - getSeconds(): number; - setSeconds(value: number): Timestamp; - getNanos(): number; - setNanos(value: number): Timestamp; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Timestamp.AsObject; - static toObject(includeInstance: boolean, msg: Timestamp): Timestamp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Timestamp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Timestamp; - static deserializeBinaryFromReader(message: Timestamp, reader: jspb.BinaryReader): Timestamp; -} - -export namespace Timestamp { - export type AsObject = { - seconds: number, - nanos: number, - } -} diff --git a/src/proto/google/protobuf/timestamp_pb.js b/src/proto/google/protobuf/timestamp_pb.js deleted file mode 100644 index 88db5c81..00000000 --- a/src/proto/google/protobuf/timestamp_pb.js +++ /dev/null @@ -1,242 +0,0 @@ -// source: google/protobuf/timestamp.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 = - (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); -/** - * 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.google.protobuf.Timestamp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.Timestamp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.Timestamp.displayName = 'proto.google.protobuf.Timestamp'; -} - - - -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.google.protobuf.Timestamp.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.Timestamp.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.google.protobuf.Timestamp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.Timestamp.toObject = function(includeInstance, msg) { - var f, obj = { - seconds: jspb.Message.getFieldWithDefault(msg, 1, 0), - nanos: 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.google.protobuf.Timestamp} - */ -proto.google.protobuf.Timestamp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.Timestamp; - return proto.google.protobuf.Timestamp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.Timestamp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.Timestamp} - */ -proto.google.protobuf.Timestamp.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setSeconds(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNanos(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.Timestamp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.Timestamp.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.Timestamp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.Timestamp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSeconds(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getNanos(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } -}; - - -/** - * optional int64 seconds = 1; - * @return {number} - */ -proto.google.protobuf.Timestamp.prototype.getSeconds = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.Timestamp} returns this - */ -proto.google.protobuf.Timestamp.prototype.setSeconds = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int32 nanos = 2; - * @return {number} - */ -proto.google.protobuf.Timestamp.prototype.getNanos = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.Timestamp} returns this - */ -proto.google.protobuf.Timestamp.prototype.setNanos = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -goog.object.extend(exports, proto.google.protobuf); -/* This code will be inserted into generated code for - * google/protobuf/timestamp.proto. */ - -/** - * Returns a JavaScript 'Date' object corresponding to this Timestamp. - * @return {!Date} - */ -proto.google.protobuf.Timestamp.prototype.toDate = function() { - var seconds = this.getSeconds(); - var nanos = this.getNanos(); - - return new Date((seconds * 1000) + (nanos / 1000000)); -}; - - -/** - * Sets the value of this Timestamp object to be the given Date. - * @param {!Date} value The value to set. - */ -proto.google.protobuf.Timestamp.prototype.fromDate = function(value) { - this.setSeconds(Math.floor(value.getTime() / 1000)); - this.setNanos(value.getMilliseconds() * 1000000); -}; - - -/** - * Factory method that returns a Timestamp object with value equal to - * the given Date. - * @param {!Date} value The value to set. - * @return {!proto.google.protobuf.Timestamp} - */ -proto.google.protobuf.Timestamp.fromDate = function(value) { - var timestamp = new proto.google.protobuf.Timestamp(); - timestamp.fromDate(value); - return timestamp; -};