Lines Matching refs:fieldNumber
95 jspb.ExtensionFieldInfo = function(fieldNumber, fieldName, ctor, toObjectFn, argument
100 this.fieldIndex = fieldNumber;
278 jspb.Message.getIndex_ = function(msg, fieldNumber) { argument
279 return fieldNumber + msg.arrayIndexOffset_;
315 var fieldNumber = repeatedFields[i];
316 if (fieldNumber < msg.pivot_) {
317 var index = jspb.Message.getIndex_(msg, fieldNumber);
323 msg.extensionObject_[fieldNumber] =
324 msg.extensionObject_[fieldNumber] ||
456 for (var fieldNumber in extensions) {
457 var fieldInfo = extensions[fieldNumber];
491 for (var fieldNumber in extensions) {
492 var fieldInfo = extensions[fieldNumber];
577 jspb.Message.getField = function(msg, fieldNumber) { argument
578 if (fieldNumber < msg.pivot_) {
579 var index = jspb.Message.getIndex_(msg, fieldNumber);
586 var val = msg.extensionObject_[fieldNumber];
588 return msg.extensionObject_[fieldNumber] = [];
602 jspb.Message.getOptionalFloatingPointField = function(msg, fieldNumber) { argument
603 var value = jspb.Message.getField(msg, fieldNumber);
616 jspb.Message.getRepeatedFloatingPointField = function(msg, fieldNumber) { argument
617 var values = jspb.Message.getField(msg, fieldNumber);
621 if (!msg.convertedFloatingPointFields_[fieldNumber]) {
627 msg.convertedFloatingPointFields_[fieldNumber] = true;
730 jspb.Message.getFieldProto3 = function(msg, fieldNumber, defaultValue) { argument
731 var value = jspb.Message.getField(msg, fieldNumber);
747 jspb.Message.setField = function(msg, fieldNumber, value) { argument
748 if (fieldNumber < msg.pivot_) {
749 msg.array[jspb.Message.getIndex_(msg, fieldNumber)] = value;
751 msg.extensionObject_[fieldNumber] = value;
765 jspb.Message.setOneofField = function(msg, fieldNumber, oneof, value) { argument
767 if (currentCase && currentCase !== fieldNumber && value !== undefined) {
773 jspb.Message.setField(msg, fieldNumber, value);
798 goog.array.forEach(oneof, function(fieldNumber) { argument
799 var value = jspb.Message.getField(msg, fieldNumber);
801 oneofField = fieldNumber;
803 jspb.Message.setField(msg, fieldNumber, undefined);
828 jspb.Message.getWrapperField = function(msg, ctor, fieldNumber, opt_required) { argument
833 if (!msg.wrappers_[fieldNumber]) {
834 var data = /** @type {Array} */ (jspb.Message.getField(msg, fieldNumber));
837 msg.wrappers_[fieldNumber] = new ctor(data);
840 return /** @type {jspb.Message} */ (msg.wrappers_[fieldNumber]);
852 jspb.Message.getRepeatedWrapperField = function(msg, ctor, fieldNumber) { argument
856 if (!msg.wrappers_[fieldNumber]) {
857 var data = jspb.Message.getField(msg, fieldNumber);
861 msg.wrappers_[fieldNumber] = wrappers;
863 var val = msg.wrappers_[fieldNumber];
865 val = msg.wrappers_[fieldNumber] = [];
878 jspb.Message.setWrapperField = function(msg, fieldNumber, value) { argument
883 msg.wrappers_[fieldNumber] = value;
884 jspb.Message.setField(msg, fieldNumber, data);
896 jspb.Message.setOneofWrapperField = function(msg, fieldNumber, oneof, value) { argument
901 msg.wrappers_[fieldNumber] = value;
902 jspb.Message.setOneofField(msg, fieldNumber, oneof, data);
913 jspb.Message.setRepeatedWrapperField = function(msg, fieldNumber, value) { argument
921 msg.wrappers_[fieldNumber] = value;
922 jspb.Message.setField(msg, fieldNumber, data);
992 var fieldNumber = fieldInfo.fieldIndex;
995 if (!this.wrappers_[fieldNumber]) {
996 this.wrappers_[fieldNumber] =
997 goog.array.map(this.extensionObject_[fieldNumber] || [],
1002 return this.wrappers_[fieldNumber];
1004 return this.extensionObject_[fieldNumber];
1008 if (!this.wrappers_[fieldNumber] && this.extensionObject_[fieldNumber]) {
1009 this.wrappers_[fieldNumber] = new fieldInfo.ctor(
1011 this.extensionObject_[fieldNumber]));
1013 return this.wrappers_[fieldNumber];
1015 return this.extensionObject_[fieldNumber];
1032 var fieldNumber = fieldInfo.fieldIndex;
1036 this.wrappers_[fieldNumber] = value;
1037 this.extensionObject_[fieldNumber] = goog.array.map(
1042 this.extensionObject_[fieldNumber] = value;
1046 this.wrappers_[fieldNumber] = value;
1047 this.extensionObject_[fieldNumber] = value ? value.toArray() : value;
1049 this.extensionObject_[fieldNumber] = value;