@google-cloud/pubsub 4.8.0 → 4.9.0
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/CHANGELOG.md +12 -0
- package/build/protos/google/pubsub/v1/pubsub.proto +57 -0
- package/build/protos/protos.d.ts +421 -0
- package/build/protos/protos.js +972 -0
- package/build/protos/protos.json +87 -0
- package/build/src/message-queues.d.ts +3 -0
- package/build/src/message-queues.js +1 -1
- package/build/src/message-queues.js.map +1 -1
- package/build/src/subscriber.d.ts +2 -1
- package/build/src/subscriber.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/@google-cloud/pubsub?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [4.9.0](https://github.com/googleapis/nodejs-pubsub/compare/v4.8.0...v4.9.0) (2024-11-12)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* Add IngestionFailureEvent to the external proto ([#1984](https://github.com/googleapis/nodejs-pubsub/issues/1984)) ([7075430](https://github.com/googleapis/nodejs-pubsub/commit/70754309fb600c54d0a573f2d49ad4c419577550))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* KiB, not MiB for ack size limits ([#1999](https://github.com/googleapis/nodejs-pubsub/issues/1999)) ([798270d](https://github.com/googleapis/nodejs-pubsub/commit/798270db9c5ef71f75c3e24e70d9592bbd068212))
|
|
18
|
+
|
|
7
19
|
## [4.8.0](https://github.com/googleapis/nodejs-pubsub/compare/v4.7.2...v4.8.0) (2024-10-15)
|
|
8
20
|
|
|
9
21
|
|
|
@@ -365,6 +365,63 @@ message PlatformLogsSettings {
|
|
|
365
365
|
Severity severity = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
+
// Payload of the Platform Log entry sent when a failure is encountered while
|
|
369
|
+
// ingesting.
|
|
370
|
+
message IngestionFailureEvent {
|
|
371
|
+
// Specifies the reason why some data may have been left out of
|
|
372
|
+
// the desired Pub/Sub message due to the API message limits
|
|
373
|
+
// (https://cloud.google.com/pubsub/quotas#resource_limits). For example,
|
|
374
|
+
// when the number of attributes is larger than 100, the number of
|
|
375
|
+
// attributes is truncated to 100 to respect the limit on the attribute count.
|
|
376
|
+
// Other attribute limits are treated similarly. When the size of the desired
|
|
377
|
+
// message would've been larger than 10MB, the message won't be published at
|
|
378
|
+
// all, and ingestion of the subsequent messages will proceed as normal.
|
|
379
|
+
message ApiViolationReason {}
|
|
380
|
+
|
|
381
|
+
// Set when an Avro file is unsupported or its format is not valid. When this
|
|
382
|
+
// occurs, one or more Avro objects won't be ingested.
|
|
383
|
+
message AvroFailureReason {}
|
|
384
|
+
|
|
385
|
+
// Failure when ingesting from a Cloud Storage source.
|
|
386
|
+
message CloudStorageFailure {
|
|
387
|
+
// Optional. Name of the Cloud Storage bucket used for ingestion.
|
|
388
|
+
string bucket = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
389
|
+
|
|
390
|
+
// Optional. Name of the Cloud Storage object which contained the section
|
|
391
|
+
// that couldn't be ingested.
|
|
392
|
+
string object_name = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
393
|
+
|
|
394
|
+
// Optional. Generation of the Cloud Storage object which contained the
|
|
395
|
+
// section that couldn't be ingested.
|
|
396
|
+
int64 object_generation = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
397
|
+
|
|
398
|
+
// Reason why ingestion failed for the specified object.
|
|
399
|
+
oneof reason {
|
|
400
|
+
// Optional. Failure encountered when parsing an Avro file.
|
|
401
|
+
AvroFailureReason avro_failure_reason = 5
|
|
402
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
403
|
+
|
|
404
|
+
// Optional. The Pub/Sub API limits prevented the desired message from
|
|
405
|
+
// being published.
|
|
406
|
+
ApiViolationReason api_violation_reason = 6
|
|
407
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// Required. Name of the import topic. Format is:
|
|
412
|
+
// projects/{project_name}/topics/{topic_name}.
|
|
413
|
+
string topic = 1 [(google.api.field_behavior) = REQUIRED];
|
|
414
|
+
|
|
415
|
+
// Required. Error details explaining why ingestion to Pub/Sub has failed.
|
|
416
|
+
string error_message = 2 [(google.api.field_behavior) = REQUIRED];
|
|
417
|
+
|
|
418
|
+
oneof failure {
|
|
419
|
+
// Optional. Failure when ingesting from Cloud Storage.
|
|
420
|
+
CloudStorageFailure cloud_storage_failure = 3
|
|
421
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
368
425
|
// A topic resource.
|
|
369
426
|
message Topic {
|
|
370
427
|
option (google.api.resource) = {
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -1241,6 +1241,427 @@ export namespace google {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
1244
|
+
/** Properties of an IngestionFailureEvent. */
|
|
1245
|
+
interface IIngestionFailureEvent {
|
|
1246
|
+
|
|
1247
|
+
/** IngestionFailureEvent topic */
|
|
1248
|
+
topic?: (string|null);
|
|
1249
|
+
|
|
1250
|
+
/** IngestionFailureEvent errorMessage */
|
|
1251
|
+
errorMessage?: (string|null);
|
|
1252
|
+
|
|
1253
|
+
/** IngestionFailureEvent cloudStorageFailure */
|
|
1254
|
+
cloudStorageFailure?: (google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure|null);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
/** Represents an IngestionFailureEvent. */
|
|
1258
|
+
class IngestionFailureEvent implements IIngestionFailureEvent {
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* Constructs a new IngestionFailureEvent.
|
|
1262
|
+
* @param [properties] Properties to set
|
|
1263
|
+
*/
|
|
1264
|
+
constructor(properties?: google.pubsub.v1.IIngestionFailureEvent);
|
|
1265
|
+
|
|
1266
|
+
/** IngestionFailureEvent topic. */
|
|
1267
|
+
public topic: string;
|
|
1268
|
+
|
|
1269
|
+
/** IngestionFailureEvent errorMessage. */
|
|
1270
|
+
public errorMessage: string;
|
|
1271
|
+
|
|
1272
|
+
/** IngestionFailureEvent cloudStorageFailure. */
|
|
1273
|
+
public cloudStorageFailure?: (google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure|null);
|
|
1274
|
+
|
|
1275
|
+
/** IngestionFailureEvent failure. */
|
|
1276
|
+
public failure?: "cloudStorageFailure";
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* Creates a new IngestionFailureEvent instance using the specified properties.
|
|
1280
|
+
* @param [properties] Properties to set
|
|
1281
|
+
* @returns IngestionFailureEvent instance
|
|
1282
|
+
*/
|
|
1283
|
+
public static create(properties?: google.pubsub.v1.IIngestionFailureEvent): google.pubsub.v1.IngestionFailureEvent;
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Encodes the specified IngestionFailureEvent message. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.verify|verify} messages.
|
|
1287
|
+
* @param message IngestionFailureEvent message or plain object to encode
|
|
1288
|
+
* @param [writer] Writer to encode to
|
|
1289
|
+
* @returns Writer
|
|
1290
|
+
*/
|
|
1291
|
+
public static encode(message: google.pubsub.v1.IIngestionFailureEvent, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* Encodes the specified IngestionFailureEvent message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.verify|verify} messages.
|
|
1295
|
+
* @param message IngestionFailureEvent message or plain object to encode
|
|
1296
|
+
* @param [writer] Writer to encode to
|
|
1297
|
+
* @returns Writer
|
|
1298
|
+
*/
|
|
1299
|
+
public static encodeDelimited(message: google.pubsub.v1.IIngestionFailureEvent, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* Decodes an IngestionFailureEvent message from the specified reader or buffer.
|
|
1303
|
+
* @param reader Reader or buffer to decode from
|
|
1304
|
+
* @param [length] Message length if known beforehand
|
|
1305
|
+
* @returns IngestionFailureEvent
|
|
1306
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1307
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1308
|
+
*/
|
|
1309
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.IngestionFailureEvent;
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* Decodes an IngestionFailureEvent message from the specified reader or buffer, length delimited.
|
|
1313
|
+
* @param reader Reader or buffer to decode from
|
|
1314
|
+
* @returns IngestionFailureEvent
|
|
1315
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1316
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1317
|
+
*/
|
|
1318
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.IngestionFailureEvent;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Verifies an IngestionFailureEvent message.
|
|
1322
|
+
* @param message Plain object to verify
|
|
1323
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1324
|
+
*/
|
|
1325
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* Creates an IngestionFailureEvent message from a plain object. Also converts values to their respective internal types.
|
|
1329
|
+
* @param object Plain object
|
|
1330
|
+
* @returns IngestionFailureEvent
|
|
1331
|
+
*/
|
|
1332
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.IngestionFailureEvent;
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* Creates a plain object from an IngestionFailureEvent message. Also converts values to other types if specified.
|
|
1336
|
+
* @param message IngestionFailureEvent
|
|
1337
|
+
* @param [options] Conversion options
|
|
1338
|
+
* @returns Plain object
|
|
1339
|
+
*/
|
|
1340
|
+
public static toObject(message: google.pubsub.v1.IngestionFailureEvent, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* Converts this IngestionFailureEvent to JSON.
|
|
1344
|
+
* @returns JSON object
|
|
1345
|
+
*/
|
|
1346
|
+
public toJSON(): { [k: string]: any };
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* Gets the default type url for IngestionFailureEvent
|
|
1350
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1351
|
+
* @returns The default type url
|
|
1352
|
+
*/
|
|
1353
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
namespace IngestionFailureEvent {
|
|
1357
|
+
|
|
1358
|
+
/** Properties of an ApiViolationReason. */
|
|
1359
|
+
interface IApiViolationReason {
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
/** Represents an ApiViolationReason. */
|
|
1363
|
+
class ApiViolationReason implements IApiViolationReason {
|
|
1364
|
+
|
|
1365
|
+
/**
|
|
1366
|
+
* Constructs a new ApiViolationReason.
|
|
1367
|
+
* @param [properties] Properties to set
|
|
1368
|
+
*/
|
|
1369
|
+
constructor(properties?: google.pubsub.v1.IngestionFailureEvent.IApiViolationReason);
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* Creates a new ApiViolationReason instance using the specified properties.
|
|
1373
|
+
* @param [properties] Properties to set
|
|
1374
|
+
* @returns ApiViolationReason instance
|
|
1375
|
+
*/
|
|
1376
|
+
public static create(properties?: google.pubsub.v1.IngestionFailureEvent.IApiViolationReason): google.pubsub.v1.IngestionFailureEvent.ApiViolationReason;
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* Encodes the specified ApiViolationReason message. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.verify|verify} messages.
|
|
1380
|
+
* @param message ApiViolationReason message or plain object to encode
|
|
1381
|
+
* @param [writer] Writer to encode to
|
|
1382
|
+
* @returns Writer
|
|
1383
|
+
*/
|
|
1384
|
+
public static encode(message: google.pubsub.v1.IngestionFailureEvent.IApiViolationReason, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* Encodes the specified ApiViolationReason message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.verify|verify} messages.
|
|
1388
|
+
* @param message ApiViolationReason message or plain object to encode
|
|
1389
|
+
* @param [writer] Writer to encode to
|
|
1390
|
+
* @returns Writer
|
|
1391
|
+
*/
|
|
1392
|
+
public static encodeDelimited(message: google.pubsub.v1.IngestionFailureEvent.IApiViolationReason, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* Decodes an ApiViolationReason message from the specified reader or buffer.
|
|
1396
|
+
* @param reader Reader or buffer to decode from
|
|
1397
|
+
* @param [length] Message length if known beforehand
|
|
1398
|
+
* @returns ApiViolationReason
|
|
1399
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1400
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1401
|
+
*/
|
|
1402
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.IngestionFailureEvent.ApiViolationReason;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Decodes an ApiViolationReason message from the specified reader or buffer, length delimited.
|
|
1406
|
+
* @param reader Reader or buffer to decode from
|
|
1407
|
+
* @returns ApiViolationReason
|
|
1408
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1409
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1410
|
+
*/
|
|
1411
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.IngestionFailureEvent.ApiViolationReason;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Verifies an ApiViolationReason message.
|
|
1415
|
+
* @param message Plain object to verify
|
|
1416
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1417
|
+
*/
|
|
1418
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Creates an ApiViolationReason message from a plain object. Also converts values to their respective internal types.
|
|
1422
|
+
* @param object Plain object
|
|
1423
|
+
* @returns ApiViolationReason
|
|
1424
|
+
*/
|
|
1425
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.IngestionFailureEvent.ApiViolationReason;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* Creates a plain object from an ApiViolationReason message. Also converts values to other types if specified.
|
|
1429
|
+
* @param message ApiViolationReason
|
|
1430
|
+
* @param [options] Conversion options
|
|
1431
|
+
* @returns Plain object
|
|
1432
|
+
*/
|
|
1433
|
+
public static toObject(message: google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* Converts this ApiViolationReason to JSON.
|
|
1437
|
+
* @returns JSON object
|
|
1438
|
+
*/
|
|
1439
|
+
public toJSON(): { [k: string]: any };
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* Gets the default type url for ApiViolationReason
|
|
1443
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1444
|
+
* @returns The default type url
|
|
1445
|
+
*/
|
|
1446
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
/** Properties of an AvroFailureReason. */
|
|
1450
|
+
interface IAvroFailureReason {
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
/** Represents an AvroFailureReason. */
|
|
1454
|
+
class AvroFailureReason implements IAvroFailureReason {
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* Constructs a new AvroFailureReason.
|
|
1458
|
+
* @param [properties] Properties to set
|
|
1459
|
+
*/
|
|
1460
|
+
constructor(properties?: google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason);
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Creates a new AvroFailureReason instance using the specified properties.
|
|
1464
|
+
* @param [properties] Properties to set
|
|
1465
|
+
* @returns AvroFailureReason instance
|
|
1466
|
+
*/
|
|
1467
|
+
public static create(properties?: google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason): google.pubsub.v1.IngestionFailureEvent.AvroFailureReason;
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* Encodes the specified AvroFailureReason message. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.verify|verify} messages.
|
|
1471
|
+
* @param message AvroFailureReason message or plain object to encode
|
|
1472
|
+
* @param [writer] Writer to encode to
|
|
1473
|
+
* @returns Writer
|
|
1474
|
+
*/
|
|
1475
|
+
public static encode(message: google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* Encodes the specified AvroFailureReason message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.verify|verify} messages.
|
|
1479
|
+
* @param message AvroFailureReason message or plain object to encode
|
|
1480
|
+
* @param [writer] Writer to encode to
|
|
1481
|
+
* @returns Writer
|
|
1482
|
+
*/
|
|
1483
|
+
public static encodeDelimited(message: google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* Decodes an AvroFailureReason message from the specified reader or buffer.
|
|
1487
|
+
* @param reader Reader or buffer to decode from
|
|
1488
|
+
* @param [length] Message length if known beforehand
|
|
1489
|
+
* @returns AvroFailureReason
|
|
1490
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1491
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1492
|
+
*/
|
|
1493
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.IngestionFailureEvent.AvroFailureReason;
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Decodes an AvroFailureReason message from the specified reader or buffer, length delimited.
|
|
1497
|
+
* @param reader Reader or buffer to decode from
|
|
1498
|
+
* @returns AvroFailureReason
|
|
1499
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1500
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1501
|
+
*/
|
|
1502
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.IngestionFailureEvent.AvroFailureReason;
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* Verifies an AvroFailureReason message.
|
|
1506
|
+
* @param message Plain object to verify
|
|
1507
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1508
|
+
*/
|
|
1509
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Creates an AvroFailureReason message from a plain object. Also converts values to their respective internal types.
|
|
1513
|
+
* @param object Plain object
|
|
1514
|
+
* @returns AvroFailureReason
|
|
1515
|
+
*/
|
|
1516
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.IngestionFailureEvent.AvroFailureReason;
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* Creates a plain object from an AvroFailureReason message. Also converts values to other types if specified.
|
|
1520
|
+
* @param message AvroFailureReason
|
|
1521
|
+
* @param [options] Conversion options
|
|
1522
|
+
* @returns Plain object
|
|
1523
|
+
*/
|
|
1524
|
+
public static toObject(message: google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* Converts this AvroFailureReason to JSON.
|
|
1528
|
+
* @returns JSON object
|
|
1529
|
+
*/
|
|
1530
|
+
public toJSON(): { [k: string]: any };
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Gets the default type url for AvroFailureReason
|
|
1534
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1535
|
+
* @returns The default type url
|
|
1536
|
+
*/
|
|
1537
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
/** Properties of a CloudStorageFailure. */
|
|
1541
|
+
interface ICloudStorageFailure {
|
|
1542
|
+
|
|
1543
|
+
/** CloudStorageFailure bucket */
|
|
1544
|
+
bucket?: (string|null);
|
|
1545
|
+
|
|
1546
|
+
/** CloudStorageFailure objectName */
|
|
1547
|
+
objectName?: (string|null);
|
|
1548
|
+
|
|
1549
|
+
/** CloudStorageFailure objectGeneration */
|
|
1550
|
+
objectGeneration?: (number|Long|string|null);
|
|
1551
|
+
|
|
1552
|
+
/** CloudStorageFailure avroFailureReason */
|
|
1553
|
+
avroFailureReason?: (google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason|null);
|
|
1554
|
+
|
|
1555
|
+
/** CloudStorageFailure apiViolationReason */
|
|
1556
|
+
apiViolationReason?: (google.pubsub.v1.IngestionFailureEvent.IApiViolationReason|null);
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
/** Represents a CloudStorageFailure. */
|
|
1560
|
+
class CloudStorageFailure implements ICloudStorageFailure {
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* Constructs a new CloudStorageFailure.
|
|
1564
|
+
* @param [properties] Properties to set
|
|
1565
|
+
*/
|
|
1566
|
+
constructor(properties?: google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure);
|
|
1567
|
+
|
|
1568
|
+
/** CloudStorageFailure bucket. */
|
|
1569
|
+
public bucket: string;
|
|
1570
|
+
|
|
1571
|
+
/** CloudStorageFailure objectName. */
|
|
1572
|
+
public objectName: string;
|
|
1573
|
+
|
|
1574
|
+
/** CloudStorageFailure objectGeneration. */
|
|
1575
|
+
public objectGeneration: (number|Long|string);
|
|
1576
|
+
|
|
1577
|
+
/** CloudStorageFailure avroFailureReason. */
|
|
1578
|
+
public avroFailureReason?: (google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason|null);
|
|
1579
|
+
|
|
1580
|
+
/** CloudStorageFailure apiViolationReason. */
|
|
1581
|
+
public apiViolationReason?: (google.pubsub.v1.IngestionFailureEvent.IApiViolationReason|null);
|
|
1582
|
+
|
|
1583
|
+
/** CloudStorageFailure reason. */
|
|
1584
|
+
public reason?: ("avroFailureReason"|"apiViolationReason");
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* Creates a new CloudStorageFailure instance using the specified properties.
|
|
1588
|
+
* @param [properties] Properties to set
|
|
1589
|
+
* @returns CloudStorageFailure instance
|
|
1590
|
+
*/
|
|
1591
|
+
public static create(properties?: google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure): google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure;
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* Encodes the specified CloudStorageFailure message. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.verify|verify} messages.
|
|
1595
|
+
* @param message CloudStorageFailure message or plain object to encode
|
|
1596
|
+
* @param [writer] Writer to encode to
|
|
1597
|
+
* @returns Writer
|
|
1598
|
+
*/
|
|
1599
|
+
public static encode(message: google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* Encodes the specified CloudStorageFailure message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.verify|verify} messages.
|
|
1603
|
+
* @param message CloudStorageFailure message or plain object to encode
|
|
1604
|
+
* @param [writer] Writer to encode to
|
|
1605
|
+
* @returns Writer
|
|
1606
|
+
*/
|
|
1607
|
+
public static encodeDelimited(message: google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* Decodes a CloudStorageFailure message from the specified reader or buffer.
|
|
1611
|
+
* @param reader Reader or buffer to decode from
|
|
1612
|
+
* @param [length] Message length if known beforehand
|
|
1613
|
+
* @returns CloudStorageFailure
|
|
1614
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1615
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1616
|
+
*/
|
|
1617
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure;
|
|
1618
|
+
|
|
1619
|
+
/**
|
|
1620
|
+
* Decodes a CloudStorageFailure message from the specified reader or buffer, length delimited.
|
|
1621
|
+
* @param reader Reader or buffer to decode from
|
|
1622
|
+
* @returns CloudStorageFailure
|
|
1623
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1624
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1625
|
+
*/
|
|
1626
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure;
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* Verifies a CloudStorageFailure message.
|
|
1630
|
+
* @param message Plain object to verify
|
|
1631
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1632
|
+
*/
|
|
1633
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* Creates a CloudStorageFailure message from a plain object. Also converts values to their respective internal types.
|
|
1637
|
+
* @param object Plain object
|
|
1638
|
+
* @returns CloudStorageFailure
|
|
1639
|
+
*/
|
|
1640
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure;
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* Creates a plain object from a CloudStorageFailure message. Also converts values to other types if specified.
|
|
1644
|
+
* @param message CloudStorageFailure
|
|
1645
|
+
* @param [options] Conversion options
|
|
1646
|
+
* @returns Plain object
|
|
1647
|
+
*/
|
|
1648
|
+
public static toObject(message: google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* Converts this CloudStorageFailure to JSON.
|
|
1652
|
+
* @returns JSON object
|
|
1653
|
+
*/
|
|
1654
|
+
public toJSON(): { [k: string]: any };
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* Gets the default type url for CloudStorageFailure
|
|
1658
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1659
|
+
* @returns The default type url
|
|
1660
|
+
*/
|
|
1661
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1244
1665
|
/** Properties of a Topic. */
|
|
1245
1666
|
interface ITopic {
|
|
1246
1667
|
|