Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/dapr/proto/runtime/v1/dapr_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export class GetStateRequest extends jspb.Message {
setConsistency(value: dapr_proto_common_v1_common_pb.StateOptions.StateConsistency): void;


getMetadataMap(): jspb.Map<string, string>;
clearMetadataMap(): void;


serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetStateRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetStateRequest): GetStateRequest.AsObject;
Expand All @@ -62,6 +66,8 @@ export namespace GetStateRequest {
storeName: string,
key: string,
consistency: dapr_proto_common_v1_common_pb.StateOptions.StateConsistency,

metadataMap: Array<[string, string]>,
}
}

Expand All @@ -78,6 +84,10 @@ export class GetBulkStateRequest extends jspb.Message {
setParallelism(value: number): void;


getMetadataMap(): jspb.Map<string, string>;
clearMetadataMap(): void;


serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetBulkStateRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetBulkStateRequest): GetBulkStateRequest.AsObject;
Expand All @@ -93,6 +103,8 @@ export namespace GetBulkStateRequest {
storeName: string,
keysList: Array<string>,
parallelism: number,

metadataMap: Array<[string, string]>,
}
}

Expand Down Expand Up @@ -131,6 +143,9 @@ export class BulkStateItem extends jspb.Message {
getEtag(): string;
setEtag(value: string): void;

getError(): string;
setError(value: string): void;


serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): BulkStateItem.AsObject;
Expand All @@ -147,6 +162,7 @@ export namespace BulkStateItem {
key: string,
data: Uint8Array | string,
etag: string,
error: string,
}
}

Expand Down Expand Up @@ -194,6 +210,10 @@ export class DeleteStateRequest extends jspb.Message {
setOptions(value?: dapr_proto_common_v1_common_pb.StateOptions): void;


getMetadataMap(): jspb.Map<string, string>;
clearMetadataMap(): void;


serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteStateRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteStateRequest): DeleteStateRequest.AsObject;
Expand All @@ -210,6 +230,8 @@ export namespace DeleteStateRequest {
key: string,
etag: string,
options?: dapr_proto_common_v1_common_pb.StateOptions.AsObject,

metadataMap: Array<[string, string]>,
}
}

Expand Down
137 changes: 133 additions & 4 deletions src/dapr/proto/runtime/v1/dapr_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,8 @@ proto.dapr.proto.runtime.v1.GetStateRequest.toObject = function(includeInstance,
var f, obj = {
storeName: jspb.Message.getFieldWithDefault(msg, 1, ""),
key: jspb.Message.getFieldWithDefault(msg, 2, ""),
consistency: jspb.Message.getFieldWithDefault(msg, 3, 0)
consistency: jspb.Message.getFieldWithDefault(msg, 3, 0),
metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : []
};

if (includeInstance) {
Expand Down Expand Up @@ -610,6 +611,12 @@ proto.dapr.proto.runtime.v1.GetStateRequest.deserializeBinaryFromReader = functi
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;
Expand Down Expand Up @@ -660,6 +667,10 @@ proto.dapr.proto.runtime.v1.GetStateRequest.serializeBinaryToWriter = function(m
f
);
}
f = message.getMetadataMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
}
};


Expand Down Expand Up @@ -717,6 +728,28 @@ proto.dapr.proto.runtime.v1.GetStateRequest.prototype.setConsistency = function(
};


/**
* map<string, string> metadata = 4;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,string>}
*/
proto.dapr.proto.runtime.v1.GetStateRequest.prototype.getMetadataMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,string>} */ (
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.
Expand Down Expand Up @@ -758,7 +791,8 @@ proto.dapr.proto.runtime.v1.GetBulkStateRequest.toObject = function(includeInsta
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)
parallelism: jspb.Message.getFieldWithDefault(msg, 3, 0),
metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : []
};

if (includeInstance) {
Expand Down Expand Up @@ -807,6 +841,12 @@ proto.dapr.proto.runtime.v1.GetBulkStateRequest.deserializeBinaryFromReader = fu
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;
Expand Down Expand Up @@ -857,6 +897,10 @@ proto.dapr.proto.runtime.v1.GetBulkStateRequest.serializeBinaryToWriter = functi
f
);
}
f = message.getMetadataMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
}
};


Expand Down Expand Up @@ -933,6 +977,28 @@ proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.setParallelism = funct
};


/**
* map<string, string> metadata = 4;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,string>}
*/
proto.dapr.proto.runtime.v1.GetBulkStateRequest.prototype.getMetadataMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,string>} */ (
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.
Expand Down Expand Up @@ -1127,7 +1193,8 @@ proto.dapr.proto.runtime.v1.BulkStateItem.toObject = function(includeInstance, m
var f, obj = {
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
data: msg.getData_asB64(),
etag: jspb.Message.getFieldWithDefault(msg, 3, "")
etag: jspb.Message.getFieldWithDefault(msg, 3, ""),
error: jspb.Message.getFieldWithDefault(msg, 4, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -1176,6 +1243,10 @@ proto.dapr.proto.runtime.v1.BulkStateItem.deserializeBinaryFromReader = function
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;
Expand Down Expand Up @@ -1226,6 +1297,13 @@ proto.dapr.proto.runtime.v1.BulkStateItem.serializeBinaryToWriter = function(mes
f
);
}
f = message.getError();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};


Expand Down Expand Up @@ -1307,6 +1385,24 @@ proto.dapr.proto.runtime.v1.BulkStateItem.prototype.setEtag = function(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);
};





Expand Down Expand Up @@ -1526,7 +1622,8 @@ proto.dapr.proto.runtime.v1.DeleteStateRequest.toObject = function(includeInstan
storeName: jspb.Message.getFieldWithDefault(msg, 1, ""),
key: jspb.Message.getFieldWithDefault(msg, 2, ""),
etag: jspb.Message.getFieldWithDefault(msg, 3, ""),
options: (f = msg.getOptions()) && dapr_proto_common_v1_common_pb.StateOptions.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) {
Expand Down Expand Up @@ -1580,6 +1677,12 @@ proto.dapr.proto.runtime.v1.DeleteStateRequest.deserializeBinaryFromReader = fun
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;
Expand Down Expand Up @@ -1638,6 +1741,10 @@ proto.dapr.proto.runtime.v1.DeleteStateRequest.serializeBinaryToWriter = functio
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);
}
};


Expand Down Expand Up @@ -1732,6 +1839,28 @@ proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.hasOptions = function()
};


/**
* map<string, string> metadata = 5;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,string>}
*/
proto.dapr.proto.runtime.v1.DeleteStateRequest.prototype.getMetadataMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,string>} */ (
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.
Expand Down