Skip to content

Commit 505a124

Browse files
authored
Update proto (#73)
* Update proto client * Also bump package.json version to prepare for release
1 parent 24c57dc commit 505a124

File tree

6 files changed

+29
-34
lines changed

6 files changed

+29
-34
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dapr-client",
3-
"version": "0.9.0-preview01",
3+
"version": "0.11.0-preview01",
44
"description": "Client for dapr, a distributed systems runtime. https://dapr.io",
55
"main": "src/index.js",
66
"types": "src/main.d.ts",

src/dapr/proto/common/v1/common_pb.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ export class HTTPExtension extends jspb.Message {
1111
getVerb(): HTTPExtension.Verb;
1212
setVerb(value: HTTPExtension.Verb): HTTPExtension;
1313

14-
15-
getQuerystringMap(): jspb.Map<string, string>;
16-
clearQuerystringMap(): void;
14+
getQuerystring(): string;
15+
setQuerystring(value: string): HTTPExtension;
1716

1817

1918
serializeBinary(): Uint8Array;
@@ -29,8 +28,7 @@ export class HTTPExtension extends jspb.Message {
2928
export namespace HTTPExtension {
3029
export type AsObject = {
3130
verb: HTTPExtension.Verb,
32-
33-
querystringMap: Array<[string, string]>,
31+
querystring: string,
3432
}
3533

3634
export enum Verb {

src/dapr/proto/common/v1/common_pb.js

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ proto.dapr.proto.common.v1.HTTPExtension.prototype.toObject = function(opt_inclu
184184
proto.dapr.proto.common.v1.HTTPExtension.toObject = function(includeInstance, msg) {
185185
var f, obj = {
186186
verb: jspb.Message.getFieldWithDefault(msg, 1, 0),
187-
querystringMap: (f = msg.getQuerystringMap()) ? f.toObject(includeInstance, undefined) : []
187+
querystring: jspb.Message.getFieldWithDefault(msg, 2, "")
188188
};
189189

190190
if (includeInstance) {
@@ -226,10 +226,8 @@ proto.dapr.proto.common.v1.HTTPExtension.deserializeBinaryFromReader = function(
226226
msg.setVerb(value);
227227
break;
228228
case 2:
229-
var value = msg.getQuerystringMap();
230-
reader.readMessage(value, function(message, reader) {
231-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
232-
});
229+
var value = /** @type {string} */ (reader.readString());
230+
msg.setQuerystring(value);
233231
break;
234232
default:
235233
reader.skipField();
@@ -267,9 +265,12 @@ proto.dapr.proto.common.v1.HTTPExtension.serializeBinaryToWriter = function(mess
267265
f
268266
);
269267
}
270-
f = message.getQuerystringMap(true);
271-
if (f && f.getLength() > 0) {
272-
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
268+
f = message.getQuerystring();
269+
if (f.length > 0) {
270+
writer.writeString(
271+
2,
272+
f
273+
);
273274
}
274275
};
275276

@@ -308,25 +309,21 @@ proto.dapr.proto.common.v1.HTTPExtension.prototype.setVerb = function(value) {
308309

309310

310311
/**
311-
* map<string, string> querystring = 2;
312-
* @param {boolean=} opt_noLazyCreate Do not create the map if
313-
* empty, instead returning `undefined`
314-
* @return {!jspb.Map<string,string>}
312+
* optional string querystring = 2;
313+
* @return {string}
315314
*/
316-
proto.dapr.proto.common.v1.HTTPExtension.prototype.getQuerystringMap = function(opt_noLazyCreate) {
317-
return /** @type {!jspb.Map<string,string>} */ (
318-
jspb.Message.getMapField(this, 2, opt_noLazyCreate,
319-
null));
315+
proto.dapr.proto.common.v1.HTTPExtension.prototype.getQuerystring = function() {
316+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
320317
};
321318

322319

323320
/**
324-
* Clears values from the map. The map will be non-null.
321+
* @param {string} value
325322
* @return {!proto.dapr.proto.common.v1.HTTPExtension} returns this
326323
*/
327-
proto.dapr.proto.common.v1.HTTPExtension.prototype.clearQuerystringMap = function() {
328-
this.getQuerystringMap().clear();
329-
return this;};
324+
proto.dapr.proto.common.v1.HTTPExtension.prototype.setQuerystring = function(value) {
325+
return jspb.Message.setProto3StringField(this, 2, value);
326+
};
330327

331328

332329

src/dapr/proto/runtime/v1/appcallback_grpc_pb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// Original file comments:
44
// ------------------------------------------------------------
5-
// Copyright (c) Microsoft Corporation.
5+
// Copyright (c) Microsoft Corporation and Dapr Contributors.
66
// Licensed under the MIT License.
77
// ------------------------------------------------------------
88
//

src/dapr/proto/runtime/v1/dapr_grpc_pb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// Original file comments:
44
// ------------------------------------------------------------
5-
// Copyright (c) Microsoft Corporation.
5+
// Copyright (c) Microsoft Corporation and Dapr Contributors.
66
// Licensed under the MIT License.
77
// ------------------------------------------------------------
88
//

0 commit comments

Comments
 (0)