@google-cloud/pubsub 4.7.2 → 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 +20 -0
- package/README.md +4 -2
- package/build/protos/google/pubsub/v1/pubsub.proto +198 -1
- package/build/protos/protos.d.ts +1081 -1
- package/build/protos/protos.js +2675 -97
- package/build/protos/protos.json +250 -1
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +2 -1
- package/build/src/index.js.map +1 -1
- 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/message-stream.js +3 -2
- package/build/src/message-stream.js.map +1 -1
- package/build/src/subscriber.d.ts +3 -2
- package/build/src/subscriber.js +3 -1
- package/build/src/subscriber.js.map +1 -1
- package/build/src/v1/subscriber_client.d.ts +4 -1
- package/build/src/v1/subscriber_client.js.map +1 -1
- package/package.json +9 -5
package/build/protos/protos.js
CHANGED
|
@@ -936,6 +936,8 @@
|
|
|
936
936
|
* @memberof google.pubsub.v1
|
|
937
937
|
* @interface IIngestionDataSourceSettings
|
|
938
938
|
* @property {google.pubsub.v1.IngestionDataSourceSettings.IAwsKinesis|null} [awsKinesis] IngestionDataSourceSettings awsKinesis
|
|
939
|
+
* @property {google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage|null} [cloudStorage] IngestionDataSourceSettings cloudStorage
|
|
940
|
+
* @property {google.pubsub.v1.IPlatformLogsSettings|null} [platformLogsSettings] IngestionDataSourceSettings platformLogsSettings
|
|
939
941
|
*/
|
|
940
942
|
|
|
941
943
|
/**
|
|
@@ -961,17 +963,33 @@
|
|
|
961
963
|
*/
|
|
962
964
|
IngestionDataSourceSettings.prototype.awsKinesis = null;
|
|
963
965
|
|
|
966
|
+
/**
|
|
967
|
+
* IngestionDataSourceSettings cloudStorage.
|
|
968
|
+
* @member {google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage|null|undefined} cloudStorage
|
|
969
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
970
|
+
* @instance
|
|
971
|
+
*/
|
|
972
|
+
IngestionDataSourceSettings.prototype.cloudStorage = null;
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* IngestionDataSourceSettings platformLogsSettings.
|
|
976
|
+
* @member {google.pubsub.v1.IPlatformLogsSettings|null|undefined} platformLogsSettings
|
|
977
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
978
|
+
* @instance
|
|
979
|
+
*/
|
|
980
|
+
IngestionDataSourceSettings.prototype.platformLogsSettings = null;
|
|
981
|
+
|
|
964
982
|
// OneOf field names bound to virtual getters and setters
|
|
965
983
|
var $oneOfFields;
|
|
966
984
|
|
|
967
985
|
/**
|
|
968
986
|
* IngestionDataSourceSettings source.
|
|
969
|
-
* @member {"awsKinesis"|undefined} source
|
|
987
|
+
* @member {"awsKinesis"|"cloudStorage"|undefined} source
|
|
970
988
|
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
971
989
|
* @instance
|
|
972
990
|
*/
|
|
973
991
|
Object.defineProperty(IngestionDataSourceSettings.prototype, "source", {
|
|
974
|
-
get: $util.oneOfGetter($oneOfFields = ["awsKinesis"]),
|
|
992
|
+
get: $util.oneOfGetter($oneOfFields = ["awsKinesis", "cloudStorage"]),
|
|
975
993
|
set: $util.oneOfSetter($oneOfFields)
|
|
976
994
|
});
|
|
977
995
|
|
|
@@ -1001,6 +1019,10 @@
|
|
|
1001
1019
|
writer = $Writer.create();
|
|
1002
1020
|
if (message.awsKinesis != null && Object.hasOwnProperty.call(message, "awsKinesis"))
|
|
1003
1021
|
$root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.encode(message.awsKinesis, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
1022
|
+
if (message.cloudStorage != null && Object.hasOwnProperty.call(message, "cloudStorage"))
|
|
1023
|
+
$root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.encode(message.cloudStorage, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
1024
|
+
if (message.platformLogsSettings != null && Object.hasOwnProperty.call(message, "platformLogsSettings"))
|
|
1025
|
+
$root.google.pubsub.v1.PlatformLogsSettings.encode(message.platformLogsSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
1004
1026
|
return writer;
|
|
1005
1027
|
};
|
|
1006
1028
|
|
|
@@ -1039,6 +1061,14 @@
|
|
|
1039
1061
|
message.awsKinesis = $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.decode(reader, reader.uint32());
|
|
1040
1062
|
break;
|
|
1041
1063
|
}
|
|
1064
|
+
case 2: {
|
|
1065
|
+
message.cloudStorage = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.decode(reader, reader.uint32());
|
|
1066
|
+
break;
|
|
1067
|
+
}
|
|
1068
|
+
case 4: {
|
|
1069
|
+
message.platformLogsSettings = $root.google.pubsub.v1.PlatformLogsSettings.decode(reader, reader.uint32());
|
|
1070
|
+
break;
|
|
1071
|
+
}
|
|
1042
1072
|
default:
|
|
1043
1073
|
reader.skipType(tag & 7);
|
|
1044
1074
|
break;
|
|
@@ -1083,6 +1113,21 @@
|
|
|
1083
1113
|
return "awsKinesis." + error;
|
|
1084
1114
|
}
|
|
1085
1115
|
}
|
|
1116
|
+
if (message.cloudStorage != null && message.hasOwnProperty("cloudStorage")) {
|
|
1117
|
+
if (properties.source === 1)
|
|
1118
|
+
return "source: multiple values";
|
|
1119
|
+
properties.source = 1;
|
|
1120
|
+
{
|
|
1121
|
+
var error = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.verify(message.cloudStorage);
|
|
1122
|
+
if (error)
|
|
1123
|
+
return "cloudStorage." + error;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
if (message.platformLogsSettings != null && message.hasOwnProperty("platformLogsSettings")) {
|
|
1127
|
+
var error = $root.google.pubsub.v1.PlatformLogsSettings.verify(message.platformLogsSettings);
|
|
1128
|
+
if (error)
|
|
1129
|
+
return "platformLogsSettings." + error;
|
|
1130
|
+
}
|
|
1086
1131
|
return null;
|
|
1087
1132
|
};
|
|
1088
1133
|
|
|
@@ -1103,6 +1148,16 @@
|
|
|
1103
1148
|
throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.awsKinesis: object expected");
|
|
1104
1149
|
message.awsKinesis = $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.fromObject(object.awsKinesis);
|
|
1105
1150
|
}
|
|
1151
|
+
if (object.cloudStorage != null) {
|
|
1152
|
+
if (typeof object.cloudStorage !== "object")
|
|
1153
|
+
throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.cloudStorage: object expected");
|
|
1154
|
+
message.cloudStorage = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.fromObject(object.cloudStorage);
|
|
1155
|
+
}
|
|
1156
|
+
if (object.platformLogsSettings != null) {
|
|
1157
|
+
if (typeof object.platformLogsSettings !== "object")
|
|
1158
|
+
throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.platformLogsSettings: object expected");
|
|
1159
|
+
message.platformLogsSettings = $root.google.pubsub.v1.PlatformLogsSettings.fromObject(object.platformLogsSettings);
|
|
1160
|
+
}
|
|
1106
1161
|
return message;
|
|
1107
1162
|
};
|
|
1108
1163
|
|
|
@@ -1119,11 +1174,20 @@
|
|
|
1119
1174
|
if (!options)
|
|
1120
1175
|
options = {};
|
|
1121
1176
|
var object = {};
|
|
1177
|
+
if (options.defaults)
|
|
1178
|
+
object.platformLogsSettings = null;
|
|
1122
1179
|
if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) {
|
|
1123
1180
|
object.awsKinesis = $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.toObject(message.awsKinesis, options);
|
|
1124
1181
|
if (options.oneofs)
|
|
1125
1182
|
object.source = "awsKinesis";
|
|
1126
1183
|
}
|
|
1184
|
+
if (message.cloudStorage != null && message.hasOwnProperty("cloudStorage")) {
|
|
1185
|
+
object.cloudStorage = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.toObject(message.cloudStorage, options);
|
|
1186
|
+
if (options.oneofs)
|
|
1187
|
+
object.source = "cloudStorage";
|
|
1188
|
+
}
|
|
1189
|
+
if (message.platformLogsSettings != null && message.hasOwnProperty("platformLogsSettings"))
|
|
1190
|
+
object.platformLogsSettings = $root.google.pubsub.v1.PlatformLogsSettings.toObject(message.platformLogsSettings, options);
|
|
1127
1191
|
return object;
|
|
1128
1192
|
};
|
|
1129
1193
|
|
|
@@ -1372,145 +1436,2404 @@
|
|
|
1372
1436
|
};
|
|
1373
1437
|
|
|
1374
1438
|
/**
|
|
1375
|
-
* Creates an AwsKinesis message from a plain object. Also converts values to their respective internal types.
|
|
1439
|
+
* Creates an AwsKinesis message from a plain object. Also converts values to their respective internal types.
|
|
1440
|
+
* @function fromObject
|
|
1441
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1442
|
+
* @static
|
|
1443
|
+
* @param {Object.<string,*>} object Plain object
|
|
1444
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} AwsKinesis
|
|
1445
|
+
*/
|
|
1446
|
+
AwsKinesis.fromObject = function fromObject(object) {
|
|
1447
|
+
if (object instanceof $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis)
|
|
1448
|
+
return object;
|
|
1449
|
+
var message = new $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis();
|
|
1450
|
+
switch (object.state) {
|
|
1451
|
+
default:
|
|
1452
|
+
if (typeof object.state === "number") {
|
|
1453
|
+
message.state = object.state;
|
|
1454
|
+
break;
|
|
1455
|
+
}
|
|
1456
|
+
break;
|
|
1457
|
+
case "STATE_UNSPECIFIED":
|
|
1458
|
+
case 0:
|
|
1459
|
+
message.state = 0;
|
|
1460
|
+
break;
|
|
1461
|
+
case "ACTIVE":
|
|
1462
|
+
case 1:
|
|
1463
|
+
message.state = 1;
|
|
1464
|
+
break;
|
|
1465
|
+
case "KINESIS_PERMISSION_DENIED":
|
|
1466
|
+
case 2:
|
|
1467
|
+
message.state = 2;
|
|
1468
|
+
break;
|
|
1469
|
+
case "PUBLISH_PERMISSION_DENIED":
|
|
1470
|
+
case 3:
|
|
1471
|
+
message.state = 3;
|
|
1472
|
+
break;
|
|
1473
|
+
case "STREAM_NOT_FOUND":
|
|
1474
|
+
case 4:
|
|
1475
|
+
message.state = 4;
|
|
1476
|
+
break;
|
|
1477
|
+
case "CONSUMER_NOT_FOUND":
|
|
1478
|
+
case 5:
|
|
1479
|
+
message.state = 5;
|
|
1480
|
+
break;
|
|
1481
|
+
}
|
|
1482
|
+
if (object.streamArn != null)
|
|
1483
|
+
message.streamArn = String(object.streamArn);
|
|
1484
|
+
if (object.consumerArn != null)
|
|
1485
|
+
message.consumerArn = String(object.consumerArn);
|
|
1486
|
+
if (object.awsRoleArn != null)
|
|
1487
|
+
message.awsRoleArn = String(object.awsRoleArn);
|
|
1488
|
+
if (object.gcpServiceAccount != null)
|
|
1489
|
+
message.gcpServiceAccount = String(object.gcpServiceAccount);
|
|
1490
|
+
return message;
|
|
1491
|
+
};
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* Creates a plain object from an AwsKinesis message. Also converts values to other types if specified.
|
|
1495
|
+
* @function toObject
|
|
1496
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1497
|
+
* @static
|
|
1498
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} message AwsKinesis
|
|
1499
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1500
|
+
* @returns {Object.<string,*>} Plain object
|
|
1501
|
+
*/
|
|
1502
|
+
AwsKinesis.toObject = function toObject(message, options) {
|
|
1503
|
+
if (!options)
|
|
1504
|
+
options = {};
|
|
1505
|
+
var object = {};
|
|
1506
|
+
if (options.defaults) {
|
|
1507
|
+
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
1508
|
+
object.streamArn = "";
|
|
1509
|
+
object.consumerArn = "";
|
|
1510
|
+
object.awsRoleArn = "";
|
|
1511
|
+
object.gcpServiceAccount = "";
|
|
1512
|
+
}
|
|
1513
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
1514
|
+
object.state = options.enums === String ? $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State[message.state] === undefined ? message.state : $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State[message.state] : message.state;
|
|
1515
|
+
if (message.streamArn != null && message.hasOwnProperty("streamArn"))
|
|
1516
|
+
object.streamArn = message.streamArn;
|
|
1517
|
+
if (message.consumerArn != null && message.hasOwnProperty("consumerArn"))
|
|
1518
|
+
object.consumerArn = message.consumerArn;
|
|
1519
|
+
if (message.awsRoleArn != null && message.hasOwnProperty("awsRoleArn"))
|
|
1520
|
+
object.awsRoleArn = message.awsRoleArn;
|
|
1521
|
+
if (message.gcpServiceAccount != null && message.hasOwnProperty("gcpServiceAccount"))
|
|
1522
|
+
object.gcpServiceAccount = message.gcpServiceAccount;
|
|
1523
|
+
return object;
|
|
1524
|
+
};
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* Converts this AwsKinesis to JSON.
|
|
1528
|
+
* @function toJSON
|
|
1529
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1530
|
+
* @instance
|
|
1531
|
+
* @returns {Object.<string,*>} JSON object
|
|
1532
|
+
*/
|
|
1533
|
+
AwsKinesis.prototype.toJSON = function toJSON() {
|
|
1534
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Gets the default type url for AwsKinesis
|
|
1539
|
+
* @function getTypeUrl
|
|
1540
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
|
|
1541
|
+
* @static
|
|
1542
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1543
|
+
* @returns {string} The default type url
|
|
1544
|
+
*/
|
|
1545
|
+
AwsKinesis.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1546
|
+
if (typeUrlPrefix === undefined) {
|
|
1547
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1548
|
+
}
|
|
1549
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis";
|
|
1550
|
+
};
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
* State enum.
|
|
1554
|
+
* @name google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State
|
|
1555
|
+
* @enum {number}
|
|
1556
|
+
* @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
|
|
1557
|
+
* @property {number} ACTIVE=1 ACTIVE value
|
|
1558
|
+
* @property {number} KINESIS_PERMISSION_DENIED=2 KINESIS_PERMISSION_DENIED value
|
|
1559
|
+
* @property {number} PUBLISH_PERMISSION_DENIED=3 PUBLISH_PERMISSION_DENIED value
|
|
1560
|
+
* @property {number} STREAM_NOT_FOUND=4 STREAM_NOT_FOUND value
|
|
1561
|
+
* @property {number} CONSUMER_NOT_FOUND=5 CONSUMER_NOT_FOUND value
|
|
1562
|
+
*/
|
|
1563
|
+
AwsKinesis.State = (function() {
|
|
1564
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
1565
|
+
values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
|
|
1566
|
+
values[valuesById[1] = "ACTIVE"] = 1;
|
|
1567
|
+
values[valuesById[2] = "KINESIS_PERMISSION_DENIED"] = 2;
|
|
1568
|
+
values[valuesById[3] = "PUBLISH_PERMISSION_DENIED"] = 3;
|
|
1569
|
+
values[valuesById[4] = "STREAM_NOT_FOUND"] = 4;
|
|
1570
|
+
values[valuesById[5] = "CONSUMER_NOT_FOUND"] = 5;
|
|
1571
|
+
return values;
|
|
1572
|
+
})();
|
|
1573
|
+
|
|
1574
|
+
return AwsKinesis;
|
|
1575
|
+
})();
|
|
1576
|
+
|
|
1577
|
+
IngestionDataSourceSettings.CloudStorage = (function() {
|
|
1578
|
+
|
|
1579
|
+
/**
|
|
1580
|
+
* Properties of a CloudStorage.
|
|
1581
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1582
|
+
* @interface ICloudStorage
|
|
1583
|
+
* @property {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State|null} [state] CloudStorage state
|
|
1584
|
+
* @property {string|null} [bucket] CloudStorage bucket
|
|
1585
|
+
* @property {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat|null} [textFormat] CloudStorage textFormat
|
|
1586
|
+
* @property {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat|null} [avroFormat] CloudStorage avroFormat
|
|
1587
|
+
* @property {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat|null} [pubsubAvroFormat] CloudStorage pubsubAvroFormat
|
|
1588
|
+
* @property {google.protobuf.ITimestamp|null} [minimumObjectCreateTime] CloudStorage minimumObjectCreateTime
|
|
1589
|
+
* @property {string|null} [matchGlob] CloudStorage matchGlob
|
|
1590
|
+
*/
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Constructs a new CloudStorage.
|
|
1594
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings
|
|
1595
|
+
* @classdesc Represents a CloudStorage.
|
|
1596
|
+
* @implements ICloudStorage
|
|
1597
|
+
* @constructor
|
|
1598
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage=} [properties] Properties to set
|
|
1599
|
+
*/
|
|
1600
|
+
function CloudStorage(properties) {
|
|
1601
|
+
if (properties)
|
|
1602
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1603
|
+
if (properties[keys[i]] != null)
|
|
1604
|
+
this[keys[i]] = properties[keys[i]];
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* CloudStorage state.
|
|
1609
|
+
* @member {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State} state
|
|
1610
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1611
|
+
* @instance
|
|
1612
|
+
*/
|
|
1613
|
+
CloudStorage.prototype.state = 0;
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* CloudStorage bucket.
|
|
1617
|
+
* @member {string} bucket
|
|
1618
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1619
|
+
* @instance
|
|
1620
|
+
*/
|
|
1621
|
+
CloudStorage.prototype.bucket = "";
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* CloudStorage textFormat.
|
|
1625
|
+
* @member {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat|null|undefined} textFormat
|
|
1626
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1627
|
+
* @instance
|
|
1628
|
+
*/
|
|
1629
|
+
CloudStorage.prototype.textFormat = null;
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* CloudStorage avroFormat.
|
|
1633
|
+
* @member {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat|null|undefined} avroFormat
|
|
1634
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1635
|
+
* @instance
|
|
1636
|
+
*/
|
|
1637
|
+
CloudStorage.prototype.avroFormat = null;
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* CloudStorage pubsubAvroFormat.
|
|
1641
|
+
* @member {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat|null|undefined} pubsubAvroFormat
|
|
1642
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1643
|
+
* @instance
|
|
1644
|
+
*/
|
|
1645
|
+
CloudStorage.prototype.pubsubAvroFormat = null;
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* CloudStorage minimumObjectCreateTime.
|
|
1649
|
+
* @member {google.protobuf.ITimestamp|null|undefined} minimumObjectCreateTime
|
|
1650
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1651
|
+
* @instance
|
|
1652
|
+
*/
|
|
1653
|
+
CloudStorage.prototype.minimumObjectCreateTime = null;
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* CloudStorage matchGlob.
|
|
1657
|
+
* @member {string} matchGlob
|
|
1658
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1659
|
+
* @instance
|
|
1660
|
+
*/
|
|
1661
|
+
CloudStorage.prototype.matchGlob = "";
|
|
1662
|
+
|
|
1663
|
+
// OneOf field names bound to virtual getters and setters
|
|
1664
|
+
var $oneOfFields;
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* CloudStorage inputFormat.
|
|
1668
|
+
* @member {"textFormat"|"avroFormat"|"pubsubAvroFormat"|undefined} inputFormat
|
|
1669
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1670
|
+
* @instance
|
|
1671
|
+
*/
|
|
1672
|
+
Object.defineProperty(CloudStorage.prototype, "inputFormat", {
|
|
1673
|
+
get: $util.oneOfGetter($oneOfFields = ["textFormat", "avroFormat", "pubsubAvroFormat"]),
|
|
1674
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1675
|
+
});
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* Creates a new CloudStorage instance using the specified properties.
|
|
1679
|
+
* @function create
|
|
1680
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1681
|
+
* @static
|
|
1682
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage=} [properties] Properties to set
|
|
1683
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage} CloudStorage instance
|
|
1684
|
+
*/
|
|
1685
|
+
CloudStorage.create = function create(properties) {
|
|
1686
|
+
return new CloudStorage(properties);
|
|
1687
|
+
};
|
|
1688
|
+
|
|
1689
|
+
/**
|
|
1690
|
+
* Encodes the specified CloudStorage message. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.verify|verify} messages.
|
|
1691
|
+
* @function encode
|
|
1692
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1693
|
+
* @static
|
|
1694
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage} message CloudStorage message or plain object to encode
|
|
1695
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1696
|
+
* @returns {$protobuf.Writer} Writer
|
|
1697
|
+
*/
|
|
1698
|
+
CloudStorage.encode = function encode(message, writer) {
|
|
1699
|
+
if (!writer)
|
|
1700
|
+
writer = $Writer.create();
|
|
1701
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
1702
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state);
|
|
1703
|
+
if (message.bucket != null && Object.hasOwnProperty.call(message, "bucket"))
|
|
1704
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.bucket);
|
|
1705
|
+
if (message.textFormat != null && Object.hasOwnProperty.call(message, "textFormat"))
|
|
1706
|
+
$root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.encode(message.textFormat, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
1707
|
+
if (message.avroFormat != null && Object.hasOwnProperty.call(message, "avroFormat"))
|
|
1708
|
+
$root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.encode(message.avroFormat, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
1709
|
+
if (message.pubsubAvroFormat != null && Object.hasOwnProperty.call(message, "pubsubAvroFormat"))
|
|
1710
|
+
$root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.encode(message.pubsubAvroFormat, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
1711
|
+
if (message.minimumObjectCreateTime != null && Object.hasOwnProperty.call(message, "minimumObjectCreateTime"))
|
|
1712
|
+
$root.google.protobuf.Timestamp.encode(message.minimumObjectCreateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
1713
|
+
if (message.matchGlob != null && Object.hasOwnProperty.call(message, "matchGlob"))
|
|
1714
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.matchGlob);
|
|
1715
|
+
return writer;
|
|
1716
|
+
};
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* Encodes the specified CloudStorage message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.verify|verify} messages.
|
|
1720
|
+
* @function encodeDelimited
|
|
1721
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1722
|
+
* @static
|
|
1723
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage} message CloudStorage message or plain object to encode
|
|
1724
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1725
|
+
* @returns {$protobuf.Writer} Writer
|
|
1726
|
+
*/
|
|
1727
|
+
CloudStorage.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1728
|
+
return this.encode(message, writer).ldelim();
|
|
1729
|
+
};
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* Decodes a CloudStorage message from the specified reader or buffer.
|
|
1733
|
+
* @function decode
|
|
1734
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1735
|
+
* @static
|
|
1736
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1737
|
+
* @param {number} [length] Message length if known beforehand
|
|
1738
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage} CloudStorage
|
|
1739
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1740
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1741
|
+
*/
|
|
1742
|
+
CloudStorage.decode = function decode(reader, length) {
|
|
1743
|
+
if (!(reader instanceof $Reader))
|
|
1744
|
+
reader = $Reader.create(reader);
|
|
1745
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage();
|
|
1746
|
+
while (reader.pos < end) {
|
|
1747
|
+
var tag = reader.uint32();
|
|
1748
|
+
switch (tag >>> 3) {
|
|
1749
|
+
case 1: {
|
|
1750
|
+
message.state = reader.int32();
|
|
1751
|
+
break;
|
|
1752
|
+
}
|
|
1753
|
+
case 2: {
|
|
1754
|
+
message.bucket = reader.string();
|
|
1755
|
+
break;
|
|
1756
|
+
}
|
|
1757
|
+
case 3: {
|
|
1758
|
+
message.textFormat = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.decode(reader, reader.uint32());
|
|
1759
|
+
break;
|
|
1760
|
+
}
|
|
1761
|
+
case 4: {
|
|
1762
|
+
message.avroFormat = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.decode(reader, reader.uint32());
|
|
1763
|
+
break;
|
|
1764
|
+
}
|
|
1765
|
+
case 5: {
|
|
1766
|
+
message.pubsubAvroFormat = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.decode(reader, reader.uint32());
|
|
1767
|
+
break;
|
|
1768
|
+
}
|
|
1769
|
+
case 6: {
|
|
1770
|
+
message.minimumObjectCreateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
1771
|
+
break;
|
|
1772
|
+
}
|
|
1773
|
+
case 9: {
|
|
1774
|
+
message.matchGlob = reader.string();
|
|
1775
|
+
break;
|
|
1776
|
+
}
|
|
1777
|
+
default:
|
|
1778
|
+
reader.skipType(tag & 7);
|
|
1779
|
+
break;
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
return message;
|
|
1783
|
+
};
|
|
1784
|
+
|
|
1785
|
+
/**
|
|
1786
|
+
* Decodes a CloudStorage message from the specified reader or buffer, length delimited.
|
|
1787
|
+
* @function decodeDelimited
|
|
1788
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1789
|
+
* @static
|
|
1790
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1791
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage} CloudStorage
|
|
1792
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1793
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1794
|
+
*/
|
|
1795
|
+
CloudStorage.decodeDelimited = function decodeDelimited(reader) {
|
|
1796
|
+
if (!(reader instanceof $Reader))
|
|
1797
|
+
reader = new $Reader(reader);
|
|
1798
|
+
return this.decode(reader, reader.uint32());
|
|
1799
|
+
};
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* Verifies a CloudStorage message.
|
|
1803
|
+
* @function verify
|
|
1804
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1805
|
+
* @static
|
|
1806
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1807
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1808
|
+
*/
|
|
1809
|
+
CloudStorage.verify = function verify(message) {
|
|
1810
|
+
if (typeof message !== "object" || message === null)
|
|
1811
|
+
return "object expected";
|
|
1812
|
+
var properties = {};
|
|
1813
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
1814
|
+
switch (message.state) {
|
|
1815
|
+
default:
|
|
1816
|
+
return "state: enum value expected";
|
|
1817
|
+
case 0:
|
|
1818
|
+
case 1:
|
|
1819
|
+
case 2:
|
|
1820
|
+
case 3:
|
|
1821
|
+
case 4:
|
|
1822
|
+
case 5:
|
|
1823
|
+
break;
|
|
1824
|
+
}
|
|
1825
|
+
if (message.bucket != null && message.hasOwnProperty("bucket"))
|
|
1826
|
+
if (!$util.isString(message.bucket))
|
|
1827
|
+
return "bucket: string expected";
|
|
1828
|
+
if (message.textFormat != null && message.hasOwnProperty("textFormat")) {
|
|
1829
|
+
properties.inputFormat = 1;
|
|
1830
|
+
{
|
|
1831
|
+
var error = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.verify(message.textFormat);
|
|
1832
|
+
if (error)
|
|
1833
|
+
return "textFormat." + error;
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
if (message.avroFormat != null && message.hasOwnProperty("avroFormat")) {
|
|
1837
|
+
if (properties.inputFormat === 1)
|
|
1838
|
+
return "inputFormat: multiple values";
|
|
1839
|
+
properties.inputFormat = 1;
|
|
1840
|
+
{
|
|
1841
|
+
var error = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.verify(message.avroFormat);
|
|
1842
|
+
if (error)
|
|
1843
|
+
return "avroFormat." + error;
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
if (message.pubsubAvroFormat != null && message.hasOwnProperty("pubsubAvroFormat")) {
|
|
1847
|
+
if (properties.inputFormat === 1)
|
|
1848
|
+
return "inputFormat: multiple values";
|
|
1849
|
+
properties.inputFormat = 1;
|
|
1850
|
+
{
|
|
1851
|
+
var error = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.verify(message.pubsubAvroFormat);
|
|
1852
|
+
if (error)
|
|
1853
|
+
return "pubsubAvroFormat." + error;
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
if (message.minimumObjectCreateTime != null && message.hasOwnProperty("minimumObjectCreateTime")) {
|
|
1857
|
+
var error = $root.google.protobuf.Timestamp.verify(message.minimumObjectCreateTime);
|
|
1858
|
+
if (error)
|
|
1859
|
+
return "minimumObjectCreateTime." + error;
|
|
1860
|
+
}
|
|
1861
|
+
if (message.matchGlob != null && message.hasOwnProperty("matchGlob"))
|
|
1862
|
+
if (!$util.isString(message.matchGlob))
|
|
1863
|
+
return "matchGlob: string expected";
|
|
1864
|
+
return null;
|
|
1865
|
+
};
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* Creates a CloudStorage message from a plain object. Also converts values to their respective internal types.
|
|
1869
|
+
* @function fromObject
|
|
1870
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1871
|
+
* @static
|
|
1872
|
+
* @param {Object.<string,*>} object Plain object
|
|
1873
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage} CloudStorage
|
|
1874
|
+
*/
|
|
1875
|
+
CloudStorage.fromObject = function fromObject(object) {
|
|
1876
|
+
if (object instanceof $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage)
|
|
1877
|
+
return object;
|
|
1878
|
+
var message = new $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage();
|
|
1879
|
+
switch (object.state) {
|
|
1880
|
+
default:
|
|
1881
|
+
if (typeof object.state === "number") {
|
|
1882
|
+
message.state = object.state;
|
|
1883
|
+
break;
|
|
1884
|
+
}
|
|
1885
|
+
break;
|
|
1886
|
+
case "STATE_UNSPECIFIED":
|
|
1887
|
+
case 0:
|
|
1888
|
+
message.state = 0;
|
|
1889
|
+
break;
|
|
1890
|
+
case "ACTIVE":
|
|
1891
|
+
case 1:
|
|
1892
|
+
message.state = 1;
|
|
1893
|
+
break;
|
|
1894
|
+
case "CLOUD_STORAGE_PERMISSION_DENIED":
|
|
1895
|
+
case 2:
|
|
1896
|
+
message.state = 2;
|
|
1897
|
+
break;
|
|
1898
|
+
case "PUBLISH_PERMISSION_DENIED":
|
|
1899
|
+
case 3:
|
|
1900
|
+
message.state = 3;
|
|
1901
|
+
break;
|
|
1902
|
+
case "BUCKET_NOT_FOUND":
|
|
1903
|
+
case 4:
|
|
1904
|
+
message.state = 4;
|
|
1905
|
+
break;
|
|
1906
|
+
case "TOO_MANY_OBJECTS":
|
|
1907
|
+
case 5:
|
|
1908
|
+
message.state = 5;
|
|
1909
|
+
break;
|
|
1910
|
+
}
|
|
1911
|
+
if (object.bucket != null)
|
|
1912
|
+
message.bucket = String(object.bucket);
|
|
1913
|
+
if (object.textFormat != null) {
|
|
1914
|
+
if (typeof object.textFormat !== "object")
|
|
1915
|
+
throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.textFormat: object expected");
|
|
1916
|
+
message.textFormat = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.fromObject(object.textFormat);
|
|
1917
|
+
}
|
|
1918
|
+
if (object.avroFormat != null) {
|
|
1919
|
+
if (typeof object.avroFormat !== "object")
|
|
1920
|
+
throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.avroFormat: object expected");
|
|
1921
|
+
message.avroFormat = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.fromObject(object.avroFormat);
|
|
1922
|
+
}
|
|
1923
|
+
if (object.pubsubAvroFormat != null) {
|
|
1924
|
+
if (typeof object.pubsubAvroFormat !== "object")
|
|
1925
|
+
throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.pubsubAvroFormat: object expected");
|
|
1926
|
+
message.pubsubAvroFormat = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.fromObject(object.pubsubAvroFormat);
|
|
1927
|
+
}
|
|
1928
|
+
if (object.minimumObjectCreateTime != null) {
|
|
1929
|
+
if (typeof object.minimumObjectCreateTime !== "object")
|
|
1930
|
+
throw TypeError(".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.minimumObjectCreateTime: object expected");
|
|
1931
|
+
message.minimumObjectCreateTime = $root.google.protobuf.Timestamp.fromObject(object.minimumObjectCreateTime);
|
|
1932
|
+
}
|
|
1933
|
+
if (object.matchGlob != null)
|
|
1934
|
+
message.matchGlob = String(object.matchGlob);
|
|
1935
|
+
return message;
|
|
1936
|
+
};
|
|
1937
|
+
|
|
1938
|
+
/**
|
|
1939
|
+
* Creates a plain object from a CloudStorage message. Also converts values to other types if specified.
|
|
1940
|
+
* @function toObject
|
|
1941
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1942
|
+
* @static
|
|
1943
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage} message CloudStorage
|
|
1944
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1945
|
+
* @returns {Object.<string,*>} Plain object
|
|
1946
|
+
*/
|
|
1947
|
+
CloudStorage.toObject = function toObject(message, options) {
|
|
1948
|
+
if (!options)
|
|
1949
|
+
options = {};
|
|
1950
|
+
var object = {};
|
|
1951
|
+
if (options.defaults) {
|
|
1952
|
+
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
1953
|
+
object.bucket = "";
|
|
1954
|
+
object.minimumObjectCreateTime = null;
|
|
1955
|
+
object.matchGlob = "";
|
|
1956
|
+
}
|
|
1957
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
1958
|
+
object.state = options.enums === String ? $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State[message.state] === undefined ? message.state : $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State[message.state] : message.state;
|
|
1959
|
+
if (message.bucket != null && message.hasOwnProperty("bucket"))
|
|
1960
|
+
object.bucket = message.bucket;
|
|
1961
|
+
if (message.textFormat != null && message.hasOwnProperty("textFormat")) {
|
|
1962
|
+
object.textFormat = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.toObject(message.textFormat, options);
|
|
1963
|
+
if (options.oneofs)
|
|
1964
|
+
object.inputFormat = "textFormat";
|
|
1965
|
+
}
|
|
1966
|
+
if (message.avroFormat != null && message.hasOwnProperty("avroFormat")) {
|
|
1967
|
+
object.avroFormat = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.toObject(message.avroFormat, options);
|
|
1968
|
+
if (options.oneofs)
|
|
1969
|
+
object.inputFormat = "avroFormat";
|
|
1970
|
+
}
|
|
1971
|
+
if (message.pubsubAvroFormat != null && message.hasOwnProperty("pubsubAvroFormat")) {
|
|
1972
|
+
object.pubsubAvroFormat = $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.toObject(message.pubsubAvroFormat, options);
|
|
1973
|
+
if (options.oneofs)
|
|
1974
|
+
object.inputFormat = "pubsubAvroFormat";
|
|
1975
|
+
}
|
|
1976
|
+
if (message.minimumObjectCreateTime != null && message.hasOwnProperty("minimumObjectCreateTime"))
|
|
1977
|
+
object.minimumObjectCreateTime = $root.google.protobuf.Timestamp.toObject(message.minimumObjectCreateTime, options);
|
|
1978
|
+
if (message.matchGlob != null && message.hasOwnProperty("matchGlob"))
|
|
1979
|
+
object.matchGlob = message.matchGlob;
|
|
1980
|
+
return object;
|
|
1981
|
+
};
|
|
1982
|
+
|
|
1983
|
+
/**
|
|
1984
|
+
* Converts this CloudStorage to JSON.
|
|
1985
|
+
* @function toJSON
|
|
1986
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1987
|
+
* @instance
|
|
1988
|
+
* @returns {Object.<string,*>} JSON object
|
|
1989
|
+
*/
|
|
1990
|
+
CloudStorage.prototype.toJSON = function toJSON() {
|
|
1991
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1992
|
+
};
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* Gets the default type url for CloudStorage
|
|
1996
|
+
* @function getTypeUrl
|
|
1997
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
1998
|
+
* @static
|
|
1999
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2000
|
+
* @returns {string} The default type url
|
|
2001
|
+
*/
|
|
2002
|
+
CloudStorage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2003
|
+
if (typeUrlPrefix === undefined) {
|
|
2004
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2005
|
+
}
|
|
2006
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionDataSourceSettings.CloudStorage";
|
|
2007
|
+
};
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* State enum.
|
|
2011
|
+
* @name google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State
|
|
2012
|
+
* @enum {number}
|
|
2013
|
+
* @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
|
|
2014
|
+
* @property {number} ACTIVE=1 ACTIVE value
|
|
2015
|
+
* @property {number} CLOUD_STORAGE_PERMISSION_DENIED=2 CLOUD_STORAGE_PERMISSION_DENIED value
|
|
2016
|
+
* @property {number} PUBLISH_PERMISSION_DENIED=3 PUBLISH_PERMISSION_DENIED value
|
|
2017
|
+
* @property {number} BUCKET_NOT_FOUND=4 BUCKET_NOT_FOUND value
|
|
2018
|
+
* @property {number} TOO_MANY_OBJECTS=5 TOO_MANY_OBJECTS value
|
|
2019
|
+
*/
|
|
2020
|
+
CloudStorage.State = (function() {
|
|
2021
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
2022
|
+
values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
|
|
2023
|
+
values[valuesById[1] = "ACTIVE"] = 1;
|
|
2024
|
+
values[valuesById[2] = "CLOUD_STORAGE_PERMISSION_DENIED"] = 2;
|
|
2025
|
+
values[valuesById[3] = "PUBLISH_PERMISSION_DENIED"] = 3;
|
|
2026
|
+
values[valuesById[4] = "BUCKET_NOT_FOUND"] = 4;
|
|
2027
|
+
values[valuesById[5] = "TOO_MANY_OBJECTS"] = 5;
|
|
2028
|
+
return values;
|
|
2029
|
+
})();
|
|
2030
|
+
|
|
2031
|
+
CloudStorage.TextFormat = (function() {
|
|
2032
|
+
|
|
2033
|
+
/**
|
|
2034
|
+
* Properties of a TextFormat.
|
|
2035
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
2036
|
+
* @interface ITextFormat
|
|
2037
|
+
* @property {string|null} [delimiter] TextFormat delimiter
|
|
2038
|
+
*/
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* Constructs a new TextFormat.
|
|
2042
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
2043
|
+
* @classdesc Represents a TextFormat.
|
|
2044
|
+
* @implements ITextFormat
|
|
2045
|
+
* @constructor
|
|
2046
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat=} [properties] Properties to set
|
|
2047
|
+
*/
|
|
2048
|
+
function TextFormat(properties) {
|
|
2049
|
+
if (properties)
|
|
2050
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2051
|
+
if (properties[keys[i]] != null)
|
|
2052
|
+
this[keys[i]] = properties[keys[i]];
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* TextFormat delimiter.
|
|
2057
|
+
* @member {string|null|undefined} delimiter
|
|
2058
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat
|
|
2059
|
+
* @instance
|
|
2060
|
+
*/
|
|
2061
|
+
TextFormat.prototype.delimiter = null;
|
|
2062
|
+
|
|
2063
|
+
// OneOf field names bound to virtual getters and setters
|
|
2064
|
+
var $oneOfFields;
|
|
2065
|
+
|
|
2066
|
+
// Virtual OneOf for proto3 optional field
|
|
2067
|
+
Object.defineProperty(TextFormat.prototype, "_delimiter", {
|
|
2068
|
+
get: $util.oneOfGetter($oneOfFields = ["delimiter"]),
|
|
2069
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2070
|
+
});
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* Creates a new TextFormat instance using the specified properties.
|
|
2074
|
+
* @function create
|
|
2075
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat
|
|
2076
|
+
* @static
|
|
2077
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat=} [properties] Properties to set
|
|
2078
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat} TextFormat instance
|
|
2079
|
+
*/
|
|
2080
|
+
TextFormat.create = function create(properties) {
|
|
2081
|
+
return new TextFormat(properties);
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2084
|
+
/**
|
|
2085
|
+
* Encodes the specified TextFormat message. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.verify|verify} messages.
|
|
2086
|
+
* @function encode
|
|
2087
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat
|
|
2088
|
+
* @static
|
|
2089
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat} message TextFormat message or plain object to encode
|
|
2090
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2091
|
+
* @returns {$protobuf.Writer} Writer
|
|
2092
|
+
*/
|
|
2093
|
+
TextFormat.encode = function encode(message, writer) {
|
|
2094
|
+
if (!writer)
|
|
2095
|
+
writer = $Writer.create();
|
|
2096
|
+
if (message.delimiter != null && Object.hasOwnProperty.call(message, "delimiter"))
|
|
2097
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.delimiter);
|
|
2098
|
+
return writer;
|
|
2099
|
+
};
|
|
2100
|
+
|
|
2101
|
+
/**
|
|
2102
|
+
* Encodes the specified TextFormat message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.verify|verify} messages.
|
|
2103
|
+
* @function encodeDelimited
|
|
2104
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat
|
|
2105
|
+
* @static
|
|
2106
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat} message TextFormat message or plain object to encode
|
|
2107
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2108
|
+
* @returns {$protobuf.Writer} Writer
|
|
2109
|
+
*/
|
|
2110
|
+
TextFormat.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2111
|
+
return this.encode(message, writer).ldelim();
|
|
2112
|
+
};
|
|
2113
|
+
|
|
2114
|
+
/**
|
|
2115
|
+
* Decodes a TextFormat message from the specified reader or buffer.
|
|
2116
|
+
* @function decode
|
|
2117
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat
|
|
2118
|
+
* @static
|
|
2119
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2120
|
+
* @param {number} [length] Message length if known beforehand
|
|
2121
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat} TextFormat
|
|
2122
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2123
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2124
|
+
*/
|
|
2125
|
+
TextFormat.decode = function decode(reader, length) {
|
|
2126
|
+
if (!(reader instanceof $Reader))
|
|
2127
|
+
reader = $Reader.create(reader);
|
|
2128
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat();
|
|
2129
|
+
while (reader.pos < end) {
|
|
2130
|
+
var tag = reader.uint32();
|
|
2131
|
+
switch (tag >>> 3) {
|
|
2132
|
+
case 1: {
|
|
2133
|
+
message.delimiter = reader.string();
|
|
2134
|
+
break;
|
|
2135
|
+
}
|
|
2136
|
+
default:
|
|
2137
|
+
reader.skipType(tag & 7);
|
|
2138
|
+
break;
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
return message;
|
|
2142
|
+
};
|
|
2143
|
+
|
|
2144
|
+
/**
|
|
2145
|
+
* Decodes a TextFormat message from the specified reader or buffer, length delimited.
|
|
2146
|
+
* @function decodeDelimited
|
|
2147
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat
|
|
2148
|
+
* @static
|
|
2149
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2150
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat} TextFormat
|
|
2151
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2152
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2153
|
+
*/
|
|
2154
|
+
TextFormat.decodeDelimited = function decodeDelimited(reader) {
|
|
2155
|
+
if (!(reader instanceof $Reader))
|
|
2156
|
+
reader = new $Reader(reader);
|
|
2157
|
+
return this.decode(reader, reader.uint32());
|
|
2158
|
+
};
|
|
2159
|
+
|
|
2160
|
+
/**
|
|
2161
|
+
* Verifies a TextFormat message.
|
|
2162
|
+
* @function verify
|
|
2163
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat
|
|
2164
|
+
* @static
|
|
2165
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2166
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2167
|
+
*/
|
|
2168
|
+
TextFormat.verify = function verify(message) {
|
|
2169
|
+
if (typeof message !== "object" || message === null)
|
|
2170
|
+
return "object expected";
|
|
2171
|
+
var properties = {};
|
|
2172
|
+
if (message.delimiter != null && message.hasOwnProperty("delimiter")) {
|
|
2173
|
+
properties._delimiter = 1;
|
|
2174
|
+
if (!$util.isString(message.delimiter))
|
|
2175
|
+
return "delimiter: string expected";
|
|
2176
|
+
}
|
|
2177
|
+
return null;
|
|
2178
|
+
};
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
* Creates a TextFormat message from a plain object. Also converts values to their respective internal types.
|
|
2182
|
+
* @function fromObject
|
|
2183
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat
|
|
2184
|
+
* @static
|
|
2185
|
+
* @param {Object.<string,*>} object Plain object
|
|
2186
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat} TextFormat
|
|
2187
|
+
*/
|
|
2188
|
+
TextFormat.fromObject = function fromObject(object) {
|
|
2189
|
+
if (object instanceof $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat)
|
|
2190
|
+
return object;
|
|
2191
|
+
var message = new $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat();
|
|
2192
|
+
if (object.delimiter != null)
|
|
2193
|
+
message.delimiter = String(object.delimiter);
|
|
2194
|
+
return message;
|
|
2195
|
+
};
|
|
2196
|
+
|
|
2197
|
+
/**
|
|
2198
|
+
* Creates a plain object from a TextFormat message. Also converts values to other types if specified.
|
|
2199
|
+
* @function toObject
|
|
2200
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat
|
|
2201
|
+
* @static
|
|
2202
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat} message TextFormat
|
|
2203
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2204
|
+
* @returns {Object.<string,*>} Plain object
|
|
2205
|
+
*/
|
|
2206
|
+
TextFormat.toObject = function toObject(message, options) {
|
|
2207
|
+
if (!options)
|
|
2208
|
+
options = {};
|
|
2209
|
+
var object = {};
|
|
2210
|
+
if (message.delimiter != null && message.hasOwnProperty("delimiter")) {
|
|
2211
|
+
object.delimiter = message.delimiter;
|
|
2212
|
+
if (options.oneofs)
|
|
2213
|
+
object._delimiter = "delimiter";
|
|
2214
|
+
}
|
|
2215
|
+
return object;
|
|
2216
|
+
};
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* Converts this TextFormat to JSON.
|
|
2220
|
+
* @function toJSON
|
|
2221
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat
|
|
2222
|
+
* @instance
|
|
2223
|
+
* @returns {Object.<string,*>} JSON object
|
|
2224
|
+
*/
|
|
2225
|
+
TextFormat.prototype.toJSON = function toJSON() {
|
|
2226
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2227
|
+
};
|
|
2228
|
+
|
|
2229
|
+
/**
|
|
2230
|
+
* Gets the default type url for TextFormat
|
|
2231
|
+
* @function getTypeUrl
|
|
2232
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat
|
|
2233
|
+
* @static
|
|
2234
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2235
|
+
* @returns {string} The default type url
|
|
2236
|
+
*/
|
|
2237
|
+
TextFormat.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2238
|
+
if (typeUrlPrefix === undefined) {
|
|
2239
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2240
|
+
}
|
|
2241
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat";
|
|
2242
|
+
};
|
|
2243
|
+
|
|
2244
|
+
return TextFormat;
|
|
2245
|
+
})();
|
|
2246
|
+
|
|
2247
|
+
CloudStorage.AvroFormat = (function() {
|
|
2248
|
+
|
|
2249
|
+
/**
|
|
2250
|
+
* Properties of an AvroFormat.
|
|
2251
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
2252
|
+
* @interface IAvroFormat
|
|
2253
|
+
*/
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* Constructs a new AvroFormat.
|
|
2257
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
2258
|
+
* @classdesc Represents an AvroFormat.
|
|
2259
|
+
* @implements IAvroFormat
|
|
2260
|
+
* @constructor
|
|
2261
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat=} [properties] Properties to set
|
|
2262
|
+
*/
|
|
2263
|
+
function AvroFormat(properties) {
|
|
2264
|
+
if (properties)
|
|
2265
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2266
|
+
if (properties[keys[i]] != null)
|
|
2267
|
+
this[keys[i]] = properties[keys[i]];
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* Creates a new AvroFormat instance using the specified properties.
|
|
2272
|
+
* @function create
|
|
2273
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat
|
|
2274
|
+
* @static
|
|
2275
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat=} [properties] Properties to set
|
|
2276
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat} AvroFormat instance
|
|
2277
|
+
*/
|
|
2278
|
+
AvroFormat.create = function create(properties) {
|
|
2279
|
+
return new AvroFormat(properties);
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* Encodes the specified AvroFormat message. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.verify|verify} messages.
|
|
2284
|
+
* @function encode
|
|
2285
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat
|
|
2286
|
+
* @static
|
|
2287
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat} message AvroFormat message or plain object to encode
|
|
2288
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2289
|
+
* @returns {$protobuf.Writer} Writer
|
|
2290
|
+
*/
|
|
2291
|
+
AvroFormat.encode = function encode(message, writer) {
|
|
2292
|
+
if (!writer)
|
|
2293
|
+
writer = $Writer.create();
|
|
2294
|
+
return writer;
|
|
2295
|
+
};
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* Encodes the specified AvroFormat message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.verify|verify} messages.
|
|
2299
|
+
* @function encodeDelimited
|
|
2300
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat
|
|
2301
|
+
* @static
|
|
2302
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat} message AvroFormat message or plain object to encode
|
|
2303
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2304
|
+
* @returns {$protobuf.Writer} Writer
|
|
2305
|
+
*/
|
|
2306
|
+
AvroFormat.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2307
|
+
return this.encode(message, writer).ldelim();
|
|
2308
|
+
};
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* Decodes an AvroFormat message from the specified reader or buffer.
|
|
2312
|
+
* @function decode
|
|
2313
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat
|
|
2314
|
+
* @static
|
|
2315
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2316
|
+
* @param {number} [length] Message length if known beforehand
|
|
2317
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat} AvroFormat
|
|
2318
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2319
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2320
|
+
*/
|
|
2321
|
+
AvroFormat.decode = function decode(reader, length) {
|
|
2322
|
+
if (!(reader instanceof $Reader))
|
|
2323
|
+
reader = $Reader.create(reader);
|
|
2324
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat();
|
|
2325
|
+
while (reader.pos < end) {
|
|
2326
|
+
var tag = reader.uint32();
|
|
2327
|
+
switch (tag >>> 3) {
|
|
2328
|
+
default:
|
|
2329
|
+
reader.skipType(tag & 7);
|
|
2330
|
+
break;
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
return message;
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* Decodes an AvroFormat message from the specified reader or buffer, length delimited.
|
|
2338
|
+
* @function decodeDelimited
|
|
2339
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat
|
|
2340
|
+
* @static
|
|
2341
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2342
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat} AvroFormat
|
|
2343
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2344
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2345
|
+
*/
|
|
2346
|
+
AvroFormat.decodeDelimited = function decodeDelimited(reader) {
|
|
2347
|
+
if (!(reader instanceof $Reader))
|
|
2348
|
+
reader = new $Reader(reader);
|
|
2349
|
+
return this.decode(reader, reader.uint32());
|
|
2350
|
+
};
|
|
2351
|
+
|
|
2352
|
+
/**
|
|
2353
|
+
* Verifies an AvroFormat message.
|
|
2354
|
+
* @function verify
|
|
2355
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat
|
|
2356
|
+
* @static
|
|
2357
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2358
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2359
|
+
*/
|
|
2360
|
+
AvroFormat.verify = function verify(message) {
|
|
2361
|
+
if (typeof message !== "object" || message === null)
|
|
2362
|
+
return "object expected";
|
|
2363
|
+
return null;
|
|
2364
|
+
};
|
|
2365
|
+
|
|
2366
|
+
/**
|
|
2367
|
+
* Creates an AvroFormat message from a plain object. Also converts values to their respective internal types.
|
|
2368
|
+
* @function fromObject
|
|
2369
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat
|
|
2370
|
+
* @static
|
|
2371
|
+
* @param {Object.<string,*>} object Plain object
|
|
2372
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat} AvroFormat
|
|
2373
|
+
*/
|
|
2374
|
+
AvroFormat.fromObject = function fromObject(object) {
|
|
2375
|
+
if (object instanceof $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat)
|
|
2376
|
+
return object;
|
|
2377
|
+
return new $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat();
|
|
2378
|
+
};
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
* Creates a plain object from an AvroFormat message. Also converts values to other types if specified.
|
|
2382
|
+
* @function toObject
|
|
2383
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat
|
|
2384
|
+
* @static
|
|
2385
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat} message AvroFormat
|
|
2386
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2387
|
+
* @returns {Object.<string,*>} Plain object
|
|
2388
|
+
*/
|
|
2389
|
+
AvroFormat.toObject = function toObject() {
|
|
2390
|
+
return {};
|
|
2391
|
+
};
|
|
2392
|
+
|
|
2393
|
+
/**
|
|
2394
|
+
* Converts this AvroFormat to JSON.
|
|
2395
|
+
* @function toJSON
|
|
2396
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat
|
|
2397
|
+
* @instance
|
|
2398
|
+
* @returns {Object.<string,*>} JSON object
|
|
2399
|
+
*/
|
|
2400
|
+
AvroFormat.prototype.toJSON = function toJSON() {
|
|
2401
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2402
|
+
};
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* Gets the default type url for AvroFormat
|
|
2406
|
+
* @function getTypeUrl
|
|
2407
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat
|
|
2408
|
+
* @static
|
|
2409
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2410
|
+
* @returns {string} The default type url
|
|
2411
|
+
*/
|
|
2412
|
+
AvroFormat.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2413
|
+
if (typeUrlPrefix === undefined) {
|
|
2414
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2415
|
+
}
|
|
2416
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat";
|
|
2417
|
+
};
|
|
2418
|
+
|
|
2419
|
+
return AvroFormat;
|
|
2420
|
+
})();
|
|
2421
|
+
|
|
2422
|
+
CloudStorage.PubSubAvroFormat = (function() {
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* Properties of a PubSubAvroFormat.
|
|
2426
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
2427
|
+
* @interface IPubSubAvroFormat
|
|
2428
|
+
*/
|
|
2429
|
+
|
|
2430
|
+
/**
|
|
2431
|
+
* Constructs a new PubSubAvroFormat.
|
|
2432
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
|
|
2433
|
+
* @classdesc Represents a PubSubAvroFormat.
|
|
2434
|
+
* @implements IPubSubAvroFormat
|
|
2435
|
+
* @constructor
|
|
2436
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat=} [properties] Properties to set
|
|
2437
|
+
*/
|
|
2438
|
+
function PubSubAvroFormat(properties) {
|
|
2439
|
+
if (properties)
|
|
2440
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2441
|
+
if (properties[keys[i]] != null)
|
|
2442
|
+
this[keys[i]] = properties[keys[i]];
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* Creates a new PubSubAvroFormat instance using the specified properties.
|
|
2447
|
+
* @function create
|
|
2448
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat
|
|
2449
|
+
* @static
|
|
2450
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat=} [properties] Properties to set
|
|
2451
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat} PubSubAvroFormat instance
|
|
2452
|
+
*/
|
|
2453
|
+
PubSubAvroFormat.create = function create(properties) {
|
|
2454
|
+
return new PubSubAvroFormat(properties);
|
|
2455
|
+
};
|
|
2456
|
+
|
|
2457
|
+
/**
|
|
2458
|
+
* Encodes the specified PubSubAvroFormat message. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.verify|verify} messages.
|
|
2459
|
+
* @function encode
|
|
2460
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat
|
|
2461
|
+
* @static
|
|
2462
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat} message PubSubAvroFormat message or plain object to encode
|
|
2463
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2464
|
+
* @returns {$protobuf.Writer} Writer
|
|
2465
|
+
*/
|
|
2466
|
+
PubSubAvroFormat.encode = function encode(message, writer) {
|
|
2467
|
+
if (!writer)
|
|
2468
|
+
writer = $Writer.create();
|
|
2469
|
+
return writer;
|
|
2470
|
+
};
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* Encodes the specified PubSubAvroFormat message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.verify|verify} messages.
|
|
2474
|
+
* @function encodeDelimited
|
|
2475
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat
|
|
2476
|
+
* @static
|
|
2477
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat} message PubSubAvroFormat message or plain object to encode
|
|
2478
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2479
|
+
* @returns {$protobuf.Writer} Writer
|
|
2480
|
+
*/
|
|
2481
|
+
PubSubAvroFormat.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2482
|
+
return this.encode(message, writer).ldelim();
|
|
2483
|
+
};
|
|
2484
|
+
|
|
2485
|
+
/**
|
|
2486
|
+
* Decodes a PubSubAvroFormat message from the specified reader or buffer.
|
|
2487
|
+
* @function decode
|
|
2488
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat
|
|
2489
|
+
* @static
|
|
2490
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2491
|
+
* @param {number} [length] Message length if known beforehand
|
|
2492
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat} PubSubAvroFormat
|
|
2493
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2494
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2495
|
+
*/
|
|
2496
|
+
PubSubAvroFormat.decode = function decode(reader, length) {
|
|
2497
|
+
if (!(reader instanceof $Reader))
|
|
2498
|
+
reader = $Reader.create(reader);
|
|
2499
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat();
|
|
2500
|
+
while (reader.pos < end) {
|
|
2501
|
+
var tag = reader.uint32();
|
|
2502
|
+
switch (tag >>> 3) {
|
|
2503
|
+
default:
|
|
2504
|
+
reader.skipType(tag & 7);
|
|
2505
|
+
break;
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2508
|
+
return message;
|
|
2509
|
+
};
|
|
2510
|
+
|
|
2511
|
+
/**
|
|
2512
|
+
* Decodes a PubSubAvroFormat message from the specified reader or buffer, length delimited.
|
|
2513
|
+
* @function decodeDelimited
|
|
2514
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat
|
|
2515
|
+
* @static
|
|
2516
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2517
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat} PubSubAvroFormat
|
|
2518
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2519
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2520
|
+
*/
|
|
2521
|
+
PubSubAvroFormat.decodeDelimited = function decodeDelimited(reader) {
|
|
2522
|
+
if (!(reader instanceof $Reader))
|
|
2523
|
+
reader = new $Reader(reader);
|
|
2524
|
+
return this.decode(reader, reader.uint32());
|
|
2525
|
+
};
|
|
2526
|
+
|
|
2527
|
+
/**
|
|
2528
|
+
* Verifies a PubSubAvroFormat message.
|
|
2529
|
+
* @function verify
|
|
2530
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat
|
|
2531
|
+
* @static
|
|
2532
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2533
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2534
|
+
*/
|
|
2535
|
+
PubSubAvroFormat.verify = function verify(message) {
|
|
2536
|
+
if (typeof message !== "object" || message === null)
|
|
2537
|
+
return "object expected";
|
|
2538
|
+
return null;
|
|
2539
|
+
};
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* Creates a PubSubAvroFormat message from a plain object. Also converts values to their respective internal types.
|
|
2543
|
+
* @function fromObject
|
|
2544
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat
|
|
2545
|
+
* @static
|
|
2546
|
+
* @param {Object.<string,*>} object Plain object
|
|
2547
|
+
* @returns {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat} PubSubAvroFormat
|
|
2548
|
+
*/
|
|
2549
|
+
PubSubAvroFormat.fromObject = function fromObject(object) {
|
|
2550
|
+
if (object instanceof $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat)
|
|
2551
|
+
return object;
|
|
2552
|
+
return new $root.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat();
|
|
2553
|
+
};
|
|
2554
|
+
|
|
2555
|
+
/**
|
|
2556
|
+
* Creates a plain object from a PubSubAvroFormat message. Also converts values to other types if specified.
|
|
2557
|
+
* @function toObject
|
|
2558
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat
|
|
2559
|
+
* @static
|
|
2560
|
+
* @param {google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat} message PubSubAvroFormat
|
|
2561
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2562
|
+
* @returns {Object.<string,*>} Plain object
|
|
2563
|
+
*/
|
|
2564
|
+
PubSubAvroFormat.toObject = function toObject() {
|
|
2565
|
+
return {};
|
|
2566
|
+
};
|
|
2567
|
+
|
|
2568
|
+
/**
|
|
2569
|
+
* Converts this PubSubAvroFormat to JSON.
|
|
2570
|
+
* @function toJSON
|
|
2571
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat
|
|
2572
|
+
* @instance
|
|
2573
|
+
* @returns {Object.<string,*>} JSON object
|
|
2574
|
+
*/
|
|
2575
|
+
PubSubAvroFormat.prototype.toJSON = function toJSON() {
|
|
2576
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2577
|
+
};
|
|
2578
|
+
|
|
2579
|
+
/**
|
|
2580
|
+
* Gets the default type url for PubSubAvroFormat
|
|
2581
|
+
* @function getTypeUrl
|
|
2582
|
+
* @memberof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat
|
|
2583
|
+
* @static
|
|
2584
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2585
|
+
* @returns {string} The default type url
|
|
2586
|
+
*/
|
|
2587
|
+
PubSubAvroFormat.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2588
|
+
if (typeUrlPrefix === undefined) {
|
|
2589
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2590
|
+
}
|
|
2591
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat";
|
|
2592
|
+
};
|
|
2593
|
+
|
|
2594
|
+
return PubSubAvroFormat;
|
|
2595
|
+
})();
|
|
2596
|
+
|
|
2597
|
+
return CloudStorage;
|
|
2598
|
+
})();
|
|
2599
|
+
|
|
2600
|
+
return IngestionDataSourceSettings;
|
|
2601
|
+
})();
|
|
2602
|
+
|
|
2603
|
+
v1.PlatformLogsSettings = (function() {
|
|
2604
|
+
|
|
2605
|
+
/**
|
|
2606
|
+
* Properties of a PlatformLogsSettings.
|
|
2607
|
+
* @memberof google.pubsub.v1
|
|
2608
|
+
* @interface IPlatformLogsSettings
|
|
2609
|
+
* @property {google.pubsub.v1.PlatformLogsSettings.Severity|null} [severity] PlatformLogsSettings severity
|
|
2610
|
+
*/
|
|
2611
|
+
|
|
2612
|
+
/**
|
|
2613
|
+
* Constructs a new PlatformLogsSettings.
|
|
2614
|
+
* @memberof google.pubsub.v1
|
|
2615
|
+
* @classdesc Represents a PlatformLogsSettings.
|
|
2616
|
+
* @implements IPlatformLogsSettings
|
|
2617
|
+
* @constructor
|
|
2618
|
+
* @param {google.pubsub.v1.IPlatformLogsSettings=} [properties] Properties to set
|
|
2619
|
+
*/
|
|
2620
|
+
function PlatformLogsSettings(properties) {
|
|
2621
|
+
if (properties)
|
|
2622
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2623
|
+
if (properties[keys[i]] != null)
|
|
2624
|
+
this[keys[i]] = properties[keys[i]];
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
/**
|
|
2628
|
+
* PlatformLogsSettings severity.
|
|
2629
|
+
* @member {google.pubsub.v1.PlatformLogsSettings.Severity} severity
|
|
2630
|
+
* @memberof google.pubsub.v1.PlatformLogsSettings
|
|
2631
|
+
* @instance
|
|
2632
|
+
*/
|
|
2633
|
+
PlatformLogsSettings.prototype.severity = 0;
|
|
2634
|
+
|
|
2635
|
+
/**
|
|
2636
|
+
* Creates a new PlatformLogsSettings instance using the specified properties.
|
|
2637
|
+
* @function create
|
|
2638
|
+
* @memberof google.pubsub.v1.PlatformLogsSettings
|
|
2639
|
+
* @static
|
|
2640
|
+
* @param {google.pubsub.v1.IPlatformLogsSettings=} [properties] Properties to set
|
|
2641
|
+
* @returns {google.pubsub.v1.PlatformLogsSettings} PlatformLogsSettings instance
|
|
2642
|
+
*/
|
|
2643
|
+
PlatformLogsSettings.create = function create(properties) {
|
|
2644
|
+
return new PlatformLogsSettings(properties);
|
|
2645
|
+
};
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* Encodes the specified PlatformLogsSettings message. Does not implicitly {@link google.pubsub.v1.PlatformLogsSettings.verify|verify} messages.
|
|
2649
|
+
* @function encode
|
|
2650
|
+
* @memberof google.pubsub.v1.PlatformLogsSettings
|
|
2651
|
+
* @static
|
|
2652
|
+
* @param {google.pubsub.v1.IPlatformLogsSettings} message PlatformLogsSettings message or plain object to encode
|
|
2653
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2654
|
+
* @returns {$protobuf.Writer} Writer
|
|
2655
|
+
*/
|
|
2656
|
+
PlatformLogsSettings.encode = function encode(message, writer) {
|
|
2657
|
+
if (!writer)
|
|
2658
|
+
writer = $Writer.create();
|
|
2659
|
+
if (message.severity != null && Object.hasOwnProperty.call(message, "severity"))
|
|
2660
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.severity);
|
|
2661
|
+
return writer;
|
|
2662
|
+
};
|
|
2663
|
+
|
|
2664
|
+
/**
|
|
2665
|
+
* Encodes the specified PlatformLogsSettings message, length delimited. Does not implicitly {@link google.pubsub.v1.PlatformLogsSettings.verify|verify} messages.
|
|
2666
|
+
* @function encodeDelimited
|
|
2667
|
+
* @memberof google.pubsub.v1.PlatformLogsSettings
|
|
2668
|
+
* @static
|
|
2669
|
+
* @param {google.pubsub.v1.IPlatformLogsSettings} message PlatformLogsSettings message or plain object to encode
|
|
2670
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2671
|
+
* @returns {$protobuf.Writer} Writer
|
|
2672
|
+
*/
|
|
2673
|
+
PlatformLogsSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2674
|
+
return this.encode(message, writer).ldelim();
|
|
2675
|
+
};
|
|
2676
|
+
|
|
2677
|
+
/**
|
|
2678
|
+
* Decodes a PlatformLogsSettings message from the specified reader or buffer.
|
|
2679
|
+
* @function decode
|
|
2680
|
+
* @memberof google.pubsub.v1.PlatformLogsSettings
|
|
2681
|
+
* @static
|
|
2682
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2683
|
+
* @param {number} [length] Message length if known beforehand
|
|
2684
|
+
* @returns {google.pubsub.v1.PlatformLogsSettings} PlatformLogsSettings
|
|
2685
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2686
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2687
|
+
*/
|
|
2688
|
+
PlatformLogsSettings.decode = function decode(reader, length) {
|
|
2689
|
+
if (!(reader instanceof $Reader))
|
|
2690
|
+
reader = $Reader.create(reader);
|
|
2691
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.PlatformLogsSettings();
|
|
2692
|
+
while (reader.pos < end) {
|
|
2693
|
+
var tag = reader.uint32();
|
|
2694
|
+
switch (tag >>> 3) {
|
|
2695
|
+
case 1: {
|
|
2696
|
+
message.severity = reader.int32();
|
|
2697
|
+
break;
|
|
2698
|
+
}
|
|
2699
|
+
default:
|
|
2700
|
+
reader.skipType(tag & 7);
|
|
2701
|
+
break;
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
return message;
|
|
2705
|
+
};
|
|
2706
|
+
|
|
2707
|
+
/**
|
|
2708
|
+
* Decodes a PlatformLogsSettings message from the specified reader or buffer, length delimited.
|
|
2709
|
+
* @function decodeDelimited
|
|
2710
|
+
* @memberof google.pubsub.v1.PlatformLogsSettings
|
|
2711
|
+
* @static
|
|
2712
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2713
|
+
* @returns {google.pubsub.v1.PlatformLogsSettings} PlatformLogsSettings
|
|
2714
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2715
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2716
|
+
*/
|
|
2717
|
+
PlatformLogsSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
2718
|
+
if (!(reader instanceof $Reader))
|
|
2719
|
+
reader = new $Reader(reader);
|
|
2720
|
+
return this.decode(reader, reader.uint32());
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* Verifies a PlatformLogsSettings message.
|
|
2725
|
+
* @function verify
|
|
2726
|
+
* @memberof google.pubsub.v1.PlatformLogsSettings
|
|
2727
|
+
* @static
|
|
2728
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2729
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2730
|
+
*/
|
|
2731
|
+
PlatformLogsSettings.verify = function verify(message) {
|
|
2732
|
+
if (typeof message !== "object" || message === null)
|
|
2733
|
+
return "object expected";
|
|
2734
|
+
if (message.severity != null && message.hasOwnProperty("severity"))
|
|
2735
|
+
switch (message.severity) {
|
|
2736
|
+
default:
|
|
2737
|
+
return "severity: enum value expected";
|
|
2738
|
+
case 0:
|
|
2739
|
+
case 1:
|
|
2740
|
+
case 2:
|
|
2741
|
+
case 3:
|
|
2742
|
+
case 4:
|
|
2743
|
+
case 5:
|
|
2744
|
+
break;
|
|
2745
|
+
}
|
|
2746
|
+
return null;
|
|
2747
|
+
};
|
|
2748
|
+
|
|
2749
|
+
/**
|
|
2750
|
+
* Creates a PlatformLogsSettings message from a plain object. Also converts values to their respective internal types.
|
|
2751
|
+
* @function fromObject
|
|
2752
|
+
* @memberof google.pubsub.v1.PlatformLogsSettings
|
|
2753
|
+
* @static
|
|
2754
|
+
* @param {Object.<string,*>} object Plain object
|
|
2755
|
+
* @returns {google.pubsub.v1.PlatformLogsSettings} PlatformLogsSettings
|
|
2756
|
+
*/
|
|
2757
|
+
PlatformLogsSettings.fromObject = function fromObject(object) {
|
|
2758
|
+
if (object instanceof $root.google.pubsub.v1.PlatformLogsSettings)
|
|
2759
|
+
return object;
|
|
2760
|
+
var message = new $root.google.pubsub.v1.PlatformLogsSettings();
|
|
2761
|
+
switch (object.severity) {
|
|
2762
|
+
default:
|
|
2763
|
+
if (typeof object.severity === "number") {
|
|
2764
|
+
message.severity = object.severity;
|
|
2765
|
+
break;
|
|
2766
|
+
}
|
|
2767
|
+
break;
|
|
2768
|
+
case "SEVERITY_UNSPECIFIED":
|
|
2769
|
+
case 0:
|
|
2770
|
+
message.severity = 0;
|
|
2771
|
+
break;
|
|
2772
|
+
case "DISABLED":
|
|
2773
|
+
case 1:
|
|
2774
|
+
message.severity = 1;
|
|
2775
|
+
break;
|
|
2776
|
+
case "DEBUG":
|
|
2777
|
+
case 2:
|
|
2778
|
+
message.severity = 2;
|
|
2779
|
+
break;
|
|
2780
|
+
case "INFO":
|
|
2781
|
+
case 3:
|
|
2782
|
+
message.severity = 3;
|
|
2783
|
+
break;
|
|
2784
|
+
case "WARNING":
|
|
2785
|
+
case 4:
|
|
2786
|
+
message.severity = 4;
|
|
2787
|
+
break;
|
|
2788
|
+
case "ERROR":
|
|
2789
|
+
case 5:
|
|
2790
|
+
message.severity = 5;
|
|
2791
|
+
break;
|
|
2792
|
+
}
|
|
2793
|
+
return message;
|
|
2794
|
+
};
|
|
2795
|
+
|
|
2796
|
+
/**
|
|
2797
|
+
* Creates a plain object from a PlatformLogsSettings message. Also converts values to other types if specified.
|
|
2798
|
+
* @function toObject
|
|
2799
|
+
* @memberof google.pubsub.v1.PlatformLogsSettings
|
|
2800
|
+
* @static
|
|
2801
|
+
* @param {google.pubsub.v1.PlatformLogsSettings} message PlatformLogsSettings
|
|
2802
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2803
|
+
* @returns {Object.<string,*>} Plain object
|
|
2804
|
+
*/
|
|
2805
|
+
PlatformLogsSettings.toObject = function toObject(message, options) {
|
|
2806
|
+
if (!options)
|
|
2807
|
+
options = {};
|
|
2808
|
+
var object = {};
|
|
2809
|
+
if (options.defaults)
|
|
2810
|
+
object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0;
|
|
2811
|
+
if (message.severity != null && message.hasOwnProperty("severity"))
|
|
2812
|
+
object.severity = options.enums === String ? $root.google.pubsub.v1.PlatformLogsSettings.Severity[message.severity] === undefined ? message.severity : $root.google.pubsub.v1.PlatformLogsSettings.Severity[message.severity] : message.severity;
|
|
2813
|
+
return object;
|
|
2814
|
+
};
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* Converts this PlatformLogsSettings to JSON.
|
|
2818
|
+
* @function toJSON
|
|
2819
|
+
* @memberof google.pubsub.v1.PlatformLogsSettings
|
|
2820
|
+
* @instance
|
|
2821
|
+
* @returns {Object.<string,*>} JSON object
|
|
2822
|
+
*/
|
|
2823
|
+
PlatformLogsSettings.prototype.toJSON = function toJSON() {
|
|
2824
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2825
|
+
};
|
|
2826
|
+
|
|
2827
|
+
/**
|
|
2828
|
+
* Gets the default type url for PlatformLogsSettings
|
|
2829
|
+
* @function getTypeUrl
|
|
2830
|
+
* @memberof google.pubsub.v1.PlatformLogsSettings
|
|
2831
|
+
* @static
|
|
2832
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2833
|
+
* @returns {string} The default type url
|
|
2834
|
+
*/
|
|
2835
|
+
PlatformLogsSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2836
|
+
if (typeUrlPrefix === undefined) {
|
|
2837
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2838
|
+
}
|
|
2839
|
+
return typeUrlPrefix + "/google.pubsub.v1.PlatformLogsSettings";
|
|
2840
|
+
};
|
|
2841
|
+
|
|
2842
|
+
/**
|
|
2843
|
+
* Severity enum.
|
|
2844
|
+
* @name google.pubsub.v1.PlatformLogsSettings.Severity
|
|
2845
|
+
* @enum {number}
|
|
2846
|
+
* @property {number} SEVERITY_UNSPECIFIED=0 SEVERITY_UNSPECIFIED value
|
|
2847
|
+
* @property {number} DISABLED=1 DISABLED value
|
|
2848
|
+
* @property {number} DEBUG=2 DEBUG value
|
|
2849
|
+
* @property {number} INFO=3 INFO value
|
|
2850
|
+
* @property {number} WARNING=4 WARNING value
|
|
2851
|
+
* @property {number} ERROR=5 ERROR value
|
|
2852
|
+
*/
|
|
2853
|
+
PlatformLogsSettings.Severity = (function() {
|
|
2854
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
2855
|
+
values[valuesById[0] = "SEVERITY_UNSPECIFIED"] = 0;
|
|
2856
|
+
values[valuesById[1] = "DISABLED"] = 1;
|
|
2857
|
+
values[valuesById[2] = "DEBUG"] = 2;
|
|
2858
|
+
values[valuesById[3] = "INFO"] = 3;
|
|
2859
|
+
values[valuesById[4] = "WARNING"] = 4;
|
|
2860
|
+
values[valuesById[5] = "ERROR"] = 5;
|
|
2861
|
+
return values;
|
|
2862
|
+
})();
|
|
2863
|
+
|
|
2864
|
+
return PlatformLogsSettings;
|
|
2865
|
+
})();
|
|
2866
|
+
|
|
2867
|
+
v1.IngestionFailureEvent = (function() {
|
|
2868
|
+
|
|
2869
|
+
/**
|
|
2870
|
+
* Properties of an IngestionFailureEvent.
|
|
2871
|
+
* @memberof google.pubsub.v1
|
|
2872
|
+
* @interface IIngestionFailureEvent
|
|
2873
|
+
* @property {string|null} [topic] IngestionFailureEvent topic
|
|
2874
|
+
* @property {string|null} [errorMessage] IngestionFailureEvent errorMessage
|
|
2875
|
+
* @property {google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure|null} [cloudStorageFailure] IngestionFailureEvent cloudStorageFailure
|
|
2876
|
+
*/
|
|
2877
|
+
|
|
2878
|
+
/**
|
|
2879
|
+
* Constructs a new IngestionFailureEvent.
|
|
2880
|
+
* @memberof google.pubsub.v1
|
|
2881
|
+
* @classdesc Represents an IngestionFailureEvent.
|
|
2882
|
+
* @implements IIngestionFailureEvent
|
|
2883
|
+
* @constructor
|
|
2884
|
+
* @param {google.pubsub.v1.IIngestionFailureEvent=} [properties] Properties to set
|
|
2885
|
+
*/
|
|
2886
|
+
function IngestionFailureEvent(properties) {
|
|
2887
|
+
if (properties)
|
|
2888
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2889
|
+
if (properties[keys[i]] != null)
|
|
2890
|
+
this[keys[i]] = properties[keys[i]];
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
/**
|
|
2894
|
+
* IngestionFailureEvent topic.
|
|
2895
|
+
* @member {string} topic
|
|
2896
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
2897
|
+
* @instance
|
|
2898
|
+
*/
|
|
2899
|
+
IngestionFailureEvent.prototype.topic = "";
|
|
2900
|
+
|
|
2901
|
+
/**
|
|
2902
|
+
* IngestionFailureEvent errorMessage.
|
|
2903
|
+
* @member {string} errorMessage
|
|
2904
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
2905
|
+
* @instance
|
|
2906
|
+
*/
|
|
2907
|
+
IngestionFailureEvent.prototype.errorMessage = "";
|
|
2908
|
+
|
|
2909
|
+
/**
|
|
2910
|
+
* IngestionFailureEvent cloudStorageFailure.
|
|
2911
|
+
* @member {google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure|null|undefined} cloudStorageFailure
|
|
2912
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
2913
|
+
* @instance
|
|
2914
|
+
*/
|
|
2915
|
+
IngestionFailureEvent.prototype.cloudStorageFailure = null;
|
|
2916
|
+
|
|
2917
|
+
// OneOf field names bound to virtual getters and setters
|
|
2918
|
+
var $oneOfFields;
|
|
2919
|
+
|
|
2920
|
+
/**
|
|
2921
|
+
* IngestionFailureEvent failure.
|
|
2922
|
+
* @member {"cloudStorageFailure"|undefined} failure
|
|
2923
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
2924
|
+
* @instance
|
|
2925
|
+
*/
|
|
2926
|
+
Object.defineProperty(IngestionFailureEvent.prototype, "failure", {
|
|
2927
|
+
get: $util.oneOfGetter($oneOfFields = ["cloudStorageFailure"]),
|
|
2928
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2929
|
+
});
|
|
2930
|
+
|
|
2931
|
+
/**
|
|
2932
|
+
* Creates a new IngestionFailureEvent instance using the specified properties.
|
|
2933
|
+
* @function create
|
|
2934
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
2935
|
+
* @static
|
|
2936
|
+
* @param {google.pubsub.v1.IIngestionFailureEvent=} [properties] Properties to set
|
|
2937
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent} IngestionFailureEvent instance
|
|
2938
|
+
*/
|
|
2939
|
+
IngestionFailureEvent.create = function create(properties) {
|
|
2940
|
+
return new IngestionFailureEvent(properties);
|
|
2941
|
+
};
|
|
2942
|
+
|
|
2943
|
+
/**
|
|
2944
|
+
* Encodes the specified IngestionFailureEvent message. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.verify|verify} messages.
|
|
2945
|
+
* @function encode
|
|
2946
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
2947
|
+
* @static
|
|
2948
|
+
* @param {google.pubsub.v1.IIngestionFailureEvent} message IngestionFailureEvent message or plain object to encode
|
|
2949
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2950
|
+
* @returns {$protobuf.Writer} Writer
|
|
2951
|
+
*/
|
|
2952
|
+
IngestionFailureEvent.encode = function encode(message, writer) {
|
|
2953
|
+
if (!writer)
|
|
2954
|
+
writer = $Writer.create();
|
|
2955
|
+
if (message.topic != null && Object.hasOwnProperty.call(message, "topic"))
|
|
2956
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic);
|
|
2957
|
+
if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
|
|
2958
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage);
|
|
2959
|
+
if (message.cloudStorageFailure != null && Object.hasOwnProperty.call(message, "cloudStorageFailure"))
|
|
2960
|
+
$root.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.encode(message.cloudStorageFailure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
2961
|
+
return writer;
|
|
2962
|
+
};
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* Encodes the specified IngestionFailureEvent message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.verify|verify} messages.
|
|
2966
|
+
* @function encodeDelimited
|
|
2967
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
2968
|
+
* @static
|
|
2969
|
+
* @param {google.pubsub.v1.IIngestionFailureEvent} message IngestionFailureEvent message or plain object to encode
|
|
2970
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2971
|
+
* @returns {$protobuf.Writer} Writer
|
|
2972
|
+
*/
|
|
2973
|
+
IngestionFailureEvent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2974
|
+
return this.encode(message, writer).ldelim();
|
|
2975
|
+
};
|
|
2976
|
+
|
|
2977
|
+
/**
|
|
2978
|
+
* Decodes an IngestionFailureEvent message from the specified reader or buffer.
|
|
2979
|
+
* @function decode
|
|
2980
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
2981
|
+
* @static
|
|
2982
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2983
|
+
* @param {number} [length] Message length if known beforehand
|
|
2984
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent} IngestionFailureEvent
|
|
2985
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2986
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2987
|
+
*/
|
|
2988
|
+
IngestionFailureEvent.decode = function decode(reader, length) {
|
|
2989
|
+
if (!(reader instanceof $Reader))
|
|
2990
|
+
reader = $Reader.create(reader);
|
|
2991
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionFailureEvent();
|
|
2992
|
+
while (reader.pos < end) {
|
|
2993
|
+
var tag = reader.uint32();
|
|
2994
|
+
switch (tag >>> 3) {
|
|
2995
|
+
case 1: {
|
|
2996
|
+
message.topic = reader.string();
|
|
2997
|
+
break;
|
|
2998
|
+
}
|
|
2999
|
+
case 2: {
|
|
3000
|
+
message.errorMessage = reader.string();
|
|
3001
|
+
break;
|
|
3002
|
+
}
|
|
3003
|
+
case 3: {
|
|
3004
|
+
message.cloudStorageFailure = $root.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.decode(reader, reader.uint32());
|
|
3005
|
+
break;
|
|
3006
|
+
}
|
|
3007
|
+
default:
|
|
3008
|
+
reader.skipType(tag & 7);
|
|
3009
|
+
break;
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
return message;
|
|
3013
|
+
};
|
|
3014
|
+
|
|
3015
|
+
/**
|
|
3016
|
+
* Decodes an IngestionFailureEvent message from the specified reader or buffer, length delimited.
|
|
3017
|
+
* @function decodeDelimited
|
|
3018
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3019
|
+
* @static
|
|
3020
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3021
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent} IngestionFailureEvent
|
|
3022
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3023
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3024
|
+
*/
|
|
3025
|
+
IngestionFailureEvent.decodeDelimited = function decodeDelimited(reader) {
|
|
3026
|
+
if (!(reader instanceof $Reader))
|
|
3027
|
+
reader = new $Reader(reader);
|
|
3028
|
+
return this.decode(reader, reader.uint32());
|
|
3029
|
+
};
|
|
3030
|
+
|
|
3031
|
+
/**
|
|
3032
|
+
* Verifies an IngestionFailureEvent message.
|
|
3033
|
+
* @function verify
|
|
3034
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3035
|
+
* @static
|
|
3036
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3037
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3038
|
+
*/
|
|
3039
|
+
IngestionFailureEvent.verify = function verify(message) {
|
|
3040
|
+
if (typeof message !== "object" || message === null)
|
|
3041
|
+
return "object expected";
|
|
3042
|
+
var properties = {};
|
|
3043
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
3044
|
+
if (!$util.isString(message.topic))
|
|
3045
|
+
return "topic: string expected";
|
|
3046
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
|
3047
|
+
if (!$util.isString(message.errorMessage))
|
|
3048
|
+
return "errorMessage: string expected";
|
|
3049
|
+
if (message.cloudStorageFailure != null && message.hasOwnProperty("cloudStorageFailure")) {
|
|
3050
|
+
properties.failure = 1;
|
|
3051
|
+
{
|
|
3052
|
+
var error = $root.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.verify(message.cloudStorageFailure);
|
|
3053
|
+
if (error)
|
|
3054
|
+
return "cloudStorageFailure." + error;
|
|
3055
|
+
}
|
|
3056
|
+
}
|
|
3057
|
+
return null;
|
|
3058
|
+
};
|
|
3059
|
+
|
|
3060
|
+
/**
|
|
3061
|
+
* Creates an IngestionFailureEvent message from a plain object. Also converts values to their respective internal types.
|
|
3062
|
+
* @function fromObject
|
|
3063
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3064
|
+
* @static
|
|
3065
|
+
* @param {Object.<string,*>} object Plain object
|
|
3066
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent} IngestionFailureEvent
|
|
3067
|
+
*/
|
|
3068
|
+
IngestionFailureEvent.fromObject = function fromObject(object) {
|
|
3069
|
+
if (object instanceof $root.google.pubsub.v1.IngestionFailureEvent)
|
|
3070
|
+
return object;
|
|
3071
|
+
var message = new $root.google.pubsub.v1.IngestionFailureEvent();
|
|
3072
|
+
if (object.topic != null)
|
|
3073
|
+
message.topic = String(object.topic);
|
|
3074
|
+
if (object.errorMessage != null)
|
|
3075
|
+
message.errorMessage = String(object.errorMessage);
|
|
3076
|
+
if (object.cloudStorageFailure != null) {
|
|
3077
|
+
if (typeof object.cloudStorageFailure !== "object")
|
|
3078
|
+
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.cloudStorageFailure: object expected");
|
|
3079
|
+
message.cloudStorageFailure = $root.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.fromObject(object.cloudStorageFailure);
|
|
3080
|
+
}
|
|
3081
|
+
return message;
|
|
3082
|
+
};
|
|
3083
|
+
|
|
3084
|
+
/**
|
|
3085
|
+
* Creates a plain object from an IngestionFailureEvent message. Also converts values to other types if specified.
|
|
3086
|
+
* @function toObject
|
|
3087
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3088
|
+
* @static
|
|
3089
|
+
* @param {google.pubsub.v1.IngestionFailureEvent} message IngestionFailureEvent
|
|
3090
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3091
|
+
* @returns {Object.<string,*>} Plain object
|
|
3092
|
+
*/
|
|
3093
|
+
IngestionFailureEvent.toObject = function toObject(message, options) {
|
|
3094
|
+
if (!options)
|
|
3095
|
+
options = {};
|
|
3096
|
+
var object = {};
|
|
3097
|
+
if (options.defaults) {
|
|
3098
|
+
object.topic = "";
|
|
3099
|
+
object.errorMessage = "";
|
|
3100
|
+
}
|
|
3101
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
3102
|
+
object.topic = message.topic;
|
|
3103
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
|
3104
|
+
object.errorMessage = message.errorMessage;
|
|
3105
|
+
if (message.cloudStorageFailure != null && message.hasOwnProperty("cloudStorageFailure")) {
|
|
3106
|
+
object.cloudStorageFailure = $root.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.toObject(message.cloudStorageFailure, options);
|
|
3107
|
+
if (options.oneofs)
|
|
3108
|
+
object.failure = "cloudStorageFailure";
|
|
3109
|
+
}
|
|
3110
|
+
return object;
|
|
3111
|
+
};
|
|
3112
|
+
|
|
3113
|
+
/**
|
|
3114
|
+
* Converts this IngestionFailureEvent to JSON.
|
|
3115
|
+
* @function toJSON
|
|
3116
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3117
|
+
* @instance
|
|
3118
|
+
* @returns {Object.<string,*>} JSON object
|
|
3119
|
+
*/
|
|
3120
|
+
IngestionFailureEvent.prototype.toJSON = function toJSON() {
|
|
3121
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3122
|
+
};
|
|
3123
|
+
|
|
3124
|
+
/**
|
|
3125
|
+
* Gets the default type url for IngestionFailureEvent
|
|
3126
|
+
* @function getTypeUrl
|
|
3127
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3128
|
+
* @static
|
|
3129
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3130
|
+
* @returns {string} The default type url
|
|
3131
|
+
*/
|
|
3132
|
+
IngestionFailureEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3133
|
+
if (typeUrlPrefix === undefined) {
|
|
3134
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3135
|
+
}
|
|
3136
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionFailureEvent";
|
|
3137
|
+
};
|
|
3138
|
+
|
|
3139
|
+
IngestionFailureEvent.ApiViolationReason = (function() {
|
|
3140
|
+
|
|
3141
|
+
/**
|
|
3142
|
+
* Properties of an ApiViolationReason.
|
|
3143
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3144
|
+
* @interface IApiViolationReason
|
|
3145
|
+
*/
|
|
3146
|
+
|
|
3147
|
+
/**
|
|
3148
|
+
* Constructs a new ApiViolationReason.
|
|
3149
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3150
|
+
* @classdesc Represents an ApiViolationReason.
|
|
3151
|
+
* @implements IApiViolationReason
|
|
3152
|
+
* @constructor
|
|
3153
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IApiViolationReason=} [properties] Properties to set
|
|
3154
|
+
*/
|
|
3155
|
+
function ApiViolationReason(properties) {
|
|
3156
|
+
if (properties)
|
|
3157
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3158
|
+
if (properties[keys[i]] != null)
|
|
3159
|
+
this[keys[i]] = properties[keys[i]];
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
/**
|
|
3163
|
+
* Creates a new ApiViolationReason instance using the specified properties.
|
|
3164
|
+
* @function create
|
|
3165
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.ApiViolationReason
|
|
3166
|
+
* @static
|
|
3167
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IApiViolationReason=} [properties] Properties to set
|
|
3168
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.ApiViolationReason} ApiViolationReason instance
|
|
3169
|
+
*/
|
|
3170
|
+
ApiViolationReason.create = function create(properties) {
|
|
3171
|
+
return new ApiViolationReason(properties);
|
|
3172
|
+
};
|
|
3173
|
+
|
|
3174
|
+
/**
|
|
3175
|
+
* Encodes the specified ApiViolationReason message. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.verify|verify} messages.
|
|
3176
|
+
* @function encode
|
|
3177
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.ApiViolationReason
|
|
3178
|
+
* @static
|
|
3179
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IApiViolationReason} message ApiViolationReason message or plain object to encode
|
|
3180
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3181
|
+
* @returns {$protobuf.Writer} Writer
|
|
3182
|
+
*/
|
|
3183
|
+
ApiViolationReason.encode = function encode(message, writer) {
|
|
3184
|
+
if (!writer)
|
|
3185
|
+
writer = $Writer.create();
|
|
3186
|
+
return writer;
|
|
3187
|
+
};
|
|
3188
|
+
|
|
3189
|
+
/**
|
|
3190
|
+
* Encodes the specified ApiViolationReason message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.verify|verify} messages.
|
|
3191
|
+
* @function encodeDelimited
|
|
3192
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.ApiViolationReason
|
|
3193
|
+
* @static
|
|
3194
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IApiViolationReason} message ApiViolationReason message or plain object to encode
|
|
3195
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3196
|
+
* @returns {$protobuf.Writer} Writer
|
|
3197
|
+
*/
|
|
3198
|
+
ApiViolationReason.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3199
|
+
return this.encode(message, writer).ldelim();
|
|
3200
|
+
};
|
|
3201
|
+
|
|
3202
|
+
/**
|
|
3203
|
+
* Decodes an ApiViolationReason message from the specified reader or buffer.
|
|
3204
|
+
* @function decode
|
|
3205
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.ApiViolationReason
|
|
3206
|
+
* @static
|
|
3207
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3208
|
+
* @param {number} [length] Message length if known beforehand
|
|
3209
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.ApiViolationReason} ApiViolationReason
|
|
3210
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3211
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3212
|
+
*/
|
|
3213
|
+
ApiViolationReason.decode = function decode(reader, length) {
|
|
3214
|
+
if (!(reader instanceof $Reader))
|
|
3215
|
+
reader = $Reader.create(reader);
|
|
3216
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason();
|
|
3217
|
+
while (reader.pos < end) {
|
|
3218
|
+
var tag = reader.uint32();
|
|
3219
|
+
switch (tag >>> 3) {
|
|
3220
|
+
default:
|
|
3221
|
+
reader.skipType(tag & 7);
|
|
3222
|
+
break;
|
|
3223
|
+
}
|
|
3224
|
+
}
|
|
3225
|
+
return message;
|
|
3226
|
+
};
|
|
3227
|
+
|
|
3228
|
+
/**
|
|
3229
|
+
* Decodes an ApiViolationReason message from the specified reader or buffer, length delimited.
|
|
3230
|
+
* @function decodeDelimited
|
|
3231
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.ApiViolationReason
|
|
3232
|
+
* @static
|
|
3233
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3234
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.ApiViolationReason} ApiViolationReason
|
|
3235
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3236
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3237
|
+
*/
|
|
3238
|
+
ApiViolationReason.decodeDelimited = function decodeDelimited(reader) {
|
|
3239
|
+
if (!(reader instanceof $Reader))
|
|
3240
|
+
reader = new $Reader(reader);
|
|
3241
|
+
return this.decode(reader, reader.uint32());
|
|
3242
|
+
};
|
|
3243
|
+
|
|
3244
|
+
/**
|
|
3245
|
+
* Verifies an ApiViolationReason message.
|
|
3246
|
+
* @function verify
|
|
3247
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.ApiViolationReason
|
|
3248
|
+
* @static
|
|
3249
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3250
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3251
|
+
*/
|
|
3252
|
+
ApiViolationReason.verify = function verify(message) {
|
|
3253
|
+
if (typeof message !== "object" || message === null)
|
|
3254
|
+
return "object expected";
|
|
3255
|
+
return null;
|
|
3256
|
+
};
|
|
3257
|
+
|
|
3258
|
+
/**
|
|
3259
|
+
* Creates an ApiViolationReason message from a plain object. Also converts values to their respective internal types.
|
|
3260
|
+
* @function fromObject
|
|
3261
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.ApiViolationReason
|
|
3262
|
+
* @static
|
|
3263
|
+
* @param {Object.<string,*>} object Plain object
|
|
3264
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.ApiViolationReason} ApiViolationReason
|
|
3265
|
+
*/
|
|
3266
|
+
ApiViolationReason.fromObject = function fromObject(object) {
|
|
3267
|
+
if (object instanceof $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason)
|
|
3268
|
+
return object;
|
|
3269
|
+
return new $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason();
|
|
3270
|
+
};
|
|
3271
|
+
|
|
3272
|
+
/**
|
|
3273
|
+
* Creates a plain object from an ApiViolationReason message. Also converts values to other types if specified.
|
|
3274
|
+
* @function toObject
|
|
3275
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.ApiViolationReason
|
|
3276
|
+
* @static
|
|
3277
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.ApiViolationReason} message ApiViolationReason
|
|
3278
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3279
|
+
* @returns {Object.<string,*>} Plain object
|
|
3280
|
+
*/
|
|
3281
|
+
ApiViolationReason.toObject = function toObject() {
|
|
3282
|
+
return {};
|
|
3283
|
+
};
|
|
3284
|
+
|
|
3285
|
+
/**
|
|
3286
|
+
* Converts this ApiViolationReason to JSON.
|
|
3287
|
+
* @function toJSON
|
|
3288
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.ApiViolationReason
|
|
3289
|
+
* @instance
|
|
3290
|
+
* @returns {Object.<string,*>} JSON object
|
|
3291
|
+
*/
|
|
3292
|
+
ApiViolationReason.prototype.toJSON = function toJSON() {
|
|
3293
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3294
|
+
};
|
|
3295
|
+
|
|
3296
|
+
/**
|
|
3297
|
+
* Gets the default type url for ApiViolationReason
|
|
3298
|
+
* @function getTypeUrl
|
|
3299
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.ApiViolationReason
|
|
3300
|
+
* @static
|
|
3301
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3302
|
+
* @returns {string} The default type url
|
|
3303
|
+
*/
|
|
3304
|
+
ApiViolationReason.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3305
|
+
if (typeUrlPrefix === undefined) {
|
|
3306
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3307
|
+
}
|
|
3308
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionFailureEvent.ApiViolationReason";
|
|
3309
|
+
};
|
|
3310
|
+
|
|
3311
|
+
return ApiViolationReason;
|
|
3312
|
+
})();
|
|
3313
|
+
|
|
3314
|
+
IngestionFailureEvent.AvroFailureReason = (function() {
|
|
3315
|
+
|
|
3316
|
+
/**
|
|
3317
|
+
* Properties of an AvroFailureReason.
|
|
3318
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3319
|
+
* @interface IAvroFailureReason
|
|
3320
|
+
*/
|
|
3321
|
+
|
|
3322
|
+
/**
|
|
3323
|
+
* Constructs a new AvroFailureReason.
|
|
3324
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3325
|
+
* @classdesc Represents an AvroFailureReason.
|
|
3326
|
+
* @implements IAvroFailureReason
|
|
3327
|
+
* @constructor
|
|
3328
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason=} [properties] Properties to set
|
|
3329
|
+
*/
|
|
3330
|
+
function AvroFailureReason(properties) {
|
|
3331
|
+
if (properties)
|
|
3332
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3333
|
+
if (properties[keys[i]] != null)
|
|
3334
|
+
this[keys[i]] = properties[keys[i]];
|
|
3335
|
+
}
|
|
3336
|
+
|
|
3337
|
+
/**
|
|
3338
|
+
* Creates a new AvroFailureReason instance using the specified properties.
|
|
3339
|
+
* @function create
|
|
3340
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AvroFailureReason
|
|
3341
|
+
* @static
|
|
3342
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason=} [properties] Properties to set
|
|
3343
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.AvroFailureReason} AvroFailureReason instance
|
|
3344
|
+
*/
|
|
3345
|
+
AvroFailureReason.create = function create(properties) {
|
|
3346
|
+
return new AvroFailureReason(properties);
|
|
3347
|
+
};
|
|
3348
|
+
|
|
3349
|
+
/**
|
|
3350
|
+
* Encodes the specified AvroFailureReason message. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.verify|verify} messages.
|
|
3351
|
+
* @function encode
|
|
3352
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AvroFailureReason
|
|
3353
|
+
* @static
|
|
3354
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason} message AvroFailureReason message or plain object to encode
|
|
3355
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3356
|
+
* @returns {$protobuf.Writer} Writer
|
|
3357
|
+
*/
|
|
3358
|
+
AvroFailureReason.encode = function encode(message, writer) {
|
|
3359
|
+
if (!writer)
|
|
3360
|
+
writer = $Writer.create();
|
|
3361
|
+
return writer;
|
|
3362
|
+
};
|
|
3363
|
+
|
|
3364
|
+
/**
|
|
3365
|
+
* Encodes the specified AvroFailureReason message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.verify|verify} messages.
|
|
3366
|
+
* @function encodeDelimited
|
|
3367
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AvroFailureReason
|
|
3368
|
+
* @static
|
|
3369
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason} message AvroFailureReason message or plain object to encode
|
|
3370
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3371
|
+
* @returns {$protobuf.Writer} Writer
|
|
3372
|
+
*/
|
|
3373
|
+
AvroFailureReason.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3374
|
+
return this.encode(message, writer).ldelim();
|
|
3375
|
+
};
|
|
3376
|
+
|
|
3377
|
+
/**
|
|
3378
|
+
* Decodes an AvroFailureReason message from the specified reader or buffer.
|
|
3379
|
+
* @function decode
|
|
3380
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AvroFailureReason
|
|
3381
|
+
* @static
|
|
3382
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3383
|
+
* @param {number} [length] Message length if known beforehand
|
|
3384
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.AvroFailureReason} AvroFailureReason
|
|
3385
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3386
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3387
|
+
*/
|
|
3388
|
+
AvroFailureReason.decode = function decode(reader, length) {
|
|
3389
|
+
if (!(reader instanceof $Reader))
|
|
3390
|
+
reader = $Reader.create(reader);
|
|
3391
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason();
|
|
3392
|
+
while (reader.pos < end) {
|
|
3393
|
+
var tag = reader.uint32();
|
|
3394
|
+
switch (tag >>> 3) {
|
|
3395
|
+
default:
|
|
3396
|
+
reader.skipType(tag & 7);
|
|
3397
|
+
break;
|
|
3398
|
+
}
|
|
3399
|
+
}
|
|
3400
|
+
return message;
|
|
3401
|
+
};
|
|
3402
|
+
|
|
3403
|
+
/**
|
|
3404
|
+
* Decodes an AvroFailureReason message from the specified reader or buffer, length delimited.
|
|
3405
|
+
* @function decodeDelimited
|
|
3406
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AvroFailureReason
|
|
3407
|
+
* @static
|
|
3408
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3409
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.AvroFailureReason} AvroFailureReason
|
|
3410
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3411
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3412
|
+
*/
|
|
3413
|
+
AvroFailureReason.decodeDelimited = function decodeDelimited(reader) {
|
|
3414
|
+
if (!(reader instanceof $Reader))
|
|
3415
|
+
reader = new $Reader(reader);
|
|
3416
|
+
return this.decode(reader, reader.uint32());
|
|
3417
|
+
};
|
|
3418
|
+
|
|
3419
|
+
/**
|
|
3420
|
+
* Verifies an AvroFailureReason message.
|
|
3421
|
+
* @function verify
|
|
3422
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AvroFailureReason
|
|
3423
|
+
* @static
|
|
3424
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3425
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3426
|
+
*/
|
|
3427
|
+
AvroFailureReason.verify = function verify(message) {
|
|
3428
|
+
if (typeof message !== "object" || message === null)
|
|
3429
|
+
return "object expected";
|
|
3430
|
+
return null;
|
|
3431
|
+
};
|
|
3432
|
+
|
|
3433
|
+
/**
|
|
3434
|
+
* Creates an AvroFailureReason message from a plain object. Also converts values to their respective internal types.
|
|
3435
|
+
* @function fromObject
|
|
3436
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AvroFailureReason
|
|
3437
|
+
* @static
|
|
3438
|
+
* @param {Object.<string,*>} object Plain object
|
|
3439
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.AvroFailureReason} AvroFailureReason
|
|
3440
|
+
*/
|
|
3441
|
+
AvroFailureReason.fromObject = function fromObject(object) {
|
|
3442
|
+
if (object instanceof $root.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason)
|
|
3443
|
+
return object;
|
|
3444
|
+
return new $root.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason();
|
|
3445
|
+
};
|
|
3446
|
+
|
|
3447
|
+
/**
|
|
3448
|
+
* Creates a plain object from an AvroFailureReason message. Also converts values to other types if specified.
|
|
3449
|
+
* @function toObject
|
|
3450
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AvroFailureReason
|
|
3451
|
+
* @static
|
|
3452
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.AvroFailureReason} message AvroFailureReason
|
|
3453
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3454
|
+
* @returns {Object.<string,*>} Plain object
|
|
3455
|
+
*/
|
|
3456
|
+
AvroFailureReason.toObject = function toObject() {
|
|
3457
|
+
return {};
|
|
3458
|
+
};
|
|
3459
|
+
|
|
3460
|
+
/**
|
|
3461
|
+
* Converts this AvroFailureReason to JSON.
|
|
3462
|
+
* @function toJSON
|
|
3463
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AvroFailureReason
|
|
3464
|
+
* @instance
|
|
3465
|
+
* @returns {Object.<string,*>} JSON object
|
|
3466
|
+
*/
|
|
3467
|
+
AvroFailureReason.prototype.toJSON = function toJSON() {
|
|
3468
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3469
|
+
};
|
|
3470
|
+
|
|
3471
|
+
/**
|
|
3472
|
+
* Gets the default type url for AvroFailureReason
|
|
3473
|
+
* @function getTypeUrl
|
|
3474
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.AvroFailureReason
|
|
3475
|
+
* @static
|
|
3476
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3477
|
+
* @returns {string} The default type url
|
|
3478
|
+
*/
|
|
3479
|
+
AvroFailureReason.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3480
|
+
if (typeUrlPrefix === undefined) {
|
|
3481
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3482
|
+
}
|
|
3483
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionFailureEvent.AvroFailureReason";
|
|
3484
|
+
};
|
|
3485
|
+
|
|
3486
|
+
return AvroFailureReason;
|
|
3487
|
+
})();
|
|
3488
|
+
|
|
3489
|
+
IngestionFailureEvent.CloudStorageFailure = (function() {
|
|
3490
|
+
|
|
3491
|
+
/**
|
|
3492
|
+
* Properties of a CloudStorageFailure.
|
|
3493
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3494
|
+
* @interface ICloudStorageFailure
|
|
3495
|
+
* @property {string|null} [bucket] CloudStorageFailure bucket
|
|
3496
|
+
* @property {string|null} [objectName] CloudStorageFailure objectName
|
|
3497
|
+
* @property {number|Long|null} [objectGeneration] CloudStorageFailure objectGeneration
|
|
3498
|
+
* @property {google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason|null} [avroFailureReason] CloudStorageFailure avroFailureReason
|
|
3499
|
+
* @property {google.pubsub.v1.IngestionFailureEvent.IApiViolationReason|null} [apiViolationReason] CloudStorageFailure apiViolationReason
|
|
3500
|
+
*/
|
|
3501
|
+
|
|
3502
|
+
/**
|
|
3503
|
+
* Constructs a new CloudStorageFailure.
|
|
3504
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent
|
|
3505
|
+
* @classdesc Represents a CloudStorageFailure.
|
|
3506
|
+
* @implements ICloudStorageFailure
|
|
3507
|
+
* @constructor
|
|
3508
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure=} [properties] Properties to set
|
|
3509
|
+
*/
|
|
3510
|
+
function CloudStorageFailure(properties) {
|
|
3511
|
+
if (properties)
|
|
3512
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3513
|
+
if (properties[keys[i]] != null)
|
|
3514
|
+
this[keys[i]] = properties[keys[i]];
|
|
3515
|
+
}
|
|
3516
|
+
|
|
3517
|
+
/**
|
|
3518
|
+
* CloudStorageFailure bucket.
|
|
3519
|
+
* @member {string} bucket
|
|
3520
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3521
|
+
* @instance
|
|
3522
|
+
*/
|
|
3523
|
+
CloudStorageFailure.prototype.bucket = "";
|
|
3524
|
+
|
|
3525
|
+
/**
|
|
3526
|
+
* CloudStorageFailure objectName.
|
|
3527
|
+
* @member {string} objectName
|
|
3528
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3529
|
+
* @instance
|
|
3530
|
+
*/
|
|
3531
|
+
CloudStorageFailure.prototype.objectName = "";
|
|
3532
|
+
|
|
3533
|
+
/**
|
|
3534
|
+
* CloudStorageFailure objectGeneration.
|
|
3535
|
+
* @member {number|Long} objectGeneration
|
|
3536
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3537
|
+
* @instance
|
|
3538
|
+
*/
|
|
3539
|
+
CloudStorageFailure.prototype.objectGeneration = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
3540
|
+
|
|
3541
|
+
/**
|
|
3542
|
+
* CloudStorageFailure avroFailureReason.
|
|
3543
|
+
* @member {google.pubsub.v1.IngestionFailureEvent.IAvroFailureReason|null|undefined} avroFailureReason
|
|
3544
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3545
|
+
* @instance
|
|
3546
|
+
*/
|
|
3547
|
+
CloudStorageFailure.prototype.avroFailureReason = null;
|
|
3548
|
+
|
|
3549
|
+
/**
|
|
3550
|
+
* CloudStorageFailure apiViolationReason.
|
|
3551
|
+
* @member {google.pubsub.v1.IngestionFailureEvent.IApiViolationReason|null|undefined} apiViolationReason
|
|
3552
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3553
|
+
* @instance
|
|
3554
|
+
*/
|
|
3555
|
+
CloudStorageFailure.prototype.apiViolationReason = null;
|
|
3556
|
+
|
|
3557
|
+
// OneOf field names bound to virtual getters and setters
|
|
3558
|
+
var $oneOfFields;
|
|
3559
|
+
|
|
3560
|
+
/**
|
|
3561
|
+
* CloudStorageFailure reason.
|
|
3562
|
+
* @member {"avroFailureReason"|"apiViolationReason"|undefined} reason
|
|
3563
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3564
|
+
* @instance
|
|
3565
|
+
*/
|
|
3566
|
+
Object.defineProperty(CloudStorageFailure.prototype, "reason", {
|
|
3567
|
+
get: $util.oneOfGetter($oneOfFields = ["avroFailureReason", "apiViolationReason"]),
|
|
3568
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3569
|
+
});
|
|
3570
|
+
|
|
3571
|
+
/**
|
|
3572
|
+
* Creates a new CloudStorageFailure instance using the specified properties.
|
|
3573
|
+
* @function create
|
|
3574
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3575
|
+
* @static
|
|
3576
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure=} [properties] Properties to set
|
|
3577
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} CloudStorageFailure instance
|
|
3578
|
+
*/
|
|
3579
|
+
CloudStorageFailure.create = function create(properties) {
|
|
3580
|
+
return new CloudStorageFailure(properties);
|
|
3581
|
+
};
|
|
3582
|
+
|
|
3583
|
+
/**
|
|
3584
|
+
* Encodes the specified CloudStorageFailure message. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.verify|verify} messages.
|
|
3585
|
+
* @function encode
|
|
3586
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3587
|
+
* @static
|
|
3588
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure} message CloudStorageFailure message or plain object to encode
|
|
3589
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3590
|
+
* @returns {$protobuf.Writer} Writer
|
|
3591
|
+
*/
|
|
3592
|
+
CloudStorageFailure.encode = function encode(message, writer) {
|
|
3593
|
+
if (!writer)
|
|
3594
|
+
writer = $Writer.create();
|
|
3595
|
+
if (message.bucket != null && Object.hasOwnProperty.call(message, "bucket"))
|
|
3596
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.bucket);
|
|
3597
|
+
if (message.objectName != null && Object.hasOwnProperty.call(message, "objectName"))
|
|
3598
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.objectName);
|
|
3599
|
+
if (message.objectGeneration != null && Object.hasOwnProperty.call(message, "objectGeneration"))
|
|
3600
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.objectGeneration);
|
|
3601
|
+
if (message.avroFailureReason != null && Object.hasOwnProperty.call(message, "avroFailureReason"))
|
|
3602
|
+
$root.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.encode(message.avroFailureReason, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
3603
|
+
if (message.apiViolationReason != null && Object.hasOwnProperty.call(message, "apiViolationReason"))
|
|
3604
|
+
$root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.encode(message.apiViolationReason, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
3605
|
+
return writer;
|
|
3606
|
+
};
|
|
3607
|
+
|
|
3608
|
+
/**
|
|
3609
|
+
* Encodes the specified CloudStorageFailure message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.verify|verify} messages.
|
|
3610
|
+
* @function encodeDelimited
|
|
3611
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3612
|
+
* @static
|
|
3613
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.ICloudStorageFailure} message CloudStorageFailure message or plain object to encode
|
|
3614
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3615
|
+
* @returns {$protobuf.Writer} Writer
|
|
3616
|
+
*/
|
|
3617
|
+
CloudStorageFailure.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3618
|
+
return this.encode(message, writer).ldelim();
|
|
3619
|
+
};
|
|
3620
|
+
|
|
3621
|
+
/**
|
|
3622
|
+
* Decodes a CloudStorageFailure message from the specified reader or buffer.
|
|
3623
|
+
* @function decode
|
|
3624
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3625
|
+
* @static
|
|
3626
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3627
|
+
* @param {number} [length] Message length if known beforehand
|
|
3628
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} CloudStorageFailure
|
|
3629
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3630
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3631
|
+
*/
|
|
3632
|
+
CloudStorageFailure.decode = function decode(reader, length) {
|
|
3633
|
+
if (!(reader instanceof $Reader))
|
|
3634
|
+
reader = $Reader.create(reader);
|
|
3635
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure();
|
|
3636
|
+
while (reader.pos < end) {
|
|
3637
|
+
var tag = reader.uint32();
|
|
3638
|
+
switch (tag >>> 3) {
|
|
3639
|
+
case 1: {
|
|
3640
|
+
message.bucket = reader.string();
|
|
3641
|
+
break;
|
|
3642
|
+
}
|
|
3643
|
+
case 2: {
|
|
3644
|
+
message.objectName = reader.string();
|
|
3645
|
+
break;
|
|
3646
|
+
}
|
|
3647
|
+
case 3: {
|
|
3648
|
+
message.objectGeneration = reader.int64();
|
|
3649
|
+
break;
|
|
3650
|
+
}
|
|
3651
|
+
case 5: {
|
|
3652
|
+
message.avroFailureReason = $root.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.decode(reader, reader.uint32());
|
|
3653
|
+
break;
|
|
3654
|
+
}
|
|
3655
|
+
case 6: {
|
|
3656
|
+
message.apiViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.decode(reader, reader.uint32());
|
|
3657
|
+
break;
|
|
3658
|
+
}
|
|
3659
|
+
default:
|
|
3660
|
+
reader.skipType(tag & 7);
|
|
3661
|
+
break;
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
return message;
|
|
3665
|
+
};
|
|
3666
|
+
|
|
3667
|
+
/**
|
|
3668
|
+
* Decodes a CloudStorageFailure message from the specified reader or buffer, length delimited.
|
|
3669
|
+
* @function decodeDelimited
|
|
3670
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3671
|
+
* @static
|
|
3672
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3673
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} CloudStorageFailure
|
|
3674
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3675
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3676
|
+
*/
|
|
3677
|
+
CloudStorageFailure.decodeDelimited = function decodeDelimited(reader) {
|
|
3678
|
+
if (!(reader instanceof $Reader))
|
|
3679
|
+
reader = new $Reader(reader);
|
|
3680
|
+
return this.decode(reader, reader.uint32());
|
|
3681
|
+
};
|
|
3682
|
+
|
|
3683
|
+
/**
|
|
3684
|
+
* Verifies a CloudStorageFailure message.
|
|
3685
|
+
* @function verify
|
|
3686
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
3687
|
+
* @static
|
|
3688
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3689
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3690
|
+
*/
|
|
3691
|
+
CloudStorageFailure.verify = function verify(message) {
|
|
3692
|
+
if (typeof message !== "object" || message === null)
|
|
3693
|
+
return "object expected";
|
|
3694
|
+
var properties = {};
|
|
3695
|
+
if (message.bucket != null && message.hasOwnProperty("bucket"))
|
|
3696
|
+
if (!$util.isString(message.bucket))
|
|
3697
|
+
return "bucket: string expected";
|
|
3698
|
+
if (message.objectName != null && message.hasOwnProperty("objectName"))
|
|
3699
|
+
if (!$util.isString(message.objectName))
|
|
3700
|
+
return "objectName: string expected";
|
|
3701
|
+
if (message.objectGeneration != null && message.hasOwnProperty("objectGeneration"))
|
|
3702
|
+
if (!$util.isInteger(message.objectGeneration) && !(message.objectGeneration && $util.isInteger(message.objectGeneration.low) && $util.isInteger(message.objectGeneration.high)))
|
|
3703
|
+
return "objectGeneration: integer|Long expected";
|
|
3704
|
+
if (message.avroFailureReason != null && message.hasOwnProperty("avroFailureReason")) {
|
|
3705
|
+
properties.reason = 1;
|
|
3706
|
+
{
|
|
3707
|
+
var error = $root.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.verify(message.avroFailureReason);
|
|
3708
|
+
if (error)
|
|
3709
|
+
return "avroFailureReason." + error;
|
|
3710
|
+
}
|
|
3711
|
+
}
|
|
3712
|
+
if (message.apiViolationReason != null && message.hasOwnProperty("apiViolationReason")) {
|
|
3713
|
+
if (properties.reason === 1)
|
|
3714
|
+
return "reason: multiple values";
|
|
3715
|
+
properties.reason = 1;
|
|
3716
|
+
{
|
|
3717
|
+
var error = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.verify(message.apiViolationReason);
|
|
3718
|
+
if (error)
|
|
3719
|
+
return "apiViolationReason." + error;
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
return null;
|
|
3723
|
+
};
|
|
3724
|
+
|
|
3725
|
+
/**
|
|
3726
|
+
* Creates a CloudStorageFailure message from a plain object. Also converts values to their respective internal types.
|
|
1376
3727
|
* @function fromObject
|
|
1377
|
-
* @memberof google.pubsub.v1.
|
|
3728
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
1378
3729
|
* @static
|
|
1379
3730
|
* @param {Object.<string,*>} object Plain object
|
|
1380
|
-
* @returns {google.pubsub.v1.
|
|
3731
|
+
* @returns {google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} CloudStorageFailure
|
|
1381
3732
|
*/
|
|
1382
|
-
|
|
1383
|
-
if (object instanceof $root.google.pubsub.v1.
|
|
3733
|
+
CloudStorageFailure.fromObject = function fromObject(object) {
|
|
3734
|
+
if (object instanceof $root.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure)
|
|
1384
3735
|
return object;
|
|
1385
|
-
var message = new $root.google.pubsub.v1.
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
message.
|
|
1408
|
-
break;
|
|
1409
|
-
case "STREAM_NOT_FOUND":
|
|
1410
|
-
case 4:
|
|
1411
|
-
message.state = 4;
|
|
1412
|
-
break;
|
|
1413
|
-
case "CONSUMER_NOT_FOUND":
|
|
1414
|
-
case 5:
|
|
1415
|
-
message.state = 5;
|
|
1416
|
-
break;
|
|
3736
|
+
var message = new $root.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure();
|
|
3737
|
+
if (object.bucket != null)
|
|
3738
|
+
message.bucket = String(object.bucket);
|
|
3739
|
+
if (object.objectName != null)
|
|
3740
|
+
message.objectName = String(object.objectName);
|
|
3741
|
+
if (object.objectGeneration != null)
|
|
3742
|
+
if ($util.Long)
|
|
3743
|
+
(message.objectGeneration = $util.Long.fromValue(object.objectGeneration)).unsigned = false;
|
|
3744
|
+
else if (typeof object.objectGeneration === "string")
|
|
3745
|
+
message.objectGeneration = parseInt(object.objectGeneration, 10);
|
|
3746
|
+
else if (typeof object.objectGeneration === "number")
|
|
3747
|
+
message.objectGeneration = object.objectGeneration;
|
|
3748
|
+
else if (typeof object.objectGeneration === "object")
|
|
3749
|
+
message.objectGeneration = new $util.LongBits(object.objectGeneration.low >>> 0, object.objectGeneration.high >>> 0).toNumber();
|
|
3750
|
+
if (object.avroFailureReason != null) {
|
|
3751
|
+
if (typeof object.avroFailureReason !== "object")
|
|
3752
|
+
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.avroFailureReason: object expected");
|
|
3753
|
+
message.avroFailureReason = $root.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.fromObject(object.avroFailureReason);
|
|
3754
|
+
}
|
|
3755
|
+
if (object.apiViolationReason != null) {
|
|
3756
|
+
if (typeof object.apiViolationReason !== "object")
|
|
3757
|
+
throw TypeError(".google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.apiViolationReason: object expected");
|
|
3758
|
+
message.apiViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.fromObject(object.apiViolationReason);
|
|
1417
3759
|
}
|
|
1418
|
-
if (object.streamArn != null)
|
|
1419
|
-
message.streamArn = String(object.streamArn);
|
|
1420
|
-
if (object.consumerArn != null)
|
|
1421
|
-
message.consumerArn = String(object.consumerArn);
|
|
1422
|
-
if (object.awsRoleArn != null)
|
|
1423
|
-
message.awsRoleArn = String(object.awsRoleArn);
|
|
1424
|
-
if (object.gcpServiceAccount != null)
|
|
1425
|
-
message.gcpServiceAccount = String(object.gcpServiceAccount);
|
|
1426
3760
|
return message;
|
|
1427
3761
|
};
|
|
1428
3762
|
|
|
1429
3763
|
/**
|
|
1430
|
-
* Creates a plain object from
|
|
3764
|
+
* Creates a plain object from a CloudStorageFailure message. Also converts values to other types if specified.
|
|
1431
3765
|
* @function toObject
|
|
1432
|
-
* @memberof google.pubsub.v1.
|
|
3766
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
1433
3767
|
* @static
|
|
1434
|
-
* @param {google.pubsub.v1.
|
|
3768
|
+
* @param {google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} message CloudStorageFailure
|
|
1435
3769
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1436
3770
|
* @returns {Object.<string,*>} Plain object
|
|
1437
3771
|
*/
|
|
1438
|
-
|
|
3772
|
+
CloudStorageFailure.toObject = function toObject(message, options) {
|
|
1439
3773
|
if (!options)
|
|
1440
3774
|
options = {};
|
|
1441
3775
|
var object = {};
|
|
1442
3776
|
if (options.defaults) {
|
|
1443
|
-
object.
|
|
1444
|
-
object.
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
3777
|
+
object.bucket = "";
|
|
3778
|
+
object.objectName = "";
|
|
3779
|
+
if ($util.Long) {
|
|
3780
|
+
var long = new $util.Long(0, 0, false);
|
|
3781
|
+
object.objectGeneration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
3782
|
+
} else
|
|
3783
|
+
object.objectGeneration = options.longs === String ? "0" : 0;
|
|
3784
|
+
}
|
|
3785
|
+
if (message.bucket != null && message.hasOwnProperty("bucket"))
|
|
3786
|
+
object.bucket = message.bucket;
|
|
3787
|
+
if (message.objectName != null && message.hasOwnProperty("objectName"))
|
|
3788
|
+
object.objectName = message.objectName;
|
|
3789
|
+
if (message.objectGeneration != null && message.hasOwnProperty("objectGeneration"))
|
|
3790
|
+
if (typeof message.objectGeneration === "number")
|
|
3791
|
+
object.objectGeneration = options.longs === String ? String(message.objectGeneration) : message.objectGeneration;
|
|
3792
|
+
else
|
|
3793
|
+
object.objectGeneration = options.longs === String ? $util.Long.prototype.toString.call(message.objectGeneration) : options.longs === Number ? new $util.LongBits(message.objectGeneration.low >>> 0, message.objectGeneration.high >>> 0).toNumber() : message.objectGeneration;
|
|
3794
|
+
if (message.avroFailureReason != null && message.hasOwnProperty("avroFailureReason")) {
|
|
3795
|
+
object.avroFailureReason = $root.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.toObject(message.avroFailureReason, options);
|
|
3796
|
+
if (options.oneofs)
|
|
3797
|
+
object.reason = "avroFailureReason";
|
|
3798
|
+
}
|
|
3799
|
+
if (message.apiViolationReason != null && message.hasOwnProperty("apiViolationReason")) {
|
|
3800
|
+
object.apiViolationReason = $root.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.toObject(message.apiViolationReason, options);
|
|
3801
|
+
if (options.oneofs)
|
|
3802
|
+
object.reason = "apiViolationReason";
|
|
1448
3803
|
}
|
|
1449
|
-
if (message.state != null && message.hasOwnProperty("state"))
|
|
1450
|
-
object.state = options.enums === String ? $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State[message.state] === undefined ? message.state : $root.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State[message.state] : message.state;
|
|
1451
|
-
if (message.streamArn != null && message.hasOwnProperty("streamArn"))
|
|
1452
|
-
object.streamArn = message.streamArn;
|
|
1453
|
-
if (message.consumerArn != null && message.hasOwnProperty("consumerArn"))
|
|
1454
|
-
object.consumerArn = message.consumerArn;
|
|
1455
|
-
if (message.awsRoleArn != null && message.hasOwnProperty("awsRoleArn"))
|
|
1456
|
-
object.awsRoleArn = message.awsRoleArn;
|
|
1457
|
-
if (message.gcpServiceAccount != null && message.hasOwnProperty("gcpServiceAccount"))
|
|
1458
|
-
object.gcpServiceAccount = message.gcpServiceAccount;
|
|
1459
3804
|
return object;
|
|
1460
3805
|
};
|
|
1461
3806
|
|
|
1462
3807
|
/**
|
|
1463
|
-
* Converts this
|
|
3808
|
+
* Converts this CloudStorageFailure to JSON.
|
|
1464
3809
|
* @function toJSON
|
|
1465
|
-
* @memberof google.pubsub.v1.
|
|
3810
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
1466
3811
|
* @instance
|
|
1467
3812
|
* @returns {Object.<string,*>} JSON object
|
|
1468
3813
|
*/
|
|
1469
|
-
|
|
3814
|
+
CloudStorageFailure.prototype.toJSON = function toJSON() {
|
|
1470
3815
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1471
3816
|
};
|
|
1472
3817
|
|
|
1473
3818
|
/**
|
|
1474
|
-
* Gets the default type url for
|
|
3819
|
+
* Gets the default type url for CloudStorageFailure
|
|
1475
3820
|
* @function getTypeUrl
|
|
1476
|
-
* @memberof google.pubsub.v1.
|
|
3821
|
+
* @memberof google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure
|
|
1477
3822
|
* @static
|
|
1478
3823
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1479
3824
|
* @returns {string} The default type url
|
|
1480
3825
|
*/
|
|
1481
|
-
|
|
3826
|
+
CloudStorageFailure.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1482
3827
|
if (typeUrlPrefix === undefined) {
|
|
1483
3828
|
typeUrlPrefix = "type.googleapis.com";
|
|
1484
3829
|
}
|
|
1485
|
-
return typeUrlPrefix + "/google.pubsub.v1.
|
|
3830
|
+
return typeUrlPrefix + "/google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure";
|
|
1486
3831
|
};
|
|
1487
3832
|
|
|
1488
|
-
|
|
1489
|
-
* State enum.
|
|
1490
|
-
* @name google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State
|
|
1491
|
-
* @enum {number}
|
|
1492
|
-
* @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
|
|
1493
|
-
* @property {number} ACTIVE=1 ACTIVE value
|
|
1494
|
-
* @property {number} KINESIS_PERMISSION_DENIED=2 KINESIS_PERMISSION_DENIED value
|
|
1495
|
-
* @property {number} PUBLISH_PERMISSION_DENIED=3 PUBLISH_PERMISSION_DENIED value
|
|
1496
|
-
* @property {number} STREAM_NOT_FOUND=4 STREAM_NOT_FOUND value
|
|
1497
|
-
* @property {number} CONSUMER_NOT_FOUND=5 CONSUMER_NOT_FOUND value
|
|
1498
|
-
*/
|
|
1499
|
-
AwsKinesis.State = (function() {
|
|
1500
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
1501
|
-
values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
|
|
1502
|
-
values[valuesById[1] = "ACTIVE"] = 1;
|
|
1503
|
-
values[valuesById[2] = "KINESIS_PERMISSION_DENIED"] = 2;
|
|
1504
|
-
values[valuesById[3] = "PUBLISH_PERMISSION_DENIED"] = 3;
|
|
1505
|
-
values[valuesById[4] = "STREAM_NOT_FOUND"] = 4;
|
|
1506
|
-
values[valuesById[5] = "CONSUMER_NOT_FOUND"] = 5;
|
|
1507
|
-
return values;
|
|
1508
|
-
})();
|
|
1509
|
-
|
|
1510
|
-
return AwsKinesis;
|
|
3833
|
+
return CloudStorageFailure;
|
|
1511
3834
|
})();
|
|
1512
3835
|
|
|
1513
|
-
return
|
|
3836
|
+
return IngestionFailureEvent;
|
|
1514
3837
|
})();
|
|
1515
3838
|
|
|
1516
3839
|
v1.Topic = (function() {
|
|
@@ -5902,6 +8225,7 @@
|
|
|
5902
8225
|
* @property {boolean|null} [enableExactlyOnceDelivery] Subscription enableExactlyOnceDelivery
|
|
5903
8226
|
* @property {google.protobuf.IDuration|null} [topicMessageRetentionDuration] Subscription topicMessageRetentionDuration
|
|
5904
8227
|
* @property {google.pubsub.v1.Subscription.State|null} [state] Subscription state
|
|
8228
|
+
* @property {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo|null} [analyticsHubSubscriptionInfo] Subscription analyticsHubSubscriptionInfo
|
|
5905
8229
|
*/
|
|
5906
8230
|
|
|
5907
8231
|
/**
|
|
@@ -6064,6 +8388,14 @@
|
|
|
6064
8388
|
*/
|
|
6065
8389
|
Subscription.prototype.state = 0;
|
|
6066
8390
|
|
|
8391
|
+
/**
|
|
8392
|
+
* Subscription analyticsHubSubscriptionInfo.
|
|
8393
|
+
* @member {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo|null|undefined} analyticsHubSubscriptionInfo
|
|
8394
|
+
* @memberof google.pubsub.v1.Subscription
|
|
8395
|
+
* @instance
|
|
8396
|
+
*/
|
|
8397
|
+
Subscription.prototype.analyticsHubSubscriptionInfo = null;
|
|
8398
|
+
|
|
6067
8399
|
/**
|
|
6068
8400
|
* Creates a new Subscription instance using the specified properties.
|
|
6069
8401
|
* @function create
|
|
@@ -6125,6 +8457,8 @@
|
|
|
6125
8457
|
writer.uint32(/* id 19, wireType 0 =*/152).int32(message.state);
|
|
6126
8458
|
if (message.cloudStorageConfig != null && Object.hasOwnProperty.call(message, "cloudStorageConfig"))
|
|
6127
8459
|
$root.google.pubsub.v1.CloudStorageConfig.encode(message.cloudStorageConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
8460
|
+
if (message.analyticsHubSubscriptionInfo != null && Object.hasOwnProperty.call(message, "analyticsHubSubscriptionInfo"))
|
|
8461
|
+
$root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.encode(message.analyticsHubSubscriptionInfo, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
6128
8462
|
return writer;
|
|
6129
8463
|
};
|
|
6130
8464
|
|
|
@@ -6250,6 +8584,10 @@
|
|
|
6250
8584
|
message.state = reader.int32();
|
|
6251
8585
|
break;
|
|
6252
8586
|
}
|
|
8587
|
+
case 23: {
|
|
8588
|
+
message.analyticsHubSubscriptionInfo = $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.decode(reader, reader.uint32());
|
|
8589
|
+
break;
|
|
8590
|
+
}
|
|
6253
8591
|
default:
|
|
6254
8592
|
reader.skipType(tag & 7);
|
|
6255
8593
|
break;
|
|
@@ -6366,6 +8704,11 @@
|
|
|
6366
8704
|
case 2:
|
|
6367
8705
|
break;
|
|
6368
8706
|
}
|
|
8707
|
+
if (message.analyticsHubSubscriptionInfo != null && message.hasOwnProperty("analyticsHubSubscriptionInfo")) {
|
|
8708
|
+
var error = $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.verify(message.analyticsHubSubscriptionInfo);
|
|
8709
|
+
if (error)
|
|
8710
|
+
return "analyticsHubSubscriptionInfo." + error;
|
|
8711
|
+
}
|
|
6369
8712
|
return null;
|
|
6370
8713
|
};
|
|
6371
8714
|
|
|
@@ -6464,6 +8807,11 @@
|
|
|
6464
8807
|
message.state = 2;
|
|
6465
8808
|
break;
|
|
6466
8809
|
}
|
|
8810
|
+
if (object.analyticsHubSubscriptionInfo != null) {
|
|
8811
|
+
if (typeof object.analyticsHubSubscriptionInfo !== "object")
|
|
8812
|
+
throw TypeError(".google.pubsub.v1.Subscription.analyticsHubSubscriptionInfo: object expected");
|
|
8813
|
+
message.analyticsHubSubscriptionInfo = $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.fromObject(object.analyticsHubSubscriptionInfo);
|
|
8814
|
+
}
|
|
6467
8815
|
return message;
|
|
6468
8816
|
};
|
|
6469
8817
|
|
|
@@ -6500,6 +8848,7 @@
|
|
|
6500
8848
|
object.bigqueryConfig = null;
|
|
6501
8849
|
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
6502
8850
|
object.cloudStorageConfig = null;
|
|
8851
|
+
object.analyticsHubSubscriptionInfo = null;
|
|
6503
8852
|
}
|
|
6504
8853
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
6505
8854
|
object.name = message.name;
|
|
@@ -6541,6 +8890,8 @@
|
|
|
6541
8890
|
object.state = options.enums === String ? $root.google.pubsub.v1.Subscription.State[message.state] === undefined ? message.state : $root.google.pubsub.v1.Subscription.State[message.state] : message.state;
|
|
6542
8891
|
if (message.cloudStorageConfig != null && message.hasOwnProperty("cloudStorageConfig"))
|
|
6543
8892
|
object.cloudStorageConfig = $root.google.pubsub.v1.CloudStorageConfig.toObject(message.cloudStorageConfig, options);
|
|
8893
|
+
if (message.analyticsHubSubscriptionInfo != null && message.hasOwnProperty("analyticsHubSubscriptionInfo"))
|
|
8894
|
+
object.analyticsHubSubscriptionInfo = $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.toObject(message.analyticsHubSubscriptionInfo, options);
|
|
6544
8895
|
return object;
|
|
6545
8896
|
};
|
|
6546
8897
|
|
|
@@ -6586,6 +8937,233 @@
|
|
|
6586
8937
|
return values;
|
|
6587
8938
|
})();
|
|
6588
8939
|
|
|
8940
|
+
Subscription.AnalyticsHubSubscriptionInfo = (function() {
|
|
8941
|
+
|
|
8942
|
+
/**
|
|
8943
|
+
* Properties of an AnalyticsHubSubscriptionInfo.
|
|
8944
|
+
* @memberof google.pubsub.v1.Subscription
|
|
8945
|
+
* @interface IAnalyticsHubSubscriptionInfo
|
|
8946
|
+
* @property {string|null} [listing] AnalyticsHubSubscriptionInfo listing
|
|
8947
|
+
* @property {string|null} [subscription] AnalyticsHubSubscriptionInfo subscription
|
|
8948
|
+
*/
|
|
8949
|
+
|
|
8950
|
+
/**
|
|
8951
|
+
* Constructs a new AnalyticsHubSubscriptionInfo.
|
|
8952
|
+
* @memberof google.pubsub.v1.Subscription
|
|
8953
|
+
* @classdesc Represents an AnalyticsHubSubscriptionInfo.
|
|
8954
|
+
* @implements IAnalyticsHubSubscriptionInfo
|
|
8955
|
+
* @constructor
|
|
8956
|
+
* @param {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo=} [properties] Properties to set
|
|
8957
|
+
*/
|
|
8958
|
+
function AnalyticsHubSubscriptionInfo(properties) {
|
|
8959
|
+
if (properties)
|
|
8960
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8961
|
+
if (properties[keys[i]] != null)
|
|
8962
|
+
this[keys[i]] = properties[keys[i]];
|
|
8963
|
+
}
|
|
8964
|
+
|
|
8965
|
+
/**
|
|
8966
|
+
* AnalyticsHubSubscriptionInfo listing.
|
|
8967
|
+
* @member {string} listing
|
|
8968
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8969
|
+
* @instance
|
|
8970
|
+
*/
|
|
8971
|
+
AnalyticsHubSubscriptionInfo.prototype.listing = "";
|
|
8972
|
+
|
|
8973
|
+
/**
|
|
8974
|
+
* AnalyticsHubSubscriptionInfo subscription.
|
|
8975
|
+
* @member {string} subscription
|
|
8976
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8977
|
+
* @instance
|
|
8978
|
+
*/
|
|
8979
|
+
AnalyticsHubSubscriptionInfo.prototype.subscription = "";
|
|
8980
|
+
|
|
8981
|
+
/**
|
|
8982
|
+
* Creates a new AnalyticsHubSubscriptionInfo instance using the specified properties.
|
|
8983
|
+
* @function create
|
|
8984
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8985
|
+
* @static
|
|
8986
|
+
* @param {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo=} [properties] Properties to set
|
|
8987
|
+
* @returns {google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} AnalyticsHubSubscriptionInfo instance
|
|
8988
|
+
*/
|
|
8989
|
+
AnalyticsHubSubscriptionInfo.create = function create(properties) {
|
|
8990
|
+
return new AnalyticsHubSubscriptionInfo(properties);
|
|
8991
|
+
};
|
|
8992
|
+
|
|
8993
|
+
/**
|
|
8994
|
+
* Encodes the specified AnalyticsHubSubscriptionInfo message. Does not implicitly {@link google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.verify|verify} messages.
|
|
8995
|
+
* @function encode
|
|
8996
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8997
|
+
* @static
|
|
8998
|
+
* @param {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo} message AnalyticsHubSubscriptionInfo message or plain object to encode
|
|
8999
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9000
|
+
* @returns {$protobuf.Writer} Writer
|
|
9001
|
+
*/
|
|
9002
|
+
AnalyticsHubSubscriptionInfo.encode = function encode(message, writer) {
|
|
9003
|
+
if (!writer)
|
|
9004
|
+
writer = $Writer.create();
|
|
9005
|
+
if (message.listing != null && Object.hasOwnProperty.call(message, "listing"))
|
|
9006
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.listing);
|
|
9007
|
+
if (message.subscription != null && Object.hasOwnProperty.call(message, "subscription"))
|
|
9008
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.subscription);
|
|
9009
|
+
return writer;
|
|
9010
|
+
};
|
|
9011
|
+
|
|
9012
|
+
/**
|
|
9013
|
+
* Encodes the specified AnalyticsHubSubscriptionInfo message, length delimited. Does not implicitly {@link google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.verify|verify} messages.
|
|
9014
|
+
* @function encodeDelimited
|
|
9015
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
9016
|
+
* @static
|
|
9017
|
+
* @param {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo} message AnalyticsHubSubscriptionInfo message or plain object to encode
|
|
9018
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9019
|
+
* @returns {$protobuf.Writer} Writer
|
|
9020
|
+
*/
|
|
9021
|
+
AnalyticsHubSubscriptionInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9022
|
+
return this.encode(message, writer).ldelim();
|
|
9023
|
+
};
|
|
9024
|
+
|
|
9025
|
+
/**
|
|
9026
|
+
* Decodes an AnalyticsHubSubscriptionInfo message from the specified reader or buffer.
|
|
9027
|
+
* @function decode
|
|
9028
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
9029
|
+
* @static
|
|
9030
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9031
|
+
* @param {number} [length] Message length if known beforehand
|
|
9032
|
+
* @returns {google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} AnalyticsHubSubscriptionInfo
|
|
9033
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9034
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9035
|
+
*/
|
|
9036
|
+
AnalyticsHubSubscriptionInfo.decode = function decode(reader, length) {
|
|
9037
|
+
if (!(reader instanceof $Reader))
|
|
9038
|
+
reader = $Reader.create(reader);
|
|
9039
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo();
|
|
9040
|
+
while (reader.pos < end) {
|
|
9041
|
+
var tag = reader.uint32();
|
|
9042
|
+
switch (tag >>> 3) {
|
|
9043
|
+
case 1: {
|
|
9044
|
+
message.listing = reader.string();
|
|
9045
|
+
break;
|
|
9046
|
+
}
|
|
9047
|
+
case 2: {
|
|
9048
|
+
message.subscription = reader.string();
|
|
9049
|
+
break;
|
|
9050
|
+
}
|
|
9051
|
+
default:
|
|
9052
|
+
reader.skipType(tag & 7);
|
|
9053
|
+
break;
|
|
9054
|
+
}
|
|
9055
|
+
}
|
|
9056
|
+
return message;
|
|
9057
|
+
};
|
|
9058
|
+
|
|
9059
|
+
/**
|
|
9060
|
+
* Decodes an AnalyticsHubSubscriptionInfo message from the specified reader or buffer, length delimited.
|
|
9061
|
+
* @function decodeDelimited
|
|
9062
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
9063
|
+
* @static
|
|
9064
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9065
|
+
* @returns {google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} AnalyticsHubSubscriptionInfo
|
|
9066
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9067
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9068
|
+
*/
|
|
9069
|
+
AnalyticsHubSubscriptionInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
9070
|
+
if (!(reader instanceof $Reader))
|
|
9071
|
+
reader = new $Reader(reader);
|
|
9072
|
+
return this.decode(reader, reader.uint32());
|
|
9073
|
+
};
|
|
9074
|
+
|
|
9075
|
+
/**
|
|
9076
|
+
* Verifies an AnalyticsHubSubscriptionInfo message.
|
|
9077
|
+
* @function verify
|
|
9078
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
9079
|
+
* @static
|
|
9080
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9081
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9082
|
+
*/
|
|
9083
|
+
AnalyticsHubSubscriptionInfo.verify = function verify(message) {
|
|
9084
|
+
if (typeof message !== "object" || message === null)
|
|
9085
|
+
return "object expected";
|
|
9086
|
+
if (message.listing != null && message.hasOwnProperty("listing"))
|
|
9087
|
+
if (!$util.isString(message.listing))
|
|
9088
|
+
return "listing: string expected";
|
|
9089
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
9090
|
+
if (!$util.isString(message.subscription))
|
|
9091
|
+
return "subscription: string expected";
|
|
9092
|
+
return null;
|
|
9093
|
+
};
|
|
9094
|
+
|
|
9095
|
+
/**
|
|
9096
|
+
* Creates an AnalyticsHubSubscriptionInfo message from a plain object. Also converts values to their respective internal types.
|
|
9097
|
+
* @function fromObject
|
|
9098
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
9099
|
+
* @static
|
|
9100
|
+
* @param {Object.<string,*>} object Plain object
|
|
9101
|
+
* @returns {google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} AnalyticsHubSubscriptionInfo
|
|
9102
|
+
*/
|
|
9103
|
+
AnalyticsHubSubscriptionInfo.fromObject = function fromObject(object) {
|
|
9104
|
+
if (object instanceof $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo)
|
|
9105
|
+
return object;
|
|
9106
|
+
var message = new $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo();
|
|
9107
|
+
if (object.listing != null)
|
|
9108
|
+
message.listing = String(object.listing);
|
|
9109
|
+
if (object.subscription != null)
|
|
9110
|
+
message.subscription = String(object.subscription);
|
|
9111
|
+
return message;
|
|
9112
|
+
};
|
|
9113
|
+
|
|
9114
|
+
/**
|
|
9115
|
+
* Creates a plain object from an AnalyticsHubSubscriptionInfo message. Also converts values to other types if specified.
|
|
9116
|
+
* @function toObject
|
|
9117
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
9118
|
+
* @static
|
|
9119
|
+
* @param {google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} message AnalyticsHubSubscriptionInfo
|
|
9120
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9121
|
+
* @returns {Object.<string,*>} Plain object
|
|
9122
|
+
*/
|
|
9123
|
+
AnalyticsHubSubscriptionInfo.toObject = function toObject(message, options) {
|
|
9124
|
+
if (!options)
|
|
9125
|
+
options = {};
|
|
9126
|
+
var object = {};
|
|
9127
|
+
if (options.defaults) {
|
|
9128
|
+
object.listing = "";
|
|
9129
|
+
object.subscription = "";
|
|
9130
|
+
}
|
|
9131
|
+
if (message.listing != null && message.hasOwnProperty("listing"))
|
|
9132
|
+
object.listing = message.listing;
|
|
9133
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
9134
|
+
object.subscription = message.subscription;
|
|
9135
|
+
return object;
|
|
9136
|
+
};
|
|
9137
|
+
|
|
9138
|
+
/**
|
|
9139
|
+
* Converts this AnalyticsHubSubscriptionInfo to JSON.
|
|
9140
|
+
* @function toJSON
|
|
9141
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
9142
|
+
* @instance
|
|
9143
|
+
* @returns {Object.<string,*>} JSON object
|
|
9144
|
+
*/
|
|
9145
|
+
AnalyticsHubSubscriptionInfo.prototype.toJSON = function toJSON() {
|
|
9146
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9147
|
+
};
|
|
9148
|
+
|
|
9149
|
+
/**
|
|
9150
|
+
* Gets the default type url for AnalyticsHubSubscriptionInfo
|
|
9151
|
+
* @function getTypeUrl
|
|
9152
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
9153
|
+
* @static
|
|
9154
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9155
|
+
* @returns {string} The default type url
|
|
9156
|
+
*/
|
|
9157
|
+
AnalyticsHubSubscriptionInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
9158
|
+
if (typeUrlPrefix === undefined) {
|
|
9159
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
9160
|
+
}
|
|
9161
|
+
return typeUrlPrefix + "/google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo";
|
|
9162
|
+
};
|
|
9163
|
+
|
|
9164
|
+
return AnalyticsHubSubscriptionInfo;
|
|
9165
|
+
})();
|
|
9166
|
+
|
|
6589
9167
|
return Subscription;
|
|
6590
9168
|
})();
|
|
6591
9169
|
|