Socket
Socket
Sign inDemoInstall

google-protobuf

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-protobuf - npm Package Compare versions

Comparing version 3.1.1 to 3.2.0-rc.2

104

google/protobuf/any_pb.js

@@ -115,13 +115,2 @@ /**

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Any} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Any.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -132,3 +121,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Any.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -139,9 +128,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Any} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Any.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Any.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getTypeUrl();
f = message.getTypeUrl();
if (f.length > 0) {

@@ -153,3 +143,3 @@ writer.writeString(

}
f = this.getValue_asU8();
f = message.getValue_asU8();
if (f.length > 0) {

@@ -219,1 +209,81 @@ writer.writeBytes(

goog.object.extend(exports, proto.google.protobuf);
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/* This code will be inserted into generated code for
* google/protobuf/any.proto. */
/**
* Returns the type name contained in this instance, if any.
* @return {string|undefined}
*/
proto.google.protobuf.Any.prototype.getTypeName = function() {
return this.getTypeUrl().split('/').pop();
};
/**
* Packs the given message instance into this Any.
* @param {!Uint8Array} serialized The serialized data to pack.
* @param {string} name The type name of this message object.
* @param {string=} opt_typeUrlPrefix the type URL prefix.
*/
proto.google.protobuf.Any.prototype.pack = function(serialized, name,
opt_typeUrlPrefix) {
if (!opt_typeUrlPrefix) {
opt_typeUrlPrefix = 'type.googleapis.com/';
}
if (opt_typeUrlPrefix.substr(-1) != '/') {
this.setTypeUrl(opt_typeUrlPrefix + '/' + name);
} else {
this.setTypeUrl(opt_typeUrlPrefix + name);
}
this.setValue(serialized);
};
/**
* @template T
* Unpacks this Any into the given message object.
* @param {function(Uint8Array):T} deserialize Function that will deserialize
* the binary data properly.
* @param {string} name The expected type name of this message object.
* @return {?T} If the name matched the expected name, returns the deserialized
* object, otherwise returns undefined.
*/
proto.google.protobuf.Any.prototype.unpack = function(deserialize, name) {
if (this.getTypeName() == name) {
return deserialize(this.getValue_asU8());
} else {
return null;
}
};

92

google/protobuf/api_pb.js

@@ -158,13 +158,2 @@ /**

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Api} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Api.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -175,3 +164,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Api.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -182,9 +171,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Api} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Api.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Api.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getName();
f = message.getName();
if (f.length > 0) {

@@ -196,3 +186,3 @@ writer.writeString(

}
f = this.getMethodsList();
f = message.getMethodsList();
if (f.length > 0) {

@@ -205,3 +195,3 @@ writer.writeRepeatedMessage(

}
f = this.getOptionsList();
f = message.getOptionsList();
if (f.length > 0) {

@@ -214,3 +204,3 @@ writer.writeRepeatedMessage(

}
f = this.getVersion();
f = message.getVersion();
if (f.length > 0) {

@@ -222,3 +212,3 @@ writer.writeString(

}
f = this.getSourceContext();
f = message.getSourceContext();
if (f != null) {

@@ -231,3 +221,3 @@ writer.writeMessage(

}
f = this.getMixinsList();
f = message.getMixinsList();
if (f.length > 0) {

@@ -240,3 +230,3 @@ writer.writeRepeatedMessage(

}
f = this.getSyntax();
f = message.getSyntax();
if (f !== 0.0) {

@@ -561,13 +551,2 @@ writer.writeEnum(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Method} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Method.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -578,3 +557,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Method.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -585,9 +564,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Method} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Method.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Method.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getName();
f = message.getName();
if (f.length > 0) {

@@ -599,3 +579,3 @@ writer.writeString(

}
f = this.getRequestTypeUrl();
f = message.getRequestTypeUrl();
if (f.length > 0) {

@@ -607,3 +587,3 @@ writer.writeString(

}
f = this.getRequestStreaming();
f = message.getRequestStreaming();
if (f) {

@@ -615,3 +595,3 @@ writer.writeBool(

}
f = this.getResponseTypeUrl();
f = message.getResponseTypeUrl();
if (f.length > 0) {

@@ -623,3 +603,3 @@ writer.writeString(

}
f = this.getResponseStreaming();
f = message.getResponseStreaming();
if (f) {

@@ -631,3 +611,3 @@ writer.writeBool(

}
f = this.getOptionsList();
f = message.getOptionsList();
if (f.length > 0) {

@@ -640,3 +620,3 @@ writer.writeRepeatedMessage(

}
f = this.getSyntax();
f = message.getSyntax();
if (f !== 0.0) {

@@ -880,13 +860,2 @@ writer.writeEnum(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Mixin} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Mixin.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -897,3 +866,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Mixin.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -904,9 +873,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Mixin} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Mixin.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Mixin.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getName();
f = message.getName();
if (f.length > 0) {

@@ -918,3 +888,3 @@ writer.writeString(

}
f = this.getRoot();
f = message.getRoot();
if (f.length > 0) {

@@ -921,0 +891,0 @@ writer.writeString(

@@ -16,2 +16,3 @@ /**

goog.exportSymbol('proto.google.protobuf.compiler.CodeGeneratorResponse.File', null, global);
goog.exportSymbol('proto.google.protobuf.compiler.Version', null, global);

@@ -28,2 +29,279 @@ /**

*/
proto.google.protobuf.compiler.Version = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.protobuf.compiler.Version, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.protobuf.compiler.Version.displayName = 'proto.google.protobuf.compiler.Version';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.protobuf.compiler.Version.prototype.toObject = function(opt_includeInstance) {
return proto.google.protobuf.compiler.Version.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.protobuf.compiler.Version} msg The msg instance to transform.
* @return {!Object}
*/
proto.google.protobuf.compiler.Version.toObject = function(includeInstance, msg) {
var f, obj = {
major: jspb.Message.getField(msg, 1),
minor: jspb.Message.getField(msg, 2),
patch: jspb.Message.getField(msg, 3),
suffix: jspb.Message.getField(msg, 4)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.google.protobuf.compiler.Version}
*/
proto.google.protobuf.compiler.Version.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.protobuf.compiler.Version;
return proto.google.protobuf.compiler.Version.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.protobuf.compiler.Version} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.protobuf.compiler.Version}
*/
proto.google.protobuf.compiler.Version.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setMajor(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setMinor(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt32());
msg.setPatch(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setSuffix(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.protobuf.compiler.Version.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.protobuf.compiler.Version.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.compiler.Version} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.compiler.Version.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {number} */ (jspb.Message.getField(message, 1));
if (f != null) {
writer.writeInt32(
1,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 2));
if (f != null) {
writer.writeInt32(
2,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 3));
if (f != null) {
writer.writeInt32(
3,
f
);
}
f = /** @type {string} */ (jspb.Message.getField(message, 4));
if (f != null) {
writer.writeString(
4,
f
);
}
};
/**
* optional int32 major = 1;
* @return {number}
*/
proto.google.protobuf.compiler.Version.prototype.getMajor = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.google.protobuf.compiler.Version.prototype.setMajor = function(value) {
jspb.Message.setField(this, 1, value);
};
proto.google.protobuf.compiler.Version.prototype.clearMajor = function() {
jspb.Message.setField(this, 1, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.compiler.Version.prototype.hasMajor = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional int32 minor = 2;
* @return {number}
*/
proto.google.protobuf.compiler.Version.prototype.getMinor = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.google.protobuf.compiler.Version.prototype.setMinor = function(value) {
jspb.Message.setField(this, 2, value);
};
proto.google.protobuf.compiler.Version.prototype.clearMinor = function() {
jspb.Message.setField(this, 2, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.compiler.Version.prototype.hasMinor = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional int32 patch = 3;
* @return {number}
*/
proto.google.protobuf.compiler.Version.prototype.getPatch = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/** @param {number} value */
proto.google.protobuf.compiler.Version.prototype.setPatch = function(value) {
jspb.Message.setField(this, 3, value);
};
proto.google.protobuf.compiler.Version.prototype.clearPatch = function() {
jspb.Message.setField(this, 3, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.compiler.Version.prototype.hasPatch = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional string suffix = 4;
* @return {string}
*/
proto.google.protobuf.compiler.Version.prototype.getSuffix = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/** @param {string} value */
proto.google.protobuf.compiler.Version.prototype.setSuffix = function(value) {
jspb.Message.setField(this, 4, value);
};
proto.google.protobuf.compiler.Version.prototype.clearSuffix = function() {
jspb.Message.setField(this, 4, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.compiler.Version.prototype.hasSuffix = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* 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.google.protobuf.compiler.CodeGeneratorRequest = function(opt_data) {

@@ -74,3 +352,4 @@ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.compiler.CodeGeneratorRequest.repeatedFields_, null);

protoFileList: jspb.Message.toObjectList(msg.getProtoFileList(),
google_protobuf_descriptor_pb.FileDescriptorProto.toObject, includeInstance)
google_protobuf_descriptor_pb.FileDescriptorProto.toObject, includeInstance),
compilerVersion: (f = msg.getCompilerVersion()) && proto.google.protobuf.compiler.Version.toObject(includeInstance, f)
};

@@ -125,2 +404,7 @@

break;
case 3:
var value = new proto.google.protobuf.compiler.Version;
reader.readMessage(value,proto.google.protobuf.compiler.Version.deserializeBinaryFromReader);
msg.setCompilerVersion(value);
break;
default:

@@ -136,13 +420,2 @@ reader.skipField();

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.compiler.CodeGeneratorRequest} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.compiler.CodeGeneratorRequest.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -153,3 +426,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.compiler.CodeGeneratorRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -160,9 +433,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.compiler.CodeGeneratorRequest} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.compiler.CodeGeneratorRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getFileToGenerateList();
f = message.getFileToGenerateList();
if (f.length > 0) {

@@ -174,3 +448,3 @@ writer.writeRepeatedString(

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

@@ -182,3 +456,3 @@ writer.writeString(

}
f = this.getProtoFileList();
f = message.getProtoFileList();
if (f.length > 0) {

@@ -191,2 +465,10 @@ writer.writeRepeatedMessage(

}
f = message.getCompilerVersion();
if (f != null) {
writer.writeMessage(
3,
f,
proto.google.protobuf.compiler.Version.serializeBinaryToWriter
);
}
};

@@ -288,4 +570,34 @@

/**
* optional Version compiler_version = 3;
* @return {?proto.google.protobuf.compiler.Version}
*/
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.getCompilerVersion = function() {
return /** @type{?proto.google.protobuf.compiler.Version} */ (
jspb.Message.getWrapperField(this, proto.google.protobuf.compiler.Version, 3));
};
/** @param {?proto.google.protobuf.compiler.Version|undefined} value */
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.setCompilerVersion = function(value) {
jspb.Message.setWrapperField(this, 3, value);
};
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.clearCompilerVersion = function() {
this.setCompilerVersion(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.hasCompilerVersion = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* Generated by JsPbCodeGenerator.

@@ -400,13 +712,2 @@ * @param {Array=} opt_data Optional initial data array, typically from a

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.compiler.CodeGeneratorResponse} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -417,3 +718,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.compiler.CodeGeneratorResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -424,9 +725,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.compiler.CodeGeneratorResponse} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.compiler.CodeGeneratorResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {string} */ (jspb.Message.getField(this, 1));
f = /** @type {string} */ (jspb.Message.getField(message, 1));
if (f != null) {

@@ -438,3 +740,3 @@ writer.writeString(

}
f = this.getFileList();
f = message.getFileList();
if (f.length > 0) {

@@ -450,66 +752,4 @@ writer.writeRepeatedMessage(

/**
* optional string error = 1;
* @return {string}
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.getError = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setError = function(value) {
jspb.Message.setField(this, 1, value);
};
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.clearError = function() {
jspb.Message.setField(this, 1, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.hasError = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated File file = 15;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>}
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.getFileList = function() {
return /** @type{!Array.<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.compiler.CodeGeneratorResponse.File, 15));
};
/** @param {!Array.<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>} value */
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setFileList = function(value) {
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() {
this.setFileList([]);
};
/**
* Generated by JsPbCodeGenerator.

@@ -620,13 +860,2 @@ * @param {Array=} opt_data Optional initial data array, typically from a

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.File.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -637,3 +866,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.compiler.CodeGeneratorResponse.File.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -644,9 +873,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.compiler.CodeGeneratorResponse.File.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {string} */ (jspb.Message.getField(this, 1));
f = /** @type {string} */ (jspb.Message.getField(message, 1));
if (f != null) {

@@ -658,3 +888,3 @@ writer.writeString(

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

@@ -666,3 +896,3 @@ writer.writeString(

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

@@ -764,2 +994,64 @@ writer.writeString(

/**
* optional string error = 1;
* @return {string}
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.getError = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setError = function(value) {
jspb.Message.setField(this, 1, value);
};
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.clearError = function() {
jspb.Message.setField(this, 1, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.hasError = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated File file = 15;
* If you change this array by adding, removing or replacing elements, or if you
* replace the array itself, then you must call the setter to update it.
* @return {!Array.<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>}
*/
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.getFileList = function() {
return /** @type{!Array.<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.compiler.CodeGeneratorResponse.File, 15));
};
/** @param {!Array.<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>} value */
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setFileList = function(value) {
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() {
this.setFileList([]);
};
goog.object.extend(exports, proto.google.protobuf.compiler);

@@ -115,13 +115,2 @@ /**

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Duration} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Duration.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -132,3 +121,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Duration.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -139,9 +128,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Duration} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Duration.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Duration.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getSeconds();
f = message.getSeconds();
if (f !== 0) {

@@ -153,3 +143,3 @@ writer.writeInt64(

}
f = this.getNanos();
f = message.getNanos();
if (f !== 0) {

@@ -156,0 +146,0 @@ writer.writeInt32(

@@ -106,13 +106,2 @@ /**

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Empty} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Empty.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -123,3 +112,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Empty.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -130,7 +119,8 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Empty} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Empty.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Empty.serializeBinaryToWriter = function(message, writer) {
var f = undefined;

@@ -137,0 +127,0 @@ };

@@ -117,13 +117,2 @@ /**

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.FieldMask} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.FieldMask.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -134,3 +123,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.FieldMask.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -141,9 +130,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.FieldMask} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.FieldMask.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.FieldMask.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getPathsList();
f = message.getPathsList();
if (f.length > 0) {

@@ -150,0 +140,0 @@ writer.writeRepeatedString(

@@ -110,13 +110,2 @@ /**

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.SourceContext} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.SourceContext.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -127,3 +116,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.SourceContext.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -134,9 +123,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.SourceContext} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.SourceContext.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.SourceContext.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getFileName();
f = message.getFileName();
if (f.length > 0) {

@@ -143,0 +133,0 @@ writer.writeString(

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

var f, obj = {
fieldsMap: (f = msg.getFieldsMap()) ? f.toArray() : []
fieldsMap: (f = msg.getFieldsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
};

@@ -116,13 +116,2 @@

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Struct} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Struct.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -133,3 +122,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Struct.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -140,9 +129,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Struct} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Struct.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Struct.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getFieldsMap(true);
f = message.getFieldsMap(true);
if (f && f.getLength() > 0) {

@@ -326,13 +316,2 @@ f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Value} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Value.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -343,3 +322,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Value.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -350,9 +329,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Value} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Value.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Value.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getField(this, 1));
f = /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getField(message, 1));
if (f != null) {

@@ -364,3 +344,3 @@ writer.writeEnum(

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

@@ -372,3 +352,3 @@ writer.writeDouble(

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

@@ -380,3 +360,3 @@ writer.writeString(

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

@@ -388,3 +368,3 @@ writer.writeBool(

}
f = this.getStructValue();
f = message.getStructValue();
if (f != null) {

@@ -397,3 +377,3 @@ writer.writeMessage(

}
f = this.getListValue();
f = message.getListValue();
if (f != null) {

@@ -693,13 +673,2 @@ writer.writeMessage(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.ListValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.ListValue.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -710,3 +679,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.ListValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -717,9 +686,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.ListValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.ListValue.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.ListValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getValuesList();
f = message.getValuesList();
if (f.length > 0) {

@@ -776,1 +746,169 @@ writer.writeRepeatedMessage(

goog.object.extend(exports, proto.google.protobuf);
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/* This code will be inserted into generated code for
* google/protobuf/struct.proto. */
/**
* Typedef representing plain JavaScript values that can go into a
* Struct.
* @typedef {null|number|string|boolean|Array|Object}
*/
proto.google.protobuf.JavaScriptValue;
/**
* Converts this Value object to a plain JavaScript value.
* @return {?proto.google.protobuf.JavaScriptValue} a plain JavaScript
* value representing this Struct.
*/
proto.google.protobuf.Value.prototype.toJavaScript = function() {
var kindCase = proto.google.protobuf.Value.KindCase;
switch (this.getKindCase()) {
case kindCase.NULL_VALUE:
return null;
case kindCase.NUMBER_VALUE:
return this.getNumberValue();
case kindCase.STRING_VALUE:
return this.getStringValue();
case kindCase.BOOL_VALUE:
return this.getBoolValue();
case kindCase.STRUCT_VALUE:
return this.getStructValue().toJavaScript();
case kindCase.LIST_VALUE:
return this.getListValue().toJavaScript();
default:
throw new Error('Unexpected struct type');
}
};
/**
* Converts this JavaScript value to a new Value proto.
* @param {!proto.google.protobuf.JavaScriptValue} value The value to
* convert.
* @return {!proto.google.protobuf.Value} The newly constructed value.
*/
proto.google.protobuf.Value.fromJavaScript = function(value) {
var ret = new proto.google.protobuf.Value();
switch (goog.typeOf(value)) {
case 'string':
ret.setStringValue(/** @type {string} */ (value));
break;
case 'number':
ret.setNumberValue(/** @type {number} */ (value));
break;
case 'boolean':
ret.setBoolValue(/** @type {boolean} */ (value));
break;
case 'null':
ret.setNullValue(proto.google.protobuf.NullValue.NULL_VALUE);
break;
case 'array':
ret.setListValue(proto.google.protobuf.ListValue.fromJavaScript(
/** @type{!Array} */ (value)));
break;
case 'object':
ret.setStructValue(proto.google.protobuf.Struct.fromJavaScript(
/** @type{!Object} */ (value)));
break;
default:
throw new Error('Unexpected struct type.');
}
return ret;
};
/**
* Converts this ListValue object to a plain JavaScript array.
* @return {!Array} a plain JavaScript array representing this List.
*/
proto.google.protobuf.ListValue.prototype.toJavaScript = function() {
var ret = [];
var values = this.getValuesList();
for (var i = 0; i < values.length; i++) {
ret[i] = values[i].toJavaScript();
}
return ret;
};
/**
* Constructs a ListValue protobuf from this plain JavaScript array.
* @param {!Array} array a plain JavaScript array
* @return {proto.google.protobuf.ListValue} a new ListValue object
*/
proto.google.protobuf.ListValue.fromJavaScript = function(array) {
var ret = new proto.google.protobuf.ListValue();
for (var i = 0; i < array.length; i++) {
ret.addValues(proto.google.protobuf.Value.fromJavaScript(array[i]));
}
return ret;
};
/**
* Converts this Struct object to a plain JavaScript object.
* @return {!Object<string, !proto.google.protobuf.JavaScriptValue>} a plain
* JavaScript object representing this Struct.
*/
proto.google.protobuf.Struct.prototype.toJavaScript = function() {
var ret = {};
this.getFieldsMap().forEach(function(value, key) {
ret[key] = value.toJavaScript();
});
return ret;
};
/**
* Constructs a Struct protobuf from this plain JavaScript object.
* @param {!Object} obj a plain JavaScript object
* @return {proto.google.protobuf.Struct} a new Struct object
*/
proto.google.protobuf.Struct.fromJavaScript = function(obj) {
var ret = new proto.google.protobuf.Struct();
var map = ret.getFieldsMap();
for (var property in obj) {
var val = obj[property];
map.set(property, proto.google.protobuf.Value.fromJavaScript(val));
}
return ret;
};

@@ -115,13 +115,2 @@ /**

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Timestamp} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Timestamp.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -132,3 +121,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Timestamp.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -139,9 +128,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Timestamp} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Timestamp.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Timestamp.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getSeconds();
f = message.getSeconds();
if (f !== 0) {

@@ -153,3 +143,3 @@ writer.writeInt64(

}
f = this.getNanos();
f = message.getNanos();
if (f !== 0) {

@@ -195,1 +185,55 @@ writer.writeInt32(

goog.object.extend(exports, proto.google.protobuf);
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/* This code will be inserted into generated code for
* google/protobuf/timestamp.proto. */
/**
* Returns a JavaScript 'Date' object corresponding to this Timestamp.
* @return {!Date}
*/
proto.google.protobuf.Timestamp.prototype.toDate = function() {
var seconds = this.getSeconds();
var nanos = this.getNanos();
return new Date((seconds * 1000) + (nanos / 1000000));
};
/**
* Sets the value of this Timestamp object to be the given Date.
* @param {!Date} value The value to set.
*/
proto.google.protobuf.Timestamp.prototype.fromDate = function(value) {
var millis = value.getTime();
this.setSeconds(Math.floor(value.getTime() / 1000));
this.setNanos(value.getMilliseconds() * 1000000);
};

@@ -156,13 +156,2 @@ /**

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Type} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Type.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -173,3 +162,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Type.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -180,9 +169,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Type} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Type.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Type.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getName();
f = message.getName();
if (f.length > 0) {

@@ -194,3 +184,3 @@ writer.writeString(

}
f = this.getFieldsList();
f = message.getFieldsList();
if (f.length > 0) {

@@ -203,3 +193,3 @@ writer.writeRepeatedMessage(

}
f = this.getOneofsList();
f = message.getOneofsList();
if (f.length > 0) {

@@ -211,3 +201,3 @@ writer.writeRepeatedString(

}
f = this.getOptionsList();
f = message.getOptionsList();
if (f.length > 0) {

@@ -220,3 +210,3 @@ writer.writeRepeatedMessage(

}
f = this.getSourceContext();
f = message.getSourceContext();
if (f != null) {

@@ -229,3 +219,3 @@ writer.writeMessage(

}
f = this.getSyntax();
f = message.getSyntax();
if (f !== 0.0) {

@@ -548,13 +538,2 @@ writer.writeEnum(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Field} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Field.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -565,3 +544,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Field.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -572,9 +551,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Field} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Field.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Field.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getKind();
f = message.getKind();
if (f !== 0.0) {

@@ -586,3 +566,3 @@ writer.writeEnum(

}
f = this.getCardinality();
f = message.getCardinality();
if (f !== 0.0) {

@@ -594,3 +574,3 @@ writer.writeEnum(

}
f = this.getNumber();
f = message.getNumber();
if (f !== 0) {

@@ -602,3 +582,3 @@ writer.writeInt32(

}
f = this.getName();
f = message.getName();
if (f.length > 0) {

@@ -610,3 +590,3 @@ writer.writeString(

}
f = this.getTypeUrl();
f = message.getTypeUrl();
if (f.length > 0) {

@@ -618,3 +598,3 @@ writer.writeString(

}
f = this.getOneofIndex();
f = message.getOneofIndex();
if (f !== 0) {

@@ -626,3 +606,3 @@ writer.writeInt32(

}
f = this.getPacked();
f = message.getPacked();
if (f) {

@@ -634,3 +614,3 @@ writer.writeBool(

}
f = this.getOptionsList();
f = message.getOptionsList();
if (f.length > 0) {

@@ -643,3 +623,3 @@ writer.writeRepeatedMessage(

}
f = this.getJsonName();
f = message.getJsonName();
if (f.length > 0) {

@@ -651,3 +631,3 @@ writer.writeString(

}
f = this.getDefaultValue();
f = message.getDefaultValue();
if (f.length > 0) {

@@ -663,2 +643,37 @@ writer.writeString(

/**
* @enum {number}
*/
proto.google.protobuf.Field.Kind = {
TYPE_UNKNOWN: 0,
TYPE_DOUBLE: 1,
TYPE_FLOAT: 2,
TYPE_INT64: 3,
TYPE_UINT64: 4,
TYPE_INT32: 5,
TYPE_FIXED64: 6,
TYPE_FIXED32: 7,
TYPE_BOOL: 8,
TYPE_STRING: 9,
TYPE_GROUP: 10,
TYPE_MESSAGE: 11,
TYPE_BYTES: 12,
TYPE_UINT32: 13,
TYPE_ENUM: 14,
TYPE_SFIXED32: 15,
TYPE_SFIXED64: 16,
TYPE_SINT32: 17,
TYPE_SINT64: 18
};
/**
* @enum {number}
*/
proto.google.protobuf.Field.Cardinality = {
CARDINALITY_UNKNOWN: 0,
CARDINALITY_OPTIONAL: 1,
CARDINALITY_REQUIRED: 2,
CARDINALITY_REPEATED: 3
};
/**
* optional Kind kind = 1;

@@ -833,39 +848,4 @@ * @return {!proto.google.protobuf.Field.Kind}

/**
* @enum {number}
*/
proto.google.protobuf.Field.Kind = {
TYPE_UNKNOWN: 0,
TYPE_DOUBLE: 1,
TYPE_FLOAT: 2,
TYPE_INT64: 3,
TYPE_UINT64: 4,
TYPE_INT32: 5,
TYPE_FIXED64: 6,
TYPE_FIXED32: 7,
TYPE_BOOL: 8,
TYPE_STRING: 9,
TYPE_GROUP: 10,
TYPE_MESSAGE: 11,
TYPE_BYTES: 12,
TYPE_UINT32: 13,
TYPE_ENUM: 14,
TYPE_SFIXED32: 15,
TYPE_SFIXED64: 16,
TYPE_SINT32: 17,
TYPE_SINT64: 18
};
/**
* @enum {number}
*/
proto.google.protobuf.Field.Cardinality = {
CARDINALITY_UNKNOWN: 0,
CARDINALITY_OPTIONAL: 1,
CARDINALITY_REQUIRED: 2,
CARDINALITY_REPEATED: 3
};
/**
* Generated by JsPbCodeGenerator.

@@ -998,13 +978,2 @@ * @param {Array=} opt_data Optional initial data array, typically from a

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Enum} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Enum.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -1015,3 +984,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Enum.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -1022,9 +991,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Enum} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Enum.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Enum.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getName();
f = message.getName();
if (f.length > 0) {

@@ -1036,3 +1006,3 @@ writer.writeString(

}
f = this.getEnumvalueList();
f = message.getEnumvalueList();
if (f.length > 0) {

@@ -1045,3 +1015,3 @@ writer.writeRepeatedMessage(

}
f = this.getOptionsList();
f = message.getOptionsList();
if (f.length > 0) {

@@ -1054,3 +1024,3 @@ writer.writeRepeatedMessage(

}
f = this.getSourceContext();
f = message.getSourceContext();
if (f != null) {

@@ -1063,3 +1033,3 @@ writer.writeMessage(

}
f = this.getSyntax();
f = message.getSyntax();
if (f !== 0.0) {

@@ -1316,13 +1286,2 @@ writer.writeEnum(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.EnumValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.EnumValue.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -1333,3 +1292,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.EnumValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -1340,9 +1299,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.EnumValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.EnumValue.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.EnumValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getName();
f = message.getName();
if (f.length > 0) {

@@ -1354,3 +1314,3 @@ writer.writeString(

}
f = this.getNumber();
f = message.getNumber();
if (f !== 0) {

@@ -1362,3 +1322,3 @@ writer.writeInt32(

}
f = this.getOptionsList();
f = message.getOptionsList();
if (f.length > 0) {

@@ -1540,13 +1500,2 @@ writer.writeRepeatedMessage(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Option} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Option.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -1557,3 +1506,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Option.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -1564,9 +1513,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Option} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Option.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Option.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getName();
f = message.getName();
if (f.length > 0) {

@@ -1578,3 +1528,3 @@ writer.writeString(

}
f = this.getValue();
f = message.getValue();
if (f != null) {

@@ -1581,0 +1531,0 @@ writer.writeMessage(

@@ -118,13 +118,2 @@ /**

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.DoubleValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.DoubleValue.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -135,3 +124,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.DoubleValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -142,9 +131,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.DoubleValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.DoubleValue.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.DoubleValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getValue();
f = message.getValue();
if (f !== 0.0) {

@@ -271,13 +261,2 @@ writer.writeDouble(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.FloatValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.FloatValue.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -288,3 +267,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.FloatValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -295,9 +274,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.FloatValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.FloatValue.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.FloatValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getValue();
f = message.getValue();
if (f !== 0.0) {

@@ -424,13 +404,2 @@ writer.writeFloat(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Int64Value} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Int64Value.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -441,3 +410,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Int64Value.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -448,9 +417,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Int64Value} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Int64Value.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Int64Value.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getValue();
f = message.getValue();
if (f !== 0) {

@@ -577,13 +547,2 @@ writer.writeInt64(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.UInt64Value} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.UInt64Value.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -594,3 +553,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.UInt64Value.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -601,9 +560,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.UInt64Value} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.UInt64Value.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.UInt64Value.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getValue();
f = message.getValue();
if (f !== 0) {

@@ -730,13 +690,2 @@ writer.writeUint64(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Int32Value} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Int32Value.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -747,3 +696,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.Int32Value.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -754,9 +703,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.Int32Value} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.Int32Value.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.Int32Value.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getValue();
f = message.getValue();
if (f !== 0) {

@@ -883,13 +833,2 @@ writer.writeInt32(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.UInt32Value} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.UInt32Value.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -900,3 +839,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.UInt32Value.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -907,9 +846,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.UInt32Value} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.UInt32Value.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.UInt32Value.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getValue();
f = message.getValue();
if (f !== 0) {

@@ -1036,13 +976,2 @@ writer.writeUint32(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.BoolValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.BoolValue.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -1053,3 +982,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.BoolValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -1060,9 +989,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.BoolValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.BoolValue.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.BoolValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getValue();
f = message.getValue();
if (f) {

@@ -1191,13 +1121,2 @@ writer.writeBool(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.StringValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.StringValue.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -1208,3 +1127,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.StringValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -1215,9 +1134,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.StringValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.StringValue.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.StringValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getValue();
f = message.getValue();
if (f.length > 0) {

@@ -1344,13 +1264,2 @@ writer.writeString(

/**
* Class method variant: serializes the given message to binary data
* (in protobuf wire format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.BytesValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.BytesValue.serializeBinaryToWriter = function(message, writer) {
message.serializeBinaryToWriter(writer);
};
/**
* Serializes the message to binary data (in protobuf wire format).

@@ -1361,3 +1270,3 @@ * @return {!Uint8Array}

var writer = new jspb.BinaryWriter();
this.serializeBinaryToWriter(writer);
proto.google.protobuf.BytesValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();

@@ -1368,9 +1277,10 @@ };

/**
* Serializes the message to binary data (in protobuf wire format),
* writing to the given BinaryWriter.
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.BytesValue} message
* @param {!jspb.BinaryWriter} writer
*/
proto.google.protobuf.BytesValue.prototype.serializeBinaryToWriter = function (writer) {
proto.google.protobuf.BytesValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = this.getValue_asU8();
f = message.getValue_asU8();
if (f.length > 0) {

@@ -1377,0 +1287,0 @@ writer.writeBytes(

{
"name": "google-protobuf",
"version": "3.1.1",
"version": "3.2.0-rc.2",
"description": "Protocol Buffers for JavaScript",

@@ -25,3 +25,3 @@ "main": "google-protobuf.js",

"author": "Google Protocol Buffers Team",
"license": "Apache-2.0"
"license" : "BSD-3-Clause"
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc