@google-cloud/pubsub 4.7.2 → 4.8.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 +8 -0
- package/README.md +4 -2
- package/build/protos/google/pubsub/v1/pubsub.proto +141 -1
- package/build/protos/protos.d.ts +660 -1
- package/build/protos/protos.js +1656 -50
- package/build/protos/protos.json +163 -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-stream.js +3 -2
- package/build/src/message-stream.js.map +1 -1
- package/build/src/subscriber.d.ts +1 -1
- 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 +7 -3
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
|
|
|
@@ -1457,60 +1521,1347 @@
|
|
|
1457
1521
|
if (message.gcpServiceAccount != null && message.hasOwnProperty("gcpServiceAccount"))
|
|
1458
1522
|
object.gcpServiceAccount = message.gcpServiceAccount;
|
|
1459
1523
|
return object;
|
|
1460
|
-
};
|
|
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
|
+
};
|
|
1461
2795
|
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
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
|
+
};
|
|
1472
2815
|
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
1484
|
-
}
|
|
1485
|
-
return typeUrlPrefix + "/google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis";
|
|
1486
|
-
};
|
|
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
|
+
};
|
|
1487
2826
|
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
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
|
-
})();
|
|
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
|
+
};
|
|
1509
2841
|
|
|
1510
|
-
|
|
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;
|
|
1511
2862
|
})();
|
|
1512
2863
|
|
|
1513
|
-
return
|
|
2864
|
+
return PlatformLogsSettings;
|
|
1514
2865
|
})();
|
|
1515
2866
|
|
|
1516
2867
|
v1.Topic = (function() {
|
|
@@ -5902,6 +7253,7 @@
|
|
|
5902
7253
|
* @property {boolean|null} [enableExactlyOnceDelivery] Subscription enableExactlyOnceDelivery
|
|
5903
7254
|
* @property {google.protobuf.IDuration|null} [topicMessageRetentionDuration] Subscription topicMessageRetentionDuration
|
|
5904
7255
|
* @property {google.pubsub.v1.Subscription.State|null} [state] Subscription state
|
|
7256
|
+
* @property {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo|null} [analyticsHubSubscriptionInfo] Subscription analyticsHubSubscriptionInfo
|
|
5905
7257
|
*/
|
|
5906
7258
|
|
|
5907
7259
|
/**
|
|
@@ -6064,6 +7416,14 @@
|
|
|
6064
7416
|
*/
|
|
6065
7417
|
Subscription.prototype.state = 0;
|
|
6066
7418
|
|
|
7419
|
+
/**
|
|
7420
|
+
* Subscription analyticsHubSubscriptionInfo.
|
|
7421
|
+
* @member {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo|null|undefined} analyticsHubSubscriptionInfo
|
|
7422
|
+
* @memberof google.pubsub.v1.Subscription
|
|
7423
|
+
* @instance
|
|
7424
|
+
*/
|
|
7425
|
+
Subscription.prototype.analyticsHubSubscriptionInfo = null;
|
|
7426
|
+
|
|
6067
7427
|
/**
|
|
6068
7428
|
* Creates a new Subscription instance using the specified properties.
|
|
6069
7429
|
* @function create
|
|
@@ -6125,6 +7485,8 @@
|
|
|
6125
7485
|
writer.uint32(/* id 19, wireType 0 =*/152).int32(message.state);
|
|
6126
7486
|
if (message.cloudStorageConfig != null && Object.hasOwnProperty.call(message, "cloudStorageConfig"))
|
|
6127
7487
|
$root.google.pubsub.v1.CloudStorageConfig.encode(message.cloudStorageConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
7488
|
+
if (message.analyticsHubSubscriptionInfo != null && Object.hasOwnProperty.call(message, "analyticsHubSubscriptionInfo"))
|
|
7489
|
+
$root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.encode(message.analyticsHubSubscriptionInfo, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
6128
7490
|
return writer;
|
|
6129
7491
|
};
|
|
6130
7492
|
|
|
@@ -6250,6 +7612,10 @@
|
|
|
6250
7612
|
message.state = reader.int32();
|
|
6251
7613
|
break;
|
|
6252
7614
|
}
|
|
7615
|
+
case 23: {
|
|
7616
|
+
message.analyticsHubSubscriptionInfo = $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.decode(reader, reader.uint32());
|
|
7617
|
+
break;
|
|
7618
|
+
}
|
|
6253
7619
|
default:
|
|
6254
7620
|
reader.skipType(tag & 7);
|
|
6255
7621
|
break;
|
|
@@ -6366,6 +7732,11 @@
|
|
|
6366
7732
|
case 2:
|
|
6367
7733
|
break;
|
|
6368
7734
|
}
|
|
7735
|
+
if (message.analyticsHubSubscriptionInfo != null && message.hasOwnProperty("analyticsHubSubscriptionInfo")) {
|
|
7736
|
+
var error = $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.verify(message.analyticsHubSubscriptionInfo);
|
|
7737
|
+
if (error)
|
|
7738
|
+
return "analyticsHubSubscriptionInfo." + error;
|
|
7739
|
+
}
|
|
6369
7740
|
return null;
|
|
6370
7741
|
};
|
|
6371
7742
|
|
|
@@ -6464,6 +7835,11 @@
|
|
|
6464
7835
|
message.state = 2;
|
|
6465
7836
|
break;
|
|
6466
7837
|
}
|
|
7838
|
+
if (object.analyticsHubSubscriptionInfo != null) {
|
|
7839
|
+
if (typeof object.analyticsHubSubscriptionInfo !== "object")
|
|
7840
|
+
throw TypeError(".google.pubsub.v1.Subscription.analyticsHubSubscriptionInfo: object expected");
|
|
7841
|
+
message.analyticsHubSubscriptionInfo = $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.fromObject(object.analyticsHubSubscriptionInfo);
|
|
7842
|
+
}
|
|
6467
7843
|
return message;
|
|
6468
7844
|
};
|
|
6469
7845
|
|
|
@@ -6500,6 +7876,7 @@
|
|
|
6500
7876
|
object.bigqueryConfig = null;
|
|
6501
7877
|
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
6502
7878
|
object.cloudStorageConfig = null;
|
|
7879
|
+
object.analyticsHubSubscriptionInfo = null;
|
|
6503
7880
|
}
|
|
6504
7881
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
6505
7882
|
object.name = message.name;
|
|
@@ -6541,6 +7918,8 @@
|
|
|
6541
7918
|
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
7919
|
if (message.cloudStorageConfig != null && message.hasOwnProperty("cloudStorageConfig"))
|
|
6543
7920
|
object.cloudStorageConfig = $root.google.pubsub.v1.CloudStorageConfig.toObject(message.cloudStorageConfig, options);
|
|
7921
|
+
if (message.analyticsHubSubscriptionInfo != null && message.hasOwnProperty("analyticsHubSubscriptionInfo"))
|
|
7922
|
+
object.analyticsHubSubscriptionInfo = $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.toObject(message.analyticsHubSubscriptionInfo, options);
|
|
6544
7923
|
return object;
|
|
6545
7924
|
};
|
|
6546
7925
|
|
|
@@ -6586,6 +7965,233 @@
|
|
|
6586
7965
|
return values;
|
|
6587
7966
|
})();
|
|
6588
7967
|
|
|
7968
|
+
Subscription.AnalyticsHubSubscriptionInfo = (function() {
|
|
7969
|
+
|
|
7970
|
+
/**
|
|
7971
|
+
* Properties of an AnalyticsHubSubscriptionInfo.
|
|
7972
|
+
* @memberof google.pubsub.v1.Subscription
|
|
7973
|
+
* @interface IAnalyticsHubSubscriptionInfo
|
|
7974
|
+
* @property {string|null} [listing] AnalyticsHubSubscriptionInfo listing
|
|
7975
|
+
* @property {string|null} [subscription] AnalyticsHubSubscriptionInfo subscription
|
|
7976
|
+
*/
|
|
7977
|
+
|
|
7978
|
+
/**
|
|
7979
|
+
* Constructs a new AnalyticsHubSubscriptionInfo.
|
|
7980
|
+
* @memberof google.pubsub.v1.Subscription
|
|
7981
|
+
* @classdesc Represents an AnalyticsHubSubscriptionInfo.
|
|
7982
|
+
* @implements IAnalyticsHubSubscriptionInfo
|
|
7983
|
+
* @constructor
|
|
7984
|
+
* @param {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo=} [properties] Properties to set
|
|
7985
|
+
*/
|
|
7986
|
+
function AnalyticsHubSubscriptionInfo(properties) {
|
|
7987
|
+
if (properties)
|
|
7988
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7989
|
+
if (properties[keys[i]] != null)
|
|
7990
|
+
this[keys[i]] = properties[keys[i]];
|
|
7991
|
+
}
|
|
7992
|
+
|
|
7993
|
+
/**
|
|
7994
|
+
* AnalyticsHubSubscriptionInfo listing.
|
|
7995
|
+
* @member {string} listing
|
|
7996
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
7997
|
+
* @instance
|
|
7998
|
+
*/
|
|
7999
|
+
AnalyticsHubSubscriptionInfo.prototype.listing = "";
|
|
8000
|
+
|
|
8001
|
+
/**
|
|
8002
|
+
* AnalyticsHubSubscriptionInfo subscription.
|
|
8003
|
+
* @member {string} subscription
|
|
8004
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8005
|
+
* @instance
|
|
8006
|
+
*/
|
|
8007
|
+
AnalyticsHubSubscriptionInfo.prototype.subscription = "";
|
|
8008
|
+
|
|
8009
|
+
/**
|
|
8010
|
+
* Creates a new AnalyticsHubSubscriptionInfo instance using the specified properties.
|
|
8011
|
+
* @function create
|
|
8012
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8013
|
+
* @static
|
|
8014
|
+
* @param {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo=} [properties] Properties to set
|
|
8015
|
+
* @returns {google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} AnalyticsHubSubscriptionInfo instance
|
|
8016
|
+
*/
|
|
8017
|
+
AnalyticsHubSubscriptionInfo.create = function create(properties) {
|
|
8018
|
+
return new AnalyticsHubSubscriptionInfo(properties);
|
|
8019
|
+
};
|
|
8020
|
+
|
|
8021
|
+
/**
|
|
8022
|
+
* Encodes the specified AnalyticsHubSubscriptionInfo message. Does not implicitly {@link google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.verify|verify} messages.
|
|
8023
|
+
* @function encode
|
|
8024
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8025
|
+
* @static
|
|
8026
|
+
* @param {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo} message AnalyticsHubSubscriptionInfo message or plain object to encode
|
|
8027
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8028
|
+
* @returns {$protobuf.Writer} Writer
|
|
8029
|
+
*/
|
|
8030
|
+
AnalyticsHubSubscriptionInfo.encode = function encode(message, writer) {
|
|
8031
|
+
if (!writer)
|
|
8032
|
+
writer = $Writer.create();
|
|
8033
|
+
if (message.listing != null && Object.hasOwnProperty.call(message, "listing"))
|
|
8034
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.listing);
|
|
8035
|
+
if (message.subscription != null && Object.hasOwnProperty.call(message, "subscription"))
|
|
8036
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.subscription);
|
|
8037
|
+
return writer;
|
|
8038
|
+
};
|
|
8039
|
+
|
|
8040
|
+
/**
|
|
8041
|
+
* Encodes the specified AnalyticsHubSubscriptionInfo message, length delimited. Does not implicitly {@link google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.verify|verify} messages.
|
|
8042
|
+
* @function encodeDelimited
|
|
8043
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8044
|
+
* @static
|
|
8045
|
+
* @param {google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo} message AnalyticsHubSubscriptionInfo message or plain object to encode
|
|
8046
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8047
|
+
* @returns {$protobuf.Writer} Writer
|
|
8048
|
+
*/
|
|
8049
|
+
AnalyticsHubSubscriptionInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8050
|
+
return this.encode(message, writer).ldelim();
|
|
8051
|
+
};
|
|
8052
|
+
|
|
8053
|
+
/**
|
|
8054
|
+
* Decodes an AnalyticsHubSubscriptionInfo message from the specified reader or buffer.
|
|
8055
|
+
* @function decode
|
|
8056
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8057
|
+
* @static
|
|
8058
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8059
|
+
* @param {number} [length] Message length if known beforehand
|
|
8060
|
+
* @returns {google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} AnalyticsHubSubscriptionInfo
|
|
8061
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8062
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8063
|
+
*/
|
|
8064
|
+
AnalyticsHubSubscriptionInfo.decode = function decode(reader, length) {
|
|
8065
|
+
if (!(reader instanceof $Reader))
|
|
8066
|
+
reader = $Reader.create(reader);
|
|
8067
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo();
|
|
8068
|
+
while (reader.pos < end) {
|
|
8069
|
+
var tag = reader.uint32();
|
|
8070
|
+
switch (tag >>> 3) {
|
|
8071
|
+
case 1: {
|
|
8072
|
+
message.listing = reader.string();
|
|
8073
|
+
break;
|
|
8074
|
+
}
|
|
8075
|
+
case 2: {
|
|
8076
|
+
message.subscription = reader.string();
|
|
8077
|
+
break;
|
|
8078
|
+
}
|
|
8079
|
+
default:
|
|
8080
|
+
reader.skipType(tag & 7);
|
|
8081
|
+
break;
|
|
8082
|
+
}
|
|
8083
|
+
}
|
|
8084
|
+
return message;
|
|
8085
|
+
};
|
|
8086
|
+
|
|
8087
|
+
/**
|
|
8088
|
+
* Decodes an AnalyticsHubSubscriptionInfo message from the specified reader or buffer, length delimited.
|
|
8089
|
+
* @function decodeDelimited
|
|
8090
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8091
|
+
* @static
|
|
8092
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8093
|
+
* @returns {google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} AnalyticsHubSubscriptionInfo
|
|
8094
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8095
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8096
|
+
*/
|
|
8097
|
+
AnalyticsHubSubscriptionInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
8098
|
+
if (!(reader instanceof $Reader))
|
|
8099
|
+
reader = new $Reader(reader);
|
|
8100
|
+
return this.decode(reader, reader.uint32());
|
|
8101
|
+
};
|
|
8102
|
+
|
|
8103
|
+
/**
|
|
8104
|
+
* Verifies an AnalyticsHubSubscriptionInfo message.
|
|
8105
|
+
* @function verify
|
|
8106
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8107
|
+
* @static
|
|
8108
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8109
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8110
|
+
*/
|
|
8111
|
+
AnalyticsHubSubscriptionInfo.verify = function verify(message) {
|
|
8112
|
+
if (typeof message !== "object" || message === null)
|
|
8113
|
+
return "object expected";
|
|
8114
|
+
if (message.listing != null && message.hasOwnProperty("listing"))
|
|
8115
|
+
if (!$util.isString(message.listing))
|
|
8116
|
+
return "listing: string expected";
|
|
8117
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
8118
|
+
if (!$util.isString(message.subscription))
|
|
8119
|
+
return "subscription: string expected";
|
|
8120
|
+
return null;
|
|
8121
|
+
};
|
|
8122
|
+
|
|
8123
|
+
/**
|
|
8124
|
+
* Creates an AnalyticsHubSubscriptionInfo message from a plain object. Also converts values to their respective internal types.
|
|
8125
|
+
* @function fromObject
|
|
8126
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8127
|
+
* @static
|
|
8128
|
+
* @param {Object.<string,*>} object Plain object
|
|
8129
|
+
* @returns {google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} AnalyticsHubSubscriptionInfo
|
|
8130
|
+
*/
|
|
8131
|
+
AnalyticsHubSubscriptionInfo.fromObject = function fromObject(object) {
|
|
8132
|
+
if (object instanceof $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo)
|
|
8133
|
+
return object;
|
|
8134
|
+
var message = new $root.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo();
|
|
8135
|
+
if (object.listing != null)
|
|
8136
|
+
message.listing = String(object.listing);
|
|
8137
|
+
if (object.subscription != null)
|
|
8138
|
+
message.subscription = String(object.subscription);
|
|
8139
|
+
return message;
|
|
8140
|
+
};
|
|
8141
|
+
|
|
8142
|
+
/**
|
|
8143
|
+
* Creates a plain object from an AnalyticsHubSubscriptionInfo message. Also converts values to other types if specified.
|
|
8144
|
+
* @function toObject
|
|
8145
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8146
|
+
* @static
|
|
8147
|
+
* @param {google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} message AnalyticsHubSubscriptionInfo
|
|
8148
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8149
|
+
* @returns {Object.<string,*>} Plain object
|
|
8150
|
+
*/
|
|
8151
|
+
AnalyticsHubSubscriptionInfo.toObject = function toObject(message, options) {
|
|
8152
|
+
if (!options)
|
|
8153
|
+
options = {};
|
|
8154
|
+
var object = {};
|
|
8155
|
+
if (options.defaults) {
|
|
8156
|
+
object.listing = "";
|
|
8157
|
+
object.subscription = "";
|
|
8158
|
+
}
|
|
8159
|
+
if (message.listing != null && message.hasOwnProperty("listing"))
|
|
8160
|
+
object.listing = message.listing;
|
|
8161
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
8162
|
+
object.subscription = message.subscription;
|
|
8163
|
+
return object;
|
|
8164
|
+
};
|
|
8165
|
+
|
|
8166
|
+
/**
|
|
8167
|
+
* Converts this AnalyticsHubSubscriptionInfo to JSON.
|
|
8168
|
+
* @function toJSON
|
|
8169
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8170
|
+
* @instance
|
|
8171
|
+
* @returns {Object.<string,*>} JSON object
|
|
8172
|
+
*/
|
|
8173
|
+
AnalyticsHubSubscriptionInfo.prototype.toJSON = function toJSON() {
|
|
8174
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8175
|
+
};
|
|
8176
|
+
|
|
8177
|
+
/**
|
|
8178
|
+
* Gets the default type url for AnalyticsHubSubscriptionInfo
|
|
8179
|
+
* @function getTypeUrl
|
|
8180
|
+
* @memberof google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo
|
|
8181
|
+
* @static
|
|
8182
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8183
|
+
* @returns {string} The default type url
|
|
8184
|
+
*/
|
|
8185
|
+
AnalyticsHubSubscriptionInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
8186
|
+
if (typeUrlPrefix === undefined) {
|
|
8187
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
8188
|
+
}
|
|
8189
|
+
return typeUrlPrefix + "/google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo";
|
|
8190
|
+
};
|
|
8191
|
+
|
|
8192
|
+
return AnalyticsHubSubscriptionInfo;
|
|
8193
|
+
})();
|
|
8194
|
+
|
|
6589
8195
|
return Subscription;
|
|
6590
8196
|
})();
|
|
6591
8197
|
|