@@ -62,7 +62,7 @@ $root.vector_tile = (function() {
62
62
writer || ( writer = Writer . create ( ) )
63
63
if ( message . layers )
64
64
for ( var i = 0 ; i < message . layers . length ; ++ i )
65
- types [ 0 ] . encode ( message . layers [ i ] , writer . uint32 ( 26 ) . fork ( ) ) . ldelim ( )
65
+ types [ 0 ] . encode ( message . layers [ i ] , writer . uint32 ( 26 /*= id 3, wireType 2 */ ) . fork ( ) ) . ldelim ( )
66
66
return writer
67
67
} } ) ( $protobuf . Writer , $protobuf . util , [ "vector_tile.Tile.Layer" ] ) ; /* eslint-enable */
68
68
@@ -122,9 +122,9 @@ $root.vector_tile = (function() {
122
122
if ( ! Array . isArray ( message . layers ) )
123
123
return "invalid value for field .vector_tile.Tile.layers (array expected)"
124
124
for ( var i = 0 ; i < message . layers . length ; ++ i ) {
125
- var s ;
126
- if ( s = types [ 0 ] . verify ( message . layers [ i ] ) )
127
- return s
125
+ var reason ;
126
+ if ( reason = types [ 0 ] . verify ( message . layers [ i ] ) )
127
+ return reason
128
128
}
129
129
}
130
130
return null
@@ -223,19 +223,19 @@ $root.vector_tile = (function() {
223
223
Value . encode = /* eslint-disable */ ( function ( Writer , util , types ) { $lazyTypes . push ( types ) ; return function encode ( message , writer ) {
224
224
writer || ( writer = Writer . create ( ) )
225
225
if ( message . stringValue !== undefined && message . stringValue !== "" )
226
- writer . uint32 ( 10 ) . string ( message . stringValue )
226
+ writer . uint32 ( 10 /*= id 1, wireType 2 */ ) . string ( message . stringValue )
227
227
if ( message . floatValue !== undefined && message . floatValue !== 0 )
228
- writer . uint32 ( 21 ) . float ( message . floatValue )
228
+ writer . uint32 ( 21 /*= id 2, wireType 5 */ ) . float ( message . floatValue )
229
229
if ( message . doubleValue !== undefined && message . doubleValue !== 0 )
230
- writer . uint32 ( 25 ) . double ( message . doubleValue )
230
+ writer . uint32 ( 25 /*= id 3, wireType 1 */ ) . double ( message . doubleValue )
231
231
if ( message . intValue !== undefined && message . intValue !== null && util . longNe ( message . intValue , 0 , 0 ) )
232
- writer . uint32 ( 32 ) . int64 ( message . intValue )
232
+ writer . uint32 ( 32 /*= id 4, wireType 0 */ ) . int64 ( message . intValue )
233
233
if ( message . uintValue !== undefined && message . uintValue !== null && util . longNe ( message . uintValue , 0 , 0 ) )
234
- writer . uint32 ( 40 ) . uint64 ( message . uintValue )
234
+ writer . uint32 ( 40 /*= id 5, wireType 0 */ ) . uint64 ( message . uintValue )
235
235
if ( message . sintValue !== undefined && message . sintValue !== null && util . longNe ( message . sintValue , 0 , 0 ) )
236
- writer . uint32 ( 48 ) . sint64 ( message . sintValue )
236
+ writer . uint32 ( 48 /*= id 6, wireType 0 */ ) . sint64 ( message . sintValue )
237
237
if ( message . boolValue !== undefined && message . boolValue !== false )
238
- writer . uint32 ( 56 ) . bool ( message . boolValue )
238
+ writer . uint32 ( 56 /*= id 7, wireType 0 */ ) . bool ( message . boolValue )
239
239
return writer
240
240
} } ) ( $protobuf . Writer , $protobuf . util , [ null , null , null , null , null , null , null ] ) ; /* eslint-enable */
241
241
@@ -404,17 +404,17 @@ $root.vector_tile = (function() {
404
404
Feature . encode = /* eslint-disable */ ( function ( Writer , util , types ) { $lazyTypes . push ( types ) ; return function encode ( message , writer ) {
405
405
writer || ( writer = Writer . create ( ) )
406
406
if ( message . id !== undefined && message . id !== null && util . longNe ( message . id , 0 , 0 ) )
407
- writer . uint32 ( 8 ) . uint64 ( message . id )
407
+ writer . uint32 ( 8 /*= id 1, wireType 0 */ ) . uint64 ( message . id )
408
408
if ( message . tags && message . tags . length ) {
409
- writer . uint32 ( 18 ) . fork ( )
409
+ writer . uint32 ( 18 /*= id 2, wireType 2 */ ) . fork ( )
410
410
for ( var i = 0 ; i < message . tags . length ; ++ i )
411
411
writer . uint32 ( message . tags [ i ] )
412
412
writer . ldelim ( )
413
413
}
414
414
if ( message . type !== undefined && message . type !== "UNKNOWN" )
415
- writer . uint32 ( 24 ) . uint32 ( message . type )
415
+ writer . uint32 ( 24 /*= id 3, wireType 0 */ ) . uint32 ( message . type )
416
416
if ( message . geometry && message . geometry . length ) {
417
- writer . uint32 ( 34 ) . fork ( )
417
+ writer . uint32 ( 34 /*= id 4, wireType 2 */ ) . fork ( )
418
418
for ( var i = 0 ; i < message . geometry . length ; ++ i )
419
419
writer . uint32 ( message . geometry [ i ] )
420
420
writer . ldelim ( )
@@ -604,19 +604,19 @@ $root.vector_tile = (function() {
604
604
*/
605
605
Layer . encode = /* eslint-disable */ ( function ( Writer , util , types ) { $lazyTypes . push ( types ) ; return function encode ( message , writer ) {
606
606
writer || ( writer = Writer . create ( ) )
607
- writer . uint32 ( 120 ) . uint32 ( message . version )
608
- writer . uint32 ( 10 ) . string ( message . name )
607
+ writer . uint32 ( 120 /*= id 15, wireType 0 */ ) . uint32 ( message . version )
608
+ writer . uint32 ( 10 /*= id 1, wireType 2 */ ) . string ( message . name )
609
609
if ( message . features )
610
610
for ( var i = 0 ; i < message . features . length ; ++ i )
611
- types [ 2 ] . encode ( message . features [ i ] , writer . uint32 ( 18 ) . fork ( ) ) . ldelim ( )
611
+ types [ 2 ] . encode ( message . features [ i ] , writer . uint32 ( 18 /*= id 2, wireType 2 */ ) . fork ( ) ) . ldelim ( )
612
612
if ( message . keys )
613
613
for ( var i = 0 ; i < message . keys . length ; ++ i )
614
- writer . uint32 ( 26 ) . string ( message . keys [ i ] )
614
+ writer . uint32 ( 26 /*= id 3, wireType 2 */ ) . string ( message . keys [ i ] )
615
615
if ( message . values )
616
616
for ( var i = 0 ; i < message . values . length ; ++ i )
617
- types [ 4 ] . encode ( message . values [ i ] , writer . uint32 ( 34 ) . fork ( ) ) . ldelim ( )
617
+ types [ 4 ] . encode ( message . values [ i ] , writer . uint32 ( 34 /*= id 4, wireType 2 */ ) . fork ( ) ) . ldelim ( )
618
618
if ( message . extent !== undefined && message . extent !== 4096 )
619
- writer . uint32 ( 40 ) . uint32 ( message . extent )
619
+ writer . uint32 ( 40 /*= id 5, wireType 0 */ ) . uint32 ( message . extent )
620
620
return writer
621
621
} } ) ( $protobuf . Writer , $protobuf . util , [ null , null , "vector_tile.Tile.Feature" , null , "vector_tile.Tile.Value" , null ] ) ; /* eslint-enable */
622
622
@@ -697,9 +697,9 @@ $root.vector_tile = (function() {
697
697
if ( ! Array . isArray ( message . features ) )
698
698
return "invalid value for field .vector_tile.Tile.Layer.features (array expected)"
699
699
for ( var i = 0 ; i < message . features . length ; ++ i ) {
700
- var s ;
701
- if ( s = types [ 2 ] . verify ( message . features [ i ] ) )
702
- return s
700
+ var reason ;
701
+ if ( reason = types [ 2 ] . verify ( message . features [ i ] ) )
702
+ return reason
703
703
}
704
704
}
705
705
if ( message . keys !== undefined ) {
@@ -714,9 +714,9 @@ $root.vector_tile = (function() {
714
714
if ( ! Array . isArray ( message . values ) )
715
715
return "invalid value for field .vector_tile.Tile.Layer.values (array expected)"
716
716
for ( var i = 0 ; i < message . values . length ; ++ i ) {
717
- var s ;
718
- if ( s = types [ 4 ] . verify ( message . values [ i ] ) )
719
- return s
717
+ var reason ;
718
+ if ( reason = types [ 4 ] . verify ( message . values [ i ] ) )
719
+ return reason
720
720
}
721
721
}
722
722
if ( message . extent !== undefined ) {
0 commit comments