Socket
Socket
Sign inDemoInstall

google-protobuf

Package Overview
Dependencies
0
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 3.1.0

19

google/protobuf/any_pb.js

@@ -59,3 +59,3 @@ /**

var f, obj = {
typeUrl: msg.getTypeUrl(),
typeUrl: jspb.Message.getFieldWithDefault(msg, 1, ""),
value: msg.getValue_asB64()

@@ -162,11 +162,2 @@ };

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Any} The clone.
*/
proto.google.protobuf.Any.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Any} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string type_url = 1;

@@ -176,7 +167,7 @@ * @return {string}

proto.google.protobuf.Any.prototype.getTypeUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Any.prototype.setTypeUrl = function(value) {

@@ -192,3 +183,3 @@ jspb.Message.setField(this, 1, value);

proto.google.protobuf.Any.prototype.getValue = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 2, ""));
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};

@@ -221,3 +212,3 @@

/** @param {!(string|Uint8Array)} value */
/** @param {!(string|Uint8Array)} value */
proto.google.protobuf.Any.prototype.setValue = function(value) {

@@ -224,0 +215,0 @@ jspb.Message.setField(this, 2, value);

@@ -70,3 +70,3 @@ /**

var f, obj = {
name: msg.getName(),
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
methodsList: jspb.Message.toObjectList(msg.getMethodsList(),

@@ -76,7 +76,7 @@ proto.google.protobuf.Method.toObject, includeInstance),

google_protobuf_type_pb.Option.toObject, includeInstance),
version: msg.getVersion(),
version: jspb.Message.getFieldWithDefault(msg, 4, ""),
sourceContext: (f = msg.getSourceContext()) && google_protobuf_source_context_pb.SourceContext.toObject(includeInstance, f),
mixinsList: jspb.Message.toObjectList(msg.getMixinsList(),
proto.google.protobuf.Mixin.toObject, includeInstance),
syntax: msg.getSyntax()
syntax: jspb.Message.getFieldWithDefault(msg, 7, 0)
};

@@ -125,4 +125,3 @@

reader.readMessage(value,proto.google.protobuf.Method.deserializeBinaryFromReader);
msg.getMethodsList().push(value);
msg.setMethodsList(msg.getMethodsList());
msg.addMethods(value);
break;

@@ -132,4 +131,3 @@ case 3:

reader.readMessage(value,google_protobuf_type_pb.Option.deserializeBinaryFromReader);
msg.getOptionsList().push(value);
msg.setOptionsList(msg.getOptionsList());
msg.addOptions(value);
break;

@@ -148,4 +146,3 @@ case 4:

reader.readMessage(value,proto.google.protobuf.Mixin.deserializeBinaryFromReader);
msg.getMixinsList().push(value);
msg.setMixinsList(msg.getMixinsList());
msg.addMixins(value);
break;

@@ -251,11 +248,2 @@ case 7:

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Api} The clone.
*/
proto.google.protobuf.Api.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Api} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;

@@ -265,7 +253,7 @@ * @return {string}

proto.google.protobuf.Api.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Api.prototype.setName = function(value) {

@@ -288,3 +276,3 @@ jspb.Message.setField(this, 1, value);

/** @param {Array.<!proto.google.protobuf.Method>} value */
/** @param {!Array.<!proto.google.protobuf.Method>} value */
proto.google.protobuf.Api.prototype.setMethodsList = function(value) {

@@ -295,2 +283,12 @@ jspb.Message.setRepeatedWrapperField(this, 2, value);

/**
* @param {!proto.google.protobuf.Method=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Method}
*/
proto.google.protobuf.Api.prototype.addMethods = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.Method, opt_index);
};
proto.google.protobuf.Api.prototype.clearMethodsList = function() {

@@ -313,3 +311,3 @@ this.setMethodsList([]);

/** @param {Array.<!proto.google.protobuf.Option>} value */
/** @param {!Array.<!proto.google.protobuf.Option>} value */
proto.google.protobuf.Api.prototype.setOptionsList = function(value) {

@@ -320,2 +318,12 @@ jspb.Message.setRepeatedWrapperField(this, 3, value);

/**
* @param {!proto.google.protobuf.Option=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Option}
*/
proto.google.protobuf.Api.prototype.addOptions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Option, opt_index);
};
proto.google.protobuf.Api.prototype.clearOptionsList = function() {

@@ -331,7 +339,7 @@ this.setOptionsList([]);

proto.google.protobuf.Api.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Api.prototype.setVersion = function(value) {

@@ -344,6 +352,6 @@ jspb.Message.setField(this, 4, value);

* optional SourceContext source_context = 5;
* @return {proto.google.protobuf.SourceContext}
* @return {?proto.google.protobuf.SourceContext}
*/
proto.google.protobuf.Api.prototype.getSourceContext = function() {
return /** @type{proto.google.protobuf.SourceContext} */ (
return /** @type{?proto.google.protobuf.SourceContext} */ (
jspb.Message.getWrapperField(this, google_protobuf_source_context_pb.SourceContext, 5));

@@ -353,3 +361,3 @@ };

/** @param {proto.google.protobuf.SourceContext|undefined} value */
/** @param {?proto.google.protobuf.SourceContext|undefined} value */
proto.google.protobuf.Api.prototype.setSourceContext = function(value) {

@@ -367,3 +375,3 @@ jspb.Message.setWrapperField(this, 5, value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -387,3 +395,3 @@ proto.google.protobuf.Api.prototype.hasSourceContext = function() {

/** @param {Array.<!proto.google.protobuf.Mixin>} value */
/** @param {!Array.<!proto.google.protobuf.Mixin>} value */
proto.google.protobuf.Api.prototype.setMixinsList = function(value) {

@@ -394,2 +402,12 @@ jspb.Message.setRepeatedWrapperField(this, 6, value);

/**
* @param {!proto.google.protobuf.Mixin=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Mixin}
*/
proto.google.protobuf.Api.prototype.addMixins = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.protobuf.Mixin, opt_index);
};
proto.google.protobuf.Api.prototype.clearMixinsList = function() {

@@ -405,7 +423,7 @@ this.setMixinsList([]);

proto.google.protobuf.Api.prototype.getSyntax = function() {
return /** @type {!proto.google.protobuf.Syntax} */ (jspb.Message.getFieldProto3(this, 7, 0));
return /** @type {!proto.google.protobuf.Syntax} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/** @param {!proto.google.protobuf.Syntax} value */
/** @param {!proto.google.protobuf.Syntax} value */
proto.google.protobuf.Api.prototype.setSyntax = function(value) {

@@ -469,10 +487,10 @@ jspb.Message.setField(this, 7, value);

var f, obj = {
name: msg.getName(),
requestTypeUrl: msg.getRequestTypeUrl(),
requestStreaming: msg.getRequestStreaming(),
responseTypeUrl: msg.getResponseTypeUrl(),
responseStreaming: msg.getResponseStreaming(),
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
requestTypeUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
requestStreaming: jspb.Message.getFieldWithDefault(msg, 3, false),
responseTypeUrl: jspb.Message.getFieldWithDefault(msg, 4, ""),
responseStreaming: jspb.Message.getFieldWithDefault(msg, 5, false),
optionsList: jspb.Message.toObjectList(msg.getOptionsList(),
google_protobuf_type_pb.Option.toObject, includeInstance),
syntax: msg.getSyntax()
syntax: jspb.Message.getFieldWithDefault(msg, 7, 0)
};

@@ -537,4 +555,3 @@

reader.readMessage(value,google_protobuf_type_pb.Option.deserializeBinaryFromReader);
msg.getOptionsList().push(value);
msg.setOptionsList(msg.getOptionsList());
msg.addOptions(value);
break;

@@ -637,11 +654,2 @@ case 7:

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Method} The clone.
*/
proto.google.protobuf.Method.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Method} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;

@@ -651,7 +659,7 @@ * @return {string}

proto.google.protobuf.Method.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Method.prototype.setName = function(value) {

@@ -667,7 +675,7 @@ jspb.Message.setField(this, 1, value);

proto.google.protobuf.Method.prototype.getRequestTypeUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Method.prototype.setRequestTypeUrl = function(value) {

@@ -685,7 +693,7 @@ jspb.Message.setField(this, 2, value);

proto.google.protobuf.Method.prototype.getRequestStreaming = function() {
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 3, false));
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false));
};
/** @param {boolean} value */
/** @param {boolean} value */
proto.google.protobuf.Method.prototype.setRequestStreaming = function(value) {

@@ -701,7 +709,7 @@ jspb.Message.setField(this, 3, value);

proto.google.protobuf.Method.prototype.getResponseTypeUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Method.prototype.setResponseTypeUrl = function(value) {

@@ -719,7 +727,7 @@ jspb.Message.setField(this, 4, value);

proto.google.protobuf.Method.prototype.getResponseStreaming = function() {
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false));
};
/** @param {boolean} value */
/** @param {boolean} value */
proto.google.protobuf.Method.prototype.setResponseStreaming = function(value) {

@@ -742,3 +750,3 @@ jspb.Message.setField(this, 5, value);

/** @param {Array.<!proto.google.protobuf.Option>} value */
/** @param {!Array.<!proto.google.protobuf.Option>} value */
proto.google.protobuf.Method.prototype.setOptionsList = function(value) {

@@ -749,2 +757,12 @@ jspb.Message.setRepeatedWrapperField(this, 6, value);

/**
* @param {!proto.google.protobuf.Option=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Option}
*/
proto.google.protobuf.Method.prototype.addOptions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.protobuf.Option, opt_index);
};
proto.google.protobuf.Method.prototype.clearOptionsList = function() {

@@ -760,7 +778,7 @@ this.setOptionsList([]);

proto.google.protobuf.Method.prototype.getSyntax = function() {
return /** @type {!proto.google.protobuf.Syntax} */ (jspb.Message.getFieldProto3(this, 7, 0));
return /** @type {!proto.google.protobuf.Syntax} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/** @param {!proto.google.protobuf.Syntax} value */
/** @param {!proto.google.protobuf.Syntax} value */
proto.google.protobuf.Method.prototype.setSyntax = function(value) {

@@ -817,4 +835,4 @@ jspb.Message.setField(this, 7, value);

var f, obj = {
name: msg.getName(),
root: msg.getRoot()
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
root: jspb.Message.getFieldWithDefault(msg, 2, "")
};

@@ -920,11 +938,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Mixin} The clone.
*/
proto.google.protobuf.Mixin.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Mixin} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;

@@ -934,7 +943,7 @@ * @return {string}

proto.google.protobuf.Mixin.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Mixin.prototype.setName = function(value) {

@@ -950,7 +959,7 @@ jspb.Message.setField(this, 1, value);

proto.google.protobuf.Mixin.prototype.getRoot = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Mixin.prototype.setRoot = function(value) {

@@ -957,0 +966,0 @@ jspb.Message.setField(this, 2, value);

@@ -111,4 +111,3 @@ /**

var value = /** @type {string} */ (reader.readString());
msg.getFileToGenerateList().push(value);
msg.setFileToGenerateList(msg.getFileToGenerateList());
msg.addFileToGenerate(value);
break;

@@ -122,4 +121,3 @@ case 2:

reader.readMessage(value,google_protobuf_descriptor_pb.FileDescriptorProto.deserializeBinaryFromReader);
msg.getProtoFileList().push(value);
msg.setProtoFileList(msg.getProtoFileList());
msg.addProtoFile(value);
break;

@@ -171,3 +169,3 @@ default:

}
f = jspb.Message.getField(this, 2);
f = /** @type {string} */ (jspb.Message.getField(this, 2));
if (f != null) {

@@ -191,11 +189,2 @@ writer.writeString(

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} The clone.
*/
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.compiler.CodeGeneratorRequest} */ (jspb.Message.cloneMessage(this));
};
/**
* repeated string file_to_generate = 1;

@@ -211,3 +200,3 @@ * If you change this array by adding, removing or replacing elements, or if you

/** @param {Array.<string>} value */
/** @param {!Array.<string>} value */
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.setFileToGenerateList = function(value) {

@@ -218,4 +207,13 @@ jspb.Message.setField(this, 1, value || []);

/**
* @param {!string} value
* @param {number=} opt_index
*/
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.addFileToGenerate = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.clearFileToGenerateList = function() {
jspb.Message.setField(this, 1, []);
this.setFileToGenerateList([]);
};

@@ -229,7 +227,7 @@

proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.getParameter = function() {
return /** @type {string} */ (!this.hasParameter() ? "" : jspb.Message.getField(this, 2));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string?|undefined} value */
/** @param {string} value */
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.setParameter = function(value) {

@@ -247,3 +245,3 @@ jspb.Message.setField(this, 2, value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -267,3 +265,3 @@ proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.hasParameter = function() {

/** @param {Array.<!proto.google.protobuf.FileDescriptorProto>} value */
/** @param {!Array.<!proto.google.protobuf.FileDescriptorProto>} value */
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.setProtoFileList = function(value) {

@@ -274,2 +272,12 @@ jspb.Message.setRepeatedWrapperField(this, 15, value);

/**
* @param {!proto.google.protobuf.FileDescriptorProto=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.FileDescriptorProto}
*/
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.addProtoFile = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.google.protobuf.FileDescriptorProto, opt_index);
};
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.clearProtoFileList = function() {

@@ -379,4 +387,3 @@ this.setProtoFileList([]);

reader.readMessage(value,proto.google.protobuf.compiler.CodeGeneratorResponse.File.deserializeBinaryFromReader);
msg.getFileList().push(value);
msg.setFileList(msg.getFileList());
msg.addFile(value);
break;

@@ -421,3 +428,3 @@ default:

var f = undefined;
f = jspb.Message.getField(this, 1);
f = /** @type {string} */ (jspb.Message.getField(this, 1));
if (f != null) {

@@ -441,11 +448,2 @@ writer.writeString(

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} The clone.
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.compiler.CodeGeneratorResponse} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string error = 1;

@@ -455,7 +453,7 @@ * @return {string}

proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.getError = function() {
return /** @type {string} */ (!this.hasError() ? "" : jspb.Message.getField(this, 1));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string?|undefined} value */
/** @param {string} value */
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setError = function(value) {

@@ -473,3 +471,3 @@ jspb.Message.setField(this, 1, value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -493,3 +491,3 @@ proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.hasError = function() {

/** @param {Array.<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>} value */
/** @param {!Array.<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>} value */
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setFileList = function(value) {

@@ -500,2 +498,12 @@ jspb.Message.setRepeatedWrapperField(this, 15, value);

/**
* @param {!proto.google.protobuf.compiler.CodeGeneratorResponse.File=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File}
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.addFile = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.google.protobuf.compiler.CodeGeneratorResponse.File, opt_index);
};
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.clearFileList = function() {

@@ -641,3 +649,3 @@ this.setFileList([]);

var f = undefined;
f = jspb.Message.getField(this, 1);
f = /** @type {string} */ (jspb.Message.getField(this, 1));
if (f != null) {

@@ -649,3 +657,3 @@ writer.writeString(

}
f = jspb.Message.getField(this, 2);
f = /** @type {string} */ (jspb.Message.getField(this, 2));
if (f != null) {

@@ -657,3 +665,3 @@ writer.writeString(

}
f = jspb.Message.getField(this, 15);
f = /** @type {string} */ (jspb.Message.getField(this, 15));
if (f != null) {

@@ -669,11 +677,2 @@ writer.writeString(

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} The clone.
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;

@@ -683,7 +682,7 @@ * @return {string}

proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.getName = function() {
return /** @type {string} */ (!this.hasName() ? "" : jspb.Message.getField(this, 1));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string?|undefined} value */
/** @param {string} value */
proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.setName = function(value) {

@@ -701,3 +700,3 @@ jspb.Message.setField(this, 1, value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -714,7 +713,7 @@ proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.hasName = function() {

proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.getInsertionPoint = function() {
return /** @type {string} */ (!this.hasInsertionPoint() ? "" : jspb.Message.getField(this, 2));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string?|undefined} value */
/** @param {string} value */
proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.setInsertionPoint = function(value) {

@@ -732,3 +731,3 @@ jspb.Message.setField(this, 2, value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -745,7 +744,7 @@ proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.hasInsertionPoint = function() {

proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.getContent = function() {
return /** @type {string} */ (!this.hasContent() ? "" : jspb.Message.getField(this, 15));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
};
/** @param {string?|undefined} value */
/** @param {string} value */
proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.setContent = function(value) {

@@ -763,3 +762,3 @@ jspb.Message.setField(this, 15, value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -766,0 +765,0 @@ proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.hasContent = function() {

@@ -59,4 +59,4 @@ /**

var f, obj = {
seconds: msg.getSeconds(),
nanos: msg.getNanos()
seconds: jspb.Message.getFieldWithDefault(msg, 1, 0),
nanos: jspb.Message.getFieldWithDefault(msg, 2, 0)
};

@@ -162,11 +162,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Duration} The clone.
*/
proto.google.protobuf.Duration.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Duration} */ (jspb.Message.cloneMessage(this));
};
/**
* optional int64 seconds = 1;

@@ -176,7 +167,7 @@ * @return {number}

proto.google.protobuf.Duration.prototype.getSeconds = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.Duration.prototype.setSeconds = function(value) {

@@ -192,7 +183,7 @@ jspb.Message.setField(this, 1, value);

proto.google.protobuf.Duration.prototype.getNanos = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.Duration.prototype.setNanos = function(value) {

@@ -199,0 +190,0 @@ jspb.Message.setField(this, 2, value);

@@ -137,11 +137,2 @@ /**

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Empty} The clone.
*/
proto.google.protobuf.Empty.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Empty} */ (jspb.Message.cloneMessage(this));
};
goog.object.extend(exports, proto.google.protobuf);

@@ -105,4 +105,3 @@ /**

var value = /** @type {string} */ (reader.readString());
msg.getPathsList().push(value);
msg.setPathsList(msg.getPathsList());
msg.addPaths(value);
break;

@@ -158,11 +157,2 @@ default:

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.FieldMask} The clone.
*/
proto.google.protobuf.FieldMask.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.FieldMask} */ (jspb.Message.cloneMessage(this));
};
/**
* repeated string paths = 1;

@@ -178,3 +168,3 @@ * If you change this array by adding, removing or replacing elements, or if you

/** @param {Array.<string>} value */
/** @param {!Array.<string>} value */
proto.google.protobuf.FieldMask.prototype.setPathsList = function(value) {

@@ -185,4 +175,13 @@ jspb.Message.setField(this, 1, value || []);

/**
* @param {!string} value
* @param {number=} opt_index
*/
proto.google.protobuf.FieldMask.prototype.addPaths = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
proto.google.protobuf.FieldMask.prototype.clearPathsList = function() {
jspb.Message.setField(this, 1, []);
this.setPathsList([]);
};

@@ -189,0 +188,0 @@

@@ -59,3 +59,3 @@ /**

var f, obj = {
fileName: msg.getFileName()
fileName: jspb.Message.getFieldWithDefault(msg, 1, "")
};

@@ -150,11 +150,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.SourceContext} The clone.
*/
proto.google.protobuf.SourceContext.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.SourceContext} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string file_name = 1;

@@ -164,7 +155,7 @@ * @return {string}

proto.google.protobuf.SourceContext.prototype.getFileName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.SourceContext.prototype.setFileName = function(value) {

@@ -171,0 +162,0 @@ jspb.Message.setField(this, 1, value);

@@ -62,3 +62,3 @@ /**

var f, obj = {
fieldsMap: (f = msg.getFieldsMap(true)) ? f.toArray() : []
fieldsMap: (f = msg.getFieldsMap()) ? f.toArray() : []
};

@@ -152,11 +152,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Struct} The clone.
*/
proto.google.protobuf.Struct.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Struct} */ (jspb.Message.cloneMessage(this));
};
/**
* map<string, Value> fields = 1;

@@ -174,3 +165,8 @@ * @param {boolean=} opt_noLazyCreate Do not create the map if

proto.google.protobuf.Struct.prototype.clearFieldsMap = function() {
this.getFieldsMap().clear();
};
/**

@@ -251,6 +247,6 @@ * Generated by JsPbCodeGenerator.

var f, obj = {
nullValue: jspb.Message.getField(msg, 1),
numberValue: jspb.Message.getOptionalFloatingPointField(msg, 2),
stringValue: jspb.Message.getField(msg, 3),
boolValue: jspb.Message.getField(msg, 4),
nullValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
numberValue: +jspb.Message.getFieldWithDefault(msg, 2, 0.0),
stringValue: jspb.Message.getFieldWithDefault(msg, 3, ""),
boolValue: jspb.Message.getFieldWithDefault(msg, 4, false),
structValue: (f = msg.getStructValue()) && proto.google.protobuf.Struct.toObject(includeInstance, f),

@@ -358,3 +354,3 @@ listValue: (f = msg.getListValue()) && proto.google.protobuf.ListValue.toObject(includeInstance, f)

var f = undefined;
f = jspb.Message.getField(this, 1);
f = /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getField(this, 1));
if (f != null) {

@@ -366,3 +362,3 @@ writer.writeEnum(

}
f = jspb.Message.getField(this, 2);
f = /** @type {number} */ (jspb.Message.getField(this, 2));
if (f != null) {

@@ -374,3 +370,3 @@ writer.writeDouble(

}
f = jspb.Message.getField(this, 3);
f = /** @type {string} */ (jspb.Message.getField(this, 3));
if (f != null) {

@@ -382,3 +378,3 @@ writer.writeString(

}
f = jspb.Message.getField(this, 4);
f = /** @type {boolean} */ (jspb.Message.getField(this, 4));
if (f != null) {

@@ -410,20 +406,11 @@ writer.writeBool(

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Value} The clone.
*/
proto.google.protobuf.Value.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Value} */ (jspb.Message.cloneMessage(this));
};
/**
* optional NullValue null_value = 1;
* @return {proto.google.protobuf.NullValue}
* @return {!proto.google.protobuf.NullValue}
*/
proto.google.protobuf.Value.prototype.getNullValue = function() {
return /** @type {proto.google.protobuf.NullValue} */ (!this.hasNullValue() ? 0 : jspb.Message.getField(this, 1));
return /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {proto.google.protobuf.NullValue|undefined} value */
/** @param {!proto.google.protobuf.NullValue} value */
proto.google.protobuf.Value.prototype.setNullValue = function(value) {

@@ -441,3 +428,3 @@ jspb.Message.setOneofField(this, 1, proto.google.protobuf.Value.oneofGroups_[0], value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -454,7 +441,7 @@ proto.google.protobuf.Value.prototype.hasNullValue = function() {

proto.google.protobuf.Value.prototype.getNumberValue = function() {
return /** @type {number} */ (!this.hasNumberValue() ? 0.0 : +jspb.Message.getField(this, 2));
return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0));
};
/** @param {number?|undefined} value */
/** @param {number} value */
proto.google.protobuf.Value.prototype.setNumberValue = function(value) {

@@ -472,3 +459,3 @@ jspb.Message.setOneofField(this, 2, proto.google.protobuf.Value.oneofGroups_[0], value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -485,7 +472,7 @@ proto.google.protobuf.Value.prototype.hasNumberValue = function() {

proto.google.protobuf.Value.prototype.getStringValue = function() {
return /** @type {string} */ (!this.hasStringValue() ? "" : jspb.Message.getField(this, 3));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/** @param {string?|undefined} value */
/** @param {string} value */
proto.google.protobuf.Value.prototype.setStringValue = function(value) {

@@ -503,3 +490,3 @@ jspb.Message.setOneofField(this, 3, proto.google.protobuf.Value.oneofGroups_[0], value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -518,7 +505,7 @@ proto.google.protobuf.Value.prototype.hasStringValue = function() {

proto.google.protobuf.Value.prototype.getBoolValue = function() {
return /** @type {boolean} */ (!this.hasBoolValue() ? false : jspb.Message.getField(this, 4));
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false));
};
/** @param {boolean?|undefined} value */
/** @param {boolean} value */
proto.google.protobuf.Value.prototype.setBoolValue = function(value) {

@@ -536,3 +523,3 @@ jspb.Message.setOneofField(this, 4, proto.google.protobuf.Value.oneofGroups_[0], value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -546,6 +533,6 @@ proto.google.protobuf.Value.prototype.hasBoolValue = function() {

* optional Struct struct_value = 5;
* @return {proto.google.protobuf.Struct}
* @return {?proto.google.protobuf.Struct}
*/
proto.google.protobuf.Value.prototype.getStructValue = function() {
return /** @type{proto.google.protobuf.Struct} */ (
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, proto.google.protobuf.Struct, 5));

@@ -555,3 +542,3 @@ };

/** @param {proto.google.protobuf.Struct|undefined} value */
/** @param {?proto.google.protobuf.Struct|undefined} value */
proto.google.protobuf.Value.prototype.setStructValue = function(value) {

@@ -569,3 +556,3 @@ jspb.Message.setOneofWrapperField(this, 5, proto.google.protobuf.Value.oneofGroups_[0], value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -579,6 +566,6 @@ proto.google.protobuf.Value.prototype.hasStructValue = function() {

* optional ListValue list_value = 6;
* @return {proto.google.protobuf.ListValue}
* @return {?proto.google.protobuf.ListValue}
*/
proto.google.protobuf.Value.prototype.getListValue = function() {
return /** @type{proto.google.protobuf.ListValue} */ (
return /** @type{?proto.google.protobuf.ListValue} */ (
jspb.Message.getWrapperField(this, proto.google.protobuf.ListValue, 6));

@@ -588,3 +575,3 @@ };

/** @param {proto.google.protobuf.ListValue|undefined} value */
/** @param {?proto.google.protobuf.ListValue|undefined} value */
proto.google.protobuf.Value.prototype.setListValue = function(value) {

@@ -602,3 +589,3 @@ jspb.Message.setOneofWrapperField(this, 6, proto.google.protobuf.Value.oneofGroups_[0], value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -704,4 +691,3 @@ proto.google.protobuf.Value.prototype.hasListValue = function() {

reader.readMessage(value,proto.google.protobuf.Value.deserializeBinaryFromReader);
msg.getValuesList().push(value);
msg.setValuesList(msg.getValuesList());
msg.addValues(value);
break;

@@ -758,11 +744,2 @@ default:

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.ListValue} The clone.
*/
proto.google.protobuf.ListValue.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.ListValue} */ (jspb.Message.cloneMessage(this));
};
/**
* repeated Value values = 1;

@@ -779,3 +756,3 @@ * If you change this array by adding, removing or replacing elements, or if you

/** @param {Array.<!proto.google.protobuf.Value>} value */
/** @param {!Array.<!proto.google.protobuf.Value>} value */
proto.google.protobuf.ListValue.prototype.setValuesList = function(value) {

@@ -786,2 +763,12 @@ jspb.Message.setRepeatedWrapperField(this, 1, value);

/**
* @param {!proto.google.protobuf.Value=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Value}
*/
proto.google.protobuf.ListValue.prototype.addValues = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.Value, opt_index);
};
proto.google.protobuf.ListValue.prototype.clearValuesList = function() {

@@ -788,0 +775,0 @@ this.setValuesList([]);

@@ -59,4 +59,4 @@ /**

var f, obj = {
seconds: msg.getSeconds(),
nanos: msg.getNanos()
seconds: jspb.Message.getFieldWithDefault(msg, 1, 0),
nanos: jspb.Message.getFieldWithDefault(msg, 2, 0)
};

@@ -162,11 +162,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Timestamp} The clone.
*/
proto.google.protobuf.Timestamp.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Timestamp} */ (jspb.Message.cloneMessage(this));
};
/**
* optional int64 seconds = 1;

@@ -176,7 +167,7 @@ * @return {number}

proto.google.protobuf.Timestamp.prototype.getSeconds = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.Timestamp.prototype.setSeconds = function(value) {

@@ -192,7 +183,7 @@ jspb.Message.setField(this, 1, value);

proto.google.protobuf.Timestamp.prototype.getNanos = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.Timestamp.prototype.setNanos = function(value) {

@@ -199,0 +190,0 @@ jspb.Message.setField(this, 2, value);

@@ -75,3 +75,3 @@ /**

var f, obj = {
name: msg.getName(),
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
fieldsList: jspb.Message.toObjectList(msg.getFieldsList(),

@@ -83,3 +83,3 @@ proto.google.protobuf.Field.toObject, includeInstance),

sourceContext: (f = msg.getSourceContext()) && google_protobuf_source_context_pb.SourceContext.toObject(includeInstance, f),
syntax: msg.getSyntax()
syntax: jspb.Message.getFieldWithDefault(msg, 6, 0)
};

@@ -128,9 +128,7 @@

reader.readMessage(value,proto.google.protobuf.Field.deserializeBinaryFromReader);
msg.getFieldsList().push(value);
msg.setFieldsList(msg.getFieldsList());
msg.addFields(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.getOneofsList().push(value);
msg.setOneofsList(msg.getOneofsList());
msg.addOneofs(value);
break;

@@ -140,4 +138,3 @@ case 4:

reader.readMessage(value,proto.google.protobuf.Option.deserializeBinaryFromReader);
msg.getOptionsList().push(value);
msg.setOptionsList(msg.getOptionsList());
msg.addOptions(value);
break;

@@ -240,11 +237,2 @@ case 5:

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Type} The clone.
*/
proto.google.protobuf.Type.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Type} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;

@@ -254,7 +242,7 @@ * @return {string}

proto.google.protobuf.Type.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Type.prototype.setName = function(value) {

@@ -277,3 +265,3 @@ jspb.Message.setField(this, 1, value);

/** @param {Array.<!proto.google.protobuf.Field>} value */
/** @param {!Array.<!proto.google.protobuf.Field>} value */
proto.google.protobuf.Type.prototype.setFieldsList = function(value) {

@@ -284,2 +272,12 @@ jspb.Message.setRepeatedWrapperField(this, 2, value);

/**
* @param {!proto.google.protobuf.Field=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Field}
*/
proto.google.protobuf.Type.prototype.addFields = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.Field, opt_index);
};
proto.google.protobuf.Type.prototype.clearFieldsList = function() {

@@ -301,3 +299,3 @@ this.setFieldsList([]);

/** @param {Array.<string>} value */
/** @param {!Array.<string>} value */
proto.google.protobuf.Type.prototype.setOneofsList = function(value) {

@@ -308,4 +306,13 @@ jspb.Message.setField(this, 3, value || []);

/**
* @param {!string} value
* @param {number=} opt_index
*/
proto.google.protobuf.Type.prototype.addOneofs = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};
proto.google.protobuf.Type.prototype.clearOneofsList = function() {
jspb.Message.setField(this, 3, []);
this.setOneofsList([]);
};

@@ -326,3 +333,3 @@

/** @param {Array.<!proto.google.protobuf.Option>} value */
/** @param {!Array.<!proto.google.protobuf.Option>} value */
proto.google.protobuf.Type.prototype.setOptionsList = function(value) {

@@ -333,2 +340,12 @@ jspb.Message.setRepeatedWrapperField(this, 4, value);

/**
* @param {!proto.google.protobuf.Option=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Option}
*/
proto.google.protobuf.Type.prototype.addOptions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.Option, opt_index);
};
proto.google.protobuf.Type.prototype.clearOptionsList = function() {

@@ -341,6 +358,6 @@ this.setOptionsList([]);

* optional SourceContext source_context = 5;
* @return {proto.google.protobuf.SourceContext}
* @return {?proto.google.protobuf.SourceContext}
*/
proto.google.protobuf.Type.prototype.getSourceContext = function() {
return /** @type{proto.google.protobuf.SourceContext} */ (
return /** @type{?proto.google.protobuf.SourceContext} */ (
jspb.Message.getWrapperField(this, google_protobuf_source_context_pb.SourceContext, 5));

@@ -350,3 +367,3 @@ };

/** @param {proto.google.protobuf.SourceContext|undefined} value */
/** @param {?proto.google.protobuf.SourceContext|undefined} value */
proto.google.protobuf.Type.prototype.setSourceContext = function(value) {

@@ -364,3 +381,3 @@ jspb.Message.setWrapperField(this, 5, value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -377,7 +394,7 @@ proto.google.protobuf.Type.prototype.hasSourceContext = function() {

proto.google.protobuf.Type.prototype.getSyntax = function() {
return /** @type {!proto.google.protobuf.Syntax} */ (jspb.Message.getFieldProto3(this, 6, 0));
return /** @type {!proto.google.protobuf.Syntax} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/** @param {!proto.google.protobuf.Syntax} value */
/** @param {!proto.google.protobuf.Syntax} value */
proto.google.protobuf.Type.prototype.setSyntax = function(value) {

@@ -441,13 +458,13 @@ jspb.Message.setField(this, 6, value);

var f, obj = {
kind: msg.getKind(),
cardinality: msg.getCardinality(),
number: msg.getNumber(),
name: msg.getName(),
typeUrl: msg.getTypeUrl(),
oneofIndex: msg.getOneofIndex(),
packed: msg.getPacked(),
kind: jspb.Message.getFieldWithDefault(msg, 1, 0),
cardinality: jspb.Message.getFieldWithDefault(msg, 2, 0),
number: jspb.Message.getFieldWithDefault(msg, 3, 0),
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
typeUrl: jspb.Message.getFieldWithDefault(msg, 6, ""),
oneofIndex: jspb.Message.getFieldWithDefault(msg, 7, 0),
packed: jspb.Message.getFieldWithDefault(msg, 8, false),
optionsList: jspb.Message.toObjectList(msg.getOptionsList(),
proto.google.protobuf.Option.toObject, includeInstance),
jsonName: msg.getJsonName(),
defaultValue: msg.getDefaultValue()
jsonName: jspb.Message.getFieldWithDefault(msg, 10, ""),
defaultValue: jspb.Message.getFieldWithDefault(msg, 11, "")
};

@@ -520,4 +537,3 @@

reader.readMessage(value,proto.google.protobuf.Option.deserializeBinaryFromReader);
msg.getOptionsList().push(value);
msg.setOptionsList(msg.getOptionsList());
msg.addOptions(value);
break;

@@ -645,11 +661,2 @@ case 10:

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Field} The clone.
*/
proto.google.protobuf.Field.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Field} */ (jspb.Message.cloneMessage(this));
};
/**
* optional Kind kind = 1;

@@ -659,7 +666,7 @@ * @return {!proto.google.protobuf.Field.Kind}

proto.google.protobuf.Field.prototype.getKind = function() {
return /** @type {!proto.google.protobuf.Field.Kind} */ (jspb.Message.getFieldProto3(this, 1, 0));
return /** @type {!proto.google.protobuf.Field.Kind} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {!proto.google.protobuf.Field.Kind} value */
/** @param {!proto.google.protobuf.Field.Kind} value */
proto.google.protobuf.Field.prototype.setKind = function(value) {

@@ -675,7 +682,7 @@ jspb.Message.setField(this, 1, value);

proto.google.protobuf.Field.prototype.getCardinality = function() {
return /** @type {!proto.google.protobuf.Field.Cardinality} */ (jspb.Message.getFieldProto3(this, 2, 0));
return /** @type {!proto.google.protobuf.Field.Cardinality} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {!proto.google.protobuf.Field.Cardinality} value */
/** @param {!proto.google.protobuf.Field.Cardinality} value */
proto.google.protobuf.Field.prototype.setCardinality = function(value) {

@@ -691,7 +698,7 @@ jspb.Message.setField(this, 2, value);

proto.google.protobuf.Field.prototype.getNumber = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.Field.prototype.setNumber = function(value) {

@@ -707,7 +714,7 @@ jspb.Message.setField(this, 3, value);

proto.google.protobuf.Field.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Field.prototype.setName = function(value) {

@@ -723,7 +730,7 @@ jspb.Message.setField(this, 4, value);

proto.google.protobuf.Field.prototype.getTypeUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Field.prototype.setTypeUrl = function(value) {

@@ -739,7 +746,7 @@ jspb.Message.setField(this, 6, value);

proto.google.protobuf.Field.prototype.getOneofIndex = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 7, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.Field.prototype.setOneofIndex = function(value) {

@@ -757,7 +764,7 @@ jspb.Message.setField(this, 7, value);

proto.google.protobuf.Field.prototype.getPacked = function() {
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 8, false));
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false));
};
/** @param {boolean} value */
/** @param {boolean} value */
proto.google.protobuf.Field.prototype.setPacked = function(value) {

@@ -780,3 +787,3 @@ jspb.Message.setField(this, 8, value);

/** @param {Array.<!proto.google.protobuf.Option>} value */
/** @param {!Array.<!proto.google.protobuf.Option>} value */
proto.google.protobuf.Field.prototype.setOptionsList = function(value) {

@@ -787,2 +794,12 @@ jspb.Message.setRepeatedWrapperField(this, 9, value);

/**
* @param {!proto.google.protobuf.Option=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Option}
*/
proto.google.protobuf.Field.prototype.addOptions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.google.protobuf.Option, opt_index);
};
proto.google.protobuf.Field.prototype.clearOptionsList = function() {

@@ -798,7 +815,7 @@ this.setOptionsList([]);

proto.google.protobuf.Field.prototype.getJsonName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 10, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Field.prototype.setJsonName = function(value) {

@@ -814,7 +831,7 @@ jspb.Message.setField(this, 10, value);

proto.google.protobuf.Field.prototype.getDefaultValue = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 11, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Field.prototype.setDefaultValue = function(value) {

@@ -913,3 +930,3 @@ jspb.Message.setField(this, 11, value);

var f, obj = {
name: msg.getName(),
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
enumvalueList: jspb.Message.toObjectList(msg.getEnumvalueList(),

@@ -920,3 +937,3 @@ proto.google.protobuf.EnumValue.toObject, includeInstance),

sourceContext: (f = msg.getSourceContext()) && google_protobuf_source_context_pb.SourceContext.toObject(includeInstance, f),
syntax: msg.getSyntax()
syntax: jspb.Message.getFieldWithDefault(msg, 5, 0)
};

@@ -965,4 +982,3 @@

reader.readMessage(value,proto.google.protobuf.EnumValue.deserializeBinaryFromReader);
msg.getEnumvalueList().push(value);
msg.setEnumvalueList(msg.getEnumvalueList());
msg.addEnumvalue(value);
break;

@@ -972,4 +988,3 @@ case 3:

reader.readMessage(value,proto.google.protobuf.Option.deserializeBinaryFromReader);
msg.getOptionsList().push(value);
msg.setOptionsList(msg.getOptionsList());
msg.addOptions(value);
break;

@@ -1065,11 +1080,2 @@ case 4:

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Enum} The clone.
*/
proto.google.protobuf.Enum.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Enum} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;

@@ -1079,7 +1085,7 @@ * @return {string}

proto.google.protobuf.Enum.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Enum.prototype.setName = function(value) {

@@ -1102,3 +1108,3 @@ jspb.Message.setField(this, 1, value);

/** @param {Array.<!proto.google.protobuf.EnumValue>} value */
/** @param {!Array.<!proto.google.protobuf.EnumValue>} value */
proto.google.protobuf.Enum.prototype.setEnumvalueList = function(value) {

@@ -1109,2 +1115,12 @@ jspb.Message.setRepeatedWrapperField(this, 2, value);

/**
* @param {!proto.google.protobuf.EnumValue=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.EnumValue}
*/
proto.google.protobuf.Enum.prototype.addEnumvalue = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.EnumValue, opt_index);
};
proto.google.protobuf.Enum.prototype.clearEnumvalueList = function() {

@@ -1127,3 +1143,3 @@ this.setEnumvalueList([]);

/** @param {Array.<!proto.google.protobuf.Option>} value */
/** @param {!Array.<!proto.google.protobuf.Option>} value */
proto.google.protobuf.Enum.prototype.setOptionsList = function(value) {

@@ -1134,2 +1150,12 @@ jspb.Message.setRepeatedWrapperField(this, 3, value);

/**
* @param {!proto.google.protobuf.Option=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Option}
*/
proto.google.protobuf.Enum.prototype.addOptions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Option, opt_index);
};
proto.google.protobuf.Enum.prototype.clearOptionsList = function() {

@@ -1142,6 +1168,6 @@ this.setOptionsList([]);

* optional SourceContext source_context = 4;
* @return {proto.google.protobuf.SourceContext}
* @return {?proto.google.protobuf.SourceContext}
*/
proto.google.protobuf.Enum.prototype.getSourceContext = function() {
return /** @type{proto.google.protobuf.SourceContext} */ (
return /** @type{?proto.google.protobuf.SourceContext} */ (
jspb.Message.getWrapperField(this, google_protobuf_source_context_pb.SourceContext, 4));

@@ -1151,3 +1177,3 @@ };

/** @param {proto.google.protobuf.SourceContext|undefined} value */
/** @param {?proto.google.protobuf.SourceContext|undefined} value */
proto.google.protobuf.Enum.prototype.setSourceContext = function(value) {

@@ -1165,3 +1191,3 @@ jspb.Message.setWrapperField(this, 4, value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -1178,7 +1204,7 @@ proto.google.protobuf.Enum.prototype.hasSourceContext = function() {

proto.google.protobuf.Enum.prototype.getSyntax = function() {
return /** @type {!proto.google.protobuf.Syntax} */ (jspb.Message.getFieldProto3(this, 5, 0));
return /** @type {!proto.google.protobuf.Syntax} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/** @param {!proto.google.protobuf.Syntax} value */
/** @param {!proto.google.protobuf.Syntax} value */
proto.google.protobuf.Enum.prototype.setSyntax = function(value) {

@@ -1242,4 +1268,4 @@ jspb.Message.setField(this, 5, value);

var f, obj = {
name: msg.getName(),
number: msg.getNumber(),
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
number: jspb.Message.getFieldWithDefault(msg, 2, 0),
optionsList: jspb.Message.toObjectList(msg.getOptionsList(),

@@ -1294,4 +1320,3 @@ proto.google.protobuf.Option.toObject, includeInstance)

reader.readMessage(value,proto.google.protobuf.Option.deserializeBinaryFromReader);
msg.getOptionsList().push(value);
msg.setOptionsList(msg.getOptionsList());
msg.addOptions(value);
break;

@@ -1362,11 +1387,2 @@ default:

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.EnumValue} The clone.
*/
proto.google.protobuf.EnumValue.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.EnumValue} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;

@@ -1376,7 +1392,7 @@ * @return {string}

proto.google.protobuf.EnumValue.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.EnumValue.prototype.setName = function(value) {

@@ -1392,7 +1408,7 @@ jspb.Message.setField(this, 1, value);

proto.google.protobuf.EnumValue.prototype.getNumber = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.EnumValue.prototype.setNumber = function(value) {

@@ -1415,3 +1431,3 @@ jspb.Message.setField(this, 2, value);

/** @param {Array.<!proto.google.protobuf.Option>} value */
/** @param {!Array.<!proto.google.protobuf.Option>} value */
proto.google.protobuf.EnumValue.prototype.setOptionsList = function(value) {

@@ -1422,2 +1438,12 @@ jspb.Message.setRepeatedWrapperField(this, 3, value);

/**
* @param {!proto.google.protobuf.Option=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Option}
*/
proto.google.protobuf.EnumValue.prototype.addOptions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Option, opt_index);
};
proto.google.protobuf.EnumValue.prototype.clearOptionsList = function() {

@@ -1474,3 +1500,3 @@ this.setOptionsList([]);

var f, obj = {
name: msg.getName(),
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
value: (f = msg.getValue()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)

@@ -1579,11 +1605,2 @@ };

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Option} The clone.
*/
proto.google.protobuf.Option.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Option} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string name = 1;

@@ -1593,7 +1610,7 @@ * @return {string}

proto.google.protobuf.Option.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.Option.prototype.setName = function(value) {

@@ -1606,6 +1623,6 @@ jspb.Message.setField(this, 1, value);

* optional Any value = 2;
* @return {proto.google.protobuf.Any}
* @return {?proto.google.protobuf.Any}
*/
proto.google.protobuf.Option.prototype.getValue = function() {
return /** @type{proto.google.protobuf.Any} */ (
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2));

@@ -1615,3 +1632,3 @@ };

/** @param {proto.google.protobuf.Any|undefined} value */
/** @param {?proto.google.protobuf.Any|undefined} value */
proto.google.protobuf.Option.prototype.setValue = function(value) {

@@ -1629,3 +1646,3 @@ jspb.Message.setWrapperField(this, 2, value);

* Returns whether this field is set.
* @return{!boolean}
* @return {!boolean}
*/

@@ -1632,0 +1649,0 @@ proto.google.protobuf.Option.prototype.hasValue = function() {

@@ -67,3 +67,3 @@ /**

var f, obj = {
value: msg.getValue()
value: +jspb.Message.getFieldWithDefault(msg, 1, 0.0)
};

@@ -158,11 +158,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.DoubleValue} The clone.
*/
proto.google.protobuf.DoubleValue.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.DoubleValue} */ (jspb.Message.cloneMessage(this));
};
/**
* optional double value = 1;

@@ -172,7 +163,7 @@ * @return {number}

proto.google.protobuf.DoubleValue.prototype.getValue = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 1, 0.0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.DoubleValue.prototype.setValue = function(value) {

@@ -229,3 +220,3 @@ jspb.Message.setField(this, 1, value);

var f, obj = {
value: msg.getValue()
value: +jspb.Message.getFieldWithDefault(msg, 1, 0.0)
};

@@ -320,11 +311,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.FloatValue} The clone.
*/
proto.google.protobuf.FloatValue.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.FloatValue} */ (jspb.Message.cloneMessage(this));
};
/**
* optional float value = 1;

@@ -334,7 +316,7 @@ * @return {number}

proto.google.protobuf.FloatValue.prototype.getValue = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 1, 0.0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.FloatValue.prototype.setValue = function(value) {

@@ -391,3 +373,3 @@ jspb.Message.setField(this, 1, value);

var f, obj = {
value: msg.getValue()
value: jspb.Message.getFieldWithDefault(msg, 1, 0)
};

@@ -482,11 +464,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Int64Value} The clone.
*/
proto.google.protobuf.Int64Value.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Int64Value} */ (jspb.Message.cloneMessage(this));
};
/**
* optional int64 value = 1;

@@ -496,7 +469,7 @@ * @return {number}

proto.google.protobuf.Int64Value.prototype.getValue = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.Int64Value.prototype.setValue = function(value) {

@@ -553,3 +526,3 @@ jspb.Message.setField(this, 1, value);

var f, obj = {
value: msg.getValue()
value: jspb.Message.getFieldWithDefault(msg, 1, 0)
};

@@ -644,11 +617,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.UInt64Value} The clone.
*/
proto.google.protobuf.UInt64Value.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.UInt64Value} */ (jspb.Message.cloneMessage(this));
};
/**
* optional uint64 value = 1;

@@ -658,7 +622,7 @@ * @return {number}

proto.google.protobuf.UInt64Value.prototype.getValue = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.UInt64Value.prototype.setValue = function(value) {

@@ -715,3 +679,3 @@ jspb.Message.setField(this, 1, value);

var f, obj = {
value: msg.getValue()
value: jspb.Message.getFieldWithDefault(msg, 1, 0)
};

@@ -806,11 +770,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.Int32Value} The clone.
*/
proto.google.protobuf.Int32Value.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.Int32Value} */ (jspb.Message.cloneMessage(this));
};
/**
* optional int32 value = 1;

@@ -820,7 +775,7 @@ * @return {number}

proto.google.protobuf.Int32Value.prototype.getValue = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.Int32Value.prototype.setValue = function(value) {

@@ -877,3 +832,3 @@ jspb.Message.setField(this, 1, value);

var f, obj = {
value: msg.getValue()
value: jspb.Message.getFieldWithDefault(msg, 1, 0)
};

@@ -968,11 +923,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.UInt32Value} The clone.
*/
proto.google.protobuf.UInt32Value.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.UInt32Value} */ (jspb.Message.cloneMessage(this));
};
/**
* optional uint32 value = 1;

@@ -982,7 +928,7 @@ * @return {number}

proto.google.protobuf.UInt32Value.prototype.getValue = function() {
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
/** @param {number} value */
proto.google.protobuf.UInt32Value.prototype.setValue = function(value) {

@@ -1039,3 +985,3 @@ jspb.Message.setField(this, 1, value);

var f, obj = {
value: msg.getValue()
value: jspb.Message.getFieldWithDefault(msg, 1, false)
};

@@ -1130,11 +1076,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.BoolValue} The clone.
*/
proto.google.protobuf.BoolValue.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.BoolValue} */ (jspb.Message.cloneMessage(this));
};
/**
* optional bool value = 1;

@@ -1146,7 +1083,7 @@ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.

proto.google.protobuf.BoolValue.prototype.getValue = function() {
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 1, false));
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false));
};
/** @param {boolean} value */
/** @param {boolean} value */
proto.google.protobuf.BoolValue.prototype.setValue = function(value) {

@@ -1203,3 +1140,3 @@ jspb.Message.setField(this, 1, value);

var f, obj = {
value: msg.getValue()
value: jspb.Message.getFieldWithDefault(msg, 1, "")
};

@@ -1294,11 +1231,2 @@

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.StringValue} The clone.
*/
proto.google.protobuf.StringValue.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.StringValue} */ (jspb.Message.cloneMessage(this));
};
/**
* optional string value = 1;

@@ -1308,7 +1236,7 @@ * @return {string}

proto.google.protobuf.StringValue.prototype.getValue = function() {
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
/** @param {string} value */
proto.google.protobuf.StringValue.prototype.setValue = function(value) {

@@ -1455,11 +1383,2 @@ jspb.Message.setField(this, 1, value);

/**
* Creates a deep clone of this proto. No data is shared with the original.
* @return {!proto.google.protobuf.BytesValue} The clone.
*/
proto.google.protobuf.BytesValue.prototype.cloneMessage = function() {
return /** @type {!proto.google.protobuf.BytesValue} */ (jspb.Message.cloneMessage(this));
};
/**
* optional bytes value = 1;

@@ -1469,3 +1388,3 @@ * @return {!(string|Uint8Array)}

proto.google.protobuf.BytesValue.prototype.getValue = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 1, ""));
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};

@@ -1498,3 +1417,3 @@

/** @param {!(string|Uint8Array)} value */
/** @param {!(string|Uint8Array)} value */
proto.google.protobuf.BytesValue.prototype.setValue = function(value) {

@@ -1501,0 +1420,0 @@ jspb.Message.setField(this, 1, value);

{
"name": "google-protobuf",
"version": "3.0.2",
"version": "3.1.0",
"description": "Protocol Buffers for JavaScript",

@@ -5,0 +5,0 @@ "main": "google-protobuf.js",

@@ -155,6 +155,5 @@ Protocol Buffers - Google's data interchange format

var message2 = new MyMessage();
message2.deserializeBinary(bytes);
var message2 = MyMessage.deserializeBinary(bytes);
For more examples, see the tests. You can also look at the generated code
to see what methods are defined for your generated messages.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc