diff --git a/.gitignore b/.gitignore index 8c459c46..8e4b9017 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,8 @@ obj/ # Common node modules locations /node_modules /wwwroot/node_modules +/src/proto/dapr/proto/**/*.d.ts +/src/proto/dapr/proto/**/*.js ### Node ### # Logs 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 deleted file mode 100644 index 477505f9..00000000 --- a/src/proto/dapr/proto/common/v1/common_pb.d.ts +++ /dev/null @@ -1,487 +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. - -// @generated by protoc-gen-es v2.11.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 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, -} - -/** - * 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, -} - -/** - * 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, -} - -/** - * 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; - diff --git a/src/proto/dapr/proto/common/v1/common_pb.js b/src/proto/dapr/proto/common/v1/common_pb.js deleted file mode 100644 index bf30c38d..00000000 --- a/src/proto/dapr/proto/common/v1/common_pb.js +++ /dev/null @@ -1,146 +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. - -// @generated by protoc-gen-es v2.11.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 { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2"; -import { file_google_protobuf_any, file_google_protobuf_duration } from "@bufbuild/protobuf/wkt"; - -/** - * Describes the file dapr/proto/common/v1/common.proto. - */ -export const file_dapr_proto_common_v1_common = /*@__PURE__*/ - fileDesc("CiFkYXByL3Byb3RvL2NvbW1vbi92MS9jb21tb24ucHJvdG8SFGRhcHIucHJvdG8uY29tbW9uLnYxItABCg1IVFRQRXh0ZW5zaW9uEjYKBHZlcmIYASABKA4yKC5kYXByLnByb3RvLmNvbW1vbi52MS5IVFRQRXh0ZW5zaW9uLlZlcmISEwoLcXVlcnlzdHJpbmcYAiABKAkicgoEVmVyYhIICgROT05FEAASBwoDR0VUEAESCAoESEVBRBACEggKBFBPU1QQAxIHCgNQVVQQBBIKCgZERUxFVEUQBRILCgdDT05ORUNUEAYSCwoHT1BUSU9OUxAHEgkKBVRSQUNFEAgSCQoFUEFUQ0gQCSKWAQoNSW52b2tlUmVxdWVzdBIOCgZtZXRob2QYASABKAkSIgoEZGF0YRgCIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSFAoMY29udGVudF90eXBlGAMgASgJEjsKDmh0dHBfZXh0ZW5zaW9uGAQgASgLMiMuZGFwci5wcm90by5jb21tb24udjEuSFRUUEV4dGVuc2lvbiJKCg5JbnZva2VSZXNwb25zZRIiCgRkYXRhGAEgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueRIUCgxjb250ZW50X3R5cGUYAiABKAkiKgoNU3RyZWFtUGF5bG9hZBIMCgRkYXRhGAEgASgMEgsKA3NlcRgCIAEoBCL4AQoJU3RhdGVJdGVtEgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoDBIoCgRldGFnGAMgASgLMhouZGFwci5wcm90by5jb21tb24udjEuRXRhZxI/CghtZXRhZGF0YRgEIAMoCzItLmRhcHIucHJvdG8uY29tbW9uLnYxLlN0YXRlSXRlbS5NZXRhZGF0YUVudHJ5EjMKB29wdGlvbnMYBSABKAsyIi5kYXByLnByb3RvLmNvbW1vbi52MS5TdGF0ZU9wdGlvbnMaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIhUKBEV0YWcSDQoFdmFsdWUYASABKAki7wIKDFN0YXRlT3B0aW9ucxJICgtjb25jdXJyZW5jeRgBIAEoDjIzLmRhcHIucHJvdG8uY29tbW9uLnYxLlN0YXRlT3B0aW9ucy5TdGF0ZUNvbmN1cnJlbmN5EkgKC2NvbnNpc3RlbmN5GAIgASgOMjMuZGFwci5wcm90by5jb21tb24udjEuU3RhdGVPcHRpb25zLlN0YXRlQ29uc2lzdGVuY3kiaAoQU3RhdGVDb25jdXJyZW5jeRIbChdDT05DVVJSRU5DWV9VTlNQRUNJRklFRBAAEhsKF0NPTkNVUlJFTkNZX0ZJUlNUX1dSSVRFEAESGgoWQ09OQ1VSUkVOQ1lfTEFTVF9XUklURRACImEKEFN0YXRlQ29uc2lzdGVuY3kSGwoXQ09OU0lTVEVOQ1lfVU5TUEVDSUZJRUQQABIYChRDT05TSVNURU5DWV9FVkVOVFVBTBABEhYKEkNPTlNJU1RFTkNZX1NUUk9ORxACIq0BChFDb25maWd1cmF0aW9uSXRlbRINCgV2YWx1ZRgBIAEoCRIPCgd2ZXJzaW9uGAIgASgJEkcKCG1ldGFkYXRhGAMgAygLMjUuZGFwci5wcm90by5jb21tb24udjEuQ29uZmlndXJhdGlvbkl0ZW0uTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEinAEKEEpvYkZhaWx1cmVQb2xpY3kSOgoEZHJvcBgBIAEoCzIqLmRhcHIucHJvdG8uY29tbW9uLnYxLkpvYkZhaWx1cmVQb2xpY3lEcm9wSAASQgoIY29uc3RhbnQYAiABKAsyLi5kYXByLnByb3RvLmNvbW1vbi52MS5Kb2JGYWlsdXJlUG9saWN5Q29uc3RhbnRIAEIICgZwb2xpY3kiFgoUSm9iRmFpbHVyZVBvbGljeURyb3AicQoYSm9iRmFpbHVyZVBvbGljeUNvbnN0YW50EisKCGludGVydmFsGAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEhgKC21heF9yZXRyaWVzGAIgASgNSACIAQFCDgoMX21heF9yZXRyaWVzQssBChhjb20uZGFwci5wcm90by5jb21tb24udjFCC0NvbW1vblByb3RvUAFaL2dpdGh1Yi5jb20vZGFwci9kYXByL3BrZy9wcm90by9jb21tb24vdjE7Y29tbW9uogIDRFBDqgIURGFwci5Qcm90by5Db21tb24uVjHKAhREYXByXFByb3RvXENvbW1vblxWMeICIERhcHJcUHJvdG9cQ29tbW9uXFYxXEdQQk1ldGFkYXRh6gIXRGFwcjo6UHJvdG86OkNvbW1vbjo6VjFiBnByb3RvMw", [file_google_protobuf_any, file_google_protobuf_duration]); - -/** - * Describes the message dapr.proto.common.v1.HTTPExtension. - * Use `create(HTTPExtensionSchema)` to create a new message. - */ -export const HTTPExtensionSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_common_v1_common, 0); - -/** - * Describes the enum dapr.proto.common.v1.HTTPExtension.Verb. - */ -export const HTTPExtension_VerbSchema = /*@__PURE__*/ - enumDesc(file_dapr_proto_common_v1_common, 0, 0); - -/** - * 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 const HTTPExtension_Verb = /*@__PURE__*/ - tsEnum(HTTPExtension_VerbSchema); - -/** - * Describes the message dapr.proto.common.v1.InvokeRequest. - * Use `create(InvokeRequestSchema)` to create a new message. - */ -export const InvokeRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_common_v1_common, 1); - -/** - * Describes the message dapr.proto.common.v1.InvokeResponse. - * Use `create(InvokeResponseSchema)` to create a new message. - */ -export const InvokeResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_common_v1_common, 2); - -/** - * Describes the message dapr.proto.common.v1.StreamPayload. - * Use `create(StreamPayloadSchema)` to create a new message. - */ -export const StreamPayloadSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_common_v1_common, 3); - -/** - * Describes the message dapr.proto.common.v1.StateItem. - * Use `create(StateItemSchema)` to create a new message. - */ -export const StateItemSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_common_v1_common, 4); - -/** - * Describes the message dapr.proto.common.v1.Etag. - * Use `create(EtagSchema)` to create a new message. - */ -export const EtagSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_common_v1_common, 5); - -/** - * Describes the message dapr.proto.common.v1.StateOptions. - * Use `create(StateOptionsSchema)` to create a new message. - */ -export const StateOptionsSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_common_v1_common, 6); - -/** - * Describes the enum dapr.proto.common.v1.StateOptions.StateConcurrency. - */ -export const StateOptions_StateConcurrencySchema = /*@__PURE__*/ - enumDesc(file_dapr_proto_common_v1_common, 6, 0); - -/** - * Enum describing the supported concurrency for state. - * - * @generated from enum dapr.proto.common.v1.StateOptions.StateConcurrency - */ -export const StateOptions_StateConcurrency = /*@__PURE__*/ - tsEnum(StateOptions_StateConcurrencySchema); - -/** - * Describes the enum dapr.proto.common.v1.StateOptions.StateConsistency. - */ -export const StateOptions_StateConsistencySchema = /*@__PURE__*/ - enumDesc(file_dapr_proto_common_v1_common, 6, 1); - -/** - * Enum describing the supported consistency for state. - * - * @generated from enum dapr.proto.common.v1.StateOptions.StateConsistency - */ -export const StateOptions_StateConsistency = /*@__PURE__*/ - tsEnum(StateOptions_StateConsistencySchema); - -/** - * Describes the message dapr.proto.common.v1.ConfigurationItem. - * Use `create(ConfigurationItemSchema)` to create a new message. - */ -export const ConfigurationItemSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_common_v1_common, 7); - -/** - * Describes the message dapr.proto.common.v1.JobFailurePolicy. - * Use `create(JobFailurePolicySchema)` to create a new message. - */ -export const JobFailurePolicySchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_common_v1_common, 8); - -/** - * Describes the message dapr.proto.common.v1.JobFailurePolicyDrop. - * Use `create(JobFailurePolicyDropSchema)` to create a new message. - */ -export const JobFailurePolicyDropSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_common_v1_common, 9); - -/** - * Describes the message dapr.proto.common.v1.JobFailurePolicyConstant. - * Use `create(JobFailurePolicyConstantSchema)` to create a new message. - */ -export const JobFailurePolicyConstantSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_common_v1_common, 10); - 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 b1b02694..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 = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -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/jobs.proto b/src/proto/dapr/proto/internals/v1/jobs.proto deleted file mode 100644 index 4bb937e0..00000000 --- a/src/proto/dapr/proto/internals/v1/jobs.proto +++ /dev/null @@ -1,53 +0,0 @@ -/* -Copyright 2024 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/struct.proto"; -import "google/protobuf/any.proto"; -import "dapr/proto/scheduler/v1/scheduler.proto"; -import "dapr/proto/common/v1/common.proto"; - -option go_package = "github.com/dapr/dapr/pkg/proto/internals/v1;internals"; - -// JobHTTPRequest is a request object for creating a job when using the HTTP -// Dapr Job API. Specifically used so `data` is always serialized as a JSON -// object (google.protobuf.Struct). -// For field docmentation see `dapr/proto/runtime/v1/dapr.proto`. -message JobHTTPRequest { - string name = 1 [json_name = "name"]; - optional string schedule = 2 [json_name = "schedule"]; - optional uint32 repeats = 3 [json_name = "repeats"]; - optional string due_time = 4 [json_name = "dueTime"]; - optional string ttl = 5 [json_name = "ttl"]; - google.protobuf.Value data = 6 [json_name = "data"]; - optional bool overwrite = 7 [json_name = "overwrite"]; - optional common.v1.JobFailurePolicy failure_policy = 8 [json_name = "failurePolicy"]; -} - -// JobEvent is an event of a job to be processed by Scheduler. -message JobEvent { - // key is the FQDN key of the job. - string key = 1; - - // name is the name of the job. - string name = 2; - - // metadata is the metadata associated with the job. - scheduler.v1.JobMetadata metadata = 3; - - // data is the data payload of the job. - google.protobuf.Any data = 4; -} diff --git a/src/proto/dapr/proto/internals/v1/jobs_grpc_pb.js b/src/proto/dapr/proto/internals/v1/jobs_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/internals/v1/jobs_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/jobs_pb.d.ts b/src/proto/dapr/proto/internals/v1/jobs_pb.d.ts deleted file mode 100644 index e6c7ad12..00000000 --- a/src/proto/dapr/proto/internals/v1/jobs_pb.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -// package: dapr.proto.internals.v1 -// file: dapr/proto/internals/v1/jobs.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; -import * as dapr_proto_scheduler_v1_scheduler_pb from "../../../../dapr/proto/scheduler/v1/scheduler_pb"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; - -export class JobHTTPRequest extends jspb.Message { - getName(): string; - setName(value: string): JobHTTPRequest; - - hasSchedule(): boolean; - clearSchedule(): void; - getSchedule(): string | undefined; - setSchedule(value: string): JobHTTPRequest; - - hasRepeats(): boolean; - clearRepeats(): void; - getRepeats(): number | undefined; - setRepeats(value: number): JobHTTPRequest; - - hasDueTime(): boolean; - clearDueTime(): void; - getDueTime(): string | undefined; - setDueTime(value: string): JobHTTPRequest; - - hasTtl(): boolean; - clearTtl(): void; - getTtl(): string | undefined; - setTtl(value: string): JobHTTPRequest; - - hasData(): boolean; - clearData(): void; - getData(): google_protobuf_struct_pb.Value | undefined; - setData(value?: google_protobuf_struct_pb.Value): JobHTTPRequest; - - hasOverwrite(): boolean; - clearOverwrite(): void; - getOverwrite(): boolean | undefined; - setOverwrite(value: boolean): JobHTTPRequest; - - hasFailurePolicy(): boolean; - clearFailurePolicy(): void; - getFailurePolicy(): dapr_proto_common_v1_common_pb.JobFailurePolicy | undefined; - setFailurePolicy(value?: dapr_proto_common_v1_common_pb.JobFailurePolicy): JobHTTPRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JobHTTPRequest.AsObject; - static toObject(includeInstance: boolean, msg: JobHTTPRequest): JobHTTPRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: JobHTTPRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JobHTTPRequest; - static deserializeBinaryFromReader(message: JobHTTPRequest, reader: jspb.BinaryReader): JobHTTPRequest; -} - -export namespace JobHTTPRequest { - export type AsObject = { - name: string, - schedule?: string, - repeats?: number, - dueTime?: string, - ttl?: string, - data?: google_protobuf_struct_pb.Value.AsObject, - overwrite?: boolean, - failurePolicy?: dapr_proto_common_v1_common_pb.JobFailurePolicy.AsObject, - } -} - -export class JobEvent extends jspb.Message { - getKey(): string; - setKey(value: string): JobEvent; - getName(): string; - setName(value: string): JobEvent; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): dapr_proto_scheduler_v1_scheduler_pb.JobMetadata | undefined; - setMetadata(value?: dapr_proto_scheduler_v1_scheduler_pb.JobMetadata): JobEvent; - - hasData(): boolean; - clearData(): void; - getData(): google_protobuf_any_pb.Any | undefined; - setData(value?: google_protobuf_any_pb.Any): JobEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JobEvent.AsObject; - static toObject(includeInstance: boolean, msg: JobEvent): JobEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: JobEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JobEvent; - static deserializeBinaryFromReader(message: JobEvent, reader: jspb.BinaryReader): JobEvent; -} - -export namespace JobEvent { - export type AsObject = { - key: string, - name: string, - metadata?: dapr_proto_scheduler_v1_scheduler_pb.JobMetadata.AsObject, - data?: google_protobuf_any_pb.Any.AsObject, - } -} diff --git a/src/proto/dapr/proto/internals/v1/jobs_pb.js b/src/proto/dapr/proto/internals/v1/jobs_pb.js deleted file mode 100644 index 88b4f6f7..00000000 --- a/src/proto/dapr/proto/internals/v1/jobs_pb.js +++ /dev/null @@ -1,810 +0,0 @@ -// source: dapr/proto/internals/v1/jobs.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -var dapr_proto_scheduler_v1_scheduler_pb = require('../../../../dapr/proto/scheduler/v1/scheduler_pb.js'); -goog.object.extend(proto, dapr_proto_scheduler_v1_scheduler_pb); -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -goog.object.extend(proto, dapr_proto_common_v1_common_pb); -goog.exportSymbol('proto.dapr.proto.internals.v1.JobEvent', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.JobHTTPRequest', 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.JobHTTPRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.JobHTTPRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.JobHTTPRequest.displayName = 'proto.dapr.proto.internals.v1.JobHTTPRequest'; -} -/** - * 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.JobEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.JobEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.JobEvent.displayName = 'proto.dapr.proto.internals.v1.JobEvent'; -} - - - -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.JobHTTPRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.JobHTTPRequest.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.JobHTTPRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.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_struct_pb.Value.toObject(includeInstance, f), - overwrite: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - failurePolicy: (f = msg.getFailurePolicy()) && dapr_proto_common_v1_common_pb.JobFailurePolicy.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.JobHTTPRequest; - return proto.dapr.proto.internals.v1.JobHTTPRequest.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.JobHTTPRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.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_struct_pb.Value; - reader.readMessage(value,google_protobuf_struct_pb.Value.deserializeBinaryFromReader); - msg.setData(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOverwrite(value); - break; - case 8: - var value = new dapr_proto_common_v1_common_pb.JobFailurePolicy; - reader.readMessage(value,dapr_proto_common_v1_common_pb.JobFailurePolicy.deserializeBinaryFromReader); - msg.setFailurePolicy(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.JobHTTPRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.JobHTTPRequest.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.JobHTTPRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.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_struct_pb.Value.serializeBinaryToWriter - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeBool( - 7, - f - ); - } - f = message.getFailurePolicy(); - if (f != null) { - writer.writeMessage( - 8, - f, - dapr_proto_common_v1_common_pb.JobFailurePolicy.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string schedule = 2; - * @return {string} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.getSchedule = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.setSchedule = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.clearSchedule = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.hasSchedule = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional uint32 repeats = 3; - * @return {number} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.getRepeats = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.setRepeats = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.clearRepeats = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.hasRepeats = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string due_time = 4; - * @return {string} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.getDueTime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.setDueTime = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.clearDueTime = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.hasDueTime = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string ttl = 5; - * @return {string} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.getTtl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.setTtl = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.clearTtl = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.hasTtl = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Value data = 6; - * @return {?proto.google.protobuf.Value} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.getData = function() { - return /** @type{?proto.google.protobuf.Value} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 6)); -}; - - -/** - * @param {?proto.google.protobuf.Value|undefined} value - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this -*/ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.hasData = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional bool overwrite = 7; - * @return {boolean} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.getOverwrite = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.setOverwrite = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.clearOverwrite = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.hasOverwrite = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional dapr.proto.common.v1.JobFailurePolicy failure_policy = 8; - * @return {?proto.dapr.proto.common.v1.JobFailurePolicy} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.getFailurePolicy = function() { - return /** @type{?proto.dapr.proto.common.v1.JobFailurePolicy} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.JobFailurePolicy, 8)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.JobFailurePolicy|undefined} value - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this -*/ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.setFailurePolicy = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.JobHTTPRequest} returns this - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.clearFailurePolicy = function() { - return this.setFailurePolicy(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.JobHTTPRequest.prototype.hasFailurePolicy = function() { - return jspb.Message.getField(this, 8) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.JobEvent.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.JobEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.JobEvent.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - metadata: (f = msg.getMetadata()) && dapr_proto_scheduler_v1_scheduler_pb.JobMetadata.toObject(includeInstance, f), - data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.internals.v1.JobEvent} - */ -proto.dapr.proto.internals.v1.JobEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.JobEvent; - return proto.dapr.proto.internals.v1.JobEvent.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.JobEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.JobEvent} - */ -proto.dapr.proto.internals.v1.JobEvent.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.setName(value); - break; - case 3: - var value = new dapr_proto_scheduler_v1_scheduler_pb.JobMetadata; - reader.readMessage(value,dapr_proto_scheduler_v1_scheduler_pb.JobMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 4: - 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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.JobEvent.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.JobEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.JobEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 3, - f, - dapr_proto_scheduler_v1_scheduler_pb.JobMetadata.serializeBinaryToWriter - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string key = 1; - * @return {string} - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.JobEvent} returns this - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.JobEvent} returns this - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional dapr.proto.scheduler.v1.JobMetadata metadata = 3; - * @return {?proto.dapr.proto.scheduler.v1.JobMetadata} - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.getMetadata = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.JobMetadata} */ ( - jspb.Message.getWrapperField(this, dapr_proto_scheduler_v1_scheduler_pb.JobMetadata, 3)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.JobMetadata|undefined} value - * @return {!proto.dapr.proto.internals.v1.JobEvent} returns this -*/ -proto.dapr.proto.internals.v1.JobEvent.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.JobEvent} returns this - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Any data = 4; - * @return {?proto.google.protobuf.Any} - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.getData = function() { - return /** @type{?proto.google.protobuf.Any} */ ( - jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Any|undefined} value - * @return {!proto.dapr.proto.internals.v1.JobEvent} returns this -*/ -proto.dapr.proto.internals.v1.JobEvent.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.JobEvent} returns this - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.JobEvent.prototype.hasData = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -goog.object.extend(exports, proto.dapr.proto.internals.v1); diff --git a/src/proto/dapr/proto/internals/v1/reminders.proto b/src/proto/dapr/proto/internals/v1/reminders.proto deleted file mode 100644 index b285f7db..00000000 --- a/src/proto/dapr/proto/internals/v1/reminders.proto +++ /dev/null @@ -1,47 +0,0 @@ -/* -Copyright 2023 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/timestamp.proto"; -import "google/protobuf/any.proto"; - -option go_package = "github.com/dapr/dapr/pkg/proto/internals/v1;internals"; - -// Reminder represents a reminder that is stored in the Dapr actor state store. -message Reminder { - string actor_id = 1; - string actor_type = 2; - string name = 3; - google.protobuf.Any data = 4; - string period = 5; - google.protobuf.Timestamp registered_time = 6; - string due_time = 7; - google.protobuf.Timestamp expiration_time = 8; - bool is_timer = 9; - bool skip_lock = 10; -} - -// Reminders is a collection of reminders. -message Reminders { - repeated Reminder reminders = 1; -} - -// TimerFiredEvent is the event that is sent to the actor when a timer fires. -message TimerFiredEvent { - google.protobuf.Timestamp fire_at = 1; - int32 timerId = 2; - uint64 generation = 3; -} diff --git a/src/proto/dapr/proto/internals/v1/reminders_grpc_pb.js b/src/proto/dapr/proto/internals/v1/reminders_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/internals/v1/reminders_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/reminders_pb.d.ts b/src/proto/dapr/proto/internals/v1/reminders_pb.d.ts deleted file mode 100644 index ab972cae..00000000 --- a/src/proto/dapr/proto/internals/v1/reminders_pb.d.ts +++ /dev/null @@ -1,116 +0,0 @@ -// package: dapr.proto.internals.v1 -// file: dapr/proto/internals/v1/reminders.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; - -export class Reminder extends jspb.Message { - getActorId(): string; - setActorId(value: string): Reminder; - getActorType(): string; - setActorType(value: string): Reminder; - getName(): string; - setName(value: string): Reminder; - - hasData(): boolean; - clearData(): void; - getData(): google_protobuf_any_pb.Any | undefined; - setData(value?: google_protobuf_any_pb.Any): Reminder; - getPeriod(): string; - setPeriod(value: string): Reminder; - - hasRegisteredTime(): boolean; - clearRegisteredTime(): void; - getRegisteredTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setRegisteredTime(value?: google_protobuf_timestamp_pb.Timestamp): Reminder; - getDueTime(): string; - setDueTime(value: string): Reminder; - - hasExpirationTime(): boolean; - clearExpirationTime(): void; - getExpirationTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setExpirationTime(value?: google_protobuf_timestamp_pb.Timestamp): Reminder; - getIsTimer(): boolean; - setIsTimer(value: boolean): Reminder; - getSkipLock(): boolean; - setSkipLock(value: boolean): Reminder; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Reminder.AsObject; - static toObject(includeInstance: boolean, msg: Reminder): Reminder.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Reminder, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Reminder; - static deserializeBinaryFromReader(message: Reminder, reader: jspb.BinaryReader): Reminder; -} - -export namespace Reminder { - export type AsObject = { - actorId: string, - actorType: string, - name: string, - data?: google_protobuf_any_pb.Any.AsObject, - period: string, - registeredTime?: google_protobuf_timestamp_pb.Timestamp.AsObject, - dueTime: string, - expirationTime?: google_protobuf_timestamp_pb.Timestamp.AsObject, - isTimer: boolean, - skipLock: boolean, - } -} - -export class Reminders extends jspb.Message { - clearRemindersList(): void; - getRemindersList(): Array; - setRemindersList(value: Array): Reminders; - addReminders(value?: Reminder, index?: number): Reminder; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Reminders.AsObject; - static toObject(includeInstance: boolean, msg: Reminders): Reminders.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Reminders, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Reminders; - static deserializeBinaryFromReader(message: Reminders, reader: jspb.BinaryReader): Reminders; -} - -export namespace Reminders { - export type AsObject = { - remindersList: Array, - } -} - -export class TimerFiredEvent extends jspb.Message { - - hasFireAt(): boolean; - clearFireAt(): void; - getFireAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setFireAt(value?: google_protobuf_timestamp_pb.Timestamp): TimerFiredEvent; - getTimerid(): number; - setTimerid(value: number): TimerFiredEvent; - getGeneration(): number; - setGeneration(value: number): TimerFiredEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TimerFiredEvent.AsObject; - static toObject(includeInstance: boolean, msg: TimerFiredEvent): TimerFiredEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TimerFiredEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TimerFiredEvent; - static deserializeBinaryFromReader(message: TimerFiredEvent, reader: jspb.BinaryReader): TimerFiredEvent; -} - -export namespace TimerFiredEvent { - export type AsObject = { - fireAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - timerid: number, - generation: number, - } -} diff --git a/src/proto/dapr/proto/internals/v1/reminders_pb.js b/src/proto/dapr/proto/internals/v1/reminders_pb.js deleted file mode 100644 index 87ea5367..00000000 --- a/src/proto/dapr/proto/internals/v1/reminders_pb.js +++ /dev/null @@ -1,928 +0,0 @@ -// source: dapr/proto/internals/v1/reminders.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -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.Reminder', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.Reminders', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.TimerFiredEvent', 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.Reminder = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.Reminder, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.Reminder.displayName = 'proto.dapr.proto.internals.v1.Reminder'; -} -/** - * 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.Reminders = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.internals.v1.Reminders.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.Reminders, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.Reminders.displayName = 'proto.dapr.proto.internals.v1.Reminders'; -} -/** - * 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.TimerFiredEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.TimerFiredEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.TimerFiredEvent.displayName = 'proto.dapr.proto.internals.v1.TimerFiredEvent'; -} - - - -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.Reminder.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.Reminder.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.Reminder} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.Reminder.toObject = function(includeInstance, msg) { - var f, obj = { - actorId: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorType: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), - period: jspb.Message.getFieldWithDefault(msg, 5, ""), - registeredTime: (f = msg.getRegisteredTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - dueTime: jspb.Message.getFieldWithDefault(msg, 7, ""), - expirationTime: (f = msg.getExpirationTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - isTimer: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - skipLock: jspb.Message.getBooleanFieldWithDefault(msg, 10, 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.internals.v1.Reminder} - */ -proto.dapr.proto.internals.v1.Reminder.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.Reminder; - return proto.dapr.proto.internals.v1.Reminder.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.Reminder} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.Reminder} - */ -proto.dapr.proto.internals.v1.Reminder.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.setActorId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setActorType(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.setData(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPeriod(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setRegisteredTime(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDueTime(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setExpirationTime(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsTimer(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSkipLock(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.Reminder.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.Reminder.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.Reminder} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.Reminder.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getActorId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getActorType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } - f = message.getPeriod(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRegisteredTime(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDueTime(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getExpirationTime(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getIsTimer(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getSkipLock(); - if (f) { - writer.writeBool( - 10, - f - ); - } -}; - - -/** - * optional string actor_id = 1; - * @return {string} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this - */ -proto.dapr.proto.internals.v1.Reminder.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string actor_type = 2; - * @return {string} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this - */ -proto.dapr.proto.internals.v1.Reminder.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this - */ -proto.dapr.proto.internals.v1.Reminder.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional google.protobuf.Any data = 4; - * @return {?proto.google.protobuf.Any} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.getData = function() { - return /** @type{?proto.google.protobuf.Any} */ ( - jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Any|undefined} value - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this -*/ -proto.dapr.proto.internals.v1.Reminder.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this - */ -proto.dapr.proto.internals.v1.Reminder.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.hasData = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string period = 5; - * @return {string} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.getPeriod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this - */ -proto.dapr.proto.internals.v1.Reminder.prototype.setPeriod = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional google.protobuf.Timestamp registered_time = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.getRegisteredTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this -*/ -proto.dapr.proto.internals.v1.Reminder.prototype.setRegisteredTime = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this - */ -proto.dapr.proto.internals.v1.Reminder.prototype.clearRegisteredTime = function() { - return this.setRegisteredTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.hasRegisteredTime = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional string due_time = 7; - * @return {string} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.getDueTime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this - */ -proto.dapr.proto.internals.v1.Reminder.prototype.setDueTime = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional google.protobuf.Timestamp expiration_time = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.getExpirationTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this -*/ -proto.dapr.proto.internals.v1.Reminder.prototype.setExpirationTime = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this - */ -proto.dapr.proto.internals.v1.Reminder.prototype.clearExpirationTime = function() { - return this.setExpirationTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.hasExpirationTime = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional bool is_timer = 9; - * @return {boolean} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.getIsTimer = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this - */ -proto.dapr.proto.internals.v1.Reminder.prototype.setIsTimer = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional bool skip_lock = 10; - * @return {boolean} - */ -proto.dapr.proto.internals.v1.Reminder.prototype.getSkipLock = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.internals.v1.Reminder} returns this - */ -proto.dapr.proto.internals.v1.Reminder.prototype.setSkipLock = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.internals.v1.Reminders.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.internals.v1.Reminders.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.Reminders.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.Reminders} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.Reminders.toObject = function(includeInstance, msg) { - var f, obj = { - remindersList: jspb.Message.toObjectList(msg.getRemindersList(), - proto.dapr.proto.internals.v1.Reminder.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.Reminders} - */ -proto.dapr.proto.internals.v1.Reminders.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.Reminders; - return proto.dapr.proto.internals.v1.Reminders.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.Reminders} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.Reminders} - */ -proto.dapr.proto.internals.v1.Reminders.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.dapr.proto.internals.v1.Reminder; - reader.readMessage(value,proto.dapr.proto.internals.v1.Reminder.deserializeBinaryFromReader); - msg.addReminders(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.Reminders.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.Reminders.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.Reminders} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.Reminders.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRemindersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.internals.v1.Reminder.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Reminder reminders = 1; - * @return {!Array} - */ -proto.dapr.proto.internals.v1.Reminders.prototype.getRemindersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.internals.v1.Reminder, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.internals.v1.Reminders} returns this -*/ -proto.dapr.proto.internals.v1.Reminders.prototype.setRemindersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.internals.v1.Reminder=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.internals.v1.Reminder} - */ -proto.dapr.proto.internals.v1.Reminders.prototype.addReminders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.internals.v1.Reminder, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.internals.v1.Reminders} returns this - */ -proto.dapr.proto.internals.v1.Reminders.prototype.clearRemindersList = function() { - return this.setRemindersList([]); -}; - - - - - -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.TimerFiredEvent.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.TimerFiredEvent.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.TimerFiredEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.TimerFiredEvent.toObject = function(includeInstance, msg) { - var f, obj = { - fireAt: (f = msg.getFireAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - timerid: jspb.Message.getFieldWithDefault(msg, 2, 0), - generation: 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.internals.v1.TimerFiredEvent} - */ -proto.dapr.proto.internals.v1.TimerFiredEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.TimerFiredEvent; - return proto.dapr.proto.internals.v1.TimerFiredEvent.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.TimerFiredEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.TimerFiredEvent} - */ -proto.dapr.proto.internals.v1.TimerFiredEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setFireAt(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTimerid(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setGeneration(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.TimerFiredEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.TimerFiredEvent.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.TimerFiredEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.TimerFiredEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFireAt(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getTimerid(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getGeneration(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } -}; - - -/** - * optional google.protobuf.Timestamp fire_at = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.dapr.proto.internals.v1.TimerFiredEvent.prototype.getFireAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.dapr.proto.internals.v1.TimerFiredEvent} returns this -*/ -proto.dapr.proto.internals.v1.TimerFiredEvent.prototype.setFireAt = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.TimerFiredEvent} returns this - */ -proto.dapr.proto.internals.v1.TimerFiredEvent.prototype.clearFireAt = function() { - return this.setFireAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.TimerFiredEvent.prototype.hasFireAt = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int32 timerId = 2; - * @return {number} - */ -proto.dapr.proto.internals.v1.TimerFiredEvent.prototype.getTimerid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.internals.v1.TimerFiredEvent} returns this - */ -proto.dapr.proto.internals.v1.TimerFiredEvent.prototype.setTimerid = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 generation = 3; - * @return {number} - */ -proto.dapr.proto.internals.v1.TimerFiredEvent.prototype.getGeneration = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.internals.v1.TimerFiredEvent} returns this - */ -proto.dapr.proto.internals.v1.TimerFiredEvent.prototype.setGeneration = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -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 d764e18c..00000000 --- a/src/proto/dapr/proto/internals/v1/service_invocation.proto +++ /dev/null @@ -1,129 +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) {} - - // CallActorStream is used to invoke actor method with request and streaming - // response. - rpc CallActorStream (InternalInvokeRequest) returns (stream InternalInvokeResponse) {} -} - -// 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/service_invocation_grpc_pb.d.ts b/src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.d.ts deleted file mode 100644 index 399a70ae..00000000 --- a/src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -// package: dapr.proto.internals.v1 -// file: dapr/proto/internals/v1/service_invocation.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as dapr_proto_internals_v1_service_invocation_pb from "../../../../dapr/proto/internals/v1/service_invocation_pb"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; -import * as dapr_proto_internals_v1_reminders_pb from "../../../../dapr/proto/internals/v1/reminders_pb"; -import * as dapr_proto_internals_v1_apiversion_pb from "../../../../dapr/proto/internals/v1/apiversion_pb"; -import * as dapr_proto_internals_v1_status_pb from "../../../../dapr/proto/internals/v1/status_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; - -interface IServiceInvocationService extends grpc.ServiceDefinition { - callActor: IServiceInvocationService_ICallActor; - callLocal: IServiceInvocationService_ICallLocal; - callActorReminder: IServiceInvocationService_ICallActorReminder; - callLocalStream: IServiceInvocationService_ICallLocalStream; - callActorStream: IServiceInvocationService_ICallActorStream; -} - -interface IServiceInvocationService_ICallActor extends grpc.MethodDefinition { - path: "/dapr.proto.internals.v1.ServiceInvocation/CallActor"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IServiceInvocationService_ICallLocal extends grpc.MethodDefinition { - path: "/dapr.proto.internals.v1.ServiceInvocation/CallLocal"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IServiceInvocationService_ICallActorReminder extends grpc.MethodDefinition { - path: "/dapr.proto.internals.v1.ServiceInvocation/CallActorReminder"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IServiceInvocationService_ICallLocalStream extends grpc.MethodDefinition { - path: "/dapr.proto.internals.v1.ServiceInvocation/CallLocalStream"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IServiceInvocationService_ICallActorStream extends grpc.MethodDefinition { - path: "/dapr.proto.internals.v1.ServiceInvocation/CallActorStream"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const ServiceInvocationService: IServiceInvocationService; - -export interface IServiceInvocationServer extends grpc.UntypedServiceImplementation { - callActor: grpc.handleUnaryCall; - callLocal: grpc.handleUnaryCall; - callActorReminder: grpc.handleUnaryCall; - callLocalStream: grpc.handleBidiStreamingCall; - callActorStream: grpc.handleServerStreamingCall; -} - -export interface IServiceInvocationClient { - callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - callActorReminder(request: dapr_proto_internals_v1_reminders_pb.Reminder, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - callActorReminder(request: dapr_proto_internals_v1_reminders_pb.Reminder, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - callActorReminder(request: dapr_proto_internals_v1_reminders_pb.Reminder, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - callLocalStream(): grpc.ClientDuplexStream; - callLocalStream(options: Partial): grpc.ClientDuplexStream; - callLocalStream(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - callActorStream(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, options?: Partial): grpc.ClientReadableStream; - callActorStream(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; -} - -export class ServiceInvocationClient extends grpc.Client implements IServiceInvocationClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callActor(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callLocal(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse) => void): grpc.ClientUnaryCall; - public callActorReminder(request: dapr_proto_internals_v1_reminders_pb.Reminder, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public callActorReminder(request: dapr_proto_internals_v1_reminders_pb.Reminder, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public callActorReminder(request: dapr_proto_internals_v1_reminders_pb.Reminder, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public callLocalStream(options?: Partial): grpc.ClientDuplexStream; - public callLocalStream(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public callActorStream(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, options?: Partial): grpc.ClientReadableStream; - public callActorStream(request: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; -} diff --git a/src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.js b/src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.js deleted file mode 100644 index 2b91fd3e..00000000 --- a/src/proto/dapr/proto/internals/v1/service_invocation_grpc_pb.js +++ /dev/null @@ -1,174 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// Original file comments: -// -// Copyright 2021 The Dapr Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -'use strict'; -var grpc = require('@grpc/grpc-js'); -var dapr_proto_internals_v1_service_invocation_pb = require('../../../../dapr/proto/internals/v1/service_invocation_pb.js'); -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -var dapr_proto_internals_v1_reminders_pb = require('../../../../dapr/proto/internals/v1/reminders_pb.js'); -var dapr_proto_internals_v1_apiversion_pb = require('../../../../dapr/proto/internals/v1/apiversion_pb.js'); -var dapr_proto_internals_v1_status_pb = require('../../../../dapr/proto/internals/v1/status_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); - -function serialize_dapr_proto_internals_v1_InternalInvokeRequest(arg) { - if (!(arg instanceof dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest)) { - throw new Error('Expected argument of type dapr.proto.internals.v1.InternalInvokeRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_internals_v1_InternalInvokeRequest(buffer_arg) { - return dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_internals_v1_InternalInvokeRequestStream(arg) { - if (!(arg instanceof dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequestStream)) { - throw new Error('Expected argument of type dapr.proto.internals.v1.InternalInvokeRequestStream'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_internals_v1_InternalInvokeRequestStream(buffer_arg) { - return dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequestStream.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_internals_v1_InternalInvokeResponse(arg) { - if (!(arg instanceof dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse)) { - throw new Error('Expected argument of type dapr.proto.internals.v1.InternalInvokeResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_internals_v1_InternalInvokeResponse(buffer_arg) { - return dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_internals_v1_InternalInvokeResponseStream(arg) { - if (!(arg instanceof dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponseStream)) { - throw new Error('Expected argument of type dapr.proto.internals.v1.InternalInvokeResponseStream'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_internals_v1_InternalInvokeResponseStream(buffer_arg) { - return dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponseStream.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_internals_v1_Reminder(arg) { - if (!(arg instanceof dapr_proto_internals_v1_reminders_pb.Reminder)) { - throw new Error('Expected argument of type dapr.proto.internals.v1.Reminder'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_internals_v1_Reminder(buffer_arg) { - return dapr_proto_internals_v1_reminders_pb.Reminder.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)); -} - - -// ServiceInvocation service is used to exchange the data between -// caller dapr runtime and callee dapr runtime. -// -// The request message includes caller's HTTP/gRPC request -// and deliver callee's response including status code. -// The response status of rpc methods represents of internal gRPC -// connection status, not callee's response status. -// -// Thus, ServiceInvocation gRPC response returns OK in most cases -// regardless of callee's response. -var ServiceInvocationService = exports.ServiceInvocationService = { - // Invokes a method of the specific actor. -callActor: { - path: '/dapr.proto.internals.v1.ServiceInvocation/CallActor', - requestStream: false, - responseStream: false, - requestType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, - responseType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse, - requestSerialize: serialize_dapr_proto_internals_v1_InternalInvokeRequest, - requestDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeRequest, - responseSerialize: serialize_dapr_proto_internals_v1_InternalInvokeResponse, - responseDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeResponse, - }, - // Invokes a method of the specific service. -callLocal: { - path: '/dapr.proto.internals.v1.ServiceInvocation/CallLocal', - requestStream: false, - responseStream: false, - requestType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, - responseType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse, - requestSerialize: serialize_dapr_proto_internals_v1_InternalInvokeRequest, - requestDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeRequest, - responseSerialize: serialize_dapr_proto_internals_v1_InternalInvokeResponse, - responseDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeResponse, - }, - // Invoke a remote internal actor reminder -callActorReminder: { - path: '/dapr.proto.internals.v1.ServiceInvocation/CallActorReminder', - requestStream: false, - responseStream: false, - requestType: dapr_proto_internals_v1_reminders_pb.Reminder, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_dapr_proto_internals_v1_Reminder, - requestDeserialize: deserialize_dapr_proto_internals_v1_Reminder, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_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). -callLocalStream: { - path: '/dapr.proto.internals.v1.ServiceInvocation/CallLocalStream', - requestStream: true, - responseStream: true, - requestType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequestStream, - responseType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponseStream, - requestSerialize: serialize_dapr_proto_internals_v1_InternalInvokeRequestStream, - requestDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeRequestStream, - responseSerialize: serialize_dapr_proto_internals_v1_InternalInvokeResponseStream, - responseDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeResponseStream, - }, - // CallActorStream is used to invoke actor method with request and streaming -// response. -callActorStream: { - path: '/dapr.proto.internals.v1.ServiceInvocation/CallActorStream', - requestStream: false, - responseStream: true, - requestType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeRequest, - responseType: dapr_proto_internals_v1_service_invocation_pb.InternalInvokeResponse, - requestSerialize: serialize_dapr_proto_internals_v1_InternalInvokeRequest, - requestDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeRequest, - responseSerialize: serialize_dapr_proto_internals_v1_InternalInvokeResponse, - responseDeserialize: deserialize_dapr_proto_internals_v1_InternalInvokeResponse, - }, -}; - -exports.ServiceInvocationClient = grpc.makeGenericClientConstructor(ServiceInvocationService, 'ServiceInvocation'); diff --git a/src/proto/dapr/proto/internals/v1/service_invocation_pb.d.ts b/src/proto/dapr/proto/internals/v1/service_invocation_pb.d.ts deleted file mode 100644 index 3c06d024..00000000 --- a/src/proto/dapr/proto/internals/v1/service_invocation_pb.d.ts +++ /dev/null @@ -1,191 +0,0 @@ -// package: dapr.proto.internals.v1 -// file: dapr/proto/internals/v1/service_invocation.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; -import * as dapr_proto_internals_v1_reminders_pb from "../../../../dapr/proto/internals/v1/reminders_pb"; -import * as dapr_proto_internals_v1_apiversion_pb from "../../../../dapr/proto/internals/v1/apiversion_pb"; -import * as dapr_proto_internals_v1_status_pb from "../../../../dapr/proto/internals/v1/status_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; - -export class Actor extends jspb.Message { - getActorType(): string; - setActorType(value: string): Actor; - getActorId(): string; - setActorId(value: string): Actor; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Actor.AsObject; - static toObject(includeInstance: boolean, msg: Actor): Actor.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Actor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Actor; - static deserializeBinaryFromReader(message: Actor, reader: jspb.BinaryReader): Actor; -} - -export namespace Actor { - export type AsObject = { - actorType: string, - actorId: string, - } -} - -export class InternalInvokeRequest extends jspb.Message { - getVer(): dapr_proto_internals_v1_apiversion_pb.APIVersion; - setVer(value: dapr_proto_internals_v1_apiversion_pb.APIVersion): InternalInvokeRequest; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - hasMessage(): boolean; - clearMessage(): void; - getMessage(): dapr_proto_common_v1_common_pb.InvokeRequest | undefined; - setMessage(value?: dapr_proto_common_v1_common_pb.InvokeRequest): InternalInvokeRequest; - - hasActor(): boolean; - clearActor(): void; - getActor(): Actor | undefined; - setActor(value?: Actor): InternalInvokeRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InternalInvokeRequest.AsObject; - static toObject(includeInstance: boolean, msg: InternalInvokeRequest): InternalInvokeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InternalInvokeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InternalInvokeRequest; - static deserializeBinaryFromReader(message: InternalInvokeRequest, reader: jspb.BinaryReader): InternalInvokeRequest; -} - -export namespace InternalInvokeRequest { - export type AsObject = { - ver: dapr_proto_internals_v1_apiversion_pb.APIVersion, - - metadataMap: Array<[string, ListStringValue.AsObject]>, - message?: dapr_proto_common_v1_common_pb.InvokeRequest.AsObject, - actor?: Actor.AsObject, - } -} - -export class InternalInvokeResponse extends jspb.Message { - - hasStatus(): boolean; - clearStatus(): void; - getStatus(): dapr_proto_internals_v1_status_pb.Status | undefined; - setStatus(value?: dapr_proto_internals_v1_status_pb.Status): InternalInvokeResponse; - - getHeadersMap(): jspb.Map; - clearHeadersMap(): void; - - getTrailersMap(): jspb.Map; - clearTrailersMap(): void; - - hasMessage(): boolean; - clearMessage(): void; - getMessage(): dapr_proto_common_v1_common_pb.InvokeResponse | undefined; - setMessage(value?: dapr_proto_common_v1_common_pb.InvokeResponse): InternalInvokeResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InternalInvokeResponse.AsObject; - static toObject(includeInstance: boolean, msg: InternalInvokeResponse): InternalInvokeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InternalInvokeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InternalInvokeResponse; - static deserializeBinaryFromReader(message: InternalInvokeResponse, reader: jspb.BinaryReader): InternalInvokeResponse; -} - -export namespace InternalInvokeResponse { - export type AsObject = { - status?: dapr_proto_internals_v1_status_pb.Status.AsObject, - - headersMap: Array<[string, ListStringValue.AsObject]>, - - trailersMap: Array<[string, ListStringValue.AsObject]>, - message?: dapr_proto_common_v1_common_pb.InvokeResponse.AsObject, - } -} - -export class InternalInvokeRequestStream extends jspb.Message { - - hasRequest(): boolean; - clearRequest(): void; - getRequest(): InternalInvokeRequest | undefined; - setRequest(value?: InternalInvokeRequest): InternalInvokeRequestStream; - - hasPayload(): boolean; - clearPayload(): void; - getPayload(): dapr_proto_common_v1_common_pb.StreamPayload | undefined; - setPayload(value?: dapr_proto_common_v1_common_pb.StreamPayload): InternalInvokeRequestStream; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InternalInvokeRequestStream.AsObject; - static toObject(includeInstance: boolean, msg: InternalInvokeRequestStream): InternalInvokeRequestStream.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InternalInvokeRequestStream, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InternalInvokeRequestStream; - static deserializeBinaryFromReader(message: InternalInvokeRequestStream, reader: jspb.BinaryReader): InternalInvokeRequestStream; -} - -export namespace InternalInvokeRequestStream { - export type AsObject = { - request?: InternalInvokeRequest.AsObject, - payload?: dapr_proto_common_v1_common_pb.StreamPayload.AsObject, - } -} - -export class InternalInvokeResponseStream extends jspb.Message { - - hasResponse(): boolean; - clearResponse(): void; - getResponse(): InternalInvokeResponse | undefined; - setResponse(value?: InternalInvokeResponse): InternalInvokeResponseStream; - - hasPayload(): boolean; - clearPayload(): void; - getPayload(): dapr_proto_common_v1_common_pb.StreamPayload | undefined; - setPayload(value?: dapr_proto_common_v1_common_pb.StreamPayload): InternalInvokeResponseStream; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InternalInvokeResponseStream.AsObject; - static toObject(includeInstance: boolean, msg: InternalInvokeResponseStream): InternalInvokeResponseStream.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InternalInvokeResponseStream, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InternalInvokeResponseStream; - static deserializeBinaryFromReader(message: InternalInvokeResponseStream, reader: jspb.BinaryReader): InternalInvokeResponseStream; -} - -export namespace InternalInvokeResponseStream { - export type AsObject = { - response?: InternalInvokeResponse.AsObject, - payload?: dapr_proto_common_v1_common_pb.StreamPayload.AsObject, - } -} - -export class ListStringValue extends jspb.Message { - clearValuesList(): void; - getValuesList(): Array; - setValuesList(value: Array): ListStringValue; - addValues(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListStringValue.AsObject; - static toObject(includeInstance: boolean, msg: ListStringValue): ListStringValue.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListStringValue, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListStringValue; - static deserializeBinaryFromReader(message: ListStringValue, reader: jspb.BinaryReader): ListStringValue; -} - -export namespace ListStringValue { - export type AsObject = { - valuesList: Array, - } -} diff --git a/src/proto/dapr/proto/internals/v1/service_invocation_pb.js b/src/proto/dapr/proto/internals/v1/service_invocation_pb.js deleted file mode 100644 index ef68ba10..00000000 --- a/src/proto/dapr/proto/internals/v1/service_invocation_pb.js +++ /dev/null @@ -1,1419 +0,0 @@ -// source: dapr/proto/internals/v1/service_invocation.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -goog.object.extend(proto, dapr_proto_common_v1_common_pb); -var dapr_proto_internals_v1_reminders_pb = require('../../../../dapr/proto/internals/v1/reminders_pb.js'); -goog.object.extend(proto, dapr_proto_internals_v1_reminders_pb); -var dapr_proto_internals_v1_apiversion_pb = require('../../../../dapr/proto/internals/v1/apiversion_pb.js'); -goog.object.extend(proto, dapr_proto_internals_v1_apiversion_pb); -var dapr_proto_internals_v1_status_pb = require('../../../../dapr/proto/internals/v1/status_pb.js'); -goog.object.extend(proto, dapr_proto_internals_v1_status_pb); -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.internals.v1.Actor', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.InternalInvokeRequest', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.InternalInvokeRequestStream', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.InternalInvokeResponse', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.InternalInvokeResponseStream', null, global); -goog.exportSymbol('proto.dapr.proto.internals.v1.ListStringValue', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.dapr.proto.internals.v1.Actor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.Actor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.Actor.displayName = 'proto.dapr.proto.internals.v1.Actor'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.InternalInvokeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.InternalInvokeRequest.displayName = 'proto.dapr.proto.internals.v1.InternalInvokeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.InternalInvokeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.InternalInvokeResponse.displayName = 'proto.dapr.proto.internals.v1.InternalInvokeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.InternalInvokeRequestStream, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.InternalInvokeRequestStream.displayName = 'proto.dapr.proto.internals.v1.InternalInvokeRequestStream'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.InternalInvokeResponseStream, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.InternalInvokeResponseStream.displayName = 'proto.dapr.proto.internals.v1.InternalInvokeResponseStream'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.dapr.proto.internals.v1.ListStringValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.internals.v1.ListStringValue.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.internals.v1.ListStringValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.internals.v1.ListStringValue.displayName = 'proto.dapr.proto.internals.v1.ListStringValue'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.internals.v1.Actor.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.Actor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.dapr.proto.internals.v1.Actor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.Actor.toObject = function(includeInstance, msg) { - var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.internals.v1.Actor} - */ -proto.dapr.proto.internals.v1.Actor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.Actor; - return proto.dapr.proto.internals.v1.Actor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.Actor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.Actor} - */ -proto.dapr.proto.internals.v1.Actor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setActorType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setActorId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.Actor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.Actor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.internals.v1.Actor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.Actor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getActorType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getActorId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string actor_type = 1; - * @return {string} - */ -proto.dapr.proto.internals.v1.Actor.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.Actor} returns this - */ -proto.dapr.proto.internals.v1.Actor.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string actor_id = 2; - * @return {string} - */ -proto.dapr.proto.internals.v1.Actor.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.internals.v1.Actor} returns this - */ -proto.dapr.proto.internals.v1.Actor.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.InternalInvokeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.dapr.proto.internals.v1.InternalInvokeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - ver: jspb.Message.getFieldWithDefault(msg, 1, 0), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, proto.dapr.proto.internals.v1.ListStringValue.toObject) : [], - message: (f = msg.getMessage()) && dapr_proto_common_v1_common_pb.InvokeRequest.toObject(includeInstance, f), - actor: (f = msg.getActor()) && proto.dapr.proto.internals.v1.Actor.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.InternalInvokeRequest; - return proto.dapr.proto.internals.v1.InternalInvokeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.dapr.proto.internals.v1.APIVersion} */ (reader.readEnum()); - msg.setVer(value); - break; - case 2: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.internals.v1.ListStringValue.deserializeBinaryFromReader, "", new proto.dapr.proto.internals.v1.ListStringValue()); - }); - break; - case 3: - var value = new dapr_proto_common_v1_common_pb.InvokeRequest; - reader.readMessage(value,dapr_proto_common_v1_common_pb.InvokeRequest.deserializeBinaryFromReader); - msg.setMessage(value); - break; - case 4: - var value = new proto.dapr.proto.internals.v1.Actor; - reader.readMessage(value,proto.dapr.proto.internals.v1.Actor.deserializeBinaryFromReader); - msg.setActor(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.InternalInvokeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVer(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.internals.v1.ListStringValue.serializeBinaryToWriter); - } - f = message.getMessage(); - if (f != null) { - writer.writeMessage( - 3, - f, - dapr_proto_common_v1_common_pb.InvokeRequest.serializeBinaryToWriter - ); - } - f = message.getActor(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.dapr.proto.internals.v1.Actor.serializeBinaryToWriter - ); - } -}; - - -/** - * optional APIVersion ver = 1; - * @return {!proto.dapr.proto.internals.v1.APIVersion} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.getVer = function() { - return /** @type {!proto.dapr.proto.internals.v1.APIVersion} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.dapr.proto.internals.v1.APIVersion} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.setVer = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * map metadata = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - proto.dapr.proto.internals.v1.ListStringValue)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * optional dapr.proto.common.v1.InvokeRequest message = 3; - * @return {?proto.dapr.proto.common.v1.InvokeRequest} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.getMessage = function() { - return /** @type{?proto.dapr.proto.common.v1.InvokeRequest} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.InvokeRequest, 3)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.InvokeRequest|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.setMessage = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.clearMessage = function() { - return this.setMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.hasMessage = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Actor actor = 4; - * @return {?proto.dapr.proto.internals.v1.Actor} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.getActor = function() { - return /** @type{?proto.dapr.proto.internals.v1.Actor} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.internals.v1.Actor, 4)); -}; - - -/** - * @param {?proto.dapr.proto.internals.v1.Actor|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.setActor = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequest} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.clearActor = function() { - return this.setActor(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.hasActor = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.InternalInvokeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.dapr.proto.internals.v1.InternalInvokeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - status: (f = msg.getStatus()) && dapr_proto_internals_v1_status_pb.Status.toObject(includeInstance, f), - headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, proto.dapr.proto.internals.v1.ListStringValue.toObject) : [], - trailersMap: (f = msg.getTrailersMap()) ? f.toObject(includeInstance, proto.dapr.proto.internals.v1.ListStringValue.toObject) : [], - message: (f = msg.getMessage()) && dapr_proto_common_v1_common_pb.InvokeResponse.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.InternalInvokeResponse; - return proto.dapr.proto.internals.v1.InternalInvokeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new dapr_proto_internals_v1_status_pb.Status; - reader.readMessage(value,dapr_proto_internals_v1_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 2: - var value = msg.getHeadersMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.internals.v1.ListStringValue.deserializeBinaryFromReader, "", new proto.dapr.proto.internals.v1.ListStringValue()); - }); - break; - case 3: - var value = msg.getTrailersMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.internals.v1.ListStringValue.deserializeBinaryFromReader, "", new proto.dapr.proto.internals.v1.ListStringValue()); - }); - break; - case 4: - var value = new dapr_proto_common_v1_common_pb.InvokeResponse; - reader.readMessage(value,dapr_proto_common_v1_common_pb.InvokeResponse.deserializeBinaryFromReader); - msg.setMessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.InternalInvokeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 1, - f, - dapr_proto_internals_v1_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getHeadersMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.internals.v1.ListStringValue.serializeBinaryToWriter); - } - f = message.getTrailersMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.internals.v1.ListStringValue.serializeBinaryToWriter); - } - f = message.getMessage(); - if (f != null) { - writer.writeMessage( - 4, - f, - dapr_proto_common_v1_common_pb.InvokeResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Status status = 1; - * @return {?proto.dapr.proto.internals.v1.Status} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getStatus = function() { - return /** @type{?proto.dapr.proto.internals.v1.Status} */ ( - jspb.Message.getWrapperField(this, dapr_proto_internals_v1_status_pb.Status, 1)); -}; - - -/** - * @param {?proto.dapr.proto.internals.v1.Status|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * map headers = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getHeadersMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - proto.dapr.proto.internals.v1.ListStringValue)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearHeadersMap = function() { - this.getHeadersMap().clear(); - return this;}; - - -/** - * map trailers = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getTrailersMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - proto.dapr.proto.internals.v1.ListStringValue)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearTrailersMap = function() { - this.getTrailersMap().clear(); - return this;}; - - -/** - * optional dapr.proto.common.v1.InvokeResponse message = 4; - * @return {?proto.dapr.proto.common.v1.InvokeResponse} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getMessage = function() { - return /** @type{?proto.dapr.proto.common.v1.InvokeResponse} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.InvokeResponse, 4)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.InvokeResponse|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.setMessage = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponse} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearMessage = function() { - return this.setMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.hasMessage = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.InternalInvokeRequestStream.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && proto.dapr.proto.internals.v1.InternalInvokeRequest.toObject(includeInstance, f), - payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.InternalInvokeRequestStream; - return proto.dapr.proto.internals.v1.InternalInvokeRequestStream.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.dapr.proto.internals.v1.InternalInvokeRequest; - reader.readMessage(value,proto.dapr.proto.internals.v1.InternalInvokeRequest.deserializeBinaryFromReader); - msg.setRequest(value); - break; - case 2: - var value = new dapr_proto_common_v1_common_pb.StreamPayload; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); - msg.setPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.InternalInvokeRequestStream.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.internals.v1.InternalInvokeRequest.serializeBinaryToWriter - ); - } - f = message.getPayload(); - if (f != null) { - writer.writeMessage( - 2, - f, - dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional InternalInvokeRequest request = 1; - * @return {?proto.dapr.proto.internals.v1.InternalInvokeRequest} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.getRequest = function() { - return /** @type{?proto.dapr.proto.internals.v1.InternalInvokeRequest} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.internals.v1.InternalInvokeRequest, 1)); -}; - - -/** - * @param {?proto.dapr.proto.internals.v1.InternalInvokeRequest|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.hasRequest = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional dapr.proto.common.v1.StreamPayload payload = 2; - * @return {?proto.dapr.proto.common.v1.StreamPayload} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.getPayload = function() { - return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 2)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.setPayload = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeRequestStream} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.clearPayload = function() { - return this.setPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeRequestStream.prototype.hasPayload = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.InternalInvokeResponseStream.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && proto.dapr.proto.internals.v1.InternalInvokeResponse.toObject(includeInstance, f), - payload: (f = msg.getPayload()) && dapr_proto_common_v1_common_pb.StreamPayload.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.InternalInvokeResponseStream; - return proto.dapr.proto.internals.v1.InternalInvokeResponseStream.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.dapr.proto.internals.v1.InternalInvokeResponse; - reader.readMessage(value,proto.dapr.proto.internals.v1.InternalInvokeResponse.deserializeBinaryFromReader); - msg.setResponse(value); - break; - case 2: - var value = new dapr_proto_common_v1_common_pb.StreamPayload; - reader.readMessage(value,dapr_proto_common_v1_common_pb.StreamPayload.deserializeBinaryFromReader); - msg.setPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.InternalInvokeResponseStream.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.internals.v1.InternalInvokeResponse.serializeBinaryToWriter - ); - } - f = message.getPayload(); - if (f != null) { - writer.writeMessage( - 2, - f, - dapr_proto_common_v1_common_pb.StreamPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional InternalInvokeResponse response = 1; - * @return {?proto.dapr.proto.internals.v1.InternalInvokeResponse} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.getResponse = function() { - return /** @type{?proto.dapr.proto.internals.v1.InternalInvokeResponse} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.internals.v1.InternalInvokeResponse, 1)); -}; - - -/** - * @param {?proto.dapr.proto.internals.v1.InternalInvokeResponse|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.hasResponse = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional dapr.proto.common.v1.StreamPayload payload = 2; - * @return {?proto.dapr.proto.common.v1.StreamPayload} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.getPayload = function() { - return /** @type{?proto.dapr.proto.common.v1.StreamPayload} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.StreamPayload, 2)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.StreamPayload|undefined} value - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} returns this -*/ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.setPayload = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.internals.v1.InternalInvokeResponseStream} returns this - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.clearPayload = function() { - return this.setPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.internals.v1.InternalInvokeResponseStream.prototype.hasPayload = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.internals.v1.ListStringValue.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.dapr.proto.internals.v1.ListStringValue.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.internals.v1.ListStringValue.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.dapr.proto.internals.v1.ListStringValue} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.ListStringValue.toObject = function(includeInstance, msg) { - var f, obj = { - valuesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.internals.v1.ListStringValue} - */ -proto.dapr.proto.internals.v1.ListStringValue.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.internals.v1.ListStringValue; - return proto.dapr.proto.internals.v1.ListStringValue.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.internals.v1.ListStringValue} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.internals.v1.ListStringValue} - */ -proto.dapr.proto.internals.v1.ListStringValue.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addValues(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.internals.v1.ListStringValue.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.internals.v1.ListStringValue.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.internals.v1.ListStringValue} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.internals.v1.ListStringValue.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValuesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string values = 1; - * @return {!Array} - */ -proto.dapr.proto.internals.v1.ListStringValue.prototype.getValuesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.internals.v1.ListStringValue} returns this - */ -proto.dapr.proto.internals.v1.ListStringValue.prototype.setValuesList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.internals.v1.ListStringValue} returns this - */ -proto.dapr.proto.internals.v1.ListStringValue.prototype.addValues = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.internals.v1.ListStringValue} returns this - */ -proto.dapr.proto.internals.v1.ListStringValue.prototype.clearValuesList = function() { - return this.setValuesList([]); -}; - - -goog.object.extend(exports, proto.dapr.proto.internals.v1); diff --git a/src/proto/dapr/proto/internals/v1/status.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 9253d7af..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 = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -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 75c2b70b..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, 'Operator'); 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 1bb4fd81..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 = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -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 dadc5be2..00000000 --- a/src/proto/dapr/proto/placement/v1/placement.proto +++ /dev/null @@ -1,91 +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; - - uint64 version = 3; -} - -message PlacementTables { - map entries = 1; - - // Deprecated: use version in PlacementOrder version instead. - string version = 2 [deprecated = true]; - - // Deprecated: not used - uint32 api_level = 3 [deprecated = true]; - - int64 replication_factor = 4; -} - -message PlacementTable { - // Deprecated: hosts map is no longer used. - map hosts = 1 [deprecated = true]; - - // Deprecated: sorted_set is no longer used. - repeated uint64 sorted_set = 2 [deprecated = true]; - - // TODO: @joshvanl: rename to hosts_map. - map load_map = 3; - - // Deprecated: total_load is no longer used. - int64 total_load = 4 [deprecated = true]; -} - -message Host { - // TODO: @joshvanl: make name and port optional. - string name = 1; - int64 port = 2; - - // Deprecated: load is no longer used. - int64 load = 3 [deprecated = true]; - - repeated string entities = 4; - - string id = 5; - - // Deprecated: not used - string pod = 6 [deprecated = true]; - uint32 api_level = 7 [deprecated = true]; - - string namespace = 8; - - // operation indicates the type of operation the host is responding to. - HostOperation operation = 9; - - // version made optional to check for presence. Version should match the - // current operation table version. - optional uint64 version = 10; -} - -enum HostOperation { - UNKNOWN = 0; - REPORT = 1; - LOCK = 2; - UPDATE = 3; - UNLOCK = 4; -} 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 de9bd2ec..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, 'Placement'); 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 212bb972..00000000 --- a/src/proto/dapr/proto/placement/v1/placement_pb.d.ts +++ /dev/null @@ -1,162 +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; - getVersion(): number; - setVersion(value: number): 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, - version: number, - } -} - -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; - getOperation(): HostOperation; - setOperation(value: HostOperation): Host; - - hasVersion(): boolean; - clearVersion(): void; - getVersion(): number | undefined; - setVersion(value: number): 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, - operation: HostOperation, - version?: number, - } -} - -export enum HostOperation { - UNKNOWN = 0, - REPORT = 1, - LOCK = 2, - UPDATE = 3, - UNLOCK = 4, -} 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 02b4cf75..00000000 --- a/src/proto/dapr/proto/placement/v1/placement_pb.js +++ /dev/null @@ -1,1256 +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 = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -goog.exportSymbol('proto.dapr.proto.placement.v1.Host', null, global); -goog.exportSymbol('proto.dapr.proto.placement.v1.HostOperation', 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, ""), - version: 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.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; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setVersion(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 - ); - } - f = message.getVersion(); - if (f !== 0) { - writer.writeUint64( - 3, - 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); -}; - - -/** - * optional uint64 version = 3; - * @return {number} - */ -proto.dapr.proto.placement.v1.PlacementOrder.prototype.getVersion = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.placement.v1.PlacementOrder} returns this - */ -proto.dapr.proto.placement.v1.PlacementOrder.prototype.setVersion = function(value) { - return jspb.Message.setProto3IntField(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.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, ""), - operation: jspb.Message.getFieldWithDefault(msg, 9, 0), - version: jspb.Message.getFieldWithDefault(msg, 10, 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.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; - case 9: - var value = /** @type {!proto.dapr.proto.placement.v1.HostOperation} */ (reader.readEnum()); - msg.setOperation(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint64()); - msg.setVersion(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 - ); - } - f = message.getOperation(); - if (f !== 0.0) { - writer.writeEnum( - 9, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 10)); - if (f != null) { - writer.writeUint64( - 10, - 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); -}; - - -/** - * optional HostOperation operation = 9; - * @return {!proto.dapr.proto.placement.v1.HostOperation} - */ -proto.dapr.proto.placement.v1.Host.prototype.getOperation = function() { - return /** @type {!proto.dapr.proto.placement.v1.HostOperation} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {!proto.dapr.proto.placement.v1.HostOperation} value - * @return {!proto.dapr.proto.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.setOperation = function(value) { - return jspb.Message.setProto3EnumField(this, 9, value); -}; - - -/** - * optional uint64 version = 10; - * @return {number} - */ -proto.dapr.proto.placement.v1.Host.prototype.getVersion = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.setVersion = function(value) { - return jspb.Message.setField(this, 10, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.placement.v1.Host} returns this - */ -proto.dapr.proto.placement.v1.Host.prototype.clearVersion = function() { - return jspb.Message.setField(this, 10, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.placement.v1.Host.prototype.hasVersion = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * @enum {number} - */ -proto.dapr.proto.placement.v1.HostOperation = { - UNKNOWN: 0, - REPORT: 1, - LOCK: 2, - UPDATE: 3, - UNLOCK: 4 -}; - -goog.object.extend(exports, proto.dapr.proto.placement.v1); diff --git a/src/proto/dapr/proto/runtime/v1/actors_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/actors_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/actors_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/runtime/v1/actors_pb.d.ts b/src/proto/dapr/proto/runtime/v1/actors_pb.d.ts deleted file mode 100644 index 8141393d..00000000 --- a/src/proto/dapr/proto/runtime/v1/actors_pb.d.ts +++ /dev/null @@ -1,566 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/actors.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; - -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; - - hasOverwrite(): boolean; - clearOverwrite(): void; - getOverwrite(): boolean | undefined; - setOverwrite(value: boolean): RegisterActorReminderRequest; - - hasFailurePolicy(): boolean; - clearFailurePolicy(): void; - getFailurePolicy(): dapr_proto_common_v1_common_pb.JobFailurePolicy | undefined; - setFailurePolicy(value?: dapr_proto_common_v1_common_pb.JobFailurePolicy): 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, - overwrite?: boolean, - failurePolicy?: dapr_proto_common_v1_common_pb.JobFailurePolicy.AsObject, - } -} - -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 GetActorReminderRequest extends jspb.Message { - getActorType(): string; - setActorType(value: string): GetActorReminderRequest; - getActorId(): string; - setActorId(value: string): GetActorReminderRequest; - getName(): string; - setName(value: string): GetActorReminderRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetActorReminderRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetActorReminderRequest): GetActorReminderRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetActorReminderRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetActorReminderRequest; - static deserializeBinaryFromReader(message: GetActorReminderRequest, reader: jspb.BinaryReader): GetActorReminderRequest; -} - -export namespace GetActorReminderRequest { - export type AsObject = { - actorType: string, - actorId: string, - name: string, - } -} - -export class GetActorReminderResponse extends jspb.Message { - getActorType(): string; - setActorType(value: string): GetActorReminderResponse; - getActorId(): string; - setActorId(value: string): GetActorReminderResponse; - - hasDueTime(): boolean; - clearDueTime(): void; - getDueTime(): string | undefined; - setDueTime(value: string): GetActorReminderResponse; - - hasPeriod(): boolean; - clearPeriod(): void; - getPeriod(): string | undefined; - setPeriod(value: string): GetActorReminderResponse; - - hasData(): boolean; - clearData(): void; - getData(): google_protobuf_any_pb.Any | undefined; - setData(value?: google_protobuf_any_pb.Any): GetActorReminderResponse; - - hasTtl(): boolean; - clearTtl(): void; - getTtl(): string | undefined; - setTtl(value: string): GetActorReminderResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetActorReminderResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetActorReminderResponse): GetActorReminderResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetActorReminderResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetActorReminderResponse; - static deserializeBinaryFromReader(message: GetActorReminderResponse, reader: jspb.BinaryReader): GetActorReminderResponse; -} - -export namespace GetActorReminderResponse { - export type AsObject = { - actorType: string, - actorId: string, - dueTime?: string, - period?: string, - data?: google_protobuf_any_pb.Any.AsObject, - ttl?: string, - } -} - -export class ListActorRemindersRequest extends jspb.Message { - getActorType(): string; - setActorType(value: string): ListActorRemindersRequest; - - hasActorId(): boolean; - clearActorId(): void; - getActorId(): string | undefined; - setActorId(value: string): ListActorRemindersRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListActorRemindersRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListActorRemindersRequest): ListActorRemindersRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListActorRemindersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListActorRemindersRequest; - static deserializeBinaryFromReader(message: ListActorRemindersRequest, reader: jspb.BinaryReader): ListActorRemindersRequest; -} - -export namespace ListActorRemindersRequest { - export type AsObject = { - actorType: string, - actorId?: string, - } -} - -export class ListActorRemindersResponse extends jspb.Message { - clearRemindersList(): void; - getRemindersList(): Array; - setRemindersList(value: Array): ListActorRemindersResponse; - addReminders(value?: NamedActorReminder, index?: number): NamedActorReminder; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListActorRemindersResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListActorRemindersResponse): ListActorRemindersResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListActorRemindersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListActorRemindersResponse; - static deserializeBinaryFromReader(message: ListActorRemindersResponse, reader: jspb.BinaryReader): ListActorRemindersResponse; -} - -export namespace ListActorRemindersResponse { - export type AsObject = { - remindersList: Array, - } -} - -export class NamedActorReminder extends jspb.Message { - getName(): string; - setName(value: string): NamedActorReminder; - - hasReminder(): boolean; - clearReminder(): void; - getReminder(): ActorReminder | undefined; - setReminder(value?: ActorReminder): NamedActorReminder; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NamedActorReminder.AsObject; - static toObject(includeInstance: boolean, msg: NamedActorReminder): NamedActorReminder.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NamedActorReminder, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NamedActorReminder; - static deserializeBinaryFromReader(message: NamedActorReminder, reader: jspb.BinaryReader): NamedActorReminder; -} - -export namespace NamedActorReminder { - export type AsObject = { - name: string, - reminder?: ActorReminder.AsObject, - } -} - -export class ActorReminder extends jspb.Message { - getActorType(): string; - setActorType(value: string): ActorReminder; - getActorId(): string; - setActorId(value: string): ActorReminder; - - hasDueTime(): boolean; - clearDueTime(): void; - getDueTime(): string | undefined; - setDueTime(value: string): ActorReminder; - - hasPeriod(): boolean; - clearPeriod(): void; - getPeriod(): string | undefined; - setPeriod(value: string): ActorReminder; - - hasData(): boolean; - clearData(): void; - getData(): google_protobuf_any_pb.Any | undefined; - setData(value?: google_protobuf_any_pb.Any): ActorReminder; - - hasTtl(): boolean; - clearTtl(): void; - getTtl(): string | undefined; - setTtl(value: string): ActorReminder; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ActorReminder.AsObject; - static toObject(includeInstance: boolean, msg: ActorReminder): ActorReminder.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ActorReminder, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ActorReminder; - static deserializeBinaryFromReader(message: ActorReminder, reader: jspb.BinaryReader): ActorReminder; -} - -export namespace ActorReminder { - export type AsObject = { - actorType: string, - actorId: string, - dueTime?: string, - period?: string, - data?: google_protobuf_any_pb.Any.AsObject, - ttl?: string, - } -} - -export class UnregisterActorRemindersByTypeRequest extends jspb.Message { - getActorType(): string; - setActorType(value: string): UnregisterActorRemindersByTypeRequest; - - hasActorId(): boolean; - clearActorId(): void; - getActorId(): string | undefined; - setActorId(value: string): UnregisterActorRemindersByTypeRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnregisterActorRemindersByTypeRequest.AsObject; - static toObject(includeInstance: boolean, msg: UnregisterActorRemindersByTypeRequest): UnregisterActorRemindersByTypeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UnregisterActorRemindersByTypeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnregisterActorRemindersByTypeRequest; - static deserializeBinaryFromReader(message: UnregisterActorRemindersByTypeRequest, reader: jspb.BinaryReader): UnregisterActorRemindersByTypeRequest; -} - -export namespace UnregisterActorRemindersByTypeRequest { - export type AsObject = { - actorType: string, - actorId?: string, - } -} - -export class UnregisterActorRemindersByTypeResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnregisterActorRemindersByTypeResponse.AsObject; - static toObject(includeInstance: boolean, msg: UnregisterActorRemindersByTypeResponse): UnregisterActorRemindersByTypeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UnregisterActorRemindersByTypeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnregisterActorRemindersByTypeResponse; - static deserializeBinaryFromReader(message: UnregisterActorRemindersByTypeResponse, reader: jspb.BinaryReader): UnregisterActorRemindersByTypeResponse; -} - -export namespace UnregisterActorRemindersByTypeResponse { - export type AsObject = { - } -} diff --git a/src/proto/dapr/proto/runtime/v1/actors_pb.js b/src/proto/dapr/proto/runtime/v1/actors_pb.js deleted file mode 100644 index 82ec6f75..00000000 --- a/src/proto/dapr/proto/runtime/v1/actors_pb.js +++ /dev/null @@ -1,4571 +0,0 @@ -// source: dapr/proto/runtime/v1/actors.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -goog.object.extend(proto, dapr_proto_common_v1_common_pb); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ActorReminder', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetActorReminderRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetActorReminderResponse', 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.InvokeActorRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.InvokeActorResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ListActorRemindersRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ListActorRemindersResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.NamedActorReminder', 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.TransactionalActorStateOperation', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.UnregisterActorReminderRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.UnregisterActorTimerRequest', 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.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.GetActorReminderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetActorReminderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetActorReminderRequest.displayName = 'proto.dapr.proto.runtime.v1.GetActorReminderRequest'; -} -/** - * 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.GetActorReminderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.GetActorReminderResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.GetActorReminderResponse.displayName = 'proto.dapr.proto.runtime.v1.GetActorReminderResponse'; -} -/** - * 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.ListActorRemindersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ListActorRemindersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ListActorRemindersRequest.displayName = 'proto.dapr.proto.runtime.v1.ListActorRemindersRequest'; -} -/** - * 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.ListActorRemindersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ListActorRemindersResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ListActorRemindersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ListActorRemindersResponse.displayName = 'proto.dapr.proto.runtime.v1.ListActorRemindersResponse'; -} -/** - * 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.NamedActorReminder = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.NamedActorReminder, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.NamedActorReminder.displayName = 'proto.dapr.proto.runtime.v1.NamedActorReminder'; -} -/** - * 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.ActorReminder = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ActorReminder, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ActorReminder.displayName = 'proto.dapr.proto.runtime.v1.ActorReminder'; -} -/** - * 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.UnregisterActorRemindersByTypeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.displayName = 'proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest'; -} -/** - * 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.UnregisterActorRemindersByTypeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse.displayName = 'proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse'; -} - - - -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, ""), - overwrite: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - failurePolicy: (f = msg.getFailurePolicy()) && dapr_proto_common_v1_common_pb.JobFailurePolicy.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.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; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOverwrite(value); - break; - case 9: - var value = new dapr_proto_common_v1_common_pb.JobFailurePolicy; - reader.readMessage(value,dapr_proto_common_v1_common_pb.JobFailurePolicy.deserializeBinaryFromReader); - msg.setFailurePolicy(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 - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); - if (f != null) { - writer.writeBool( - 8, - f - ); - } - f = message.getFailurePolicy(); - if (f != null) { - writer.writeMessage( - 9, - f, - dapr_proto_common_v1_common_pb.JobFailurePolicy.serializeBinaryToWriter - ); - } -}; - - -/** - * 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); -}; - - -/** - * optional bool overwrite = 8; - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getOverwrite = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setOverwrite = function(value) { - return jspb.Message.setField(this, 8, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.clearOverwrite = function() { - return jspb.Message.setField(this, 8, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.hasOverwrite = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional dapr.proto.common.v1.JobFailurePolicy failure_policy = 9; - * @return {?proto.dapr.proto.common.v1.JobFailurePolicy} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.getFailurePolicy = function() { - return /** @type{?proto.dapr.proto.common.v1.JobFailurePolicy} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.JobFailurePolicy, 9)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.JobFailurePolicy|undefined} value - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this -*/ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.setFailurePolicy = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.RegisterActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.clearFailurePolicy = function() { - return this.setFailurePolicy(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.RegisterActorReminderRequest.prototype.hasFailurePolicy = function() { - return jspb.Message.getField(this, 9) != 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.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.GetActorReminderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetActorReminderRequest.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.GetActorReminderRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetActorReminderRequest.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.GetActorReminderRequest} - */ -proto.dapr.proto.runtime.v1.GetActorReminderRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetActorReminderRequest; - return proto.dapr.proto.runtime.v1.GetActorReminderRequest.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.GetActorReminderRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderRequest} - */ -proto.dapr.proto.runtime.v1.GetActorReminderRequest.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.GetActorReminderRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetActorReminderRequest.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.GetActorReminderRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetActorReminderRequest.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.GetActorReminderRequest.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderRequest.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string actor_id = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorReminderRequest.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderRequest.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorReminderRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderRequest.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.GetActorReminderResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetActorReminderResponse.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.GetActorReminderResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.toObject = function(includeInstance, msg) { - var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - dueTime: jspb.Message.getFieldWithDefault(msg, 4, ""), - period: jspb.Message.getFieldWithDefault(msg, 5, ""), - data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), - 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.GetActorReminderResponse} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.GetActorReminderResponse; - return proto.dapr.proto.runtime.v1.GetActorReminderResponse.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.GetActorReminderResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderResponse} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.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 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 = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - 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.GetActorReminderResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.GetActorReminderResponse.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.GetActorReminderResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.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 = /** @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 - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string actor_type = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string actor_id = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string due_time = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.getDueTime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.setDueTime = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.clearDueTime = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.hasDueTime = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string period = 5; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.getPeriod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.setPeriod = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.clearPeriod = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.hasPeriod = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Any data = 6; - * @return {?proto.google.protobuf.Any} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.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.GetActorReminderResponse} returns this -*/ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional string ttl = 7; - * @return {string} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.getTtl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.setTtl = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetActorReminderResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.clearTtl = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.GetActorReminderResponse.prototype.hasTtl = function() { - return jspb.Message.getField(this, 7) != 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.ListActorRemindersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ListActorRemindersRequest.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.ListActorRemindersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListActorRemindersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.ListActorRemindersRequest} - */ -proto.dapr.proto.runtime.v1.ListActorRemindersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ListActorRemindersRequest; - return proto.dapr.proto.runtime.v1.ListActorRemindersRequest.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.ListActorRemindersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ListActorRemindersRequest} - */ -proto.dapr.proto.runtime.v1.ListActorRemindersRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setActorType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setActorId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.ListActorRemindersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ListActorRemindersRequest.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.ListActorRemindersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListActorRemindersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getActorType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string actor_type = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ListActorRemindersRequest.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ListActorRemindersRequest} returns this - */ -proto.dapr.proto.runtime.v1.ListActorRemindersRequest.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string actor_id = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ListActorRemindersRequest.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ListActorRemindersRequest} returns this - */ -proto.dapr.proto.runtime.v1.ListActorRemindersRequest.prototype.setActorId = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ListActorRemindersRequest} returns this - */ -proto.dapr.proto.runtime.v1.ListActorRemindersRequest.prototype.clearActorId = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ListActorRemindersRequest.prototype.hasActorId = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ListActorRemindersResponse.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.ListActorRemindersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ListActorRemindersResponse.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.ListActorRemindersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListActorRemindersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - remindersList: jspb.Message.toObjectList(msg.getRemindersList(), - proto.dapr.proto.runtime.v1.NamedActorReminder.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.ListActorRemindersResponse} - */ -proto.dapr.proto.runtime.v1.ListActorRemindersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ListActorRemindersResponse; - return proto.dapr.proto.runtime.v1.ListActorRemindersResponse.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.ListActorRemindersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ListActorRemindersResponse} - */ -proto.dapr.proto.runtime.v1.ListActorRemindersResponse.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.NamedActorReminder; - reader.readMessage(value,proto.dapr.proto.runtime.v1.NamedActorReminder.deserializeBinaryFromReader); - msg.addReminders(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.ListActorRemindersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ListActorRemindersResponse.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.ListActorRemindersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListActorRemindersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRemindersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.runtime.v1.NamedActorReminder.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated NamedActorReminder reminders = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ListActorRemindersResponse.prototype.getRemindersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.NamedActorReminder, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ListActorRemindersResponse} returns this -*/ -proto.dapr.proto.runtime.v1.ListActorRemindersResponse.prototype.setRemindersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.NamedActorReminder=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.NamedActorReminder} - */ -proto.dapr.proto.runtime.v1.ListActorRemindersResponse.prototype.addReminders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.NamedActorReminder, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ListActorRemindersResponse} returns this - */ -proto.dapr.proto.runtime.v1.ListActorRemindersResponse.prototype.clearRemindersList = function() { - return this.setRemindersList([]); -}; - - - - - -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.NamedActorReminder.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.NamedActorReminder.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.NamedActorReminder} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.NamedActorReminder.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - reminder: (f = msg.getReminder()) && proto.dapr.proto.runtime.v1.ActorReminder.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.NamedActorReminder} - */ -proto.dapr.proto.runtime.v1.NamedActorReminder.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.NamedActorReminder; - return proto.dapr.proto.runtime.v1.NamedActorReminder.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.NamedActorReminder} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.NamedActorReminder} - */ -proto.dapr.proto.runtime.v1.NamedActorReminder.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 proto.dapr.proto.runtime.v1.ActorReminder; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ActorReminder.deserializeBinaryFromReader); - msg.setReminder(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.NamedActorReminder.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.NamedActorReminder.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.NamedActorReminder} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.NamedActorReminder.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getReminder(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.dapr.proto.runtime.v1.ActorReminder.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.NamedActorReminder.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.NamedActorReminder} returns this - */ -proto.dapr.proto.runtime.v1.NamedActorReminder.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional ActorReminder reminder = 2; - * @return {?proto.dapr.proto.runtime.v1.ActorReminder} - */ -proto.dapr.proto.runtime.v1.NamedActorReminder.prototype.getReminder = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ActorReminder} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ActorReminder, 2)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ActorReminder|undefined} value - * @return {!proto.dapr.proto.runtime.v1.NamedActorReminder} returns this -*/ -proto.dapr.proto.runtime.v1.NamedActorReminder.prototype.setReminder = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.NamedActorReminder} returns this - */ -proto.dapr.proto.runtime.v1.NamedActorReminder.prototype.clearReminder = function() { - return this.setReminder(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.NamedActorReminder.prototype.hasReminder = 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.ActorReminder.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ActorReminder.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.ActorReminder} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ActorReminder.toObject = function(includeInstance, msg) { - var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, ""), - dueTime: jspb.Message.getFieldWithDefault(msg, 4, ""), - period: jspb.Message.getFieldWithDefault(msg, 5, ""), - data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), - 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.ActorReminder} - */ -proto.dapr.proto.runtime.v1.ActorReminder.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ActorReminder; - return proto.dapr.proto.runtime.v1.ActorReminder.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.ActorReminder} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ActorReminder} - */ -proto.dapr.proto.runtime.v1.ActorReminder.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 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 = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - 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.ActorReminder.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ActorReminder.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.ActorReminder} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ActorReminder.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 = /** @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 - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string actor_type = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ActorReminder} returns this - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string actor_id = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ActorReminder} returns this - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.setActorId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string due_time = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.getDueTime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ActorReminder} returns this - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.setDueTime = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ActorReminder} returns this - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.clearDueTime = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.hasDueTime = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string period = 5; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.getPeriod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ActorReminder} returns this - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.setPeriod = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ActorReminder} returns this - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.clearPeriod = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.hasPeriod = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Any data = 6; - * @return {?proto.google.protobuf.Any} - */ -proto.dapr.proto.runtime.v1.ActorReminder.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.ActorReminder} returns this -*/ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ActorReminder} returns this - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.hasData = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional string ttl = 7; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.getTtl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ActorReminder} returns this - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.setTtl = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ActorReminder} returns this - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.clearTtl = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ActorReminder.prototype.hasTtl = function() { - return jspb.Message.getField(this, 7) != 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.UnregisterActorRemindersByTypeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.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.UnregisterActorRemindersByTypeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - actorType: jspb.Message.getFieldWithDefault(msg, 1, ""), - actorId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest} - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest; - return proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.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.UnregisterActorRemindersByTypeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest} - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setActorType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setActorId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.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.UnregisterActorRemindersByTypeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getActorType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string actor_type = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.prototype.getActorType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.prototype.setActorType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string actor_id = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.prototype.getActorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.prototype.setActorId = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest} returns this - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.prototype.clearActorId = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest.prototype.hasActorId = 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.UnregisterActorRemindersByTypeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse.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.UnregisterActorRemindersByTypeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse.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.UnregisterActorRemindersByTypeResponse} - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse; - return proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse.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.UnregisterActorRemindersByTypeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse} - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse.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.UnregisterActorRemindersByTypeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse.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.UnregisterActorRemindersByTypeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/ai_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/ai_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/ai_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/runtime/v1/ai_pb.d.ts b/src/proto/dapr/proto/runtime/v1/ai_pb.d.ts deleted file mode 100644 index 7ba3bdb5..00000000 --- a/src/proto/dapr/proto/runtime/v1/ai_pb.d.ts +++ /dev/null @@ -1,808 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/ai.proto - -/* tslint:disable */ -/* 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_struct_pb from "google-protobuf/google/protobuf/struct_pb"; -import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; - -export class ConversationRequest extends jspb.Message { - getName(): string; - setName(value: string): ConversationRequest; - - hasContextid(): boolean; - clearContextid(): void; - getContextid(): string | undefined; - setContextid(value: string): ConversationRequest; - clearInputsList(): void; - getInputsList(): Array; - setInputsList(value: Array): ConversationRequest; - addInputs(value?: ConversationInput, index?: number): ConversationInput; - - getParametersMap(): jspb.Map; - clearParametersMap(): void; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - hasScrubpii(): boolean; - clearScrubpii(): void; - getScrubpii(): boolean | undefined; - setScrubpii(value: boolean): ConversationRequest; - - hasTemperature(): boolean; - clearTemperature(): void; - getTemperature(): number | undefined; - setTemperature(value: number): ConversationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationRequest.AsObject; - static toObject(includeInstance: boolean, msg: ConversationRequest): ConversationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationRequest; - static deserializeBinaryFromReader(message: ConversationRequest, reader: jspb.BinaryReader): ConversationRequest; -} - -export namespace ConversationRequest { - export type AsObject = { - name: string, - contextid?: string, - inputsList: Array, - - parametersMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, - - metadataMap: Array<[string, string]>, - scrubpii?: boolean, - temperature?: number, - } -} - -export class ConversationRequestAlpha2 extends jspb.Message { - getName(): string; - setName(value: string): ConversationRequestAlpha2; - - hasContextId(): boolean; - clearContextId(): void; - getContextId(): string | undefined; - setContextId(value: string): ConversationRequestAlpha2; - clearInputsList(): void; - getInputsList(): Array; - setInputsList(value: Array): ConversationRequestAlpha2; - addInputs(value?: ConversationInputAlpha2, index?: number): ConversationInputAlpha2; - - getParametersMap(): jspb.Map; - clearParametersMap(): void; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - - hasScrubPii(): boolean; - clearScrubPii(): void; - getScrubPii(): boolean | undefined; - setScrubPii(value: boolean): ConversationRequestAlpha2; - - hasTemperature(): boolean; - clearTemperature(): void; - getTemperature(): number | undefined; - setTemperature(value: number): ConversationRequestAlpha2; - clearToolsList(): void; - getToolsList(): Array; - setToolsList(value: Array): ConversationRequestAlpha2; - addTools(value?: ConversationTools, index?: number): ConversationTools; - - hasToolChoice(): boolean; - clearToolChoice(): void; - getToolChoice(): string | undefined; - setToolChoice(value: string): ConversationRequestAlpha2; - - hasResponseFormat(): boolean; - clearResponseFormat(): void; - getResponseFormat(): google_protobuf_struct_pb.Struct | undefined; - setResponseFormat(value?: google_protobuf_struct_pb.Struct): ConversationRequestAlpha2; - - hasPromptCacheRetention(): boolean; - clearPromptCacheRetention(): void; - getPromptCacheRetention(): google_protobuf_duration_pb.Duration | undefined; - setPromptCacheRetention(value?: google_protobuf_duration_pb.Duration): ConversationRequestAlpha2; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationRequestAlpha2.AsObject; - static toObject(includeInstance: boolean, msg: ConversationRequestAlpha2): ConversationRequestAlpha2.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationRequestAlpha2, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationRequestAlpha2; - static deserializeBinaryFromReader(message: ConversationRequestAlpha2, reader: jspb.BinaryReader): ConversationRequestAlpha2; -} - -export namespace ConversationRequestAlpha2 { - export type AsObject = { - name: string, - contextId?: string, - inputsList: Array, - - parametersMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, - - metadataMap: Array<[string, string]>, - scrubPii?: boolean, - temperature?: number, - toolsList: Array, - toolChoice?: string, - responseFormat?: google_protobuf_struct_pb.Struct.AsObject, - promptCacheRetention?: google_protobuf_duration_pb.Duration.AsObject, - } -} - -export class ConversationInput extends jspb.Message { - getContent(): string; - setContent(value: string): ConversationInput; - - hasRole(): boolean; - clearRole(): void; - getRole(): string | undefined; - setRole(value: string): ConversationInput; - - hasScrubpii(): boolean; - clearScrubpii(): void; - getScrubpii(): boolean | undefined; - setScrubpii(value: boolean): ConversationInput; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationInput.AsObject; - static toObject(includeInstance: boolean, msg: ConversationInput): ConversationInput.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationInput, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationInput; - static deserializeBinaryFromReader(message: ConversationInput, reader: jspb.BinaryReader): ConversationInput; -} - -export namespace ConversationInput { - export type AsObject = { - content: string, - role?: string, - scrubpii?: boolean, - } -} - -export class ConversationInputAlpha2 extends jspb.Message { - clearMessagesList(): void; - getMessagesList(): Array; - setMessagesList(value: Array): ConversationInputAlpha2; - addMessages(value?: ConversationMessage, index?: number): ConversationMessage; - - hasScrubPii(): boolean; - clearScrubPii(): void; - getScrubPii(): boolean | undefined; - setScrubPii(value: boolean): ConversationInputAlpha2; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationInputAlpha2.AsObject; - static toObject(includeInstance: boolean, msg: ConversationInputAlpha2): ConversationInputAlpha2.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationInputAlpha2, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationInputAlpha2; - static deserializeBinaryFromReader(message: ConversationInputAlpha2, reader: jspb.BinaryReader): ConversationInputAlpha2; -} - -export namespace ConversationInputAlpha2 { - export type AsObject = { - messagesList: Array, - scrubPii?: boolean, - } -} - -export class ConversationMessage extends jspb.Message { - - hasOfDeveloper(): boolean; - clearOfDeveloper(): void; - getOfDeveloper(): ConversationMessageOfDeveloper | undefined; - setOfDeveloper(value?: ConversationMessageOfDeveloper): ConversationMessage; - - hasOfSystem(): boolean; - clearOfSystem(): void; - getOfSystem(): ConversationMessageOfSystem | undefined; - setOfSystem(value?: ConversationMessageOfSystem): ConversationMessage; - - hasOfUser(): boolean; - clearOfUser(): void; - getOfUser(): ConversationMessageOfUser | undefined; - setOfUser(value?: ConversationMessageOfUser): ConversationMessage; - - hasOfAssistant(): boolean; - clearOfAssistant(): void; - getOfAssistant(): ConversationMessageOfAssistant | undefined; - setOfAssistant(value?: ConversationMessageOfAssistant): ConversationMessage; - - hasOfTool(): boolean; - clearOfTool(): void; - getOfTool(): ConversationMessageOfTool | undefined; - setOfTool(value?: ConversationMessageOfTool): ConversationMessage; - - getMessageTypesCase(): ConversationMessage.MessageTypesCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationMessage.AsObject; - static toObject(includeInstance: boolean, msg: ConversationMessage): ConversationMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationMessage; - static deserializeBinaryFromReader(message: ConversationMessage, reader: jspb.BinaryReader): ConversationMessage; -} - -export namespace ConversationMessage { - export type AsObject = { - ofDeveloper?: ConversationMessageOfDeveloper.AsObject, - ofSystem?: ConversationMessageOfSystem.AsObject, - ofUser?: ConversationMessageOfUser.AsObject, - ofAssistant?: ConversationMessageOfAssistant.AsObject, - ofTool?: ConversationMessageOfTool.AsObject, - } - - export enum MessageTypesCase { - MESSAGE_TYPES_NOT_SET = 0, - OF_DEVELOPER = 1, - OF_SYSTEM = 2, - OF_USER = 3, - OF_ASSISTANT = 4, - OF_TOOL = 5, - } - -} - -export class ConversationMessageOfDeveloper extends jspb.Message { - - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): ConversationMessageOfDeveloper; - clearContentList(): void; - getContentList(): Array; - setContentList(value: Array): ConversationMessageOfDeveloper; - addContent(value?: ConversationMessageContent, index?: number): ConversationMessageContent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationMessageOfDeveloper.AsObject; - static toObject(includeInstance: boolean, msg: ConversationMessageOfDeveloper): ConversationMessageOfDeveloper.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationMessageOfDeveloper, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationMessageOfDeveloper; - static deserializeBinaryFromReader(message: ConversationMessageOfDeveloper, reader: jspb.BinaryReader): ConversationMessageOfDeveloper; -} - -export namespace ConversationMessageOfDeveloper { - export type AsObject = { - name?: string, - contentList: Array, - } -} - -export class ConversationMessageOfSystem extends jspb.Message { - - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): ConversationMessageOfSystem; - clearContentList(): void; - getContentList(): Array; - setContentList(value: Array): ConversationMessageOfSystem; - addContent(value?: ConversationMessageContent, index?: number): ConversationMessageContent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationMessageOfSystem.AsObject; - static toObject(includeInstance: boolean, msg: ConversationMessageOfSystem): ConversationMessageOfSystem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationMessageOfSystem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationMessageOfSystem; - static deserializeBinaryFromReader(message: ConversationMessageOfSystem, reader: jspb.BinaryReader): ConversationMessageOfSystem; -} - -export namespace ConversationMessageOfSystem { - export type AsObject = { - name?: string, - contentList: Array, - } -} - -export class ConversationMessageOfUser extends jspb.Message { - - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): ConversationMessageOfUser; - clearContentList(): void; - getContentList(): Array; - setContentList(value: Array): ConversationMessageOfUser; - addContent(value?: ConversationMessageContent, index?: number): ConversationMessageContent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationMessageOfUser.AsObject; - static toObject(includeInstance: boolean, msg: ConversationMessageOfUser): ConversationMessageOfUser.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationMessageOfUser, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationMessageOfUser; - static deserializeBinaryFromReader(message: ConversationMessageOfUser, reader: jspb.BinaryReader): ConversationMessageOfUser; -} - -export namespace ConversationMessageOfUser { - export type AsObject = { - name?: string, - contentList: Array, - } -} - -export class ConversationMessageOfAssistant extends jspb.Message { - - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): ConversationMessageOfAssistant; - clearContentList(): void; - getContentList(): Array; - setContentList(value: Array): ConversationMessageOfAssistant; - addContent(value?: ConversationMessageContent, index?: number): ConversationMessageContent; - clearToolCallsList(): void; - getToolCallsList(): Array; - setToolCallsList(value: Array): ConversationMessageOfAssistant; - addToolCalls(value?: ConversationToolCalls, index?: number): ConversationToolCalls; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationMessageOfAssistant.AsObject; - static toObject(includeInstance: boolean, msg: ConversationMessageOfAssistant): ConversationMessageOfAssistant.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationMessageOfAssistant, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationMessageOfAssistant; - static deserializeBinaryFromReader(message: ConversationMessageOfAssistant, reader: jspb.BinaryReader): ConversationMessageOfAssistant; -} - -export namespace ConversationMessageOfAssistant { - export type AsObject = { - name?: string, - contentList: Array, - toolCallsList: Array, - } -} - -export class ConversationMessageOfTool extends jspb.Message { - - hasToolId(): boolean; - clearToolId(): void; - getToolId(): string | undefined; - setToolId(value: string): ConversationMessageOfTool; - getName(): string; - setName(value: string): ConversationMessageOfTool; - clearContentList(): void; - getContentList(): Array; - setContentList(value: Array): ConversationMessageOfTool; - addContent(value?: ConversationMessageContent, index?: number): ConversationMessageContent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationMessageOfTool.AsObject; - static toObject(includeInstance: boolean, msg: ConversationMessageOfTool): ConversationMessageOfTool.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationMessageOfTool, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationMessageOfTool; - static deserializeBinaryFromReader(message: ConversationMessageOfTool, reader: jspb.BinaryReader): ConversationMessageOfTool; -} - -export namespace ConversationMessageOfTool { - export type AsObject = { - toolId?: string, - name: string, - contentList: Array, - } -} - -export class ConversationToolCalls extends jspb.Message { - - hasId(): boolean; - clearId(): void; - getId(): string | undefined; - setId(value: string): ConversationToolCalls; - - hasFunction(): boolean; - clearFunction(): void; - getFunction(): ConversationToolCallsOfFunction | undefined; - setFunction(value?: ConversationToolCallsOfFunction): ConversationToolCalls; - - getToolTypesCase(): ConversationToolCalls.ToolTypesCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationToolCalls.AsObject; - static toObject(includeInstance: boolean, msg: ConversationToolCalls): ConversationToolCalls.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationToolCalls, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationToolCalls; - static deserializeBinaryFromReader(message: ConversationToolCalls, reader: jspb.BinaryReader): ConversationToolCalls; -} - -export namespace ConversationToolCalls { - export type AsObject = { - id?: string, - pb_function?: ConversationToolCallsOfFunction.AsObject, - } - - export enum ToolTypesCase { - TOOL_TYPES_NOT_SET = 0, - FUNCTION = 2, - } - -} - -export class ConversationToolCallsOfFunction extends jspb.Message { - getName(): string; - setName(value: string): ConversationToolCallsOfFunction; - getArguments(): string; - setArguments(value: string): ConversationToolCallsOfFunction; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationToolCallsOfFunction.AsObject; - static toObject(includeInstance: boolean, msg: ConversationToolCallsOfFunction): ConversationToolCallsOfFunction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationToolCallsOfFunction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationToolCallsOfFunction; - static deserializeBinaryFromReader(message: ConversationToolCallsOfFunction, reader: jspb.BinaryReader): ConversationToolCallsOfFunction; -} - -export namespace ConversationToolCallsOfFunction { - export type AsObject = { - name: string, - arguments: string, - } -} - -export class ConversationMessageContent extends jspb.Message { - getText(): string; - setText(value: string): ConversationMessageContent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationMessageContent.AsObject; - static toObject(includeInstance: boolean, msg: ConversationMessageContent): ConversationMessageContent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationMessageContent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationMessageContent; - static deserializeBinaryFromReader(message: ConversationMessageContent, reader: jspb.BinaryReader): ConversationMessageContent; -} - -export namespace ConversationMessageContent { - export type AsObject = { - text: string, - } -} - -export class ConversationResult extends jspb.Message { - getResult(): string; - setResult(value: string): ConversationResult; - - getParametersMap(): jspb.Map; - clearParametersMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationResult.AsObject; - static toObject(includeInstance: boolean, msg: ConversationResult): ConversationResult.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationResult, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationResult; - static deserializeBinaryFromReader(message: ConversationResult, reader: jspb.BinaryReader): ConversationResult; -} - -export namespace ConversationResult { - export type AsObject = { - result: string, - - parametersMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>, - } -} - -export class ConversationResultAlpha2 extends jspb.Message { - clearChoicesList(): void; - getChoicesList(): Array; - setChoicesList(value: Array): ConversationResultAlpha2; - addChoices(value?: ConversationResultChoices, index?: number): ConversationResultChoices; - - hasModel(): boolean; - clearModel(): void; - getModel(): string | undefined; - setModel(value: string): ConversationResultAlpha2; - - hasUsage(): boolean; - clearUsage(): void; - getUsage(): ConversationResultAlpha2CompletionUsage | undefined; - setUsage(value?: ConversationResultAlpha2CompletionUsage): ConversationResultAlpha2; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationResultAlpha2.AsObject; - static toObject(includeInstance: boolean, msg: ConversationResultAlpha2): ConversationResultAlpha2.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationResultAlpha2, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationResultAlpha2; - static deserializeBinaryFromReader(message: ConversationResultAlpha2, reader: jspb.BinaryReader): ConversationResultAlpha2; -} - -export namespace ConversationResultAlpha2 { - export type AsObject = { - choicesList: Array, - model?: string, - usage?: ConversationResultAlpha2CompletionUsage.AsObject, - } -} - -export class ConversationResultAlpha2CompletionUsage extends jspb.Message { - getCompletionTokens(): number; - setCompletionTokens(value: number): ConversationResultAlpha2CompletionUsage; - getPromptTokens(): number; - setPromptTokens(value: number): ConversationResultAlpha2CompletionUsage; - getTotalTokens(): number; - setTotalTokens(value: number): ConversationResultAlpha2CompletionUsage; - - hasCompletionTokensDetails(): boolean; - clearCompletionTokensDetails(): void; - getCompletionTokensDetails(): ConversationResultAlpha2CompletionUsageCompletionTokensDetails | undefined; - setCompletionTokensDetails(value?: ConversationResultAlpha2CompletionUsageCompletionTokensDetails): ConversationResultAlpha2CompletionUsage; - - hasPromptTokensDetails(): boolean; - clearPromptTokensDetails(): void; - getPromptTokensDetails(): ConversationResultAlpha2CompletionUsagePromptTokensDetails | undefined; - setPromptTokensDetails(value?: ConversationResultAlpha2CompletionUsagePromptTokensDetails): ConversationResultAlpha2CompletionUsage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationResultAlpha2CompletionUsage.AsObject; - static toObject(includeInstance: boolean, msg: ConversationResultAlpha2CompletionUsage): ConversationResultAlpha2CompletionUsage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationResultAlpha2CompletionUsage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationResultAlpha2CompletionUsage; - static deserializeBinaryFromReader(message: ConversationResultAlpha2CompletionUsage, reader: jspb.BinaryReader): ConversationResultAlpha2CompletionUsage; -} - -export namespace ConversationResultAlpha2CompletionUsage { - export type AsObject = { - completionTokens: number, - promptTokens: number, - totalTokens: number, - completionTokensDetails?: ConversationResultAlpha2CompletionUsageCompletionTokensDetails.AsObject, - promptTokensDetails?: ConversationResultAlpha2CompletionUsagePromptTokensDetails.AsObject, - } -} - -export class ConversationResultAlpha2CompletionUsageCompletionTokensDetails extends jspb.Message { - getAcceptedPredictionTokens(): number; - setAcceptedPredictionTokens(value: number): ConversationResultAlpha2CompletionUsageCompletionTokensDetails; - getAudioTokens(): number; - setAudioTokens(value: number): ConversationResultAlpha2CompletionUsageCompletionTokensDetails; - getReasoningTokens(): number; - setReasoningTokens(value: number): ConversationResultAlpha2CompletionUsageCompletionTokensDetails; - getRejectedPredictionTokens(): number; - setRejectedPredictionTokens(value: number): ConversationResultAlpha2CompletionUsageCompletionTokensDetails; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationResultAlpha2CompletionUsageCompletionTokensDetails.AsObject; - static toObject(includeInstance: boolean, msg: ConversationResultAlpha2CompletionUsageCompletionTokensDetails): ConversationResultAlpha2CompletionUsageCompletionTokensDetails.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationResultAlpha2CompletionUsageCompletionTokensDetails, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationResultAlpha2CompletionUsageCompletionTokensDetails; - static deserializeBinaryFromReader(message: ConversationResultAlpha2CompletionUsageCompletionTokensDetails, reader: jspb.BinaryReader): ConversationResultAlpha2CompletionUsageCompletionTokensDetails; -} - -export namespace ConversationResultAlpha2CompletionUsageCompletionTokensDetails { - export type AsObject = { - acceptedPredictionTokens: number, - audioTokens: number, - reasoningTokens: number, - rejectedPredictionTokens: number, - } -} - -export class ConversationResultAlpha2CompletionUsagePromptTokensDetails extends jspb.Message { - getAudioTokens(): number; - setAudioTokens(value: number): ConversationResultAlpha2CompletionUsagePromptTokensDetails; - getCachedTokens(): number; - setCachedTokens(value: number): ConversationResultAlpha2CompletionUsagePromptTokensDetails; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationResultAlpha2CompletionUsagePromptTokensDetails.AsObject; - static toObject(includeInstance: boolean, msg: ConversationResultAlpha2CompletionUsagePromptTokensDetails): ConversationResultAlpha2CompletionUsagePromptTokensDetails.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationResultAlpha2CompletionUsagePromptTokensDetails, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationResultAlpha2CompletionUsagePromptTokensDetails; - static deserializeBinaryFromReader(message: ConversationResultAlpha2CompletionUsagePromptTokensDetails, reader: jspb.BinaryReader): ConversationResultAlpha2CompletionUsagePromptTokensDetails; -} - -export namespace ConversationResultAlpha2CompletionUsagePromptTokensDetails { - export type AsObject = { - audioTokens: number, - cachedTokens: number, - } -} - -export class ConversationResultChoices extends jspb.Message { - getFinishReason(): string; - setFinishReason(value: string): ConversationResultChoices; - getIndex(): number; - setIndex(value: number): ConversationResultChoices; - - hasMessage(): boolean; - clearMessage(): void; - getMessage(): ConversationResultMessage | undefined; - setMessage(value?: ConversationResultMessage): ConversationResultChoices; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationResultChoices.AsObject; - static toObject(includeInstance: boolean, msg: ConversationResultChoices): ConversationResultChoices.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationResultChoices, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationResultChoices; - static deserializeBinaryFromReader(message: ConversationResultChoices, reader: jspb.BinaryReader): ConversationResultChoices; -} - -export namespace ConversationResultChoices { - export type AsObject = { - finishReason: string, - index: number, - message?: ConversationResultMessage.AsObject, - } -} - -export class ConversationResultMessage extends jspb.Message { - getContent(): string; - setContent(value: string): ConversationResultMessage; - clearToolCallsList(): void; - getToolCallsList(): Array; - setToolCallsList(value: Array): ConversationResultMessage; - addToolCalls(value?: ConversationToolCalls, index?: number): ConversationToolCalls; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationResultMessage.AsObject; - static toObject(includeInstance: boolean, msg: ConversationResultMessage): ConversationResultMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationResultMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationResultMessage; - static deserializeBinaryFromReader(message: ConversationResultMessage, reader: jspb.BinaryReader): ConversationResultMessage; -} - -export namespace ConversationResultMessage { - export type AsObject = { - content: string, - toolCallsList: Array, - } -} - -export class ConversationResponse extends jspb.Message { - - hasContextid(): boolean; - clearContextid(): void; - getContextid(): string | undefined; - setContextid(value: string): ConversationResponse; - clearOutputsList(): void; - getOutputsList(): Array; - setOutputsList(value: Array): ConversationResponse; - addOutputs(value?: ConversationResult, index?: number): ConversationResult; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationResponse.AsObject; - static toObject(includeInstance: boolean, msg: ConversationResponse): ConversationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationResponse; - static deserializeBinaryFromReader(message: ConversationResponse, reader: jspb.BinaryReader): ConversationResponse; -} - -export namespace ConversationResponse { - export type AsObject = { - contextid?: string, - outputsList: Array, - } -} - -export class ConversationResponseAlpha2 extends jspb.Message { - - hasContextId(): boolean; - clearContextId(): void; - getContextId(): string | undefined; - setContextId(value: string): ConversationResponseAlpha2; - clearOutputsList(): void; - getOutputsList(): Array; - setOutputsList(value: Array): ConversationResponseAlpha2; - addOutputs(value?: ConversationResultAlpha2, index?: number): ConversationResultAlpha2; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationResponseAlpha2.AsObject; - static toObject(includeInstance: boolean, msg: ConversationResponseAlpha2): ConversationResponseAlpha2.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationResponseAlpha2, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationResponseAlpha2; - static deserializeBinaryFromReader(message: ConversationResponseAlpha2, reader: jspb.BinaryReader): ConversationResponseAlpha2; -} - -export namespace ConversationResponseAlpha2 { - export type AsObject = { - contextId?: string, - outputsList: Array, - } -} - -export class ConversationTools extends jspb.Message { - - hasFunction(): boolean; - clearFunction(): void; - getFunction(): ConversationToolsFunction | undefined; - setFunction(value?: ConversationToolsFunction): ConversationTools; - - getToolTypesCase(): ConversationTools.ToolTypesCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationTools.AsObject; - static toObject(includeInstance: boolean, msg: ConversationTools): ConversationTools.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationTools, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationTools; - static deserializeBinaryFromReader(message: ConversationTools, reader: jspb.BinaryReader): ConversationTools; -} - -export namespace ConversationTools { - export type AsObject = { - pb_function?: ConversationToolsFunction.AsObject, - } - - export enum ToolTypesCase { - TOOL_TYPES_NOT_SET = 0, - FUNCTION = 1, - } - -} - -export class ConversationToolsFunction extends jspb.Message { - getName(): string; - setName(value: string): ConversationToolsFunction; - - hasDescription(): boolean; - clearDescription(): void; - getDescription(): string | undefined; - setDescription(value: string): ConversationToolsFunction; - - hasParameters(): boolean; - clearParameters(): void; - getParameters(): google_protobuf_struct_pb.Struct | undefined; - setParameters(value?: google_protobuf_struct_pb.Struct): ConversationToolsFunction; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConversationToolsFunction.AsObject; - static toObject(includeInstance: boolean, msg: ConversationToolsFunction): ConversationToolsFunction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConversationToolsFunction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConversationToolsFunction; - static deserializeBinaryFromReader(message: ConversationToolsFunction, reader: jspb.BinaryReader): ConversationToolsFunction; -} - -export namespace ConversationToolsFunction { - export type AsObject = { - name: string, - description?: string, - parameters?: google_protobuf_struct_pb.Struct.AsObject, - } -} diff --git a/src/proto/dapr/proto/runtime/v1/ai_pb.js b/src/proto/dapr/proto/runtime/v1/ai_pb.js deleted file mode 100644 index 319456c5..00000000 --- a/src/proto/dapr/proto/runtime/v1/ai_pb.js +++ /dev/null @@ -1,6335 +0,0 @@ -// source: dapr/proto/runtime/v1/ai.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); -goog.object.extend(proto, google_protobuf_duration_pb); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationInput', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationInputAlpha2', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationMessage', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationMessage.MessageTypesCase', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationMessageContent', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationMessageOfSystem', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationMessageOfTool', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationMessageOfUser', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationRequestAlpha2', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationResponseAlpha2', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationResult', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationResultAlpha2', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationResultChoices', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationResultMessage', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationToolCalls', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationToolCalls.ToolTypesCase', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationTools', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationTools.ToolTypesCase', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ConversationToolsFunction', 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.ConversationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationRequest.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationRequest.displayName = 'proto.dapr.proto.runtime.v1.ConversationRequest'; -} -/** - * 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.ConversationRequestAlpha2 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationRequestAlpha2, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.displayName = 'proto.dapr.proto.runtime.v1.ConversationRequestAlpha2'; -} -/** - * 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.ConversationInput = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationInput, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationInput.displayName = 'proto.dapr.proto.runtime.v1.ConversationInput'; -} -/** - * 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.ConversationInputAlpha2 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationInputAlpha2.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationInputAlpha2, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationInputAlpha2.displayName = 'proto.dapr.proto.runtime.v1.ConversationInputAlpha2'; -} -/** - * 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.ConversationMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.dapr.proto.runtime.v1.ConversationMessage.oneofGroups_); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationMessage.displayName = 'proto.dapr.proto.runtime.v1.ConversationMessage'; -} -/** - * 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.ConversationMessageOfDeveloper = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.displayName = 'proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper'; -} -/** - * 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.ConversationMessageOfSystem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationMessageOfSystem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.displayName = 'proto.dapr.proto.runtime.v1.ConversationMessageOfSystem'; -} -/** - * 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.ConversationMessageOfUser = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationMessageOfUser.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationMessageOfUser, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationMessageOfUser.displayName = 'proto.dapr.proto.runtime.v1.ConversationMessageOfUser'; -} -/** - * 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.ConversationMessageOfAssistant = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.displayName = 'proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant'; -} -/** - * 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.ConversationMessageOfTool = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationMessageOfTool.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationMessageOfTool, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationMessageOfTool.displayName = 'proto.dapr.proto.runtime.v1.ConversationMessageOfTool'; -} -/** - * 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.ConversationToolCalls = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.dapr.proto.runtime.v1.ConversationToolCalls.oneofGroups_); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationToolCalls, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationToolCalls.displayName = 'proto.dapr.proto.runtime.v1.ConversationToolCalls'; -} -/** - * 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.ConversationToolCallsOfFunction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.displayName = 'proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction'; -} -/** - * 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.ConversationMessageContent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationMessageContent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationMessageContent.displayName = 'proto.dapr.proto.runtime.v1.ConversationMessageContent'; -} -/** - * 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.ConversationResult = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationResult, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationResult.displayName = 'proto.dapr.proto.runtime.v1.ConversationResult'; -} -/** - * 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.ConversationResultAlpha2 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationResultAlpha2.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationResultAlpha2, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationResultAlpha2.displayName = 'proto.dapr.proto.runtime.v1.ConversationResultAlpha2'; -} -/** - * 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.ConversationResultAlpha2CompletionUsage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.displayName = 'proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage'; -} -/** - * 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.ConversationResultAlpha2CompletionUsageCompletionTokensDetails = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.displayName = 'proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails'; -} -/** - * 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.ConversationResultAlpha2CompletionUsagePromptTokensDetails = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.displayName = 'proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails'; -} -/** - * 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.ConversationResultChoices = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationResultChoices, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationResultChoices.displayName = 'proto.dapr.proto.runtime.v1.ConversationResultChoices'; -} -/** - * 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.ConversationResultMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationResultMessage.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationResultMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationResultMessage.displayName = 'proto.dapr.proto.runtime.v1.ConversationResultMessage'; -} -/** - * 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.ConversationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationResponse.displayName = 'proto.dapr.proto.runtime.v1.ConversationResponse'; -} -/** - * 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.ConversationResponseAlpha2 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationResponseAlpha2, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.displayName = 'proto.dapr.proto.runtime.v1.ConversationResponseAlpha2'; -} -/** - * 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.ConversationTools = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.dapr.proto.runtime.v1.ConversationTools.oneofGroups_); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationTools, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationTools.displayName = 'proto.dapr.proto.runtime.v1.ConversationTools'; -} -/** - * 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.ConversationToolsFunction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ConversationToolsFunction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ConversationToolsFunction.displayName = 'proto.dapr.proto.runtime.v1.ConversationToolsFunction'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationRequest.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.ConversationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationRequest.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.ConversationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - contextid: jspb.Message.getFieldWithDefault(msg, 2, ""), - inputsList: jspb.Message.toObjectList(msg.getInputsList(), - proto.dapr.proto.runtime.v1.ConversationInput.toObject, includeInstance), - parametersMap: (f = msg.getParametersMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - scrubpii: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - temperature: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.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.ConversationRequest} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationRequest; - return proto.dapr.proto.runtime.v1.ConversationRequest.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.ConversationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequest} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.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.setContextid(value); - break; - case 3: - var value = new proto.dapr.proto.runtime.v1.ConversationInput; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationInput.deserializeBinaryFromReader); - msg.addInputs(value); - break; - case 4: - var value = msg.getParametersMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); - }); - 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; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setScrubpii(value); - break; - case 7: - var value = /** @type {number} */ (reader.readDouble()); - msg.setTemperature(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.ConversationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationRequest.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.ConversationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationRequest.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 = message.getInputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.dapr.proto.runtime.v1.ConversationInput.serializeBinaryToWriter - ); - } - f = message.getParametersMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeBool( - 6, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeDouble( - 7, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequest} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string contextID = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.getContextid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequest} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.setContextid = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequest} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.clearContextid = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.hasContextid = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated ConversationInput inputs = 3; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.getInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationInput, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequest} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.setInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationInput=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationInput} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.addInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.dapr.proto.runtime.v1.ConversationInput, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequest} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.clearInputsList = function() { - return this.setInputsList([]); -}; - - -/** - * map parameters = 4; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.getParametersMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 4, opt_noLazyCreate, - proto.google.protobuf.Any)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequest} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.clearParametersMap = function() { - this.getParametersMap().clear(); - return this;}; - - -/** - * 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.ConversationRequest.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.ConversationRequest} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * optional bool scrubPII = 6; - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.getScrubpii = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequest} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.setScrubpii = function(value) { - return jspb.Message.setField(this, 6, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequest} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.clearScrubpii = function() { - return jspb.Message.setField(this, 6, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.hasScrubpii = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional double temperature = 7; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.getTemperature = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequest} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.setTemperature = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequest} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.clearTemperature = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationRequest.prototype.hasTemperature = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.repeatedFields_ = [3,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} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.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.ConversationRequestAlpha2} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - contextId: jspb.Message.getFieldWithDefault(msg, 2, ""), - inputsList: jspb.Message.toObjectList(msg.getInputsList(), - proto.dapr.proto.runtime.v1.ConversationInputAlpha2.toObject, includeInstance), - parametersMap: (f = msg.getParametersMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.toObject) : [], - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - scrubPii: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - temperature: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), - toolsList: jspb.Message.toObjectList(msg.getToolsList(), - proto.dapr.proto.runtime.v1.ConversationTools.toObject, includeInstance), - toolChoice: jspb.Message.getFieldWithDefault(msg, 9, ""), - responseFormat: (f = msg.getResponseFormat()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - promptCacheRetention: (f = msg.getPromptCacheRetention()) && google_protobuf_duration_pb.Duration.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.ConversationRequestAlpha2} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationRequestAlpha2; - return proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.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.ConversationRequestAlpha2} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.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.setContextId(value); - break; - case 3: - var value = new proto.dapr.proto.runtime.v1.ConversationInputAlpha2; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationInputAlpha2.deserializeBinaryFromReader); - msg.addInputs(value); - break; - case 4: - var value = msg.getParametersMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); - }); - 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; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setScrubPii(value); - break; - case 7: - var value = /** @type {number} */ (reader.readDouble()); - msg.setTemperature(value); - break; - case 8: - var value = new proto.dapr.proto.runtime.v1.ConversationTools; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationTools.deserializeBinaryFromReader); - msg.addTools(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setToolChoice(value); - break; - case 10: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setResponseFormat(value); - break; - case 11: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setPromptCacheRetention(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.ConversationRequestAlpha2.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.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.ConversationRequestAlpha2} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.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 = message.getInputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.dapr.proto.runtime.v1.ConversationInputAlpha2.serializeBinaryToWriter - ); - } - f = message.getParametersMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeBool( - 6, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeDouble( - 7, - f - ); - } - f = message.getToolsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - proto.dapr.proto.runtime.v1.ConversationTools.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 9)); - if (f != null) { - writer.writeString( - 9, - f - ); - } - f = message.getResponseFormat(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getPromptCacheRetention(); - if (f != null) { - writer.writeMessage( - 11, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string context_id = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.getContextId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.setContextId = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.clearContextId = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.hasContextId = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated ConversationInputAlpha2 inputs = 3; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.getInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationInputAlpha2, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.setInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationInputAlpha2=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationInputAlpha2} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.addInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.dapr.proto.runtime.v1.ConversationInputAlpha2, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.clearInputsList = function() { - return this.setInputsList([]); -}; - - -/** - * map parameters = 4; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.getParametersMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 4, opt_noLazyCreate, - proto.google.protobuf.Any)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.clearParametersMap = function() { - this.getParametersMap().clear(); - return this;}; - - -/** - * 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.ConversationRequestAlpha2.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.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * optional bool scrub_pii = 6; - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.getScrubPii = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.setScrubPii = function(value) { - return jspb.Message.setField(this, 6, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.clearScrubPii = function() { - return jspb.Message.setField(this, 6, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.hasScrubPii = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional double temperature = 7; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.getTemperature = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.setTemperature = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.clearTemperature = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.hasTemperature = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * repeated ConversationTools tools = 8; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.getToolsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationTools, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.setToolsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationTools=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationTools} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.addTools = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.dapr.proto.runtime.v1.ConversationTools, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.clearToolsList = function() { - return this.setToolsList([]); -}; - - -/** - * optional string tool_choice = 9; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.getToolChoice = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.setToolChoice = function(value) { - return jspb.Message.setField(this, 9, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.clearToolChoice = function() { - return jspb.Message.setField(this, 9, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.hasToolChoice = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional google.protobuf.Struct response_format = 10; - * @return {?proto.google.protobuf.Struct} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.getResponseFormat = 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.ConversationRequestAlpha2} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.setResponseFormat = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.clearResponseFormat = function() { - return this.setResponseFormat(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.hasResponseFormat = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional google.protobuf.Duration prompt_cache_retention = 11; - * @return {?proto.google.protobuf.Duration} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.getPromptCacheRetention = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 11)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.setPromptCacheRetention = function(value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationRequestAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.clearPromptCacheRetention = function() { - return this.setPromptCacheRetention(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationRequestAlpha2.prototype.hasPromptCacheRetention = function() { - return jspb.Message.getField(this, 11) != 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.ConversationInput.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationInput.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.ConversationInput} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationInput.toObject = function(includeInstance, msg) { - var f, obj = { - content: jspb.Message.getFieldWithDefault(msg, 1, ""), - role: jspb.Message.getFieldWithDefault(msg, 2, ""), - scrubpii: jspb.Message.getBooleanFieldWithDefault(msg, 3, 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.ConversationInput} - */ -proto.dapr.proto.runtime.v1.ConversationInput.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationInput; - return proto.dapr.proto.runtime.v1.ConversationInput.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.ConversationInput} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationInput} - */ -proto.dapr.proto.runtime.v1.ConversationInput.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.setContent(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setRole(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setScrubpii(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.ConversationInput.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationInput.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.ConversationInput} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationInput.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getContent(); - 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 {boolean} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional string content = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationInput.prototype.getContent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationInput} returns this - */ -proto.dapr.proto.runtime.v1.ConversationInput.prototype.setContent = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string role = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationInput.prototype.getRole = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationInput} returns this - */ -proto.dapr.proto.runtime.v1.ConversationInput.prototype.setRole = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationInput} returns this - */ -proto.dapr.proto.runtime.v1.ConversationInput.prototype.clearRole = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationInput.prototype.hasRole = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional bool scrubPII = 3; - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationInput.prototype.getScrubpii = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.ConversationInput} returns this - */ -proto.dapr.proto.runtime.v1.ConversationInput.prototype.setScrubpii = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationInput} returns this - */ -proto.dapr.proto.runtime.v1.ConversationInput.prototype.clearScrubpii = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationInput.prototype.hasScrubpii = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.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.ConversationInputAlpha2.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationInputAlpha2.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.ConversationInputAlpha2} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.toObject = function(includeInstance, msg) { - var f, obj = { - messagesList: jspb.Message.toObjectList(msg.getMessagesList(), - proto.dapr.proto.runtime.v1.ConversationMessage.toObject, includeInstance), - scrubPii: jspb.Message.getBooleanFieldWithDefault(msg, 2, 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.ConversationInputAlpha2} - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationInputAlpha2; - return proto.dapr.proto.runtime.v1.ConversationInputAlpha2.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.ConversationInputAlpha2} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationInputAlpha2} - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.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.ConversationMessage; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationMessage.deserializeBinaryFromReader); - msg.addMessages(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setScrubPii(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.ConversationInputAlpha2.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationInputAlpha2.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.ConversationInputAlpha2} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMessagesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.runtime.v1.ConversationMessage.serializeBinaryToWriter - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * repeated ConversationMessage messages = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.prototype.getMessagesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationMessage, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationInputAlpha2} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.prototype.setMessagesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationMessage=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.prototype.addMessages = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.ConversationMessage, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationInputAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.prototype.clearMessagesList = function() { - return this.setMessagesList([]); -}; - - -/** - * optional bool scrub_pii = 2; - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.prototype.getScrubPii = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.ConversationInputAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.prototype.setScrubPii = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationInputAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.prototype.clearScrubPii = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationInputAlpha2.prototype.hasScrubPii = 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.ConversationMessage.oneofGroups_ = [[1,2,3,4,5]]; - -/** - * @enum {number} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.MessageTypesCase = { - MESSAGE_TYPES_NOT_SET: 0, - OF_DEVELOPER: 1, - OF_SYSTEM: 2, - OF_USER: 3, - OF_ASSISTANT: 4, - OF_TOOL: 5 -}; - -/** - * @return {proto.dapr.proto.runtime.v1.ConversationMessage.MessageTypesCase} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.getMessageTypesCase = function() { - return /** @type {proto.dapr.proto.runtime.v1.ConversationMessage.MessageTypesCase} */(jspb.Message.computeOneofCase(this, proto.dapr.proto.runtime.v1.ConversationMessage.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.ConversationMessage.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationMessage.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.ConversationMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessage.toObject = function(includeInstance, msg) { - var f, obj = { - ofDeveloper: (f = msg.getOfDeveloper()) && proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.toObject(includeInstance, f), - ofSystem: (f = msg.getOfSystem()) && proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.toObject(includeInstance, f), - ofUser: (f = msg.getOfUser()) && proto.dapr.proto.runtime.v1.ConversationMessageOfUser.toObject(includeInstance, f), - ofAssistant: (f = msg.getOfAssistant()) && proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.toObject(includeInstance, f), - ofTool: (f = msg.getOfTool()) && proto.dapr.proto.runtime.v1.ConversationMessageOfTool.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.ConversationMessage} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationMessage; - return proto.dapr.proto.runtime.v1.ConversationMessage.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.ConversationMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.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.ConversationMessageOfDeveloper; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.deserializeBinaryFromReader); - msg.setOfDeveloper(value); - break; - case 2: - var value = new proto.dapr.proto.runtime.v1.ConversationMessageOfSystem; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.deserializeBinaryFromReader); - msg.setOfSystem(value); - break; - case 3: - var value = new proto.dapr.proto.runtime.v1.ConversationMessageOfUser; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationMessageOfUser.deserializeBinaryFromReader); - msg.setOfUser(value); - break; - case 4: - var value = new proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.deserializeBinaryFromReader); - msg.setOfAssistant(value); - break; - case 5: - var value = new proto.dapr.proto.runtime.v1.ConversationMessageOfTool; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationMessageOfTool.deserializeBinaryFromReader); - msg.setOfTool(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.ConversationMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationMessage.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.ConversationMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOfDeveloper(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.serializeBinaryToWriter - ); - } - f = message.getOfSystem(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.serializeBinaryToWriter - ); - } - f = message.getOfUser(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.dapr.proto.runtime.v1.ConversationMessageOfUser.serializeBinaryToWriter - ); - } - f = message.getOfAssistant(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.serializeBinaryToWriter - ); - } - f = message.getOfTool(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.dapr.proto.runtime.v1.ConversationMessageOfTool.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ConversationMessageOfDeveloper of_developer = 1; - * @return {?proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.getOfDeveloper = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper, 1)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.setOfDeveloper = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.dapr.proto.runtime.v1.ConversationMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.clearOfDeveloper = function() { - return this.setOfDeveloper(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.hasOfDeveloper = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional ConversationMessageOfSystem of_system = 2; - * @return {?proto.dapr.proto.runtime.v1.ConversationMessageOfSystem} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.getOfSystem = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ConversationMessageOfSystem} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ConversationMessageOfSystem, 2)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ConversationMessageOfSystem|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.setOfSystem = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.dapr.proto.runtime.v1.ConversationMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.clearOfSystem = function() { - return this.setOfSystem(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.hasOfSystem = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ConversationMessageOfUser of_user = 3; - * @return {?proto.dapr.proto.runtime.v1.ConversationMessageOfUser} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.getOfUser = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ConversationMessageOfUser} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ConversationMessageOfUser, 3)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ConversationMessageOfUser|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.setOfUser = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.dapr.proto.runtime.v1.ConversationMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.clearOfUser = function() { - return this.setOfUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.hasOfUser = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional ConversationMessageOfAssistant of_assistant = 4; - * @return {?proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.getOfAssistant = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant, 4)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.setOfAssistant = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.dapr.proto.runtime.v1.ConversationMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.clearOfAssistant = function() { - return this.setOfAssistant(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.hasOfAssistant = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional ConversationMessageOfTool of_tool = 5; - * @return {?proto.dapr.proto.runtime.v1.ConversationMessageOfTool} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.getOfTool = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ConversationMessageOfTool} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ConversationMessageOfTool, 5)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ConversationMessageOfTool|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.setOfTool = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.dapr.proto.runtime.v1.ConversationMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.clearOfTool = function() { - return this.setOfTool(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationMessage.prototype.hasOfTool = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.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.ConversationMessageOfDeveloper.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.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.ConversationMessageOfDeveloper} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - contentList: jspb.Message.toObjectList(msg.getContentList(), - proto.dapr.proto.runtime.v1.ConversationMessageContent.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.ConversationMessageOfDeveloper} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper; - return proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.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.ConversationMessageOfDeveloper} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.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 proto.dapr.proto.runtime.v1.ConversationMessageContent; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationMessageContent.deserializeBinaryFromReader); - msg.addContent(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.ConversationMessageOfDeveloper.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.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.ConversationMessageOfDeveloper} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getContentList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.dapr.proto.runtime.v1.ConversationMessageContent.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated ConversationMessageContent content = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.prototype.getContentList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationMessageContent, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.prototype.setContentList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationMessageContent=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageContent} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.prototype.addContent = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.ConversationMessageContent, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfDeveloper.prototype.clearContentList = function() { - return this.setContentList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.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.ConversationMessageOfSystem.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.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.ConversationMessageOfSystem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - contentList: jspb.Message.toObjectList(msg.getContentList(), - proto.dapr.proto.runtime.v1.ConversationMessageContent.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.ConversationMessageOfSystem} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationMessageOfSystem; - return proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.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.ConversationMessageOfSystem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfSystem} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.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 proto.dapr.proto.runtime.v1.ConversationMessageContent; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationMessageContent.deserializeBinaryFromReader); - msg.addContent(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.ConversationMessageOfSystem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.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.ConversationMessageOfSystem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getContentList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.dapr.proto.runtime.v1.ConversationMessageContent.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfSystem} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfSystem} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated ConversationMessageContent content = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.prototype.getContentList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationMessageContent, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfSystem} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.prototype.setContentList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationMessageContent=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageContent} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.prototype.addContent = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.ConversationMessageContent, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfSystem} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfSystem.prototype.clearContentList = function() { - return this.setContentList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.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.ConversationMessageOfUser.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationMessageOfUser.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.ConversationMessageOfUser} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - contentList: jspb.Message.toObjectList(msg.getContentList(), - proto.dapr.proto.runtime.v1.ConversationMessageContent.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.ConversationMessageOfUser} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationMessageOfUser; - return proto.dapr.proto.runtime.v1.ConversationMessageOfUser.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.ConversationMessageOfUser} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfUser} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.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 proto.dapr.proto.runtime.v1.ConversationMessageContent; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationMessageContent.deserializeBinaryFromReader); - msg.addContent(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.ConversationMessageOfUser.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationMessageOfUser.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.ConversationMessageOfUser} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getContentList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.dapr.proto.runtime.v1.ConversationMessageContent.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfUser} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfUser} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated ConversationMessageContent content = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.prototype.getContentList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationMessageContent, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfUser} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.prototype.setContentList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationMessageContent=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageContent} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.prototype.addContent = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.ConversationMessageContent, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfUser} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfUser.prototype.clearContentList = function() { - return this.setContentList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.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.ConversationMessageOfAssistant.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.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.ConversationMessageOfAssistant} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - contentList: jspb.Message.toObjectList(msg.getContentList(), - proto.dapr.proto.runtime.v1.ConversationMessageContent.toObject, includeInstance), - toolCallsList: jspb.Message.toObjectList(msg.getToolCallsList(), - proto.dapr.proto.runtime.v1.ConversationToolCalls.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.ConversationMessageOfAssistant} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant; - return proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.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.ConversationMessageOfAssistant} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.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 proto.dapr.proto.runtime.v1.ConversationMessageContent; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationMessageContent.deserializeBinaryFromReader); - msg.addContent(value); - break; - case 3: - var value = new proto.dapr.proto.runtime.v1.ConversationToolCalls; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationToolCalls.deserializeBinaryFromReader); - msg.addToolCalls(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.ConversationMessageOfAssistant.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.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.ConversationMessageOfAssistant} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getContentList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.dapr.proto.runtime.v1.ConversationMessageContent.serializeBinaryToWriter - ); - } - f = message.getToolCallsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.dapr.proto.runtime.v1.ConversationToolCalls.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated ConversationMessageContent content = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.getContentList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationMessageContent, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.setContentList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationMessageContent=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageContent} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.addContent = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.ConversationMessageContent, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.clearContentList = function() { - return this.setContentList([]); -}; - - -/** - * repeated ConversationToolCalls tool_calls = 3; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.getToolCallsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationToolCalls, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.setToolCallsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationToolCalls=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationToolCalls} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.addToolCalls = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.dapr.proto.runtime.v1.ConversationToolCalls, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfAssistant.prototype.clearToolCallsList = function() { - return this.setToolCallsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.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.ConversationMessageOfTool.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationMessageOfTool.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.ConversationMessageOfTool} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.toObject = function(includeInstance, msg) { - var f, obj = { - toolId: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - contentList: jspb.Message.toObjectList(msg.getContentList(), - proto.dapr.proto.runtime.v1.ConversationMessageContent.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.ConversationMessageOfTool} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationMessageOfTool; - return proto.dapr.proto.runtime.v1.ConversationMessageOfTool.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.ConversationMessageOfTool} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfTool} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.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.setToolId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = new proto.dapr.proto.runtime.v1.ConversationMessageContent; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationMessageContent.deserializeBinaryFromReader); - msg.addContent(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.ConversationMessageOfTool.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationMessageOfTool.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.ConversationMessageOfTool} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getContentList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.dapr.proto.runtime.v1.ConversationMessageContent.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string tool_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.prototype.getToolId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfTool} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.prototype.setToolId = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfTool} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.prototype.clearToolId = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.prototype.hasToolId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfTool} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated ConversationMessageContent content = 3; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.prototype.getContentList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationMessageContent, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfTool} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.prototype.setContentList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationMessageContent=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageContent} - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.prototype.addContent = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.dapr.proto.runtime.v1.ConversationMessageContent, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageOfTool} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageOfTool.prototype.clearContentList = function() { - return this.setContentList([]); -}; - - - -/** - * 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.ConversationToolCalls.oneofGroups_ = [[2]]; - -/** - * @enum {number} - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.ToolTypesCase = { - TOOL_TYPES_NOT_SET: 0, - FUNCTION: 2 -}; - -/** - * @return {proto.dapr.proto.runtime.v1.ConversationToolCalls.ToolTypesCase} - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.prototype.getToolTypesCase = function() { - return /** @type {proto.dapr.proto.runtime.v1.ConversationToolCalls.ToolTypesCase} */(jspb.Message.computeOneofCase(this, proto.dapr.proto.runtime.v1.ConversationToolCalls.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.ConversationToolCalls.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationToolCalls.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.ConversationToolCalls} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - pb_function: (f = msg.getFunction()) && proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.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.ConversationToolCalls} - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationToolCalls; - return proto.dapr.proto.runtime.v1.ConversationToolCalls.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.ConversationToolCalls} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationToolCalls} - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.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.ConversationToolCallsOfFunction; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.deserializeBinaryFromReader); - msg.setFunction(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.ConversationToolCalls.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationToolCalls.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.ConversationToolCalls} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getFunction(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationToolCalls} returns this - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.prototype.setId = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationToolCalls} returns this - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.prototype.clearId = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.prototype.hasId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional ConversationToolCallsOfFunction function = 2; - * @return {?proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction} - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.prototype.getFunction = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction, 2)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationToolCalls} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationToolCalls.prototype.setFunction = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.dapr.proto.runtime.v1.ConversationToolCalls.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationToolCalls} returns this - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.prototype.clearFunction = function() { - return this.setFunction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationToolCalls.prototype.hasFunction = 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.ConversationToolCallsOfFunction.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.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.ConversationToolCallsOfFunction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - arguments: 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.ConversationToolCallsOfFunction} - */ -proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction; - return proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.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.ConversationToolCallsOfFunction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction} - */ -proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.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.setArguments(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.ConversationToolCallsOfFunction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.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.ConversationToolCallsOfFunction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getArguments(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction} returns this - */ -proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string arguments = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.prototype.getArguments = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction} returns this - */ -proto.dapr.proto.runtime.v1.ConversationToolCallsOfFunction.prototype.setArguments = 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.ConversationMessageContent.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationMessageContent.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.ConversationMessageContent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageContent.toObject = function(includeInstance, msg) { - var f, obj = { - text: 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.ConversationMessageContent} - */ -proto.dapr.proto.runtime.v1.ConversationMessageContent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationMessageContent; - return proto.dapr.proto.runtime.v1.ConversationMessageContent.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.ConversationMessageContent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageContent} - */ -proto.dapr.proto.runtime.v1.ConversationMessageContent.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.setText(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.ConversationMessageContent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationMessageContent.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.ConversationMessageContent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationMessageContent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getText(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string text = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationMessageContent.prototype.getText = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationMessageContent} returns this - */ -proto.dapr.proto.runtime.v1.ConversationMessageContent.prototype.setText = 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.ConversationResult.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationResult.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.ConversationResult} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResult.toObject = function(includeInstance, msg) { - var f, obj = { - result: jspb.Message.getFieldWithDefault(msg, 1, ""), - parametersMap: (f = msg.getParametersMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.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.ConversationResult} - */ -proto.dapr.proto.runtime.v1.ConversationResult.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationResult; - return proto.dapr.proto.runtime.v1.ConversationResult.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.ConversationResult} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationResult} - */ -proto.dapr.proto.runtime.v1.ConversationResult.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.setResult(value); - break; - case 2: - var value = msg.getParametersMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.ConversationResult.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationResult.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.ConversationResult} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResult.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResult(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getParametersMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter); - } -}; - - -/** - * optional string result = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationResult.prototype.getResult = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResult} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResult.prototype.setResult = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map parameters = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.dapr.proto.runtime.v1.ConversationResult.prototype.getParametersMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - proto.google.protobuf.Any)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationResult} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResult.prototype.clearParametersMap = function() { - this.getParametersMap().clear(); - return this;}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.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.ConversationResultAlpha2.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationResultAlpha2.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.ConversationResultAlpha2} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.toObject = function(includeInstance, msg) { - var f, obj = { - choicesList: jspb.Message.toObjectList(msg.getChoicesList(), - proto.dapr.proto.runtime.v1.ConversationResultChoices.toObject, includeInstance), - model: jspb.Message.getFieldWithDefault(msg, 2, ""), - usage: (f = msg.getUsage()) && proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.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.ConversationResultAlpha2} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationResultAlpha2; - return proto.dapr.proto.runtime.v1.ConversationResultAlpha2.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.ConversationResultAlpha2} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.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.ConversationResultChoices; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationResultChoices.deserializeBinaryFromReader); - msg.addChoices(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModel(value); - break; - case 3: - var value = new proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.deserializeBinaryFromReader); - msg.setUsage(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.ConversationResultAlpha2.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationResultAlpha2.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.ConversationResultAlpha2} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChoicesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.runtime.v1.ConversationResultChoices.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = message.getUsage(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated ConversationResultChoices choices = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.getChoicesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationResultChoices, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.setChoicesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationResultChoices=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationResultChoices} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.addChoices = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.ConversationResultChoices, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.clearChoicesList = function() { - return this.setChoicesList([]); -}; - - -/** - * optional string model = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.getModel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.setModel = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.clearModel = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.hasModel = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ConversationResultAlpha2CompletionUsage usage = 3; - * @return {?proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.getUsage = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage, 3)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.setUsage = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.clearUsage = function() { - return this.setUsage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2.prototype.hasUsage = 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.ConversationResultAlpha2CompletionUsage.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.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.ConversationResultAlpha2CompletionUsage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.toObject = function(includeInstance, msg) { - var f, obj = { - completionTokens: jspb.Message.getFieldWithDefault(msg, 1, 0), - promptTokens: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalTokens: jspb.Message.getFieldWithDefault(msg, 3, 0), - completionTokensDetails: (f = msg.getCompletionTokensDetails()) && proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.toObject(includeInstance, f), - promptTokensDetails: (f = msg.getPromptTokensDetails()) && proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.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.ConversationResultAlpha2CompletionUsage} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage; - return proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.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.ConversationResultAlpha2CompletionUsage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCompletionTokens(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setPromptTokens(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalTokens(value); - break; - case 4: - var value = new proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.deserializeBinaryFromReader); - msg.setCompletionTokensDetails(value); - break; - case 5: - var value = new proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.deserializeBinaryFromReader); - msg.setPromptTokensDetails(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.ConversationResultAlpha2CompletionUsage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.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.ConversationResultAlpha2CompletionUsage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCompletionTokens(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getPromptTokens(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalTokens(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getCompletionTokensDetails(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.serializeBinaryToWriter - ); - } - f = message.getPromptTokensDetails(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 completion_tokens = 1; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.getCompletionTokens = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.setCompletionTokens = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 prompt_tokens = 2; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.getPromptTokens = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.setPromptTokens = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_tokens = 3; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.getTotalTokens = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.setTotalTokens = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional ConversationResultAlpha2CompletionUsageCompletionTokensDetails completion_tokens_details = 4; - * @return {?proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.getCompletionTokensDetails = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails, 4)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.setCompletionTokensDetails = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.clearCompletionTokensDetails = function() { - return this.setCompletionTokensDetails(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.hasCompletionTokensDetails = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional ConversationResultAlpha2CompletionUsagePromptTokensDetails prompt_tokens_details = 5; - * @return {?proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.getPromptTokensDetails = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails, 5)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.setPromptTokensDetails = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.clearPromptTokensDetails = function() { - return this.setPromptTokensDetails(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsage.prototype.hasPromptTokensDetails = 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.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.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.ConversationResultAlpha2CompletionUsageCompletionTokensDetails} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.toObject = function(includeInstance, msg) { - var f, obj = { - acceptedPredictionTokens: jspb.Message.getFieldWithDefault(msg, 1, 0), - audioTokens: jspb.Message.getFieldWithDefault(msg, 2, 0), - reasoningTokens: jspb.Message.getFieldWithDefault(msg, 3, 0), - rejectedPredictionTokens: 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.ConversationResultAlpha2CompletionUsageCompletionTokensDetails} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails; - return proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.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.ConversationResultAlpha2CompletionUsageCompletionTokensDetails} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAcceptedPredictionTokens(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAudioTokens(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setReasoningTokens(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRejectedPredictionTokens(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.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.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.ConversationResultAlpha2CompletionUsageCompletionTokensDetails} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAcceptedPredictionTokens(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getAudioTokens(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getReasoningTokens(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getRejectedPredictionTokens(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } -}; - - -/** - * optional uint64 accepted_prediction_tokens = 1; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.prototype.getAcceptedPredictionTokens = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.prototype.setAcceptedPredictionTokens = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 audio_tokens = 2; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.prototype.getAudioTokens = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.prototype.setAudioTokens = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 reasoning_tokens = 3; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.prototype.getReasoningTokens = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.prototype.setReasoningTokens = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 rejected_prediction_tokens = 4; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.prototype.getRejectedPredictionTokens = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsageCompletionTokensDetails.prototype.setRejectedPredictionTokens = 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.ConversationResultAlpha2CompletionUsagePromptTokensDetails.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.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.ConversationResultAlpha2CompletionUsagePromptTokensDetails} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.toObject = function(includeInstance, msg) { - var f, obj = { - audioTokens: jspb.Message.getFieldWithDefault(msg, 1, 0), - cachedTokens: 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.ConversationResultAlpha2CompletionUsagePromptTokensDetails} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails; - return proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.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.ConversationResultAlpha2CompletionUsagePromptTokensDetails} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAudioTokens(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCachedTokens(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.ConversationResultAlpha2CompletionUsagePromptTokensDetails.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.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.ConversationResultAlpha2CompletionUsagePromptTokensDetails} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAudioTokens(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getCachedTokens(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } -}; - - -/** - * optional uint64 audio_tokens = 1; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.prototype.getAudioTokens = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.prototype.setAudioTokens = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 cached_tokens = 2; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.prototype.getCachedTokens = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultAlpha2CompletionUsagePromptTokensDetails.prototype.setCachedTokens = 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.runtime.v1.ConversationResultChoices.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationResultChoices.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.ConversationResultChoices} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultChoices.toObject = function(includeInstance, msg) { - var f, obj = { - finishReason: jspb.Message.getFieldWithDefault(msg, 1, ""), - index: jspb.Message.getFieldWithDefault(msg, 2, 0), - message: (f = msg.getMessage()) && proto.dapr.proto.runtime.v1.ConversationResultMessage.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.ConversationResultChoices} - */ -proto.dapr.proto.runtime.v1.ConversationResultChoices.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationResultChoices; - return proto.dapr.proto.runtime.v1.ConversationResultChoices.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.ConversationResultChoices} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultChoices} - */ -proto.dapr.proto.runtime.v1.ConversationResultChoices.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.setFinishReason(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setIndex(value); - break; - case 3: - var value = new proto.dapr.proto.runtime.v1.ConversationResultMessage; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationResultMessage.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.ConversationResultChoices.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationResultChoices.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.ConversationResultChoices} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultChoices.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFinishReason(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIndex(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getMessage(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.dapr.proto.runtime.v1.ConversationResultMessage.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string finish_reason = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationResultChoices.prototype.getFinishReason = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultChoices} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultChoices.prototype.setFinishReason = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 index = 2; - * @return {number} - */ -proto.dapr.proto.runtime.v1.ConversationResultChoices.prototype.getIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultChoices} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultChoices.prototype.setIndex = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional ConversationResultMessage message = 3; - * @return {?proto.dapr.proto.runtime.v1.ConversationResultMessage} - */ -proto.dapr.proto.runtime.v1.ConversationResultChoices.prototype.getMessage = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ConversationResultMessage} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ConversationResultMessage, 3)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ConversationResultMessage|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultChoices} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationResultChoices.prototype.setMessage = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultChoices} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultChoices.prototype.clearMessage = function() { - return this.setMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationResultChoices.prototype.hasMessage = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationResultMessage.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.ConversationResultMessage.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationResultMessage.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.ConversationResultMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultMessage.toObject = function(includeInstance, msg) { - var f, obj = { - content: jspb.Message.getFieldWithDefault(msg, 1, ""), - toolCallsList: jspb.Message.toObjectList(msg.getToolCallsList(), - proto.dapr.proto.runtime.v1.ConversationToolCalls.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.ConversationResultMessage} - */ -proto.dapr.proto.runtime.v1.ConversationResultMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationResultMessage; - return proto.dapr.proto.runtime.v1.ConversationResultMessage.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.ConversationResultMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultMessage} - */ -proto.dapr.proto.runtime.v1.ConversationResultMessage.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.setContent(value); - break; - case 2: - var value = new proto.dapr.proto.runtime.v1.ConversationToolCalls; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationToolCalls.deserializeBinaryFromReader); - msg.addToolCalls(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.ConversationResultMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationResultMessage.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.ConversationResultMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResultMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getContent(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getToolCallsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.dapr.proto.runtime.v1.ConversationToolCalls.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string content = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationResultMessage.prototype.getContent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultMessage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultMessage.prototype.setContent = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated ConversationToolCalls tool_calls = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationResultMessage.prototype.getToolCallsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationToolCalls, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResultMessage} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationResultMessage.prototype.setToolCallsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationToolCalls=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationToolCalls} - */ -proto.dapr.proto.runtime.v1.ConversationResultMessage.prototype.addToolCalls = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.ConversationToolCalls, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationResultMessage} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResultMessage.prototype.clearToolCallsList = function() { - return this.setToolCallsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationResponse.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.ConversationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationResponse.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.ConversationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - contextid: jspb.Message.getFieldWithDefault(msg, 1, ""), - outputsList: jspb.Message.toObjectList(msg.getOutputsList(), - proto.dapr.proto.runtime.v1.ConversationResult.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.ConversationResponse} - */ -proto.dapr.proto.runtime.v1.ConversationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationResponse; - return proto.dapr.proto.runtime.v1.ConversationResponse.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.ConversationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationResponse} - */ -proto.dapr.proto.runtime.v1.ConversationResponse.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.setContextid(value); - break; - case 2: - var value = new proto.dapr.proto.runtime.v1.ConversationResult; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationResult.deserializeBinaryFromReader); - msg.addOutputs(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.ConversationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationResponse.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.ConversationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getOutputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.dapr.proto.runtime.v1.ConversationResult.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string contextID = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationResponse.prototype.getContextid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResponse} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResponse.prototype.setContextid = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationResponse} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResponse.prototype.clearContextid = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationResponse.prototype.hasContextid = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated ConversationResult outputs = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationResponse.prototype.getOutputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationResult, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResponse} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationResponse.prototype.setOutputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationResult=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationResult} - */ -proto.dapr.proto.runtime.v1.ConversationResponse.prototype.addOutputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.ConversationResult, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationResponse} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResponse.prototype.clearOutputsList = function() { - return this.setOutputsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.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.ConversationResponseAlpha2.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.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.ConversationResponseAlpha2} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.toObject = function(includeInstance, msg) { - var f, obj = { - contextId: jspb.Message.getFieldWithDefault(msg, 1, ""), - outputsList: jspb.Message.toObjectList(msg.getOutputsList(), - proto.dapr.proto.runtime.v1.ConversationResultAlpha2.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.ConversationResponseAlpha2} - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationResponseAlpha2; - return proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.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.ConversationResponseAlpha2} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationResponseAlpha2} - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.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.setContextId(value); - break; - case 2: - var value = new proto.dapr.proto.runtime.v1.ConversationResultAlpha2; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationResultAlpha2.deserializeBinaryFromReader); - msg.addOutputs(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.ConversationResponseAlpha2.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.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.ConversationResponseAlpha2} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getOutputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.dapr.proto.runtime.v1.ConversationResultAlpha2.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string context_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.prototype.getContextId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResponseAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.prototype.setContextId = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationResponseAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.prototype.clearContextId = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.prototype.hasContextId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated ConversationResultAlpha2 outputs = 2; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.prototype.getOutputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.ConversationResultAlpha2, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ConversationResponseAlpha2} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.prototype.setOutputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.ConversationResultAlpha2} - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.prototype.addOutputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dapr.proto.runtime.v1.ConversationResultAlpha2, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ConversationResponseAlpha2} returns this - */ -proto.dapr.proto.runtime.v1.ConversationResponseAlpha2.prototype.clearOutputsList = function() { - return this.setOutputsList([]); -}; - - - -/** - * 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.ConversationTools.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.dapr.proto.runtime.v1.ConversationTools.ToolTypesCase = { - TOOL_TYPES_NOT_SET: 0, - FUNCTION: 1 -}; - -/** - * @return {proto.dapr.proto.runtime.v1.ConversationTools.ToolTypesCase} - */ -proto.dapr.proto.runtime.v1.ConversationTools.prototype.getToolTypesCase = function() { - return /** @type {proto.dapr.proto.runtime.v1.ConversationTools.ToolTypesCase} */(jspb.Message.computeOneofCase(this, proto.dapr.proto.runtime.v1.ConversationTools.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.ConversationTools.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationTools.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.ConversationTools} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationTools.toObject = function(includeInstance, msg) { - var f, obj = { - pb_function: (f = msg.getFunction()) && proto.dapr.proto.runtime.v1.ConversationToolsFunction.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.ConversationTools} - */ -proto.dapr.proto.runtime.v1.ConversationTools.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationTools; - return proto.dapr.proto.runtime.v1.ConversationTools.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.ConversationTools} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationTools} - */ -proto.dapr.proto.runtime.v1.ConversationTools.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.ConversationToolsFunction; - reader.readMessage(value,proto.dapr.proto.runtime.v1.ConversationToolsFunction.deserializeBinaryFromReader); - msg.setFunction(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.ConversationTools.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationTools.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.ConversationTools} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationTools.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFunction(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.runtime.v1.ConversationToolsFunction.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ConversationToolsFunction function = 1; - * @return {?proto.dapr.proto.runtime.v1.ConversationToolsFunction} - */ -proto.dapr.proto.runtime.v1.ConversationTools.prototype.getFunction = function() { - return /** @type{?proto.dapr.proto.runtime.v1.ConversationToolsFunction} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.ConversationToolsFunction, 1)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.ConversationToolsFunction|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationTools} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationTools.prototype.setFunction = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.dapr.proto.runtime.v1.ConversationTools.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationTools} returns this - */ -proto.dapr.proto.runtime.v1.ConversationTools.prototype.clearFunction = function() { - return this.setFunction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationTools.prototype.hasFunction = 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.ConversationToolsFunction.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ConversationToolsFunction.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.ConversationToolsFunction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - parameters: (f = msg.getParameters()) && 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.ConversationToolsFunction} - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ConversationToolsFunction; - return proto.dapr.proto.runtime.v1.ConversationToolsFunction.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.ConversationToolsFunction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ConversationToolsFunction} - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.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.setDescription(value); - break; - case 3: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setParameters(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.ConversationToolsFunction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ConversationToolsFunction.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.ConversationToolsFunction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.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 = message.getParameters(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationToolsFunction} returns this - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ConversationToolsFunction} returns this - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.prototype.setDescription = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationToolsFunction} returns this - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.prototype.clearDescription = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.prototype.hasDescription = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Struct parameters = 3; - * @return {?proto.google.protobuf.Struct} - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.prototype.getParameters = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.dapr.proto.runtime.v1.ConversationToolsFunction} returns this -*/ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.prototype.setParameters = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ConversationToolsFunction} returns this - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.prototype.clearParameters = function() { - return this.setParameters(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ConversationToolsFunction.prototype.hasParameters = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/appcallback_connect.d.ts b/src/proto/dapr/proto/runtime/v1/appcallback_connect.d.ts deleted file mode 100644 index 0f980bf3..00000000 --- a/src/proto/dapr/proto/runtime/v1/appcallback_connect.d.ts +++ /dev/null @@ -1,149 +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. - -// @generated by protoc-gen-connect-es v1.6.1 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 - -import { InvokeRequest, InvokeResponse } from "../../common/v1/common_pb"; -import { Empty, MethodKind } from "@bufbuild/protobuf"; -import { BindingEventRequest, BindingEventResponse, HealthCheckResponse, JobEventRequest, JobEventResponse, ListInputBindingsResponse, ListTopicSubscriptionsResponse, TopicEventBulkRequest, TopicEventBulkResponse, TopicEventRequest, TopicEventResponse } from "./appcallback_pb"; - -/** - * 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: { - readonly typeName: "dapr.proto.runtime.v1.AppCallback", - readonly methods: { - /** - * Invokes service method with InvokeRequest. - * - * @generated from rpc dapr.proto.runtime.v1.AppCallback.OnInvoke - */ - readonly onInvoke: { - readonly name: "OnInvoke", - readonly I: typeof InvokeRequest, - readonly O: typeof InvokeResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Lists all topics subscribed by this app. - * - * @generated from rpc dapr.proto.runtime.v1.AppCallback.ListTopicSubscriptions - */ - readonly listTopicSubscriptions: { - readonly name: "ListTopicSubscriptions", - readonly I: typeof Empty, - readonly O: typeof ListTopicSubscriptionsResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Subscribes events from Pubsub - * - * @generated from rpc dapr.proto.runtime.v1.AppCallback.OnTopicEvent - */ - readonly onTopicEvent: { - readonly name: "OnTopicEvent", - readonly I: typeof TopicEventRequest, - readonly O: typeof TopicEventResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Lists all input bindings subscribed by this app. - * - * @generated from rpc dapr.proto.runtime.v1.AppCallback.ListInputBindings - */ - readonly listInputBindings: { - readonly name: "ListInputBindings", - readonly I: typeof Empty, - readonly O: typeof ListInputBindingsResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly onBindingEvent: { - readonly name: "OnBindingEvent", - readonly I: typeof BindingEventRequest, - readonly O: typeof BindingEventResponse, - readonly kind: MethodKind.Unary, - }, - } -}; - -/** - * 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: { - readonly typeName: "dapr.proto.runtime.v1.AppCallbackHealthCheck", - readonly methods: { - /** - * Health check. - * - * @generated from rpc dapr.proto.runtime.v1.AppCallbackHealthCheck.HealthCheck - */ - readonly healthCheck: { - readonly name: "HealthCheck", - readonly I: typeof Empty, - readonly O: typeof HealthCheckResponse, - readonly kind: MethodKind.Unary, - }, - } -}; - -/** - * 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: { - readonly typeName: "dapr.proto.runtime.v1.AppCallbackAlpha", - readonly methods: { - /** - * Subscribes bulk events from Pubsub - * - * @generated from rpc dapr.proto.runtime.v1.AppCallbackAlpha.OnBulkTopicEventAlpha1 - */ - readonly onBulkTopicEventAlpha1: { - readonly name: "OnBulkTopicEventAlpha1", - readonly I: typeof TopicEventBulkRequest, - readonly O: typeof TopicEventBulkResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Sends job back to the app's endpoint at trigger time. - * - * @generated from rpc dapr.proto.runtime.v1.AppCallbackAlpha.OnJobEventAlpha1 - */ - readonly onJobEventAlpha1: { - readonly name: "OnJobEventAlpha1", - readonly I: typeof JobEventRequest, - readonly O: typeof JobEventResponse, - readonly kind: MethodKind.Unary, - }, - } -}; - diff --git a/src/proto/dapr/proto/runtime/v1/appcallback_connect.js b/src/proto/dapr/proto/runtime/v1/appcallback_connect.js deleted file mode 100644 index 10c3ab84..00000000 --- a/src/proto/dapr/proto/runtime/v1/appcallback_connect.js +++ /dev/null @@ -1,149 +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. - -// @generated by protoc-gen-connect-es v1.6.1 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 - -import { InvokeRequest, InvokeResponse } from "../../common/v1/common_pb.js"; -import { Empty, MethodKind } from "@bufbuild/protobuf"; -import { BindingEventRequest, BindingEventResponse, HealthCheckResponse, JobEventRequest, JobEventResponse, ListInputBindingsResponse, ListTopicSubscriptionsResponse, TopicEventBulkRequest, TopicEventBulkResponse, TopicEventRequest, TopicEventResponse } from "./appcallback_pb.js"; - -/** - * 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 const AppCallback = { - typeName: "dapr.proto.runtime.v1.AppCallback", - methods: { - /** - * Invokes service method with InvokeRequest. - * - * @generated from rpc dapr.proto.runtime.v1.AppCallback.OnInvoke - */ - onInvoke: { - name: "OnInvoke", - I: InvokeRequest, - O: InvokeResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all topics subscribed by this app. - * - * @generated from rpc dapr.proto.runtime.v1.AppCallback.ListTopicSubscriptions - */ - listTopicSubscriptions: { - name: "ListTopicSubscriptions", - I: Empty, - O: ListTopicSubscriptionsResponse, - kind: MethodKind.Unary, - }, - /** - * Subscribes events from Pubsub - * - * @generated from rpc dapr.proto.runtime.v1.AppCallback.OnTopicEvent - */ - onTopicEvent: { - name: "OnTopicEvent", - I: TopicEventRequest, - O: TopicEventResponse, - kind: MethodKind.Unary, - }, - /** - * Lists all input bindings subscribed by this app. - * - * @generated from rpc dapr.proto.runtime.v1.AppCallback.ListInputBindings - */ - listInputBindings: { - name: "ListInputBindings", - I: Empty, - O: ListInputBindingsResponse, - kind: MethodKind.Unary, - }, - /** - * 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: { - name: "OnBindingEvent", - I: BindingEventRequest, - O: BindingEventResponse, - kind: MethodKind.Unary, - }, - } -}; - -/** - * AppCallbackHealthCheck V1 is an optional extension to AppCallback V1 to implement - * the HealthCheck method. - * - * @generated from service dapr.proto.runtime.v1.AppCallbackHealthCheck - */ -export const AppCallbackHealthCheck = { - typeName: "dapr.proto.runtime.v1.AppCallbackHealthCheck", - methods: { - /** - * Health check. - * - * @generated from rpc dapr.proto.runtime.v1.AppCallbackHealthCheck.HealthCheck - */ - healthCheck: { - name: "HealthCheck", - I: Empty, - O: HealthCheckResponse, - kind: MethodKind.Unary, - }, - } -}; - -/** - * AppCallbackAlpha V1 is an optional extension to AppCallback V1 to opt - * for Alpha RPCs. - * - * @generated from service dapr.proto.runtime.v1.AppCallbackAlpha - */ -export const AppCallbackAlpha = { - typeName: "dapr.proto.runtime.v1.AppCallbackAlpha", - methods: { - /** - * Subscribes bulk events from Pubsub - * - * @generated from rpc dapr.proto.runtime.v1.AppCallbackAlpha.OnBulkTopicEventAlpha1 - */ - onBulkTopicEventAlpha1: { - name: "OnBulkTopicEventAlpha1", - I: TopicEventBulkRequest, - O: TopicEventBulkResponse, - kind: MethodKind.Unary, - }, - /** - * Sends job back to the app's endpoint at trigger time. - * - * @generated from rpc dapr.proto.runtime.v1.AppCallbackAlpha.OnJobEventAlpha1 - */ - onJobEventAlpha1: { - name: "OnJobEventAlpha1", - I: JobEventRequest, - O: JobEventResponse, - kind: MethodKind.Unary, - }, - } -}; - 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 d177a9ff..00000000 --- a/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.d.ts +++ /dev/null @@ -1,213 +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; - onBulkTopicEvent: IAppCallbackService_IOnBulkTopicEvent; -} - -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; -} -interface IAppCallbackService_IOnBulkTopicEvent extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.AppCallback/OnBulkTopicEvent"; - 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; - onBulkTopicEvent: 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; - onBulkTopicEvent(request: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_appcallback_pb.TopicEventBulkResponse) => void): grpc.ClientUnaryCall; - onBulkTopicEvent(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; - onBulkTopicEvent(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; -} - -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; - public onBulkTopicEvent(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 onBulkTopicEvent(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 onBulkTopicEvent(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; -} - -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 a1b0a941..00000000 --- a/src/proto/dapr/proto/runtime/v1/appcallback_grpc_pb.js +++ /dev/null @@ -1,308 +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, - }, - // Subscribes bulk events from Pubsub -onBulkTopicEvent: { - path: '/dapr.proto.runtime.v1.AppCallback/OnBulkTopicEvent', - 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, - }, -}; - -exports.AppCallbackClient = grpc.makeGenericClientConstructor(AppCallbackService, 'AppCallback'); -// 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, 'AppCallbackHealthCheck'); -// 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, 'AppCallbackAlpha'); diff --git a/src/proto/dapr/proto/runtime/v1/appcallback_pb.d.ts b/src/proto/dapr/proto/runtime/v1/appcallback_pb.d.ts deleted file mode 100644 index d1c098e8..00000000 --- a/src/proto/dapr/proto/runtime/v1/appcallback_pb.d.ts +++ /dev/null @@ -1,882 +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. - -// @generated by protoc-gen-es v2.11.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 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; - }, -}>; - diff --git a/src/proto/dapr/proto/runtime/v1/appcallback_pb.js b/src/proto/dapr/proto/runtime/v1/appcallback_pb.js deleted file mode 100644 index 43cb6b56..00000000 --- a/src/proto/dapr/proto/runtime/v1/appcallback_pb.js +++ /dev/null @@ -1,208 +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. - -// @generated by protoc-gen-es v2.11.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 { 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.js"; - -/** - * Describes the file dapr/proto/runtime/v1/appcallback.proto. - */ -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]); - -/** - * Describes the message dapr.proto.runtime.v1.JobEventRequest. - * Use `create(JobEventRequestSchema)` to create a new message. - */ -export const JobEventRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 0); - -/** - * Describes the message dapr.proto.runtime.v1.JobEventResponse. - * Use `create(JobEventResponseSchema)` to create a new message. - */ -export const JobEventResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 1); - -/** - * Describes the message dapr.proto.runtime.v1.TopicEventRequest. - * Use `create(TopicEventRequestSchema)` to create a new message. - */ -export const TopicEventRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 2); - -/** - * Describes the message dapr.proto.runtime.v1.TopicEventResponse. - * Use `create(TopicEventResponseSchema)` to create a new message. - */ -export const TopicEventResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 3); - -/** - * Describes the enum dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus. - */ -export const TopicEventResponse_TopicEventResponseStatusSchema = /*@__PURE__*/ - enumDesc(file_dapr_proto_runtime_v1_appcallback, 3, 0); - -/** - * TopicEventResponseStatus allows apps to have finer control over handling of the message. - * - * @generated from enum dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus - */ -export const TopicEventResponse_TopicEventResponseStatus = /*@__PURE__*/ - tsEnum(TopicEventResponse_TopicEventResponseStatusSchema); - -/** - * Describes the message dapr.proto.runtime.v1.TopicEventCERequest. - * Use `create(TopicEventCERequestSchema)` to create a new message. - */ -export const TopicEventCERequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 4); - -/** - * Describes the message dapr.proto.runtime.v1.TopicEventBulkRequestEntry. - * Use `create(TopicEventBulkRequestEntrySchema)` to create a new message. - */ -export const TopicEventBulkRequestEntrySchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 5); - -/** - * Describes the message dapr.proto.runtime.v1.TopicEventBulkRequest. - * Use `create(TopicEventBulkRequestSchema)` to create a new message. - */ -export const TopicEventBulkRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 6); - -/** - * Describes the message dapr.proto.runtime.v1.TopicEventBulkResponseEntry. - * Use `create(TopicEventBulkResponseEntrySchema)` to create a new message. - */ -export const TopicEventBulkResponseEntrySchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 7); - -/** - * Describes the message dapr.proto.runtime.v1.TopicEventBulkResponse. - * Use `create(TopicEventBulkResponseSchema)` to create a new message. - */ -export const TopicEventBulkResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 8); - -/** - * Describes the message dapr.proto.runtime.v1.BindingEventRequest. - * Use `create(BindingEventRequestSchema)` to create a new message. - */ -export const BindingEventRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 9); - -/** - * Describes the message dapr.proto.runtime.v1.BindingEventResponse. - * Use `create(BindingEventResponseSchema)` to create a new message. - */ -export const BindingEventResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 10); - -/** - * Describes the enum dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency. - */ -export const BindingEventResponse_BindingEventConcurrencySchema = /*@__PURE__*/ - enumDesc(file_dapr_proto_runtime_v1_appcallback, 10, 0); - -/** - * BindingEventConcurrency is the kind of concurrency - * - * @generated from enum dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency - */ -export const BindingEventResponse_BindingEventConcurrency = /*@__PURE__*/ - tsEnum(BindingEventResponse_BindingEventConcurrencySchema); - -/** - * Describes the message dapr.proto.runtime.v1.ListTopicSubscriptionsResponse. - * Use `create(ListTopicSubscriptionsResponseSchema)` to create a new message. - */ -export const ListTopicSubscriptionsResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 11); - -/** - * Describes the message dapr.proto.runtime.v1.TopicSubscription. - * Use `create(TopicSubscriptionSchema)` to create a new message. - */ -export const TopicSubscriptionSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 12); - -/** - * Describes the message dapr.proto.runtime.v1.TopicRoutes. - * Use `create(TopicRoutesSchema)` to create a new message. - */ -export const TopicRoutesSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 13); - -/** - * Describes the message dapr.proto.runtime.v1.TopicRule. - * Use `create(TopicRuleSchema)` to create a new message. - */ -export const TopicRuleSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 14); - -/** - * Describes the message dapr.proto.runtime.v1.BulkSubscribeConfig. - * Use `create(BulkSubscribeConfigSchema)` to create a new message. - */ -export const BulkSubscribeConfigSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 15); - -/** - * Describes the message dapr.proto.runtime.v1.ListInputBindingsResponse. - * Use `create(ListInputBindingsResponseSchema)` to create a new message. - */ -export const ListInputBindingsResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 16); - -/** - * Describes the message dapr.proto.runtime.v1.HealthCheckResponse. - * Use `create(HealthCheckResponseSchema)` to create a new message. - */ -export const HealthCheckResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_appcallback, 17); - -/** - * 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 const AppCallback = /*@__PURE__*/ - serviceDesc(file_dapr_proto_runtime_v1_appcallback, 0); - -/** - * AppCallbackHealthCheck V1 is an optional extension to AppCallback V1 to implement - * the HealthCheck method. - * - * @generated from service dapr.proto.runtime.v1.AppCallbackHealthCheck - */ -export const AppCallbackHealthCheck = /*@__PURE__*/ - serviceDesc(file_dapr_proto_runtime_v1_appcallback, 1); - -/** - * AppCallbackAlpha V1 is an optional extension to AppCallback V1 to opt - * for Alpha RPCs. - * - * @generated from service dapr.proto.runtime.v1.AppCallbackAlpha - */ -export const AppCallbackAlpha = /*@__PURE__*/ - serviceDesc(file_dapr_proto_runtime_v1_appcallback, 2); - diff --git a/src/proto/dapr/proto/runtime/v1/binding_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/binding_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/binding_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/runtime/v1/binding_pb.d.ts b/src/proto/dapr/proto/runtime/v1/binding_pb.d.ts deleted file mode 100644 index eedadaf8..00000000 --- a/src/proto/dapr/proto/runtime/v1/binding_pb.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/binding.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -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]>, - } -} diff --git a/src/proto/dapr/proto/runtime/v1/binding_pb.js b/src/proto/dapr/proto/runtime/v1/binding_pb.js deleted file mode 100644 index 727d7f0e..00000000 --- a/src/proto/dapr/proto/runtime/v1/binding_pb.js +++ /dev/null @@ -1,502 +0,0 @@ -// source: dapr/proto/runtime/v1/binding.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -goog.exportSymbol('proto.dapr.proto.runtime.v1.InvokeBindingRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.InvokeBindingResponse', 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.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'; -} - - - -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;}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/configuration_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/configuration_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/configuration_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/runtime/v1/configuration_pb.d.ts b/src/proto/dapr/proto/runtime/v1/configuration_pb.d.ts deleted file mode 100644 index 2dd97427..00000000 --- a/src/proto/dapr/proto/runtime/v1/configuration_pb.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/configuration.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; - -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, - } -} diff --git a/src/proto/dapr/proto/runtime/v1/configuration_pb.js b/src/proto/dapr/proto/runtime/v1/configuration_pb.js deleted file mode 100644 index 775cbae0..00000000 --- a/src/proto/dapr/proto/runtime/v1/configuration_pb.js +++ /dev/null @@ -1,1212 +0,0 @@ -// source: dapr/proto/runtime/v1/configuration.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -goog.object.extend(proto, dapr_proto_common_v1_common_pb); -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.SubscribeConfigurationRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SubscribeConfigurationResponse', 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.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'; -} - -/** - * 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); -}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/crypto_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/crypto_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/crypto_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/runtime/v1/crypto_pb.d.ts b/src/proto/dapr/proto/runtime/v1/crypto_pb.d.ts deleted file mode 100644 index 735daa23..00000000 --- a/src/proto/dapr/proto/runtime/v1/crypto_pb.d.ts +++ /dev/null @@ -1,606 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/crypto.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; - -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, - } -} diff --git a/src/proto/dapr/proto/runtime/v1/crypto_pb.js b/src/proto/dapr/proto/runtime/v1/crypto_pb.js deleted file mode 100644 index ed864d42..00000000 --- a/src/proto/dapr/proto/runtime/v1/crypto_pb.js +++ /dev/null @@ -1,5037 +0,0 @@ -// source: dapr/proto/runtime/v1/crypto.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -goog.object.extend(proto, dapr_proto_common_v1_common_pb); -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.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.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); -/** - * 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'; -} - - - -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; -}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/dapr_connect.d.ts b/src/proto/dapr/proto/runtime/v1/dapr_connect.d.ts deleted file mode 100644 index 9b95fe6b..00000000 --- a/src/proto/dapr/proto/runtime/v1/dapr_connect.d.ts +++ /dev/null @@ -1,701 +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. - -// @generated by protoc-gen-connect-es v1.6.1 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 */ -// @ts-nocheck - -import { BulkPublishRequest, BulkPublishResponse, ConversationRequest, ConversationRequestAlpha2, ConversationResponse, ConversationResponseAlpha2, DecryptRequest, DecryptResponse, DeleteBulkStateRequest, DeleteJobRequest, DeleteJobResponse, DeleteStateRequest, EncryptRequest, EncryptResponse, ExecuteActorStateTransactionRequest, ExecuteStateTransactionRequest, GetActorStateRequest, GetActorStateResponse, GetBulkSecretRequest, GetBulkSecretResponse, GetBulkStateRequest, GetBulkStateResponse, GetConfigurationRequest, GetConfigurationResponse, GetJobRequest, GetJobResponse, GetMetadataRequest, GetMetadataResponse, GetSecretRequest, GetSecretResponse, GetStateRequest, GetStateResponse, GetWorkflowRequest, GetWorkflowResponse, InvokeActorRequest, InvokeActorResponse, InvokeBindingRequest, InvokeBindingResponse, InvokeServiceRequest, PauseWorkflowRequest, PublishEventRequest, PurgeWorkflowRequest, QueryStateRequest, QueryStateResponse, RaiseEventWorkflowRequest, RegisterActorReminderRequest, RegisterActorTimerRequest, ResumeWorkflowRequest, SaveStateRequest, ScheduleJobRequest, ScheduleJobResponse, SetMetadataRequest, ShutdownRequest, StartWorkflowRequest, StartWorkflowResponse, SubscribeConfigurationRequest, SubscribeConfigurationResponse, SubscribeTopicEventsRequestAlpha1, SubscribeTopicEventsResponseAlpha1, SubtleDecryptRequest, SubtleDecryptResponse, SubtleEncryptRequest, SubtleEncryptResponse, SubtleGetKeyRequest, SubtleGetKeyResponse, SubtleSignRequest, SubtleSignResponse, SubtleUnwrapKeyRequest, SubtleUnwrapKeyResponse, SubtleVerifyRequest, SubtleVerifyResponse, SubtleWrapKeyRequest, SubtleWrapKeyResponse, TerminateWorkflowRequest, TryLockRequest, TryLockResponse, UnlockRequest, UnlockResponse, UnregisterActorReminderRequest, UnregisterActorTimerRequest, UnsubscribeConfigurationRequest, UnsubscribeConfigurationResponse } from "./dapr_pb"; -import { InvokeResponse } from "../../common/v1/common_pb"; -import { Empty, MethodKind } from "@bufbuild/protobuf"; - -/** - * Dapr service provides APIs to user application to access Dapr building blocks. - * - * @generated from service dapr.proto.runtime.v1.Dapr - */ -export declare const Dapr: { - readonly typeName: "dapr.proto.runtime.v1.Dapr", - readonly methods: { - /** - * Invokes a method on a remote Dapr app. - * Deprecated: Use proxy mode service invocation instead. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.InvokeService - */ - readonly invokeService: { - readonly name: "InvokeService", - readonly I: typeof InvokeServiceRequest, - readonly O: typeof InvokeResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Gets the state for a specific key. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetState - */ - readonly getState: { - readonly name: "GetState", - readonly I: typeof GetStateRequest, - readonly O: typeof GetStateResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Gets a bulk of state items for a list of keys - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetBulkState - */ - readonly getBulkState: { - readonly name: "GetBulkState", - readonly I: typeof GetBulkStateRequest, - readonly O: typeof GetBulkStateResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Saves the state for a specific key. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SaveState - */ - readonly saveState: { - readonly name: "SaveState", - readonly I: typeof SaveStateRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Queries the state. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.QueryStateAlpha1 - */ - readonly queryStateAlpha1: { - readonly name: "QueryStateAlpha1", - readonly I: typeof QueryStateRequest, - readonly O: typeof QueryStateResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Deletes the state for a specific key. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.DeleteState - */ - readonly deleteState: { - readonly name: "DeleteState", - readonly I: typeof DeleteStateRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Deletes a bulk of state items for a list of keys - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.DeleteBulkState - */ - readonly deleteBulkState: { - readonly name: "DeleteBulkState", - readonly I: typeof DeleteBulkStateRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Executes transactions for a specified store - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ExecuteStateTransaction - */ - readonly executeStateTransaction: { - readonly name: "ExecuteStateTransaction", - readonly I: typeof ExecuteStateTransactionRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Publishes events to the specific topic. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.PublishEvent - */ - readonly publishEvent: { - readonly name: "PublishEvent", - readonly I: typeof PublishEventRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Bulk Publishes multiple events to the specified topic. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.BulkPublishEventAlpha1 - */ - readonly bulkPublishEventAlpha1: { - readonly name: "BulkPublishEventAlpha1", - readonly I: typeof BulkPublishRequest, - readonly O: typeof BulkPublishResponse, - readonly kind: MethodKind.Unary, - }, - /** - * SubscribeTopicEventsAlpha1 subscribes to a PubSub topic and receives topic - * events from it. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubscribeTopicEventsAlpha1 - */ - readonly subscribeTopicEventsAlpha1: { - readonly name: "SubscribeTopicEventsAlpha1", - readonly I: typeof SubscribeTopicEventsRequestAlpha1, - readonly O: typeof SubscribeTopicEventsResponseAlpha1, - readonly kind: MethodKind.BiDiStreaming, - }, - /** - * Invokes binding data to specific output bindings - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.InvokeBinding - */ - readonly invokeBinding: { - readonly name: "InvokeBinding", - readonly I: typeof InvokeBindingRequest, - readonly O: typeof InvokeBindingResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Gets secrets from secret stores. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetSecret - */ - readonly getSecret: { - readonly name: "GetSecret", - readonly I: typeof GetSecretRequest, - readonly O: typeof GetSecretResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Gets a bulk of secrets - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetBulkSecret - */ - readonly getBulkSecret: { - readonly name: "GetBulkSecret", - readonly I: typeof GetBulkSecretRequest, - readonly O: typeof GetBulkSecretResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Register an actor timer. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.RegisterActorTimer - */ - readonly registerActorTimer: { - readonly name: "RegisterActorTimer", - readonly I: typeof RegisterActorTimerRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Unregister an actor timer. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.UnregisterActorTimer - */ - readonly unregisterActorTimer: { - readonly name: "UnregisterActorTimer", - readonly I: typeof UnregisterActorTimerRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Register an actor reminder. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.RegisterActorReminder - */ - readonly registerActorReminder: { - readonly name: "RegisterActorReminder", - readonly I: typeof RegisterActorReminderRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Unregister an actor reminder. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.UnregisterActorReminder - */ - readonly unregisterActorReminder: { - readonly name: "UnregisterActorReminder", - readonly I: typeof UnregisterActorReminderRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Gets the state for a specific actor. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetActorState - */ - readonly getActorState: { - readonly name: "GetActorState", - readonly I: typeof GetActorStateRequest, - readonly O: typeof GetActorStateResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Executes state transactions for a specified actor - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ExecuteActorStateTransaction - */ - readonly executeActorStateTransaction: { - readonly name: "ExecuteActorStateTransaction", - readonly I: typeof ExecuteActorStateTransactionRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * InvokeActor calls a method on an actor. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.InvokeActor - */ - readonly invokeActor: { - readonly name: "InvokeActor", - readonly I: typeof InvokeActorRequest, - readonly O: typeof InvokeActorResponse, - readonly kind: MethodKind.Unary, - }, - /** - * GetConfiguration gets configuration from configuration store. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetConfigurationAlpha1 - */ - readonly getConfigurationAlpha1: { - readonly name: "GetConfigurationAlpha1", - readonly I: typeof GetConfigurationRequest, - readonly O: typeof GetConfigurationResponse, - readonly kind: MethodKind.Unary, - }, - /** - * GetConfiguration gets configuration from configuration store. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetConfiguration - */ - readonly getConfiguration: { - readonly name: "GetConfiguration", - readonly I: typeof GetConfigurationRequest, - readonly O: typeof GetConfigurationResponse, - readonly kind: MethodKind.Unary, - }, - /** - * SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubscribeConfigurationAlpha1 - */ - readonly subscribeConfigurationAlpha1: { - readonly name: "SubscribeConfigurationAlpha1", - readonly I: typeof SubscribeConfigurationRequest, - readonly O: typeof SubscribeConfigurationResponse, - readonly kind: MethodKind.ServerStreaming, - }, - /** - * SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubscribeConfiguration - */ - readonly subscribeConfiguration: { - readonly name: "SubscribeConfiguration", - readonly I: typeof SubscribeConfigurationRequest, - readonly O: typeof SubscribeConfigurationResponse, - readonly kind: MethodKind.ServerStreaming, - }, - /** - * UnSubscribeConfiguration unsubscribe the subscription of configuration - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.UnsubscribeConfigurationAlpha1 - */ - readonly unsubscribeConfigurationAlpha1: { - readonly name: "UnsubscribeConfigurationAlpha1", - readonly I: typeof UnsubscribeConfigurationRequest, - readonly O: typeof UnsubscribeConfigurationResponse, - readonly kind: MethodKind.Unary, - }, - /** - * UnSubscribeConfiguration unsubscribe the subscription of configuration - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.UnsubscribeConfiguration - */ - readonly unsubscribeConfiguration: { - readonly name: "UnsubscribeConfiguration", - readonly I: typeof UnsubscribeConfigurationRequest, - readonly O: typeof UnsubscribeConfigurationResponse, - readonly kind: MethodKind.Unary, - }, - /** - * TryLockAlpha1 tries to get a lock with an expiry. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.TryLockAlpha1 - */ - readonly tryLockAlpha1: { - readonly name: "TryLockAlpha1", - readonly I: typeof TryLockRequest, - readonly O: typeof TryLockResponse, - readonly kind: MethodKind.Unary, - }, - /** - * UnlockAlpha1 unlocks a lock. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.UnlockAlpha1 - */ - readonly unlockAlpha1: { - readonly name: "UnlockAlpha1", - readonly I: typeof UnlockRequest, - readonly O: typeof UnlockResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly encryptAlpha1: { - readonly name: "EncryptAlpha1", - readonly I: typeof EncryptRequest, - readonly O: typeof EncryptResponse, - readonly kind: MethodKind.BiDiStreaming, - }, - /** - * 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 - */ - readonly decryptAlpha1: { - readonly name: "DecryptAlpha1", - readonly I: typeof DecryptRequest, - readonly O: typeof DecryptResponse, - readonly kind: MethodKind.BiDiStreaming, - }, - /** - * Gets metadata of the sidecar - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetMetadata - */ - readonly getMetadata: { - readonly name: "GetMetadata", - readonly I: typeof GetMetadataRequest, - readonly O: typeof GetMetadataResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Sets value in extended metadata of the sidecar - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SetMetadata - */ - readonly setMetadata: { - readonly name: "SetMetadata", - readonly I: typeof SetMetadataRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * SubtleGetKeyAlpha1 returns the public part of an asymmetric key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleGetKeyAlpha1 - */ - readonly subtleGetKeyAlpha1: { - readonly name: "SubtleGetKeyAlpha1", - readonly I: typeof SubtleGetKeyRequest, - readonly O: typeof SubtleGetKeyResponse, - readonly kind: MethodKind.Unary, - }, - /** - * SubtleEncryptAlpha1 encrypts a small message using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleEncryptAlpha1 - */ - readonly subtleEncryptAlpha1: { - readonly name: "SubtleEncryptAlpha1", - readonly I: typeof SubtleEncryptRequest, - readonly O: typeof SubtleEncryptResponse, - readonly kind: MethodKind.Unary, - }, - /** - * SubtleDecryptAlpha1 decrypts a small message using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleDecryptAlpha1 - */ - readonly subtleDecryptAlpha1: { - readonly name: "SubtleDecryptAlpha1", - readonly I: typeof SubtleDecryptRequest, - readonly O: typeof SubtleDecryptResponse, - readonly kind: MethodKind.Unary, - }, - /** - * SubtleWrapKeyAlpha1 wraps a key using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleWrapKeyAlpha1 - */ - readonly subtleWrapKeyAlpha1: { - readonly name: "SubtleWrapKeyAlpha1", - readonly I: typeof SubtleWrapKeyRequest, - readonly O: typeof SubtleWrapKeyResponse, - readonly kind: MethodKind.Unary, - }, - /** - * SubtleUnwrapKeyAlpha1 unwraps a key using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleUnwrapKeyAlpha1 - */ - readonly subtleUnwrapKeyAlpha1: { - readonly name: "SubtleUnwrapKeyAlpha1", - readonly I: typeof SubtleUnwrapKeyRequest, - readonly O: typeof SubtleUnwrapKeyResponse, - readonly kind: MethodKind.Unary, - }, - /** - * SubtleSignAlpha1 signs a message using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleSignAlpha1 - */ - readonly subtleSignAlpha1: { - readonly name: "SubtleSignAlpha1", - readonly I: typeof SubtleSignRequest, - readonly O: typeof SubtleSignResponse, - readonly kind: MethodKind.Unary, - }, - /** - * SubtleVerifyAlpha1 verifies the signature of a message using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleVerifyAlpha1 - */ - readonly subtleVerifyAlpha1: { - readonly name: "SubtleVerifyAlpha1", - readonly I: typeof SubtleVerifyRequest, - readonly O: typeof SubtleVerifyResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Starts a new instance of a workflow - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.StartWorkflowAlpha1 - * @deprecated - */ - readonly startWorkflowAlpha1: { - readonly name: "StartWorkflowAlpha1", - readonly I: typeof StartWorkflowRequest, - readonly O: typeof StartWorkflowResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Gets details about a started workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetWorkflowAlpha1 - * @deprecated - */ - readonly getWorkflowAlpha1: { - readonly name: "GetWorkflowAlpha1", - readonly I: typeof GetWorkflowRequest, - readonly O: typeof GetWorkflowResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Purge Workflow - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.PurgeWorkflowAlpha1 - * @deprecated - */ - readonly purgeWorkflowAlpha1: { - readonly name: "PurgeWorkflowAlpha1", - readonly I: typeof PurgeWorkflowRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Terminates a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.TerminateWorkflowAlpha1 - * @deprecated - */ - readonly terminateWorkflowAlpha1: { - readonly name: "TerminateWorkflowAlpha1", - readonly I: typeof TerminateWorkflowRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Pauses a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.PauseWorkflowAlpha1 - * @deprecated - */ - readonly pauseWorkflowAlpha1: { - readonly name: "PauseWorkflowAlpha1", - readonly I: typeof PauseWorkflowRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Resumes a paused workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ResumeWorkflowAlpha1 - * @deprecated - */ - readonly resumeWorkflowAlpha1: { - readonly name: "ResumeWorkflowAlpha1", - readonly I: typeof ResumeWorkflowRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Raise an event to a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.RaiseEventWorkflowAlpha1 - * @deprecated - */ - readonly raiseEventWorkflowAlpha1: { - readonly name: "RaiseEventWorkflowAlpha1", - readonly I: typeof RaiseEventWorkflowRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Starts a new instance of a workflow - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.StartWorkflowBeta1 - */ - readonly startWorkflowBeta1: { - readonly name: "StartWorkflowBeta1", - readonly I: typeof StartWorkflowRequest, - readonly O: typeof StartWorkflowResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Gets details about a started workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetWorkflowBeta1 - */ - readonly getWorkflowBeta1: { - readonly name: "GetWorkflowBeta1", - readonly I: typeof GetWorkflowRequest, - readonly O: typeof GetWorkflowResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Purge Workflow - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.PurgeWorkflowBeta1 - */ - readonly purgeWorkflowBeta1: { - readonly name: "PurgeWorkflowBeta1", - readonly I: typeof PurgeWorkflowRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Terminates a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.TerminateWorkflowBeta1 - */ - readonly terminateWorkflowBeta1: { - readonly name: "TerminateWorkflowBeta1", - readonly I: typeof TerminateWorkflowRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Pauses a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.PauseWorkflowBeta1 - */ - readonly pauseWorkflowBeta1: { - readonly name: "PauseWorkflowBeta1", - readonly I: typeof PauseWorkflowRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Resumes a paused workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ResumeWorkflowBeta1 - */ - readonly resumeWorkflowBeta1: { - readonly name: "ResumeWorkflowBeta1", - readonly I: typeof ResumeWorkflowRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Raise an event to a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.RaiseEventWorkflowBeta1 - */ - readonly raiseEventWorkflowBeta1: { - readonly name: "RaiseEventWorkflowBeta1", - readonly I: typeof RaiseEventWorkflowRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Shutdown the sidecar - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.Shutdown - */ - readonly shutdown: { - readonly name: "Shutdown", - readonly I: typeof ShutdownRequest, - readonly O: typeof Empty, - readonly kind: MethodKind.Unary, - }, - /** - * Create and schedule a job - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ScheduleJobAlpha1 - */ - readonly scheduleJobAlpha1: { - readonly name: "ScheduleJobAlpha1", - readonly I: typeof ScheduleJobRequest, - readonly O: typeof ScheduleJobResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Gets a scheduled job - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetJobAlpha1 - */ - readonly getJobAlpha1: { - readonly name: "GetJobAlpha1", - readonly I: typeof GetJobRequest, - readonly O: typeof GetJobResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Delete a job - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.DeleteJobAlpha1 - */ - readonly deleteJobAlpha1: { - readonly name: "DeleteJobAlpha1", - readonly I: typeof DeleteJobRequest, - readonly O: typeof DeleteJobResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Converse with a LLM service - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ConverseAlpha1 - */ - readonly converseAlpha1: { - readonly name: "ConverseAlpha1", - readonly I: typeof ConversationRequest, - readonly O: typeof ConversationResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Converse with a LLM service via alpha2 api - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ConverseAlpha2 - */ - readonly converseAlpha2: { - readonly name: "ConverseAlpha2", - readonly I: typeof ConversationRequestAlpha2, - readonly O: typeof ConversationResponseAlpha2, - readonly kind: MethodKind.Unary, - }, - } -}; - diff --git a/src/proto/dapr/proto/runtime/v1/dapr_connect.js b/src/proto/dapr/proto/runtime/v1/dapr_connect.js deleted file mode 100644 index 8b283c8f..00000000 --- a/src/proto/dapr/proto/runtime/v1/dapr_connect.js +++ /dev/null @@ -1,701 +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. - -// @generated by protoc-gen-connect-es v1.6.1 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 */ -// @ts-nocheck - -import { BulkPublishRequest, BulkPublishResponse, ConversationRequest, ConversationRequestAlpha2, ConversationResponse, ConversationResponseAlpha2, DecryptRequest, DecryptResponse, DeleteBulkStateRequest, DeleteJobRequest, DeleteJobResponse, DeleteStateRequest, EncryptRequest, EncryptResponse, ExecuteActorStateTransactionRequest, ExecuteStateTransactionRequest, GetActorStateRequest, GetActorStateResponse, GetBulkSecretRequest, GetBulkSecretResponse, GetBulkStateRequest, GetBulkStateResponse, GetConfigurationRequest, GetConfigurationResponse, GetJobRequest, GetJobResponse, GetMetadataRequest, GetMetadataResponse, GetSecretRequest, GetSecretResponse, GetStateRequest, GetStateResponse, GetWorkflowRequest, GetWorkflowResponse, InvokeActorRequest, InvokeActorResponse, InvokeBindingRequest, InvokeBindingResponse, InvokeServiceRequest, PauseWorkflowRequest, PublishEventRequest, PurgeWorkflowRequest, QueryStateRequest, QueryStateResponse, RaiseEventWorkflowRequest, RegisterActorReminderRequest, RegisterActorTimerRequest, ResumeWorkflowRequest, SaveStateRequest, ScheduleJobRequest, ScheduleJobResponse, SetMetadataRequest, ShutdownRequest, StartWorkflowRequest, StartWorkflowResponse, SubscribeConfigurationRequest, SubscribeConfigurationResponse, SubscribeTopicEventsRequestAlpha1, SubscribeTopicEventsResponseAlpha1, SubtleDecryptRequest, SubtleDecryptResponse, SubtleEncryptRequest, SubtleEncryptResponse, SubtleGetKeyRequest, SubtleGetKeyResponse, SubtleSignRequest, SubtleSignResponse, SubtleUnwrapKeyRequest, SubtleUnwrapKeyResponse, SubtleVerifyRequest, SubtleVerifyResponse, SubtleWrapKeyRequest, SubtleWrapKeyResponse, TerminateWorkflowRequest, TryLockRequest, TryLockResponse, UnlockRequest, UnlockResponse, UnregisterActorReminderRequest, UnregisterActorTimerRequest, UnsubscribeConfigurationRequest, UnsubscribeConfigurationResponse } from "./dapr_pb.js"; -import { InvokeResponse } from "../../common/v1/common_pb.js"; -import { Empty, MethodKind } from "@bufbuild/protobuf"; - -/** - * Dapr service provides APIs to user application to access Dapr building blocks. - * - * @generated from service dapr.proto.runtime.v1.Dapr - */ -export const Dapr = { - typeName: "dapr.proto.runtime.v1.Dapr", - methods: { - /** - * 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: { - name: "InvokeService", - I: InvokeServiceRequest, - O: InvokeResponse, - kind: MethodKind.Unary, - }, - /** - * Gets the state for a specific key. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetState - */ - getState: { - name: "GetState", - I: GetStateRequest, - O: GetStateResponse, - kind: MethodKind.Unary, - }, - /** - * Gets a bulk of state items for a list of keys - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetBulkState - */ - getBulkState: { - name: "GetBulkState", - I: GetBulkStateRequest, - O: GetBulkStateResponse, - kind: MethodKind.Unary, - }, - /** - * Saves the state for a specific key. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SaveState - */ - saveState: { - name: "SaveState", - I: SaveStateRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Queries the state. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.QueryStateAlpha1 - */ - queryStateAlpha1: { - name: "QueryStateAlpha1", - I: QueryStateRequest, - O: QueryStateResponse, - kind: MethodKind.Unary, - }, - /** - * Deletes the state for a specific key. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.DeleteState - */ - deleteState: { - name: "DeleteState", - I: DeleteStateRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Deletes a bulk of state items for a list of keys - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.DeleteBulkState - */ - deleteBulkState: { - name: "DeleteBulkState", - I: DeleteBulkStateRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Executes transactions for a specified store - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ExecuteStateTransaction - */ - executeStateTransaction: { - name: "ExecuteStateTransaction", - I: ExecuteStateTransactionRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Publishes events to the specific topic. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.PublishEvent - */ - publishEvent: { - name: "PublishEvent", - I: PublishEventRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Bulk Publishes multiple events to the specified topic. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.BulkPublishEventAlpha1 - */ - bulkPublishEventAlpha1: { - name: "BulkPublishEventAlpha1", - I: BulkPublishRequest, - O: BulkPublishResponse, - kind: MethodKind.Unary, - }, - /** - * SubscribeTopicEventsAlpha1 subscribes to a PubSub topic and receives topic - * events from it. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubscribeTopicEventsAlpha1 - */ - subscribeTopicEventsAlpha1: { - name: "SubscribeTopicEventsAlpha1", - I: SubscribeTopicEventsRequestAlpha1, - O: SubscribeTopicEventsResponseAlpha1, - kind: MethodKind.BiDiStreaming, - }, - /** - * Invokes binding data to specific output bindings - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.InvokeBinding - */ - invokeBinding: { - name: "InvokeBinding", - I: InvokeBindingRequest, - O: InvokeBindingResponse, - kind: MethodKind.Unary, - }, - /** - * Gets secrets from secret stores. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetSecret - */ - getSecret: { - name: "GetSecret", - I: GetSecretRequest, - O: GetSecretResponse, - kind: MethodKind.Unary, - }, - /** - * Gets a bulk of secrets - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetBulkSecret - */ - getBulkSecret: { - name: "GetBulkSecret", - I: GetBulkSecretRequest, - O: GetBulkSecretResponse, - kind: MethodKind.Unary, - }, - /** - * Register an actor timer. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.RegisterActorTimer - */ - registerActorTimer: { - name: "RegisterActorTimer", - I: RegisterActorTimerRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Unregister an actor timer. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.UnregisterActorTimer - */ - unregisterActorTimer: { - name: "UnregisterActorTimer", - I: UnregisterActorTimerRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Register an actor reminder. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.RegisterActorReminder - */ - registerActorReminder: { - name: "RegisterActorReminder", - I: RegisterActorReminderRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Unregister an actor reminder. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.UnregisterActorReminder - */ - unregisterActorReminder: { - name: "UnregisterActorReminder", - I: UnregisterActorReminderRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Gets the state for a specific actor. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetActorState - */ - getActorState: { - name: "GetActorState", - I: GetActorStateRequest, - O: GetActorStateResponse, - kind: MethodKind.Unary, - }, - /** - * Executes state transactions for a specified actor - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ExecuteActorStateTransaction - */ - executeActorStateTransaction: { - name: "ExecuteActorStateTransaction", - I: ExecuteActorStateTransactionRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * InvokeActor calls a method on an actor. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.InvokeActor - */ - invokeActor: { - name: "InvokeActor", - I: InvokeActorRequest, - O: InvokeActorResponse, - kind: MethodKind.Unary, - }, - /** - * GetConfiguration gets configuration from configuration store. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetConfigurationAlpha1 - */ - getConfigurationAlpha1: { - name: "GetConfigurationAlpha1", - I: GetConfigurationRequest, - O: GetConfigurationResponse, - kind: MethodKind.Unary, - }, - /** - * GetConfiguration gets configuration from configuration store. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetConfiguration - */ - getConfiguration: { - name: "GetConfiguration", - I: GetConfigurationRequest, - O: GetConfigurationResponse, - kind: MethodKind.Unary, - }, - /** - * SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubscribeConfigurationAlpha1 - */ - subscribeConfigurationAlpha1: { - name: "SubscribeConfigurationAlpha1", - I: SubscribeConfigurationRequest, - O: SubscribeConfigurationResponse, - kind: MethodKind.ServerStreaming, - }, - /** - * SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubscribeConfiguration - */ - subscribeConfiguration: { - name: "SubscribeConfiguration", - I: SubscribeConfigurationRequest, - O: SubscribeConfigurationResponse, - kind: MethodKind.ServerStreaming, - }, - /** - * UnSubscribeConfiguration unsubscribe the subscription of configuration - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.UnsubscribeConfigurationAlpha1 - */ - unsubscribeConfigurationAlpha1: { - name: "UnsubscribeConfigurationAlpha1", - I: UnsubscribeConfigurationRequest, - O: UnsubscribeConfigurationResponse, - kind: MethodKind.Unary, - }, - /** - * UnSubscribeConfiguration unsubscribe the subscription of configuration - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.UnsubscribeConfiguration - */ - unsubscribeConfiguration: { - name: "UnsubscribeConfiguration", - I: UnsubscribeConfigurationRequest, - O: UnsubscribeConfigurationResponse, - kind: MethodKind.Unary, - }, - /** - * TryLockAlpha1 tries to get a lock with an expiry. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.TryLockAlpha1 - */ - tryLockAlpha1: { - name: "TryLockAlpha1", - I: TryLockRequest, - O: TryLockResponse, - kind: MethodKind.Unary, - }, - /** - * UnlockAlpha1 unlocks a lock. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.UnlockAlpha1 - */ - unlockAlpha1: { - name: "UnlockAlpha1", - I: UnlockRequest, - O: UnlockResponse, - kind: MethodKind.Unary, - }, - /** - * 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: { - name: "EncryptAlpha1", - I: EncryptRequest, - O: EncryptResponse, - kind: MethodKind.BiDiStreaming, - }, - /** - * 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: { - name: "DecryptAlpha1", - I: DecryptRequest, - O: DecryptResponse, - kind: MethodKind.BiDiStreaming, - }, - /** - * Gets metadata of the sidecar - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetMetadata - */ - getMetadata: { - name: "GetMetadata", - I: GetMetadataRequest, - O: GetMetadataResponse, - kind: MethodKind.Unary, - }, - /** - * Sets value in extended metadata of the sidecar - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SetMetadata - */ - setMetadata: { - name: "SetMetadata", - I: SetMetadataRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * SubtleGetKeyAlpha1 returns the public part of an asymmetric key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleGetKeyAlpha1 - */ - subtleGetKeyAlpha1: { - name: "SubtleGetKeyAlpha1", - I: SubtleGetKeyRequest, - O: SubtleGetKeyResponse, - kind: MethodKind.Unary, - }, - /** - * SubtleEncryptAlpha1 encrypts a small message using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleEncryptAlpha1 - */ - subtleEncryptAlpha1: { - name: "SubtleEncryptAlpha1", - I: SubtleEncryptRequest, - O: SubtleEncryptResponse, - kind: MethodKind.Unary, - }, - /** - * SubtleDecryptAlpha1 decrypts a small message using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleDecryptAlpha1 - */ - subtleDecryptAlpha1: { - name: "SubtleDecryptAlpha1", - I: SubtleDecryptRequest, - O: SubtleDecryptResponse, - kind: MethodKind.Unary, - }, - /** - * SubtleWrapKeyAlpha1 wraps a key using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleWrapKeyAlpha1 - */ - subtleWrapKeyAlpha1: { - name: "SubtleWrapKeyAlpha1", - I: SubtleWrapKeyRequest, - O: SubtleWrapKeyResponse, - kind: MethodKind.Unary, - }, - /** - * SubtleUnwrapKeyAlpha1 unwraps a key using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleUnwrapKeyAlpha1 - */ - subtleUnwrapKeyAlpha1: { - name: "SubtleUnwrapKeyAlpha1", - I: SubtleUnwrapKeyRequest, - O: SubtleUnwrapKeyResponse, - kind: MethodKind.Unary, - }, - /** - * SubtleSignAlpha1 signs a message using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleSignAlpha1 - */ - subtleSignAlpha1: { - name: "SubtleSignAlpha1", - I: SubtleSignRequest, - O: SubtleSignResponse, - kind: MethodKind.Unary, - }, - /** - * SubtleVerifyAlpha1 verifies the signature of a message using a key stored in the vault. - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.SubtleVerifyAlpha1 - */ - subtleVerifyAlpha1: { - name: "SubtleVerifyAlpha1", - I: SubtleVerifyRequest, - O: SubtleVerifyResponse, - kind: MethodKind.Unary, - }, - /** - * Starts a new instance of a workflow - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.StartWorkflowAlpha1 - * @deprecated - */ - startWorkflowAlpha1: { - name: "StartWorkflowAlpha1", - I: StartWorkflowRequest, - O: StartWorkflowResponse, - kind: MethodKind.Unary, - }, - /** - * Gets details about a started workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetWorkflowAlpha1 - * @deprecated - */ - getWorkflowAlpha1: { - name: "GetWorkflowAlpha1", - I: GetWorkflowRequest, - O: GetWorkflowResponse, - kind: MethodKind.Unary, - }, - /** - * Purge Workflow - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.PurgeWorkflowAlpha1 - * @deprecated - */ - purgeWorkflowAlpha1: { - name: "PurgeWorkflowAlpha1", - I: PurgeWorkflowRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Terminates a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.TerminateWorkflowAlpha1 - * @deprecated - */ - terminateWorkflowAlpha1: { - name: "TerminateWorkflowAlpha1", - I: TerminateWorkflowRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Pauses a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.PauseWorkflowAlpha1 - * @deprecated - */ - pauseWorkflowAlpha1: { - name: "PauseWorkflowAlpha1", - I: PauseWorkflowRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Resumes a paused workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ResumeWorkflowAlpha1 - * @deprecated - */ - resumeWorkflowAlpha1: { - name: "ResumeWorkflowAlpha1", - I: ResumeWorkflowRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Raise an event to a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.RaiseEventWorkflowAlpha1 - * @deprecated - */ - raiseEventWorkflowAlpha1: { - name: "RaiseEventWorkflowAlpha1", - I: RaiseEventWorkflowRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Starts a new instance of a workflow - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.StartWorkflowBeta1 - */ - startWorkflowBeta1: { - name: "StartWorkflowBeta1", - I: StartWorkflowRequest, - O: StartWorkflowResponse, - kind: MethodKind.Unary, - }, - /** - * Gets details about a started workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetWorkflowBeta1 - */ - getWorkflowBeta1: { - name: "GetWorkflowBeta1", - I: GetWorkflowRequest, - O: GetWorkflowResponse, - kind: MethodKind.Unary, - }, - /** - * Purge Workflow - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.PurgeWorkflowBeta1 - */ - purgeWorkflowBeta1: { - name: "PurgeWorkflowBeta1", - I: PurgeWorkflowRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Terminates a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.TerminateWorkflowBeta1 - */ - terminateWorkflowBeta1: { - name: "TerminateWorkflowBeta1", - I: TerminateWorkflowRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Pauses a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.PauseWorkflowBeta1 - */ - pauseWorkflowBeta1: { - name: "PauseWorkflowBeta1", - I: PauseWorkflowRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Resumes a paused workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ResumeWorkflowBeta1 - */ - resumeWorkflowBeta1: { - name: "ResumeWorkflowBeta1", - I: ResumeWorkflowRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Raise an event to a running workflow instance - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.RaiseEventWorkflowBeta1 - */ - raiseEventWorkflowBeta1: { - name: "RaiseEventWorkflowBeta1", - I: RaiseEventWorkflowRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Shutdown the sidecar - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.Shutdown - */ - shutdown: { - name: "Shutdown", - I: ShutdownRequest, - O: Empty, - kind: MethodKind.Unary, - }, - /** - * Create and schedule a job - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ScheduleJobAlpha1 - */ - scheduleJobAlpha1: { - name: "ScheduleJobAlpha1", - I: ScheduleJobRequest, - O: ScheduleJobResponse, - kind: MethodKind.Unary, - }, - /** - * Gets a scheduled job - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.GetJobAlpha1 - */ - getJobAlpha1: { - name: "GetJobAlpha1", - I: GetJobRequest, - O: GetJobResponse, - kind: MethodKind.Unary, - }, - /** - * Delete a job - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.DeleteJobAlpha1 - */ - deleteJobAlpha1: { - name: "DeleteJobAlpha1", - I: DeleteJobRequest, - O: DeleteJobResponse, - kind: MethodKind.Unary, - }, - /** - * Converse with a LLM service - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ConverseAlpha1 - */ - converseAlpha1: { - name: "ConverseAlpha1", - I: ConversationRequest, - O: ConversationResponse, - kind: MethodKind.Unary, - }, - /** - * Converse with a LLM service via alpha2 api - * - * @generated from rpc dapr.proto.runtime.v1.Dapr.ConverseAlpha2 - */ - converseAlpha2: { - name: "ConverseAlpha2", - I: ConversationRequestAlpha2, - O: ConversationResponseAlpha2, - kind: MethodKind.Unary, - }, - } -}; - 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 6b3e8220..00000000 --- a/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.d.ts +++ /dev/null @@ -1,1154 +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_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 dapr_proto_runtime_v1_actors_pb from "../../../../dapr/proto/runtime/v1/actors_pb"; -import * as dapr_proto_runtime_v1_pubsub_pb from "../../../../dapr/proto/runtime/v1/pubsub_pb"; -import * as dapr_proto_runtime_v1_invoke_pb from "../../../../dapr/proto/runtime/v1/invoke_pb"; -import * as dapr_proto_runtime_v1_state_pb from "../../../../dapr/proto/runtime/v1/state_pb"; -import * as dapr_proto_runtime_v1_binding_pb from "../../../../dapr/proto/runtime/v1/binding_pb"; -import * as dapr_proto_runtime_v1_secret_pb from "../../../../dapr/proto/runtime/v1/secret_pb"; -import * as dapr_proto_runtime_v1_metadata_pb from "../../../../dapr/proto/runtime/v1/metadata_pb"; -import * as dapr_proto_runtime_v1_configuration_pb from "../../../../dapr/proto/runtime/v1/configuration_pb"; -import * as dapr_proto_runtime_v1_lock_pb from "../../../../dapr/proto/runtime/v1/lock_pb"; -import * as dapr_proto_runtime_v1_crypto_pb from "../../../../dapr/proto/runtime/v1/crypto_pb"; -import * as dapr_proto_runtime_v1_workflow_pb from "../../../../dapr/proto/runtime/v1/workflow_pb"; -import * as dapr_proto_runtime_v1_jobs_pb from "../../../../dapr/proto/runtime/v1/jobs_pb"; -import * as dapr_proto_runtime_v1_ai_pb from "../../../../dapr/proto/runtime/v1/ai_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; - bulkPublishEvent: IDaprService_IBulkPublishEvent; - subscribeTopicEventsAlpha1: IDaprService_ISubscribeTopicEventsAlpha1; - invokeBinding: IDaprService_IInvokeBinding; - getSecret: IDaprService_IGetSecret; - getBulkSecret: IDaprService_IGetBulkSecret; - registerActorTimer: IDaprService_IRegisterActorTimer; - unregisterActorTimer: IDaprService_IUnregisterActorTimer; - registerActorReminder: IDaprService_IRegisterActorReminder; - unregisterActorReminder: IDaprService_IUnregisterActorReminder; - unregisterActorRemindersByType: IDaprService_IUnregisterActorRemindersByType; - listActorReminders: IDaprService_IListActorReminders; - getActorState: IDaprService_IGetActorState; - getActorReminder: IDaprService_IGetActorReminder; - 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; - deleteJobsByPrefixAlpha1: IDaprService_IDeleteJobsByPrefixAlpha1; - listJobsAlpha1: IDaprService_IListJobsAlpha1; - converseAlpha1: IDaprService_IConverseAlpha1; - converseAlpha2: IDaprService_IConverseAlpha2; -} - -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_IBulkPublishEvent extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/BulkPublishEvent"; - 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_IUnregisterActorRemindersByType extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/UnregisterActorRemindersByType"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IListActorReminders extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/ListActorReminders"; - 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_IGetActorReminder extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/GetActorReminder"; - 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; -} -interface IDaprService_IDeleteJobsByPrefixAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/DeleteJobsByPrefixAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IListJobsAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/ListJobsAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IConverseAlpha1 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/ConverseAlpha1"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IDaprService_IConverseAlpha2 extends grpc.MethodDefinition { - path: "/dapr.proto.runtime.v1.Dapr/ConverseAlpha2"; - 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; - bulkPublishEvent: 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; - unregisterActorRemindersByType: grpc.handleUnaryCall; - listActorReminders: grpc.handleUnaryCall; - getActorState: grpc.handleUnaryCall; - getActorReminder: 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; - deleteJobsByPrefixAlpha1: grpc.handleUnaryCall; - listJobsAlpha1: grpc.handleUnaryCall; - converseAlpha1: grpc.handleUnaryCall; - converseAlpha2: grpc.handleUnaryCall; -} - -export interface IDaprClient { - invokeService(request: dapr_proto_runtime_v1_invoke_pb.InvokeServiceRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_common_v1_common_pb.InvokeResponse) => void): grpc.ClientUnaryCall; - invokeService(request: dapr_proto_runtime_v1_invoke_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_invoke_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_state_pb.GetStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - getState(request: dapr_proto_runtime_v1_state_pb.GetStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - getState(request: dapr_proto_runtime_v1_state_pb.GetStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - getBulkState(request: dapr_proto_runtime_v1_state_pb.GetBulkStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - getBulkState(request: dapr_proto_runtime_v1_state_pb.GetBulkStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - getBulkState(request: dapr_proto_runtime_v1_state_pb.GetBulkStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - saveState(request: dapr_proto_runtime_v1_state_pb.SaveStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - saveState(request: dapr_proto_runtime_v1_state_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_state_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_state_pb.QueryStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - queryStateAlpha1(request: dapr_proto_runtime_v1_state_pb.QueryStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - queryStateAlpha1(request: dapr_proto_runtime_v1_state_pb.QueryStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - deleteState(request: dapr_proto_runtime_v1_state_pb.DeleteStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - deleteState(request: dapr_proto_runtime_v1_state_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_state_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_state_pb.DeleteBulkStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - deleteBulkState(request: dapr_proto_runtime_v1_state_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_state_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_state_pb.ExecuteStateTransactionRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - executeStateTransaction(request: dapr_proto_runtime_v1_state_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_state_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_pubsub_pb.PublishEventRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - publishEvent(request: dapr_proto_runtime_v1_pubsub_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_pubsub_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_pubsub_pb.BulkPublishRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; - bulkPublishEventAlpha1(request: dapr_proto_runtime_v1_pubsub_pb.BulkPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; - bulkPublishEventAlpha1(request: dapr_proto_runtime_v1_pubsub_pb.BulkPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; - bulkPublishEvent(request: dapr_proto_runtime_v1_pubsub_pb.BulkPublishRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; - bulkPublishEvent(request: dapr_proto_runtime_v1_pubsub_pb.BulkPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; - bulkPublishEvent(request: dapr_proto_runtime_v1_pubsub_pb.BulkPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_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_binding_pb.InvokeBindingRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_binding_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; - invokeBinding(request: dapr_proto_runtime_v1_binding_pb.InvokeBindingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_binding_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; - invokeBinding(request: dapr_proto_runtime_v1_binding_pb.InvokeBindingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_binding_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; - getSecret(request: dapr_proto_runtime_v1_secret_pb.GetSecretRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - getSecret(request: dapr_proto_runtime_v1_secret_pb.GetSecretRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - getSecret(request: dapr_proto_runtime_v1_secret_pb.GetSecretRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - getBulkSecret(request: dapr_proto_runtime_v1_secret_pb.GetBulkSecretRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - getBulkSecret(request: dapr_proto_runtime_v1_secret_pb.GetBulkSecretRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - getBulkSecret(request: dapr_proto_runtime_v1_secret_pb.GetBulkSecretRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - registerActorTimer(request: dapr_proto_runtime_v1_actors_pb.RegisterActorTimerRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - registerActorTimer(request: dapr_proto_runtime_v1_actors_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_actors_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_actors_pb.UnregisterActorTimerRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - unregisterActorTimer(request: dapr_proto_runtime_v1_actors_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_actors_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_actors_pb.RegisterActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - registerActorReminder(request: dapr_proto_runtime_v1_actors_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_actors_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_actors_pb.UnregisterActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - unregisterActorReminder(request: dapr_proto_runtime_v1_actors_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_actors_pb.UnregisterActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - unregisterActorRemindersByType(request: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeResponse) => void): grpc.ClientUnaryCall; - unregisterActorRemindersByType(request: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeResponse) => void): grpc.ClientUnaryCall; - unregisterActorRemindersByType(request: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeResponse) => void): grpc.ClientUnaryCall; - listActorReminders(request: dapr_proto_runtime_v1_actors_pb.ListActorRemindersRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.ListActorRemindersResponse) => void): grpc.ClientUnaryCall; - listActorReminders(request: dapr_proto_runtime_v1_actors_pb.ListActorRemindersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.ListActorRemindersResponse) => void): grpc.ClientUnaryCall; - listActorReminders(request: dapr_proto_runtime_v1_actors_pb.ListActorRemindersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.ListActorRemindersResponse) => void): grpc.ClientUnaryCall; - getActorState(request: dapr_proto_runtime_v1_actors_pb.GetActorStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - getActorState(request: dapr_proto_runtime_v1_actors_pb.GetActorStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - getActorState(request: dapr_proto_runtime_v1_actors_pb.GetActorStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - getActorReminder(request: dapr_proto_runtime_v1_actors_pb.GetActorReminderRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorReminderResponse) => void): grpc.ClientUnaryCall; - getActorReminder(request: dapr_proto_runtime_v1_actors_pb.GetActorReminderRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorReminderResponse) => void): grpc.ClientUnaryCall; - getActorReminder(request: dapr_proto_runtime_v1_actors_pb.GetActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorReminderResponse) => void): grpc.ClientUnaryCall; - executeActorStateTransaction(request: dapr_proto_runtime_v1_actors_pb.ExecuteActorStateTransactionRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - executeActorStateTransaction(request: dapr_proto_runtime_v1_actors_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_actors_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_actors_pb.InvokeActorRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - invokeActor(request: dapr_proto_runtime_v1_actors_pb.InvokeActorRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - invokeActor(request: dapr_proto_runtime_v1_actors_pb.InvokeActorRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - getConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfiguration(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfiguration(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - getConfiguration(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - subscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.SubscribeConfigurationRequest, options?: Partial): grpc.ClientReadableStream; - subscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.SubscribeConfigurationRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - subscribeConfiguration(request: dapr_proto_runtime_v1_configuration_pb.SubscribeConfigurationRequest, options?: Partial): grpc.ClientReadableStream; - subscribeConfiguration(request: dapr_proto_runtime_v1_configuration_pb.SubscribeConfigurationRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - unsubscribeConfiguration(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - unsubscribeConfiguration(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - unsubscribeConfiguration(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - tryLockAlpha1(request: dapr_proto_runtime_v1_lock_pb.TryLockRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - tryLockAlpha1(request: dapr_proto_runtime_v1_lock_pb.TryLockRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - tryLockAlpha1(request: dapr_proto_runtime_v1_lock_pb.TryLockRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - unlockAlpha1(request: dapr_proto_runtime_v1_lock_pb.UnlockRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_pb.UnlockResponse) => void): grpc.ClientUnaryCall; - unlockAlpha1(request: dapr_proto_runtime_v1_lock_pb.UnlockRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_pb.UnlockResponse) => void): grpc.ClientUnaryCall; - unlockAlpha1(request: dapr_proto_runtime_v1_lock_pb.UnlockRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_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_metadata_pb.GetMetadataRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_metadata_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - getMetadata(request: dapr_proto_runtime_v1_metadata_pb.GetMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_metadata_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - getMetadata(request: dapr_proto_runtime_v1_metadata_pb.GetMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_metadata_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - setMetadata(request: dapr_proto_runtime_v1_metadata_pb.SetMetadataRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - setMetadata(request: dapr_proto_runtime_v1_metadata_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_metadata_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_crypto_pb.SubtleGetKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - subtleGetKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleGetKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - subtleGetKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleGetKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - subtleEncryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - subtleEncryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - subtleEncryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - subtleDecryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - subtleDecryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - subtleDecryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - subtleSignAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleSignRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - subtleSignAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleSignRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - subtleSignAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleSignRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - subtleVerifyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - subtleVerifyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - subtleVerifyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - startWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.StartWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - startWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.StartWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - startWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.StartWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - purgeWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.PurgeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - purgeWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.TerminateWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - terminateWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.PauseWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - pauseWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.ResumeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - resumeWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.RaiseEventWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - raiseEventWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.StartWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - startWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.StartWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - startWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.StartWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - getWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - purgeWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.PurgeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - purgeWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.TerminateWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - terminateWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.PauseWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - pauseWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.ResumeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - resumeWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.RaiseEventWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_jobs_pb.ScheduleJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - scheduleJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.ScheduleJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - scheduleJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.ScheduleJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - getJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.GetJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - getJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.GetJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - getJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.GetJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - deleteJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - deleteJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - deleteJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - deleteJobsByPrefixAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixRequestAlpha1, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixResponseAlpha1) => void): grpc.ClientUnaryCall; - deleteJobsByPrefixAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixRequestAlpha1, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixResponseAlpha1) => void): grpc.ClientUnaryCall; - deleteJobsByPrefixAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixRequestAlpha1, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixResponseAlpha1) => void): grpc.ClientUnaryCall; - listJobsAlpha1(request: dapr_proto_runtime_v1_jobs_pb.ListJobsRequestAlpha1, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ListJobsResponseAlpha1) => void): grpc.ClientUnaryCall; - listJobsAlpha1(request: dapr_proto_runtime_v1_jobs_pb.ListJobsRequestAlpha1, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ListJobsResponseAlpha1) => void): grpc.ClientUnaryCall; - listJobsAlpha1(request: dapr_proto_runtime_v1_jobs_pb.ListJobsRequestAlpha1, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ListJobsResponseAlpha1) => void): grpc.ClientUnaryCall; - converseAlpha1(request: dapr_proto_runtime_v1_ai_pb.ConversationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponse) => void): grpc.ClientUnaryCall; - converseAlpha1(request: dapr_proto_runtime_v1_ai_pb.ConversationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponse) => void): grpc.ClientUnaryCall; - converseAlpha1(request: dapr_proto_runtime_v1_ai_pb.ConversationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponse) => void): grpc.ClientUnaryCall; - converseAlpha2(request: dapr_proto_runtime_v1_ai_pb.ConversationRequestAlpha2, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponseAlpha2) => void): grpc.ClientUnaryCall; - converseAlpha2(request: dapr_proto_runtime_v1_ai_pb.ConversationRequestAlpha2, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponseAlpha2) => void): grpc.ClientUnaryCall; - converseAlpha2(request: dapr_proto_runtime_v1_ai_pb.ConversationRequestAlpha2, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponseAlpha2) => 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_invoke_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_invoke_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_invoke_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_state_pb.GetStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - public getState(request: dapr_proto_runtime_v1_state_pb.GetStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - public getState(request: dapr_proto_runtime_v1_state_pb.GetStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetStateResponse) => void): grpc.ClientUnaryCall; - public getBulkState(request: dapr_proto_runtime_v1_state_pb.GetBulkStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - public getBulkState(request: dapr_proto_runtime_v1_state_pb.GetBulkStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - public getBulkState(request: dapr_proto_runtime_v1_state_pb.GetBulkStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.GetBulkStateResponse) => void): grpc.ClientUnaryCall; - public saveState(request: dapr_proto_runtime_v1_state_pb.SaveStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public saveState(request: dapr_proto_runtime_v1_state_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_state_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_state_pb.QueryStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - public queryStateAlpha1(request: dapr_proto_runtime_v1_state_pb.QueryStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - public queryStateAlpha1(request: dapr_proto_runtime_v1_state_pb.QueryStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_state_pb.QueryStateResponse) => void): grpc.ClientUnaryCall; - public deleteState(request: dapr_proto_runtime_v1_state_pb.DeleteStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public deleteState(request: dapr_proto_runtime_v1_state_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_state_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_state_pb.DeleteBulkStateRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public deleteBulkState(request: dapr_proto_runtime_v1_state_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_state_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_state_pb.ExecuteStateTransactionRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public executeStateTransaction(request: dapr_proto_runtime_v1_state_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_state_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_pubsub_pb.PublishEventRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public publishEvent(request: dapr_proto_runtime_v1_pubsub_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_pubsub_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_pubsub_pb.BulkPublishRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; - public bulkPublishEventAlpha1(request: dapr_proto_runtime_v1_pubsub_pb.BulkPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; - public bulkPublishEventAlpha1(request: dapr_proto_runtime_v1_pubsub_pb.BulkPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; - public bulkPublishEvent(request: dapr_proto_runtime_v1_pubsub_pb.BulkPublishRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; - public bulkPublishEvent(request: dapr_proto_runtime_v1_pubsub_pb.BulkPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_pb.BulkPublishResponse) => void): grpc.ClientUnaryCall; - public bulkPublishEvent(request: dapr_proto_runtime_v1_pubsub_pb.BulkPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_pubsub_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_binding_pb.InvokeBindingRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_binding_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; - public invokeBinding(request: dapr_proto_runtime_v1_binding_pb.InvokeBindingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_binding_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; - public invokeBinding(request: dapr_proto_runtime_v1_binding_pb.InvokeBindingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_binding_pb.InvokeBindingResponse) => void): grpc.ClientUnaryCall; - public getSecret(request: dapr_proto_runtime_v1_secret_pb.GetSecretRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - public getSecret(request: dapr_proto_runtime_v1_secret_pb.GetSecretRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - public getSecret(request: dapr_proto_runtime_v1_secret_pb.GetSecretRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetSecretResponse) => void): grpc.ClientUnaryCall; - public getBulkSecret(request: dapr_proto_runtime_v1_secret_pb.GetBulkSecretRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - public getBulkSecret(request: dapr_proto_runtime_v1_secret_pb.GetBulkSecretRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - public getBulkSecret(request: dapr_proto_runtime_v1_secret_pb.GetBulkSecretRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_secret_pb.GetBulkSecretResponse) => void): grpc.ClientUnaryCall; - public registerActorTimer(request: dapr_proto_runtime_v1_actors_pb.RegisterActorTimerRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public registerActorTimer(request: dapr_proto_runtime_v1_actors_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_actors_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_actors_pb.UnregisterActorTimerRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public unregisterActorTimer(request: dapr_proto_runtime_v1_actors_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_actors_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_actors_pb.RegisterActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public registerActorReminder(request: dapr_proto_runtime_v1_actors_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_actors_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_actors_pb.UnregisterActorReminderRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public unregisterActorReminder(request: dapr_proto_runtime_v1_actors_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_actors_pb.UnregisterActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public unregisterActorRemindersByType(request: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeResponse) => void): grpc.ClientUnaryCall; - public unregisterActorRemindersByType(request: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeResponse) => void): grpc.ClientUnaryCall; - public unregisterActorRemindersByType(request: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeResponse) => void): grpc.ClientUnaryCall; - public listActorReminders(request: dapr_proto_runtime_v1_actors_pb.ListActorRemindersRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.ListActorRemindersResponse) => void): grpc.ClientUnaryCall; - public listActorReminders(request: dapr_proto_runtime_v1_actors_pb.ListActorRemindersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.ListActorRemindersResponse) => void): grpc.ClientUnaryCall; - public listActorReminders(request: dapr_proto_runtime_v1_actors_pb.ListActorRemindersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.ListActorRemindersResponse) => void): grpc.ClientUnaryCall; - public getActorState(request: dapr_proto_runtime_v1_actors_pb.GetActorStateRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - public getActorState(request: dapr_proto_runtime_v1_actors_pb.GetActorStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - public getActorState(request: dapr_proto_runtime_v1_actors_pb.GetActorStateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorStateResponse) => void): grpc.ClientUnaryCall; - public getActorReminder(request: dapr_proto_runtime_v1_actors_pb.GetActorReminderRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorReminderResponse) => void): grpc.ClientUnaryCall; - public getActorReminder(request: dapr_proto_runtime_v1_actors_pb.GetActorReminderRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorReminderResponse) => void): grpc.ClientUnaryCall; - public getActorReminder(request: dapr_proto_runtime_v1_actors_pb.GetActorReminderRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.GetActorReminderResponse) => void): grpc.ClientUnaryCall; - public executeActorStateTransaction(request: dapr_proto_runtime_v1_actors_pb.ExecuteActorStateTransactionRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public executeActorStateTransaction(request: dapr_proto_runtime_v1_actors_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_actors_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_actors_pb.InvokeActorRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - public invokeActor(request: dapr_proto_runtime_v1_actors_pb.InvokeActorRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - public invokeActor(request: dapr_proto_runtime_v1_actors_pb.InvokeActorRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_actors_pb.InvokeActorResponse) => void): grpc.ClientUnaryCall; - public getConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfiguration(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfiguration(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public getConfiguration(request: dapr_proto_runtime_v1_configuration_pb.GetConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.GetConfigurationResponse) => void): grpc.ClientUnaryCall; - public subscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.SubscribeConfigurationRequest, options?: Partial): grpc.ClientReadableStream; - public subscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.SubscribeConfigurationRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public subscribeConfiguration(request: dapr_proto_runtime_v1_configuration_pb.SubscribeConfigurationRequest, options?: Partial): grpc.ClientReadableStream; - public subscribeConfiguration(request: dapr_proto_runtime_v1_configuration_pb.SubscribeConfigurationRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public unsubscribeConfigurationAlpha1(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public unsubscribeConfiguration(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public unsubscribeConfiguration(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public unsubscribeConfiguration(request: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_configuration_pb.UnsubscribeConfigurationResponse) => void): grpc.ClientUnaryCall; - public tryLockAlpha1(request: dapr_proto_runtime_v1_lock_pb.TryLockRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - public tryLockAlpha1(request: dapr_proto_runtime_v1_lock_pb.TryLockRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - public tryLockAlpha1(request: dapr_proto_runtime_v1_lock_pb.TryLockRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_pb.TryLockResponse) => void): grpc.ClientUnaryCall; - public unlockAlpha1(request: dapr_proto_runtime_v1_lock_pb.UnlockRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_pb.UnlockResponse) => void): grpc.ClientUnaryCall; - public unlockAlpha1(request: dapr_proto_runtime_v1_lock_pb.UnlockRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_pb.UnlockResponse) => void): grpc.ClientUnaryCall; - public unlockAlpha1(request: dapr_proto_runtime_v1_lock_pb.UnlockRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_lock_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_metadata_pb.GetMetadataRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_metadata_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - public getMetadata(request: dapr_proto_runtime_v1_metadata_pb.GetMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_metadata_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - public getMetadata(request: dapr_proto_runtime_v1_metadata_pb.GetMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_metadata_pb.GetMetadataResponse) => void): grpc.ClientUnaryCall; - public setMetadata(request: dapr_proto_runtime_v1_metadata_pb.SetMetadataRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public setMetadata(request: dapr_proto_runtime_v1_metadata_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_metadata_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_crypto_pb.SubtleGetKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - public subtleGetKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleGetKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - public subtleGetKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleGetKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleGetKeyResponse) => void): grpc.ClientUnaryCall; - public subtleEncryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - public subtleEncryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - public subtleEncryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleEncryptResponse) => void): grpc.ClientUnaryCall; - public subtleDecryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - public subtleDecryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - public subtleDecryptAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleDecryptResponse) => void): grpc.ClientUnaryCall; - public subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleWrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleWrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleUnwrapKeyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleUnwrapKeyResponse) => void): grpc.ClientUnaryCall; - public subtleSignAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleSignRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - public subtleSignAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleSignRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - public subtleSignAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleSignRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleSignResponse) => void): grpc.ClientUnaryCall; - public subtleVerifyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - public subtleVerifyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - public subtleVerifyAlpha1(request: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_crypto_pb.SubtleVerifyResponse) => void): grpc.ClientUnaryCall; - public startWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.StartWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public startWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.StartWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public startWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.StartWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public purgeWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_pb.PurgeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public purgeWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.TerminateWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public terminateWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.PauseWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public pauseWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.ResumeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public resumeWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.RaiseEventWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public raiseEventWorkflowAlpha1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.StartWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public startWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.StartWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public startWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.StartWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.StartWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public getWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.GetWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_workflow_pb.GetWorkflowResponse) => void): grpc.ClientUnaryCall; - public purgeWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_pb.PurgeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public purgeWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.TerminateWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public terminateWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.PauseWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public pauseWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.ResumeWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public resumeWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_pb.RaiseEventWorkflowRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall; - public raiseEventWorkflowBeta1(request: dapr_proto_runtime_v1_workflow_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_workflow_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_jobs_pb.ScheduleJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - public scheduleJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.ScheduleJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - public scheduleJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.ScheduleJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - public getJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.GetJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - public getJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.GetJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - public getJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.GetJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - public deleteJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - public deleteJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - public deleteJobAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - public deleteJobsByPrefixAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixRequestAlpha1, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixResponseAlpha1) => void): grpc.ClientUnaryCall; - public deleteJobsByPrefixAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixRequestAlpha1, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixResponseAlpha1) => void): grpc.ClientUnaryCall; - public deleteJobsByPrefixAlpha1(request: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixRequestAlpha1, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixResponseAlpha1) => void): grpc.ClientUnaryCall; - public listJobsAlpha1(request: dapr_proto_runtime_v1_jobs_pb.ListJobsRequestAlpha1, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ListJobsResponseAlpha1) => void): grpc.ClientUnaryCall; - public listJobsAlpha1(request: dapr_proto_runtime_v1_jobs_pb.ListJobsRequestAlpha1, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ListJobsResponseAlpha1) => void): grpc.ClientUnaryCall; - public listJobsAlpha1(request: dapr_proto_runtime_v1_jobs_pb.ListJobsRequestAlpha1, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_jobs_pb.ListJobsResponseAlpha1) => void): grpc.ClientUnaryCall; - public converseAlpha1(request: dapr_proto_runtime_v1_ai_pb.ConversationRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponse) => void): grpc.ClientUnaryCall; - public converseAlpha1(request: dapr_proto_runtime_v1_ai_pb.ConversationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponse) => void): grpc.ClientUnaryCall; - public converseAlpha1(request: dapr_proto_runtime_v1_ai_pb.ConversationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponse) => void): grpc.ClientUnaryCall; - public converseAlpha2(request: dapr_proto_runtime_v1_ai_pb.ConversationRequestAlpha2, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponseAlpha2) => void): grpc.ClientUnaryCall; - public converseAlpha2(request: dapr_proto_runtime_v1_ai_pb.ConversationRequestAlpha2, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponseAlpha2) => void): grpc.ClientUnaryCall; - public converseAlpha2(request: dapr_proto_runtime_v1_ai_pb.ConversationRequestAlpha2, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_runtime_v1_ai_pb.ConversationResponseAlpha2) => 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 f4267845..00000000 --- a/src/proto/dapr/proto/runtime/v1/dapr_grpc_pb.js +++ /dev/null @@ -1,1864 +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_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 dapr_proto_runtime_v1_actors_pb = require('../../../../dapr/proto/runtime/v1/actors_pb.js'); -var dapr_proto_runtime_v1_pubsub_pb = require('../../../../dapr/proto/runtime/v1/pubsub_pb.js'); -var dapr_proto_runtime_v1_invoke_pb = require('../../../../dapr/proto/runtime/v1/invoke_pb.js'); -var dapr_proto_runtime_v1_state_pb = require('../../../../dapr/proto/runtime/v1/state_pb.js'); -var dapr_proto_runtime_v1_binding_pb = require('../../../../dapr/proto/runtime/v1/binding_pb.js'); -var dapr_proto_runtime_v1_secret_pb = require('../../../../dapr/proto/runtime/v1/secret_pb.js'); -var dapr_proto_runtime_v1_metadata_pb = require('../../../../dapr/proto/runtime/v1/metadata_pb.js'); -var dapr_proto_runtime_v1_configuration_pb = require('../../../../dapr/proto/runtime/v1/configuration_pb.js'); -var dapr_proto_runtime_v1_lock_pb = require('../../../../dapr/proto/runtime/v1/lock_pb.js'); -var dapr_proto_runtime_v1_crypto_pb = require('../../../../dapr/proto/runtime/v1/crypto_pb.js'); -var dapr_proto_runtime_v1_workflow_pb = require('../../../../dapr/proto/runtime/v1/workflow_pb.js'); -var dapr_proto_runtime_v1_jobs_pb = require('../../../../dapr/proto/runtime/v1/jobs_pb.js'); -var dapr_proto_runtime_v1_ai_pb = require('../../../../dapr/proto/runtime/v1/ai_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_pubsub_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_pubsub_pb.BulkPublishRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_BulkPublishResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_pubsub_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_pubsub_pb.BulkPublishResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ConversationRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_ai_pb.ConversationRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ConversationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ConversationRequest(buffer_arg) { - return dapr_proto_runtime_v1_ai_pb.ConversationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ConversationRequestAlpha2(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_ai_pb.ConversationRequestAlpha2)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ConversationRequestAlpha2'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ConversationRequestAlpha2(buffer_arg) { - return dapr_proto_runtime_v1_ai_pb.ConversationRequestAlpha2.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ConversationResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_ai_pb.ConversationResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ConversationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ConversationResponse(buffer_arg) { - return dapr_proto_runtime_v1_ai_pb.ConversationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ConversationResponseAlpha2(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_ai_pb.ConversationResponseAlpha2)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ConversationResponseAlpha2'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ConversationResponseAlpha2(buffer_arg) { - return dapr_proto_runtime_v1_ai_pb.ConversationResponseAlpha2.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_DecryptRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.DecryptRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_DecryptResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.DecryptResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_DeleteBulkStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_state_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_state_pb.DeleteBulkStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_DeleteJobRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_jobs_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_jobs_pb.DeleteJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_DeleteJobResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_jobs_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_jobs_pb.DeleteJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_DeleteJobsByPrefixRequestAlpha1(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixRequestAlpha1)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_DeleteJobsByPrefixRequestAlpha1(buffer_arg) { - return dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixRequestAlpha1.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_DeleteJobsByPrefixResponseAlpha1(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixResponseAlpha1)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_DeleteJobsByPrefixResponseAlpha1(buffer_arg) { - return dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixResponseAlpha1.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_DeleteStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_state_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_state_pb.DeleteStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_EncryptRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.EncryptRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_EncryptResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.EncryptResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ExecuteActorStateTransactionRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_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_actors_pb.ExecuteActorStateTransactionRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ExecuteStateTransactionRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_state_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_state_pb.ExecuteStateTransactionRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetActorReminderRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_pb.GetActorReminderRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetActorReminderRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetActorReminderRequest(buffer_arg) { - return dapr_proto_runtime_v1_actors_pb.GetActorReminderRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetActorReminderResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_pb.GetActorReminderResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.GetActorReminderResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_GetActorReminderResponse(buffer_arg) { - return dapr_proto_runtime_v1_actors_pb.GetActorReminderResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetActorStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_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_actors_pb.GetActorStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetActorStateResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_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_actors_pb.GetActorStateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetBulkSecretRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_secret_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_secret_pb.GetBulkSecretRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetBulkSecretResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_secret_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_secret_pb.GetBulkSecretResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetBulkStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_state_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_state_pb.GetBulkStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetBulkStateResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_state_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_state_pb.GetBulkStateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetConfigurationRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_configuration_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_configuration_pb.GetConfigurationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetConfigurationResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_configuration_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_configuration_pb.GetConfigurationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetJobRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_jobs_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_jobs_pb.GetJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetJobResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_jobs_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_jobs_pb.GetJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetMetadataRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_metadata_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_metadata_pb.GetMetadataRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetMetadataResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_metadata_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_metadata_pb.GetMetadataResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetSecretRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_secret_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_secret_pb.GetSecretRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetSecretResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_secret_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_secret_pb.GetSecretResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_state_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_state_pb.GetStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetStateResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_state_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_state_pb.GetStateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_workflow_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_workflow_pb.GetWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_GetWorkflowResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_workflow_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_workflow_pb.GetWorkflowResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_InvokeActorRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_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_actors_pb.InvokeActorRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_InvokeActorResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_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_actors_pb.InvokeActorResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_InvokeBindingRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_binding_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_binding_pb.InvokeBindingRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_InvokeBindingResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_binding_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_binding_pb.InvokeBindingResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_InvokeServiceRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_invoke_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_invoke_pb.InvokeServiceRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ListActorRemindersRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_pb.ListActorRemindersRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ListActorRemindersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ListActorRemindersRequest(buffer_arg) { - return dapr_proto_runtime_v1_actors_pb.ListActorRemindersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ListActorRemindersResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_pb.ListActorRemindersResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ListActorRemindersResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ListActorRemindersResponse(buffer_arg) { - return dapr_proto_runtime_v1_actors_pb.ListActorRemindersResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ListJobsRequestAlpha1(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_jobs_pb.ListJobsRequestAlpha1)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ListJobsRequestAlpha1'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ListJobsRequestAlpha1(buffer_arg) { - return dapr_proto_runtime_v1_jobs_pb.ListJobsRequestAlpha1.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ListJobsResponseAlpha1(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_jobs_pb.ListJobsResponseAlpha1)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.ListJobsResponseAlpha1'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_ListJobsResponseAlpha1(buffer_arg) { - return dapr_proto_runtime_v1_jobs_pb.ListJobsResponseAlpha1.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_PauseWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_workflow_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_workflow_pb.PauseWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_PublishEventRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_pubsub_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_pubsub_pb.PublishEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_PurgeWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_workflow_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_workflow_pb.PurgeWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_QueryStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_state_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_state_pb.QueryStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_QueryStateResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_state_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_state_pb.QueryStateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_RaiseEventWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_workflow_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_workflow_pb.RaiseEventWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_RegisterActorReminderRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_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_actors_pb.RegisterActorReminderRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_RegisterActorTimerRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_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_actors_pb.RegisterActorTimerRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ResumeWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_workflow_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_workflow_pb.ResumeWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SaveStateRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_state_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_state_pb.SaveStateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ScheduleJobRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_jobs_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_jobs_pb.ScheduleJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_ScheduleJobResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_jobs_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_jobs_pb.ScheduleJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SetMetadataRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_metadata_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_metadata_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_workflow_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_workflow_pb.StartWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_StartWorkflowResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_workflow_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_workflow_pb.StartWorkflowResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubscribeConfigurationRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_configuration_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_configuration_pb.SubscribeConfigurationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubscribeConfigurationResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_configuration_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_configuration_pb.SubscribeConfigurationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubscribeTopicEventsRequestAlpha1(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_pubsub_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_pubsub_pb.SubscribeTopicEventsRequestAlpha1.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubscribeTopicEventsResponseAlpha1(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_pubsub_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_pubsub_pb.SubscribeTopicEventsResponseAlpha1.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleDecryptRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleDecryptRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleDecryptResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleDecryptResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleEncryptRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleEncryptRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleEncryptResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleEncryptResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleGetKeyRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleGetKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleGetKeyResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleGetKeyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleSignRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleSignRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleSignResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleSignResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleUnwrapKeyRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleUnwrapKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleUnwrapKeyResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleUnwrapKeyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleVerifyRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleVerifyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleVerifyResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleVerifyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleWrapKeyRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleWrapKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_SubtleWrapKeyResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleWrapKeyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_TerminateWorkflowRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_workflow_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_workflow_pb.TerminateWorkflowRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_TryLockRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_lock_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_lock_pb.TryLockRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_TryLockResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_lock_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_lock_pb.TryLockResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnlockRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_lock_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_lock_pb.UnlockRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnlockResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_lock_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_lock_pb.UnlockResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnregisterActorReminderRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_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_actors_pb.UnregisterActorReminderRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnregisterActorRemindersByTypeRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeRequest)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_UnregisterActorRemindersByTypeRequest(buffer_arg) { - return dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnregisterActorRemindersByTypeResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeResponse)) { - throw new Error('Expected argument of type dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_runtime_v1_UnregisterActorRemindersByTypeResponse(buffer_arg) { - return dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnregisterActorTimerRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_actors_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_actors_pb.UnregisterActorTimerRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnsubscribeConfigurationRequest(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_configuration_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_configuration_pb.UnsubscribeConfigurationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_runtime_v1_UnsubscribeConfigurationResponse(arg) { - if (!(arg instanceof dapr_proto_runtime_v1_configuration_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_configuration_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_invoke_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_state_pb.GetStateRequest, - responseType: dapr_proto_runtime_v1_state_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_state_pb.GetBulkStateRequest, - responseType: dapr_proto_runtime_v1_state_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_state_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_state_pb.QueryStateRequest, - responseType: dapr_proto_runtime_v1_state_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_state_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_state_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_state_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_pubsub_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, - }, - // Deprecated: 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_pubsub_pb.BulkPublishRequest, - responseType: dapr_proto_runtime_v1_pubsub_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, - }, - // Bulk Publishes multiple events to the specified topic. -bulkPublishEvent: { - path: '/dapr.proto.runtime.v1.Dapr/BulkPublishEvent', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_pubsub_pb.BulkPublishRequest, - responseType: dapr_proto_runtime_v1_pubsub_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_pubsub_pb.SubscribeTopicEventsRequestAlpha1, - responseType: dapr_proto_runtime_v1_pubsub_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_binding_pb.InvokeBindingRequest, - responseType: dapr_proto_runtime_v1_binding_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_secret_pb.GetSecretRequest, - responseType: dapr_proto_runtime_v1_secret_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_secret_pb.GetBulkSecretRequest, - responseType: dapr_proto_runtime_v1_secret_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_actors_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_actors_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_actors_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_actors_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, - }, - unregisterActorRemindersByType: { - path: '/dapr.proto.runtime.v1.Dapr/UnregisterActorRemindersByType', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeRequest, - responseType: dapr_proto_runtime_v1_actors_pb.UnregisterActorRemindersByTypeResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_UnregisterActorRemindersByTypeRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_UnregisterActorRemindersByTypeRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_UnregisterActorRemindersByTypeResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_UnregisterActorRemindersByTypeResponse, - }, - listActorReminders: { - path: '/dapr.proto.runtime.v1.Dapr/ListActorReminders', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_actors_pb.ListActorRemindersRequest, - responseType: dapr_proto_runtime_v1_actors_pb.ListActorRemindersResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_ListActorRemindersRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_ListActorRemindersRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_ListActorRemindersResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_ListActorRemindersResponse, - }, - // Gets the state for a specific actor. -getActorState: { - path: '/dapr.proto.runtime.v1.Dapr/GetActorState', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_actors_pb.GetActorStateRequest, - responseType: dapr_proto_runtime_v1_actors_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, - }, - // Gets an actor reminder. -getActorReminder: { - path: '/dapr.proto.runtime.v1.Dapr/GetActorReminder', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_actors_pb.GetActorReminderRequest, - responseType: dapr_proto_runtime_v1_actors_pb.GetActorReminderResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_GetActorReminderRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_GetActorReminderRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_GetActorReminderResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_GetActorReminderResponse, - }, - // Executes state transactions for a specified actor -executeActorStateTransaction: { - path: '/dapr.proto.runtime.v1.Dapr/ExecuteActorStateTransaction', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_actors_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_actors_pb.InvokeActorRequest, - responseType: dapr_proto_runtime_v1_actors_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_configuration_pb.GetConfigurationRequest, - responseType: dapr_proto_runtime_v1_configuration_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_configuration_pb.GetConfigurationRequest, - responseType: dapr_proto_runtime_v1_configuration_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_configuration_pb.SubscribeConfigurationRequest, - responseType: dapr_proto_runtime_v1_configuration_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_configuration_pb.SubscribeConfigurationRequest, - responseType: dapr_proto_runtime_v1_configuration_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_configuration_pb.UnsubscribeConfigurationRequest, - responseType: dapr_proto_runtime_v1_configuration_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_configuration_pb.UnsubscribeConfigurationRequest, - responseType: dapr_proto_runtime_v1_configuration_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_lock_pb.TryLockRequest, - responseType: dapr_proto_runtime_v1_lock_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_lock_pb.UnlockRequest, - responseType: dapr_proto_runtime_v1_lock_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_crypto_pb.EncryptRequest, - responseType: dapr_proto_runtime_v1_crypto_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_crypto_pb.DecryptRequest, - responseType: dapr_proto_runtime_v1_crypto_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_metadata_pb.GetMetadataRequest, - responseType: dapr_proto_runtime_v1_metadata_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_metadata_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_crypto_pb.SubtleGetKeyRequest, - responseType: dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleEncryptRequest, - responseType: dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleDecryptRequest, - responseType: dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleWrapKeyRequest, - responseType: dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleUnwrapKeyRequest, - responseType: dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleSignRequest, - responseType: dapr_proto_runtime_v1_crypto_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_crypto_pb.SubtleVerifyRequest, - responseType: dapr_proto_runtime_v1_crypto_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_workflow_pb.StartWorkflowRequest, - responseType: dapr_proto_runtime_v1_workflow_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_workflow_pb.GetWorkflowRequest, - responseType: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_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_workflow_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_workflow_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_workflow_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_workflow_pb.StartWorkflowRequest, - responseType: dapr_proto_runtime_v1_workflow_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_workflow_pb.GetWorkflowRequest, - responseType: dapr_proto_runtime_v1_workflow_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_workflow_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_workflow_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_workflow_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_workflow_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_workflow_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_jobs_pb.ScheduleJobRequest, - responseType: dapr_proto_runtime_v1_jobs_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_jobs_pb.GetJobRequest, - responseType: dapr_proto_runtime_v1_jobs_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_jobs_pb.DeleteJobRequest, - responseType: dapr_proto_runtime_v1_jobs_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, - }, - deleteJobsByPrefixAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/DeleteJobsByPrefixAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixRequestAlpha1, - responseType: dapr_proto_runtime_v1_jobs_pb.DeleteJobsByPrefixResponseAlpha1, - requestSerialize: serialize_dapr_proto_runtime_v1_DeleteJobsByPrefixRequestAlpha1, - requestDeserialize: deserialize_dapr_proto_runtime_v1_DeleteJobsByPrefixRequestAlpha1, - responseSerialize: serialize_dapr_proto_runtime_v1_DeleteJobsByPrefixResponseAlpha1, - responseDeserialize: deserialize_dapr_proto_runtime_v1_DeleteJobsByPrefixResponseAlpha1, - }, - listJobsAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/ListJobsAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_jobs_pb.ListJobsRequestAlpha1, - responseType: dapr_proto_runtime_v1_jobs_pb.ListJobsResponseAlpha1, - requestSerialize: serialize_dapr_proto_runtime_v1_ListJobsRequestAlpha1, - requestDeserialize: deserialize_dapr_proto_runtime_v1_ListJobsRequestAlpha1, - responseSerialize: serialize_dapr_proto_runtime_v1_ListJobsResponseAlpha1, - responseDeserialize: deserialize_dapr_proto_runtime_v1_ListJobsResponseAlpha1, - }, - // Converse with a LLM service -converseAlpha1: { - path: '/dapr.proto.runtime.v1.Dapr/ConverseAlpha1', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_ai_pb.ConversationRequest, - responseType: dapr_proto_runtime_v1_ai_pb.ConversationResponse, - requestSerialize: serialize_dapr_proto_runtime_v1_ConversationRequest, - requestDeserialize: deserialize_dapr_proto_runtime_v1_ConversationRequest, - responseSerialize: serialize_dapr_proto_runtime_v1_ConversationResponse, - responseDeserialize: deserialize_dapr_proto_runtime_v1_ConversationResponse, - }, - // Converse with a LLM service via alpha2 api -converseAlpha2: { - path: '/dapr.proto.runtime.v1.Dapr/ConverseAlpha2', - requestStream: false, - responseStream: false, - requestType: dapr_proto_runtime_v1_ai_pb.ConversationRequestAlpha2, - responseType: dapr_proto_runtime_v1_ai_pb.ConversationResponseAlpha2, - requestSerialize: serialize_dapr_proto_runtime_v1_ConversationRequestAlpha2, - requestDeserialize: deserialize_dapr_proto_runtime_v1_ConversationRequestAlpha2, - responseSerialize: serialize_dapr_proto_runtime_v1_ConversationResponseAlpha2, - responseDeserialize: deserialize_dapr_proto_runtime_v1_ConversationResponseAlpha2, - }, -}; - -exports.DaprClient = grpc.makeGenericClientConstructor(DaprService, 'Dapr'); diff --git a/src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts b/src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts deleted file mode 100644 index 87e73f53..00000000 --- a/src/proto/dapr/proto/runtime/v1/dapr_pb.d.ts +++ /dev/null @@ -1,4776 +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. - -// @generated by protoc-gen-es v2.11.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 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; - - /** - * @generated from field: optional dapr.proto.runtime.v1.MetadataWorkflows workflows = 12; - */ - workflows?: MetadataWorkflows; -}; - -/** - * Describes the message dapr.proto.runtime.v1.GetMetadataResponse. - * Use `create(GetMetadataResponseSchema)` to create a new message. - */ -export declare const GetMetadataResponseSchema: GenMessage; - -/** - * @generated from message dapr.proto.runtime.v1.MetadataWorkflows - */ -export declare type MetadataWorkflows = Message<"dapr.proto.runtime.v1.MetadataWorkflows"> & { - /** - * @generated from field: int32 connected_workers = 1; - */ - connectedWorkers: number; -}; - -/** - * Describes the message dapr.proto.runtime.v1.MetadataWorkflows. - * Use `create(MetadataWorkflowsSchema)` to create a new message. - */ -export declare const MetadataWorkflowsSchema: 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 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 deleted file mode 100644 index 10904048..00000000 --- a/src/proto/dapr/proto/runtime/v1/dapr_pb.js +++ /dev/null @@ -1,950 +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. - -// @generated by protoc-gen-es v2.11.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.js"; -import { file_dapr_proto_runtime_v1_appcallback } from "./appcallback_pb.js"; - -/** - * Describes the file dapr/proto/runtime/v1/dapr.proto. - */ -export const file_dapr_proto_runtime_v1_dapr = /*@__PURE__*/ - fileDesc("CiBkYXByL3Byb3RvL3J1bnRpbWUvdjEvZGFwci5wcm90bxIVZGFwci5wcm90by5ydW50aW1lLnYxIlgKFEludm9rZVNlcnZpY2VSZXF1ZXN0EgoKAmlkGAEgASgJEjQKB21lc3NhZ2UYAyABKAsyIy5kYXByLnByb3RvLmNvbW1vbi52MS5JbnZva2VSZXF1ZXN0IvUBCg9HZXRTdGF0ZVJlcXVlc3QSEgoKc3RvcmVfbmFtZRgBIAEoCRILCgNrZXkYAiABKAkSSAoLY29uc2lzdGVuY3kYAyABKA4yMy5kYXByLnByb3RvLmNvbW1vbi52MS5TdGF0ZU9wdGlvbnMuU3RhdGVDb25zaXN0ZW5jeRJGCghtZXRhZGF0YRgEIAMoCzI0LmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRTdGF0ZVJlcXVlc3QuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiyQEKE0dldEJ1bGtTdGF0ZVJlcXVlc3QSEgoKc3RvcmVfbmFtZRgBIAEoCRIMCgRrZXlzGAIgAygJEhMKC3BhcmFsbGVsaXNtGAMgASgFEkoKCG1ldGFkYXRhGAQgAygLMjguZGFwci5wcm90by5ydW50aW1lLnYxLkdldEJ1bGtTdGF0ZVJlcXVlc3QuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiSwoUR2V0QnVsa1N0YXRlUmVzcG9uc2USMwoFaXRlbXMYASADKAsyJC5kYXByLnByb3RvLnJ1bnRpbWUudjEuQnVsa1N0YXRlSXRlbSK+AQoNQnVsa1N0YXRlSXRlbRILCgNrZXkYASABKAkSDAoEZGF0YRgCIAEoDBIMCgRldGFnGAMgASgJEg0KBWVycm9yGAQgASgJEkQKCG1ldGFkYXRhGAUgAygLMjIuZGFwci5wcm90by5ydW50aW1lLnYxLkJ1bGtTdGF0ZUl0ZW0uTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiqAEKEEdldFN0YXRlUmVzcG9uc2USDAoEZGF0YRgBIAEoDBIMCgRldGFnGAIgASgJEkcKCG1ldGFkYXRhGAMgAygLMjUuZGFwci5wcm90by5ydW50aW1lLnYxLkdldFN0YXRlUmVzcG9uc2UuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEikAIKEkRlbGV0ZVN0YXRlUmVxdWVzdBISCgpzdG9yZV9uYW1lGAEgASgJEgsKA2tleRgCIAEoCRIoCgRldGFnGAMgASgLMhouZGFwci5wcm90by5jb21tb24udjEuRXRhZxIzCgdvcHRpb25zGAQgASgLMiIuZGFwci5wcm90by5jb21tb24udjEuU3RhdGVPcHRpb25zEkkKCG1ldGFkYXRhGAUgAygLMjcuZGFwci5wcm90by5ydW50aW1lLnYxLkRlbGV0ZVN0YXRlUmVxdWVzdC5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJdChZEZWxldGVCdWxrU3RhdGVSZXF1ZXN0EhIKCnN0b3JlX25hbWUYASABKAkSLwoGc3RhdGVzGAIgAygLMh8uZGFwci5wcm90by5jb21tb24udjEuU3RhdGVJdGVtIlcKEFNhdmVTdGF0ZVJlcXVlc3QSEgoKc3RvcmVfbmFtZRgBIAEoCRIvCgZzdGF0ZXMYAiADKAsyHy5kYXByLnByb3RvLmNvbW1vbi52MS5TdGF0ZUl0ZW0isQEKEVF1ZXJ5U3RhdGVSZXF1ZXN0EhIKCnN0b3JlX25hbWUYASABKAkSDQoFcXVlcnkYAiABKAkSSAoIbWV0YWRhdGEYAyADKAsyNi5kYXByLnByb3RvLnJ1bnRpbWUudjEuUXVlcnlTdGF0ZVJlcXVlc3QuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiSAoOUXVlcnlTdGF0ZUl0ZW0SCwoDa2V5GAEgASgJEgwKBGRhdGEYAiABKAwSDAoEZXRhZxgDIAEoCRINCgVlcnJvchgEIAEoCSLXAQoSUXVlcnlTdGF0ZVJlc3BvbnNlEjYKB3Jlc3VsdHMYASADKAsyJS5kYXByLnByb3RvLnJ1bnRpbWUudjEuUXVlcnlTdGF0ZUl0ZW0SDQoFdG9rZW4YAiABKAkSSQoIbWV0YWRhdGEYAyADKAsyNy5kYXByLnByb3RvLnJ1bnRpbWUudjEuUXVlcnlTdGF0ZVJlc3BvbnNlLk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIt8BChNQdWJsaXNoRXZlbnRSZXF1ZXN0EhMKC3B1YnN1Yl9uYW1lGAEgASgJEg0KBXRvcGljGAIgASgJEgwKBGRhdGEYAyABKAwSGQoRZGF0YV9jb250ZW50X3R5cGUYBCABKAkSSgoIbWV0YWRhdGEYBSADKAsyOC5kYXByLnByb3RvLnJ1bnRpbWUudjEuUHVibGlzaEV2ZW50UmVxdWVzdC5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASL1AQoSQnVsa1B1Ymxpc2hSZXF1ZXN0EhMKC3B1YnN1Yl9uYW1lGAEgASgJEg0KBXRvcGljGAIgASgJEj8KB2VudHJpZXMYAyADKAsyLi5kYXByLnByb3RvLnJ1bnRpbWUudjEuQnVsa1B1Ymxpc2hSZXF1ZXN0RW50cnkSSQoIbWV0YWRhdGEYBCADKAsyNy5kYXByLnByb3RvLnJ1bnRpbWUudjEuQnVsa1B1Ymxpc2hSZXF1ZXN0Lk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBItEBChdCdWxrUHVibGlzaFJlcXVlc3RFbnRyeRIQCghlbnRyeV9pZBgBIAEoCRINCgVldmVudBgCIAEoDBIUCgxjb250ZW50X3R5cGUYAyABKAkSTgoIbWV0YWRhdGEYBCADKAsyPC5kYXByLnByb3RvLnJ1bnRpbWUudjEuQnVsa1B1Ymxpc2hSZXF1ZXN0RW50cnkuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiYwoTQnVsa1B1Ymxpc2hSZXNwb25zZRJMCg1mYWlsZWRFbnRyaWVzGAEgAygLMjUuZGFwci5wcm90by5ydW50aW1lLnYxLkJ1bGtQdWJsaXNoUmVzcG9uc2VGYWlsZWRFbnRyeSJBCh5CdWxrUHVibGlzaFJlc3BvbnNlRmFpbGVkRW50cnkSEAoIZW50cnlfaWQYASABKAkSDQoFZXJyb3IYAiABKAkihAIKIVN1YnNjcmliZVRvcGljRXZlbnRzUmVxdWVzdEFscGhhMRJaCg9pbml0aWFsX3JlcXVlc3QYASABKAsyPy5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3Vic2NyaWJlVG9waWNFdmVudHNSZXF1ZXN0SW5pdGlhbEFscGhhMUgAElwKD2V2ZW50X3Byb2Nlc3NlZBgCIAEoCzJBLmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJzY3JpYmVUb3BpY0V2ZW50c1JlcXVlc3RQcm9jZXNzZWRBbHBoYTFIAEIlCiNzdWJzY3JpYmVfdG9waWNfZXZlbnRzX3JlcXVlc3RfdHlwZSKWAgooU3Vic2NyaWJlVG9waWNFdmVudHNSZXF1ZXN0SW5pdGlhbEFscGhhMRITCgtwdWJzdWJfbmFtZRgBIAEoCRINCgV0b3BpYxgCIAEoCRJfCghtZXRhZGF0YRgDIAMoCzJNLmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJzY3JpYmVUb3BpY0V2ZW50c1JlcXVlc3RJbml0aWFsQWxwaGExLk1ldGFkYXRhRW50cnkSHgoRZGVhZF9sZXR0ZXJfdG9waWMYBCABKAlIAIgBARovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAFCFAoSX2RlYWRfbGV0dGVyX3RvcGljInMKKlN1YnNjcmliZVRvcGljRXZlbnRzUmVxdWVzdFByb2Nlc3NlZEFscGhhMRIKCgJpZBgBIAEoCRI5CgZzdGF0dXMYAiABKAsyKS5kYXByLnByb3RvLnJ1bnRpbWUudjEuVG9waWNFdmVudFJlc3BvbnNlIu0BCiJTdWJzY3JpYmVUb3BpY0V2ZW50c1Jlc3BvbnNlQWxwaGExElwKEGluaXRpYWxfcmVzcG9uc2UYASABKAsyQC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3Vic2NyaWJlVG9waWNFdmVudHNSZXNwb25zZUluaXRpYWxBbHBoYTFIABJBCg1ldmVudF9tZXNzYWdlGAIgASgLMiguZGFwci5wcm90by5ydW50aW1lLnYxLlRvcGljRXZlbnRSZXF1ZXN0SABCJgokc3Vic2NyaWJlX3RvcGljX2V2ZW50c19yZXNwb25zZV90eXBlIisKKVN1YnNjcmliZVRvcGljRXZlbnRzUmVzcG9uc2VJbml0aWFsQWxwaGExIsMBChRJbnZva2VCaW5kaW5nUmVxdWVzdBIMCgRuYW1lGAEgASgJEgwKBGRhdGEYAiABKAwSSwoIbWV0YWRhdGEYAyADKAsyOS5kYXByLnByb3RvLnJ1bnRpbWUudjEuSW52b2tlQmluZGluZ1JlcXVlc3QuTWV0YWRhdGFFbnRyeRIRCglvcGVyYXRpb24YBCABKAkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIqQBChVJbnZva2VCaW5kaW5nUmVzcG9uc2USDAoEZGF0YRgBIAEoDBJMCghtZXRhZGF0YRgCIAMoCzI6LmRhcHIucHJvdG8ucnVudGltZS52MS5JbnZva2VCaW5kaW5nUmVzcG9uc2UuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEirQEKEEdldFNlY3JldFJlcXVlc3QSEgoKc3RvcmVfbmFtZRgBIAEoCRILCgNrZXkYAiABKAkSRwoIbWV0YWRhdGEYAyADKAsyNS5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0U2VjcmV0UmVxdWVzdC5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASKCAQoRR2V0U2VjcmV0UmVzcG9uc2USQAoEZGF0YRgBIAMoCzIyLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRTZWNyZXRSZXNwb25zZS5EYXRhRW50cnkaKwoJRGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiqAEKFEdldEJ1bGtTZWNyZXRSZXF1ZXN0EhIKCnN0b3JlX25hbWUYASABKAkSSwoIbWV0YWRhdGEYAiADKAsyOS5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0QnVsa1NlY3JldFJlcXVlc3QuTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEihQEKDlNlY3JldFJlc3BvbnNlEkMKB3NlY3JldHMYASADKAsyMi5kYXByLnByb3RvLnJ1bnRpbWUudjEuU2VjcmV0UmVzcG9uc2UuU2VjcmV0c0VudHJ5Gi4KDFNlY3JldHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIrEBChVHZXRCdWxrU2VjcmV0UmVzcG9uc2USRAoEZGF0YRgBIAMoCzI2LmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRCdWxrU2VjcmV0UmVzcG9uc2UuRGF0YUVudHJ5GlIKCURhdGFFbnRyeRILCgNrZXkYASABKAkSNAoFdmFsdWUYAiABKAsyJS5kYXByLnByb3RvLnJ1bnRpbWUudjEuU2VjcmV0UmVzcG9uc2U6AjgBImYKG1RyYW5zYWN0aW9uYWxTdGF0ZU9wZXJhdGlvbhIVCg1vcGVyYXRpb25UeXBlGAEgASgJEjAKB3JlcXVlc3QYAiABKAsyHy5kYXByLnByb3RvLmNvbW1vbi52MS5TdGF0ZUl0ZW0igwIKHkV4ZWN1dGVTdGF0ZVRyYW5zYWN0aW9uUmVxdWVzdBIRCglzdG9yZU5hbWUYASABKAkSRgoKb3BlcmF0aW9ucxgCIAMoCzIyLmRhcHIucHJvdG8ucnVudGltZS52MS5UcmFuc2FjdGlvbmFsU3RhdGVPcGVyYXRpb24SVQoIbWV0YWRhdGEYAyADKAsyQy5kYXByLnByb3RvLnJ1bnRpbWUudjEuRXhlY3V0ZVN0YXRlVHJhbnNhY3Rpb25SZXF1ZXN0Lk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIp4BChlSZWdpc3RlckFjdG9yVGltZXJSZXF1ZXN0EhIKCmFjdG9yX3R5cGUYASABKAkSEAoIYWN0b3JfaWQYAiABKAkSDAoEbmFtZRgDIAEoCRIQCghkdWVfdGltZRgEIAEoCRIOCgZwZXJpb2QYBSABKAkSEAoIY2FsbGJhY2sYBiABKAkSDAoEZGF0YRgHIAEoDBILCgN0dGwYCCABKAkiUQobVW5yZWdpc3RlckFjdG9yVGltZXJSZXF1ZXN0EhIKCmFjdG9yX3R5cGUYASABKAkSEAoIYWN0b3JfaWQYAiABKAkSDAoEbmFtZRgDIAEoCSKPAQocUmVnaXN0ZXJBY3RvclJlbWluZGVyUmVxdWVzdBISCgphY3Rvcl90eXBlGAEgASgJEhAKCGFjdG9yX2lkGAIgASgJEgwKBG5hbWUYAyABKAkSEAoIZHVlX3RpbWUYBCABKAkSDgoGcGVyaW9kGAUgASgJEgwKBGRhdGEYBiABKAwSCwoDdHRsGAcgASgJIlQKHlVucmVnaXN0ZXJBY3RvclJlbWluZGVyUmVxdWVzdBISCgphY3Rvcl90eXBlGAEgASgJEhAKCGFjdG9yX2lkGAIgASgJEgwKBG5hbWUYAyABKAkiSQoUR2V0QWN0b3JTdGF0ZVJlcXVlc3QSEgoKYWN0b3JfdHlwZRgBIAEoCRIQCghhY3Rvcl9pZBgCIAEoCRILCgNrZXkYAyABKAkipAEKFUdldEFjdG9yU3RhdGVSZXNwb25zZRIMCgRkYXRhGAEgASgMEkwKCG1ldGFkYXRhGAIgAygLMjouZGFwci5wcm90by5ydW50aW1lLnYxLkdldEFjdG9yU3RhdGVSZXNwb25zZS5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASKYAQojRXhlY3V0ZUFjdG9yU3RhdGVUcmFuc2FjdGlvblJlcXVlc3QSEgoKYWN0b3JfdHlwZRgBIAEoCRIQCghhY3Rvcl9pZBgCIAEoCRJLCgpvcGVyYXRpb25zGAMgAygLMjcuZGFwci5wcm90by5ydW50aW1lLnYxLlRyYW5zYWN0aW9uYWxBY3RvclN0YXRlT3BlcmF0aW9uIvUBCiBUcmFuc2FjdGlvbmFsQWN0b3JTdGF0ZU9wZXJhdGlvbhIVCg1vcGVyYXRpb25UeXBlGAEgASgJEgsKA2tleRgCIAEoCRIjCgV2YWx1ZRgDIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSVwoIbWV0YWRhdGEYBCADKAsyRS5kYXByLnByb3RvLnJ1bnRpbWUudjEuVHJhbnNhY3Rpb25hbEFjdG9yU3RhdGVPcGVyYXRpb24uTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEi1AEKEkludm9rZUFjdG9yUmVxdWVzdBISCgphY3Rvcl90eXBlGAEgASgJEhAKCGFjdG9yX2lkGAIgASgJEg4KBm1ldGhvZBgDIAEoCRIMCgRkYXRhGAQgASgMEkkKCG1ldGFkYXRhGAUgAygLMjcuZGFwci5wcm90by5ydW50aW1lLnYxLkludm9rZUFjdG9yUmVxdWVzdC5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASIjChNJbnZva2VBY3RvclJlc3BvbnNlEgwKBGRhdGEYASABKAwiFAoSR2V0TWV0YWRhdGFSZXF1ZXN0ItUGChNHZXRNZXRhZGF0YVJlc3BvbnNlEgoKAmlkGAEgASgJElEKE2FjdGl2ZV9hY3RvcnNfY291bnQYAiADKAsyKC5kYXByLnByb3RvLnJ1bnRpbWUudjEuQWN0aXZlQWN0b3JzQ291bnRCAhgBUgZhY3RvcnMSVgoVcmVnaXN0ZXJlZF9jb21wb25lbnRzGAMgAygLMisuZGFwci5wcm90by5ydW50aW1lLnYxLlJlZ2lzdGVyZWRDb21wb25lbnRzUgpjb21wb25lbnRzEmUKEWV4dGVuZGVkX21ldGFkYXRhGAQgAygLMkAuZGFwci5wcm90by5ydW50aW1lLnYxLkdldE1ldGFkYXRhUmVzcG9uc2UuRXh0ZW5kZWRNZXRhZGF0YUVudHJ5UghleHRlbmRlZBJACg1zdWJzY3JpcHRpb25zGAUgAygLMikuZGFwci5wcm90by5ydW50aW1lLnYxLlB1YnN1YlN1YnNjcmlwdGlvbhJDCg5odHRwX2VuZHBvaW50cxgGIAMoCzIrLmRhcHIucHJvdG8ucnVudGltZS52MS5NZXRhZGF0YUhUVFBFbmRwb2ludBJRChlhcHBfY29ubmVjdGlvbl9wcm9wZXJ0aWVzGAcgASgLMi4uZGFwci5wcm90by5ydW50aW1lLnYxLkFwcENvbm5lY3Rpb25Qcm9wZXJ0aWVzEhcKD3J1bnRpbWVfdmVyc2lvbhgIIAEoCRIYChBlbmFibGVkX2ZlYXR1cmVzGAkgAygJEjoKDWFjdG9yX3J1bnRpbWUYCiABKAsyIy5kYXByLnByb3RvLnJ1bnRpbWUudjEuQWN0b3JSdW50aW1lEkAKCXNjaGVkdWxlchgLIAEoCzIoLmRhcHIucHJvdG8ucnVudGltZS52MS5NZXRhZGF0YVNjaGVkdWxlckgAiAEBEkAKCXdvcmtmbG93cxgMIAEoCzIoLmRhcHIucHJvdG8ucnVudGltZS52MS5NZXRhZGF0YVdvcmtmbG93c0gBiAEBGjcKFUV4dGVuZGVkTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBQgwKCl9zY2hlZHVsZXJCDAoKX3dvcmtmbG93cyIuChFNZXRhZGF0YVdvcmtmbG93cxIZChFjb25uZWN0ZWRfd29ya2VycxgBIAEoBSIwChFNZXRhZGF0YVNjaGVkdWxlchIbChNjb25uZWN0ZWRfYWRkcmVzc2VzGAEgAygJIokCCgxBY3RvclJ1bnRpbWUSTgoOcnVudGltZV9zdGF0dXMYASABKA4yNi5kYXByLnByb3RvLnJ1bnRpbWUudjEuQWN0b3JSdW50aW1lLkFjdG9yUnVudGltZVN0YXR1cxI/Cg1hY3RpdmVfYWN0b3JzGAIgAygLMiguZGFwci5wcm90by5ydW50aW1lLnYxLkFjdGl2ZUFjdG9yc0NvdW50EhIKCmhvc3RfcmVhZHkYAyABKAgSEQoJcGxhY2VtZW50GAQgASgJIkEKEkFjdG9yUnVudGltZVN0YXR1cxIQCgxJTklUSUFMSVpJTkcQABIMCghESVNBQkxFRBABEgsKB1JVTk5JTkcQAiIwChFBY3RpdmVBY3RvcnNDb3VudBIMCgR0eXBlGAEgASgJEg0KBWNvdW50GAIgASgFIlkKFFJlZ2lzdGVyZWRDb21wb25lbnRzEgwKBG5hbWUYASABKAkSDAoEdHlwZRgCIAEoCRIPCgd2ZXJzaW9uGAMgASgJEhQKDGNhcGFiaWxpdGllcxgEIAMoCSIkChRNZXRhZGF0YUhUVFBFbmRwb2ludBIMCgRuYW1lGAEgASgJIrEBChdBcHBDb25uZWN0aW9uUHJvcGVydGllcxIMCgRwb3J0GAEgASgFEhAKCHByb3RvY29sGAIgASgJEhcKD2NoYW5uZWxfYWRkcmVzcxgDIAEoCRIXCg9tYXhfY29uY3VycmVuY3kYBCABKAUSRAoGaGVhbHRoGAUgASgLMjQuZGFwci5wcm90by5ydW50aW1lLnYxLkFwcENvbm5lY3Rpb25IZWFsdGhQcm9wZXJ0aWVzIpEBCh1BcHBDb25uZWN0aW9uSGVhbHRoUHJvcGVydGllcxIZChFoZWFsdGhfY2hlY2tfcGF0aBgBIAEoCRIdChVoZWFsdGhfcHJvYmVfaW50ZXJ2YWwYAiABKAkSHAoUaGVhbHRoX3Byb2JlX3RpbWVvdXQYAyABKAkSGAoQaGVhbHRoX3RocmVzaG9sZBgEIAEoBSLXAgoSUHVic3ViU3Vic2NyaXB0aW9uEh8KC3B1YnN1Yl9uYW1lGAEgASgJUgpwdWJzdWJuYW1lEg0KBXRvcGljGAIgASgJEkkKCG1ldGFkYXRhGAMgAygLMjcuZGFwci5wcm90by5ydW50aW1lLnYxLlB1YnN1YlN1YnNjcmlwdGlvbi5NZXRhZGF0YUVudHJ5Ej0KBXJ1bGVzGAQgASgLMi4uZGFwci5wcm90by5ydW50aW1lLnYxLlB1YnN1YlN1YnNjcmlwdGlvblJ1bGVzEhkKEWRlYWRfbGV0dGVyX3RvcGljGAUgASgJEjsKBHR5cGUYBiABKA4yLS5kYXByLnByb3RvLnJ1bnRpbWUudjEuUHVic3ViU3Vic2NyaXB0aW9uVHlwZRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiVwoXUHVic3ViU3Vic2NyaXB0aW9uUnVsZXMSPAoFcnVsZXMYASADKAsyLS5kYXByLnByb3RvLnJ1bnRpbWUudjEuUHVic3ViU3Vic2NyaXB0aW9uUnVsZSI1ChZQdWJzdWJTdWJzY3JpcHRpb25SdWxlEg0KBW1hdGNoGAEgASgJEgwKBHBhdGgYAiABKAkiMAoSU2V0TWV0YWRhdGFSZXF1ZXN0EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCSK8AQoXR2V0Q29uZmlndXJhdGlvblJlcXVlc3QSEgoKc3RvcmVfbmFtZRgBIAEoCRIMCgRrZXlzGAIgAygJEk4KCG1ldGFkYXRhGAMgAygLMjwuZGFwci5wcm90by5ydW50aW1lLnYxLkdldENvbmZpZ3VyYXRpb25SZXF1ZXN0Lk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIrwBChhHZXRDb25maWd1cmF0aW9uUmVzcG9uc2USSQoFaXRlbXMYASADKAsyOi5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0Q29uZmlndXJhdGlvblJlc3BvbnNlLkl0ZW1zRW50cnkaVQoKSXRlbXNFbnRyeRILCgNrZXkYASABKAkSNgoFdmFsdWUYAiABKAsyJy5kYXByLnByb3RvLmNvbW1vbi52MS5Db25maWd1cmF0aW9uSXRlbToCOAEiyAEKHVN1YnNjcmliZUNvbmZpZ3VyYXRpb25SZXF1ZXN0EhIKCnN0b3JlX25hbWUYASABKAkSDAoEa2V5cxgCIAMoCRJUCghtZXRhZGF0YRgDIAMoCzJCLmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJzY3JpYmVDb25maWd1cmF0aW9uUmVxdWVzdC5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJBCh9VbnN1YnNjcmliZUNvbmZpZ3VyYXRpb25SZXF1ZXN0EhIKCnN0b3JlX25hbWUYASABKAkSCgoCaWQYAiABKAki1AEKHlN1YnNjcmliZUNvbmZpZ3VyYXRpb25SZXNwb25zZRIKCgJpZBgBIAEoCRJPCgVpdGVtcxgCIAMoCzJALmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJzY3JpYmVDb25maWd1cmF0aW9uUmVzcG9uc2UuSXRlbXNFbnRyeRpVCgpJdGVtc0VudHJ5EgsKA2tleRgBIAEoCRI2CgV2YWx1ZRgCIAEoCzInLmRhcHIucHJvdG8uY29tbW9uLnYxLkNvbmZpZ3VyYXRpb25JdGVtOgI4ASI/CiBVbnN1YnNjcmliZUNvbmZpZ3VyYXRpb25SZXNwb25zZRIKCgJvaxgBIAEoCBIPCgdtZXNzYWdlGAIgASgJImgKDlRyeUxvY2tSZXF1ZXN0EhIKCnN0b3JlX25hbWUYASABKAkSEwoLcmVzb3VyY2VfaWQYAiABKAkSEgoKbG9ja19vd25lchgDIAEoCRIZChFleHBpcnlfaW5fc2Vjb25kcxgEIAEoBSIiCg9UcnlMb2NrUmVzcG9uc2USDwoHc3VjY2VzcxgBIAEoCCJMCg1VbmxvY2tSZXF1ZXN0EhIKCnN0b3JlX25hbWUYASABKAkSEwoLcmVzb3VyY2VfaWQYAiABKAkSEgoKbG9ja19vd25lchgDIAEoCSKuAQoOVW5sb2NrUmVzcG9uc2USPAoGc3RhdHVzGAEgASgOMiwuZGFwci5wcm90by5ydW50aW1lLnYxLlVubG9ja1Jlc3BvbnNlLlN0YXR1cyJeCgZTdGF0dXMSCwoHU1VDQ0VTUxAAEhcKE0xPQ0tfRE9FU19OT1RfRVhJU1QQARIaChZMT0NLX0JFTE9OR1NfVE9fT1RIRVJTEAISEgoOSU5URVJOQUxfRVJST1IQAyKhAQoTU3VidGxlR2V0S2V5UmVxdWVzdBIWCg5jb21wb25lbnRfbmFtZRgBIAEoCRIMCgRuYW1lGAIgASgJEkQKBmZvcm1hdBgDIAEoDjI0LmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJ0bGVHZXRLZXlSZXF1ZXN0LktleUZvcm1hdCIeCglLZXlGb3JtYXQSBwoDUEVNEAASCAoESlNPThABIjgKFFN1YnRsZUdldEtleVJlc3BvbnNlEgwKBG5hbWUYASABKAkSEgoKcHVibGljX2tleRgCIAEoCSKOAQoUU3VidGxlRW5jcnlwdFJlcXVlc3QSFgoOY29tcG9uZW50X25hbWUYASABKAkSEQoJcGxhaW50ZXh0GAIgASgMEhEKCWFsZ29yaXRobRgDIAEoCRIQCghrZXlfbmFtZRgEIAEoCRINCgVub25jZRgFIAEoDBIXCg9hc3NvY2lhdGVkX2RhdGEYBiABKAwiOAoVU3VidGxlRW5jcnlwdFJlc3BvbnNlEhIKCmNpcGhlcnRleHQYASABKAwSCwoDdGFnGAIgASgMIpwBChRTdWJ0bGVEZWNyeXB0UmVxdWVzdBIWCg5jb21wb25lbnRfbmFtZRgBIAEoCRISCgpjaXBoZXJ0ZXh0GAIgASgMEhEKCWFsZ29yaXRobRgDIAEoCRIQCghrZXlfbmFtZRgEIAEoCRINCgVub25jZRgFIAEoDBILCgN0YWcYBiABKAwSFwoPYXNzb2NpYXRlZF9kYXRhGAcgASgMIioKFVN1YnRsZURlY3J5cHRSZXNwb25zZRIRCglwbGFpbnRleHQYASABKAwikgEKFFN1YnRsZVdyYXBLZXlSZXF1ZXN0EhYKDmNvbXBvbmVudF9uYW1lGAEgASgJEhUKDXBsYWludGV4dF9rZXkYAiABKAwSEQoJYWxnb3JpdGhtGAMgASgJEhAKCGtleV9uYW1lGAQgASgJEg0KBW5vbmNlGAUgASgMEhcKD2Fzc29jaWF0ZWRfZGF0YRgGIAEoDCI5ChVTdWJ0bGVXcmFwS2V5UmVzcG9uc2USEwoLd3JhcHBlZF9rZXkYASABKAwSCwoDdGFnGAIgASgMIp8BChZTdWJ0bGVVbndyYXBLZXlSZXF1ZXN0EhYKDmNvbXBvbmVudF9uYW1lGAEgASgJEhMKC3dyYXBwZWRfa2V5GAIgASgMEhEKCWFsZ29yaXRobRgDIAEoCRIQCghrZXlfbmFtZRgEIAEoCRINCgVub25jZRgFIAEoDBILCgN0YWcYBiABKAwSFwoPYXNzb2NpYXRlZF9kYXRhGAcgASgMIjAKF1N1YnRsZVVud3JhcEtleVJlc3BvbnNlEhUKDXBsYWludGV4dF9rZXkYASABKAwiYAoRU3VidGxlU2lnblJlcXVlc3QSFgoOY29tcG9uZW50X25hbWUYASABKAkSDgoGZGlnZXN0GAIgASgMEhEKCWFsZ29yaXRobRgDIAEoCRIQCghrZXlfbmFtZRgEIAEoCSInChJTdWJ0bGVTaWduUmVzcG9uc2USEQoJc2lnbmF0dXJlGAEgASgMInUKE1N1YnRsZVZlcmlmeVJlcXVlc3QSFgoOY29tcG9uZW50X25hbWUYASABKAkSDgoGZGlnZXN0GAIgASgMEhEKCWFsZ29yaXRobRgDIAEoCRIQCghrZXlfbmFtZRgEIAEoCRIRCglzaWduYXR1cmUYBSABKAwiJQoUU3VidGxlVmVyaWZ5UmVzcG9uc2USDQoFdmFsaWQYASABKAgihQEKDkVuY3J5cHRSZXF1ZXN0Ej0KB29wdGlvbnMYASABKAsyLC5kYXByLnByb3RvLnJ1bnRpbWUudjEuRW5jcnlwdFJlcXVlc3RPcHRpb25zEjQKB3BheWxvYWQYAiABKAsyIy5kYXByLnByb3RvLmNvbW1vbi52MS5TdHJlYW1QYXlsb2FkIrwBChVFbmNyeXB0UmVxdWVzdE9wdGlvbnMSFgoOY29tcG9uZW50X25hbWUYASABKAkSEAoIa2V5X25hbWUYAiABKAkSGgoSa2V5X3dyYXBfYWxnb3JpdGhtGAMgASgJEh4KFmRhdGFfZW5jcnlwdGlvbl9jaXBoZXIYCiABKAkSIAoYb21pdF9kZWNyeXB0aW9uX2tleV9uYW1lGAsgASgIEhsKE2RlY3J5cHRpb25fa2V5X25hbWUYDCABKAkiRwoPRW5jcnlwdFJlc3BvbnNlEjQKB3BheWxvYWQYASABKAsyIy5kYXByLnByb3RvLmNvbW1vbi52MS5TdHJlYW1QYXlsb2FkIoUBCg5EZWNyeXB0UmVxdWVzdBI9CgdvcHRpb25zGAEgASgLMiwuZGFwci5wcm90by5ydW50aW1lLnYxLkRlY3J5cHRSZXF1ZXN0T3B0aW9ucxI0CgdwYXlsb2FkGAIgASgLMiMuZGFwci5wcm90by5jb21tb24udjEuU3RyZWFtUGF5bG9hZCJBChVEZWNyeXB0UmVxdWVzdE9wdGlvbnMSFgoOY29tcG9uZW50X25hbWUYASABKAkSEAoIa2V5X25hbWUYDCABKAkiRwoPRGVjcnlwdFJlc3BvbnNlEjQKB3BheWxvYWQYASABKAsyIy5kYXByLnByb3RvLmNvbW1vbi52MS5TdHJlYW1QYXlsb2FkIlEKEkdldFdvcmtmbG93UmVxdWVzdBIfCgtpbnN0YW5jZV9pZBgBIAEoCVIKaW5zdGFuY2VJRBIaChJ3b3JrZmxvd19jb21wb25lbnQYAiABKAkizQIKE0dldFdvcmtmbG93UmVzcG9uc2USHwoLaW5zdGFuY2VfaWQYASABKAlSCmluc3RhbmNlSUQSFQoNd29ya2Zsb3dfbmFtZRgCIAEoCRIuCgpjcmVhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIzCg9sYXN0X3VwZGF0ZWRfYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhYKDnJ1bnRpbWVfc3RhdHVzGAUgASgJEk4KCnByb3BlcnRpZXMYBiADKAsyOi5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0V29ya2Zsb3dSZXNwb25zZS5Qcm9wZXJ0aWVzRW50cnkaMQoPUHJvcGVydGllc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEi9AEKFFN0YXJ0V29ya2Zsb3dSZXF1ZXN0Eh8KC2luc3RhbmNlX2lkGAEgASgJUgppbnN0YW5jZUlEEhoKEndvcmtmbG93X2NvbXBvbmVudBgCIAEoCRIVCg13b3JrZmxvd19uYW1lGAMgASgJEkkKB29wdGlvbnMYBCADKAsyOC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3RhcnRXb3JrZmxvd1JlcXVlc3QuT3B0aW9uc0VudHJ5Eg0KBWlucHV0GAUgASgMGi4KDE9wdGlvbnNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIjgKFVN0YXJ0V29ya2Zsb3dSZXNwb25zZRIfCgtpbnN0YW5jZV9pZBgBIAEoCVIKaW5zdGFuY2VJRCJXChhUZXJtaW5hdGVXb3JrZmxvd1JlcXVlc3QSHwoLaW5zdGFuY2VfaWQYASABKAlSCmluc3RhbmNlSUQSGgoSd29ya2Zsb3dfY29tcG9uZW50GAIgASgJIlMKFFBhdXNlV29ya2Zsb3dSZXF1ZXN0Eh8KC2luc3RhbmNlX2lkGAEgASgJUgppbnN0YW5jZUlEEhoKEndvcmtmbG93X2NvbXBvbmVudBgCIAEoCSJUChVSZXN1bWVXb3JrZmxvd1JlcXVlc3QSHwoLaW5zdGFuY2VfaWQYASABKAlSCmluc3RhbmNlSUQSGgoSd29ya2Zsb3dfY29tcG9uZW50GAIgASgJIoABChlSYWlzZUV2ZW50V29ya2Zsb3dSZXF1ZXN0Eh8KC2luc3RhbmNlX2lkGAEgASgJUgppbnN0YW5jZUlEEhoKEndvcmtmbG93X2NvbXBvbmVudBgCIAEoCRISCgpldmVudF9uYW1lGAMgASgJEhIKCmV2ZW50X2RhdGEYBCABKAwiUwoUUHVyZ2VXb3JrZmxvd1JlcXVlc3QSHwoLaW5zdGFuY2VfaWQYASABKAlSCmluc3RhbmNlSUQSGgoSd29ya2Zsb3dfY29tcG9uZW50GAIgASgJIhEKD1NodXRkb3duUmVxdWVzdCKTAgoDSm9iEgwKBG5hbWUYASABKAkSFQoIc2NoZWR1bGUYAiABKAlIAIgBARIUCgdyZXBlYXRzGAMgASgNSAGIAQESFQoIZHVlX3RpbWUYBCABKAlIAogBARIQCgN0dGwYBSABKAlIA4gBARIiCgRkYXRhGAYgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueRJDCg5mYWlsdXJlX3BvbGljeRgHIAEoCzImLmRhcHIucHJvdG8uY29tbW9uLnYxLkpvYkZhaWx1cmVQb2xpY3lIBIgBAUILCglfc2NoZWR1bGVCCgoIX3JlcGVhdHNCCwoJX2R1ZV90aW1lQgYKBF90dGxCEQoPX2ZhaWx1cmVfcG9saWN5IlAKElNjaGVkdWxlSm9iUmVxdWVzdBInCgNqb2IYASABKAsyGi5kYXByLnByb3RvLnJ1bnRpbWUudjEuSm9iEhEKCW92ZXJ3cml0ZRgCIAEoCCIVChNTY2hlZHVsZUpvYlJlc3BvbnNlIh0KDUdldEpvYlJlcXVlc3QSDAoEbmFtZRgBIAEoCSI5Cg5HZXRKb2JSZXNwb25zZRInCgNqb2IYASABKAsyGi5kYXByLnByb3RvLnJ1bnRpbWUudjEuSm9iIiAKEERlbGV0ZUpvYlJlcXVlc3QSDAoEbmFtZRgBIAEoCSITChFEZWxldGVKb2JSZXNwb25zZSLrAwoTQ29udmVyc2F0aW9uUmVxdWVzdBIMCgRuYW1lGAEgASgJEhYKCWNvbnRleHRJRBgCIAEoCUgAiAEBEjgKBmlucHV0cxgDIAMoCzIoLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25JbnB1dBJOCgpwYXJhbWV0ZXJzGAQgAygLMjouZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblJlcXVlc3QuUGFyYW1ldGVyc0VudHJ5EkoKCG1ldGFkYXRhGAUgAygLMjguZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblJlcXVlc3QuTWV0YWRhdGFFbnRyeRIVCghzY3J1YlBJSRgGIAEoCEgBiAEBEhgKC3RlbXBlcmF0dXJlGAcgASgBSAKIAQEaRwoPUGFyYW1ldGVyc0VudHJ5EgsKA2tleRgBIAEoCRIjCgV2YWx1ZRgCIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5Bbnk6AjgBGi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AToCGAFCDAoKX2NvbnRleHRJREILCglfc2NydWJQSUlCDgoMX3RlbXBlcmF0dXJlIuYEChlDb252ZXJzYXRpb25SZXF1ZXN0QWxwaGEyEgwKBG5hbWUYASABKAkSFwoKY29udGV4dF9pZBgCIAEoCUgAiAEBEj4KBmlucHV0cxgDIAMoCzIuLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25JbnB1dEFscGhhMhJUCgpwYXJhbWV0ZXJzGAQgAygLMkAuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblJlcXVlc3RBbHBoYTIuUGFyYW1ldGVyc0VudHJ5ElAKCG1ldGFkYXRhGAUgAygLMj4uZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblJlcXVlc3RBbHBoYTIuTWV0YWRhdGFFbnRyeRIWCglzY3J1Yl9waWkYBiABKAhIAYgBARIYCgt0ZW1wZXJhdHVyZRgHIAEoAUgCiAEBEjcKBXRvb2xzGAggAygLMiguZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblRvb2xzEhgKC3Rvb2xfY2hvaWNlGAkgASgJSAOIAQEaRwoPUGFyYW1ldGVyc0VudHJ5EgsKA2tleRgBIAEoCRIjCgV2YWx1ZRgCIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5Bbnk6AjgBGi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUINCgtfY29udGV4dF9pZEIMCgpfc2NydWJfcGlpQg4KDF90ZW1wZXJhdHVyZUIOCgxfdG9vbF9jaG9pY2UiaAoRQ29udmVyc2F0aW9uSW5wdXQSDwoHY29udGVudBgBIAEoCRIRCgRyb2xlGAIgASgJSACIAQESFQoIc2NydWJQSUkYAyABKAhIAYgBAToCGAFCBwoFX3JvbGVCCwoJX3NjcnViUElJIn0KF0NvbnZlcnNhdGlvbklucHV0QWxwaGEyEjwKCG1lc3NhZ2VzGAEgAygLMiouZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvbk1lc3NhZ2USFgoJc2NydWJfcGlpGAIgASgISACIAQFCDAoKX3NjcnViX3BpaSKXAwoTQ29udmVyc2F0aW9uTWVzc2FnZRJNCgxvZl9kZXZlbG9wZXIYASABKAsyNS5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uTWVzc2FnZU9mRGV2ZWxvcGVySAASRwoJb2Zfc3lzdGVtGAIgASgLMjIuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvbk1lc3NhZ2VPZlN5c3RlbUgAEkMKB29mX3VzZXIYAyABKAsyMC5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uTWVzc2FnZU9mVXNlckgAEk0KDG9mX2Fzc2lzdGFudBgEIAEoCzI1LmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25NZXNzYWdlT2ZBc3Npc3RhbnRIABJDCgdvZl90b29sGAUgASgLMjAuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvbk1lc3NhZ2VPZlRvb2xIAEIPCg1tZXNzYWdlX3R5cGVzIoABCh5Db252ZXJzYXRpb25NZXNzYWdlT2ZEZXZlbG9wZXISEQoEbmFtZRgBIAEoCUgAiAEBEkIKB2NvbnRlbnQYAiADKAsyMS5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uTWVzc2FnZUNvbnRlbnRCBwoFX25hbWUifQobQ29udmVyc2F0aW9uTWVzc2FnZU9mU3lzdGVtEhEKBG5hbWUYASABKAlIAIgBARJCCgdjb250ZW50GAIgAygLMjEuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvbk1lc3NhZ2VDb250ZW50QgcKBV9uYW1lInsKGUNvbnZlcnNhdGlvbk1lc3NhZ2VPZlVzZXISEQoEbmFtZRgBIAEoCUgAiAEBEkIKB2NvbnRlbnQYAiADKAsyMS5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uTWVzc2FnZUNvbnRlbnRCBwoFX25hbWUiwgEKHkNvbnZlcnNhdGlvbk1lc3NhZ2VPZkFzc2lzdGFudBIRCgRuYW1lGAEgASgJSACIAQESQgoHY29udGVudBgCIAMoCzIxLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25NZXNzYWdlQ29udGVudBJACgp0b29sX2NhbGxzGAMgAygLMiwuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblRvb2xDYWxsc0IHCgVfbmFtZSKPAQoZQ29udmVyc2F0aW9uTWVzc2FnZU9mVG9vbBIUCgd0b29sX2lkGAEgASgJSACIAQESDAoEbmFtZRgCIAEoCRJCCgdjb250ZW50GAMgAygLMjEuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvbk1lc3NhZ2VDb250ZW50QgoKCF90b29sX2lkIokBChVDb252ZXJzYXRpb25Ub29sQ2FsbHMSDwoCaWQYASABKAlIAYgBARJKCghmdW5jdGlvbhgCIAEoCzI2LmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25Ub29sQ2FsbHNPZkZ1bmN0aW9uSABCDAoKdG9vbF90eXBlc0IFCgNfaWQiQgofQ29udmVyc2F0aW9uVG9vbENhbGxzT2ZGdW5jdGlvbhIMCgRuYW1lGAEgASgJEhEKCWFyZ3VtZW50cxgCIAEoCSIqChpDb252ZXJzYXRpb25NZXNzYWdlQ29udGVudBIMCgR0ZXh0GAEgASgJIsABChJDb252ZXJzYXRpb25SZXN1bHQSDgoGcmVzdWx0GAEgASgJEk0KCnBhcmFtZXRlcnMYAiADKAsyOS5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uUmVzdWx0LlBhcmFtZXRlcnNFbnRyeRpHCg9QYXJhbWV0ZXJzRW50cnkSCwoDa2V5GAEgASgJEiMKBXZhbHVlGAIgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueToCOAE6AhgBIl0KGENvbnZlcnNhdGlvblJlc3VsdEFscGhhMhJBCgdjaG9pY2VzGAEgAygLMjAuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblJlc3VsdENob2ljZXMihAEKGUNvbnZlcnNhdGlvblJlc3VsdENob2ljZXMSFQoNZmluaXNoX3JlYXNvbhgBIAEoCRINCgVpbmRleBgCIAEoAxJBCgdtZXNzYWdlGAMgASgLMjAuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblJlc3VsdE1lc3NhZ2UibgoZQ29udmVyc2F0aW9uUmVzdWx0TWVzc2FnZRIPCgdjb250ZW50GAEgASgJEkAKCnRvb2xfY2FsbHMYAiADKAsyLC5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uVG9vbENhbGxzInwKFENvbnZlcnNhdGlvblJlc3BvbnNlEhYKCWNvbnRleHRJRBgBIAEoCUgAiAEBEjoKB291dHB1dHMYAiADKAsyKS5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uUmVzdWx0OgIYAUIMCgpfY29udGV4dElEIoYBChpDb252ZXJzYXRpb25SZXNwb25zZUFscGhhMhIXCgpjb250ZXh0X2lkGAEgASgJSACIAQESQAoHb3V0cHV0cxgCIAMoCzIvLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25SZXN1bHRBbHBoYTJCDQoLX2NvbnRleHRfaWQiZwoRQ29udmVyc2F0aW9uVG9vbHMSRAoIZnVuY3Rpb24YASABKAsyMC5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uVG9vbHNGdW5jdGlvbkgAQgwKCnRvb2xfdHlwZXMigAEKGUNvbnZlcnNhdGlvblRvb2xzRnVuY3Rpb24SDAoEbmFtZRgBIAEoCRIYCgtkZXNjcmlwdGlvbhgCIAEoCUgAiAEBEisKCnBhcmFtZXRlcnMYAyABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0Qg4KDF9kZXNjcmlwdGlvbipXChZQdWJzdWJTdWJzY3JpcHRpb25UeXBlEgsKB1VOS05PV04QABIPCgtERUNMQVJBVElWRRABEhAKDFBST0dSQU1NQVRJQxACEg0KCVNUUkVBTUlORxADMrcyCgREYXByEmQKDUludm9rZVNlcnZpY2USKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuSW52b2tlU2VydmljZVJlcXVlc3QaJC5kYXByLnByb3RvLmNvbW1vbi52MS5JbnZva2VSZXNwb25zZSIAEl0KCEdldFN0YXRlEiYuZGFwci5wcm90by5ydW50aW1lLnYxLkdldFN0YXRlUmVxdWVzdBonLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRTdGF0ZVJlc3BvbnNlIgASaQoMR2V0QnVsa1N0YXRlEiouZGFwci5wcm90by5ydW50aW1lLnYxLkdldEJ1bGtTdGF0ZVJlcXVlc3QaKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0QnVsa1N0YXRlUmVzcG9uc2UiABJOCglTYXZlU3RhdGUSJy5kYXByLnByb3RvLnJ1bnRpbWUudjEuU2F2ZVN0YXRlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEmkKEFF1ZXJ5U3RhdGVBbHBoYTESKC5kYXByLnByb3RvLnJ1bnRpbWUudjEuUXVlcnlTdGF0ZVJlcXVlc3QaKS5kYXByLnByb3RvLnJ1bnRpbWUudjEuUXVlcnlTdGF0ZVJlc3BvbnNlIgASUgoLRGVsZXRlU3RhdGUSKS5kYXByLnByb3RvLnJ1bnRpbWUudjEuRGVsZXRlU3RhdGVSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASWgoPRGVsZXRlQnVsa1N0YXRlEi0uZGFwci5wcm90by5ydW50aW1lLnYxLkRlbGV0ZUJ1bGtTdGF0ZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJqChdFeGVjdXRlU3RhdGVUcmFuc2FjdGlvbhI1LmRhcHIucHJvdG8ucnVudGltZS52MS5FeGVjdXRlU3RhdGVUcmFuc2FjdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJUCgxQdWJsaXNoRXZlbnQSKi5kYXByLnByb3RvLnJ1bnRpbWUudjEuUHVibGlzaEV2ZW50UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEnEKFkJ1bGtQdWJsaXNoRXZlbnRBbHBoYTESKS5kYXByLnByb3RvLnJ1bnRpbWUudjEuQnVsa1B1Ymxpc2hSZXF1ZXN0GiouZGFwci5wcm90by5ydW50aW1lLnYxLkJ1bGtQdWJsaXNoUmVzcG9uc2UiABKXAQoaU3Vic2NyaWJlVG9waWNFdmVudHNBbHBoYTESOC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3Vic2NyaWJlVG9waWNFdmVudHNSZXF1ZXN0QWxwaGExGjkuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnNjcmliZVRvcGljRXZlbnRzUmVzcG9uc2VBbHBoYTEiACgBMAESbAoNSW52b2tlQmluZGluZxIrLmRhcHIucHJvdG8ucnVudGltZS52MS5JbnZva2VCaW5kaW5nUmVxdWVzdBosLmRhcHIucHJvdG8ucnVudGltZS52MS5JbnZva2VCaW5kaW5nUmVzcG9uc2UiABJgCglHZXRTZWNyZXQSJy5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0U2VjcmV0UmVxdWVzdBooLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRTZWNyZXRSZXNwb25zZSIAEmwKDUdldEJ1bGtTZWNyZXQSKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0QnVsa1NlY3JldFJlcXVlc3QaLC5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0QnVsa1NlY3JldFJlc3BvbnNlIgASYAoSUmVnaXN0ZXJBY3RvclRpbWVyEjAuZGFwci5wcm90by5ydW50aW1lLnYxLlJlZ2lzdGVyQWN0b3JUaW1lclJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJkChRVbnJlZ2lzdGVyQWN0b3JUaW1lchIyLmRhcHIucHJvdG8ucnVudGltZS52MS5VbnJlZ2lzdGVyQWN0b3JUaW1lclJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJmChVSZWdpc3RlckFjdG9yUmVtaW5kZXISMy5kYXByLnByb3RvLnJ1bnRpbWUudjEuUmVnaXN0ZXJBY3RvclJlbWluZGVyUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEmoKF1VucmVnaXN0ZXJBY3RvclJlbWluZGVyEjUuZGFwci5wcm90by5ydW50aW1lLnYxLlVucmVnaXN0ZXJBY3RvclJlbWluZGVyUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEmwKDUdldEFjdG9yU3RhdGUSKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0QWN0b3JTdGF0ZVJlcXVlc3QaLC5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0QWN0b3JTdGF0ZVJlc3BvbnNlIgASdAocRXhlY3V0ZUFjdG9yU3RhdGVUcmFuc2FjdGlvbhI6LmRhcHIucHJvdG8ucnVudGltZS52MS5FeGVjdXRlQWN0b3JTdGF0ZVRyYW5zYWN0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEmYKC0ludm9rZUFjdG9yEikuZGFwci5wcm90by5ydW50aW1lLnYxLkludm9rZUFjdG9yUmVxdWVzdBoqLmRhcHIucHJvdG8ucnVudGltZS52MS5JbnZva2VBY3RvclJlc3BvbnNlIgASewoWR2V0Q29uZmlndXJhdGlvbkFscGhhMRIuLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRDb25maWd1cmF0aW9uUmVxdWVzdBovLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRDb25maWd1cmF0aW9uUmVzcG9uc2UiABJ1ChBHZXRDb25maWd1cmF0aW9uEi4uZGFwci5wcm90by5ydW50aW1lLnYxLkdldENvbmZpZ3VyYXRpb25SZXF1ZXN0Gi8uZGFwci5wcm90by5ydW50aW1lLnYxLkdldENvbmZpZ3VyYXRpb25SZXNwb25zZSIAEo8BChxTdWJzY3JpYmVDb25maWd1cmF0aW9uQWxwaGExEjQuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnNjcmliZUNvbmZpZ3VyYXRpb25SZXF1ZXN0GjUuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnNjcmliZUNvbmZpZ3VyYXRpb25SZXNwb25zZSIAMAESiQEKFlN1YnNjcmliZUNvbmZpZ3VyYXRpb24SNC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3Vic2NyaWJlQ29uZmlndXJhdGlvblJlcXVlc3QaNS5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3Vic2NyaWJlQ29uZmlndXJhdGlvblJlc3BvbnNlIgAwARKTAQoeVW5zdWJzY3JpYmVDb25maWd1cmF0aW9uQWxwaGExEjYuZGFwci5wcm90by5ydW50aW1lLnYxLlVuc3Vic2NyaWJlQ29uZmlndXJhdGlvblJlcXVlc3QaNy5kYXByLnByb3RvLnJ1bnRpbWUudjEuVW5zdWJzY3JpYmVDb25maWd1cmF0aW9uUmVzcG9uc2UiABKNAQoYVW5zdWJzY3JpYmVDb25maWd1cmF0aW9uEjYuZGFwci5wcm90by5ydW50aW1lLnYxLlVuc3Vic2NyaWJlQ29uZmlndXJhdGlvblJlcXVlc3QaNy5kYXByLnByb3RvLnJ1bnRpbWUudjEuVW5zdWJzY3JpYmVDb25maWd1cmF0aW9uUmVzcG9uc2UiABJgCg1UcnlMb2NrQWxwaGExEiUuZGFwci5wcm90by5ydW50aW1lLnYxLlRyeUxvY2tSZXF1ZXN0GiYuZGFwci5wcm90by5ydW50aW1lLnYxLlRyeUxvY2tSZXNwb25zZSIAEl0KDFVubG9ja0FscGhhMRIkLmRhcHIucHJvdG8ucnVudGltZS52MS5VbmxvY2tSZXF1ZXN0GiUuZGFwci5wcm90by5ydW50aW1lLnYxLlVubG9ja1Jlc3BvbnNlIgASYgoNRW5jcnlwdEFscGhhMRIlLmRhcHIucHJvdG8ucnVudGltZS52MS5FbmNyeXB0UmVxdWVzdBomLmRhcHIucHJvdG8ucnVudGltZS52MS5FbmNyeXB0UmVzcG9uc2UoATABEmIKDURlY3J5cHRBbHBoYTESJS5kYXByLnByb3RvLnJ1bnRpbWUudjEuRGVjcnlwdFJlcXVlc3QaJi5kYXByLnByb3RvLnJ1bnRpbWUudjEuRGVjcnlwdFJlc3BvbnNlKAEwARJmCgtHZXRNZXRhZGF0YRIpLmRhcHIucHJvdG8ucnVudGltZS52MS5HZXRNZXRhZGF0YVJlcXVlc3QaKi5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0TWV0YWRhdGFSZXNwb25zZSIAElIKC1NldE1ldGFkYXRhEikuZGFwci5wcm90by5ydW50aW1lLnYxLlNldE1ldGFkYXRhUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEm0KElN1YnRsZUdldEtleUFscGhhMRIqLmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJ0bGVHZXRLZXlSZXF1ZXN0GisuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnRsZUdldEtleVJlc3BvbnNlEnAKE1N1YnRsZUVuY3J5cHRBbHBoYTESKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlRW5jcnlwdFJlcXVlc3QaLC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlRW5jcnlwdFJlc3BvbnNlEnAKE1N1YnRsZURlY3J5cHRBbHBoYTESKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlRGVjcnlwdFJlcXVlc3QaLC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlRGVjcnlwdFJlc3BvbnNlEnAKE1N1YnRsZVdyYXBLZXlBbHBoYTESKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlV3JhcEtleVJlcXVlc3QaLC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlV3JhcEtleVJlc3BvbnNlEnYKFVN1YnRsZVVud3JhcEtleUFscGhhMRItLmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJ0bGVVbndyYXBLZXlSZXF1ZXN0Gi4uZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnRsZVVud3JhcEtleVJlc3BvbnNlEmcKEFN1YnRsZVNpZ25BbHBoYTESKC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlU2lnblJlcXVlc3QaKS5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3VidGxlU2lnblJlc3BvbnNlEm0KElN1YnRsZVZlcmlmeUFscGhhMRIqLmRhcHIucHJvdG8ucnVudGltZS52MS5TdWJ0bGVWZXJpZnlSZXF1ZXN0GisuZGFwci5wcm90by5ydW50aW1lLnYxLlN1YnRsZVZlcmlmeVJlc3BvbnNlEnUKE1N0YXJ0V29ya2Zsb3dBbHBoYTESKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3RhcnRXb3JrZmxvd1JlcXVlc3QaLC5kYXByLnByb3RvLnJ1bnRpbWUudjEuU3RhcnRXb3JrZmxvd1Jlc3BvbnNlIgOIAgESbwoRR2V0V29ya2Zsb3dBbHBoYTESKS5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0V29ya2Zsb3dSZXF1ZXN0GiouZGFwci5wcm90by5ydW50aW1lLnYxLkdldFdvcmtmbG93UmVzcG9uc2UiA4gCARJfChNQdXJnZVdvcmtmbG93QWxwaGExEisuZGFwci5wcm90by5ydW50aW1lLnYxLlB1cmdlV29ya2Zsb3dSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgOIAgESZwoXVGVybWluYXRlV29ya2Zsb3dBbHBoYTESLy5kYXByLnByb3RvLnJ1bnRpbWUudjEuVGVybWluYXRlV29ya2Zsb3dSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgOIAgESXwoTUGF1c2VXb3JrZmxvd0FscGhhMRIrLmRhcHIucHJvdG8ucnVudGltZS52MS5QYXVzZVdvcmtmbG93UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIDiAIBEmEKFFJlc3VtZVdvcmtmbG93QWxwaGExEiwuZGFwci5wcm90by5ydW50aW1lLnYxLlJlc3VtZVdvcmtmbG93UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIDiAIBEmkKGFJhaXNlRXZlbnRXb3JrZmxvd0FscGhhMRIwLmRhcHIucHJvdG8ucnVudGltZS52MS5SYWlzZUV2ZW50V29ya2Zsb3dSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgOIAgEScQoSU3RhcnRXb3JrZmxvd0JldGExEisuZGFwci5wcm90by5ydW50aW1lLnYxLlN0YXJ0V29ya2Zsb3dSZXF1ZXN0GiwuZGFwci5wcm90by5ydW50aW1lLnYxLlN0YXJ0V29ya2Zsb3dSZXNwb25zZSIAEmsKEEdldFdvcmtmbG93QmV0YTESKS5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0V29ya2Zsb3dSZXF1ZXN0GiouZGFwci5wcm90by5ydW50aW1lLnYxLkdldFdvcmtmbG93UmVzcG9uc2UiABJbChJQdXJnZVdvcmtmbG93QmV0YTESKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuUHVyZ2VXb3JrZmxvd1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJjChZUZXJtaW5hdGVXb3JrZmxvd0JldGExEi8uZGFwci5wcm90by5ydW50aW1lLnYxLlRlcm1pbmF0ZVdvcmtmbG93UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElsKElBhdXNlV29ya2Zsb3dCZXRhMRIrLmRhcHIucHJvdG8ucnVudGltZS52MS5QYXVzZVdvcmtmbG93UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEl0KE1Jlc3VtZVdvcmtmbG93QmV0YTESLC5kYXByLnByb3RvLnJ1bnRpbWUudjEuUmVzdW1lV29ya2Zsb3dSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASZQoXUmFpc2VFdmVudFdvcmtmbG93QmV0YTESMC5kYXByLnByb3RvLnJ1bnRpbWUudjEuUmFpc2VFdmVudFdvcmtmbG93UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEkwKCFNodXRkb3duEiYuZGFwci5wcm90by5ydW50aW1lLnYxLlNodXRkb3duUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEmwKEVNjaGVkdWxlSm9iQWxwaGExEikuZGFwci5wcm90by5ydW50aW1lLnYxLlNjaGVkdWxlSm9iUmVxdWVzdBoqLmRhcHIucHJvdG8ucnVudGltZS52MS5TY2hlZHVsZUpvYlJlc3BvbnNlIgASXQoMR2V0Sm9iQWxwaGExEiQuZGFwci5wcm90by5ydW50aW1lLnYxLkdldEpvYlJlcXVlc3QaJS5kYXByLnByb3RvLnJ1bnRpbWUudjEuR2V0Sm9iUmVzcG9uc2UiABJmCg9EZWxldGVKb2JBbHBoYTESJy5kYXByLnByb3RvLnJ1bnRpbWUudjEuRGVsZXRlSm9iUmVxdWVzdBooLmRhcHIucHJvdG8ucnVudGltZS52MS5EZWxldGVKb2JSZXNwb25zZSIAEmsKDkNvbnZlcnNlQWxwaGExEiouZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblJlcXVlc3QaKy5kYXByLnByb3RvLnJ1bnRpbWUudjEuQ29udmVyc2F0aW9uUmVzcG9uc2UiABJ3Cg5Db252ZXJzZUFscGhhMhIwLmRhcHIucHJvdG8ucnVudGltZS52MS5Db252ZXJzYXRpb25SZXF1ZXN0QWxwaGEyGjEuZGFwci5wcm90by5ydW50aW1lLnYxLkNvbnZlcnNhdGlvblJlc3BvbnNlQWxwaGEyIgBC0AEKGWNvbS5kYXByLnByb3RvLnJ1bnRpbWUudjFCCURhcHJQcm90b1ABWjFnaXRodWIuY29tL2RhcHIvZGFwci9wa2cvcHJvdG8vcnVudGltZS92MTtydW50aW1logIDRFBSqgIVRGFwci5Qcm90by5SdW50aW1lLlYxygIVRGFwclxQcm90b1xSdW50aW1lXFYx4gIhRGFwclxQcm90b1xSdW50aW1lXFYxXEdQQk1ldGFkYXRh6gIYRGFwcjo6UHJvdG86OlJ1bnRpbWU6OlYxYgZwcm90bzM", [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]); - -/** - * Describes the message dapr.proto.runtime.v1.InvokeServiceRequest. - * Use `create(InvokeServiceRequestSchema)` to create a new message. - */ -export const InvokeServiceRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 0); - -/** - * Describes the message dapr.proto.runtime.v1.GetStateRequest. - * Use `create(GetStateRequestSchema)` to create a new message. - */ -export const GetStateRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 1); - -/** - * Describes the message dapr.proto.runtime.v1.GetBulkStateRequest. - * Use `create(GetBulkStateRequestSchema)` to create a new message. - */ -export const GetBulkStateRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 2); - -/** - * Describes the message dapr.proto.runtime.v1.GetBulkStateResponse. - * Use `create(GetBulkStateResponseSchema)` to create a new message. - */ -export const GetBulkStateResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 3); - -/** - * Describes the message dapr.proto.runtime.v1.BulkStateItem. - * Use `create(BulkStateItemSchema)` to create a new message. - */ -export const BulkStateItemSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 4); - -/** - * Describes the message dapr.proto.runtime.v1.GetStateResponse. - * Use `create(GetStateResponseSchema)` to create a new message. - */ -export const GetStateResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 5); - -/** - * Describes the message dapr.proto.runtime.v1.DeleteStateRequest. - * Use `create(DeleteStateRequestSchema)` to create a new message. - */ -export const DeleteStateRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 6); - -/** - * Describes the message dapr.proto.runtime.v1.DeleteBulkStateRequest. - * Use `create(DeleteBulkStateRequestSchema)` to create a new message. - */ -export const DeleteBulkStateRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 7); - -/** - * Describes the message dapr.proto.runtime.v1.SaveStateRequest. - * Use `create(SaveStateRequestSchema)` to create a new message. - */ -export const SaveStateRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 8); - -/** - * Describes the message dapr.proto.runtime.v1.QueryStateRequest. - * Use `create(QueryStateRequestSchema)` to create a new message. - */ -export const QueryStateRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 9); - -/** - * Describes the message dapr.proto.runtime.v1.QueryStateItem. - * Use `create(QueryStateItemSchema)` to create a new message. - */ -export const QueryStateItemSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 10); - -/** - * Describes the message dapr.proto.runtime.v1.QueryStateResponse. - * Use `create(QueryStateResponseSchema)` to create a new message. - */ -export const QueryStateResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 11); - -/** - * Describes the message dapr.proto.runtime.v1.PublishEventRequest. - * Use `create(PublishEventRequestSchema)` to create a new message. - */ -export const PublishEventRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 12); - -/** - * Describes the message dapr.proto.runtime.v1.BulkPublishRequest. - * Use `create(BulkPublishRequestSchema)` to create a new message. - */ -export const BulkPublishRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 13); - -/** - * Describes the message dapr.proto.runtime.v1.BulkPublishRequestEntry. - * Use `create(BulkPublishRequestEntrySchema)` to create a new message. - */ -export const BulkPublishRequestEntrySchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 14); - -/** - * Describes the message dapr.proto.runtime.v1.BulkPublishResponse. - * Use `create(BulkPublishResponseSchema)` to create a new message. - */ -export const BulkPublishResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 15); - -/** - * Describes the message dapr.proto.runtime.v1.BulkPublishResponseFailedEntry. - * Use `create(BulkPublishResponseFailedEntrySchema)` to create a new message. - */ -export const BulkPublishResponseFailedEntrySchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 16); - -/** - * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1. - * Use `create(SubscribeTopicEventsRequestAlpha1Schema)` to create a new message. - */ -export const SubscribeTopicEventsRequestAlpha1Schema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 17); - -/** - * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1. - * Use `create(SubscribeTopicEventsRequestInitialAlpha1Schema)` to create a new message. - */ -export const SubscribeTopicEventsRequestInitialAlpha1Schema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 18); - -/** - * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1. - * Use `create(SubscribeTopicEventsRequestProcessedAlpha1Schema)` to create a new message. - */ -export const SubscribeTopicEventsRequestProcessedAlpha1Schema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 19); - -/** - * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1. - * Use `create(SubscribeTopicEventsResponseAlpha1Schema)` to create a new message. - */ -export const SubscribeTopicEventsResponseAlpha1Schema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 20); - -/** - * Describes the message dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1. - * Use `create(SubscribeTopicEventsResponseInitialAlpha1Schema)` to create a new message. - */ -export const SubscribeTopicEventsResponseInitialAlpha1Schema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 21); - -/** - * Describes the message dapr.proto.runtime.v1.InvokeBindingRequest. - * Use `create(InvokeBindingRequestSchema)` to create a new message. - */ -export const InvokeBindingRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 22); - -/** - * Describes the message dapr.proto.runtime.v1.InvokeBindingResponse. - * Use `create(InvokeBindingResponseSchema)` to create a new message. - */ -export const InvokeBindingResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 23); - -/** - * Describes the message dapr.proto.runtime.v1.GetSecretRequest. - * Use `create(GetSecretRequestSchema)` to create a new message. - */ -export const GetSecretRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 24); - -/** - * Describes the message dapr.proto.runtime.v1.GetSecretResponse. - * Use `create(GetSecretResponseSchema)` to create a new message. - */ -export const GetSecretResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 25); - -/** - * Describes the message dapr.proto.runtime.v1.GetBulkSecretRequest. - * Use `create(GetBulkSecretRequestSchema)` to create a new message. - */ -export const GetBulkSecretRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 26); - -/** - * Describes the message dapr.proto.runtime.v1.SecretResponse. - * Use `create(SecretResponseSchema)` to create a new message. - */ -export const SecretResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 27); - -/** - * Describes the message dapr.proto.runtime.v1.GetBulkSecretResponse. - * Use `create(GetBulkSecretResponseSchema)` to create a new message. - */ -export const GetBulkSecretResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 28); - -/** - * Describes the message dapr.proto.runtime.v1.TransactionalStateOperation. - * Use `create(TransactionalStateOperationSchema)` to create a new message. - */ -export const TransactionalStateOperationSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 29); - -/** - * Describes the message dapr.proto.runtime.v1.ExecuteStateTransactionRequest. - * Use `create(ExecuteStateTransactionRequestSchema)` to create a new message. - */ -export const ExecuteStateTransactionRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 30); - -/** - * Describes the message dapr.proto.runtime.v1.RegisterActorTimerRequest. - * Use `create(RegisterActorTimerRequestSchema)` to create a new message. - */ -export const RegisterActorTimerRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 31); - -/** - * Describes the message dapr.proto.runtime.v1.UnregisterActorTimerRequest. - * Use `create(UnregisterActorTimerRequestSchema)` to create a new message. - */ -export const UnregisterActorTimerRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 32); - -/** - * Describes the message dapr.proto.runtime.v1.RegisterActorReminderRequest. - * Use `create(RegisterActorReminderRequestSchema)` to create a new message. - */ -export const RegisterActorReminderRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 33); - -/** - * Describes the message dapr.proto.runtime.v1.UnregisterActorReminderRequest. - * Use `create(UnregisterActorReminderRequestSchema)` to create a new message. - */ -export const UnregisterActorReminderRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 34); - -/** - * Describes the message dapr.proto.runtime.v1.GetActorStateRequest. - * Use `create(GetActorStateRequestSchema)` to create a new message. - */ -export const GetActorStateRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 35); - -/** - * Describes the message dapr.proto.runtime.v1.GetActorStateResponse. - * Use `create(GetActorStateResponseSchema)` to create a new message. - */ -export const GetActorStateResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 36); - -/** - * Describes the message dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest. - * Use `create(ExecuteActorStateTransactionRequestSchema)` to create a new message. - */ -export const ExecuteActorStateTransactionRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 37); - -/** - * Describes the message dapr.proto.runtime.v1.TransactionalActorStateOperation. - * Use `create(TransactionalActorStateOperationSchema)` to create a new message. - */ -export const TransactionalActorStateOperationSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 38); - -/** - * Describes the message dapr.proto.runtime.v1.InvokeActorRequest. - * Use `create(InvokeActorRequestSchema)` to create a new message. - */ -export const InvokeActorRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 39); - -/** - * Describes the message dapr.proto.runtime.v1.InvokeActorResponse. - * Use `create(InvokeActorResponseSchema)` to create a new message. - */ -export const InvokeActorResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 40); - -/** - * Describes the message dapr.proto.runtime.v1.GetMetadataRequest. - * Use `create(GetMetadataRequestSchema)` to create a new message. - */ -export const GetMetadataRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 41); - -/** - * Describes the message dapr.proto.runtime.v1.GetMetadataResponse. - * Use `create(GetMetadataResponseSchema)` to create a new message. - */ -export const GetMetadataResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 42); - -/** - * Describes the message dapr.proto.runtime.v1.MetadataWorkflows. - * Use `create(MetadataWorkflowsSchema)` to create a new message. - */ -export const MetadataWorkflowsSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 43); - -/** - * Describes the message dapr.proto.runtime.v1.MetadataScheduler. - * Use `create(MetadataSchedulerSchema)` to create a new message. - */ -export const MetadataSchedulerSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 44); - -/** - * Describes the message dapr.proto.runtime.v1.ActorRuntime. - * Use `create(ActorRuntimeSchema)` to create a new message. - */ -export const ActorRuntimeSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 45); - -/** - * Describes the enum dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus. - */ -export const ActorRuntime_ActorRuntimeStatusSchema = /*@__PURE__*/ - enumDesc(file_dapr_proto_runtime_v1_dapr, 45, 0); - -/** - * @generated from enum dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatus - */ -export const ActorRuntime_ActorRuntimeStatus = /*@__PURE__*/ - tsEnum(ActorRuntime_ActorRuntimeStatusSchema); - -/** - * Describes the message dapr.proto.runtime.v1.ActiveActorsCount. - * Use `create(ActiveActorsCountSchema)` to create a new message. - */ -export const ActiveActorsCountSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 46); - -/** - * Describes the message dapr.proto.runtime.v1.RegisteredComponents. - * Use `create(RegisteredComponentsSchema)` to create a new message. - */ -export const RegisteredComponentsSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 47); - -/** - * Describes the message dapr.proto.runtime.v1.MetadataHTTPEndpoint. - * Use `create(MetadataHTTPEndpointSchema)` to create a new message. - */ -export const MetadataHTTPEndpointSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 48); - -/** - * Describes the message dapr.proto.runtime.v1.AppConnectionProperties. - * Use `create(AppConnectionPropertiesSchema)` to create a new message. - */ -export const AppConnectionPropertiesSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 49); - -/** - * Describes the message dapr.proto.runtime.v1.AppConnectionHealthProperties. - * Use `create(AppConnectionHealthPropertiesSchema)` to create a new message. - */ -export const AppConnectionHealthPropertiesSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 50); - -/** - * Describes the message dapr.proto.runtime.v1.PubsubSubscription. - * Use `create(PubsubSubscriptionSchema)` to create a new message. - */ -export const PubsubSubscriptionSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 51); - -/** - * Describes the message dapr.proto.runtime.v1.PubsubSubscriptionRules. - * Use `create(PubsubSubscriptionRulesSchema)` to create a new message. - */ -export const PubsubSubscriptionRulesSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 52); - -/** - * Describes the message dapr.proto.runtime.v1.PubsubSubscriptionRule. - * Use `create(PubsubSubscriptionRuleSchema)` to create a new message. - */ -export const PubsubSubscriptionRuleSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 53); - -/** - * Describes the message dapr.proto.runtime.v1.SetMetadataRequest. - * Use `create(SetMetadataRequestSchema)` to create a new message. - */ -export const SetMetadataRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 54); - -/** - * Describes the message dapr.proto.runtime.v1.GetConfigurationRequest. - * Use `create(GetConfigurationRequestSchema)` to create a new message. - */ -export const GetConfigurationRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 55); - -/** - * Describes the message dapr.proto.runtime.v1.GetConfigurationResponse. - * Use `create(GetConfigurationResponseSchema)` to create a new message. - */ -export const GetConfigurationResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 56); - -/** - * Describes the message dapr.proto.runtime.v1.SubscribeConfigurationRequest. - * Use `create(SubscribeConfigurationRequestSchema)` to create a new message. - */ -export const SubscribeConfigurationRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 57); - -/** - * Describes the message dapr.proto.runtime.v1.UnsubscribeConfigurationRequest. - * Use `create(UnsubscribeConfigurationRequestSchema)` to create a new message. - */ -export const UnsubscribeConfigurationRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 58); - -/** - * Describes the message dapr.proto.runtime.v1.SubscribeConfigurationResponse. - * Use `create(SubscribeConfigurationResponseSchema)` to create a new message. - */ -export const SubscribeConfigurationResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 59); - -/** - * Describes the message dapr.proto.runtime.v1.UnsubscribeConfigurationResponse. - * Use `create(UnsubscribeConfigurationResponseSchema)` to create a new message. - */ -export const UnsubscribeConfigurationResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 60); - -/** - * Describes the message dapr.proto.runtime.v1.TryLockRequest. - * Use `create(TryLockRequestSchema)` to create a new message. - */ -export const TryLockRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 61); - -/** - * Describes the message dapr.proto.runtime.v1.TryLockResponse. - * Use `create(TryLockResponseSchema)` to create a new message. - */ -export const TryLockResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 62); - -/** - * Describes the message dapr.proto.runtime.v1.UnlockRequest. - * Use `create(UnlockRequestSchema)` to create a new message. - */ -export const UnlockRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 63); - -/** - * Describes the message dapr.proto.runtime.v1.UnlockResponse. - * Use `create(UnlockResponseSchema)` to create a new message. - */ -export const UnlockResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 64); - -/** - * Describes the enum dapr.proto.runtime.v1.UnlockResponse.Status. - */ -export const UnlockResponse_StatusSchema = /*@__PURE__*/ - enumDesc(file_dapr_proto_runtime_v1_dapr, 64, 0); - -/** - * @generated from enum dapr.proto.runtime.v1.UnlockResponse.Status - */ -export const UnlockResponse_Status = /*@__PURE__*/ - tsEnum(UnlockResponse_StatusSchema); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleGetKeyRequest. - * Use `create(SubtleGetKeyRequestSchema)` to create a new message. - */ -export const SubtleGetKeyRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 65); - -/** - * Describes the enum dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat. - */ -export const SubtleGetKeyRequest_KeyFormatSchema = /*@__PURE__*/ - enumDesc(file_dapr_proto_runtime_v1_dapr, 65, 0); - -/** - * @generated from enum dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat - */ -export const SubtleGetKeyRequest_KeyFormat = /*@__PURE__*/ - tsEnum(SubtleGetKeyRequest_KeyFormatSchema); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleGetKeyResponse. - * Use `create(SubtleGetKeyResponseSchema)` to create a new message. - */ -export const SubtleGetKeyResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 66); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleEncryptRequest. - * Use `create(SubtleEncryptRequestSchema)` to create a new message. - */ -export const SubtleEncryptRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 67); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleEncryptResponse. - * Use `create(SubtleEncryptResponseSchema)` to create a new message. - */ -export const SubtleEncryptResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 68); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleDecryptRequest. - * Use `create(SubtleDecryptRequestSchema)` to create a new message. - */ -export const SubtleDecryptRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 69); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleDecryptResponse. - * Use `create(SubtleDecryptResponseSchema)` to create a new message. - */ -export const SubtleDecryptResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 70); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleWrapKeyRequest. - * Use `create(SubtleWrapKeyRequestSchema)` to create a new message. - */ -export const SubtleWrapKeyRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 71); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleWrapKeyResponse. - * Use `create(SubtleWrapKeyResponseSchema)` to create a new message. - */ -export const SubtleWrapKeyResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 72); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleUnwrapKeyRequest. - * Use `create(SubtleUnwrapKeyRequestSchema)` to create a new message. - */ -export const SubtleUnwrapKeyRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 73); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleUnwrapKeyResponse. - * Use `create(SubtleUnwrapKeyResponseSchema)` to create a new message. - */ -export const SubtleUnwrapKeyResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 74); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleSignRequest. - * Use `create(SubtleSignRequestSchema)` to create a new message. - */ -export const SubtleSignRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 75); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleSignResponse. - * Use `create(SubtleSignResponseSchema)` to create a new message. - */ -export const SubtleSignResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 76); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleVerifyRequest. - * Use `create(SubtleVerifyRequestSchema)` to create a new message. - */ -export const SubtleVerifyRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 77); - -/** - * Describes the message dapr.proto.runtime.v1.SubtleVerifyResponse. - * Use `create(SubtleVerifyResponseSchema)` to create a new message. - */ -export const SubtleVerifyResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 78); - -/** - * Describes the message dapr.proto.runtime.v1.EncryptRequest. - * Use `create(EncryptRequestSchema)` to create a new message. - */ -export const EncryptRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 79); - -/** - * Describes the message dapr.proto.runtime.v1.EncryptRequestOptions. - * Use `create(EncryptRequestOptionsSchema)` to create a new message. - */ -export const EncryptRequestOptionsSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 80); - -/** - * Describes the message dapr.proto.runtime.v1.EncryptResponse. - * Use `create(EncryptResponseSchema)` to create a new message. - */ -export const EncryptResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 81); - -/** - * Describes the message dapr.proto.runtime.v1.DecryptRequest. - * Use `create(DecryptRequestSchema)` to create a new message. - */ -export const DecryptRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 82); - -/** - * Describes the message dapr.proto.runtime.v1.DecryptRequestOptions. - * Use `create(DecryptRequestOptionsSchema)` to create a new message. - */ -export const DecryptRequestOptionsSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 83); - -/** - * Describes the message dapr.proto.runtime.v1.DecryptResponse. - * Use `create(DecryptResponseSchema)` to create a new message. - */ -export const DecryptResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 84); - -/** - * Describes the message dapr.proto.runtime.v1.GetWorkflowRequest. - * Use `create(GetWorkflowRequestSchema)` to create a new message. - */ -export const GetWorkflowRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 85); - -/** - * Describes the message dapr.proto.runtime.v1.GetWorkflowResponse. - * Use `create(GetWorkflowResponseSchema)` to create a new message. - */ -export const GetWorkflowResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 86); - -/** - * Describes the message dapr.proto.runtime.v1.StartWorkflowRequest. - * Use `create(StartWorkflowRequestSchema)` to create a new message. - */ -export const StartWorkflowRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 87); - -/** - * Describes the message dapr.proto.runtime.v1.StartWorkflowResponse. - * Use `create(StartWorkflowResponseSchema)` to create a new message. - */ -export const StartWorkflowResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 88); - -/** - * Describes the message dapr.proto.runtime.v1.TerminateWorkflowRequest. - * Use `create(TerminateWorkflowRequestSchema)` to create a new message. - */ -export const TerminateWorkflowRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 89); - -/** - * Describes the message dapr.proto.runtime.v1.PauseWorkflowRequest. - * Use `create(PauseWorkflowRequestSchema)` to create a new message. - */ -export const PauseWorkflowRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 90); - -/** - * Describes the message dapr.proto.runtime.v1.ResumeWorkflowRequest. - * Use `create(ResumeWorkflowRequestSchema)` to create a new message. - */ -export const ResumeWorkflowRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 91); - -/** - * Describes the message dapr.proto.runtime.v1.RaiseEventWorkflowRequest. - * Use `create(RaiseEventWorkflowRequestSchema)` to create a new message. - */ -export const RaiseEventWorkflowRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 92); - -/** - * Describes the message dapr.proto.runtime.v1.PurgeWorkflowRequest. - * Use `create(PurgeWorkflowRequestSchema)` to create a new message. - */ -export const PurgeWorkflowRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 93); - -/** - * Describes the message dapr.proto.runtime.v1.ShutdownRequest. - * Use `create(ShutdownRequestSchema)` to create a new message. - */ -export const ShutdownRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 94); - -/** - * Describes the message dapr.proto.runtime.v1.Job. - * Use `create(JobSchema)` to create a new message. - */ -export const JobSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 95); - -/** - * Describes the message dapr.proto.runtime.v1.ScheduleJobRequest. - * Use `create(ScheduleJobRequestSchema)` to create a new message. - */ -export const ScheduleJobRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 96); - -/** - * Describes the message dapr.proto.runtime.v1.ScheduleJobResponse. - * Use `create(ScheduleJobResponseSchema)` to create a new message. - */ -export const ScheduleJobResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 97); - -/** - * Describes the message dapr.proto.runtime.v1.GetJobRequest. - * Use `create(GetJobRequestSchema)` to create a new message. - */ -export const GetJobRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 98); - -/** - * Describes the message dapr.proto.runtime.v1.GetJobResponse. - * Use `create(GetJobResponseSchema)` to create a new message. - */ -export const GetJobResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 99); - -/** - * Describes the message dapr.proto.runtime.v1.DeleteJobRequest. - * Use `create(DeleteJobRequestSchema)` to create a new message. - */ -export const DeleteJobRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 100); - -/** - * Describes the message dapr.proto.runtime.v1.DeleteJobResponse. - * Use `create(DeleteJobResponseSchema)` to create a new message. - */ -export const DeleteJobResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 101); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationRequest. - * Use `create(ConversationRequestSchema)` to create a new message. - * @deprecated - */ -export const ConversationRequestSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 102); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationRequestAlpha2. - * Use `create(ConversationRequestAlpha2Schema)` to create a new message. - */ -export const ConversationRequestAlpha2Schema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 103); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationInput. - * Use `create(ConversationInputSchema)` to create a new message. - * @deprecated - */ -export const ConversationInputSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 104); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationInputAlpha2. - * Use `create(ConversationInputAlpha2Schema)` to create a new message. - */ -export const ConversationInputAlpha2Schema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 105); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationMessage. - * Use `create(ConversationMessageSchema)` to create a new message. - */ -export const ConversationMessageSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 106); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationMessageOfDeveloper. - * Use `create(ConversationMessageOfDeveloperSchema)` to create a new message. - */ -export const ConversationMessageOfDeveloperSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 107); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationMessageOfSystem. - * Use `create(ConversationMessageOfSystemSchema)` to create a new message. - */ -export const ConversationMessageOfSystemSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 108); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationMessageOfUser. - * Use `create(ConversationMessageOfUserSchema)` to create a new message. - */ -export const ConversationMessageOfUserSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 109); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationMessageOfAssistant. - * Use `create(ConversationMessageOfAssistantSchema)` to create a new message. - */ -export const ConversationMessageOfAssistantSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 110); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationMessageOfTool. - * Use `create(ConversationMessageOfToolSchema)` to create a new message. - */ -export const ConversationMessageOfToolSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 111); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationToolCalls. - * Use `create(ConversationToolCallsSchema)` to create a new message. - */ -export const ConversationToolCallsSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 112); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationToolCallsOfFunction. - * Use `create(ConversationToolCallsOfFunctionSchema)` to create a new message. - */ -export const ConversationToolCallsOfFunctionSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 113); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationMessageContent. - * Use `create(ConversationMessageContentSchema)` to create a new message. - */ -export const ConversationMessageContentSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 114); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationResult. - * Use `create(ConversationResultSchema)` to create a new message. - * @deprecated - */ -export const ConversationResultSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 115); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationResultAlpha2. - * Use `create(ConversationResultAlpha2Schema)` to create a new message. - */ -export const ConversationResultAlpha2Schema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 116); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationResultChoices. - * Use `create(ConversationResultChoicesSchema)` to create a new message. - */ -export const ConversationResultChoicesSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 117); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationResultMessage. - * Use `create(ConversationResultMessageSchema)` to create a new message. - */ -export const ConversationResultMessageSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 118); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationResponse. - * Use `create(ConversationResponseSchema)` to create a new message. - * @deprecated - */ -export const ConversationResponseSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 119); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationResponseAlpha2. - * Use `create(ConversationResponseAlpha2Schema)` to create a new message. - */ -export const ConversationResponseAlpha2Schema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 120); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationTools. - * Use `create(ConversationToolsSchema)` to create a new message. - */ -export const ConversationToolsSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 121); - -/** - * Describes the message dapr.proto.runtime.v1.ConversationToolsFunction. - * Use `create(ConversationToolsFunctionSchema)` to create a new message. - */ -export const ConversationToolsFunctionSchema = /*@__PURE__*/ - messageDesc(file_dapr_proto_runtime_v1_dapr, 122); - -/** - * Describes the enum dapr.proto.runtime.v1.PubsubSubscriptionType. - */ -export const PubsubSubscriptionTypeSchema = /*@__PURE__*/ - enumDesc(file_dapr_proto_runtime_v1_dapr, 0); - -/** - * PubsubSubscriptionType indicates the type of subscription - * - * @generated from enum dapr.proto.runtime.v1.PubsubSubscriptionType - */ -export const PubsubSubscriptionType = /*@__PURE__*/ - tsEnum(PubsubSubscriptionTypeSchema); - -/** - * Dapr service provides APIs to user application to access Dapr building blocks. - * - * @generated from service dapr.proto.runtime.v1.Dapr - */ -export const Dapr = /*@__PURE__*/ - serviceDesc(file_dapr_proto_runtime_v1_dapr, 0); - diff --git a/src/proto/dapr/proto/runtime/v1/invoke_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/invoke_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/invoke_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/runtime/v1/invoke_pb.d.ts b/src/proto/dapr/proto/runtime/v1/invoke_pb.d.ts deleted file mode 100644 index 01734558..00000000 --- a/src/proto/dapr/proto/runtime/v1/invoke_pb.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/invoke.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; - -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, - } -} diff --git a/src/proto/dapr/proto/runtime/v1/invoke_pb.js b/src/proto/dapr/proto/runtime/v1/invoke_pb.js deleted file mode 100644 index 3c0a4d1f..00000000 --- a/src/proto/dapr/proto/runtime/v1/invoke_pb.js +++ /dev/null @@ -1,229 +0,0 @@ -// source: dapr/proto/runtime/v1/invoke.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -goog.object.extend(proto, dapr_proto_common_v1_common_pb); -goog.exportSymbol('proto.dapr.proto.runtime.v1.InvokeServiceRequest', 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'; -} - - - -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; -}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/jobs_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/jobs_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/jobs_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/runtime/v1/jobs_pb.d.ts b/src/proto/dapr/proto/runtime/v1/jobs_pb.d.ts deleted file mode 100644 index 625d5d8f..00000000 --- a/src/proto/dapr/proto/runtime/v1/jobs_pb.d.ts +++ /dev/null @@ -1,267 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/jobs.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; - -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; - - hasFailurePolicy(): boolean; - clearFailurePolicy(): void; - getFailurePolicy(): dapr_proto_common_v1_common_pb.JobFailurePolicy | undefined; - setFailurePolicy(value?: dapr_proto_common_v1_common_pb.JobFailurePolicy): 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, - failurePolicy?: dapr_proto_common_v1_common_pb.JobFailurePolicy.AsObject, - } -} - -export class ScheduleJobRequest extends jspb.Message { - - hasJob(): boolean; - clearJob(): void; - getJob(): Job | undefined; - setJob(value?: Job): ScheduleJobRequest; - getOverwrite(): boolean; - setOverwrite(value: boolean): 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, - overwrite: boolean, - } -} - -export class ScheduleJobResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ScheduleJobResponse.AsObject; - static toObject(includeInstance: boolean, msg: ScheduleJobResponse): ScheduleJobResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ScheduleJobResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ScheduleJobResponse; - static deserializeBinaryFromReader(message: ScheduleJobResponse, reader: jspb.BinaryReader): ScheduleJobResponse; -} - -export namespace ScheduleJobResponse { - export type AsObject = { - } -} - -export class GetJobRequest extends jspb.Message { - getName(): string; - setName(value: string): GetJobRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetJobRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetJobRequest): GetJobRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetJobRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetJobRequest; - static deserializeBinaryFromReader(message: GetJobRequest, reader: jspb.BinaryReader): GetJobRequest; -} - -export namespace GetJobRequest { - export type AsObject = { - name: string, - } -} - -export class GetJobResponse extends jspb.Message { - - hasJob(): boolean; - clearJob(): void; - getJob(): Job | undefined; - setJob(value?: Job): GetJobResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetJobResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetJobResponse): GetJobResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetJobResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetJobResponse; - static deserializeBinaryFromReader(message: GetJobResponse, reader: jspb.BinaryReader): GetJobResponse; -} - -export namespace GetJobResponse { - export type AsObject = { - job?: Job.AsObject, - } -} - -export class DeleteJobRequest extends jspb.Message { - getName(): string; - setName(value: string): DeleteJobRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteJobRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteJobRequest): DeleteJobRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteJobRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteJobRequest; - static deserializeBinaryFromReader(message: DeleteJobRequest, reader: jspb.BinaryReader): DeleteJobRequest; -} - -export namespace DeleteJobRequest { - export type AsObject = { - name: string, - } -} - -export class DeleteJobResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteJobResponse.AsObject; - static toObject(includeInstance: boolean, msg: DeleteJobResponse): DeleteJobResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteJobResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteJobResponse; - static deserializeBinaryFromReader(message: DeleteJobResponse, reader: jspb.BinaryReader): DeleteJobResponse; -} - -export namespace DeleteJobResponse { - export type AsObject = { - } -} - -export class DeleteJobsByPrefixRequestAlpha1 extends jspb.Message { - - hasNamePrefix(): boolean; - clearNamePrefix(): void; - getNamePrefix(): string | undefined; - setNamePrefix(value: string): DeleteJobsByPrefixRequestAlpha1; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteJobsByPrefixRequestAlpha1.AsObject; - static toObject(includeInstance: boolean, msg: DeleteJobsByPrefixRequestAlpha1): DeleteJobsByPrefixRequestAlpha1.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteJobsByPrefixRequestAlpha1, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteJobsByPrefixRequestAlpha1; - static deserializeBinaryFromReader(message: DeleteJobsByPrefixRequestAlpha1, reader: jspb.BinaryReader): DeleteJobsByPrefixRequestAlpha1; -} - -export namespace DeleteJobsByPrefixRequestAlpha1 { - export type AsObject = { - namePrefix?: string, - } -} - -export class DeleteJobsByPrefixResponseAlpha1 extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteJobsByPrefixResponseAlpha1.AsObject; - static toObject(includeInstance: boolean, msg: DeleteJobsByPrefixResponseAlpha1): DeleteJobsByPrefixResponseAlpha1.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteJobsByPrefixResponseAlpha1, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteJobsByPrefixResponseAlpha1; - static deserializeBinaryFromReader(message: DeleteJobsByPrefixResponseAlpha1, reader: jspb.BinaryReader): DeleteJobsByPrefixResponseAlpha1; -} - -export namespace DeleteJobsByPrefixResponseAlpha1 { - export type AsObject = { - } -} - -export class ListJobsRequestAlpha1 extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListJobsRequestAlpha1.AsObject; - static toObject(includeInstance: boolean, msg: ListJobsRequestAlpha1): ListJobsRequestAlpha1.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListJobsRequestAlpha1, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListJobsRequestAlpha1; - static deserializeBinaryFromReader(message: ListJobsRequestAlpha1, reader: jspb.BinaryReader): ListJobsRequestAlpha1; -} - -export namespace ListJobsRequestAlpha1 { - export type AsObject = { - } -} - -export class ListJobsResponseAlpha1 extends jspb.Message { - clearJobsList(): void; - getJobsList(): Array; - setJobsList(value: Array): ListJobsResponseAlpha1; - addJobs(value?: Job, index?: number): Job; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListJobsResponseAlpha1.AsObject; - static toObject(includeInstance: boolean, msg: ListJobsResponseAlpha1): ListJobsResponseAlpha1.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListJobsResponseAlpha1, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListJobsResponseAlpha1; - static deserializeBinaryFromReader(message: ListJobsResponseAlpha1, reader: jspb.BinaryReader): ListJobsResponseAlpha1; -} - -export namespace ListJobsResponseAlpha1 { - export type AsObject = { - jobsList: Array, - } -} diff --git a/src/proto/dapr/proto/runtime/v1/jobs_pb.js b/src/proto/dapr/proto/runtime/v1/jobs_pb.js deleted file mode 100644 index d0c205b9..00000000 --- a/src/proto/dapr/proto/runtime/v1/jobs_pb.js +++ /dev/null @@ -1,1998 +0,0 @@ -// source: dapr/proto/runtime/v1/jobs.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -goog.object.extend(proto, dapr_proto_common_v1_common_pb); -goog.exportSymbol('proto.dapr.proto.runtime.v1.DeleteJobRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.DeleteJobResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1', 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.Job', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ScheduleJobRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ScheduleJobResponse', 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.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'; -} -/** - * 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.DeleteJobsByPrefixRequestAlpha1 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.displayName = 'proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1'; -} -/** - * 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.DeleteJobsByPrefixResponseAlpha1 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1.displayName = 'proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1'; -} -/** - * 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.ListJobsRequestAlpha1 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1.displayName = 'proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1'; -} -/** - * 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.ListJobsResponseAlpha1 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.displayName = 'proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1'; -} - - - -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.Job.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.Job.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.Job} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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), - failurePolicy: (f = msg.getFailurePolicy()) && dapr_proto_common_v1_common_pb.JobFailurePolicy.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.Job} - */ -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); -}; - - -/** - * 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} - */ -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; - case 7: - var value = new dapr_proto_common_v1_common_pb.JobFailurePolicy; - reader.readMessage(value,dapr_proto_common_v1_common_pb.JobFailurePolicy.deserializeBinaryFromReader); - msg.setFailurePolicy(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.Job.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.Job.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.Job} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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 - ); - } - f = message.getFailurePolicy(); - if (f != null) { - writer.writeMessage( - 7, - f, - dapr_proto_common_v1_common_pb.JobFailurePolicy.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.Job.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.Job} returns this - */ -proto.dapr.proto.runtime.v1.Job.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string schedule = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.Job.prototype.getSchedule = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.Job} returns this - */ -proto.dapr.proto.runtime.v1.Job.prototype.setSchedule = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.Job} returns this - */ -proto.dapr.proto.runtime.v1.Job.prototype.clearSchedule = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.Job.prototype.hasSchedule = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional uint32 repeats = 3; - * @return {number} - */ -proto.dapr.proto.runtime.v1.Job.prototype.getRepeats = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.Job} returns this - */ -proto.dapr.proto.runtime.v1.Job.prototype.setRepeats = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.Job} returns this - */ -proto.dapr.proto.runtime.v1.Job.prototype.clearRepeats = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.Job.prototype.hasRepeats = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string due_time = 4; - * @return {string} - */ -proto.dapr.proto.runtime.v1.Job.prototype.getDueTime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.Job} returns this - */ -proto.dapr.proto.runtime.v1.Job.prototype.setDueTime = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.Job} returns this - */ -proto.dapr.proto.runtime.v1.Job.prototype.clearDueTime = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.Job.prototype.hasDueTime = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string ttl = 5; - * @return {string} - */ -proto.dapr.proto.runtime.v1.Job.prototype.getTtl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.Job} returns this - */ -proto.dapr.proto.runtime.v1.Job.prototype.setTtl = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.Job} returns this - */ -proto.dapr.proto.runtime.v1.Job.prototype.clearTtl = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.Job.prototype.hasTtl = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Any data = 6; - * @return {?proto.google.protobuf.Any} - */ -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); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.Job} returns this - */ -proto.dapr.proto.runtime.v1.Job.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.Job.prototype.hasData = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional dapr.proto.common.v1.JobFailurePolicy failure_policy = 7; - * @return {?proto.dapr.proto.common.v1.JobFailurePolicy} - */ -proto.dapr.proto.runtime.v1.Job.prototype.getFailurePolicy = function() { - return /** @type{?proto.dapr.proto.common.v1.JobFailurePolicy} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.JobFailurePolicy, 7)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.JobFailurePolicy|undefined} value - * @return {!proto.dapr.proto.runtime.v1.Job} returns this -*/ -proto.dapr.proto.runtime.v1.Job.prototype.setFailurePolicy = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.Job} returns this - */ -proto.dapr.proto.runtime.v1.Job.prototype.clearFailurePolicy = function() { - return this.setFailurePolicy(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.Job.prototype.hasFailurePolicy = function() { - return jspb.Message.getField(this, 7) != 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.ScheduleJobRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ScheduleJobRequest.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.ScheduleJobRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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), - overwrite: jspb.Message.getBooleanFieldWithDefault(msg, 2, 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.ScheduleJobRequest} - */ -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); -}; - - -/** - * 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} - */ -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; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOverwrite(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.ScheduleJobRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ScheduleJobRequest.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.ScheduleJobRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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 - ); - } - f = message.getOverwrite(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional Job job = 1; - * @return {?proto.dapr.proto.runtime.v1.Job} - */ -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); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} returns this - */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.clearJob = function() { - return this.setJob(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.hasJob = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bool overwrite = 2; - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.getOverwrite = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.runtime.v1.ScheduleJobRequest} returns this - */ -proto.dapr.proto.runtime.v1.ScheduleJobRequest.prototype.setOverwrite = function(value) { - return jspb.Message.setProto3BooleanField(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.ScheduleJobResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ScheduleJobResponse.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.ScheduleJobResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ScheduleJobResponse.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.ScheduleJobResponse} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -proto.dapr.proto.runtime.v1.ScheduleJobResponse.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.GetJobRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetJobRequest.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.GetJobRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetJobRequest} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -proto.dapr.proto.runtime.v1.GetJobRequest.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.GetJobRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.GetJobRequest} returns this - */ -proto.dapr.proto.runtime.v1.GetJobRequest.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.GetJobResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.GetJobResponse.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.GetJobResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.GetJobResponse} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -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 - ); - } -}; - - -/** - * optional Job job = 1; - * @return {?proto.dapr.proto.runtime.v1.Job} - */ -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)); -}; - - -/** - * @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 - */ -proto.dapr.proto.runtime.v1.GetJobResponse.prototype.clearJob = function() { - return this.setJob(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.GetJobResponse.prototype.hasJob = 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.DeleteJobRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DeleteJobRequest.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.DeleteJobRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.DeleteJobRequest} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -proto.dapr.proto.runtime.v1.DeleteJobRequest.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.DeleteJobRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.DeleteJobRequest} returns this - */ -proto.dapr.proto.runtime.v1.DeleteJobRequest.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.DeleteJobResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DeleteJobResponse.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.DeleteJobResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DeleteJobResponse.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.DeleteJobResponse} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -proto.dapr.proto.runtime.v1.DeleteJobResponse.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.DeleteJobsByPrefixRequestAlpha1.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.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.DeleteJobsByPrefixRequestAlpha1} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.toObject = function(includeInstance, msg) { - var f, obj = { - namePrefix: 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.DeleteJobsByPrefixRequestAlpha1} - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1; - return proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.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.DeleteJobsByPrefixRequestAlpha1} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1} - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.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.setNamePrefix(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.DeleteJobsByPrefixRequestAlpha1.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.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.DeleteJobsByPrefixRequestAlpha1} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string name_prefix = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.prototype.getNamePrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1} returns this - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.prototype.setNamePrefix = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1} returns this - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.prototype.clearNamePrefix = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1.prototype.hasNamePrefix = 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.DeleteJobsByPrefixResponseAlpha1.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1.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.DeleteJobsByPrefixResponseAlpha1} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1.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.DeleteJobsByPrefixResponseAlpha1} - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1; - return proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1.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.DeleteJobsByPrefixResponseAlpha1} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1} - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1.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.DeleteJobsByPrefixResponseAlpha1.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1.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.DeleteJobsByPrefixResponseAlpha1} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1.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.ListJobsRequestAlpha1.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1.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.ListJobsRequestAlpha1} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1.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.ListJobsRequestAlpha1} - */ -proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1; - return proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1.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.ListJobsRequestAlpha1} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1} - */ -proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1.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.ListJobsRequestAlpha1.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1.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.ListJobsRequestAlpha1} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListJobsRequestAlpha1.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.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.ListJobsResponseAlpha1.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.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.ListJobsResponseAlpha1} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.toObject = function(includeInstance, msg) { - var f, obj = { - jobsList: jspb.Message.toObjectList(msg.getJobsList(), - proto.dapr.proto.runtime.v1.Job.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.ListJobsResponseAlpha1} - */ -proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1; - return proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.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.ListJobsResponseAlpha1} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1} - */ -proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.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.addJobs(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.ListJobsResponseAlpha1.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.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.ListJobsResponseAlpha1} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJobsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.runtime.v1.Job.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Job jobs = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.prototype.getJobsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.runtime.v1.Job, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1} returns this -*/ -proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.prototype.setJobsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.runtime.v1.Job=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.Job} - */ -proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.prototype.addJobs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.runtime.v1.Job, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1} returns this - */ -proto.dapr.proto.runtime.v1.ListJobsResponseAlpha1.prototype.clearJobsList = function() { - return this.setJobsList([]); -}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/lock_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/lock_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/lock_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/runtime/v1/lock_pb.d.ts b/src/proto/dapr/proto/runtime/v1/lock_pb.d.ts deleted file mode 100644 index 3b287e70..00000000 --- a/src/proto/dapr/proto/runtime/v1/lock_pb.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/lock.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -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, - } - -} diff --git a/src/proto/dapr/proto/runtime/v1/lock_pb.js b/src/proto/dapr/proto/runtime/v1/lock_pb.js deleted file mode 100644 index fa210742..00000000 --- a/src/proto/dapr/proto/runtime/v1/lock_pb.js +++ /dev/null @@ -1,793 +0,0 @@ -// source: dapr/proto/runtime/v1/lock.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -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); -/** - * 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'; -} - - - -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); -}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/metadata_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/metadata_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/metadata_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/runtime/v1/metadata_pb.d.ts b/src/proto/dapr/proto/runtime/v1/metadata_pb.d.ts deleted file mode 100644 index 3c8ee9ba..00000000 --- a/src/proto/dapr/proto/runtime/v1/metadata_pb.d.ts +++ /dev/null @@ -1,434 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/metadata.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -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; - - hasScheduler(): boolean; - clearScheduler(): void; - getScheduler(): MetadataScheduler | undefined; - setScheduler(value?: MetadataScheduler): GetMetadataResponse; - - hasWorkflows(): boolean; - clearWorkflows(): void; - getWorkflows(): MetadataWorkflows | undefined; - setWorkflows(value?: MetadataWorkflows): 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, - scheduler?: MetadataScheduler.AsObject, - workflows?: MetadataWorkflows.AsObject, - } -} - -export class MetadataWorkflows extends jspb.Message { - getConnectedWorkers(): number; - setConnectedWorkers(value: number): MetadataWorkflows; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MetadataWorkflows.AsObject; - static toObject(includeInstance: boolean, msg: MetadataWorkflows): MetadataWorkflows.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MetadataWorkflows, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MetadataWorkflows; - static deserializeBinaryFromReader(message: MetadataWorkflows, reader: jspb.BinaryReader): MetadataWorkflows; -} - -export namespace MetadataWorkflows { - export type AsObject = { - connectedWorkers: number, - } -} - -export class MetadataScheduler extends jspb.Message { - clearConnectedAddressesList(): void; - getConnectedAddressesList(): Array; - setConnectedAddressesList(value: Array): MetadataScheduler; - addConnectedAddresses(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MetadataScheduler.AsObject; - static toObject(includeInstance: boolean, msg: MetadataScheduler): MetadataScheduler.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MetadataScheduler, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MetadataScheduler; - static deserializeBinaryFromReader(message: MetadataScheduler, reader: jspb.BinaryReader): MetadataScheduler; -} - -export namespace MetadataScheduler { - export type AsObject = { - connectedAddressesList: Array, - } -} - -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 enum PubsubSubscriptionType { - UNKNOWN = 0, - DECLARATIVE = 1, - PROGRAMMATIC = 2, - STREAMING = 3, -} diff --git a/src/proto/dapr/proto/runtime/v1/metadata_pb.js b/src/proto/dapr/proto/runtime/v1/metadata_pb.js deleted file mode 100644 index da355125..00000000 --- a/src/proto/dapr/proto/runtime/v1/metadata_pb.js +++ /dev/null @@ -1,3466 +0,0 @@ -// source: dapr/proto/runtime/v1/metadata.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -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.GetMetadataRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetMetadataResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.MetadataHTTPEndpoint', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.MetadataScheduler', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.MetadataWorkflows', 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.RegisteredComponents', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SetMetadataRequest', 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.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.MetadataWorkflows = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.MetadataWorkflows, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.MetadataWorkflows.displayName = 'proto.dapr.proto.runtime.v1.MetadataWorkflows'; -} -/** - * 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.MetadataScheduler = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.runtime.v1.MetadataScheduler.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.runtime.v1.MetadataScheduler, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.runtime.v1.MetadataScheduler.displayName = 'proto.dapr.proto.runtime.v1.MetadataScheduler'; -} -/** - * 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'; -} - - - -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), - scheduler: (f = msg.getScheduler()) && proto.dapr.proto.runtime.v1.MetadataScheduler.toObject(includeInstance, f), - workflows: (f = msg.getWorkflows()) && proto.dapr.proto.runtime.v1.MetadataWorkflows.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; - case 11: - var value = new proto.dapr.proto.runtime.v1.MetadataScheduler; - reader.readMessage(value,proto.dapr.proto.runtime.v1.MetadataScheduler.deserializeBinaryFromReader); - msg.setScheduler(value); - break; - case 12: - var value = new proto.dapr.proto.runtime.v1.MetadataWorkflows; - reader.readMessage(value,proto.dapr.proto.runtime.v1.MetadataWorkflows.deserializeBinaryFromReader); - msg.setWorkflows(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 - ); - } - f = message.getScheduler(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.dapr.proto.runtime.v1.MetadataScheduler.serializeBinaryToWriter - ); - } - f = message.getWorkflows(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.dapr.proto.runtime.v1.MetadataWorkflows.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; -}; - - -/** - * optional MetadataScheduler scheduler = 11; - * @return {?proto.dapr.proto.runtime.v1.MetadataScheduler} - */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getScheduler = function() { - return /** @type{?proto.dapr.proto.runtime.v1.MetadataScheduler} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.MetadataScheduler, 11)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.MetadataScheduler|undefined} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this -*/ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setScheduler = function(value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearScheduler = function() { - return this.setScheduler(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.hasScheduler = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional MetadataWorkflows workflows = 12; - * @return {?proto.dapr.proto.runtime.v1.MetadataWorkflows} - */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.getWorkflows = function() { - return /** @type{?proto.dapr.proto.runtime.v1.MetadataWorkflows} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.runtime.v1.MetadataWorkflows, 12)); -}; - - -/** - * @param {?proto.dapr.proto.runtime.v1.MetadataWorkflows|undefined} value - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this -*/ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.setWorkflows = function(value) { - return jspb.Message.setWrapperField(this, 12, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.runtime.v1.GetMetadataResponse} returns this - */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.clearWorkflows = function() { - return this.setWorkflows(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.runtime.v1.GetMetadataResponse.prototype.hasWorkflows = function() { - return jspb.Message.getField(this, 12) != 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.MetadataWorkflows.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.MetadataWorkflows.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.MetadataWorkflows} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.MetadataWorkflows.toObject = function(includeInstance, msg) { - var f, obj = { - connectedWorkers: 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.MetadataWorkflows} - */ -proto.dapr.proto.runtime.v1.MetadataWorkflows.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.MetadataWorkflows; - return proto.dapr.proto.runtime.v1.MetadataWorkflows.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.MetadataWorkflows} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.MetadataWorkflows} - */ -proto.dapr.proto.runtime.v1.MetadataWorkflows.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.setConnectedWorkers(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.MetadataWorkflows.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.MetadataWorkflows.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.MetadataWorkflows} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.MetadataWorkflows.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConnectedWorkers(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } -}; - - -/** - * optional int32 connected_workers = 1; - * @return {number} - */ -proto.dapr.proto.runtime.v1.MetadataWorkflows.prototype.getConnectedWorkers = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.runtime.v1.MetadataWorkflows} returns this - */ -proto.dapr.proto.runtime.v1.MetadataWorkflows.prototype.setConnectedWorkers = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.runtime.v1.MetadataScheduler.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.MetadataScheduler.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.MetadataScheduler.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.MetadataScheduler} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.MetadataScheduler.toObject = function(includeInstance, msg) { - var f, obj = { - connectedAddressesList: (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.MetadataScheduler} - */ -proto.dapr.proto.runtime.v1.MetadataScheduler.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.runtime.v1.MetadataScheduler; - return proto.dapr.proto.runtime.v1.MetadataScheduler.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.MetadataScheduler} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.runtime.v1.MetadataScheduler} - */ -proto.dapr.proto.runtime.v1.MetadataScheduler.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.addConnectedAddresses(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.MetadataScheduler.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.runtime.v1.MetadataScheduler.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.MetadataScheduler} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.MetadataScheduler.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConnectedAddressesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string connected_addresses = 1; - * @return {!Array} - */ -proto.dapr.proto.runtime.v1.MetadataScheduler.prototype.getConnectedAddressesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.runtime.v1.MetadataScheduler} returns this - */ -proto.dapr.proto.runtime.v1.MetadataScheduler.prototype.setConnectedAddressesList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.runtime.v1.MetadataScheduler} returns this - */ -proto.dapr.proto.runtime.v1.MetadataScheduler.prototype.addConnectedAddresses = 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.MetadataScheduler} returns this - */ -proto.dapr.proto.runtime.v1.MetadataScheduler.prototype.clearConnectedAddressesList = function() { - return this.setConnectedAddressesList([]); -}; - - - -/** - * 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); -}; - - -/** - * @enum {number} - */ -proto.dapr.proto.runtime.v1.PubsubSubscriptionType = { - UNKNOWN: 0, - DECLARATIVE: 1, - PROGRAMMATIC: 2, - STREAMING: 3 -}; - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/pubsub_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/pubsub_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/pubsub_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/runtime/v1/pubsub_pb.d.ts b/src/proto/dapr/proto/runtime/v1/pubsub_pb.d.ts deleted file mode 100644 index 1348ee72..00000000 --- a/src/proto/dapr/proto/runtime/v1/pubsub_pb.d.ts +++ /dev/null @@ -1,308 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/pubsub.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as dapr_proto_runtime_v1_appcallback_pb from "../../../../dapr/proto/runtime/v1/appcallback_pb"; - -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 = { - } -} diff --git a/src/proto/dapr/proto/runtime/v1/pubsub_pb.js b/src/proto/dapr/proto/runtime/v1/pubsub_pb.js deleted file mode 100644 index d4be66b2..00000000 --- a/src/proto/dapr/proto/runtime/v1/pubsub_pb.js +++ /dev/null @@ -1,2324 +0,0 @@ -// source: dapr/proto/runtime/v1/pubsub.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -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.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.PublishEventRequest', 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); -/** - * 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'; -} - - - -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; -}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/secret_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/secret_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/secret_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/runtime/v1/secret_pb.d.ts b/src/proto/dapr/proto/runtime/v1/secret_pb.d.ts deleted file mode 100644 index 5b6bbfcf..00000000 --- a/src/proto/dapr/proto/runtime/v1/secret_pb.d.ts +++ /dev/null @@ -1,126 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/secret.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -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]>, - } -} diff --git a/src/proto/dapr/proto/runtime/v1/secret_pb.js b/src/proto/dapr/proto/runtime/v1/secret_pb.js deleted file mode 100644 index 93b643d5..00000000 --- a/src/proto/dapr/proto/runtime/v1/secret_pb.js +++ /dev/null @@ -1,889 +0,0 @@ -// source: dapr/proto/runtime/v1/secret.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -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.GetSecretRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetSecretResponse', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.SecretResponse', 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.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'; -} - - - -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;}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/state_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/state_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/state_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/runtime/v1/state_pb.d.ts b/src/proto/dapr/proto/runtime/v1/state_pb.d.ts deleted file mode 100644 index c1749882..00000000 --- a/src/proto/dapr/proto/runtime/v1/state_pb.d.ts +++ /dev/null @@ -1,395 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/state.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; - -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 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]>, - } -} diff --git a/src/proto/dapr/proto/runtime/v1/state_pb.js b/src/proto/dapr/proto/runtime/v1/state_pb.js deleted file mode 100644 index 81cb3685..00000000 --- a/src/proto/dapr/proto/runtime/v1/state_pb.js +++ /dev/null @@ -1,3177 +0,0 @@ -// source: dapr/proto/runtime/v1/state.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -goog.object.extend(proto, dapr_proto_common_v1_common_pb); -goog.exportSymbol('proto.dapr.proto.runtime.v1.BulkStateItem', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.DeleteBulkStateRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.DeleteStateRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ExecuteStateTransactionRequest', 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.GetStateRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.GetStateResponse', 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.SaveStateRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.TransactionalStateOperation', 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.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.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'; -} - - - -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.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;}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/runtime/v1/workflow_grpc_pb.js b/src/proto/dapr/proto/runtime/v1/workflow_grpc_pb.js deleted file mode 100644 index 97b3a246..00000000 --- a/src/proto/dapr/proto/runtime/v1/workflow_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/runtime/v1/workflow_pb.d.ts b/src/proto/dapr/proto/runtime/v1/workflow_pb.d.ts deleted file mode 100644 index 62c393b2..00000000 --- a/src/proto/dapr/proto/runtime/v1/workflow_pb.d.ts +++ /dev/null @@ -1,253 +0,0 @@ -// package: dapr.proto.runtime.v1 -// file: dapr/proto/runtime/v1/workflow.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 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, - } -} diff --git a/src/proto/dapr/proto/runtime/v1/workflow_pb.js b/src/proto/dapr/proto/runtime/v1/workflow_pb.js deleted file mode 100644 index 92d16474..00000000 --- a/src/proto/dapr/proto/runtime/v1/workflow_pb.js +++ /dev/null @@ -1,2000 +0,0 @@ -// source: dapr/proto/runtime/v1/workflow.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -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.PauseWorkflowRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.PurgeWorkflowRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest', null, global); -goog.exportSymbol('proto.dapr.proto.runtime.v1.ResumeWorkflowRequest', 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.TerminateWorkflowRequest', 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.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'; -} - - - -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInstanceId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getWorkflowComponent(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string instance_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string workflow_component = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.TerminateWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.TerminateWorkflowRequest.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.PauseWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PauseWorkflowRequest.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.PauseWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.toObject = function(includeInstance, msg) { - 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.PauseWorkflowRequest} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -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 - ); - } -}; - - -/** - * optional string instance_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string workflow_component = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PauseWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.PauseWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -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.ResumeWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.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.ResumeWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.toObject = function(includeInstance, msg) { - 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.ResumeWorkflowRequest} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -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 - ); - } -}; - - -/** - * optional string instance_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string workflow_component = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.ResumeWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.ResumeWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -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.RaiseEventWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.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.RaiseEventWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.toObject = function(includeInstance, msg) { - 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; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -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 - ); - } -}; - - -/** - * optional string instance_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string workflow_component = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string event_name = 3; - * @return {string} - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setEventName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bytes event_data = 4; - * @return {!(string|Uint8Array)} - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes event_data = 4; - * This is a type-conversion wrapper around `getEventData()` - * @return {string} - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEventData())); -}; - - -/** - * optional bytes event_data = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getEventData()` - * @return {!Uint8Array} - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.getEventData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEventData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.RaiseEventWorkflowRequest.prototype.setEventData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - - - - -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.PurgeWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.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.PurgeWorkflowRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.toObject = function(includeInstance, msg) { - 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.PurgeWorkflowRequest} - */ -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); -}; - - -/** - * 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} - */ -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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -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(); -}; - - -/** - * 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 - */ -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 - ); - } -}; - - -/** - * optional string instance_id = 1; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.getInstanceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.setInstanceId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string workflow_component = 2; - * @return {string} - */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.getWorkflowComponent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.runtime.v1.PurgeWorkflowRequest} returns this - */ -proto.dapr.proto.runtime.v1.PurgeWorkflowRequest.prototype.setWorkflowComponent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -goog.object.extend(exports, proto.dapr.proto.runtime.v1); diff --git a/src/proto/dapr/proto/scheduler/v1/scheduler.proto b/src/proto/dapr/proto/scheduler/v1/scheduler.proto deleted file mode 100644 index ffa59efc..00000000 --- a/src/proto/dapr/proto/scheduler/v1/scheduler.proto +++ /dev/null @@ -1,281 +0,0 @@ -syntax = "proto3"; - -package dapr.proto.scheduler.v1; - -import "dapr/proto/common/v1/common.proto"; -import "google/protobuf/any.proto"; - -option go_package = "github.com/dapr/dapr/pkg/proto/scheduler/v1;scheduler"; - -service Scheduler { - // ScheduleJob is used by the daprd sidecar to schedule a job. - rpc ScheduleJob(ScheduleJobRequest) returns (ScheduleJobResponse) {} - // Get a job - rpc GetJob(GetJobRequest) returns (GetJobResponse) {} - // DeleteJob is used by the daprd sidecar to delete a job. - rpc DeleteJob(DeleteJobRequest) returns (DeleteJobResponse) {} - // WatchJobs is used by the daprd sidecar to connect to the Scheduler - // service to watch for jobs triggering back. - rpc WatchJobs(stream WatchJobsRequest) returns (stream WatchJobsResponse) {} - // ListJobs is used by the daprd sidecar to list all jobs. - rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) {} - // WatchHosts is used by the daprd sidecar to retrieve the list of active - // scheduler hosts so that it can connect to each. Receives an updated list - // on leadership changes. - rpc WatchHosts(WatchHostsRequest) returns (stream WatchHostsResponse) {} - // DeleteByMetadata is used by the daprd sidecar to delete jobs by a metadata - // target. - rpc DeleteByMetadata(DeleteByMetadataRequest) returns (DeleteByMetadataResponse) {} - // DeleteByNamePrefix is used by the daprd sidecar to delete jobs by name - // prefix. An empty prefix deletes all jobs from the target. - rpc DeleteByNamePrefix(DeleteByNamePrefixRequest) returns (DeleteByNamePrefixResponse) {} -} - -message Job { - // The schedule for the job. - optional string schedule = 1; - - // Optional: jobs with fixed repeat counts (accounting for Actor Reminders). - optional uint32 repeats = 2; - - // Optional: sets time at which or time interval before the callback is invoked for the first time. - optional string due_time = 3; - - // Optional: Time To Live to allow for auto deletes (accounting for Actor Reminders). - optional string ttl = 4; - - // Job data. - google.protobuf.Any data = 5; - - // failure_policy is the optional policy to apply when a job fails to - // trigger. - // By default, the failure policy is FailurePolicyConstant with a 1s interval - // and 3 maximum retries. - optional common.v1.JobFailurePolicy failure_policy = 6; -} - -// TargetJob is the message used by the daprd sidecar to schedule a job -// from an App. -message TargetJob {} - -// TargetActorReminder is the message used by the daprd sidecar to -// schedule a job from an Actor Reminder. -message TargetActorReminder { - // id is the actor ID. - string id = 1; - - // type is the actor type. - string type = 2; -} - -// JobTargetType is the type of the job target. -enum JobTargetType { - // JOB_TARGET_TYPE_JOB is the job target type. - JOB_TARGET_TYPE_JOB = 0; - - // JOB_TARGET_TYPE_ACTOR_REMINDER is the actor reminder target type. - JOB_TARGET_TYPE_ACTOR_REMINDER = 1; -} - -// JobTargetMetadata holds the typed metadata associated with the job for -// different origins. -message JobTargetMetadata { - oneof type { - TargetJob job = 1; - TargetActorReminder actor = 2; - } -} - -// JobMetadata is the message used by the daprd sidecar to schedule/get/delete a -// job. -message JobMetadata { - // app_id is the App ID of the requester. - string app_id = 1; - - // namespace is the namespace of the requester. - string namespace = 2; - - // target is the type of the job. - JobTargetMetadata target = 3; -} - -// WatchJobsRequest is the message used by the daprd sidecar to connect to the -// Scheduler and send Job process results. -message WatchJobsRequest { - oneof watch_job_request_type { - WatchJobsRequestInitial initial = 1; - WatchJobsRequestResult result = 2; - } -} - -// WatchJobsRequestInitial is the initial request to start watching for jobs. -message WatchJobsRequestInitial { - // app_id is the App ID of the requester. - string app_id = 1; - - // namespace is the namespace of the requester. - string namespace = 2; - - // actor_types is the optional list of actor types to watch for. - repeated string actor_types = 3; - - // accept_job_types is the list of job types which the client will watch for - // and accept upon triggering accept. - repeated JobTargetType accept_job_types = 4; -} - -// WatchJobsRequestResultStatus is sent by clients to signal where the job -// triggering was sucessful or failed, in which case should be handled by the -// failure policy of the job. -enum WatchJobsRequestResultStatus { - // The job was processed successfully. - SUCCESS = 0; - - // The job was processed with an error. - FAILED = 1; -} - -// WatchJobsRequestResult is the result of a job execution to allow the job to -// be marked as processed. -message WatchJobsRequestResult { - // id is the id of the job that has finished processing, used as an incremental counter. - uint64 id = 1; - - // status is the status of the job processing. - WatchJobsRequestResultStatus status = 2; -} - -// WatchJobsResponse is the response message to convey the details of a job. -message WatchJobsResponse { - // name is the name of the job which was triggered. - string name = 1; - - // id is the id of the job trigger event which should be sent back from - // the client to be marked as processed, used as an incremental counter. - uint64 id = 2; - - // Job data. - google.protobuf.Any data = 3; - - // The metadata associated with the job. - JobMetadata metadata = 4; -} - -message ScheduleJobRequest { - // name is the name of the job to create. - string name = 1; - - // The job to be scheduled. - Job job = 2; - - // The metadata associated with the job. - JobMetadata metadata = 3; - - // If true, allows this job to overwrite an existing job with the same name. - bool overwrite = 4; -} - -message ScheduleJobResponse { - // Empty -} - -// GetJobRequest is the message used by the daprd sidecar to delete or get a job. -message GetJobRequest { - // name is the name of the job. - string name = 1; - - // The metadata associated with the job. - JobMetadata metadata = 2; -} - -// GetJobResponse is the response message to convey the details of a job. -message GetJobResponse { - // The job to be scheduled. - Job job = 1; -} - -// DeleteJobRequest is the message used by the daprd sidecar to delete or get a job. -message DeleteJobRequest { - string name = 1; - - // The metadata associated with the job. - JobMetadata metadata = 2; -} - -// DeleteJobRequest is the response message used by the daprd sidecar to delete or get a job. -message DeleteJobResponse { - // Empty -} - -// NamedJob is a job with a name. -message NamedJob { - // name is the name of the job. - string name = 1; - - // The metadata associated with the job. - JobMetadata metadata = 2; - - // The job scheduled. - Job job = 3; -} - -// ListJobsRequest is the message used by the daprd sidecar to list all jobs. -message ListJobsRequest { - // The metadata associated with the job. - JobMetadata metadata = 1; -} - -// ListJobsResponse is the response message to convey the details of a job. -message ListJobsResponse { - // The list of jobs. - repeated NamedJob jobs = 1; -} - -// WatchHostsRequest is the message used by the daprd sidecar to connect to the -// Scheduler and watch for hosts. -message WatchHostsRequest {} - -// WatchHostsResponse is the response message to convey the details of a host. -message WatchHostsResponse { - // hosts is the list of current active scheduler hosts in the cluster. - repeated Host hosts = 1; -} - -// Host is the message used to represent a host. -message Host { - // address is the address of the host. - string address = 1; -} - -// DeleteByMetadataRequest is the message used by the daprd sidecar to delete jobs by metadata. -message DeleteByMetadataRequest { - // The metadata target to delete jobs by. - JobMetadata metadata = 1; - - // id_prefix_match indicates whether to match by prefix for the ID field in - // Actor Reminders. When true, all jobs with IDs that start with the - // specified ID will be deleted. When false, only the ID/appID with the exact - // ID will be deleted. - // Default is false. - optional bool id_prefix_match = 2; -} - -// DeleteByMetadataResponse is the response message used by the daprd sidecar to delete jobs by metadata. -message DeleteByMetadataResponse { - // Empty -} - -// DeleteByNamePrefixRequest is the message used by the daprd sidecar to delete jobs by name prefix. -// An empty prefix deletes all jobs from the target. -message DeleteByNamePrefixRequest { - // name_prefix is the name prefix to delete jobs by. - // An empty prefix deletes all jobs from the target. - string name_prefix = 1; - - // The metadata associated with the job. - JobMetadata metadata = 2; -} - -message DeleteByNamePrefixResponse { - // Empty -} diff --git a/src/proto/dapr/proto/scheduler/v1/scheduler_grpc_pb.d.ts b/src/proto/dapr/proto/scheduler/v1/scheduler_grpc_pb.d.ts deleted file mode 100644 index 19a57b53..00000000 --- a/src/proto/dapr/proto/scheduler/v1/scheduler_grpc_pb.d.ts +++ /dev/null @@ -1,159 +0,0 @@ -// package: dapr.proto.scheduler.v1 -// file: dapr/proto/scheduler/v1/scheduler.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as dapr_proto_scheduler_v1_scheduler_pb from "../../../../dapr/proto/scheduler/v1/scheduler_pb"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; - -interface ISchedulerService extends grpc.ServiceDefinition { - scheduleJob: ISchedulerService_IScheduleJob; - getJob: ISchedulerService_IGetJob; - deleteJob: ISchedulerService_IDeleteJob; - watchJobs: ISchedulerService_IWatchJobs; - listJobs: ISchedulerService_IListJobs; - watchHosts: ISchedulerService_IWatchHosts; - deleteByMetadata: ISchedulerService_IDeleteByMetadata; - deleteByNamePrefix: ISchedulerService_IDeleteByNamePrefix; -} - -interface ISchedulerService_IScheduleJob extends grpc.MethodDefinition { - path: "/dapr.proto.scheduler.v1.Scheduler/ScheduleJob"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ISchedulerService_IGetJob extends grpc.MethodDefinition { - path: "/dapr.proto.scheduler.v1.Scheduler/GetJob"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ISchedulerService_IDeleteJob extends grpc.MethodDefinition { - path: "/dapr.proto.scheduler.v1.Scheduler/DeleteJob"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ISchedulerService_IWatchJobs extends grpc.MethodDefinition { - path: "/dapr.proto.scheduler.v1.Scheduler/WatchJobs"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ISchedulerService_IListJobs extends grpc.MethodDefinition { - path: "/dapr.proto.scheduler.v1.Scheduler/ListJobs"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ISchedulerService_IWatchHosts extends grpc.MethodDefinition { - path: "/dapr.proto.scheduler.v1.Scheduler/WatchHosts"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ISchedulerService_IDeleteByMetadata extends grpc.MethodDefinition { - path: "/dapr.proto.scheduler.v1.Scheduler/DeleteByMetadata"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface ISchedulerService_IDeleteByNamePrefix extends grpc.MethodDefinition { - path: "/dapr.proto.scheduler.v1.Scheduler/DeleteByNamePrefix"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const SchedulerService: ISchedulerService; - -export interface ISchedulerServer extends grpc.UntypedServiceImplementation { - scheduleJob: grpc.handleUnaryCall; - getJob: grpc.handleUnaryCall; - deleteJob: grpc.handleUnaryCall; - watchJobs: grpc.handleBidiStreamingCall; - listJobs: grpc.handleUnaryCall; - watchHosts: grpc.handleServerStreamingCall; - deleteByMetadata: grpc.handleUnaryCall; - deleteByNamePrefix: grpc.handleUnaryCall; -} - -export interface ISchedulerClient { - scheduleJob(request: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - scheduleJob(request: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - scheduleJob(request: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - getJob(request: dapr_proto_scheduler_v1_scheduler_pb.GetJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - getJob(request: dapr_proto_scheduler_v1_scheduler_pb.GetJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - getJob(request: dapr_proto_scheduler_v1_scheduler_pb.GetJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - deleteJob(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - deleteJob(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - deleteJob(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - watchJobs(): grpc.ClientDuplexStream; - watchJobs(options: Partial): grpc.ClientDuplexStream; - watchJobs(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - listJobs(request: dapr_proto_scheduler_v1_scheduler_pb.ListJobsRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ListJobsResponse) => void): grpc.ClientUnaryCall; - listJobs(request: dapr_proto_scheduler_v1_scheduler_pb.ListJobsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ListJobsResponse) => void): grpc.ClientUnaryCall; - listJobs(request: dapr_proto_scheduler_v1_scheduler_pb.ListJobsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ListJobsResponse) => void): grpc.ClientUnaryCall; - watchHosts(request: dapr_proto_scheduler_v1_scheduler_pb.WatchHostsRequest, options?: Partial): grpc.ClientReadableStream; - watchHosts(request: dapr_proto_scheduler_v1_scheduler_pb.WatchHostsRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - deleteByMetadata(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataResponse) => void): grpc.ClientUnaryCall; - deleteByMetadata(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataResponse) => void): grpc.ClientUnaryCall; - deleteByMetadata(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataResponse) => void): grpc.ClientUnaryCall; - deleteByNamePrefix(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixResponse) => void): grpc.ClientUnaryCall; - deleteByNamePrefix(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixResponse) => void): grpc.ClientUnaryCall; - deleteByNamePrefix(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixResponse) => void): grpc.ClientUnaryCall; -} - -export class SchedulerClient extends grpc.Client implements ISchedulerClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public scheduleJob(request: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - public scheduleJob(request: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - public scheduleJob(request: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobResponse) => void): grpc.ClientUnaryCall; - public getJob(request: dapr_proto_scheduler_v1_scheduler_pb.GetJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - public getJob(request: dapr_proto_scheduler_v1_scheduler_pb.GetJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - public getJob(request: dapr_proto_scheduler_v1_scheduler_pb.GetJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.GetJobResponse) => void): grpc.ClientUnaryCall; - public deleteJob(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - public deleteJob(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - public deleteJob(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobResponse) => void): grpc.ClientUnaryCall; - public watchJobs(options?: Partial): grpc.ClientDuplexStream; - public watchJobs(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public listJobs(request: dapr_proto_scheduler_v1_scheduler_pb.ListJobsRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ListJobsResponse) => void): grpc.ClientUnaryCall; - public listJobs(request: dapr_proto_scheduler_v1_scheduler_pb.ListJobsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ListJobsResponse) => void): grpc.ClientUnaryCall; - public listJobs(request: dapr_proto_scheduler_v1_scheduler_pb.ListJobsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.ListJobsResponse) => void): grpc.ClientUnaryCall; - public watchHosts(request: dapr_proto_scheduler_v1_scheduler_pb.WatchHostsRequest, options?: Partial): grpc.ClientReadableStream; - public watchHosts(request: dapr_proto_scheduler_v1_scheduler_pb.WatchHostsRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public deleteByMetadata(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataResponse) => void): grpc.ClientUnaryCall; - public deleteByMetadata(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataResponse) => void): grpc.ClientUnaryCall; - public deleteByMetadata(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataResponse) => void): grpc.ClientUnaryCall; - public deleteByNamePrefix(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixRequest, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixResponse) => void): grpc.ClientUnaryCall; - public deleteByNamePrefix(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixResponse) => void): grpc.ClientUnaryCall; - public deleteByNamePrefix(request: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixResponse) => void): grpc.ClientUnaryCall; -} diff --git a/src/proto/dapr/proto/scheduler/v1/scheduler_grpc_pb.js b/src/proto/dapr/proto/scheduler/v1/scheduler_grpc_pb.js deleted file mode 100644 index d531502c..00000000 --- a/src/proto/dapr/proto/scheduler/v1/scheduler_grpc_pb.js +++ /dev/null @@ -1,290 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var dapr_proto_scheduler_v1_scheduler_pb = require('../../../../dapr/proto/scheduler/v1/scheduler_pb.js'); -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); - -function serialize_dapr_proto_scheduler_v1_DeleteByMetadataRequest(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataRequest)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.DeleteByMetadataRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_DeleteByMetadataRequest(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_DeleteByMetadataResponse(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataResponse)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.DeleteByMetadataResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_DeleteByMetadataResponse(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_DeleteByNamePrefixRequest(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixRequest)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.DeleteByNamePrefixRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_DeleteByNamePrefixRequest(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_DeleteByNamePrefixResponse(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixResponse)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.DeleteByNamePrefixResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_DeleteByNamePrefixResponse(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_DeleteJobRequest(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.DeleteJobRequest)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.DeleteJobRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_DeleteJobRequest(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.DeleteJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_DeleteJobResponse(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.DeleteJobResponse)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.DeleteJobResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_DeleteJobResponse(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.DeleteJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_GetJobRequest(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.GetJobRequest)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.GetJobRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_GetJobRequest(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.GetJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_GetJobResponse(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.GetJobResponse)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.GetJobResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_GetJobResponse(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.GetJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_ListJobsRequest(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.ListJobsRequest)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.ListJobsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_ListJobsRequest(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.ListJobsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_ListJobsResponse(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.ListJobsResponse)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.ListJobsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_ListJobsResponse(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.ListJobsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_ScheduleJobRequest(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobRequest)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.ScheduleJobRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_ScheduleJobRequest(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_ScheduleJobResponse(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobResponse)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.ScheduleJobResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_ScheduleJobResponse(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_WatchHostsRequest(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.WatchHostsRequest)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.WatchHostsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_WatchHostsRequest(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.WatchHostsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_WatchHostsResponse(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.WatchHostsResponse)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.WatchHostsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_WatchHostsResponse(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.WatchHostsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_WatchJobsRequest(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.WatchJobsRequest)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.WatchJobsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_WatchJobsRequest(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.WatchJobsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_dapr_proto_scheduler_v1_WatchJobsResponse(arg) { - if (!(arg instanceof dapr_proto_scheduler_v1_scheduler_pb.WatchJobsResponse)) { - throw new Error('Expected argument of type dapr.proto.scheduler.v1.WatchJobsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_dapr_proto_scheduler_v1_WatchJobsResponse(buffer_arg) { - return dapr_proto_scheduler_v1_scheduler_pb.WatchJobsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var SchedulerService = exports.SchedulerService = { - // ScheduleJob is used by the daprd sidecar to schedule a job. -scheduleJob: { - path: '/dapr.proto.scheduler.v1.Scheduler/ScheduleJob', - requestStream: false, - responseStream: false, - requestType: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobRequest, - responseType: dapr_proto_scheduler_v1_scheduler_pb.ScheduleJobResponse, - requestSerialize: serialize_dapr_proto_scheduler_v1_ScheduleJobRequest, - requestDeserialize: deserialize_dapr_proto_scheduler_v1_ScheduleJobRequest, - responseSerialize: serialize_dapr_proto_scheduler_v1_ScheduleJobResponse, - responseDeserialize: deserialize_dapr_proto_scheduler_v1_ScheduleJobResponse, - }, - // Get a job -getJob: { - path: '/dapr.proto.scheduler.v1.Scheduler/GetJob', - requestStream: false, - responseStream: false, - requestType: dapr_proto_scheduler_v1_scheduler_pb.GetJobRequest, - responseType: dapr_proto_scheduler_v1_scheduler_pb.GetJobResponse, - requestSerialize: serialize_dapr_proto_scheduler_v1_GetJobRequest, - requestDeserialize: deserialize_dapr_proto_scheduler_v1_GetJobRequest, - responseSerialize: serialize_dapr_proto_scheduler_v1_GetJobResponse, - responseDeserialize: deserialize_dapr_proto_scheduler_v1_GetJobResponse, - }, - // DeleteJob is used by the daprd sidecar to delete a job. -deleteJob: { - path: '/dapr.proto.scheduler.v1.Scheduler/DeleteJob', - requestStream: false, - responseStream: false, - requestType: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobRequest, - responseType: dapr_proto_scheduler_v1_scheduler_pb.DeleteJobResponse, - requestSerialize: serialize_dapr_proto_scheduler_v1_DeleteJobRequest, - requestDeserialize: deserialize_dapr_proto_scheduler_v1_DeleteJobRequest, - responseSerialize: serialize_dapr_proto_scheduler_v1_DeleteJobResponse, - responseDeserialize: deserialize_dapr_proto_scheduler_v1_DeleteJobResponse, - }, - // WatchJobs is used by the daprd sidecar to connect to the Scheduler -// service to watch for jobs triggering back. -watchJobs: { - path: '/dapr.proto.scheduler.v1.Scheduler/WatchJobs', - requestStream: true, - responseStream: true, - requestType: dapr_proto_scheduler_v1_scheduler_pb.WatchJobsRequest, - responseType: dapr_proto_scheduler_v1_scheduler_pb.WatchJobsResponse, - requestSerialize: serialize_dapr_proto_scheduler_v1_WatchJobsRequest, - requestDeserialize: deserialize_dapr_proto_scheduler_v1_WatchJobsRequest, - responseSerialize: serialize_dapr_proto_scheduler_v1_WatchJobsResponse, - responseDeserialize: deserialize_dapr_proto_scheduler_v1_WatchJobsResponse, - }, - // ListJobs is used by the daprd sidecar to list all jobs. -listJobs: { - path: '/dapr.proto.scheduler.v1.Scheduler/ListJobs', - requestStream: false, - responseStream: false, - requestType: dapr_proto_scheduler_v1_scheduler_pb.ListJobsRequest, - responseType: dapr_proto_scheduler_v1_scheduler_pb.ListJobsResponse, - requestSerialize: serialize_dapr_proto_scheduler_v1_ListJobsRequest, - requestDeserialize: deserialize_dapr_proto_scheduler_v1_ListJobsRequest, - responseSerialize: serialize_dapr_proto_scheduler_v1_ListJobsResponse, - responseDeserialize: deserialize_dapr_proto_scheduler_v1_ListJobsResponse, - }, - // WatchHosts is used by the daprd sidecar to retrieve the list of active -// scheduler hosts so that it can connect to each. Receives an updated list -// on leadership changes. -watchHosts: { - path: '/dapr.proto.scheduler.v1.Scheduler/WatchHosts', - requestStream: false, - responseStream: true, - requestType: dapr_proto_scheduler_v1_scheduler_pb.WatchHostsRequest, - responseType: dapr_proto_scheduler_v1_scheduler_pb.WatchHostsResponse, - requestSerialize: serialize_dapr_proto_scheduler_v1_WatchHostsRequest, - requestDeserialize: deserialize_dapr_proto_scheduler_v1_WatchHostsRequest, - responseSerialize: serialize_dapr_proto_scheduler_v1_WatchHostsResponse, - responseDeserialize: deserialize_dapr_proto_scheduler_v1_WatchHostsResponse, - }, - // DeleteByMetadata is used by the daprd sidecar to delete jobs by a metadata -// target. -deleteByMetadata: { - path: '/dapr.proto.scheduler.v1.Scheduler/DeleteByMetadata', - requestStream: false, - responseStream: false, - requestType: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataRequest, - responseType: dapr_proto_scheduler_v1_scheduler_pb.DeleteByMetadataResponse, - requestSerialize: serialize_dapr_proto_scheduler_v1_DeleteByMetadataRequest, - requestDeserialize: deserialize_dapr_proto_scheduler_v1_DeleteByMetadataRequest, - responseSerialize: serialize_dapr_proto_scheduler_v1_DeleteByMetadataResponse, - responseDeserialize: deserialize_dapr_proto_scheduler_v1_DeleteByMetadataResponse, - }, - // DeleteByNamePrefix is used by the daprd sidecar to delete jobs by name -// prefix. An empty prefix deletes all jobs from the target. -deleteByNamePrefix: { - path: '/dapr.proto.scheduler.v1.Scheduler/DeleteByNamePrefix', - requestStream: false, - responseStream: false, - requestType: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixRequest, - responseType: dapr_proto_scheduler_v1_scheduler_pb.DeleteByNamePrefixResponse, - requestSerialize: serialize_dapr_proto_scheduler_v1_DeleteByNamePrefixRequest, - requestDeserialize: deserialize_dapr_proto_scheduler_v1_DeleteByNamePrefixRequest, - responseSerialize: serialize_dapr_proto_scheduler_v1_DeleteByNamePrefixResponse, - responseDeserialize: deserialize_dapr_proto_scheduler_v1_DeleteByNamePrefixResponse, - }, -}; - -exports.SchedulerClient = grpc.makeGenericClientConstructor(SchedulerService, 'Scheduler'); diff --git a/src/proto/dapr/proto/scheduler/v1/scheduler_pb.d.ts b/src/proto/dapr/proto/scheduler/v1/scheduler_pb.d.ts deleted file mode 100644 index 91ab19a1..00000000 --- a/src/proto/dapr/proto/scheduler/v1/scheduler_pb.d.ts +++ /dev/null @@ -1,677 +0,0 @@ -// package: dapr.proto.scheduler.v1 -// file: dapr/proto/scheduler/v1/scheduler.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as dapr_proto_common_v1_common_pb from "../../../../dapr/proto/common/v1/common_pb"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; - -export class Job extends jspb.Message { - - 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; - - hasFailurePolicy(): boolean; - clearFailurePolicy(): void; - getFailurePolicy(): dapr_proto_common_v1_common_pb.JobFailurePolicy | undefined; - setFailurePolicy(value?: dapr_proto_common_v1_common_pb.JobFailurePolicy): 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 = { - schedule?: string, - repeats?: number, - dueTime?: string, - ttl?: string, - data?: google_protobuf_any_pb.Any.AsObject, - failurePolicy?: dapr_proto_common_v1_common_pb.JobFailurePolicy.AsObject, - } -} - -export class TargetJob extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TargetJob.AsObject; - static toObject(includeInstance: boolean, msg: TargetJob): TargetJob.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TargetJob, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TargetJob; - static deserializeBinaryFromReader(message: TargetJob, reader: jspb.BinaryReader): TargetJob; -} - -export namespace TargetJob { - export type AsObject = { - } -} - -export class TargetActorReminder extends jspb.Message { - getId(): string; - setId(value: string): TargetActorReminder; - getType(): string; - setType(value: string): TargetActorReminder; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TargetActorReminder.AsObject; - static toObject(includeInstance: boolean, msg: TargetActorReminder): TargetActorReminder.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TargetActorReminder, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TargetActorReminder; - static deserializeBinaryFromReader(message: TargetActorReminder, reader: jspb.BinaryReader): TargetActorReminder; -} - -export namespace TargetActorReminder { - export type AsObject = { - id: string, - type: string, - } -} - -export class JobTargetMetadata extends jspb.Message { - - hasJob(): boolean; - clearJob(): void; - getJob(): TargetJob | undefined; - setJob(value?: TargetJob): JobTargetMetadata; - - hasActor(): boolean; - clearActor(): void; - getActor(): TargetActorReminder | undefined; - setActor(value?: TargetActorReminder): JobTargetMetadata; - - getTypeCase(): JobTargetMetadata.TypeCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JobTargetMetadata.AsObject; - static toObject(includeInstance: boolean, msg: JobTargetMetadata): JobTargetMetadata.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: JobTargetMetadata, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JobTargetMetadata; - static deserializeBinaryFromReader(message: JobTargetMetadata, reader: jspb.BinaryReader): JobTargetMetadata; -} - -export namespace JobTargetMetadata { - export type AsObject = { - job?: TargetJob.AsObject, - actor?: TargetActorReminder.AsObject, - } - - export enum TypeCase { - TYPE_NOT_SET = 0, - JOB = 1, - ACTOR = 2, - } - -} - -export class JobMetadata extends jspb.Message { - getAppId(): string; - setAppId(value: string): JobMetadata; - getNamespace(): string; - setNamespace(value: string): JobMetadata; - - hasTarget(): boolean; - clearTarget(): void; - getTarget(): JobTargetMetadata | undefined; - setTarget(value?: JobTargetMetadata): JobMetadata; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JobMetadata.AsObject; - static toObject(includeInstance: boolean, msg: JobMetadata): JobMetadata.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: JobMetadata, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JobMetadata; - static deserializeBinaryFromReader(message: JobMetadata, reader: jspb.BinaryReader): JobMetadata; -} - -export namespace JobMetadata { - export type AsObject = { - appId: string, - namespace: string, - target?: JobTargetMetadata.AsObject, - } -} - -export class WatchJobsRequest extends jspb.Message { - - hasInitial(): boolean; - clearInitial(): void; - getInitial(): WatchJobsRequestInitial | undefined; - setInitial(value?: WatchJobsRequestInitial): WatchJobsRequest; - - hasResult(): boolean; - clearResult(): void; - getResult(): WatchJobsRequestResult | undefined; - setResult(value?: WatchJobsRequestResult): WatchJobsRequest; - - getWatchJobRequestTypeCase(): WatchJobsRequest.WatchJobRequestTypeCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WatchJobsRequest.AsObject; - static toObject(includeInstance: boolean, msg: WatchJobsRequest): WatchJobsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WatchJobsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WatchJobsRequest; - static deserializeBinaryFromReader(message: WatchJobsRequest, reader: jspb.BinaryReader): WatchJobsRequest; -} - -export namespace WatchJobsRequest { - export type AsObject = { - initial?: WatchJobsRequestInitial.AsObject, - result?: WatchJobsRequestResult.AsObject, - } - - export enum WatchJobRequestTypeCase { - WATCH_JOB_REQUEST_TYPE_NOT_SET = 0, - INITIAL = 1, - RESULT = 2, - } - -} - -export class WatchJobsRequestInitial extends jspb.Message { - getAppId(): string; - setAppId(value: string): WatchJobsRequestInitial; - getNamespace(): string; - setNamespace(value: string): WatchJobsRequestInitial; - clearActorTypesList(): void; - getActorTypesList(): Array; - setActorTypesList(value: Array): WatchJobsRequestInitial; - addActorTypes(value: string, index?: number): string; - clearAcceptJobTypesList(): void; - getAcceptJobTypesList(): Array; - setAcceptJobTypesList(value: Array): WatchJobsRequestInitial; - addAcceptJobTypes(value: JobTargetType, index?: number): JobTargetType; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WatchJobsRequestInitial.AsObject; - static toObject(includeInstance: boolean, msg: WatchJobsRequestInitial): WatchJobsRequestInitial.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WatchJobsRequestInitial, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WatchJobsRequestInitial; - static deserializeBinaryFromReader(message: WatchJobsRequestInitial, reader: jspb.BinaryReader): WatchJobsRequestInitial; -} - -export namespace WatchJobsRequestInitial { - export type AsObject = { - appId: string, - namespace: string, - actorTypesList: Array, - acceptJobTypesList: Array, - } -} - -export class WatchJobsRequestResult extends jspb.Message { - getId(): number; - setId(value: number): WatchJobsRequestResult; - getStatus(): WatchJobsRequestResultStatus; - setStatus(value: WatchJobsRequestResultStatus): WatchJobsRequestResult; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WatchJobsRequestResult.AsObject; - static toObject(includeInstance: boolean, msg: WatchJobsRequestResult): WatchJobsRequestResult.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WatchJobsRequestResult, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WatchJobsRequestResult; - static deserializeBinaryFromReader(message: WatchJobsRequestResult, reader: jspb.BinaryReader): WatchJobsRequestResult; -} - -export namespace WatchJobsRequestResult { - export type AsObject = { - id: number, - status: WatchJobsRequestResultStatus, - } -} - -export class WatchJobsResponse extends jspb.Message { - getName(): string; - setName(value: string): WatchJobsResponse; - getId(): number; - setId(value: number): WatchJobsResponse; - - hasData(): boolean; - clearData(): void; - getData(): google_protobuf_any_pb.Any | undefined; - setData(value?: google_protobuf_any_pb.Any): WatchJobsResponse; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): JobMetadata | undefined; - setMetadata(value?: JobMetadata): WatchJobsResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WatchJobsResponse.AsObject; - static toObject(includeInstance: boolean, msg: WatchJobsResponse): WatchJobsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WatchJobsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WatchJobsResponse; - static deserializeBinaryFromReader(message: WatchJobsResponse, reader: jspb.BinaryReader): WatchJobsResponse; -} - -export namespace WatchJobsResponse { - export type AsObject = { - name: string, - id: number, - data?: google_protobuf_any_pb.Any.AsObject, - metadata?: JobMetadata.AsObject, - } -} - -export class ScheduleJobRequest extends jspb.Message { - getName(): string; - setName(value: string): ScheduleJobRequest; - - hasJob(): boolean; - clearJob(): void; - getJob(): Job | undefined; - setJob(value?: Job): ScheduleJobRequest; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): JobMetadata | undefined; - setMetadata(value?: JobMetadata): ScheduleJobRequest; - getOverwrite(): boolean; - setOverwrite(value: boolean): 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 = { - name: string, - job?: Job.AsObject, - metadata?: JobMetadata.AsObject, - overwrite: boolean, - } -} - -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; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): JobMetadata | undefined; - setMetadata(value?: JobMetadata): 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, - metadata?: JobMetadata.AsObject, - } -} - -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; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): JobMetadata | undefined; - setMetadata(value?: JobMetadata): 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, - metadata?: JobMetadata.AsObject, - } -} - -export class DeleteJobResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteJobResponse.AsObject; - static toObject(includeInstance: boolean, msg: DeleteJobResponse): DeleteJobResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteJobResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteJobResponse; - static deserializeBinaryFromReader(message: DeleteJobResponse, reader: jspb.BinaryReader): DeleteJobResponse; -} - -export namespace DeleteJobResponse { - export type AsObject = { - } -} - -export class NamedJob extends jspb.Message { - getName(): string; - setName(value: string): NamedJob; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): JobMetadata | undefined; - setMetadata(value?: JobMetadata): NamedJob; - - hasJob(): boolean; - clearJob(): void; - getJob(): Job | undefined; - setJob(value?: Job): NamedJob; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NamedJob.AsObject; - static toObject(includeInstance: boolean, msg: NamedJob): NamedJob.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NamedJob, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NamedJob; - static deserializeBinaryFromReader(message: NamedJob, reader: jspb.BinaryReader): NamedJob; -} - -export namespace NamedJob { - export type AsObject = { - name: string, - metadata?: JobMetadata.AsObject, - job?: Job.AsObject, - } -} - -export class ListJobsRequest extends jspb.Message { - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): JobMetadata | undefined; - setMetadata(value?: JobMetadata): ListJobsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListJobsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListJobsRequest): ListJobsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListJobsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListJobsRequest; - static deserializeBinaryFromReader(message: ListJobsRequest, reader: jspb.BinaryReader): ListJobsRequest; -} - -export namespace ListJobsRequest { - export type AsObject = { - metadata?: JobMetadata.AsObject, - } -} - -export class ListJobsResponse extends jspb.Message { - clearJobsList(): void; - getJobsList(): Array; - setJobsList(value: Array): ListJobsResponse; - addJobs(value?: NamedJob, index?: number): NamedJob; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListJobsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListJobsResponse): ListJobsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListJobsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListJobsResponse; - static deserializeBinaryFromReader(message: ListJobsResponse, reader: jspb.BinaryReader): ListJobsResponse; -} - -export namespace ListJobsResponse { - export type AsObject = { - jobsList: Array, - } -} - -export class WatchHostsRequest extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WatchHostsRequest.AsObject; - static toObject(includeInstance: boolean, msg: WatchHostsRequest): WatchHostsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WatchHostsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WatchHostsRequest; - static deserializeBinaryFromReader(message: WatchHostsRequest, reader: jspb.BinaryReader): WatchHostsRequest; -} - -export namespace WatchHostsRequest { - export type AsObject = { - } -} - -export class WatchHostsResponse extends jspb.Message { - clearHostsList(): void; - getHostsList(): Array; - setHostsList(value: Array): WatchHostsResponse; - addHosts(value?: Host, index?: number): Host; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WatchHostsResponse.AsObject; - static toObject(includeInstance: boolean, msg: WatchHostsResponse): WatchHostsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WatchHostsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WatchHostsResponse; - static deserializeBinaryFromReader(message: WatchHostsResponse, reader: jspb.BinaryReader): WatchHostsResponse; -} - -export namespace WatchHostsResponse { - export type AsObject = { - hostsList: Array, - } -} - -export class Host extends jspb.Message { - getAddress(): string; - setAddress(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 = { - address: string, - } -} - -export class DeleteByMetadataRequest extends jspb.Message { - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): JobMetadata | undefined; - setMetadata(value?: JobMetadata): DeleteByMetadataRequest; - - hasIdPrefixMatch(): boolean; - clearIdPrefixMatch(): void; - getIdPrefixMatch(): boolean | undefined; - setIdPrefixMatch(value: boolean): DeleteByMetadataRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteByMetadataRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteByMetadataRequest): DeleteByMetadataRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteByMetadataRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteByMetadataRequest; - static deserializeBinaryFromReader(message: DeleteByMetadataRequest, reader: jspb.BinaryReader): DeleteByMetadataRequest; -} - -export namespace DeleteByMetadataRequest { - export type AsObject = { - metadata?: JobMetadata.AsObject, - idPrefixMatch?: boolean, - } -} - -export class DeleteByMetadataResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteByMetadataResponse.AsObject; - static toObject(includeInstance: boolean, msg: DeleteByMetadataResponse): DeleteByMetadataResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteByMetadataResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteByMetadataResponse; - static deserializeBinaryFromReader(message: DeleteByMetadataResponse, reader: jspb.BinaryReader): DeleteByMetadataResponse; -} - -export namespace DeleteByMetadataResponse { - export type AsObject = { - } -} - -export class DeleteByNamePrefixRequest extends jspb.Message { - getNamePrefix(): string; - setNamePrefix(value: string): DeleteByNamePrefixRequest; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): JobMetadata | undefined; - setMetadata(value?: JobMetadata): DeleteByNamePrefixRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteByNamePrefixRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteByNamePrefixRequest): DeleteByNamePrefixRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteByNamePrefixRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteByNamePrefixRequest; - static deserializeBinaryFromReader(message: DeleteByNamePrefixRequest, reader: jspb.BinaryReader): DeleteByNamePrefixRequest; -} - -export namespace DeleteByNamePrefixRequest { - export type AsObject = { - namePrefix: string, - metadata?: JobMetadata.AsObject, - } -} - -export class DeleteByNamePrefixResponse extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteByNamePrefixResponse.AsObject; - static toObject(includeInstance: boolean, msg: DeleteByNamePrefixResponse): DeleteByNamePrefixResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteByNamePrefixResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteByNamePrefixResponse; - static deserializeBinaryFromReader(message: DeleteByNamePrefixResponse, reader: jspb.BinaryReader): DeleteByNamePrefixResponse; -} - -export namespace DeleteByNamePrefixResponse { - export type AsObject = { - } -} - -export enum JobTargetType { - JOB_TARGET_TYPE_JOB = 0, - JOB_TARGET_TYPE_ACTOR_REMINDER = 1, -} - -export enum WatchJobsRequestResultStatus { - SUCCESS = 0, - FAILED = 1, -} diff --git a/src/proto/dapr/proto/scheduler/v1/scheduler_pb.js b/src/proto/dapr/proto/scheduler/v1/scheduler_pb.js deleted file mode 100644 index fe1e9435..00000000 --- a/src/proto/dapr/proto/scheduler/v1/scheduler_pb.js +++ /dev/null @@ -1,5102 +0,0 @@ -// source: dapr/proto/scheduler/v1/scheduler.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js'); -goog.object.extend(proto, dapr_proto_common_v1_common_pb); -var 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.scheduler.v1.DeleteByMetadataRequest', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.DeleteJobRequest', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.DeleteJobResponse', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.GetJobRequest', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.GetJobResponse', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.Host', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.Job', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.JobMetadata', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.JobTargetMetadata', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.JobTargetMetadata.TypeCase', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.JobTargetType', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.ListJobsRequest', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.ListJobsResponse', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.NamedJob', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.ScheduleJobRequest', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.ScheduleJobResponse', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.TargetActorReminder', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.TargetJob', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.WatchHostsRequest', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.WatchHostsResponse', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.WatchJobsRequest', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.WatchJobsRequest.WatchJobRequestTypeCase', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.WatchJobsRequestResult', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.WatchJobsRequestResultStatus', null, global); -goog.exportSymbol('proto.dapr.proto.scheduler.v1.WatchJobsResponse', 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.scheduler.v1.Job = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.Job, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.Job.displayName = 'proto.dapr.proto.scheduler.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.scheduler.v1.TargetJob = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.TargetJob, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.TargetJob.displayName = 'proto.dapr.proto.scheduler.v1.TargetJob'; -} -/** - * 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.scheduler.v1.TargetActorReminder = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.TargetActorReminder, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.TargetActorReminder.displayName = 'proto.dapr.proto.scheduler.v1.TargetActorReminder'; -} -/** - * 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.scheduler.v1.JobTargetMetadata = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.dapr.proto.scheduler.v1.JobTargetMetadata.oneofGroups_); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.JobTargetMetadata, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.JobTargetMetadata.displayName = 'proto.dapr.proto.scheduler.v1.JobTargetMetadata'; -} -/** - * 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.scheduler.v1.JobMetadata = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.JobMetadata, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.JobMetadata.displayName = 'proto.dapr.proto.scheduler.v1.JobMetadata'; -} -/** - * 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.scheduler.v1.WatchJobsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.dapr.proto.scheduler.v1.WatchJobsRequest.oneofGroups_); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.WatchJobsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.WatchJobsRequest.displayName = 'proto.dapr.proto.scheduler.v1.WatchJobsRequest'; -} -/** - * 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.scheduler.v1.WatchJobsRequestInitial = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.displayName = 'proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial'; -} -/** - * 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.scheduler.v1.WatchJobsRequestResult = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.WatchJobsRequestResult, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.displayName = 'proto.dapr.proto.scheduler.v1.WatchJobsRequestResult'; -} -/** - * 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.scheduler.v1.WatchJobsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.WatchJobsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.WatchJobsResponse.displayName = 'proto.dapr.proto.scheduler.v1.WatchJobsResponse'; -} -/** - * 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.scheduler.v1.ScheduleJobRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.ScheduleJobRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.ScheduleJobRequest.displayName = 'proto.dapr.proto.scheduler.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.scheduler.v1.ScheduleJobResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.ScheduleJobResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.ScheduleJobResponse.displayName = 'proto.dapr.proto.scheduler.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.scheduler.v1.GetJobRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.GetJobRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.GetJobRequest.displayName = 'proto.dapr.proto.scheduler.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.scheduler.v1.GetJobResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.GetJobResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.GetJobResponse.displayName = 'proto.dapr.proto.scheduler.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.scheduler.v1.DeleteJobRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.DeleteJobRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.DeleteJobRequest.displayName = 'proto.dapr.proto.scheduler.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.scheduler.v1.DeleteJobResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.DeleteJobResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.DeleteJobResponse.displayName = 'proto.dapr.proto.scheduler.v1.DeleteJobResponse'; -} -/** - * 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.scheduler.v1.NamedJob = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.NamedJob, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.NamedJob.displayName = 'proto.dapr.proto.scheduler.v1.NamedJob'; -} -/** - * 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.scheduler.v1.ListJobsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.ListJobsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.ListJobsRequest.displayName = 'proto.dapr.proto.scheduler.v1.ListJobsRequest'; -} -/** - * 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.scheduler.v1.ListJobsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.scheduler.v1.ListJobsResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.ListJobsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.ListJobsResponse.displayName = 'proto.dapr.proto.scheduler.v1.ListJobsResponse'; -} -/** - * 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.scheduler.v1.WatchHostsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.WatchHostsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.WatchHostsRequest.displayName = 'proto.dapr.proto.scheduler.v1.WatchHostsRequest'; -} -/** - * 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.scheduler.v1.WatchHostsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.scheduler.v1.WatchHostsResponse.repeatedFields_, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.WatchHostsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.WatchHostsResponse.displayName = 'proto.dapr.proto.scheduler.v1.WatchHostsResponse'; -} -/** - * 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.scheduler.v1.Host = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.Host, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.Host.displayName = 'proto.dapr.proto.scheduler.v1.Host'; -} -/** - * 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.scheduler.v1.DeleteByMetadataRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.displayName = 'proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest'; -} -/** - * 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.scheduler.v1.DeleteByMetadataResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse.displayName = 'proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse'; -} -/** - * 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.scheduler.v1.DeleteByNamePrefixRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.displayName = 'proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest'; -} -/** - * 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.scheduler.v1.DeleteByNamePrefixResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse.displayName = 'proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse'; -} - - - -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.scheduler.v1.Job.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.Job.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.scheduler.v1.Job} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.Job.toObject = function(includeInstance, msg) { - var f, obj = { - schedule: jspb.Message.getFieldWithDefault(msg, 1, ""), - repeats: jspb.Message.getFieldWithDefault(msg, 2, 0), - dueTime: jspb.Message.getFieldWithDefault(msg, 3, ""), - ttl: jspb.Message.getFieldWithDefault(msg, 4, ""), - data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), - failurePolicy: (f = msg.getFailurePolicy()) && dapr_proto_common_v1_common_pb.JobFailurePolicy.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.scheduler.v1.Job} - */ -proto.dapr.proto.scheduler.v1.Job.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.Job; - return proto.dapr.proto.scheduler.v1.Job.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.Job} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.Job} - */ -proto.dapr.proto.scheduler.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.setSchedule(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRepeats(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDueTime(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTtl(value); - break; - case 5: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.setData(value); - break; - case 6: - var value = new dapr_proto_common_v1_common_pb.JobFailurePolicy; - reader.readMessage(value,dapr_proto_common_v1_common_pb.JobFailurePolicy.deserializeBinaryFromReader); - msg.setFailurePolicy(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.Job.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.scheduler.v1.Job} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.Job.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeUint32( - 2, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeString( - 3, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } - f = message.getFailurePolicy(); - if (f != null) { - writer.writeMessage( - 6, - f, - dapr_proto_common_v1_common_pb.JobFailurePolicy.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string schedule = 1; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.getSchedule = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this - */ -proto.dapr.proto.scheduler.v1.Job.prototype.setSchedule = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this - */ -proto.dapr.proto.scheduler.v1.Job.prototype.clearSchedule = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.hasSchedule = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional uint32 repeats = 2; - * @return {number} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.getRepeats = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this - */ -proto.dapr.proto.scheduler.v1.Job.prototype.setRepeats = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this - */ -proto.dapr.proto.scheduler.v1.Job.prototype.clearRepeats = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.hasRepeats = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string due_time = 3; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.getDueTime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this - */ -proto.dapr.proto.scheduler.v1.Job.prototype.setDueTime = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this - */ -proto.dapr.proto.scheduler.v1.Job.prototype.clearDueTime = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.hasDueTime = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string ttl = 4; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.getTtl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this - */ -proto.dapr.proto.scheduler.v1.Job.prototype.setTtl = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this - */ -proto.dapr.proto.scheduler.v1.Job.prototype.clearTtl = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.hasTtl = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional google.protobuf.Any data = 5; - * @return {?proto.google.protobuf.Any} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.getData = function() { - return /** @type{?proto.google.protobuf.Any} */ ( - jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 5)); -}; - - -/** - * @param {?proto.google.protobuf.Any|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this -*/ -proto.dapr.proto.scheduler.v1.Job.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this - */ -proto.dapr.proto.scheduler.v1.Job.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.hasData = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional dapr.proto.common.v1.JobFailurePolicy failure_policy = 6; - * @return {?proto.dapr.proto.common.v1.JobFailurePolicy} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.getFailurePolicy = function() { - return /** @type{?proto.dapr.proto.common.v1.JobFailurePolicy} */ ( - jspb.Message.getWrapperField(this, dapr_proto_common_v1_common_pb.JobFailurePolicy, 6)); -}; - - -/** - * @param {?proto.dapr.proto.common.v1.JobFailurePolicy|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this -*/ -proto.dapr.proto.scheduler.v1.Job.prototype.setFailurePolicy = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.Job} returns this - */ -proto.dapr.proto.scheduler.v1.Job.prototype.clearFailurePolicy = function() { - return this.setFailurePolicy(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.Job.prototype.hasFailurePolicy = function() { - return jspb.Message.getField(this, 6) != 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.scheduler.v1.TargetJob.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.TargetJob.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.scheduler.v1.TargetJob} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.TargetJob.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.scheduler.v1.TargetJob} - */ -proto.dapr.proto.scheduler.v1.TargetJob.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.TargetJob; - return proto.dapr.proto.scheduler.v1.TargetJob.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.TargetJob} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.TargetJob} - */ -proto.dapr.proto.scheduler.v1.TargetJob.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.scheduler.v1.TargetJob.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.TargetJob.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.scheduler.v1.TargetJob} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.TargetJob.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.scheduler.v1.TargetActorReminder.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.TargetActorReminder.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.scheduler.v1.TargetActorReminder} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.TargetActorReminder.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: 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.scheduler.v1.TargetActorReminder} - */ -proto.dapr.proto.scheduler.v1.TargetActorReminder.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.TargetActorReminder; - return proto.dapr.proto.scheduler.v1.TargetActorReminder.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.TargetActorReminder} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.TargetActorReminder} - */ -proto.dapr.proto.scheduler.v1.TargetActorReminder.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.setType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.TargetActorReminder.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.TargetActorReminder.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.scheduler.v1.TargetActorReminder} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.TargetActorReminder.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.TargetActorReminder.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.TargetActorReminder} returns this - */ -proto.dapr.proto.scheduler.v1.TargetActorReminder.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string type = 2; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.TargetActorReminder.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.TargetActorReminder} returns this - */ -proto.dapr.proto.scheduler.v1.TargetActorReminder.prototype.setType = 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.scheduler.v1.JobTargetMetadata.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.TypeCase = { - TYPE_NOT_SET: 0, - JOB: 1, - ACTOR: 2 -}; - -/** - * @return {proto.dapr.proto.scheduler.v1.JobTargetMetadata.TypeCase} - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.prototype.getTypeCase = function() { - return /** @type {proto.dapr.proto.scheduler.v1.JobTargetMetadata.TypeCase} */(jspb.Message.computeOneofCase(this, proto.dapr.proto.scheduler.v1.JobTargetMetadata.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.scheduler.v1.JobTargetMetadata.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.JobTargetMetadata.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.scheduler.v1.JobTargetMetadata} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.toObject = function(includeInstance, msg) { - var f, obj = { - job: (f = msg.getJob()) && proto.dapr.proto.scheduler.v1.TargetJob.toObject(includeInstance, f), - actor: (f = msg.getActor()) && proto.dapr.proto.scheduler.v1.TargetActorReminder.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.scheduler.v1.JobTargetMetadata} - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.JobTargetMetadata; - return proto.dapr.proto.scheduler.v1.JobTargetMetadata.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.JobTargetMetadata} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.JobTargetMetadata} - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.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.scheduler.v1.TargetJob; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.TargetJob.deserializeBinaryFromReader); - msg.setJob(value); - break; - case 2: - var value = new proto.dapr.proto.scheduler.v1.TargetActorReminder; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.TargetActorReminder.deserializeBinaryFromReader); - msg.setActor(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.JobTargetMetadata.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.scheduler.v1.JobTargetMetadata} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJob(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.scheduler.v1.TargetJob.serializeBinaryToWriter - ); - } - f = message.getActor(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.dapr.proto.scheduler.v1.TargetActorReminder.serializeBinaryToWriter - ); - } -}; - - -/** - * optional TargetJob job = 1; - * @return {?proto.dapr.proto.scheduler.v1.TargetJob} - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.prototype.getJob = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.TargetJob} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.TargetJob, 1)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.TargetJob|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.JobTargetMetadata} returns this -*/ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.prototype.setJob = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.dapr.proto.scheduler.v1.JobTargetMetadata.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.JobTargetMetadata} returns this - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.prototype.clearJob = function() { - return this.setJob(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.prototype.hasJob = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional TargetActorReminder actor = 2; - * @return {?proto.dapr.proto.scheduler.v1.TargetActorReminder} - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.prototype.getActor = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.TargetActorReminder} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.TargetActorReminder, 2)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.TargetActorReminder|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.JobTargetMetadata} returns this -*/ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.prototype.setActor = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.dapr.proto.scheduler.v1.JobTargetMetadata.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.JobTargetMetadata} returns this - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.prototype.clearActor = function() { - return this.setActor(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.JobTargetMetadata.prototype.hasActor = 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.scheduler.v1.JobMetadata.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.JobMetadata.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.scheduler.v1.JobMetadata} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.JobMetadata.toObject = function(includeInstance, msg) { - var f, obj = { - appId: jspb.Message.getFieldWithDefault(msg, 1, ""), - namespace: jspb.Message.getFieldWithDefault(msg, 2, ""), - target: (f = msg.getTarget()) && proto.dapr.proto.scheduler.v1.JobTargetMetadata.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.scheduler.v1.JobMetadata} - */ -proto.dapr.proto.scheduler.v1.JobMetadata.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.JobMetadata; - return proto.dapr.proto.scheduler.v1.JobMetadata.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.JobMetadata} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.JobMetadata} - */ -proto.dapr.proto.scheduler.v1.JobMetadata.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.setAppId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setNamespace(value); - break; - case 3: - var value = new proto.dapr.proto.scheduler.v1.JobTargetMetadata; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.JobTargetMetadata.deserializeBinaryFromReader); - msg.setTarget(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.JobMetadata.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.JobMetadata.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.scheduler.v1.JobMetadata} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.JobMetadata.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAppId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getNamespace(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTarget(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.dapr.proto.scheduler.v1.JobTargetMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string app_id = 1; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.JobMetadata.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.JobMetadata} returns this - */ -proto.dapr.proto.scheduler.v1.JobMetadata.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string namespace = 2; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.JobMetadata.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.JobMetadata} returns this - */ -proto.dapr.proto.scheduler.v1.JobMetadata.prototype.setNamespace = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional JobTargetMetadata target = 3; - * @return {?proto.dapr.proto.scheduler.v1.JobTargetMetadata} - */ -proto.dapr.proto.scheduler.v1.JobMetadata.prototype.getTarget = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.JobTargetMetadata} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.JobTargetMetadata, 3)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.JobTargetMetadata|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.JobMetadata} returns this -*/ -proto.dapr.proto.scheduler.v1.JobMetadata.prototype.setTarget = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.JobMetadata} returns this - */ -proto.dapr.proto.scheduler.v1.JobMetadata.prototype.clearTarget = function() { - return this.setTarget(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.JobMetadata.prototype.hasTarget = function() { - return jspb.Message.getField(this, 3) != 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.scheduler.v1.WatchJobsRequest.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.WatchJobRequestTypeCase = { - WATCH_JOB_REQUEST_TYPE_NOT_SET: 0, - INITIAL: 1, - RESULT: 2 -}; - -/** - * @return {proto.dapr.proto.scheduler.v1.WatchJobsRequest.WatchJobRequestTypeCase} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.prototype.getWatchJobRequestTypeCase = function() { - return /** @type {proto.dapr.proto.scheduler.v1.WatchJobsRequest.WatchJobRequestTypeCase} */(jspb.Message.computeOneofCase(this, proto.dapr.proto.scheduler.v1.WatchJobsRequest.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.scheduler.v1.WatchJobsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.WatchJobsRequest.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.scheduler.v1.WatchJobsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - initial: (f = msg.getInitial()) && proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.toObject(includeInstance, f), - result: (f = msg.getResult()) && proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.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.scheduler.v1.WatchJobsRequest} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.WatchJobsRequest; - return proto.dapr.proto.scheduler.v1.WatchJobsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.WatchJobsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequest} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.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.scheduler.v1.WatchJobsRequestInitial; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.deserializeBinaryFromReader); - msg.setInitial(value); - break; - case 2: - var value = new proto.dapr.proto.scheduler.v1.WatchJobsRequestResult; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.deserializeBinaryFromReader); - msg.setResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.WatchJobsRequest.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.scheduler.v1.WatchJobsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInitial(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.serializeBinaryToWriter - ); - } -}; - - -/** - * optional WatchJobsRequestInitial initial = 1; - * @return {?proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.prototype.getInitial = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial, 1)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequest} returns this -*/ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.prototype.setInitial = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.dapr.proto.scheduler.v1.WatchJobsRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequest} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.prototype.clearInitial = function() { - return this.setInitial(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.prototype.hasInitial = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional WatchJobsRequestResult result = 2; - * @return {?proto.dapr.proto.scheduler.v1.WatchJobsRequestResult} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.prototype.getResult = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.WatchJobsRequestResult} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.WatchJobsRequestResult, 2)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.WatchJobsRequestResult|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequest} returns this -*/ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.prototype.setResult = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.dapr.proto.scheduler.v1.WatchJobsRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequest} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.prototype.clearResult = function() { - return this.setResult(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequest.prototype.hasResult = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.repeatedFields_ = [3,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.scheduler.v1.WatchJobsRequestInitial.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.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.scheduler.v1.WatchJobsRequestInitial} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.toObject = function(includeInstance, msg) { - var f, obj = { - appId: jspb.Message.getFieldWithDefault(msg, 1, ""), - namespace: jspb.Message.getFieldWithDefault(msg, 2, ""), - actorTypesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - acceptJobTypesList: (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.scheduler.v1.WatchJobsRequestInitial} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial; - return proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.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.setAppId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setNamespace(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addActorTypes(value); - break; - case 4: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); - for (var i = 0; i < values.length; i++) { - msg.addAcceptJobTypes(values[i]); - } - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.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.scheduler.v1.WatchJobsRequestInitial} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAppId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getNamespace(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getActorTypesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getAcceptJobTypesList(); - if (f.length > 0) { - writer.writePackedEnum( - 4, - f - ); - } -}; - - -/** - * optional string app_id = 1; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string namespace = 2; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.getNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.setNamespace = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string actor_types = 3; - * @return {!Array} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.getActorTypesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.setActorTypesList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.addActorTypes = 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.scheduler.v1.WatchJobsRequestInitial} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.clearActorTypesList = function() { - return this.setActorTypesList([]); -}; - - -/** - * repeated JobTargetType accept_job_types = 4; - * @return {!Array} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.getAcceptJobTypesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.setAcceptJobTypesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {!proto.dapr.proto.scheduler.v1.JobTargetType} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.addAcceptJobTypes = 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.scheduler.v1.WatchJobsRequestInitial} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestInitial.prototype.clearAcceptJobTypesList = function() { - return this.setAcceptJobTypesList([]); -}; - - - - - -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.scheduler.v1.WatchJobsRequestResult.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.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.scheduler.v1.WatchJobsRequestResult} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - 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.scheduler.v1.WatchJobsRequestResult} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.WatchJobsRequestResult; - return proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.WatchJobsRequestResult} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequestResult} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.dapr.proto.scheduler.v1.WatchJobsRequestResultStatus} */ (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.scheduler.v1.WatchJobsRequestResult.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.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.scheduler.v1.WatchJobsRequestResult} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {number} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequestResult} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional WatchJobsRequestResultStatus status = 2; - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequestResultStatus} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.prototype.getStatus = function() { - return /** @type {!proto.dapr.proto.scheduler.v1.WatchJobsRequestResultStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.dapr.proto.scheduler.v1.WatchJobsRequestResultStatus} value - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsRequestResult} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestResult.prototype.setStatus = 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.scheduler.v1.WatchJobsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.WatchJobsResponse.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.scheduler.v1.WatchJobsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - id: jspb.Message.getFieldWithDefault(msg, 2, 0), - data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && proto.dapr.proto.scheduler.v1.JobMetadata.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.scheduler.v1.WatchJobsResponse} - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.WatchJobsResponse; - return proto.dapr.proto.scheduler.v1.WatchJobsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.WatchJobsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsResponse} - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.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.readUint64()); - msg.setId(value); - break; - case 3: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.setData(value); - break; - case 4: - var value = new proto.dapr.proto.scheduler.v1.JobMetadata; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.JobMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.WatchJobsResponse.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.scheduler.v1.WatchJobsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getId(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.dapr.proto.scheduler.v1.JobMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsResponse} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 id = 2; - * @return {number} - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsResponse} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional google.protobuf.Any data = 3; - * @return {?proto.google.protobuf.Any} - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.getData = 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.scheduler.v1.WatchJobsResponse} returns this -*/ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsResponse} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional JobMetadata metadata = 4; - * @return {?proto.dapr.proto.scheduler.v1.JobMetadata} - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.getMetadata = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.JobMetadata} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.JobMetadata, 4)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.JobMetadata|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsResponse} returns this -*/ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.WatchJobsResponse} returns this - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.WatchJobsResponse.prototype.hasMetadata = 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.scheduler.v1.ScheduleJobRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.ScheduleJobRequest.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.scheduler.v1.ScheduleJobRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - job: (f = msg.getJob()) && proto.dapr.proto.scheduler.v1.Job.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && proto.dapr.proto.scheduler.v1.JobMetadata.toObject(includeInstance, f), - overwrite: jspb.Message.getBooleanFieldWithDefault(msg, 4, 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.scheduler.v1.ScheduleJobRequest} - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.ScheduleJobRequest; - return proto.dapr.proto.scheduler.v1.ScheduleJobRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.ScheduleJobRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.ScheduleJobRequest} - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.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 proto.dapr.proto.scheduler.v1.Job; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.Job.deserializeBinaryFromReader); - msg.setJob(value); - break; - case 3: - var value = new proto.dapr.proto.scheduler.v1.JobMetadata; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.JobMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOverwrite(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.ScheduleJobRequest.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.scheduler.v1.ScheduleJobRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getJob(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.dapr.proto.scheduler.v1.Job.serializeBinaryToWriter - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.dapr.proto.scheduler.v1.JobMetadata.serializeBinaryToWriter - ); - } - f = message.getOverwrite(); - if (f) { - writer.writeBool( - 4, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.ScheduleJobRequest} returns this - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Job job = 2; - * @return {?proto.dapr.proto.scheduler.v1.Job} - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.getJob = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.Job} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.Job, 2)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.Job|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.ScheduleJobRequest} returns this -*/ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.setJob = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.ScheduleJobRequest} returns this - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.clearJob = function() { - return this.setJob(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.hasJob = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional JobMetadata metadata = 3; - * @return {?proto.dapr.proto.scheduler.v1.JobMetadata} - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.getMetadata = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.JobMetadata} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.JobMetadata, 3)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.JobMetadata|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.ScheduleJobRequest} returns this -*/ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.ScheduleJobRequest} returns this - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional bool overwrite = 4; - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.getOverwrite = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.scheduler.v1.ScheduleJobRequest} returns this - */ -proto.dapr.proto.scheduler.v1.ScheduleJobRequest.prototype.setOverwrite = function(value) { - return jspb.Message.setProto3BooleanField(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.scheduler.v1.ScheduleJobResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.ScheduleJobResponse.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.scheduler.v1.ScheduleJobResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.ScheduleJobResponse.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.scheduler.v1.ScheduleJobResponse} - */ -proto.dapr.proto.scheduler.v1.ScheduleJobResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.ScheduleJobResponse; - return proto.dapr.proto.scheduler.v1.ScheduleJobResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.ScheduleJobResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.ScheduleJobResponse} - */ -proto.dapr.proto.scheduler.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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.ScheduleJobResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.ScheduleJobResponse.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.scheduler.v1.ScheduleJobResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.ScheduleJobResponse.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.scheduler.v1.GetJobRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.GetJobRequest.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.scheduler.v1.GetJobRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.GetJobRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - metadata: (f = msg.getMetadata()) && proto.dapr.proto.scheduler.v1.JobMetadata.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.scheduler.v1.GetJobRequest} - */ -proto.dapr.proto.scheduler.v1.GetJobRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.GetJobRequest; - return proto.dapr.proto.scheduler.v1.GetJobRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.GetJobRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.GetJobRequest} - */ -proto.dapr.proto.scheduler.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; - case 2: - var value = new proto.dapr.proto.scheduler.v1.JobMetadata; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.JobMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.GetJobRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.GetJobRequest.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.scheduler.v1.GetJobRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.GetJobRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.dapr.proto.scheduler.v1.JobMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.GetJobRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.GetJobRequest} returns this - */ -proto.dapr.proto.scheduler.v1.GetJobRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional JobMetadata metadata = 2; - * @return {?proto.dapr.proto.scheduler.v1.JobMetadata} - */ -proto.dapr.proto.scheduler.v1.GetJobRequest.prototype.getMetadata = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.JobMetadata} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.JobMetadata, 2)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.JobMetadata|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.GetJobRequest} returns this -*/ -proto.dapr.proto.scheduler.v1.GetJobRequest.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.GetJobRequest} returns this - */ -proto.dapr.proto.scheduler.v1.GetJobRequest.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.GetJobRequest.prototype.hasMetadata = 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.scheduler.v1.GetJobResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.GetJobResponse.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.scheduler.v1.GetJobResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.GetJobResponse.toObject = function(includeInstance, msg) { - var f, obj = { - job: (f = msg.getJob()) && proto.dapr.proto.scheduler.v1.Job.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.scheduler.v1.GetJobResponse} - */ -proto.dapr.proto.scheduler.v1.GetJobResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.GetJobResponse; - return proto.dapr.proto.scheduler.v1.GetJobResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.GetJobResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.GetJobResponse} - */ -proto.dapr.proto.scheduler.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.scheduler.v1.Job; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.Job.deserializeBinaryFromReader); - msg.setJob(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.GetJobResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.GetJobResponse.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.scheduler.v1.GetJobResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.GetJobResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJob(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.scheduler.v1.Job.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Job job = 1; - * @return {?proto.dapr.proto.scheduler.v1.Job} - */ -proto.dapr.proto.scheduler.v1.GetJobResponse.prototype.getJob = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.Job} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.Job, 1)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.Job|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.GetJobResponse} returns this -*/ -proto.dapr.proto.scheduler.v1.GetJobResponse.prototype.setJob = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.GetJobResponse} returns this - */ -proto.dapr.proto.scheduler.v1.GetJobResponse.prototype.clearJob = function() { - return this.setJob(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.GetJobResponse.prototype.hasJob = 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.scheduler.v1.DeleteJobRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.DeleteJobRequest.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.scheduler.v1.DeleteJobRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteJobRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - metadata: (f = msg.getMetadata()) && proto.dapr.proto.scheduler.v1.JobMetadata.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.scheduler.v1.DeleteJobRequest} - */ -proto.dapr.proto.scheduler.v1.DeleteJobRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.DeleteJobRequest; - return proto.dapr.proto.scheduler.v1.DeleteJobRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.DeleteJobRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.DeleteJobRequest} - */ -proto.dapr.proto.scheduler.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; - case 2: - var value = new proto.dapr.proto.scheduler.v1.JobMetadata; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.JobMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.DeleteJobRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.DeleteJobRequest.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.scheduler.v1.DeleteJobRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteJobRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.dapr.proto.scheduler.v1.JobMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.DeleteJobRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.DeleteJobRequest} returns this - */ -proto.dapr.proto.scheduler.v1.DeleteJobRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional JobMetadata metadata = 2; - * @return {?proto.dapr.proto.scheduler.v1.JobMetadata} - */ -proto.dapr.proto.scheduler.v1.DeleteJobRequest.prototype.getMetadata = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.JobMetadata} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.JobMetadata, 2)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.JobMetadata|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.DeleteJobRequest} returns this -*/ -proto.dapr.proto.scheduler.v1.DeleteJobRequest.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.DeleteJobRequest} returns this - */ -proto.dapr.proto.scheduler.v1.DeleteJobRequest.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.DeleteJobRequest.prototype.hasMetadata = 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.scheduler.v1.DeleteJobResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.DeleteJobResponse.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.scheduler.v1.DeleteJobResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteJobResponse.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.scheduler.v1.DeleteJobResponse} - */ -proto.dapr.proto.scheduler.v1.DeleteJobResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.DeleteJobResponse; - return proto.dapr.proto.scheduler.v1.DeleteJobResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.DeleteJobResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.DeleteJobResponse} - */ -proto.dapr.proto.scheduler.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; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.DeleteJobResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.DeleteJobResponse.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.scheduler.v1.DeleteJobResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteJobResponse.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.scheduler.v1.NamedJob.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.NamedJob.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.scheduler.v1.NamedJob} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.NamedJob.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - metadata: (f = msg.getMetadata()) && proto.dapr.proto.scheduler.v1.JobMetadata.toObject(includeInstance, f), - job: (f = msg.getJob()) && proto.dapr.proto.scheduler.v1.Job.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.scheduler.v1.NamedJob} - */ -proto.dapr.proto.scheduler.v1.NamedJob.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.NamedJob; - return proto.dapr.proto.scheduler.v1.NamedJob.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.NamedJob} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.NamedJob} - */ -proto.dapr.proto.scheduler.v1.NamedJob.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 proto.dapr.proto.scheduler.v1.JobMetadata; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.JobMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 3: - var value = new proto.dapr.proto.scheduler.v1.Job; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.Job.deserializeBinaryFromReader); - msg.setJob(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.NamedJob.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.NamedJob.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.scheduler.v1.NamedJob} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.NamedJob.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.dapr.proto.scheduler.v1.JobMetadata.serializeBinaryToWriter - ); - } - f = message.getJob(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.dapr.proto.scheduler.v1.Job.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.NamedJob.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.NamedJob} returns this - */ -proto.dapr.proto.scheduler.v1.NamedJob.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional JobMetadata metadata = 2; - * @return {?proto.dapr.proto.scheduler.v1.JobMetadata} - */ -proto.dapr.proto.scheduler.v1.NamedJob.prototype.getMetadata = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.JobMetadata} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.JobMetadata, 2)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.JobMetadata|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.NamedJob} returns this -*/ -proto.dapr.proto.scheduler.v1.NamedJob.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.NamedJob} returns this - */ -proto.dapr.proto.scheduler.v1.NamedJob.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.NamedJob.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Job job = 3; - * @return {?proto.dapr.proto.scheduler.v1.Job} - */ -proto.dapr.proto.scheduler.v1.NamedJob.prototype.getJob = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.Job} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.Job, 3)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.Job|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.NamedJob} returns this -*/ -proto.dapr.proto.scheduler.v1.NamedJob.prototype.setJob = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.NamedJob} returns this - */ -proto.dapr.proto.scheduler.v1.NamedJob.prototype.clearJob = function() { - return this.setJob(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.NamedJob.prototype.hasJob = 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.scheduler.v1.ListJobsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.ListJobsRequest.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.scheduler.v1.ListJobsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.ListJobsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - metadata: (f = msg.getMetadata()) && proto.dapr.proto.scheduler.v1.JobMetadata.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.scheduler.v1.ListJobsRequest} - */ -proto.dapr.proto.scheduler.v1.ListJobsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.ListJobsRequest; - return proto.dapr.proto.scheduler.v1.ListJobsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.ListJobsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.ListJobsRequest} - */ -proto.dapr.proto.scheduler.v1.ListJobsRequest.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.scheduler.v1.JobMetadata; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.JobMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.ListJobsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.ListJobsRequest.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.scheduler.v1.ListJobsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.ListJobsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.scheduler.v1.JobMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional JobMetadata metadata = 1; - * @return {?proto.dapr.proto.scheduler.v1.JobMetadata} - */ -proto.dapr.proto.scheduler.v1.ListJobsRequest.prototype.getMetadata = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.JobMetadata} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.JobMetadata, 1)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.JobMetadata|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.ListJobsRequest} returns this -*/ -proto.dapr.proto.scheduler.v1.ListJobsRequest.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.ListJobsRequest} returns this - */ -proto.dapr.proto.scheduler.v1.ListJobsRequest.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.ListJobsRequest.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.scheduler.v1.ListJobsResponse.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.scheduler.v1.ListJobsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.ListJobsResponse.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.scheduler.v1.ListJobsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.ListJobsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - jobsList: jspb.Message.toObjectList(msg.getJobsList(), - proto.dapr.proto.scheduler.v1.NamedJob.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.scheduler.v1.ListJobsResponse} - */ -proto.dapr.proto.scheduler.v1.ListJobsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.ListJobsResponse; - return proto.dapr.proto.scheduler.v1.ListJobsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.ListJobsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.ListJobsResponse} - */ -proto.dapr.proto.scheduler.v1.ListJobsResponse.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.scheduler.v1.NamedJob; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.NamedJob.deserializeBinaryFromReader); - msg.addJobs(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.ListJobsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.ListJobsResponse.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.scheduler.v1.ListJobsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.ListJobsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJobsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.scheduler.v1.NamedJob.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated NamedJob jobs = 1; - * @return {!Array} - */ -proto.dapr.proto.scheduler.v1.ListJobsResponse.prototype.getJobsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.scheduler.v1.NamedJob, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.scheduler.v1.ListJobsResponse} returns this -*/ -proto.dapr.proto.scheduler.v1.ListJobsResponse.prototype.setJobsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.scheduler.v1.NamedJob=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.scheduler.v1.NamedJob} - */ -proto.dapr.proto.scheduler.v1.ListJobsResponse.prototype.addJobs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.scheduler.v1.NamedJob, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.scheduler.v1.ListJobsResponse} returns this - */ -proto.dapr.proto.scheduler.v1.ListJobsResponse.prototype.clearJobsList = function() { - return this.setJobsList([]); -}; - - - - - -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.scheduler.v1.WatchHostsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.WatchHostsRequest.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.scheduler.v1.WatchHostsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchHostsRequest.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.scheduler.v1.WatchHostsRequest} - */ -proto.dapr.proto.scheduler.v1.WatchHostsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.WatchHostsRequest; - return proto.dapr.proto.scheduler.v1.WatchHostsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.WatchHostsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.WatchHostsRequest} - */ -proto.dapr.proto.scheduler.v1.WatchHostsRequest.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.scheduler.v1.WatchHostsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.WatchHostsRequest.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.scheduler.v1.WatchHostsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchHostsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.scheduler.v1.WatchHostsResponse.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.scheduler.v1.WatchHostsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.WatchHostsResponse.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.scheduler.v1.WatchHostsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchHostsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - hostsList: jspb.Message.toObjectList(msg.getHostsList(), - proto.dapr.proto.scheduler.v1.Host.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.scheduler.v1.WatchHostsResponse} - */ -proto.dapr.proto.scheduler.v1.WatchHostsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.WatchHostsResponse; - return proto.dapr.proto.scheduler.v1.WatchHostsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.WatchHostsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.WatchHostsResponse} - */ -proto.dapr.proto.scheduler.v1.WatchHostsResponse.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.scheduler.v1.Host; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.Host.deserializeBinaryFromReader); - msg.addHosts(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.WatchHostsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.WatchHostsResponse.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.scheduler.v1.WatchHostsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.WatchHostsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHostsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.dapr.proto.scheduler.v1.Host.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Host hosts = 1; - * @return {!Array} - */ -proto.dapr.proto.scheduler.v1.WatchHostsResponse.prototype.getHostsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.dapr.proto.scheduler.v1.Host, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.scheduler.v1.WatchHostsResponse} returns this -*/ -proto.dapr.proto.scheduler.v1.WatchHostsResponse.prototype.setHostsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.dapr.proto.scheduler.v1.Host=} opt_value - * @param {number=} opt_index - * @return {!proto.dapr.proto.scheduler.v1.Host} - */ -proto.dapr.proto.scheduler.v1.WatchHostsResponse.prototype.addHosts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.dapr.proto.scheduler.v1.Host, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.scheduler.v1.WatchHostsResponse} returns this - */ -proto.dapr.proto.scheduler.v1.WatchHostsResponse.prototype.clearHostsList = function() { - return this.setHostsList([]); -}; - - - - - -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.scheduler.v1.Host.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.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.scheduler.v1.Host} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.Host.toObject = function(includeInstance, msg) { - var f, obj = { - address: 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.scheduler.v1.Host} - */ -proto.dapr.proto.scheduler.v1.Host.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.Host; - return proto.dapr.proto.scheduler.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.scheduler.v1.Host} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.Host} - */ -proto.dapr.proto.scheduler.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.setAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.Host.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.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.scheduler.v1.Host} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.Host.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string address = 1; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.Host.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.Host} returns this - */ -proto.dapr.proto.scheduler.v1.Host.prototype.setAddress = 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.scheduler.v1.DeleteByMetadataRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.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.scheduler.v1.DeleteByMetadataRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.toObject = function(includeInstance, msg) { - var f, obj = { - metadata: (f = msg.getMetadata()) && proto.dapr.proto.scheduler.v1.JobMetadata.toObject(includeInstance, f), - idPrefixMatch: jspb.Message.getBooleanFieldWithDefault(msg, 2, 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.scheduler.v1.DeleteByMetadataRequest} - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest; - return proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest} - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.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.scheduler.v1.JobMetadata; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.JobMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIdPrefixMatch(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.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.scheduler.v1.DeleteByMetadataRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.dapr.proto.scheduler.v1.JobMetadata.serializeBinaryToWriter - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional JobMetadata metadata = 1; - * @return {?proto.dapr.proto.scheduler.v1.JobMetadata} - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.prototype.getMetadata = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.JobMetadata} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.JobMetadata, 1)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.JobMetadata|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest} returns this -*/ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest} returns this - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bool id_prefix_match = 2; - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.prototype.getIdPrefixMatch = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest} returns this - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.prototype.setIdPrefixMatch = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest} returns this - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.prototype.clearIdPrefixMatch = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataRequest.prototype.hasIdPrefixMatch = 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.scheduler.v1.DeleteByMetadataResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse.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.scheduler.v1.DeleteByMetadataResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse.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.scheduler.v1.DeleteByMetadataResponse} - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse; - return proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse} - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse.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.scheduler.v1.DeleteByMetadataResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse.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.scheduler.v1.DeleteByMetadataResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteByMetadataResponse.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.scheduler.v1.DeleteByNamePrefixRequest.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.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.scheduler.v1.DeleteByNamePrefixRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.toObject = function(includeInstance, msg) { - var f, obj = { - namePrefix: jspb.Message.getFieldWithDefault(msg, 1, ""), - metadata: (f = msg.getMetadata()) && proto.dapr.proto.scheduler.v1.JobMetadata.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.scheduler.v1.DeleteByNamePrefixRequest} - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest; - return proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest} - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.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.setNamePrefix(value); - break; - case 2: - var value = new proto.dapr.proto.scheduler.v1.JobMetadata; - reader.readMessage(value,proto.dapr.proto.scheduler.v1.JobMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.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.scheduler.v1.DeleteByNamePrefixRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNamePrefix(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.dapr.proto.scheduler.v1.JobMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name_prefix = 1; - * @return {string} - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.prototype.getNamePrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest} returns this - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.prototype.setNamePrefix = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional JobMetadata metadata = 2; - * @return {?proto.dapr.proto.scheduler.v1.JobMetadata} - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.prototype.getMetadata = function() { - return /** @type{?proto.dapr.proto.scheduler.v1.JobMetadata} */ ( - jspb.Message.getWrapperField(this, proto.dapr.proto.scheduler.v1.JobMetadata, 2)); -}; - - -/** - * @param {?proto.dapr.proto.scheduler.v1.JobMetadata|undefined} value - * @return {!proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest} returns this -*/ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest} returns this - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixRequest.prototype.hasMetadata = 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.scheduler.v1.DeleteByNamePrefixResponse.prototype.toObject = function(opt_includeInstance) { - return proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse.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.scheduler.v1.DeleteByNamePrefixResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse.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.scheduler.v1.DeleteByNamePrefixResponse} - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse; - return proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse} - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse.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.scheduler.v1.DeleteByNamePrefixResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse.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.scheduler.v1.DeleteByNamePrefixResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.dapr.proto.scheduler.v1.DeleteByNamePrefixResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - -/** - * @enum {number} - */ -proto.dapr.proto.scheduler.v1.JobTargetType = { - JOB_TARGET_TYPE_JOB: 0, - JOB_TARGET_TYPE_ACTOR_REMINDER: 1 -}; - -/** - * @enum {number} - */ -proto.dapr.proto.scheduler.v1.WatchJobsRequestResultStatus = { - SUCCESS: 0, - FAILED: 1 -}; - -goog.object.extend(exports, proto.dapr.proto.scheduler.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 1393f3f4..00000000 --- a/src/proto/dapr/proto/sentry/v1/sentry.proto +++ /dev/null @@ -1,68 +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"; -import "google/protobuf/wrappers.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; - // List of audiences for the JWT. - repeated string jwt_audiences = 7; -} - -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; - - // JWT token for authentication. Always provided by Sentry if configured to - // issue JWTs (not requested). The JWT contains the same identity information - // as the certificate and is signed by the same issuing authority. - optional google.protobuf.StringValue jwt = 4; -} 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 7bc50444..00000000 --- a/src/proto/dapr/proto/sentry/v1/sentry_grpc_pb.d.ts +++ /dev/null @@ -1,43 +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"; -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_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 cfbde580..00000000 --- a/src/proto/dapr/proto/sentry/v1/sentry_grpc_pb.js +++ /dev/null @@ -1,63 +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'); -var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_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, 'CA'); 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 5bd59374..00000000 --- a/src/proto/dapr/proto/sentry/v1/sentry_pb.d.ts +++ /dev/null @@ -1,100 +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"; -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_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; - clearJwtAudiencesList(): void; - getJwtAudiencesList(): Array; - setJwtAudiencesList(value: Array): SignCertificateRequest; - addJwtAudiences(value: string, index?: number): string; - - 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, - jwtAudiencesList: Array, - } - - 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; - - hasJwt(): boolean; - clearJwt(): void; - getJwt(): google_protobuf_wrappers_pb.StringValue | undefined; - setJwt(value?: google_protobuf_wrappers_pb.StringValue): 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, - jwt?: google_protobuf_wrappers_pb.StringValue.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 eb576c21..00000000 --- a/src/proto/dapr/proto/sentry/v1/sentry_pb.js +++ /dev/null @@ -1,779 +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 = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); -goog.object.extend(proto, google_protobuf_wrappers_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, proto.dapr.proto.sentry.v1.SignCertificateRequest.repeatedFields_, 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'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.repeatedFields_ = [7]; - - - -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), - jwtAudiencesList: (f = jspb.Message.getRepeatedField(msg, 7)) == 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.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; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.addJwtAudiences(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 - ); - } - f = message.getJwtAudiencesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 7, - 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); -}; - - -/** - * repeated string jwt_audiences = 7; - * @return {!Array} - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.getJwtAudiencesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.dapr.proto.sentry.v1.SignCertificateRequest} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.setJwtAudiencesList = function(value) { - return jspb.Message.setField(this, 7, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.dapr.proto.sentry.v1.SignCertificateRequest} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.addJwtAudiences = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 7, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.dapr.proto.sentry.v1.SignCertificateRequest} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateRequest.prototype.clearJwtAudiencesList = function() { - return this.setJwtAudiencesList([]); -}; - - - -/** - * 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), - jwt: (f = msg.getJwt()) && google_protobuf_wrappers_pb.StringValue.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; - case 4: - var value = new google_protobuf_wrappers_pb.StringValue; - reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); - msg.setJwt(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 - ); - } - f = message.getJwt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_wrappers_pb.StringValue.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; -}; - - -/** - * optional google.protobuf.StringValue jwt = 4; - * @return {?proto.google.protobuf.StringValue} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.getJwt = function() { - return /** @type{?proto.google.protobuf.StringValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4)); -}; - - -/** - * @param {?proto.google.protobuf.StringValue|undefined} value - * @return {!proto.dapr.proto.sentry.v1.SignCertificateResponse} returns this -*/ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.setJwt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.dapr.proto.sentry.v1.SignCertificateResponse} returns this - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.clearJwt = function() { - return this.setJwt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.dapr.proto.sentry.v1.SignCertificateResponse.prototype.hasJwt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -goog.object.extend(exports, proto.dapr.proto.sentry.v1);