@@ -63,57 +63,57 @@ monitor._FieldEntry4.write = function (obj, pbf) {
63
63
var Project = self . Project = { } ;
64
64
65
65
Project . read = function ( pbf , end ) {
66
- return pbf . readFields ( Project . _readField , { targets : [ ] , monitors : [ ] , extensionData : { } , extensions : [ ] , extensionURLs : { } , metaSemver : "" , metaVm : "" , agent : "" } , end ) ;
66
+ return pbf . readFields ( Project . _readField , { metaSemver : "" , metaVm : "" , agent : "" , targets : [ ] , monitors : [ ] , extensionData : { } , extensions : [ ] , extensionURLs : { } } , end ) ;
67
67
} ;
68
68
Project . _readField = function ( tag , obj , pbf ) {
69
- if ( tag === 1 ) obj . targets . push ( Sprite . read ( pbf , pbf . readVarint ( ) + pbf . pos ) ) ;
70
- else if ( tag === 2 ) obj . monitors . push ( monitor . read ( pbf , pbf . readVarint ( ) + pbf . pos ) ) ;
71
- else if ( tag === 3 ) { var entry = Project . _FieldEntry3 . read ( pbf , pbf . readVarint ( ) + pbf . pos ) ; obj . extensionData [ entry . key ] = entry . value ; }
72
- else if ( tag === 4 ) obj . extensions . push ( pbf . readString ( ) ) ;
73
- else if ( tag === 5 ) { entry = Project . _FieldEntry5 . read ( pbf , pbf . readVarint ( ) + pbf . pos ) ; obj . extensionURLs [ entry . key ] = entry . value ; }
74
- else if ( tag === 6 ) obj . metaSemver = pbf . readString ( ) ;
75
- else if ( tag === 7 ) obj . metaVm = pbf . readString ( ) ;
76
- else if ( tag === 8 ) obj . agent = pbf . readString ( ) ;
69
+ if ( tag === 1 ) obj . metaSemver = pbf . readString ( ) ;
70
+ else if ( tag === 2 ) obj . metaVm = pbf . readString ( ) ;
71
+ else if ( tag === 3 ) obj . agent = pbf . readString ( ) ;
72
+ else if ( tag === 4 ) obj . targets . push ( Sprite . read ( pbf , pbf . readVarint ( ) + pbf . pos ) ) ;
73
+ else if ( tag === 5 ) obj . monitors . push ( monitor . read ( pbf , pbf . readVarint ( ) + pbf . pos ) ) ;
74
+ else if ( tag === 6 ) { var entry = Project . _FieldEntry6 . read ( pbf , pbf . readVarint ( ) + pbf . pos ) ; obj . extensionData [ entry . key ] = entry . value ; }
75
+ else if ( tag === 7 ) obj . extensions . push ( pbf . readString ( ) ) ;
76
+ else if ( tag === 8 ) { entry = Project . _FieldEntry8 . read ( pbf , pbf . readVarint ( ) + pbf . pos ) ; obj . extensionURLs [ entry . key ] = entry . value ; }
77
77
} ;
78
78
Project . write = function ( obj , pbf ) {
79
- if ( obj . targets ) for ( var i = 0 ; i < obj . targets . length ; i ++ ) pbf . writeMessage ( 1 , Sprite . write , obj . targets [ i ] ) ;
80
- if ( obj . monitors ) for ( i = 0 ; i < obj . monitors . length ; i ++ ) pbf . writeMessage ( 2 , monitor . write , obj . monitors [ i ] ) ;
81
- if ( obj . extensionData ) for ( i in obj . extensionData ) if ( Object . prototype . hasOwnProperty . call ( obj . extensionData , i ) ) pbf . writeMessage ( 3 , Project . _FieldEntry3 . write , { key : i , value : obj . extensionData [ i ] } ) ;
82
- if ( obj . extensions ) for ( i = 0 ; i < obj . extensions . length ; i ++ ) pbf . writeStringField ( 4 , obj . extensions [ i ] ) ;
83
- if ( obj . extensionURLs ) for ( i in obj . extensionURLs ) if ( Object . prototype . hasOwnProperty . call ( obj . extensionURLs , i ) ) pbf . writeMessage ( 5 , Project . _FieldEntry5 . write , { key : i , value : obj . extensionURLs [ i ] } ) ;
84
- if ( obj . metaSemver ) pbf . writeStringField ( 6 , obj . metaSemver ) ;
85
- if ( obj . metaVm ) pbf . writeStringField ( 7 , obj . metaVm ) ;
86
- if ( obj . agent ) pbf . writeStringField ( 8 , obj . agent ) ;
79
+ if ( obj . metaSemver ) pbf . writeStringField ( 1 , obj . metaSemver ) ;
80
+ if ( obj . metaVm ) pbf . writeStringField ( 2 , obj . metaVm ) ;
81
+ if ( obj . agent ) pbf . writeStringField ( 3 , obj . agent ) ;
82
+ if ( obj . targets ) for ( var i = 0 ; i < obj . targets . length ; i ++ ) pbf . writeMessage ( 4 , Sprite . write , obj . targets [ i ] ) ;
83
+ if ( obj . monitors ) for ( i = 0 ; i < obj . monitors . length ; i ++ ) pbf . writeMessage ( 5 , monitor . write , obj . monitors [ i ] ) ;
84
+ if ( obj . extensionData ) for ( i in obj . extensionData ) if ( Object . prototype . hasOwnProperty . call ( obj . extensionData , i ) ) pbf . writeMessage ( 6 , Project . _FieldEntry6 . write , { key : i , value : obj . extensionData [ i ] } ) ;
85
+ if ( obj . extensions ) for ( i = 0 ; i < obj . extensions . length ; i ++ ) pbf . writeStringField ( 7 , obj . extensions [ i ] ) ;
86
+ if ( obj . extensionURLs ) for ( i in obj . extensionURLs ) if ( Object . prototype . hasOwnProperty . call ( obj . extensionURLs , i ) ) pbf . writeMessage ( 8 , Project . _FieldEntry8 . write , { key : i , value : obj . extensionURLs [ i ] } ) ;
87
87
} ;
88
88
89
- // Project._FieldEntry3 ========================================
89
+ // Project._FieldEntry6 ========================================
90
90
91
- Project . _FieldEntry3 = { } ;
91
+ Project . _FieldEntry6 = { } ;
92
92
93
- Project . _FieldEntry3 . read = function ( pbf , end ) {
94
- return pbf . readFields ( Project . _FieldEntry3 . _readField , { key : "" , value : "" } , end ) ;
93
+ Project . _FieldEntry6 . read = function ( pbf , end ) {
94
+ return pbf . readFields ( Project . _FieldEntry6 . _readField , { key : "" , value : "" } , end ) ;
95
95
} ;
96
- Project . _FieldEntry3 . _readField = function ( tag , obj , pbf ) {
96
+ Project . _FieldEntry6 . _readField = function ( tag , obj , pbf ) {
97
97
if ( tag === 1 ) obj . key = pbf . readString ( ) ;
98
98
else if ( tag === 2 ) obj . value = pbf . readString ( ) ;
99
99
} ;
100
- Project . _FieldEntry3 . write = function ( obj , pbf ) {
100
+ Project . _FieldEntry6 . write = function ( obj , pbf ) {
101
101
if ( obj . key ) pbf . writeStringField ( 1 , obj . key ) ;
102
102
if ( obj . value ) pbf . writeStringField ( 2 , obj . value ) ;
103
103
} ;
104
104
105
- // Project._FieldEntry5 ========================================
105
+ // Project._FieldEntry8 ========================================
106
106
107
- Project . _FieldEntry5 = { } ;
107
+ Project . _FieldEntry8 = { } ;
108
108
109
- Project . _FieldEntry5 . read = function ( pbf , end ) {
110
- return pbf . readFields ( Project . _FieldEntry5 . _readField , { key : "" , value : "" } , end ) ;
109
+ Project . _FieldEntry8 . read = function ( pbf , end ) {
110
+ return pbf . readFields ( Project . _FieldEntry8 . _readField , { key : "" , value : "" } , end ) ;
111
111
} ;
112
- Project . _FieldEntry5 . _readField = function ( tag , obj , pbf ) {
112
+ Project . _FieldEntry8 . _readField = function ( tag , obj , pbf ) {
113
113
if ( tag === 1 ) obj . key = pbf . readString ( ) ;
114
114
else if ( tag === 2 ) obj . value = pbf . readString ( ) ;
115
115
} ;
116
- Project . _FieldEntry5 . write = function ( obj , pbf ) {
116
+ Project . _FieldEntry8 . write = function ( obj , pbf ) {
117
117
if ( obj . key ) pbf . writeStringField ( 1 , obj . key ) ;
118
118
if ( obj . value ) pbf . writeStringField ( 2 , obj . value ) ;
119
119
} ;
0 commit comments