@google/earthengine 0.1.392 → 0.1.394

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google/earthengine",
3
- "version": "0.1.392",
3
+ "version": "0.1.394",
4
4
  "description": "JavaScript client for Google Earth Engine API.",
5
5
  "author": "Google LLC",
6
6
  "license": "Apache-2.0",
package/src/apiclient.js CHANGED
@@ -24,7 +24,7 @@ const {trustedResourceUrl} = goog.require('safevalues');
24
24
  /** @namespace */
25
25
  const apiclient = {};
26
26
 
27
- const API_CLIENT_VERSION = '0.1.392';
27
+ const API_CLIENT_VERSION = '0.1.394';
28
28
 
29
29
  exports.VERSION = apiVersion.VERSION;
30
30
  exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
package/src/batch.js CHANGED
@@ -126,14 +126,14 @@ class ExportTask {
126
126
  * @param {!Array<number>|string=} opt_crsTransform
127
127
  * @param {number=} opt_maxPixels
128
128
  * @param {number=} opt_shardSize
129
+ * @param {number=} opt_priority
129
130
  * @return {!ExportTask}
130
131
  * @export
131
132
  */
132
133
  Export.image.toAsset = function(
133
134
  image, opt_description, opt_assetId, opt_pyramidingPolicy, opt_dimensions,
134
135
  opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels,
135
- opt_shardSize,
136
- ) {
136
+ opt_shardSize, opt_priority) {
137
137
  const clientConfig =
138
138
  eeArguments.extractFromFunction(Export.image.toAsset, arguments);
139
139
  const serverConfig = Export.convertToServerParams(
@@ -158,6 +158,7 @@ Export.image.toAsset = function(
158
158
  * @param {boolean=} opt_skipEmptyTiles
159
159
  * @param {string=} opt_fileFormat
160
160
  * @param {?data.ImageExportFormatConfig=} opt_formatOptions
161
+ * @param {number=} opt_priority
161
162
  * @return {!ExportTask}
162
163
  * @export
163
164
  */
@@ -165,8 +166,7 @@ Export.image.toCloudStorage = function(
165
166
  image, opt_description, opt_bucket, opt_fileNamePrefix, opt_dimensions,
166
167
  opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels,
167
168
  opt_shardSize, opt_fileDimensions, opt_skipEmptyTiles, opt_fileFormat,
168
- opt_formatOptions,
169
- ) {
169
+ opt_formatOptions, opt_priority) {
170
170
  const clientConfig =
171
171
  eeArguments.extractFromFunction(Export.image.toCloudStorage, arguments);
172
172
  const serverConfig = Export.convertToServerParams(
@@ -191,6 +191,7 @@ Export.image.toCloudStorage = function(
191
191
  * @param {boolean=} opt_skipEmptyTiles
192
192
  * @param {string=} opt_fileFormat
193
193
  * @param {?data.ImageExportFormatConfig=} opt_formatOptions
194
+ * @param {number=} opt_priority
194
195
  * @return {!ExportTask}
195
196
  * @export
196
197
  */
@@ -198,8 +199,7 @@ Export.image.toDrive = function(
198
199
  image, opt_description, opt_folder, opt_fileNamePrefix, opt_dimensions,
199
200
  opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels,
200
201
  opt_shardSize, opt_fileDimensions, opt_skipEmptyTiles, opt_fileFormat,
201
- opt_formatOptions,
202
- ) {
202
+ opt_formatOptions, opt_priority) {
203
203
  const clientConfig =
204
204
  eeArguments.extractFromFunction(Export.image.toDrive, arguments);
205
205
  const serverConfig = Export.convertToServerParams(
@@ -222,14 +222,14 @@ Export.image.toDrive = function(
222
222
  * @param {boolean=} opt_skipEmptyTiles
223
223
  * @param {string=} opt_mapsApiKey
224
224
  * @param {?Array<string>=} opt_bucketCorsUris
225
+ * @param {number=} opt_priority
225
226
  * @return {!ExportTask}
226
227
  * @export
227
228
  */
228
229
  Export.map.toCloudStorage = function(
229
230
  image, opt_description, opt_bucket, opt_fileFormat, opt_path,
230
231
  opt_writePublicTiles, opt_scale, opt_maxZoom, opt_minZoom, opt_region,
231
- opt_skipEmptyTiles, opt_mapsApiKey, opt_bucketCorsUris,
232
- ) {
232
+ opt_skipEmptyTiles, opt_mapsApiKey, opt_bucketCorsUris, opt_priority) {
233
233
  const clientConfig =
234
234
  eeArguments.extractFromFunction(Export.map.toCloudStorage, arguments);
235
235
  const serverConfig = Export.convertToServerParams(
@@ -246,13 +246,13 @@ Export.map.toCloudStorage = function(
246
246
  * @param {string=} opt_fileFormat
247
247
  * @param {string|!Array<string>=} opt_selectors
248
248
  * @param {number=} opt_maxVertices
249
+ * @param {number=} opt_priority
249
250
  * @return {!ExportTask}
250
251
  * @export
251
252
  */
252
253
  Export.table.toCloudStorage = function(
253
254
  collection, opt_description, opt_bucket, opt_fileNamePrefix, opt_fileFormat,
254
- opt_selectors, opt_maxVertices,
255
- ) {
255
+ opt_selectors, opt_maxVertices, opt_priority) {
256
256
  const clientConfig =
257
257
  eeArguments.extractFromFunction(Export.table.toCloudStorage, arguments);
258
258
  const serverConfig = Export.convertToServerParams(
@@ -269,13 +269,13 @@ Export.table.toCloudStorage = function(
269
269
  * @param {string=} opt_fileFormat
270
270
  * @param {string|!Array<string>=} opt_selectors
271
271
  * @param {number=} opt_maxVertices
272
+ * @param {number=} opt_priority
272
273
  * @return {!ExportTask}
273
274
  * @export
274
275
  */
275
276
  Export.table.toDrive = function(
276
277
  collection, opt_description, opt_folder, opt_fileNamePrefix, opt_fileFormat,
277
- opt_selectors, opt_maxVertices,
278
- ) {
278
+ opt_selectors, opt_maxVertices, opt_priority) {
279
279
  const clientConfig =
280
280
  eeArguments.extractFromFunction(Export.table.toDrive, arguments);
281
281
  clientConfig['type'] = ExportType.TABLE;
@@ -290,12 +290,12 @@ Export.table.toDrive = function(
290
290
  * @param {string=} opt_description
291
291
  * @param {string=} opt_assetId
292
292
  * @param {number=} opt_maxVertices
293
+ * @param {number=} opt_priority
293
294
  * @return {!ExportTask}
294
295
  * @export
295
296
  */
296
297
  Export.table.toAsset = function(
297
- collection, opt_description, opt_assetId, opt_maxVertices,
298
- ) {
298
+ collection, opt_description, opt_assetId, opt_maxVertices, opt_priority) {
299
299
  const clientConfig =
300
300
  eeArguments.extractFromFunction(Export.table.toAsset, arguments);
301
301
  const serverConfig = Export.convertToServerParams(
@@ -312,13 +312,14 @@ Export.table.toAsset = function(
312
312
  * @param {string=} opt_thinningStrategy
313
313
  * @param {string|!Array<string>=} opt_thinningRanking
314
314
  * @param {string|!Array<string>=} opt_zOrderRanking
315
+ * @param {number=} opt_priority
315
316
  * @return {!ExportTask}
316
317
  * @export
317
318
  */
318
319
  Export.table.toFeatureView = function(
319
320
  collection, opt_description, opt_assetId, opt_maxFeaturesPerTile,
320
321
  opt_thinningStrategy, opt_thinningRanking, opt_zOrderRanking,
321
- ) {
322
+ opt_priority) {
322
323
  const clientConfig =
323
324
  eeArguments.extractFromFunction(Export.table.toFeatureView, arguments);
324
325
  const serverConfig = Export.convertToServerParams(
@@ -335,13 +336,13 @@ Export.table.toFeatureView = function(
335
336
  * @param {boolean=} opt_append
336
337
  * @param {string|!Array<string>=} opt_selectors
337
338
  * @param {number=} opt_maxVertices
339
+ * @param {number=} opt_priority
338
340
  * @return {!ExportTask}
339
341
  * @export
340
342
  */
341
343
  Export.table.toBigQuery = function(
342
344
  collection, opt_description, opt_table, opt_overwrite, opt_append,
343
- opt_selectors, opt_maxVertices,
344
- ) {
345
+ opt_selectors, opt_maxVertices, opt_priority) {
345
346
  const clientConfig =
346
347
  eeArguments.extractFromFunction(Export.table.toBigQuery, arguments);
347
348
  const serverConfig = Export.convertToServerParams(
@@ -363,14 +364,14 @@ Export.table.toBigQuery = function(
363
364
  * @param {!Array<number>|string=} opt_crsTransform
364
365
  * @param {number=} opt_maxPixels
365
366
  * @param {number=} opt_maxFrames
367
+ * @param {number=} opt_priority
366
368
  * @return {!ExportTask}
367
369
  * @export
368
370
  */
369
371
  Export.video.toCloudStorage = function(
370
372
  collection, opt_description, opt_bucket, opt_fileNamePrefix,
371
373
  opt_framesPerSecond, opt_dimensions, opt_region, opt_scale, opt_crs,
372
- opt_crsTransform, opt_maxPixels, opt_maxFrames,
373
- ) {
374
+ opt_crsTransform, opt_maxPixels, opt_maxFrames, opt_priority) {
374
375
  const clientConfig =
375
376
  eeArguments.extractFromFunction(Export.video.toCloudStorage, arguments);
376
377
  const serverConfig = Export.convertToServerParams(
@@ -392,14 +393,14 @@ Export.video.toCloudStorage = function(
392
393
  * @param {!Array<number>|string=} opt_crsTransform
393
394
  * @param {number=} opt_maxPixels
394
395
  * @param {number=} opt_maxFrames
396
+ * @param {number=} opt_priority
395
397
  * @return {!ExportTask}
396
398
  * @export
397
399
  */
398
400
  Export.video.toDrive = function(
399
401
  collection, opt_description, opt_folder, opt_fileNamePrefix,
400
402
  opt_framesPerSecond, opt_dimensions, opt_region, opt_scale, opt_crs,
401
- opt_crsTransform, opt_maxPixels, opt_maxFrames,
402
- ) {
403
+ opt_crsTransform, opt_maxPixels, opt_maxFrames, opt_priority) {
403
404
  const clientConfig =
404
405
  eeArguments.extractFromFunction(Export.video.toDrive, arguments);
405
406
  const serverConfig = Export.convertToServerParams(
@@ -411,11 +412,12 @@ Export.video.toDrive = function(
411
412
  * @param {!ComputedObject} classifier
412
413
  * @param {string=} opt_description
413
414
  * @param {string=} opt_assetId
415
+ * @param {number=} opt_priority
414
416
  * @return {!ExportTask}
415
417
  * @export
416
418
  */
417
- Export.classifier.toAsset = function(classifier, opt_description, opt_assetId,
418
- ) {
419
+ Export.classifier.toAsset = function(
420
+ classifier, opt_description, opt_assetId, opt_priority) {
419
421
  const clientConfig =
420
422
  eeArguments.extractFromFunction(Export.classifier.toAsset, arguments);
421
423
  const serverConfig = Export.convertToServerParams(
@@ -45,6 +45,7 @@ ee.rpc_convert_batch.taskToExportImageRequest = function(params) {
45
45
  // Int64s are encoded as strings.
46
46
  maxPixels: stringOrNull_(params['maxPixels']),
47
47
  requestId: stringOrNull_(params['id']),
48
+ priority: numberOrNull_(params['priority']),
48
49
  });
49
50
 
50
51
  const destination = ee.rpc_convert_batch.guessDestination_(params);
@@ -94,6 +95,7 @@ ee.rpc_convert_batch.taskToExportTableRequest = function(params) {
94
95
  maxErrorMeters: numberOrNull_(params['maxErrorMeters']),
95
96
  requestId: stringOrNull_(params['id']),
96
97
  maxVertices: numberOrNull_(params['maxVertices']),
98
+ priority: numberOrNull_(params['priority']),
97
99
  });
98
100
 
99
101
  const destination = ee.rpc_convert_batch.guessDestination_(params);
@@ -144,6 +146,7 @@ ee.rpc_convert_batch.taskToExportVideoRequest = function(params) {
144
146
  videoOptions: ee.rpc_convert_batch.buildVideoOptions_(params),
145
147
  fileExportOptions: null,
146
148
  requestId: stringOrNull_(params['id']),
149
+ priority: numberOrNull_(params['priority']),
147
150
  });
148
151
 
149
152
  const destination = ee.rpc_convert_batch.guessDestination_(params);
@@ -172,6 +175,7 @@ ee.rpc_convert_batch.taskToExportMapRequest = function(params) {
172
175
  // Only Export to cloud storage is allow currently.
173
176
  params, ee.rpc_convert_batch.ExportDestination.GCS),
174
177
  requestId: stringOrNull_(params['id']),
178
+ priority: numberOrNull_(params['priority']),
175
179
  });
176
180
  };
177
181
 
@@ -196,6 +200,7 @@ ee.rpc_convert_batch.taskToExportVideoMapRequest = function(params) {
196
200
  params, ee.rpc_convert_batch.ExportDestination.GCS),
197
201
  requestId: stringOrNull_(params['id']),
198
202
  version: stringOrNull_(params['version']),
203
+ priority: numberOrNull_(params['priority']),
199
204
  });
200
205
  };
201
206
 
@@ -222,6 +227,7 @@ ee.rpc_convert_batch.taskToExportClassifierRequest = function(params) {
222
227
  earthEngineDestination:
223
228
  ee.rpc_convert_batch.buildEarthEngineDestination_(params)
224
229
  }),
230
+ priority: numberOrNull_(params['priority']),
225
231
  });
226
232
  };
227
233