google-protobuf
Advanced tools
Comparing version 3.0.0-alpha.6.2 to 3.0.0
@@ -281,3 +281,3 @@ /** | ||
/** @param {Array.<!proto.google.protobuf.Method>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.Method>} value */ | ||
proto.google.protobuf.Api.prototype.setMethodsList = function(value) { | ||
@@ -305,3 +305,3 @@ jspb.Message.setRepeatedWrapperField(this, 2, value); | ||
/** @param {Array.<!proto.google.protobuf.Option>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.Option>} value */ | ||
proto.google.protobuf.Api.prototype.setOptionsList = function(value) { | ||
@@ -354,2 +354,11 @@ jspb.Message.setRepeatedWrapperField(this, 3, value); | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.Api.prototype.hasSourceContext = function() { | ||
return jspb.Message.getField(this, 5) != null; | ||
}; | ||
/** | ||
* repeated Mixin mixins = 6; | ||
@@ -366,3 +375,3 @@ * If you change this array by adding, removing or replacing elements, or if you | ||
/** @param {Array.<!proto.google.protobuf.Mixin>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.Mixin>} value */ | ||
proto.google.protobuf.Api.prototype.setMixinsList = function(value) { | ||
@@ -711,3 +720,3 @@ jspb.Message.setRepeatedWrapperField(this, 6, value); | ||
/** @param {Array.<!proto.google.protobuf.Option>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.Option>} value */ | ||
proto.google.protobuf.Method.prototype.setOptionsList = function(value) { | ||
@@ -714,0 +723,0 @@ jspb.Message.setRepeatedWrapperField(this, 6, value); |
@@ -169,3 +169,3 @@ /** | ||
} | ||
f = this.getParameter(); | ||
f = jspb.Message.getField(this, 2); | ||
if (f != null) { | ||
@@ -208,3 +208,3 @@ writer.writeString( | ||
/** @param {Array.<string>|undefined} value */ | ||
/** @param {Array.<string>} value */ | ||
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.setFileToGenerateList = function(value) { | ||
@@ -222,6 +222,6 @@ jspb.Message.setField(this, 1, value || []); | ||
* optional string parameter = 2; | ||
* @return {string?} | ||
* @return {string} | ||
*/ | ||
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.getParameter = function() { | ||
return /** @type {string?} */ (jspb.Message.getField(this, 2)); | ||
return /** @type {string} */ (!this.hasParameter() ? "" : jspb.Message.getField(this, 2)); | ||
}; | ||
@@ -242,2 +242,11 @@ | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.hasParameter = function() { | ||
return jspb.Message.getField(this, 2) != null; | ||
}; | ||
/** | ||
* repeated google.protobuf.FileDescriptorProto proto_file = 15; | ||
@@ -254,3 +263,3 @@ * If you change this array by adding, removing or replacing elements, or if you | ||
/** @param {Array.<!proto.google.protobuf.FileDescriptorProto>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.FileDescriptorProto>} value */ | ||
proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.setProtoFileList = function(value) { | ||
@@ -406,3 +415,3 @@ jspb.Message.setRepeatedWrapperField(this, 15, value); | ||
var f = undefined; | ||
f = this.getError(); | ||
f = jspb.Message.getField(this, 1); | ||
if (f != null) { | ||
@@ -436,6 +445,6 @@ writer.writeString( | ||
* optional string error = 1; | ||
* @return {string?} | ||
* @return {string} | ||
*/ | ||
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.getError = function() { | ||
return /** @type {string?} */ (jspb.Message.getField(this, 1)); | ||
return /** @type {string} */ (!this.hasError() ? "" : jspb.Message.getField(this, 1)); | ||
}; | ||
@@ -456,2 +465,11 @@ | ||
/** | ||
* 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; | ||
@@ -468,3 +486,3 @@ * If you change this array by adding, removing or replacing elements, or if you | ||
/** @param {Array.<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>} value */ | ||
proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setFileList = function(value) { | ||
@@ -615,3 +633,3 @@ jspb.Message.setRepeatedWrapperField(this, 15, value); | ||
var f = undefined; | ||
f = this.getName(); | ||
f = jspb.Message.getField(this, 1); | ||
if (f != null) { | ||
@@ -623,3 +641,3 @@ writer.writeString( | ||
} | ||
f = this.getInsertionPoint(); | ||
f = jspb.Message.getField(this, 2); | ||
if (f != null) { | ||
@@ -631,3 +649,3 @@ writer.writeString( | ||
} | ||
f = this.getContent(); | ||
f = jspb.Message.getField(this, 15); | ||
if (f != null) { | ||
@@ -653,6 +671,6 @@ writer.writeString( | ||
* optional string name = 1; | ||
* @return {string?} | ||
* @return {string} | ||
*/ | ||
proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.getName = function() { | ||
return /** @type {string?} */ (jspb.Message.getField(this, 1)); | ||
return /** @type {string} */ (!this.hasName() ? "" : jspb.Message.getField(this, 1)); | ||
}; | ||
@@ -673,7 +691,16 @@ | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.hasName = function() { | ||
return jspb.Message.getField(this, 1) != null; | ||
}; | ||
/** | ||
* optional string insertion_point = 2; | ||
* @return {string?} | ||
* @return {string} | ||
*/ | ||
proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.getInsertionPoint = function() { | ||
return /** @type {string?} */ (jspb.Message.getField(this, 2)); | ||
return /** @type {string} */ (!this.hasInsertionPoint() ? "" : jspb.Message.getField(this, 2)); | ||
}; | ||
@@ -694,7 +721,16 @@ | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.hasInsertionPoint = function() { | ||
return jspb.Message.getField(this, 2) != null; | ||
}; | ||
/** | ||
* optional string content = 15; | ||
* @return {string?} | ||
* @return {string} | ||
*/ | ||
proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.getContent = function() { | ||
return /** @type {string?} */ (jspb.Message.getField(this, 15)); | ||
return /** @type {string} */ (!this.hasContent() ? "" : jspb.Message.getField(this, 15)); | ||
}; | ||
@@ -714,2 +750,11 @@ | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.hasContent = function() { | ||
return jspb.Message.getField(this, 15) != null; | ||
}; | ||
goog.object.extend(exports, proto.google.protobuf.compiler); |
@@ -182,2 +182,7 @@ /** | ||
proto.google.protobuf.FieldMask.prototype.clearPathsList = function() { | ||
jspb.Message.setField(this, 1, []); | ||
}; | ||
goog.object.extend(exports, proto.google.protobuf); |
@@ -15,3 +15,2 @@ /** | ||
goog.exportSymbol('proto.google.protobuf.Struct', null, global); | ||
goog.exportSymbol('proto.google.protobuf.Struct.FieldsEntry', null, global); | ||
goog.exportSymbol('proto.google.protobuf.Value', null, global); | ||
@@ -30,3 +29,3 @@ | ||
proto.google.protobuf.Struct = function(opt_data) { | ||
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.Struct.repeatedFields_, null); | ||
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | ||
}; | ||
@@ -37,11 +36,4 @@ goog.inherits(proto.google.protobuf.Struct, jspb.Message); | ||
} | ||
/** | ||
* List of repeated fields within this message type. | ||
* @private {!Array<number>} | ||
* @const | ||
*/ | ||
proto.google.protobuf.Struct.repeatedFields_ = [1]; | ||
if (jspb.Message.GENERATE_TO_OBJECT) { | ||
@@ -73,4 +65,3 @@ /** | ||
var f, obj = { | ||
fieldsList: jspb.Message.toObjectList(msg.getFieldsList(), | ||
proto.google.protobuf.Struct.FieldsEntry.toObject, includeInstance) | ||
fieldsMap: (f = msg.getFieldsMap(true)) ? f.toArray() : [] | ||
}; | ||
@@ -113,6 +104,6 @@ | ||
case 1: | ||
var value = new proto.google.protobuf.Struct.FieldsEntry; | ||
reader.readMessage(value,proto.google.protobuf.Struct.FieldsEntry.deserializeBinaryFromReader); | ||
msg.getFieldsList().push(value); | ||
msg.setFieldsList(msg.getFieldsList()); | ||
var value = msg.getFieldsMap(); | ||
reader.readMessage(value, function(message, reader) { | ||
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader); | ||
}); | ||
break; | ||
@@ -157,9 +148,5 @@ default: | ||
var f = undefined; | ||
f = this.getFieldsList(); | ||
if (f.length > 0) { | ||
writer.writeRepeatedMessage( | ||
1, | ||
f, | ||
proto.google.protobuf.Struct.FieldsEntry.serializeBinaryToWriter | ||
); | ||
f = this.getFieldsMap(true); | ||
if (f && f.getLength() > 0) { | ||
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter); | ||
} | ||
@@ -179,25 +166,15 @@ }; | ||
/** | ||
* repeated FieldsEntry fields = 1; | ||
* 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.Struct.FieldsEntry>} | ||
* map<string, Value> fields = 1; | ||
* @param {boolean=} opt_noLazyCreate Do not create the map if | ||
* empty, instead returning `undefined` | ||
* @return {!jspb.Map<string,!proto.google.protobuf.Value>} | ||
*/ | ||
proto.google.protobuf.Struct.prototype.getFieldsList = function() { | ||
return /** @type{!Array.<!proto.google.protobuf.Struct.FieldsEntry>} */ ( | ||
jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.Struct.FieldsEntry, 1)); | ||
proto.google.protobuf.Struct.prototype.getFieldsMap = function(opt_noLazyCreate) { | ||
return /** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */ ( | ||
jspb.Message.getMapField(this, 1, opt_noLazyCreate, | ||
proto.google.protobuf.Value)); | ||
}; | ||
/** @param {Array.<!proto.google.protobuf.Struct.FieldsEntry>|undefined} value */ | ||
proto.google.protobuf.Struct.prototype.setFieldsList = function(value) { | ||
jspb.Message.setRepeatedWrapperField(this, 1, value); | ||
}; | ||
proto.google.protobuf.Struct.prototype.clearFieldsList = function() { | ||
this.setFieldsList([]); | ||
}; | ||
/** | ||
@@ -213,196 +190,2 @@ * Generated by JsPbCodeGenerator. | ||
*/ | ||
proto.google.protobuf.Struct.FieldsEntry = function(opt_data) { | ||
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | ||
}; | ||
goog.inherits(proto.google.protobuf.Struct.FieldsEntry, jspb.Message); | ||
if (goog.DEBUG && !COMPILED) { | ||
proto.google.protobuf.Struct.FieldsEntry.displayName = 'proto.google.protobuf.Struct.FieldsEntry'; | ||
} | ||
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.Struct.FieldsEntry.prototype.toObject = function(opt_includeInstance) { | ||
return proto.google.protobuf.Struct.FieldsEntry.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.Struct.FieldsEntry} msg The msg instance to transform. | ||
* @return {!Object} | ||
*/ | ||
proto.google.protobuf.Struct.FieldsEntry.toObject = function(includeInstance, msg) { | ||
var f, obj = { | ||
key: msg.getKey(), | ||
value: (f = msg.getValue()) && proto.google.protobuf.Value.toObject(includeInstance, f) | ||
}; | ||
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.Struct.FieldsEntry} | ||
*/ | ||
proto.google.protobuf.Struct.FieldsEntry.deserializeBinary = function(bytes) { | ||
var reader = new jspb.BinaryReader(bytes); | ||
var msg = new proto.google.protobuf.Struct.FieldsEntry; | ||
return proto.google.protobuf.Struct.FieldsEntry.deserializeBinaryFromReader(msg, reader); | ||
}; | ||
/** | ||
* Deserializes binary data (in protobuf wire format) from the | ||
* given reader into the given message object. | ||
* @param {!proto.google.protobuf.Struct.FieldsEntry} msg The message object to deserialize into. | ||
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | ||
* @return {!proto.google.protobuf.Struct.FieldsEntry} | ||
*/ | ||
proto.google.protobuf.Struct.FieldsEntry.deserializeBinaryFromReader = function(msg, reader) { | ||
while (reader.nextField()) { | ||
if (reader.isEndGroup()) { | ||
break; | ||
} | ||
var field = reader.getFieldNumber(); | ||
switch (field) { | ||
case 1: | ||
var value = /** @type {string} */ (reader.readString()); | ||
msg.setKey(value); | ||
break; | ||
case 2: | ||
var value = new proto.google.protobuf.Value; | ||
reader.readMessage(value,proto.google.protobuf.Value.deserializeBinaryFromReader); | ||
msg.setValue(value); | ||
break; | ||
default: | ||
reader.skipField(); | ||
break; | ||
} | ||
} | ||
return msg; | ||
}; | ||
/** | ||
* Class method variant: serializes the given message to binary data | ||
* (in protobuf wire format), writing to the given BinaryWriter. | ||
* @param {!proto.google.protobuf.Struct.FieldsEntry} message | ||
* @param {!jspb.BinaryWriter} writer | ||
*/ | ||
proto.google.protobuf.Struct.FieldsEntry.serializeBinaryToWriter = function(message, writer) { | ||
message.serializeBinaryToWriter(writer); | ||
}; | ||
/** | ||
* Serializes the message to binary data (in protobuf wire format). | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.google.protobuf.Struct.FieldsEntry.prototype.serializeBinary = function() { | ||
var writer = new jspb.BinaryWriter(); | ||
this.serializeBinaryToWriter(writer); | ||
return writer.getResultBuffer(); | ||
}; | ||
/** | ||
* Serializes the message to binary data (in protobuf wire format), | ||
* writing to the given BinaryWriter. | ||
* @param {!jspb.BinaryWriter} writer | ||
*/ | ||
proto.google.protobuf.Struct.FieldsEntry.prototype.serializeBinaryToWriter = function (writer) { | ||
var f = undefined; | ||
f = this.getKey(); | ||
if (f.length > 0) { | ||
writer.writeString( | ||
1, | ||
f | ||
); | ||
} | ||
f = this.getValue(); | ||
if (f != null) { | ||
writer.writeMessage( | ||
2, | ||
f, | ||
proto.google.protobuf.Value.serializeBinaryToWriter | ||
); | ||
} | ||
}; | ||
/** | ||
* Creates a deep clone of this proto. No data is shared with the original. | ||
* @return {!proto.google.protobuf.Struct.FieldsEntry} The clone. | ||
*/ | ||
proto.google.protobuf.Struct.FieldsEntry.prototype.cloneMessage = function() { | ||
return /** @type {!proto.google.protobuf.Struct.FieldsEntry} */ (jspb.Message.cloneMessage(this)); | ||
}; | ||
/** | ||
* optional string key = 1; | ||
* @return {string} | ||
*/ | ||
proto.google.protobuf.Struct.FieldsEntry.prototype.getKey = function() { | ||
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, "")); | ||
}; | ||
/** @param {string} value */ | ||
proto.google.protobuf.Struct.FieldsEntry.prototype.setKey = function(value) { | ||
jspb.Message.setField(this, 1, value); | ||
}; | ||
/** | ||
* optional Value value = 2; | ||
* @return {proto.google.protobuf.Value} | ||
*/ | ||
proto.google.protobuf.Struct.FieldsEntry.prototype.getValue = function() { | ||
return /** @type{proto.google.protobuf.Value} */ ( | ||
jspb.Message.getWrapperField(this, proto.google.protobuf.Value, 2)); | ||
}; | ||
/** @param {proto.google.protobuf.Value|undefined} value */ | ||
proto.google.protobuf.Struct.FieldsEntry.prototype.setValue = function(value) { | ||
jspb.Message.setWrapperField(this, 2, value); | ||
}; | ||
proto.google.protobuf.Struct.FieldsEntry.prototype.clearValue = function() { | ||
this.setValue(undefined); | ||
}; | ||
/** | ||
* 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.Value = function(opt_data) { | ||
@@ -579,3 +362,3 @@ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.protobuf.Value.oneofGroups_); | ||
var f = undefined; | ||
f = this.getNullValue(); | ||
f = jspb.Message.getField(this, 1); | ||
if (f != null) { | ||
@@ -587,3 +370,3 @@ writer.writeEnum( | ||
} | ||
f = this.getNumberValue(); | ||
f = jspb.Message.getField(this, 2); | ||
if (f != null) { | ||
@@ -595,3 +378,3 @@ writer.writeDouble( | ||
} | ||
f = this.getStringValue(); | ||
f = jspb.Message.getField(this, 3); | ||
if (f != null) { | ||
@@ -603,3 +386,3 @@ writer.writeString( | ||
} | ||
f = this.getBoolValue(); | ||
f = jspb.Message.getField(this, 4); | ||
if (f != null) { | ||
@@ -644,3 +427,3 @@ writer.writeBool( | ||
proto.google.protobuf.Value.prototype.getNullValue = function() { | ||
return /** @type {proto.google.protobuf.NullValue} */ (jspb.Message.getField(this, 1)); | ||
return /** @type {proto.google.protobuf.NullValue} */ (!this.hasNullValue() ? 0 : jspb.Message.getField(this, 1)); | ||
}; | ||
@@ -661,7 +444,16 @@ | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.Value.prototype.hasNullValue = function() { | ||
return jspb.Message.getField(this, 1) != null; | ||
}; | ||
/** | ||
* optional double number_value = 2; | ||
* @return {number?} | ||
* @return {number} | ||
*/ | ||
proto.google.protobuf.Value.prototype.getNumberValue = function() { | ||
return /** @type {number?} */ (jspb.Message.getOptionalFloatingPointField(this, 2)); | ||
return /** @type {number} */ (!this.hasNumberValue() ? 0.0 : +jspb.Message.getField(this, 2)); | ||
}; | ||
@@ -682,7 +474,16 @@ | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.Value.prototype.hasNumberValue = function() { | ||
return jspb.Message.getField(this, 2) != null; | ||
}; | ||
/** | ||
* optional string string_value = 3; | ||
* @return {string?} | ||
* @return {string} | ||
*/ | ||
proto.google.protobuf.Value.prototype.getStringValue = function() { | ||
return /** @type {string?} */ (jspb.Message.getField(this, 3)); | ||
return /** @type {string} */ (!this.hasStringValue() ? "" : jspb.Message.getField(this, 3)); | ||
}; | ||
@@ -703,9 +504,18 @@ | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.Value.prototype.hasStringValue = function() { | ||
return jspb.Message.getField(this, 3) != null; | ||
}; | ||
/** | ||
* optional bool bool_value = 4; | ||
* Note that Boolean fields may be set to 0/1 when serialized from a Java server. | ||
* You should avoid comparisons like {@code val === true/false} in those cases. | ||
* @return {boolean?} | ||
* @return {boolean} | ||
*/ | ||
proto.google.protobuf.Value.prototype.getBoolValue = function() { | ||
return /** @type {boolean?} */ (jspb.Message.getField(this, 4)); | ||
return /** @type {boolean} */ (!this.hasBoolValue() ? false : jspb.Message.getField(this, 4)); | ||
}; | ||
@@ -726,2 +536,11 @@ | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.Value.prototype.hasBoolValue = function() { | ||
return jspb.Message.getField(this, 4) != null; | ||
}; | ||
/** | ||
* optional Struct struct_value = 5; | ||
@@ -748,2 +567,11 @@ * @return {proto.google.protobuf.Struct} | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.Value.prototype.hasStructValue = function() { | ||
return jspb.Message.getField(this, 5) != null; | ||
}; | ||
/** | ||
* optional ListValue list_value = 6; | ||
@@ -769,3 +597,12 @@ * @return {proto.google.protobuf.ListValue} | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.Value.prototype.hasListValue = function() { | ||
return jspb.Message.getField(this, 6) != null; | ||
}; | ||
/** | ||
@@ -937,3 +774,3 @@ * Generated by JsPbCodeGenerator. | ||
/** @param {Array.<!proto.google.protobuf.Value>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.Value>} value */ | ||
proto.google.protobuf.ListValue.prototype.setValuesList = function(value) { | ||
@@ -940,0 +777,0 @@ jspb.Message.setRepeatedWrapperField(this, 1, value); |
@@ -271,3 +271,3 @@ /** | ||
/** @param {Array.<!proto.google.protobuf.Field>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.Field>} value */ | ||
proto.google.protobuf.Type.prototype.setFieldsList = function(value) { | ||
@@ -300,2 +300,7 @@ jspb.Message.setRepeatedWrapperField(this, 2, value); | ||
proto.google.protobuf.Type.prototype.clearOneofsList = function() { | ||
jspb.Message.setField(this, 3, []); | ||
}; | ||
/** | ||
@@ -313,3 +318,3 @@ * repeated Option options = 4; | ||
/** @param {Array.<!proto.google.protobuf.Option>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.Option>} value */ | ||
proto.google.protobuf.Type.prototype.setOptionsList = function(value) { | ||
@@ -347,2 +352,11 @@ jspb.Message.setRepeatedWrapperField(this, 4, value); | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.Type.prototype.hasSourceContext = function() { | ||
return jspb.Message.getField(this, 5) != null; | ||
}; | ||
/** | ||
* optional Syntax syntax = 6; | ||
@@ -744,3 +758,3 @@ * @return {!proto.google.protobuf.Syntax} | ||
/** @param {Array.<!proto.google.protobuf.Option>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.Option>} value */ | ||
proto.google.protobuf.Field.prototype.setOptionsList = function(value) { | ||
@@ -1057,3 +1071,3 @@ jspb.Message.setRepeatedWrapperField(this, 9, value); | ||
/** @param {Array.<!proto.google.protobuf.EnumValue>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.EnumValue>} value */ | ||
proto.google.protobuf.Enum.prototype.setEnumvalueList = function(value) { | ||
@@ -1081,3 +1095,3 @@ jspb.Message.setRepeatedWrapperField(this, 2, value); | ||
/** @param {Array.<!proto.google.protobuf.Option>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.Option>} value */ | ||
proto.google.protobuf.Enum.prototype.setOptionsList = function(value) { | ||
@@ -1115,2 +1129,11 @@ jspb.Message.setRepeatedWrapperField(this, 3, value); | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.Enum.prototype.hasSourceContext = function() { | ||
return jspb.Message.getField(this, 4) != null; | ||
}; | ||
/** | ||
* optional Syntax syntax = 5; | ||
@@ -1351,3 +1374,3 @@ * @return {!proto.google.protobuf.Syntax} | ||
/** @param {Array.<!proto.google.protobuf.Option>|undefined} value */ | ||
/** @param {Array.<!proto.google.protobuf.Option>} value */ | ||
proto.google.protobuf.EnumValue.prototype.setOptionsList = function(value) { | ||
@@ -1558,2 +1581,11 @@ jspb.Message.setRepeatedWrapperField(this, 3, value); | ||
/** | ||
* Returns whether this field is set. | ||
* @return{!boolean} | ||
*/ | ||
proto.google.protobuf.Option.prototype.hasValue = function() { | ||
return jspb.Message.getField(this, 2) != null; | ||
}; | ||
/** | ||
* @enum {number} | ||
@@ -1560,0 +1592,0 @@ */ |
{ | ||
"name": "google-protobuf", | ||
"version": "3.0.0-alpha.6.2", | ||
"version": "3.0.0", | ||
"description": "Protocol Buffers for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "google-protobuf.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
614606
13280
1