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
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 27 additions & 3 deletions src/dapr/proto/common/v1/common_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ export class StateItem extends jspb.Message {
getValue_asB64(): string;
setValue(value: Uint8Array | string): StateItem;

getEtag(): string;
setEtag(value: string): StateItem;

hasEtag(): boolean;
clearEtag(): void;
getEtag(): Etag | undefined;
setEtag(value?: Etag): StateItem;


getMetadataMap(): jspb.Map<string, string>;
Expand All @@ -151,13 +154,34 @@ export namespace StateItem {
export type AsObject = {
key: string,
value: Uint8Array | string,
etag: string,
etag?: Etag.AsObject,

metadataMap: Array<[string, string]>,
options?: StateOptions.AsObject,
}
}

export class Etag extends jspb.Message {
getValue(): string;
setValue(value: string): Etag;


serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Etag.AsObject;
static toObject(includeInstance: boolean, msg: Etag): Etag.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: Etag, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Etag;
static deserializeBinaryFromReader(message: Etag, reader: jspb.BinaryReader): Etag;
}

export namespace Etag {
export type AsObject = {
value: string,
}
}

export class StateOptions extends jspb.Message {
getConcurrency(): StateOptions.StateConcurrency;
setConcurrency(value: StateOptions.StateConcurrency): StateOptions;
Expand Down
195 changes: 184 additions & 11 deletions src/dapr/proto/common/v1/common_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var global = Function('return this')();

var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
goog.object.extend(proto, google_protobuf_any_pb);
goog.exportSymbol('proto.dapr.proto.common.v1.Etag', null, global);
goog.exportSymbol('proto.dapr.proto.common.v1.HTTPExtension', null, global);
goog.exportSymbol('proto.dapr.proto.common.v1.HTTPExtension.Verb', null, global);
goog.exportSymbol('proto.dapr.proto.common.v1.InvokeRequest', null, global);
Expand Down Expand Up @@ -108,6 +109,27 @@ if (goog.DEBUG && !COMPILED) {
*/
proto.dapr.proto.common.v1.StateItem.displayName = 'proto.dapr.proto.common.v1.StateItem';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.dapr.proto.common.v1.Etag = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.dapr.proto.common.v1.Etag, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.dapr.proto.common.v1.Etag.displayName = 'proto.dapr.proto.common.v1.Etag';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
Expand Down Expand Up @@ -784,7 +806,7 @@ proto.dapr.proto.common.v1.StateItem.toObject = function(includeInstance, msg) {
var f, obj = {
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
value: msg.getValue_asB64(),
etag: jspb.Message.getFieldWithDefault(msg, 3, ""),
etag: (f = msg.getEtag()) && proto.dapr.proto.common.v1.Etag.toObject(includeInstance, f),
metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [],
options: (f = msg.getOptions()) && proto.dapr.proto.common.v1.StateOptions.toObject(includeInstance, f)
};
Expand Down Expand Up @@ -832,7 +854,8 @@ proto.dapr.proto.common.v1.StateItem.deserializeBinaryFromReader = function(msg,
msg.setValue(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
var value = new proto.dapr.proto.common.v1.Etag;
reader.readMessage(value,proto.dapr.proto.common.v1.Etag.deserializeBinaryFromReader);
msg.setEtag(value);
break;
case 4:
Expand Down Expand Up @@ -890,10 +913,11 @@ proto.dapr.proto.common.v1.StateItem.serializeBinaryToWriter = function(message,
);
}
f = message.getEtag();
if (f.length > 0) {
writer.writeString(
if (f != null) {
writer.writeMessage(
3,
f
f,
proto.dapr.proto.common.v1.Etag.serializeBinaryToWriter
);
}
f = message.getMetadataMap(true);
Expand Down Expand Up @@ -972,20 +996,39 @@ proto.dapr.proto.common.v1.StateItem.prototype.setValue = function(value) {


/**
* optional string etag = 3;
* @return {string}
* optional Etag etag = 3;
* @return {?proto.dapr.proto.common.v1.Etag}
*/
proto.dapr.proto.common.v1.StateItem.prototype.getEtag = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
return /** @type{?proto.dapr.proto.common.v1.Etag} */ (
jspb.Message.getWrapperField(this, proto.dapr.proto.common.v1.Etag, 3));
};


/**
* @param {string} value
* @param {?proto.dapr.proto.common.v1.Etag|undefined} value
* @return {!proto.dapr.proto.common.v1.StateItem} returns this
*/
*/
proto.dapr.proto.common.v1.StateItem.prototype.setEtag = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
return jspb.Message.setWrapperField(this, 3, value);
};


/**
* Clears the message field making it undefined.
* @return {!proto.dapr.proto.common.v1.StateItem} returns this
*/
proto.dapr.proto.common.v1.StateItem.prototype.clearEtag = function() {
return this.setEtag(undefined);
};


/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.dapr.proto.common.v1.StateItem.prototype.hasEtag = function() {
return jspb.Message.getField(this, 3) != null;
};


Expand Down Expand Up @@ -1051,6 +1094,136 @@ proto.dapr.proto.common.v1.StateItem.prototype.hasOptions = function() {



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will 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.common.v1.Etag.prototype.toObject = function(opt_includeInstance) {
return proto.dapr.proto.common.v1.Etag.toObject(opt_includeInstance, this);
};


/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.dapr.proto.common.v1.Etag} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.dapr.proto.common.v1.Etag.toObject = function(includeInstance, msg) {
var f, obj = {
value: jspb.Message.getFieldWithDefault(msg, 1, "")
};

if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}


/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.dapr.proto.common.v1.Etag}
*/
proto.dapr.proto.common.v1.Etag.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.dapr.proto.common.v1.Etag;
return proto.dapr.proto.common.v1.Etag.deserializeBinaryFromReader(msg, reader);
};


/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.dapr.proto.common.v1.Etag} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.dapr.proto.common.v1.Etag}
*/
proto.dapr.proto.common.v1.Etag.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};


/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.dapr.proto.common.v1.Etag.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.dapr.proto.common.v1.Etag.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};


/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.dapr.proto.common.v1.Etag} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.dapr.proto.common.v1.Etag.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getValue();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};


/**
* optional string value = 1;
* @return {string}
*/
proto.dapr.proto.common.v1.Etag.prototype.getValue = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
* @param {string} value
* @return {!proto.dapr.proto.common.v1.Etag} returns this
*/
proto.dapr.proto.common.v1.Etag.prototype.setValue = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};





if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
Expand Down
Loading