@dapr/dapr-dev
Advanced tools
Comparing version 3.0.0-20230609063720-1e3b6eb to 3.1.0-20230612052039-553431f
{ | ||
"name": "@dapr/dapr-dev", | ||
"version": "3.0.0-20230609063720-1e3b6eb", | ||
"version": "3.1.0-20230612052039-553431f", | ||
"description": "The official Dapr (https://dapr.io) SDK for Node.js", | ||
@@ -5,0 +5,0 @@ "types": "./build/index.d.ts", |
@@ -9,18 +9,7 @@ // package: dapr.proto.placement.v1 | ||
import * as dapr_proto_placement_v1_placement_pb from "../../../../dapr/proto/placement/v1/placement_pb"; | ||
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; | ||
interface IPlacementService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> { | ||
getPlacementTables: IPlacementService_IGetPlacementTables; | ||
reportDaprStatus: IPlacementService_IReportDaprStatus; | ||
} | ||
interface IPlacementService_IGetPlacementTables extends grpc.MethodDefinition<google_protobuf_empty_pb.Empty, dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse> { | ||
path: "/dapr.proto.placement.v1.Placement/GetPlacementTables"; | ||
requestStream: false; | ||
responseStream: false; | ||
requestSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>; | ||
requestDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>; | ||
responseSerialize: grpc.serialize<dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse>; | ||
responseDeserialize: grpc.deserialize<dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse>; | ||
} | ||
interface IPlacementService_IReportDaprStatus extends grpc.MethodDefinition<dapr_proto_placement_v1_placement_pb.Host, dapr_proto_placement_v1_placement_pb.PlacementOrder> { | ||
@@ -39,3 +28,2 @@ path: "/dapr.proto.placement.v1.Placement/ReportDaprStatus"; | ||
export interface IPlacementServer extends grpc.UntypedServiceImplementation { | ||
getPlacementTables: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse>; | ||
reportDaprStatus: grpc.handleBidiStreamingCall<dapr_proto_placement_v1_placement_pb.Host, dapr_proto_placement_v1_placement_pb.PlacementOrder>; | ||
@@ -45,5 +33,2 @@ } | ||
export interface IPlacementClient { | ||
getPlacementTables(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse) => void): grpc.ClientUnaryCall; | ||
getPlacementTables(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse) => void): grpc.ClientUnaryCall; | ||
getPlacementTables(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse) => void): grpc.ClientUnaryCall; | ||
reportDaprStatus(): grpc.ClientDuplexStream<dapr_proto_placement_v1_placement_pb.Host, dapr_proto_placement_v1_placement_pb.PlacementOrder>; | ||
@@ -56,7 +41,4 @@ reportDaprStatus(options: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<dapr_proto_placement_v1_placement_pb.Host, dapr_proto_placement_v1_placement_pb.PlacementOrder>; | ||
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); | ||
public getPlacementTables(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse) => void): grpc.ClientUnaryCall; | ||
public getPlacementTables(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse) => void): grpc.ClientUnaryCall; | ||
public getPlacementTables(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse) => void): grpc.ClientUnaryCall; | ||
public reportDaprStatus(options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<dapr_proto_placement_v1_placement_pb.Host, dapr_proto_placement_v1_placement_pb.PlacementOrder>; | ||
public reportDaprStatus(metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<dapr_proto_placement_v1_placement_pb.Host, dapr_proto_placement_v1_placement_pb.PlacementOrder>; | ||
} |
@@ -19,15 +19,3 @@ // GENERATED CODE -- DO NOT EDIT! | ||
var dapr_proto_placement_v1_placement_pb = require('../../../../dapr/proto/placement/v1/placement_pb.js'); | ||
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); | ||
function serialize_dapr_proto_placement_v1_GetPlacementTablesResponse(arg) { | ||
if (!(arg instanceof dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse)) { | ||
throw new Error('Expected argument of type dapr.proto.placement.v1.GetPlacementTablesResponse'); | ||
} | ||
return Buffer.from(arg.serializeBinary()); | ||
} | ||
function deserialize_dapr_proto_placement_v1_GetPlacementTablesResponse(buffer_arg) { | ||
return dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse.deserializeBinary(new Uint8Array(buffer_arg)); | ||
} | ||
function serialize_dapr_proto_placement_v1_Host(arg) { | ||
@@ -55,30 +43,6 @@ if (!(arg instanceof dapr_proto_placement_v1_placement_pb.Host)) { | ||
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)); | ||
} | ||
// Placement service is used to report Dapr runtime host status. | ||
var PlacementService = exports.PlacementService = { | ||
// Returns current placement tables. | ||
getPlacementTables: { | ||
path: '/dapr.proto.placement.v1.Placement/GetPlacementTables', | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: google_protobuf_empty_pb.Empty, | ||
responseType: dapr_proto_placement_v1_placement_pb.GetPlacementTablesResponse, | ||
requestSerialize: serialize_google_protobuf_Empty, | ||
requestDeserialize: deserialize_google_protobuf_Empty, | ||
responseSerialize: serialize_dapr_proto_placement_v1_GetPlacementTablesResponse, | ||
responseDeserialize: deserialize_dapr_proto_placement_v1_GetPlacementTablesResponse, | ||
}, | ||
// Reports Dapr actor status and retrieves actor placement table. | ||
reportDaprStatus: { | ||
reportDaprStatus: { | ||
path: '/dapr.proto.placement.v1.Placement/ReportDaprStatus', | ||
@@ -85,0 +49,0 @@ requestStream: true, |
@@ -8,3 +8,2 @@ // package: dapr.proto.placement.v1 | ||
import * as jspb from "google-protobuf"; | ||
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; | ||
@@ -130,57 +129,1 @@ export class PlacementOrder extends jspb.Message { | ||
} | ||
export class HostInfo extends jspb.Message { | ||
getName(): string; | ||
setName(value: string): HostInfo; | ||
getAppId(): string; | ||
setAppId(value: string): HostInfo; | ||
clearEntitiesList(): void; | ||
getEntitiesList(): Array<string>; | ||
setEntitiesList(value: Array<string>): HostInfo; | ||
addEntities(value: string, index?: number): string; | ||
getUpdatedAt(): number; | ||
setUpdatedAt(value: number): HostInfo; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): HostInfo.AsObject; | ||
static toObject(includeInstance: boolean, msg: HostInfo): HostInfo.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: HostInfo, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): HostInfo; | ||
static deserializeBinaryFromReader(message: HostInfo, reader: jspb.BinaryReader): HostInfo; | ||
} | ||
export namespace HostInfo { | ||
export type AsObject = { | ||
name: string, | ||
appId: string, | ||
entitiesList: Array<string>, | ||
updatedAt: number, | ||
} | ||
} | ||
export class GetPlacementTablesResponse extends jspb.Message { | ||
getHostMapMap(): jspb.Map<string, HostInfo>; | ||
clearHostMapMap(): void; | ||
getTableVersion(): number; | ||
setTableVersion(value: number): GetPlacementTablesResponse; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): GetPlacementTablesResponse.AsObject; | ||
static toObject(includeInstance: boolean, msg: GetPlacementTablesResponse): GetPlacementTablesResponse.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: GetPlacementTablesResponse, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): GetPlacementTablesResponse; | ||
static deserializeBinaryFromReader(message: GetPlacementTablesResponse, reader: jspb.BinaryReader): GetPlacementTablesResponse; | ||
} | ||
export namespace GetPlacementTablesResponse { | ||
export type AsObject = { | ||
hostMapMap: Array<[string, HostInfo.AsObject]>, | ||
tableVersion: number, | ||
} | ||
} |
@@ -18,7 +18,3 @@ // source: dapr/proto/placement/v1/placement.proto | ||
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.placement.v1.GetPlacementTablesResponse', null, global); | ||
goog.exportSymbol('proto.dapr.proto.placement.v1.Host', null, global); | ||
goog.exportSymbol('proto.dapr.proto.placement.v1.HostInfo', null, global); | ||
goog.exportSymbol('proto.dapr.proto.placement.v1.PlacementOrder', null, global); | ||
@@ -111,44 +107,2 @@ goog.exportSymbol('proto.dapr.proto.placement.v1.PlacementTable', 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.HostInfo = function(opt_data) { | ||
jspb.Message.initialize(this, opt_data, 0, -1, proto.dapr.proto.placement.v1.HostInfo.repeatedFields_, null); | ||
}; | ||
goog.inherits(proto.dapr.proto.placement.v1.HostInfo, jspb.Message); | ||
if (goog.DEBUG && !COMPILED) { | ||
/** | ||
* @public | ||
* @override | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.displayName = 'proto.dapr.proto.placement.v1.HostInfo'; | ||
} | ||
/** | ||
* Generated by JsPbCodeGenerator. | ||
* @param {Array=} opt_data Optional initial data array, typically from a | ||
* server response, or constructed directly in Javascript. The array is used | ||
* in place and becomes part of the constructed object. It 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.GetPlacementTablesResponse = function(opt_data) { | ||
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | ||
}; | ||
goog.inherits(proto.dapr.proto.placement.v1.GetPlacementTablesResponse, jspb.Message); | ||
if (goog.DEBUG && !COMPILED) { | ||
/** | ||
* @public | ||
* @override | ||
*/ | ||
proto.dapr.proto.placement.v1.GetPlacementTablesResponse.displayName = 'proto.dapr.proto.placement.v1.GetPlacementTablesResponse'; | ||
} | ||
@@ -1028,411 +982,2 @@ | ||
/** | ||
* List of repeated fields within this message type. | ||
* @private {!Array<number>} | ||
* @const | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.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_<name>, eg, foo.pb_default. | ||
* For the list of reserved names please see: | ||
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | ||
* @param {boolean=} 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.HostInfo.prototype.toObject = function(opt_includeInstance) { | ||
return proto.dapr.proto.placement.v1.HostInfo.toObject(opt_includeInstance, this); | ||
}; | ||
/** | ||
* Static version of the {@see toObject} method. | ||
* @param {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.HostInfo} msg The msg instance to transform. | ||
* @return {!Object} | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.toObject = function(includeInstance, msg) { | ||
var f, obj = { | ||
name: jspb.Message.getFieldWithDefault(msg, 1, ""), | ||
appId: jspb.Message.getFieldWithDefault(msg, 2, ""), | ||
entitiesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, | ||
updatedAt: 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.HostInfo} | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.deserializeBinary = function(bytes) { | ||
var reader = new jspb.BinaryReader(bytes); | ||
var msg = new proto.dapr.proto.placement.v1.HostInfo; | ||
return proto.dapr.proto.placement.v1.HostInfo.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.HostInfo} msg The message object to deserialize into. | ||
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | ||
* @return {!proto.dapr.proto.placement.v1.HostInfo} | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.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.setAppId(value); | ||
break; | ||
case 3: | ||
var value = /** @type {string} */ (reader.readString()); | ||
msg.addEntities(value); | ||
break; | ||
case 4: | ||
var value = /** @type {number} */ (reader.readInt64()); | ||
msg.setUpdatedAt(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.HostInfo.prototype.serializeBinary = function() { | ||
var writer = new jspb.BinaryWriter(); | ||
proto.dapr.proto.placement.v1.HostInfo.serializeBinaryToWriter(this, 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.HostInfo} message | ||
* @param {!jspb.BinaryWriter} writer | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.serializeBinaryToWriter = function(message, writer) { | ||
var f = undefined; | ||
f = message.getName(); | ||
if (f.length > 0) { | ||
writer.writeString( | ||
1, | ||
f | ||
); | ||
} | ||
f = message.getAppId(); | ||
if (f.length > 0) { | ||
writer.writeString( | ||
2, | ||
f | ||
); | ||
} | ||
f = message.getEntitiesList(); | ||
if (f.length > 0) { | ||
writer.writeRepeatedString( | ||
3, | ||
f | ||
); | ||
} | ||
f = message.getUpdatedAt(); | ||
if (f !== 0) { | ||
writer.writeInt64( | ||
4, | ||
f | ||
); | ||
} | ||
}; | ||
/** | ||
* optional string name = 1; | ||
* @return {string} | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.prototype.getName = function() { | ||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); | ||
}; | ||
/** | ||
* @param {string} value | ||
* @return {!proto.dapr.proto.placement.v1.HostInfo} returns this | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.prototype.setName = function(value) { | ||
return jspb.Message.setProto3StringField(this, 1, value); | ||
}; | ||
/** | ||
* optional string app_id = 2; | ||
* @return {string} | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.prototype.getAppId = function() { | ||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); | ||
}; | ||
/** | ||
* @param {string} value | ||
* @return {!proto.dapr.proto.placement.v1.HostInfo} returns this | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.prototype.setAppId = function(value) { | ||
return jspb.Message.setProto3StringField(this, 2, value); | ||
}; | ||
/** | ||
* repeated string entities = 3; | ||
* @return {!Array<string>} | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.prototype.getEntitiesList = function() { | ||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3)); | ||
}; | ||
/** | ||
* @param {!Array<string>} value | ||
* @return {!proto.dapr.proto.placement.v1.HostInfo} returns this | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.prototype.setEntitiesList = function(value) { | ||
return jspb.Message.setField(this, 3, value || []); | ||
}; | ||
/** | ||
* @param {string} value | ||
* @param {number=} opt_index | ||
* @return {!proto.dapr.proto.placement.v1.HostInfo} returns this | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.prototype.addEntities = 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.placement.v1.HostInfo} returns this | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.prototype.clearEntitiesList = function() { | ||
return this.setEntitiesList([]); | ||
}; | ||
/** | ||
* optional int64 updated_at = 4; | ||
* @return {number} | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.prototype.getUpdatedAt = function() { | ||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); | ||
}; | ||
/** | ||
* @param {number} value | ||
* @return {!proto.dapr.proto.placement.v1.HostInfo} returns this | ||
*/ | ||
proto.dapr.proto.placement.v1.HostInfo.prototype.setUpdatedAt = 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_<name>, eg, foo.pb_default. | ||
* For the list of reserved names please see: | ||
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | ||
* @param {boolean=} 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.GetPlacementTablesResponse.prototype.toObject = function(opt_includeInstance) { | ||
return proto.dapr.proto.placement.v1.GetPlacementTablesResponse.toObject(opt_includeInstance, this); | ||
}; | ||
/** | ||
* Static version of the {@see toObject} method. | ||
* @param {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.GetPlacementTablesResponse} msg The msg instance to transform. | ||
* @return {!Object} | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.dapr.proto.placement.v1.GetPlacementTablesResponse.toObject = function(includeInstance, msg) { | ||
var f, obj = { | ||
hostMapMap: (f = msg.getHostMapMap()) ? f.toObject(includeInstance, proto.dapr.proto.placement.v1.HostInfo.toObject) : [], | ||
tableVersion: 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.placement.v1.GetPlacementTablesResponse} | ||
*/ | ||
proto.dapr.proto.placement.v1.GetPlacementTablesResponse.deserializeBinary = function(bytes) { | ||
var reader = new jspb.BinaryReader(bytes); | ||
var msg = new proto.dapr.proto.placement.v1.GetPlacementTablesResponse; | ||
return proto.dapr.proto.placement.v1.GetPlacementTablesResponse.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.GetPlacementTablesResponse} msg The message object to deserialize into. | ||
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | ||
* @return {!proto.dapr.proto.placement.v1.GetPlacementTablesResponse} | ||
*/ | ||
proto.dapr.proto.placement.v1.GetPlacementTablesResponse.deserializeBinaryFromReader = function(msg, reader) { | ||
while (reader.nextField()) { | ||
if (reader.isEndGroup()) { | ||
break; | ||
} | ||
var field = reader.getFieldNumber(); | ||
switch (field) { | ||
case 1: | ||
var value = msg.getHostMapMap(); | ||
reader.readMessage(value, function(message, reader) { | ||
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.dapr.proto.placement.v1.HostInfo.deserializeBinaryFromReader, "", new proto.dapr.proto.placement.v1.HostInfo()); | ||
}); | ||
break; | ||
case 2: | ||
var value = /** @type {number} */ (reader.readUint64()); | ||
msg.setTableVersion(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.GetPlacementTablesResponse.prototype.serializeBinary = function() { | ||
var writer = new jspb.BinaryWriter(); | ||
proto.dapr.proto.placement.v1.GetPlacementTablesResponse.serializeBinaryToWriter(this, 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.GetPlacementTablesResponse} message | ||
* @param {!jspb.BinaryWriter} writer | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.dapr.proto.placement.v1.GetPlacementTablesResponse.serializeBinaryToWriter = function(message, writer) { | ||
var f = undefined; | ||
f = message.getHostMapMap(true); | ||
if (f && f.getLength() > 0) { | ||
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.dapr.proto.placement.v1.HostInfo.serializeBinaryToWriter); | ||
} | ||
f = message.getTableVersion(); | ||
if (f !== 0) { | ||
writer.writeUint64( | ||
2, | ||
f | ||
); | ||
} | ||
}; | ||
/** | ||
* map<string, HostInfo> host_map = 1; | ||
* @param {boolean=} opt_noLazyCreate Do not create the map if | ||
* empty, instead returning `undefined` | ||
* @return {!jspb.Map<string,!proto.dapr.proto.placement.v1.HostInfo>} | ||
*/ | ||
proto.dapr.proto.placement.v1.GetPlacementTablesResponse.prototype.getHostMapMap = function(opt_noLazyCreate) { | ||
return /** @type {!jspb.Map<string,!proto.dapr.proto.placement.v1.HostInfo>} */ ( | ||
jspb.Message.getMapField(this, 1, opt_noLazyCreate, | ||
proto.dapr.proto.placement.v1.HostInfo)); | ||
}; | ||
/** | ||
* Clears values from the map. The map will be non-null. | ||
* @return {!proto.dapr.proto.placement.v1.GetPlacementTablesResponse} returns this | ||
*/ | ||
proto.dapr.proto.placement.v1.GetPlacementTablesResponse.prototype.clearHostMapMap = function() { | ||
this.getHostMapMap().clear(); | ||
return this;}; | ||
/** | ||
* optional uint64 table_version = 2; | ||
* @return {number} | ||
*/ | ||
proto.dapr.proto.placement.v1.GetPlacementTablesResponse.prototype.getTableVersion = function() { | ||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); | ||
}; | ||
/** | ||
* @param {number} value | ||
* @return {!proto.dapr.proto.placement.v1.GetPlacementTablesResponse} returns this | ||
*/ | ||
proto.dapr.proto.placement.v1.GetPlacementTablesResponse.prototype.setTableVersion = function(value) { | ||
return jspb.Message.setProto3IntField(this, 2, value); | ||
}; | ||
goog.object.extend(exports, proto.dapr.proto.placement.v1); |
@@ -1,2 +0,2 @@ | ||
export declare const SDK_VERSION = "3.0.0-20230609063720-1e3b6eb"; | ||
export declare const SDK_VERSION = "3.1.0-20230612052039-553431f"; | ||
export declare const SDK_PACKAGE_NAME = "@dapr/dapr-dev"; |
@@ -18,3 +18,3 @@ "use strict"; | ||
// It is not checked in to the git repository. | ||
exports.SDK_VERSION = "3.0.0-20230609063720-1e3b6eb"; | ||
exports.SDK_VERSION = "3.1.0-20230612052039-553431f"; | ||
exports.SDK_PACKAGE_NAME = "@dapr/dapr-dev"; |
Sorry, the diff of this file is not supported yet
2154320
46932