Lines Matching refs:field
27 const {Field, IndexEntry} = goog.require('protobuf.binary.field');
287 * Writes the array of Messages into the writer for the given field number.
299 * Writes the array of Messages into the writer for the given field number.
348 * @param {number=} pivot Fields with a field number no greater than the pivot
352 * value to the max field number of the message unless the field numbers
364 * @param {number=} pivot Fields with a field number no greater than the pivot
368 * value to the max field number of the message unless the field numbers
392 * @param {!Storage<!Field>} fields A map of field number to Field. The
394 * field in the binary data.
421 * Clears the field for the given field number.
429 * Returns data for a field specified by the given field number. Also cache
444 const field = this.fields_.get(fieldNumber);
445 if (field === undefined) {
449 if (field.hasDecodedValue()) {
450 checkState(!encoder || !!field.getEncoder());
451 return field.getDecodedValue();
455 checkDefAndNotNull(field.getIndexArray()),
457 field.setCache(parsed, encoder);
462 * Sets data for a singular field specified by the given field number.
483 // fieldNumber and field without specifying which type is for
484 // field, which prevents us to use fieldNumber. Thus, we use
486 this.fields_.forEach((field, fieldNumber) => {
489 if (field.getEncoder() !== undefined) {
490 const encoder = checkDefAndNotNull(field.getEncoder());
491 encoder(writer, fieldNumber, field.getDecodedValue());
495 const indexArr = field.getIndexArray();
519 * Returns whether data exists at the given field number.
525 const field = this.fields_.get(fieldNumber);
527 if (field === undefined) {
531 if (field.getIndexArray() !== null) {
535 if (Array.isArray(field.getDecodedValue())) {
537 return (/** !Array<?> */ (field.getDecodedValue())).length > 0;
547 * Returns data as boolean for the given field number.
561 * Returns data as a ByteString for the given field number.
575 * Returns a double for the given field number.
590 * Returns a fixed32 for the given field number.
605 * Returns a fixed64 for the given field number.
618 * Returns a float for the given field number.
633 * Returns a int32 for the given field number.
648 * Returns a int64 for the given field number.
663 * Returns a sfixed32 for the given field number.
678 * Returns a sfixed64 for the given field number.
693 * Returns a sint32 for the given field number.
708 * Returns a sint64 for the given field number.
723 * Returns a string for the given field number.
737 * Returns a uint32 for the given field number.
752 * Returns a uint64 for the given field number.
765 * Returns data as a mutable proto Message for the given field number.
787 * Returns data as a mutable proto Message for the given field number.
809 * Returns data as a mutable proto Message for the given field number.
833 * Returns data as a mutable proto Message for the given field number.
857 * Returns data as a proto Message for the given field number.
860 * field is cleared.
880 // Returns an empty message as the default value if the field doesn't exist.
887 * Returns data as a proto Message for the given field number.
890 * field is cleared.
910 // Returns an empty message as the default value if the field doesn't exist.
925 const field = this.fields_.get(fieldNumber);
926 if (field === undefined) {
930 if (field.hasDecodedValue()) {
931 return checkIsInternalMessage(field.getDecodedValue())
935 checkDefAndNotNull(field.getIndexArray()),
947 * Returns an Array instance containing boolean values for the given field
962 * Returns the element at index for the given field number.
974 * Returns an Iterable instance containing boolean values for the given field
987 * Returns the size of the repeated field.
998 * Returns an Array instance containing double values for the given field
1013 * Returns the element at index for the given field number.
1025 * Returns an Iterable instance containing double values for the given field
1038 * Returns the size of the repeated field.
1049 * Returns an Array instance containing fixed32 values for the given field
1064 * Returns the element at index for the given field number.
1076 * Returns an Iterable instance containing fixed32 values for the given field
1089 * Returns the size of the repeated field.
1100 * Returns the element at index for the given field number.
1110 * Returns an Iterable instance containing fixed64 values for the given field
1120 * Returns the size of the repeated field.
1131 * Returns an Array instance containing float values for the given field
1146 * Returns the element at index for the given field number.
1158 * Returns an Iterable instance containing float values for the given field
1171 * Returns the size of the repeated field.
1182 * Returns an Array instance containing int32 values for the given field
1197 * Returns the element at index for the given field number.
1209 * Returns an Iterable instance containing int32 values for the given field
1222 * Returns the size of the repeated field.
1233 * Returns an Array instance containing int64 values for the given field
1248 * Returns the element at index for the given field number.
1260 * Returns an Iterable instance containing int64 values for the given field
1273 * Returns the size of the repeated field.
1284 * Returns an Array instance containing sfixed32 values for the given field
1299 * Returns the element at index for the given field number.
1311 * Returns an Iterable instance containing sfixed32 values for the given field
1324 * Returns the size of the repeated field.
1335 * Returns an Array instance containing sfixed64 values for the given field
1350 * Returns the element at index for the given field number.
1362 * Returns an Iterable instance containing sfixed64 values for the given field
1375 * Returns the size of the repeated field.
1386 * Returns an Array instance containing sint32 values for the given field
1401 * Returns the element at index for the given field number.
1413 * Returns an Iterable instance containing sint32 values for the given field
1426 * Returns the size of the repeated field.
1437 * Returns an Array instance containing sint64 values for the given field
1452 * Returns the element at index for the given field number.
1464 * Returns an Iterable instance containing sint64 values for the given field
1477 * Returns the size of the repeated field.
1488 * Returns an Array instance containing uint32 values for the given field
1503 * Returns the element at index for the given field number.
1515 * Returns an Iterable instance containing uint32 values for the given field
1528 * Returns the size of the repeated field.
1539 * Returns the element at index for the given field number.
1549 * Returns an Iterable instance containing uint64 values for the given field
1559 * Returns the size of the repeated field.
1570 * Returns an array instance containing bytes values for the given field
1584 * Returns the element at index for the given field number as a bytes.
1596 * Returns an Iterable instance containing bytes values for the given field
1609 * Returns the size of the repeated field.
1620 * Returns an array instance containing string values for the given field
1634 * Returns the element at index for the given field number as a string.
1646 * Returns an Iterable instance containing string values for the given field
1659 * Returns the size of the repeated field.
1670 * Returns an Array instance containing boolean values for the given field
1687 const field = this.fields_.get(fieldNumber);
1688 if (field === undefined) {
1692 if (field.hasDecodedValue()) {
1693 return field.getDecodedValue();
1696 const indexArray = checkDefAndNotNull(field.getIndexArray());
1706 field.setCache(result, writeRepeatedMessage);
1712 * Returns the element at index for the given field number as a message.
1729 * Returns an Iterable instance containing message values for the given field
1747 * field number.
1755 const field = this.fields_.get(fieldNumber);
1756 if (!field) {
1760 if (field.hasDecodedValue()) {
1761 return new ArrayIterable(field.getDecodedValue().map(
1768 checkDefAndNotNull(field.getIndexArray()),
1774 * Returns the size of the repeated field.
1787 * Returns an Array instance containing boolean values for the given field
1805 * Returns the element at index for the given field number as a group.
1822 * Returns an Iterable instance containing group values for the given field
1839 * Returns the size of the repeated field.
1856 * Sets a boolean value to the field with the given field number.
1868 * Sets a boolean value to the field with the given field number.
1880 * Sets a double value to the field with the given field number.
1892 * Sets a fixed32 value to the field with the given field number.
1904 * Sets a uint64 value to the field with the given field number.\
1916 * Sets a float value to the field with the given field number.
1931 * Sets a int32 value to the field with the given field number.
1943 * Sets a int64 value to the field with the given field number.
1955 * Sets a sfixed32 value to the field with the given field number.
1967 * Sets a sfixed64 value to the field with the given field number.
1979 * Sets a sint32 value to the field with the given field number.
1991 * Sets a sint64 value to the field with the given field number.
2003 * Sets a boolean value to the field with the given field number.
2015 * Sets a uint32 value to the field with the given field number.
2027 * Sets a uint64 value to the field with the given field number.\
2039 * Sets a proto Group to the field with the given field number.
2053 * Sets a proto Message to the field with the given field number.
2073 * Adds all boolean values into the field for the given field number.
2088 * Adds a single boolean value into the field for the given field number.
2101 * Adds all boolean values into the field for the given field number.
2114 * Adds a single boolean value into the field for the given field number.
2127 * Adds all boolean values into the field for the given field number.
2140 * Sets a single boolean value into the field for the given field number at
2160 * Sets a single boolean value into the field for the given field number at
2175 * Sets all boolean values into the field for the given field number.
2189 * Sets a single boolean value into the field for the given field number at
2204 * Sets all boolean values into the field for the given field number.
2220 * Adds all double values into the field for the given field number.
2235 * Adds a single double value into the field for the given field number.
2248 * Adds all double values into the field for the given field number.
2261 * Adds a single double value into the field for the given field number.
2274 * Adds all double values into the field for the given field number.
2287 * Sets a single double value into the field for the given field number at the
2307 * Sets a single double value into the field for the given field number at the
2323 * Sets all double values into the field for the given field number.
2337 * Sets a single double value into the field for the given field number at the
2353 * Sets all double values into the field for the given field number.
2369 * Adds all fixed32 values into the field for the given field number.
2384 * Adds a single fixed32 value into the field for the given field number.
2397 * Adds all fixed32 values into the field for the given field number.
2410 * Adds a single fixed32 value into the field for the given field number.
2423 * Adds all fixed32 values into the field for the given field number.
2436 * Sets a single fixed32 value into the field for the given field number at
2456 * Sets a single fixed32 value into the field for the given field number at
2471 * Sets all fixed32 values into the field for the given field number.
2485 * Sets a single fixed32 value into the field for the given field number at
2500 * Sets all fixed32 values into the field for the given field number.
2516 * Adds a single fixed64 value into the field for the given field number.
2526 * Adds all fixed64 values into the field for the given field number.
2536 * Adds a single fixed64 value into the field for the given field number.
2546 * Adds all fixed64 values into the field for the given field number.
2556 * Sets a single fixed64 value into the field for the given field number at
2568 * Sets all fixed64 values into the field for the given field number.
2578 * Sets a single fixed64 value into the field for the given field number at
2590 * Sets all fixed64 values into the field for the given field number.
2602 * Adds all float values into the field for the given field number.
2621 * Adds a single float value into the field for the given field number.
2634 * Adds all float values into the field for the given field number.
2647 * Adds a single float value into the field for the given field number.
2660 * Adds all float values into the field for the given field number.
2673 * Sets a single float value into the field for the given field number at the
2696 * Sets a single float value into the field for the given field number at the
2712 * Sets all float values into the field for the given field number.
2728 * Sets a single float value into the field for the given field number at the
2744 * Sets all float values into the field for the given field number.
2762 * Adds all int32 values into the field for the given field number.
2777 * Adds a single int32 value into the field for the given field number.
2790 * Adds all int32 values into the field for the given field number.
2803 * Adds a single int32 value into the field for the given field number.
2816 * Adds all int32 values into the field for the given field number.
2829 * Sets a single int32 value into the field for the given field number at
2849 * Sets a single int32 value into the field for the given field number at
2864 * Sets all int32 values into the field for the given field number.
2878 * Sets a single int32 value into the field for the given field number at
2893 * Sets all int32 values into the field for the given field number.
2909 * Adds all int64 values into the field for the given field number.
2924 * Adds a single int64 value into the field for the given field number.
2937 * Adds all int64 values into the field for the given field number.
2950 * Adds a single int64 value into the field for the given field number.
2963 * Adds all int64 values into the field for the given field number.
2976 * Sets a single int64 value into the field for the given field number at
2996 * Sets a single int64 value into the field for the given field number at
3011 * Sets all int64 values into the field for the given field number.
3025 * Sets a single int64 value into the field for the given field number at
3040 * Sets all int64 values into the field for the given field number.
3056 * Adds all sfixed32 values into the field for the given field number.
3071 * Adds a single sfixed32 value into the field for the given field number.
3084 * Adds all sfixed32 values into the field for the given field number.
3097 * Adds a single sfixed32 value into the field for the given field number.
3110 * Adds all sfixed32 values into the field for the given field number.
3123 * Sets a single sfixed32 value into the field for the given field number at
3143 * Sets a single sfixed32 value into the field for the given field number at
3158 * Sets all sfixed32 values into the field for the given field number.
3172 * Sets a single sfixed32 value into the field for the given field number at
3187 * Sets all sfixed32 values into the field for the given field number.
3203 * Adds all sfixed64 values into the field for the given field number.
3218 * Adds a single sfixed64 value into the field for the given field number.
3231 * Adds all sfixed64 values into the field for the given field number.
3244 * Adds a single sfixed64 value into the field for the given field number.
3257 * Adds all sfixed64 values into the field for the given field number.
3270 * Sets a single sfixed64 value into the field for the given field number at
3290 * Sets a single sfixed64 value into the field for the given field number at
3305 * Sets all sfixed64 values into the field for the given field number.
3319 * Sets a single sfixed64 value into the field for the given field number at
3334 * Sets all sfixed64 values into the field for the given field number.
3350 * Adds all sint32 values into the field for the given field number.
3365 * Adds a single sint32 value into the field for the given field number.
3378 * Adds all sint32 values into the field for the given field number.
3391 * Adds a single sint32 value into the field for the given field number.
3404 * Adds all sint32 values into the field for the given field number.
3417 * Sets a single sint32 value into the field for the given field number at
3437 * Sets a single sint32 value into the field for the given field number at
3452 * Sets all sint32 values into the field for the given field number.
3466 * Sets a single sint32 value into the field for the given field number at
3481 * Sets all sint32 values into the field for the given field number.
3497 * Adds all sint64 values into the field for the given field number.
3512 * Adds a single sint64 value into the field for the given field number.
3525 * Adds all sint64 values into the field for the given field number.
3538 * Adds a single sint64 value into the field for the given field number.
3551 * Adds all sint64 values into the field for the given field number.
3564 * Sets a single sint64 value into the field for the given field number at
3584 * Sets a single sint64 value into the field for the given field number at
3599 * Sets all sint64 values into the field for the given field number.
3613 * Sets a single sint64 value into the field for the given field number at
3628 * Sets all sint64 values into the field for the given field number.
3644 * Adds all uint32 values into the field for the given field number.
3659 * Adds a single uint32 value into the field for the given field number.
3672 * Adds all uint32 values into the field for the given field number.
3685 * Adds a single uint32 value into the field for the given field number.
3698 * Adds all uint32 values into the field for the given field number.
3711 * Sets a single uint32 value into the field for the given field number at
3731 * Sets a single uint32 value into the field for the given field number at
3746 * Sets all uint32 values into the field for the given field number.
3760 * Sets a single uint32 value into the field for the given field number at
3775 * Sets all uint32 values into the field for the given field number.
3791 * Adds a single uint64 value into the field for the given field number.
3801 * Adds all uint64 values into the field for the given field number.
3811 * Adds a single uint64 value into the field for the given field number.
3821 * Adds all uint64 values into the field for the given field number.
3831 * Sets a single uint64 value into the field for the given field number at
3843 * Sets all uint64 values into the field for the given field number.
3853 * Sets a single uint64 value into the field for the given field number at
3865 * Sets all uint64 values into the field for the given field number.
3877 * Sets all bytes values into the field for the given field number.
3890 * Adds all bytes values into the field for the given field number.
3904 * Sets a single bytes value into the field for the given field number at
3923 * Adds a single bytes value into the field for the given field number.
3934 * Sets all string values into the field for the given field number.
3947 * Adds all string values into the field for the given field number.
3961 * Sets a single string value into the field for the given field number at
3980 * Adds a single string value into the field for the given field number.
3991 * Sets all message values into the field for the given field number.
4004 * Adds all message values into the field for the given field number.
4025 * Sets a single message value into the field for the given field number at
4046 * Adds a single message value into the field for the given field number.
4060 * Sets all message values into the field for the given field number.
4071 * Adds all message values into the field for the given field number.
4089 * Sets a single message value into the field for the given field number at
4110 * Adds a single message value into the field for the given field number.