@google-cloud/pubsub 3.5.2 → 3.7.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 +14 -0
- package/build/protos/google/pubsub/v1/pubsub.proto +105 -7
- package/build/protos/google/pubsub/v1/schema.proto +1 -1
- package/build/protos/protos.d.ts +550 -0
- package/build/protos/protos.js +1638 -307
- package/build/protos/protos.json +100 -0
- package/build/src/publisher/index.js +2 -3
- package/build/src/publisher/index.js.map +1 -1
- package/build/src/publisher/message-queues.d.ts +8 -12
- package/build/src/publisher/message-queues.js +79 -62
- package/build/src/publisher/message-queues.js.map +1 -1
- package/build/src/v1/schema_service_client_config.json +23 -10
- package/build/src/v1/subscriber_client.d.ts +3 -0
- package/build/src/v1/subscriber_client.js.map +1 -1
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -5189,6 +5189,7 @@
|
|
|
5189
5189
|
* @property {string|null} [topic] Subscription topic
|
|
5190
5190
|
* @property {google.pubsub.v1.IPushConfig|null} [pushConfig] Subscription pushConfig
|
|
5191
5191
|
* @property {google.pubsub.v1.IBigQueryConfig|null} [bigqueryConfig] Subscription bigqueryConfig
|
|
5192
|
+
* @property {google.pubsub.v1.ICloudStorageConfig|null} [cloudStorageConfig] Subscription cloudStorageConfig
|
|
5192
5193
|
* @property {number|null} [ackDeadlineSeconds] Subscription ackDeadlineSeconds
|
|
5193
5194
|
* @property {boolean|null} [retainAckedMessages] Subscription retainAckedMessages
|
|
5194
5195
|
* @property {google.protobuf.IDuration|null} [messageRetentionDuration] Subscription messageRetentionDuration
|
|
@@ -5252,6 +5253,14 @@
|
|
|
5252
5253
|
*/
|
|
5253
5254
|
Subscription.prototype.bigqueryConfig = null;
|
|
5254
5255
|
|
|
5256
|
+
/**
|
|
5257
|
+
* Subscription cloudStorageConfig.
|
|
5258
|
+
* @member {google.pubsub.v1.ICloudStorageConfig|null|undefined} cloudStorageConfig
|
|
5259
|
+
* @memberof google.pubsub.v1.Subscription
|
|
5260
|
+
* @instance
|
|
5261
|
+
*/
|
|
5262
|
+
Subscription.prototype.cloudStorageConfig = null;
|
|
5263
|
+
|
|
5255
5264
|
/**
|
|
5256
5265
|
* Subscription ackDeadlineSeconds.
|
|
5257
5266
|
* @member {number} ackDeadlineSeconds
|
|
@@ -5415,6 +5424,8 @@
|
|
|
5415
5424
|
$root.google.pubsub.v1.BigQueryConfig.encode(message.bigqueryConfig, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
5416
5425
|
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
5417
5426
|
writer.uint32(/* id 19, wireType 0 =*/152).int32(message.state);
|
|
5427
|
+
if (message.cloudStorageConfig != null && Object.hasOwnProperty.call(message, "cloudStorageConfig"))
|
|
5428
|
+
$root.google.pubsub.v1.CloudStorageConfig.encode(message.cloudStorageConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
5418
5429
|
return writer;
|
|
5419
5430
|
};
|
|
5420
5431
|
|
|
@@ -5465,6 +5476,10 @@
|
|
|
5465
5476
|
message.bigqueryConfig = $root.google.pubsub.v1.BigQueryConfig.decode(reader, reader.uint32());
|
|
5466
5477
|
break;
|
|
5467
5478
|
}
|
|
5479
|
+
case 22: {
|
|
5480
|
+
message.cloudStorageConfig = $root.google.pubsub.v1.CloudStorageConfig.decode(reader, reader.uint32());
|
|
5481
|
+
break;
|
|
5482
|
+
}
|
|
5468
5483
|
case 5: {
|
|
5469
5484
|
message.ackDeadlineSeconds = reader.int32();
|
|
5470
5485
|
break;
|
|
@@ -5587,6 +5602,11 @@
|
|
|
5587
5602
|
if (error)
|
|
5588
5603
|
return "bigqueryConfig." + error;
|
|
5589
5604
|
}
|
|
5605
|
+
if (message.cloudStorageConfig != null && message.hasOwnProperty("cloudStorageConfig")) {
|
|
5606
|
+
var error = $root.google.pubsub.v1.CloudStorageConfig.verify(message.cloudStorageConfig);
|
|
5607
|
+
if (error)
|
|
5608
|
+
return "cloudStorageConfig." + error;
|
|
5609
|
+
}
|
|
5590
5610
|
if (message.ackDeadlineSeconds != null && message.hasOwnProperty("ackDeadlineSeconds"))
|
|
5591
5611
|
if (!$util.isInteger(message.ackDeadlineSeconds))
|
|
5592
5612
|
return "ackDeadlineSeconds: integer expected";
|
|
@@ -5676,6 +5696,11 @@
|
|
|
5676
5696
|
throw TypeError(".google.pubsub.v1.Subscription.bigqueryConfig: object expected");
|
|
5677
5697
|
message.bigqueryConfig = $root.google.pubsub.v1.BigQueryConfig.fromObject(object.bigqueryConfig);
|
|
5678
5698
|
}
|
|
5699
|
+
if (object.cloudStorageConfig != null) {
|
|
5700
|
+
if (typeof object.cloudStorageConfig !== "object")
|
|
5701
|
+
throw TypeError(".google.pubsub.v1.Subscription.cloudStorageConfig: object expected");
|
|
5702
|
+
message.cloudStorageConfig = $root.google.pubsub.v1.CloudStorageConfig.fromObject(object.cloudStorageConfig);
|
|
5703
|
+
}
|
|
5679
5704
|
if (object.ackDeadlineSeconds != null)
|
|
5680
5705
|
message.ackDeadlineSeconds = object.ackDeadlineSeconds | 0;
|
|
5681
5706
|
if (object.retainAckedMessages != null)
|
|
@@ -5775,6 +5800,7 @@
|
|
|
5775
5800
|
object.topicMessageRetentionDuration = null;
|
|
5776
5801
|
object.bigqueryConfig = null;
|
|
5777
5802
|
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
5803
|
+
object.cloudStorageConfig = null;
|
|
5778
5804
|
}
|
|
5779
5805
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
5780
5806
|
object.name = message.name;
|
|
@@ -5814,6 +5840,8 @@
|
|
|
5814
5840
|
object.bigqueryConfig = $root.google.pubsub.v1.BigQueryConfig.toObject(message.bigqueryConfig, options);
|
|
5815
5841
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
5816
5842
|
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;
|
|
5843
|
+
if (message.cloudStorageConfig != null && message.hasOwnProperty("cloudStorageConfig"))
|
|
5844
|
+
object.cloudStorageConfig = $root.google.pubsub.v1.CloudStorageConfig.toObject(message.cloudStorageConfig, options);
|
|
5817
5845
|
return object;
|
|
5818
5846
|
};
|
|
5819
5847
|
|
|
@@ -6543,6 +6571,8 @@
|
|
|
6543
6571
|
* @property {string|null} [pushEndpoint] PushConfig pushEndpoint
|
|
6544
6572
|
* @property {Object.<string,string>|null} [attributes] PushConfig attributes
|
|
6545
6573
|
* @property {google.pubsub.v1.PushConfig.IOidcToken|null} [oidcToken] PushConfig oidcToken
|
|
6574
|
+
* @property {google.pubsub.v1.PushConfig.IPubsubWrapper|null} [pubsubWrapper] PushConfig pubsubWrapper
|
|
6575
|
+
* @property {google.pubsub.v1.PushConfig.INoWrapper|null} [noWrapper] PushConfig noWrapper
|
|
6546
6576
|
*/
|
|
6547
6577
|
|
|
6548
6578
|
/**
|
|
@@ -6585,6 +6615,22 @@
|
|
|
6585
6615
|
*/
|
|
6586
6616
|
PushConfig.prototype.oidcToken = null;
|
|
6587
6617
|
|
|
6618
|
+
/**
|
|
6619
|
+
* PushConfig pubsubWrapper.
|
|
6620
|
+
* @member {google.pubsub.v1.PushConfig.IPubsubWrapper|null|undefined} pubsubWrapper
|
|
6621
|
+
* @memberof google.pubsub.v1.PushConfig
|
|
6622
|
+
* @instance
|
|
6623
|
+
*/
|
|
6624
|
+
PushConfig.prototype.pubsubWrapper = null;
|
|
6625
|
+
|
|
6626
|
+
/**
|
|
6627
|
+
* PushConfig noWrapper.
|
|
6628
|
+
* @member {google.pubsub.v1.PushConfig.INoWrapper|null|undefined} noWrapper
|
|
6629
|
+
* @memberof google.pubsub.v1.PushConfig
|
|
6630
|
+
* @instance
|
|
6631
|
+
*/
|
|
6632
|
+
PushConfig.prototype.noWrapper = null;
|
|
6633
|
+
|
|
6588
6634
|
// OneOf field names bound to virtual getters and setters
|
|
6589
6635
|
var $oneOfFields;
|
|
6590
6636
|
|
|
@@ -6599,6 +6645,17 @@
|
|
|
6599
6645
|
set: $util.oneOfSetter($oneOfFields)
|
|
6600
6646
|
});
|
|
6601
6647
|
|
|
6648
|
+
/**
|
|
6649
|
+
* PushConfig wrapper.
|
|
6650
|
+
* @member {"pubsubWrapper"|"noWrapper"|undefined} wrapper
|
|
6651
|
+
* @memberof google.pubsub.v1.PushConfig
|
|
6652
|
+
* @instance
|
|
6653
|
+
*/
|
|
6654
|
+
Object.defineProperty(PushConfig.prototype, "wrapper", {
|
|
6655
|
+
get: $util.oneOfGetter($oneOfFields = ["pubsubWrapper", "noWrapper"]),
|
|
6656
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6657
|
+
});
|
|
6658
|
+
|
|
6602
6659
|
/**
|
|
6603
6660
|
* Creates a new PushConfig instance using the specified properties.
|
|
6604
6661
|
* @function create
|
|
@@ -6630,6 +6687,10 @@
|
|
|
6630
6687
|
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.attributes[keys[i]]).ldelim();
|
|
6631
6688
|
if (message.oidcToken != null && Object.hasOwnProperty.call(message, "oidcToken"))
|
|
6632
6689
|
$root.google.pubsub.v1.PushConfig.OidcToken.encode(message.oidcToken, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
6690
|
+
if (message.pubsubWrapper != null && Object.hasOwnProperty.call(message, "pubsubWrapper"))
|
|
6691
|
+
$root.google.pubsub.v1.PushConfig.PubsubWrapper.encode(message.pubsubWrapper, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
6692
|
+
if (message.noWrapper != null && Object.hasOwnProperty.call(message, "noWrapper"))
|
|
6693
|
+
$root.google.pubsub.v1.PushConfig.NoWrapper.encode(message.noWrapper, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
6633
6694
|
return writer;
|
|
6634
6695
|
};
|
|
6635
6696
|
|
|
@@ -6695,6 +6756,14 @@
|
|
|
6695
6756
|
message.oidcToken = $root.google.pubsub.v1.PushConfig.OidcToken.decode(reader, reader.uint32());
|
|
6696
6757
|
break;
|
|
6697
6758
|
}
|
|
6759
|
+
case 4: {
|
|
6760
|
+
message.pubsubWrapper = $root.google.pubsub.v1.PushConfig.PubsubWrapper.decode(reader, reader.uint32());
|
|
6761
|
+
break;
|
|
6762
|
+
}
|
|
6763
|
+
case 5: {
|
|
6764
|
+
message.noWrapper = $root.google.pubsub.v1.PushConfig.NoWrapper.decode(reader, reader.uint32());
|
|
6765
|
+
break;
|
|
6766
|
+
}
|
|
6698
6767
|
default:
|
|
6699
6768
|
reader.skipType(tag & 7);
|
|
6700
6769
|
break;
|
|
@@ -6750,6 +6819,24 @@
|
|
|
6750
6819
|
return "oidcToken." + error;
|
|
6751
6820
|
}
|
|
6752
6821
|
}
|
|
6822
|
+
if (message.pubsubWrapper != null && message.hasOwnProperty("pubsubWrapper")) {
|
|
6823
|
+
properties.wrapper = 1;
|
|
6824
|
+
{
|
|
6825
|
+
var error = $root.google.pubsub.v1.PushConfig.PubsubWrapper.verify(message.pubsubWrapper);
|
|
6826
|
+
if (error)
|
|
6827
|
+
return "pubsubWrapper." + error;
|
|
6828
|
+
}
|
|
6829
|
+
}
|
|
6830
|
+
if (message.noWrapper != null && message.hasOwnProperty("noWrapper")) {
|
|
6831
|
+
if (properties.wrapper === 1)
|
|
6832
|
+
return "wrapper: multiple values";
|
|
6833
|
+
properties.wrapper = 1;
|
|
6834
|
+
{
|
|
6835
|
+
var error = $root.google.pubsub.v1.PushConfig.NoWrapper.verify(message.noWrapper);
|
|
6836
|
+
if (error)
|
|
6837
|
+
return "noWrapper." + error;
|
|
6838
|
+
}
|
|
6839
|
+
}
|
|
6753
6840
|
return null;
|
|
6754
6841
|
};
|
|
6755
6842
|
|
|
@@ -6779,6 +6866,16 @@
|
|
|
6779
6866
|
throw TypeError(".google.pubsub.v1.PushConfig.oidcToken: object expected");
|
|
6780
6867
|
message.oidcToken = $root.google.pubsub.v1.PushConfig.OidcToken.fromObject(object.oidcToken);
|
|
6781
6868
|
}
|
|
6869
|
+
if (object.pubsubWrapper != null) {
|
|
6870
|
+
if (typeof object.pubsubWrapper !== "object")
|
|
6871
|
+
throw TypeError(".google.pubsub.v1.PushConfig.pubsubWrapper: object expected");
|
|
6872
|
+
message.pubsubWrapper = $root.google.pubsub.v1.PushConfig.PubsubWrapper.fromObject(object.pubsubWrapper);
|
|
6873
|
+
}
|
|
6874
|
+
if (object.noWrapper != null) {
|
|
6875
|
+
if (typeof object.noWrapper !== "object")
|
|
6876
|
+
throw TypeError(".google.pubsub.v1.PushConfig.noWrapper: object expected");
|
|
6877
|
+
message.noWrapper = $root.google.pubsub.v1.PushConfig.NoWrapper.fromObject(object.noWrapper);
|
|
6878
|
+
}
|
|
6782
6879
|
return message;
|
|
6783
6880
|
};
|
|
6784
6881
|
|
|
@@ -6812,6 +6909,16 @@
|
|
|
6812
6909
|
if (options.oneofs)
|
|
6813
6910
|
object.authenticationMethod = "oidcToken";
|
|
6814
6911
|
}
|
|
6912
|
+
if (message.pubsubWrapper != null && message.hasOwnProperty("pubsubWrapper")) {
|
|
6913
|
+
object.pubsubWrapper = $root.google.pubsub.v1.PushConfig.PubsubWrapper.toObject(message.pubsubWrapper, options);
|
|
6914
|
+
if (options.oneofs)
|
|
6915
|
+
object.wrapper = "pubsubWrapper";
|
|
6916
|
+
}
|
|
6917
|
+
if (message.noWrapper != null && message.hasOwnProperty("noWrapper")) {
|
|
6918
|
+
object.noWrapper = $root.google.pubsub.v1.PushConfig.NoWrapper.toObject(message.noWrapper, options);
|
|
6919
|
+
if (options.oneofs)
|
|
6920
|
+
object.wrapper = "noWrapper";
|
|
6921
|
+
}
|
|
6815
6922
|
return object;
|
|
6816
6923
|
};
|
|
6817
6924
|
|
|
@@ -7068,357 +7175,1581 @@
|
|
|
7068
7175
|
return OidcToken;
|
|
7069
7176
|
})();
|
|
7070
7177
|
|
|
7071
|
-
|
|
7072
|
-
})();
|
|
7178
|
+
PushConfig.PubsubWrapper = (function() {
|
|
7073
7179
|
|
|
7074
|
-
|
|
7180
|
+
/**
|
|
7181
|
+
* Properties of a PubsubWrapper.
|
|
7182
|
+
* @memberof google.pubsub.v1.PushConfig
|
|
7183
|
+
* @interface IPubsubWrapper
|
|
7184
|
+
*/
|
|
7075
7185
|
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7186
|
+
/**
|
|
7187
|
+
* Constructs a new PubsubWrapper.
|
|
7188
|
+
* @memberof google.pubsub.v1.PushConfig
|
|
7189
|
+
* @classdesc Represents a PubsubWrapper.
|
|
7190
|
+
* @implements IPubsubWrapper
|
|
7191
|
+
* @constructor
|
|
7192
|
+
* @param {google.pubsub.v1.PushConfig.IPubsubWrapper=} [properties] Properties to set
|
|
7193
|
+
*/
|
|
7194
|
+
function PubsubWrapper(properties) {
|
|
7195
|
+
if (properties)
|
|
7196
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7197
|
+
if (properties[keys[i]] != null)
|
|
7198
|
+
this[keys[i]] = properties[keys[i]];
|
|
7199
|
+
}
|
|
7086
7200
|
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
if (properties[keys[i]] != null)
|
|
7099
|
-
this[keys[i]] = properties[keys[i]];
|
|
7100
|
-
}
|
|
7201
|
+
/**
|
|
7202
|
+
* Creates a new PubsubWrapper instance using the specified properties.
|
|
7203
|
+
* @function create
|
|
7204
|
+
* @memberof google.pubsub.v1.PushConfig.PubsubWrapper
|
|
7205
|
+
* @static
|
|
7206
|
+
* @param {google.pubsub.v1.PushConfig.IPubsubWrapper=} [properties] Properties to set
|
|
7207
|
+
* @returns {google.pubsub.v1.PushConfig.PubsubWrapper} PubsubWrapper instance
|
|
7208
|
+
*/
|
|
7209
|
+
PubsubWrapper.create = function create(properties) {
|
|
7210
|
+
return new PubsubWrapper(properties);
|
|
7211
|
+
};
|
|
7101
7212
|
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7213
|
+
/**
|
|
7214
|
+
* Encodes the specified PubsubWrapper message. Does not implicitly {@link google.pubsub.v1.PushConfig.PubsubWrapper.verify|verify} messages.
|
|
7215
|
+
* @function encode
|
|
7216
|
+
* @memberof google.pubsub.v1.PushConfig.PubsubWrapper
|
|
7217
|
+
* @static
|
|
7218
|
+
* @param {google.pubsub.v1.PushConfig.IPubsubWrapper} message PubsubWrapper message or plain object to encode
|
|
7219
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7220
|
+
* @returns {$protobuf.Writer} Writer
|
|
7221
|
+
*/
|
|
7222
|
+
PubsubWrapper.encode = function encode(message, writer) {
|
|
7223
|
+
if (!writer)
|
|
7224
|
+
writer = $Writer.create();
|
|
7225
|
+
return writer;
|
|
7226
|
+
};
|
|
7109
7227
|
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7228
|
+
/**
|
|
7229
|
+
* Encodes the specified PubsubWrapper message, length delimited. Does not implicitly {@link google.pubsub.v1.PushConfig.PubsubWrapper.verify|verify} messages.
|
|
7230
|
+
* @function encodeDelimited
|
|
7231
|
+
* @memberof google.pubsub.v1.PushConfig.PubsubWrapper
|
|
7232
|
+
* @static
|
|
7233
|
+
* @param {google.pubsub.v1.PushConfig.IPubsubWrapper} message PubsubWrapper message or plain object to encode
|
|
7234
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7235
|
+
* @returns {$protobuf.Writer} Writer
|
|
7236
|
+
*/
|
|
7237
|
+
PubsubWrapper.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7238
|
+
return this.encode(message, writer).ldelim();
|
|
7239
|
+
};
|
|
7117
7240
|
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7241
|
+
/**
|
|
7242
|
+
* Decodes a PubsubWrapper message from the specified reader or buffer.
|
|
7243
|
+
* @function decode
|
|
7244
|
+
* @memberof google.pubsub.v1.PushConfig.PubsubWrapper
|
|
7245
|
+
* @static
|
|
7246
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7247
|
+
* @param {number} [length] Message length if known beforehand
|
|
7248
|
+
* @returns {google.pubsub.v1.PushConfig.PubsubWrapper} PubsubWrapper
|
|
7249
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7250
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7251
|
+
*/
|
|
7252
|
+
PubsubWrapper.decode = function decode(reader, length) {
|
|
7253
|
+
if (!(reader instanceof $Reader))
|
|
7254
|
+
reader = $Reader.create(reader);
|
|
7255
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.PushConfig.PubsubWrapper();
|
|
7256
|
+
while (reader.pos < end) {
|
|
7257
|
+
var tag = reader.uint32();
|
|
7258
|
+
switch (tag >>> 3) {
|
|
7259
|
+
default:
|
|
7260
|
+
reader.skipType(tag & 7);
|
|
7261
|
+
break;
|
|
7262
|
+
}
|
|
7263
|
+
}
|
|
7264
|
+
return message;
|
|
7265
|
+
};
|
|
7125
7266
|
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7267
|
+
/**
|
|
7268
|
+
* Decodes a PubsubWrapper message from the specified reader or buffer, length delimited.
|
|
7269
|
+
* @function decodeDelimited
|
|
7270
|
+
* @memberof google.pubsub.v1.PushConfig.PubsubWrapper
|
|
7271
|
+
* @static
|
|
7272
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7273
|
+
* @returns {google.pubsub.v1.PushConfig.PubsubWrapper} PubsubWrapper
|
|
7274
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7275
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7276
|
+
*/
|
|
7277
|
+
PubsubWrapper.decodeDelimited = function decodeDelimited(reader) {
|
|
7278
|
+
if (!(reader instanceof $Reader))
|
|
7279
|
+
reader = new $Reader(reader);
|
|
7280
|
+
return this.decode(reader, reader.uint32());
|
|
7281
|
+
};
|
|
7133
7282
|
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7283
|
+
/**
|
|
7284
|
+
* Verifies a PubsubWrapper message.
|
|
7285
|
+
* @function verify
|
|
7286
|
+
* @memberof google.pubsub.v1.PushConfig.PubsubWrapper
|
|
7287
|
+
* @static
|
|
7288
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7289
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7290
|
+
*/
|
|
7291
|
+
PubsubWrapper.verify = function verify(message) {
|
|
7292
|
+
if (typeof message !== "object" || message === null)
|
|
7293
|
+
return "object expected";
|
|
7294
|
+
return null;
|
|
7295
|
+
};
|
|
7141
7296
|
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7297
|
+
/**
|
|
7298
|
+
* Creates a PubsubWrapper message from a plain object. Also converts values to their respective internal types.
|
|
7299
|
+
* @function fromObject
|
|
7300
|
+
* @memberof google.pubsub.v1.PushConfig.PubsubWrapper
|
|
7301
|
+
* @static
|
|
7302
|
+
* @param {Object.<string,*>} object Plain object
|
|
7303
|
+
* @returns {google.pubsub.v1.PushConfig.PubsubWrapper} PubsubWrapper
|
|
7304
|
+
*/
|
|
7305
|
+
PubsubWrapper.fromObject = function fromObject(object) {
|
|
7306
|
+
if (object instanceof $root.google.pubsub.v1.PushConfig.PubsubWrapper)
|
|
7307
|
+
return object;
|
|
7308
|
+
return new $root.google.pubsub.v1.PushConfig.PubsubWrapper();
|
|
7309
|
+
};
|
|
7153
7310
|
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
if (message.table != null && Object.hasOwnProperty.call(message, "table"))
|
|
7167
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.table);
|
|
7168
|
-
if (message.useTopicSchema != null && Object.hasOwnProperty.call(message, "useTopicSchema"))
|
|
7169
|
-
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useTopicSchema);
|
|
7170
|
-
if (message.writeMetadata != null && Object.hasOwnProperty.call(message, "writeMetadata"))
|
|
7171
|
-
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.writeMetadata);
|
|
7172
|
-
if (message.dropUnknownFields != null && Object.hasOwnProperty.call(message, "dropUnknownFields"))
|
|
7173
|
-
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.dropUnknownFields);
|
|
7174
|
-
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
7175
|
-
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
|
|
7176
|
-
return writer;
|
|
7177
|
-
};
|
|
7311
|
+
/**
|
|
7312
|
+
* Creates a plain object from a PubsubWrapper message. Also converts values to other types if specified.
|
|
7313
|
+
* @function toObject
|
|
7314
|
+
* @memberof google.pubsub.v1.PushConfig.PubsubWrapper
|
|
7315
|
+
* @static
|
|
7316
|
+
* @param {google.pubsub.v1.PushConfig.PubsubWrapper} message PubsubWrapper
|
|
7317
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7318
|
+
* @returns {Object.<string,*>} Plain object
|
|
7319
|
+
*/
|
|
7320
|
+
PubsubWrapper.toObject = function toObject() {
|
|
7321
|
+
return {};
|
|
7322
|
+
};
|
|
7178
7323
|
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
return this.encode(message, writer).ldelim();
|
|
7190
|
-
};
|
|
7324
|
+
/**
|
|
7325
|
+
* Converts this PubsubWrapper to JSON.
|
|
7326
|
+
* @function toJSON
|
|
7327
|
+
* @memberof google.pubsub.v1.PushConfig.PubsubWrapper
|
|
7328
|
+
* @instance
|
|
7329
|
+
* @returns {Object.<string,*>} JSON object
|
|
7330
|
+
*/
|
|
7331
|
+
PubsubWrapper.prototype.toJSON = function toJSON() {
|
|
7332
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7333
|
+
};
|
|
7191
7334
|
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7335
|
+
/**
|
|
7336
|
+
* Gets the default type url for PubsubWrapper
|
|
7337
|
+
* @function getTypeUrl
|
|
7338
|
+
* @memberof google.pubsub.v1.PushConfig.PubsubWrapper
|
|
7339
|
+
* @static
|
|
7340
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7341
|
+
* @returns {string} The default type url
|
|
7342
|
+
*/
|
|
7343
|
+
PubsubWrapper.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7344
|
+
if (typeUrlPrefix === undefined) {
|
|
7345
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
7346
|
+
}
|
|
7347
|
+
return typeUrlPrefix + "/google.pubsub.v1.PushConfig.PubsubWrapper";
|
|
7348
|
+
};
|
|
7349
|
+
|
|
7350
|
+
return PubsubWrapper;
|
|
7351
|
+
})();
|
|
7352
|
+
|
|
7353
|
+
PushConfig.NoWrapper = (function() {
|
|
7354
|
+
|
|
7355
|
+
/**
|
|
7356
|
+
* Properties of a NoWrapper.
|
|
7357
|
+
* @memberof google.pubsub.v1.PushConfig
|
|
7358
|
+
* @interface INoWrapper
|
|
7359
|
+
* @property {boolean|null} [writeMetadata] NoWrapper writeMetadata
|
|
7360
|
+
*/
|
|
7361
|
+
|
|
7362
|
+
/**
|
|
7363
|
+
* Constructs a new NoWrapper.
|
|
7364
|
+
* @memberof google.pubsub.v1.PushConfig
|
|
7365
|
+
* @classdesc Represents a NoWrapper.
|
|
7366
|
+
* @implements INoWrapper
|
|
7367
|
+
* @constructor
|
|
7368
|
+
* @param {google.pubsub.v1.PushConfig.INoWrapper=} [properties] Properties to set
|
|
7369
|
+
*/
|
|
7370
|
+
function NoWrapper(properties) {
|
|
7371
|
+
if (properties)
|
|
7372
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7373
|
+
if (properties[keys[i]] != null)
|
|
7374
|
+
this[keys[i]] = properties[keys[i]];
|
|
7375
|
+
}
|
|
7376
|
+
|
|
7377
|
+
/**
|
|
7378
|
+
* NoWrapper writeMetadata.
|
|
7379
|
+
* @member {boolean} writeMetadata
|
|
7380
|
+
* @memberof google.pubsub.v1.PushConfig.NoWrapper
|
|
7381
|
+
* @instance
|
|
7382
|
+
*/
|
|
7383
|
+
NoWrapper.prototype.writeMetadata = false;
|
|
7384
|
+
|
|
7385
|
+
/**
|
|
7386
|
+
* Creates a new NoWrapper instance using the specified properties.
|
|
7387
|
+
* @function create
|
|
7388
|
+
* @memberof google.pubsub.v1.PushConfig.NoWrapper
|
|
7389
|
+
* @static
|
|
7390
|
+
* @param {google.pubsub.v1.PushConfig.INoWrapper=} [properties] Properties to set
|
|
7391
|
+
* @returns {google.pubsub.v1.PushConfig.NoWrapper} NoWrapper instance
|
|
7392
|
+
*/
|
|
7393
|
+
NoWrapper.create = function create(properties) {
|
|
7394
|
+
return new NoWrapper(properties);
|
|
7395
|
+
};
|
|
7396
|
+
|
|
7397
|
+
/**
|
|
7398
|
+
* Encodes the specified NoWrapper message. Does not implicitly {@link google.pubsub.v1.PushConfig.NoWrapper.verify|verify} messages.
|
|
7399
|
+
* @function encode
|
|
7400
|
+
* @memberof google.pubsub.v1.PushConfig.NoWrapper
|
|
7401
|
+
* @static
|
|
7402
|
+
* @param {google.pubsub.v1.PushConfig.INoWrapper} message NoWrapper message or plain object to encode
|
|
7403
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7404
|
+
* @returns {$protobuf.Writer} Writer
|
|
7405
|
+
*/
|
|
7406
|
+
NoWrapper.encode = function encode(message, writer) {
|
|
7407
|
+
if (!writer)
|
|
7408
|
+
writer = $Writer.create();
|
|
7409
|
+
if (message.writeMetadata != null && Object.hasOwnProperty.call(message, "writeMetadata"))
|
|
7410
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.writeMetadata);
|
|
7411
|
+
return writer;
|
|
7412
|
+
};
|
|
7413
|
+
|
|
7414
|
+
/**
|
|
7415
|
+
* Encodes the specified NoWrapper message, length delimited. Does not implicitly {@link google.pubsub.v1.PushConfig.NoWrapper.verify|verify} messages.
|
|
7416
|
+
* @function encodeDelimited
|
|
7417
|
+
* @memberof google.pubsub.v1.PushConfig.NoWrapper
|
|
7418
|
+
* @static
|
|
7419
|
+
* @param {google.pubsub.v1.PushConfig.INoWrapper} message NoWrapper message or plain object to encode
|
|
7420
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7421
|
+
* @returns {$protobuf.Writer} Writer
|
|
7422
|
+
*/
|
|
7423
|
+
NoWrapper.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7424
|
+
return this.encode(message, writer).ldelim();
|
|
7425
|
+
};
|
|
7426
|
+
|
|
7427
|
+
/**
|
|
7428
|
+
* Decodes a NoWrapper message from the specified reader or buffer.
|
|
7429
|
+
* @function decode
|
|
7430
|
+
* @memberof google.pubsub.v1.PushConfig.NoWrapper
|
|
7431
|
+
* @static
|
|
7432
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7433
|
+
* @param {number} [length] Message length if known beforehand
|
|
7434
|
+
* @returns {google.pubsub.v1.PushConfig.NoWrapper} NoWrapper
|
|
7435
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7436
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7437
|
+
*/
|
|
7438
|
+
NoWrapper.decode = function decode(reader, length) {
|
|
7439
|
+
if (!(reader instanceof $Reader))
|
|
7440
|
+
reader = $Reader.create(reader);
|
|
7441
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.PushConfig.NoWrapper();
|
|
7442
|
+
while (reader.pos < end) {
|
|
7443
|
+
var tag = reader.uint32();
|
|
7444
|
+
switch (tag >>> 3) {
|
|
7445
|
+
case 1: {
|
|
7446
|
+
message.writeMetadata = reader.bool();
|
|
7447
|
+
break;
|
|
7448
|
+
}
|
|
7449
|
+
default:
|
|
7450
|
+
reader.skipType(tag & 7);
|
|
7451
|
+
break;
|
|
7452
|
+
}
|
|
7453
|
+
}
|
|
7454
|
+
return message;
|
|
7455
|
+
};
|
|
7456
|
+
|
|
7457
|
+
/**
|
|
7458
|
+
* Decodes a NoWrapper message from the specified reader or buffer, length delimited.
|
|
7459
|
+
* @function decodeDelimited
|
|
7460
|
+
* @memberof google.pubsub.v1.PushConfig.NoWrapper
|
|
7461
|
+
* @static
|
|
7462
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7463
|
+
* @returns {google.pubsub.v1.PushConfig.NoWrapper} NoWrapper
|
|
7464
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7465
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7466
|
+
*/
|
|
7467
|
+
NoWrapper.decodeDelimited = function decodeDelimited(reader) {
|
|
7468
|
+
if (!(reader instanceof $Reader))
|
|
7469
|
+
reader = new $Reader(reader);
|
|
7470
|
+
return this.decode(reader, reader.uint32());
|
|
7471
|
+
};
|
|
7472
|
+
|
|
7473
|
+
/**
|
|
7474
|
+
* Verifies a NoWrapper message.
|
|
7475
|
+
* @function verify
|
|
7476
|
+
* @memberof google.pubsub.v1.PushConfig.NoWrapper
|
|
7477
|
+
* @static
|
|
7478
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7479
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7480
|
+
*/
|
|
7481
|
+
NoWrapper.verify = function verify(message) {
|
|
7482
|
+
if (typeof message !== "object" || message === null)
|
|
7483
|
+
return "object expected";
|
|
7484
|
+
if (message.writeMetadata != null && message.hasOwnProperty("writeMetadata"))
|
|
7485
|
+
if (typeof message.writeMetadata !== "boolean")
|
|
7486
|
+
return "writeMetadata: boolean expected";
|
|
7487
|
+
return null;
|
|
7488
|
+
};
|
|
7489
|
+
|
|
7490
|
+
/**
|
|
7491
|
+
* Creates a NoWrapper message from a plain object. Also converts values to their respective internal types.
|
|
7492
|
+
* @function fromObject
|
|
7493
|
+
* @memberof google.pubsub.v1.PushConfig.NoWrapper
|
|
7494
|
+
* @static
|
|
7495
|
+
* @param {Object.<string,*>} object Plain object
|
|
7496
|
+
* @returns {google.pubsub.v1.PushConfig.NoWrapper} NoWrapper
|
|
7497
|
+
*/
|
|
7498
|
+
NoWrapper.fromObject = function fromObject(object) {
|
|
7499
|
+
if (object instanceof $root.google.pubsub.v1.PushConfig.NoWrapper)
|
|
7500
|
+
return object;
|
|
7501
|
+
var message = new $root.google.pubsub.v1.PushConfig.NoWrapper();
|
|
7502
|
+
if (object.writeMetadata != null)
|
|
7503
|
+
message.writeMetadata = Boolean(object.writeMetadata);
|
|
7504
|
+
return message;
|
|
7505
|
+
};
|
|
7506
|
+
|
|
7507
|
+
/**
|
|
7508
|
+
* Creates a plain object from a NoWrapper message. Also converts values to other types if specified.
|
|
7509
|
+
* @function toObject
|
|
7510
|
+
* @memberof google.pubsub.v1.PushConfig.NoWrapper
|
|
7511
|
+
* @static
|
|
7512
|
+
* @param {google.pubsub.v1.PushConfig.NoWrapper} message NoWrapper
|
|
7513
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7514
|
+
* @returns {Object.<string,*>} Plain object
|
|
7515
|
+
*/
|
|
7516
|
+
NoWrapper.toObject = function toObject(message, options) {
|
|
7517
|
+
if (!options)
|
|
7518
|
+
options = {};
|
|
7519
|
+
var object = {};
|
|
7520
|
+
if (options.defaults)
|
|
7521
|
+
object.writeMetadata = false;
|
|
7522
|
+
if (message.writeMetadata != null && message.hasOwnProperty("writeMetadata"))
|
|
7523
|
+
object.writeMetadata = message.writeMetadata;
|
|
7524
|
+
return object;
|
|
7525
|
+
};
|
|
7526
|
+
|
|
7527
|
+
/**
|
|
7528
|
+
* Converts this NoWrapper to JSON.
|
|
7529
|
+
* @function toJSON
|
|
7530
|
+
* @memberof google.pubsub.v1.PushConfig.NoWrapper
|
|
7531
|
+
* @instance
|
|
7532
|
+
* @returns {Object.<string,*>} JSON object
|
|
7533
|
+
*/
|
|
7534
|
+
NoWrapper.prototype.toJSON = function toJSON() {
|
|
7535
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7536
|
+
};
|
|
7537
|
+
|
|
7538
|
+
/**
|
|
7539
|
+
* Gets the default type url for NoWrapper
|
|
7540
|
+
* @function getTypeUrl
|
|
7541
|
+
* @memberof google.pubsub.v1.PushConfig.NoWrapper
|
|
7542
|
+
* @static
|
|
7543
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7544
|
+
* @returns {string} The default type url
|
|
7545
|
+
*/
|
|
7546
|
+
NoWrapper.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7547
|
+
if (typeUrlPrefix === undefined) {
|
|
7548
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
7549
|
+
}
|
|
7550
|
+
return typeUrlPrefix + "/google.pubsub.v1.PushConfig.NoWrapper";
|
|
7551
|
+
};
|
|
7552
|
+
|
|
7553
|
+
return NoWrapper;
|
|
7554
|
+
})();
|
|
7555
|
+
|
|
7556
|
+
return PushConfig;
|
|
7557
|
+
})();
|
|
7558
|
+
|
|
7559
|
+
v1.BigQueryConfig = (function() {
|
|
7560
|
+
|
|
7561
|
+
/**
|
|
7562
|
+
* Properties of a BigQueryConfig.
|
|
7563
|
+
* @memberof google.pubsub.v1
|
|
7564
|
+
* @interface IBigQueryConfig
|
|
7565
|
+
* @property {string|null} [table] BigQueryConfig table
|
|
7566
|
+
* @property {boolean|null} [useTopicSchema] BigQueryConfig useTopicSchema
|
|
7567
|
+
* @property {boolean|null} [writeMetadata] BigQueryConfig writeMetadata
|
|
7568
|
+
* @property {boolean|null} [dropUnknownFields] BigQueryConfig dropUnknownFields
|
|
7569
|
+
* @property {google.pubsub.v1.BigQueryConfig.State|null} [state] BigQueryConfig state
|
|
7570
|
+
*/
|
|
7571
|
+
|
|
7572
|
+
/**
|
|
7573
|
+
* Constructs a new BigQueryConfig.
|
|
7574
|
+
* @memberof google.pubsub.v1
|
|
7575
|
+
* @classdesc Represents a BigQueryConfig.
|
|
7576
|
+
* @implements IBigQueryConfig
|
|
7577
|
+
* @constructor
|
|
7578
|
+
* @param {google.pubsub.v1.IBigQueryConfig=} [properties] Properties to set
|
|
7579
|
+
*/
|
|
7580
|
+
function BigQueryConfig(properties) {
|
|
7581
|
+
if (properties)
|
|
7582
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7583
|
+
if (properties[keys[i]] != null)
|
|
7584
|
+
this[keys[i]] = properties[keys[i]];
|
|
7585
|
+
}
|
|
7586
|
+
|
|
7587
|
+
/**
|
|
7588
|
+
* BigQueryConfig table.
|
|
7589
|
+
* @member {string} table
|
|
7590
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7591
|
+
* @instance
|
|
7592
|
+
*/
|
|
7593
|
+
BigQueryConfig.prototype.table = "";
|
|
7594
|
+
|
|
7595
|
+
/**
|
|
7596
|
+
* BigQueryConfig useTopicSchema.
|
|
7597
|
+
* @member {boolean} useTopicSchema
|
|
7598
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7599
|
+
* @instance
|
|
7600
|
+
*/
|
|
7601
|
+
BigQueryConfig.prototype.useTopicSchema = false;
|
|
7602
|
+
|
|
7603
|
+
/**
|
|
7604
|
+
* BigQueryConfig writeMetadata.
|
|
7605
|
+
* @member {boolean} writeMetadata
|
|
7606
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7607
|
+
* @instance
|
|
7608
|
+
*/
|
|
7609
|
+
BigQueryConfig.prototype.writeMetadata = false;
|
|
7610
|
+
|
|
7611
|
+
/**
|
|
7612
|
+
* BigQueryConfig dropUnknownFields.
|
|
7613
|
+
* @member {boolean} dropUnknownFields
|
|
7614
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7615
|
+
* @instance
|
|
7616
|
+
*/
|
|
7617
|
+
BigQueryConfig.prototype.dropUnknownFields = false;
|
|
7618
|
+
|
|
7619
|
+
/**
|
|
7620
|
+
* BigQueryConfig state.
|
|
7621
|
+
* @member {google.pubsub.v1.BigQueryConfig.State} state
|
|
7622
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7623
|
+
* @instance
|
|
7624
|
+
*/
|
|
7625
|
+
BigQueryConfig.prototype.state = 0;
|
|
7626
|
+
|
|
7627
|
+
/**
|
|
7628
|
+
* Creates a new BigQueryConfig instance using the specified properties.
|
|
7629
|
+
* @function create
|
|
7630
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7631
|
+
* @static
|
|
7632
|
+
* @param {google.pubsub.v1.IBigQueryConfig=} [properties] Properties to set
|
|
7633
|
+
* @returns {google.pubsub.v1.BigQueryConfig} BigQueryConfig instance
|
|
7634
|
+
*/
|
|
7635
|
+
BigQueryConfig.create = function create(properties) {
|
|
7636
|
+
return new BigQueryConfig(properties);
|
|
7637
|
+
};
|
|
7638
|
+
|
|
7639
|
+
/**
|
|
7640
|
+
* Encodes the specified BigQueryConfig message. Does not implicitly {@link google.pubsub.v1.BigQueryConfig.verify|verify} messages.
|
|
7641
|
+
* @function encode
|
|
7642
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7643
|
+
* @static
|
|
7644
|
+
* @param {google.pubsub.v1.IBigQueryConfig} message BigQueryConfig message or plain object to encode
|
|
7645
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7646
|
+
* @returns {$protobuf.Writer} Writer
|
|
7647
|
+
*/
|
|
7648
|
+
BigQueryConfig.encode = function encode(message, writer) {
|
|
7649
|
+
if (!writer)
|
|
7650
|
+
writer = $Writer.create();
|
|
7651
|
+
if (message.table != null && Object.hasOwnProperty.call(message, "table"))
|
|
7652
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.table);
|
|
7653
|
+
if (message.useTopicSchema != null && Object.hasOwnProperty.call(message, "useTopicSchema"))
|
|
7654
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useTopicSchema);
|
|
7655
|
+
if (message.writeMetadata != null && Object.hasOwnProperty.call(message, "writeMetadata"))
|
|
7656
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.writeMetadata);
|
|
7657
|
+
if (message.dropUnknownFields != null && Object.hasOwnProperty.call(message, "dropUnknownFields"))
|
|
7658
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.dropUnknownFields);
|
|
7659
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
7660
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
|
|
7661
|
+
return writer;
|
|
7662
|
+
};
|
|
7663
|
+
|
|
7664
|
+
/**
|
|
7665
|
+
* Encodes the specified BigQueryConfig message, length delimited. Does not implicitly {@link google.pubsub.v1.BigQueryConfig.verify|verify} messages.
|
|
7666
|
+
* @function encodeDelimited
|
|
7667
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7668
|
+
* @static
|
|
7669
|
+
* @param {google.pubsub.v1.IBigQueryConfig} message BigQueryConfig message or plain object to encode
|
|
7670
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7671
|
+
* @returns {$protobuf.Writer} Writer
|
|
7672
|
+
*/
|
|
7673
|
+
BigQueryConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7674
|
+
return this.encode(message, writer).ldelim();
|
|
7675
|
+
};
|
|
7676
|
+
|
|
7677
|
+
/**
|
|
7678
|
+
* Decodes a BigQueryConfig message from the specified reader or buffer.
|
|
7679
|
+
* @function decode
|
|
7680
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7681
|
+
* @static
|
|
7682
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7683
|
+
* @param {number} [length] Message length if known beforehand
|
|
7684
|
+
* @returns {google.pubsub.v1.BigQueryConfig} BigQueryConfig
|
|
7685
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7686
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7687
|
+
*/
|
|
7688
|
+
BigQueryConfig.decode = function decode(reader, length) {
|
|
7689
|
+
if (!(reader instanceof $Reader))
|
|
7690
|
+
reader = $Reader.create(reader);
|
|
7691
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.BigQueryConfig();
|
|
7692
|
+
while (reader.pos < end) {
|
|
7693
|
+
var tag = reader.uint32();
|
|
7694
|
+
switch (tag >>> 3) {
|
|
7695
|
+
case 1: {
|
|
7696
|
+
message.table = reader.string();
|
|
7697
|
+
break;
|
|
7698
|
+
}
|
|
7699
|
+
case 2: {
|
|
7700
|
+
message.useTopicSchema = reader.bool();
|
|
7701
|
+
break;
|
|
7702
|
+
}
|
|
7703
|
+
case 3: {
|
|
7704
|
+
message.writeMetadata = reader.bool();
|
|
7705
|
+
break;
|
|
7706
|
+
}
|
|
7707
|
+
case 4: {
|
|
7708
|
+
message.dropUnknownFields = reader.bool();
|
|
7709
|
+
break;
|
|
7710
|
+
}
|
|
7711
|
+
case 5: {
|
|
7712
|
+
message.state = reader.int32();
|
|
7713
|
+
break;
|
|
7714
|
+
}
|
|
7715
|
+
default:
|
|
7716
|
+
reader.skipType(tag & 7);
|
|
7717
|
+
break;
|
|
7718
|
+
}
|
|
7719
|
+
}
|
|
7720
|
+
return message;
|
|
7721
|
+
};
|
|
7722
|
+
|
|
7723
|
+
/**
|
|
7724
|
+
* Decodes a BigQueryConfig message from the specified reader or buffer, length delimited.
|
|
7725
|
+
* @function decodeDelimited
|
|
7726
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7727
|
+
* @static
|
|
7728
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7729
|
+
* @returns {google.pubsub.v1.BigQueryConfig} BigQueryConfig
|
|
7730
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7731
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7732
|
+
*/
|
|
7733
|
+
BigQueryConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
7734
|
+
if (!(reader instanceof $Reader))
|
|
7735
|
+
reader = new $Reader(reader);
|
|
7736
|
+
return this.decode(reader, reader.uint32());
|
|
7737
|
+
};
|
|
7738
|
+
|
|
7739
|
+
/**
|
|
7740
|
+
* Verifies a BigQueryConfig message.
|
|
7741
|
+
* @function verify
|
|
7742
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7743
|
+
* @static
|
|
7744
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7745
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7746
|
+
*/
|
|
7747
|
+
BigQueryConfig.verify = function verify(message) {
|
|
7748
|
+
if (typeof message !== "object" || message === null)
|
|
7749
|
+
return "object expected";
|
|
7750
|
+
if (message.table != null && message.hasOwnProperty("table"))
|
|
7751
|
+
if (!$util.isString(message.table))
|
|
7752
|
+
return "table: string expected";
|
|
7753
|
+
if (message.useTopicSchema != null && message.hasOwnProperty("useTopicSchema"))
|
|
7754
|
+
if (typeof message.useTopicSchema !== "boolean")
|
|
7755
|
+
return "useTopicSchema: boolean expected";
|
|
7756
|
+
if (message.writeMetadata != null && message.hasOwnProperty("writeMetadata"))
|
|
7757
|
+
if (typeof message.writeMetadata !== "boolean")
|
|
7758
|
+
return "writeMetadata: boolean expected";
|
|
7759
|
+
if (message.dropUnknownFields != null && message.hasOwnProperty("dropUnknownFields"))
|
|
7760
|
+
if (typeof message.dropUnknownFields !== "boolean")
|
|
7761
|
+
return "dropUnknownFields: boolean expected";
|
|
7762
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
7763
|
+
switch (message.state) {
|
|
7764
|
+
default:
|
|
7765
|
+
return "state: enum value expected";
|
|
7766
|
+
case 0:
|
|
7767
|
+
case 1:
|
|
7768
|
+
case 2:
|
|
7769
|
+
case 3:
|
|
7770
|
+
case 4:
|
|
7771
|
+
break;
|
|
7772
|
+
}
|
|
7773
|
+
return null;
|
|
7774
|
+
};
|
|
7775
|
+
|
|
7776
|
+
/**
|
|
7777
|
+
* Creates a BigQueryConfig message from a plain object. Also converts values to their respective internal types.
|
|
7778
|
+
* @function fromObject
|
|
7779
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7780
|
+
* @static
|
|
7781
|
+
* @param {Object.<string,*>} object Plain object
|
|
7782
|
+
* @returns {google.pubsub.v1.BigQueryConfig} BigQueryConfig
|
|
7783
|
+
*/
|
|
7784
|
+
BigQueryConfig.fromObject = function fromObject(object) {
|
|
7785
|
+
if (object instanceof $root.google.pubsub.v1.BigQueryConfig)
|
|
7786
|
+
return object;
|
|
7787
|
+
var message = new $root.google.pubsub.v1.BigQueryConfig();
|
|
7788
|
+
if (object.table != null)
|
|
7789
|
+
message.table = String(object.table);
|
|
7790
|
+
if (object.useTopicSchema != null)
|
|
7791
|
+
message.useTopicSchema = Boolean(object.useTopicSchema);
|
|
7792
|
+
if (object.writeMetadata != null)
|
|
7793
|
+
message.writeMetadata = Boolean(object.writeMetadata);
|
|
7794
|
+
if (object.dropUnknownFields != null)
|
|
7795
|
+
message.dropUnknownFields = Boolean(object.dropUnknownFields);
|
|
7796
|
+
switch (object.state) {
|
|
7797
|
+
default:
|
|
7798
|
+
if (typeof object.state === "number") {
|
|
7799
|
+
message.state = object.state;
|
|
7800
|
+
break;
|
|
7801
|
+
}
|
|
7802
|
+
break;
|
|
7803
|
+
case "STATE_UNSPECIFIED":
|
|
7804
|
+
case 0:
|
|
7805
|
+
message.state = 0;
|
|
7806
|
+
break;
|
|
7807
|
+
case "ACTIVE":
|
|
7808
|
+
case 1:
|
|
7809
|
+
message.state = 1;
|
|
7810
|
+
break;
|
|
7811
|
+
case "PERMISSION_DENIED":
|
|
7812
|
+
case 2:
|
|
7813
|
+
message.state = 2;
|
|
7814
|
+
break;
|
|
7815
|
+
case "NOT_FOUND":
|
|
7816
|
+
case 3:
|
|
7817
|
+
message.state = 3;
|
|
7818
|
+
break;
|
|
7819
|
+
case "SCHEMA_MISMATCH":
|
|
7820
|
+
case 4:
|
|
7821
|
+
message.state = 4;
|
|
7822
|
+
break;
|
|
7823
|
+
}
|
|
7824
|
+
return message;
|
|
7825
|
+
};
|
|
7826
|
+
|
|
7827
|
+
/**
|
|
7828
|
+
* Creates a plain object from a BigQueryConfig message. Also converts values to other types if specified.
|
|
7829
|
+
* @function toObject
|
|
7830
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7831
|
+
* @static
|
|
7832
|
+
* @param {google.pubsub.v1.BigQueryConfig} message BigQueryConfig
|
|
7833
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7834
|
+
* @returns {Object.<string,*>} Plain object
|
|
7835
|
+
*/
|
|
7836
|
+
BigQueryConfig.toObject = function toObject(message, options) {
|
|
7837
|
+
if (!options)
|
|
7838
|
+
options = {};
|
|
7839
|
+
var object = {};
|
|
7840
|
+
if (options.defaults) {
|
|
7841
|
+
object.table = "";
|
|
7842
|
+
object.useTopicSchema = false;
|
|
7843
|
+
object.writeMetadata = false;
|
|
7844
|
+
object.dropUnknownFields = false;
|
|
7845
|
+
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
7846
|
+
}
|
|
7847
|
+
if (message.table != null && message.hasOwnProperty("table"))
|
|
7848
|
+
object.table = message.table;
|
|
7849
|
+
if (message.useTopicSchema != null && message.hasOwnProperty("useTopicSchema"))
|
|
7850
|
+
object.useTopicSchema = message.useTopicSchema;
|
|
7851
|
+
if (message.writeMetadata != null && message.hasOwnProperty("writeMetadata"))
|
|
7852
|
+
object.writeMetadata = message.writeMetadata;
|
|
7853
|
+
if (message.dropUnknownFields != null && message.hasOwnProperty("dropUnknownFields"))
|
|
7854
|
+
object.dropUnknownFields = message.dropUnknownFields;
|
|
7855
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
7856
|
+
object.state = options.enums === String ? $root.google.pubsub.v1.BigQueryConfig.State[message.state] === undefined ? message.state : $root.google.pubsub.v1.BigQueryConfig.State[message.state] : message.state;
|
|
7857
|
+
return object;
|
|
7858
|
+
};
|
|
7859
|
+
|
|
7860
|
+
/**
|
|
7861
|
+
* Converts this BigQueryConfig to JSON.
|
|
7862
|
+
* @function toJSON
|
|
7863
|
+
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7864
|
+
* @instance
|
|
7865
|
+
* @returns {Object.<string,*>} JSON object
|
|
7866
|
+
*/
|
|
7867
|
+
BigQueryConfig.prototype.toJSON = function toJSON() {
|
|
7868
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7869
|
+
};
|
|
7870
|
+
|
|
7871
|
+
/**
|
|
7872
|
+
* Gets the default type url for BigQueryConfig
|
|
7873
|
+
* @function getTypeUrl
|
|
7195
7874
|
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7196
7875
|
* @static
|
|
7197
|
-
* @param {
|
|
7198
|
-
* @
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7876
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7877
|
+
* @returns {string} The default type url
|
|
7878
|
+
*/
|
|
7879
|
+
BigQueryConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7880
|
+
if (typeUrlPrefix === undefined) {
|
|
7881
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
7882
|
+
}
|
|
7883
|
+
return typeUrlPrefix + "/google.pubsub.v1.BigQueryConfig";
|
|
7884
|
+
};
|
|
7885
|
+
|
|
7886
|
+
/**
|
|
7887
|
+
* State enum.
|
|
7888
|
+
* @name google.pubsub.v1.BigQueryConfig.State
|
|
7889
|
+
* @enum {number}
|
|
7890
|
+
* @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
|
|
7891
|
+
* @property {number} ACTIVE=1 ACTIVE value
|
|
7892
|
+
* @property {number} PERMISSION_DENIED=2 PERMISSION_DENIED value
|
|
7893
|
+
* @property {number} NOT_FOUND=3 NOT_FOUND value
|
|
7894
|
+
* @property {number} SCHEMA_MISMATCH=4 SCHEMA_MISMATCH value
|
|
7895
|
+
*/
|
|
7896
|
+
BigQueryConfig.State = (function() {
|
|
7897
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
7898
|
+
values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
|
|
7899
|
+
values[valuesById[1] = "ACTIVE"] = 1;
|
|
7900
|
+
values[valuesById[2] = "PERMISSION_DENIED"] = 2;
|
|
7901
|
+
values[valuesById[3] = "NOT_FOUND"] = 3;
|
|
7902
|
+
values[valuesById[4] = "SCHEMA_MISMATCH"] = 4;
|
|
7903
|
+
return values;
|
|
7904
|
+
})();
|
|
7905
|
+
|
|
7906
|
+
return BigQueryConfig;
|
|
7907
|
+
})();
|
|
7908
|
+
|
|
7909
|
+
v1.CloudStorageConfig = (function() {
|
|
7910
|
+
|
|
7911
|
+
/**
|
|
7912
|
+
* Properties of a CloudStorageConfig.
|
|
7913
|
+
* @memberof google.pubsub.v1
|
|
7914
|
+
* @interface ICloudStorageConfig
|
|
7915
|
+
* @property {string|null} [bucket] CloudStorageConfig bucket
|
|
7916
|
+
* @property {string|null} [filenamePrefix] CloudStorageConfig filenamePrefix
|
|
7917
|
+
* @property {string|null} [filenameSuffix] CloudStorageConfig filenameSuffix
|
|
7918
|
+
* @property {google.pubsub.v1.CloudStorageConfig.ITextConfig|null} [textConfig] CloudStorageConfig textConfig
|
|
7919
|
+
* @property {google.pubsub.v1.CloudStorageConfig.IAvroConfig|null} [avroConfig] CloudStorageConfig avroConfig
|
|
7920
|
+
* @property {google.protobuf.IDuration|null} [maxDuration] CloudStorageConfig maxDuration
|
|
7921
|
+
* @property {number|Long|null} [maxBytes] CloudStorageConfig maxBytes
|
|
7922
|
+
* @property {google.pubsub.v1.CloudStorageConfig.State|null} [state] CloudStorageConfig state
|
|
7923
|
+
*/
|
|
7924
|
+
|
|
7925
|
+
/**
|
|
7926
|
+
* Constructs a new CloudStorageConfig.
|
|
7927
|
+
* @memberof google.pubsub.v1
|
|
7928
|
+
* @classdesc Represents a CloudStorageConfig.
|
|
7929
|
+
* @implements ICloudStorageConfig
|
|
7930
|
+
* @constructor
|
|
7931
|
+
* @param {google.pubsub.v1.ICloudStorageConfig=} [properties] Properties to set
|
|
7932
|
+
*/
|
|
7933
|
+
function CloudStorageConfig(properties) {
|
|
7934
|
+
if (properties)
|
|
7935
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7936
|
+
if (properties[keys[i]] != null)
|
|
7937
|
+
this[keys[i]] = properties[keys[i]];
|
|
7938
|
+
}
|
|
7939
|
+
|
|
7940
|
+
/**
|
|
7941
|
+
* CloudStorageConfig bucket.
|
|
7942
|
+
* @member {string} bucket
|
|
7943
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
7944
|
+
* @instance
|
|
7945
|
+
*/
|
|
7946
|
+
CloudStorageConfig.prototype.bucket = "";
|
|
7947
|
+
|
|
7948
|
+
/**
|
|
7949
|
+
* CloudStorageConfig filenamePrefix.
|
|
7950
|
+
* @member {string} filenamePrefix
|
|
7951
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
7952
|
+
* @instance
|
|
7953
|
+
*/
|
|
7954
|
+
CloudStorageConfig.prototype.filenamePrefix = "";
|
|
7955
|
+
|
|
7956
|
+
/**
|
|
7957
|
+
* CloudStorageConfig filenameSuffix.
|
|
7958
|
+
* @member {string} filenameSuffix
|
|
7959
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
7960
|
+
* @instance
|
|
7961
|
+
*/
|
|
7962
|
+
CloudStorageConfig.prototype.filenameSuffix = "";
|
|
7963
|
+
|
|
7964
|
+
/**
|
|
7965
|
+
* CloudStorageConfig textConfig.
|
|
7966
|
+
* @member {google.pubsub.v1.CloudStorageConfig.ITextConfig|null|undefined} textConfig
|
|
7967
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
7968
|
+
* @instance
|
|
7969
|
+
*/
|
|
7970
|
+
CloudStorageConfig.prototype.textConfig = null;
|
|
7971
|
+
|
|
7972
|
+
/**
|
|
7973
|
+
* CloudStorageConfig avroConfig.
|
|
7974
|
+
* @member {google.pubsub.v1.CloudStorageConfig.IAvroConfig|null|undefined} avroConfig
|
|
7975
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
7976
|
+
* @instance
|
|
7977
|
+
*/
|
|
7978
|
+
CloudStorageConfig.prototype.avroConfig = null;
|
|
7979
|
+
|
|
7980
|
+
/**
|
|
7981
|
+
* CloudStorageConfig maxDuration.
|
|
7982
|
+
* @member {google.protobuf.IDuration|null|undefined} maxDuration
|
|
7983
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
7984
|
+
* @instance
|
|
7985
|
+
*/
|
|
7986
|
+
CloudStorageConfig.prototype.maxDuration = null;
|
|
7987
|
+
|
|
7988
|
+
/**
|
|
7989
|
+
* CloudStorageConfig maxBytes.
|
|
7990
|
+
* @member {number|Long} maxBytes
|
|
7991
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
7992
|
+
* @instance
|
|
7993
|
+
*/
|
|
7994
|
+
CloudStorageConfig.prototype.maxBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
7995
|
+
|
|
7996
|
+
/**
|
|
7997
|
+
* CloudStorageConfig state.
|
|
7998
|
+
* @member {google.pubsub.v1.CloudStorageConfig.State} state
|
|
7999
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8000
|
+
* @instance
|
|
8001
|
+
*/
|
|
8002
|
+
CloudStorageConfig.prototype.state = 0;
|
|
8003
|
+
|
|
8004
|
+
// OneOf field names bound to virtual getters and setters
|
|
8005
|
+
var $oneOfFields;
|
|
8006
|
+
|
|
8007
|
+
/**
|
|
8008
|
+
* CloudStorageConfig outputFormat.
|
|
8009
|
+
* @member {"textConfig"|"avroConfig"|undefined} outputFormat
|
|
8010
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8011
|
+
* @instance
|
|
8012
|
+
*/
|
|
8013
|
+
Object.defineProperty(CloudStorageConfig.prototype, "outputFormat", {
|
|
8014
|
+
get: $util.oneOfGetter($oneOfFields = ["textConfig", "avroConfig"]),
|
|
8015
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
8016
|
+
});
|
|
8017
|
+
|
|
8018
|
+
/**
|
|
8019
|
+
* Creates a new CloudStorageConfig instance using the specified properties.
|
|
8020
|
+
* @function create
|
|
8021
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8022
|
+
* @static
|
|
8023
|
+
* @param {google.pubsub.v1.ICloudStorageConfig=} [properties] Properties to set
|
|
8024
|
+
* @returns {google.pubsub.v1.CloudStorageConfig} CloudStorageConfig instance
|
|
8025
|
+
*/
|
|
8026
|
+
CloudStorageConfig.create = function create(properties) {
|
|
8027
|
+
return new CloudStorageConfig(properties);
|
|
8028
|
+
};
|
|
8029
|
+
|
|
8030
|
+
/**
|
|
8031
|
+
* Encodes the specified CloudStorageConfig message. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.verify|verify} messages.
|
|
8032
|
+
* @function encode
|
|
8033
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8034
|
+
* @static
|
|
8035
|
+
* @param {google.pubsub.v1.ICloudStorageConfig} message CloudStorageConfig message or plain object to encode
|
|
8036
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8037
|
+
* @returns {$protobuf.Writer} Writer
|
|
8038
|
+
*/
|
|
8039
|
+
CloudStorageConfig.encode = function encode(message, writer) {
|
|
8040
|
+
if (!writer)
|
|
8041
|
+
writer = $Writer.create();
|
|
8042
|
+
if (message.bucket != null && Object.hasOwnProperty.call(message, "bucket"))
|
|
8043
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.bucket);
|
|
8044
|
+
if (message.filenamePrefix != null && Object.hasOwnProperty.call(message, "filenamePrefix"))
|
|
8045
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.filenamePrefix);
|
|
8046
|
+
if (message.filenameSuffix != null && Object.hasOwnProperty.call(message, "filenameSuffix"))
|
|
8047
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.filenameSuffix);
|
|
8048
|
+
if (message.textConfig != null && Object.hasOwnProperty.call(message, "textConfig"))
|
|
8049
|
+
$root.google.pubsub.v1.CloudStorageConfig.TextConfig.encode(message.textConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
8050
|
+
if (message.avroConfig != null && Object.hasOwnProperty.call(message, "avroConfig"))
|
|
8051
|
+
$root.google.pubsub.v1.CloudStorageConfig.AvroConfig.encode(message.avroConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
8052
|
+
if (message.maxDuration != null && Object.hasOwnProperty.call(message, "maxDuration"))
|
|
8053
|
+
$root.google.protobuf.Duration.encode(message.maxDuration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
8054
|
+
if (message.maxBytes != null && Object.hasOwnProperty.call(message, "maxBytes"))
|
|
8055
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int64(message.maxBytes);
|
|
8056
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
8057
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state);
|
|
8058
|
+
return writer;
|
|
8059
|
+
};
|
|
8060
|
+
|
|
8061
|
+
/**
|
|
8062
|
+
* Encodes the specified CloudStorageConfig message, length delimited. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.verify|verify} messages.
|
|
8063
|
+
* @function encodeDelimited
|
|
8064
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8065
|
+
* @static
|
|
8066
|
+
* @param {google.pubsub.v1.ICloudStorageConfig} message CloudStorageConfig message or plain object to encode
|
|
8067
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8068
|
+
* @returns {$protobuf.Writer} Writer
|
|
8069
|
+
*/
|
|
8070
|
+
CloudStorageConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8071
|
+
return this.encode(message, writer).ldelim();
|
|
8072
|
+
};
|
|
8073
|
+
|
|
8074
|
+
/**
|
|
8075
|
+
* Decodes a CloudStorageConfig message from the specified reader or buffer.
|
|
8076
|
+
* @function decode
|
|
8077
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8078
|
+
* @static
|
|
8079
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8080
|
+
* @param {number} [length] Message length if known beforehand
|
|
8081
|
+
* @returns {google.pubsub.v1.CloudStorageConfig} CloudStorageConfig
|
|
8082
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8083
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8084
|
+
*/
|
|
8085
|
+
CloudStorageConfig.decode = function decode(reader, length) {
|
|
8086
|
+
if (!(reader instanceof $Reader))
|
|
8087
|
+
reader = $Reader.create(reader);
|
|
8088
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.CloudStorageConfig();
|
|
8089
|
+
while (reader.pos < end) {
|
|
8090
|
+
var tag = reader.uint32();
|
|
8091
|
+
switch (tag >>> 3) {
|
|
8092
|
+
case 1: {
|
|
8093
|
+
message.bucket = reader.string();
|
|
8094
|
+
break;
|
|
8095
|
+
}
|
|
8096
|
+
case 2: {
|
|
8097
|
+
message.filenamePrefix = reader.string();
|
|
8098
|
+
break;
|
|
8099
|
+
}
|
|
8100
|
+
case 3: {
|
|
8101
|
+
message.filenameSuffix = reader.string();
|
|
8102
|
+
break;
|
|
8103
|
+
}
|
|
8104
|
+
case 4: {
|
|
8105
|
+
message.textConfig = $root.google.pubsub.v1.CloudStorageConfig.TextConfig.decode(reader, reader.uint32());
|
|
8106
|
+
break;
|
|
8107
|
+
}
|
|
8108
|
+
case 5: {
|
|
8109
|
+
message.avroConfig = $root.google.pubsub.v1.CloudStorageConfig.AvroConfig.decode(reader, reader.uint32());
|
|
8110
|
+
break;
|
|
8111
|
+
}
|
|
8112
|
+
case 6: {
|
|
8113
|
+
message.maxDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
8114
|
+
break;
|
|
8115
|
+
}
|
|
8116
|
+
case 7: {
|
|
8117
|
+
message.maxBytes = reader.int64();
|
|
8118
|
+
break;
|
|
8119
|
+
}
|
|
8120
|
+
case 9: {
|
|
8121
|
+
message.state = reader.int32();
|
|
8122
|
+
break;
|
|
8123
|
+
}
|
|
8124
|
+
default:
|
|
8125
|
+
reader.skipType(tag & 7);
|
|
8126
|
+
break;
|
|
8127
|
+
}
|
|
8128
|
+
}
|
|
8129
|
+
return message;
|
|
8130
|
+
};
|
|
8131
|
+
|
|
8132
|
+
/**
|
|
8133
|
+
* Decodes a CloudStorageConfig message from the specified reader or buffer, length delimited.
|
|
8134
|
+
* @function decodeDelimited
|
|
8135
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8136
|
+
* @static
|
|
8137
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8138
|
+
* @returns {google.pubsub.v1.CloudStorageConfig} CloudStorageConfig
|
|
8139
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8140
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8141
|
+
*/
|
|
8142
|
+
CloudStorageConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
8143
|
+
if (!(reader instanceof $Reader))
|
|
8144
|
+
reader = new $Reader(reader);
|
|
8145
|
+
return this.decode(reader, reader.uint32());
|
|
8146
|
+
};
|
|
8147
|
+
|
|
8148
|
+
/**
|
|
8149
|
+
* Verifies a CloudStorageConfig message.
|
|
8150
|
+
* @function verify
|
|
8151
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8152
|
+
* @static
|
|
8153
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8154
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8155
|
+
*/
|
|
8156
|
+
CloudStorageConfig.verify = function verify(message) {
|
|
8157
|
+
if (typeof message !== "object" || message === null)
|
|
8158
|
+
return "object expected";
|
|
8159
|
+
var properties = {};
|
|
8160
|
+
if (message.bucket != null && message.hasOwnProperty("bucket"))
|
|
8161
|
+
if (!$util.isString(message.bucket))
|
|
8162
|
+
return "bucket: string expected";
|
|
8163
|
+
if (message.filenamePrefix != null && message.hasOwnProperty("filenamePrefix"))
|
|
8164
|
+
if (!$util.isString(message.filenamePrefix))
|
|
8165
|
+
return "filenamePrefix: string expected";
|
|
8166
|
+
if (message.filenameSuffix != null && message.hasOwnProperty("filenameSuffix"))
|
|
8167
|
+
if (!$util.isString(message.filenameSuffix))
|
|
8168
|
+
return "filenameSuffix: string expected";
|
|
8169
|
+
if (message.textConfig != null && message.hasOwnProperty("textConfig")) {
|
|
8170
|
+
properties.outputFormat = 1;
|
|
8171
|
+
{
|
|
8172
|
+
var error = $root.google.pubsub.v1.CloudStorageConfig.TextConfig.verify(message.textConfig);
|
|
8173
|
+
if (error)
|
|
8174
|
+
return "textConfig." + error;
|
|
8175
|
+
}
|
|
8176
|
+
}
|
|
8177
|
+
if (message.avroConfig != null && message.hasOwnProperty("avroConfig")) {
|
|
8178
|
+
if (properties.outputFormat === 1)
|
|
8179
|
+
return "outputFormat: multiple values";
|
|
8180
|
+
properties.outputFormat = 1;
|
|
8181
|
+
{
|
|
8182
|
+
var error = $root.google.pubsub.v1.CloudStorageConfig.AvroConfig.verify(message.avroConfig);
|
|
8183
|
+
if (error)
|
|
8184
|
+
return "avroConfig." + error;
|
|
8185
|
+
}
|
|
8186
|
+
}
|
|
8187
|
+
if (message.maxDuration != null && message.hasOwnProperty("maxDuration")) {
|
|
8188
|
+
var error = $root.google.protobuf.Duration.verify(message.maxDuration);
|
|
8189
|
+
if (error)
|
|
8190
|
+
return "maxDuration." + error;
|
|
8191
|
+
}
|
|
8192
|
+
if (message.maxBytes != null && message.hasOwnProperty("maxBytes"))
|
|
8193
|
+
if (!$util.isInteger(message.maxBytes) && !(message.maxBytes && $util.isInteger(message.maxBytes.low) && $util.isInteger(message.maxBytes.high)))
|
|
8194
|
+
return "maxBytes: integer|Long expected";
|
|
8195
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
8196
|
+
switch (message.state) {
|
|
8197
|
+
default:
|
|
8198
|
+
return "state: enum value expected";
|
|
8199
|
+
case 0:
|
|
8200
|
+
case 1:
|
|
8201
|
+
case 2:
|
|
8202
|
+
case 3:
|
|
8203
|
+
break;
|
|
8204
|
+
}
|
|
8205
|
+
return null;
|
|
8206
|
+
};
|
|
8207
|
+
|
|
8208
|
+
/**
|
|
8209
|
+
* Creates a CloudStorageConfig message from a plain object. Also converts values to their respective internal types.
|
|
8210
|
+
* @function fromObject
|
|
8211
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8212
|
+
* @static
|
|
8213
|
+
* @param {Object.<string,*>} object Plain object
|
|
8214
|
+
* @returns {google.pubsub.v1.CloudStorageConfig} CloudStorageConfig
|
|
7202
8215
|
*/
|
|
7203
|
-
|
|
7204
|
-
if (
|
|
7205
|
-
|
|
7206
|
-
var
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
8216
|
+
CloudStorageConfig.fromObject = function fromObject(object) {
|
|
8217
|
+
if (object instanceof $root.google.pubsub.v1.CloudStorageConfig)
|
|
8218
|
+
return object;
|
|
8219
|
+
var message = new $root.google.pubsub.v1.CloudStorageConfig();
|
|
8220
|
+
if (object.bucket != null)
|
|
8221
|
+
message.bucket = String(object.bucket);
|
|
8222
|
+
if (object.filenamePrefix != null)
|
|
8223
|
+
message.filenamePrefix = String(object.filenamePrefix);
|
|
8224
|
+
if (object.filenameSuffix != null)
|
|
8225
|
+
message.filenameSuffix = String(object.filenameSuffix);
|
|
8226
|
+
if (object.textConfig != null) {
|
|
8227
|
+
if (typeof object.textConfig !== "object")
|
|
8228
|
+
throw TypeError(".google.pubsub.v1.CloudStorageConfig.textConfig: object expected");
|
|
8229
|
+
message.textConfig = $root.google.pubsub.v1.CloudStorageConfig.TextConfig.fromObject(object.textConfig);
|
|
8230
|
+
}
|
|
8231
|
+
if (object.avroConfig != null) {
|
|
8232
|
+
if (typeof object.avroConfig !== "object")
|
|
8233
|
+
throw TypeError(".google.pubsub.v1.CloudStorageConfig.avroConfig: object expected");
|
|
8234
|
+
message.avroConfig = $root.google.pubsub.v1.CloudStorageConfig.AvroConfig.fromObject(object.avroConfig);
|
|
8235
|
+
}
|
|
8236
|
+
if (object.maxDuration != null) {
|
|
8237
|
+
if (typeof object.maxDuration !== "object")
|
|
8238
|
+
throw TypeError(".google.pubsub.v1.CloudStorageConfig.maxDuration: object expected");
|
|
8239
|
+
message.maxDuration = $root.google.protobuf.Duration.fromObject(object.maxDuration);
|
|
8240
|
+
}
|
|
8241
|
+
if (object.maxBytes != null)
|
|
8242
|
+
if ($util.Long)
|
|
8243
|
+
(message.maxBytes = $util.Long.fromValue(object.maxBytes)).unsigned = false;
|
|
8244
|
+
else if (typeof object.maxBytes === "string")
|
|
8245
|
+
message.maxBytes = parseInt(object.maxBytes, 10);
|
|
8246
|
+
else if (typeof object.maxBytes === "number")
|
|
8247
|
+
message.maxBytes = object.maxBytes;
|
|
8248
|
+
else if (typeof object.maxBytes === "object")
|
|
8249
|
+
message.maxBytes = new $util.LongBits(object.maxBytes.low >>> 0, object.maxBytes.high >>> 0).toNumber();
|
|
8250
|
+
switch (object.state) {
|
|
8251
|
+
default:
|
|
8252
|
+
if (typeof object.state === "number") {
|
|
8253
|
+
message.state = object.state;
|
|
8254
|
+
break;
|
|
8255
|
+
}
|
|
8256
|
+
break;
|
|
8257
|
+
case "STATE_UNSPECIFIED":
|
|
8258
|
+
case 0:
|
|
8259
|
+
message.state = 0;
|
|
8260
|
+
break;
|
|
8261
|
+
case "ACTIVE":
|
|
8262
|
+
case 1:
|
|
8263
|
+
message.state = 1;
|
|
8264
|
+
break;
|
|
8265
|
+
case "PERMISSION_DENIED":
|
|
8266
|
+
case 2:
|
|
8267
|
+
message.state = 2;
|
|
8268
|
+
break;
|
|
8269
|
+
case "NOT_FOUND":
|
|
8270
|
+
case 3:
|
|
8271
|
+
message.state = 3;
|
|
8272
|
+
break;
|
|
8273
|
+
}
|
|
8274
|
+
return message;
|
|
8275
|
+
};
|
|
8276
|
+
|
|
8277
|
+
/**
|
|
8278
|
+
* Creates a plain object from a CloudStorageConfig message. Also converts values to other types if specified.
|
|
8279
|
+
* @function toObject
|
|
8280
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8281
|
+
* @static
|
|
8282
|
+
* @param {google.pubsub.v1.CloudStorageConfig} message CloudStorageConfig
|
|
8283
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8284
|
+
* @returns {Object.<string,*>} Plain object
|
|
8285
|
+
*/
|
|
8286
|
+
CloudStorageConfig.toObject = function toObject(message, options) {
|
|
8287
|
+
if (!options)
|
|
8288
|
+
options = {};
|
|
8289
|
+
var object = {};
|
|
8290
|
+
if (options.defaults) {
|
|
8291
|
+
object.bucket = "";
|
|
8292
|
+
object.filenamePrefix = "";
|
|
8293
|
+
object.filenameSuffix = "";
|
|
8294
|
+
object.maxDuration = null;
|
|
8295
|
+
if ($util.Long) {
|
|
8296
|
+
var long = new $util.Long(0, 0, false);
|
|
8297
|
+
object.maxBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8298
|
+
} else
|
|
8299
|
+
object.maxBytes = options.longs === String ? "0" : 0;
|
|
8300
|
+
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
8301
|
+
}
|
|
8302
|
+
if (message.bucket != null && message.hasOwnProperty("bucket"))
|
|
8303
|
+
object.bucket = message.bucket;
|
|
8304
|
+
if (message.filenamePrefix != null && message.hasOwnProperty("filenamePrefix"))
|
|
8305
|
+
object.filenamePrefix = message.filenamePrefix;
|
|
8306
|
+
if (message.filenameSuffix != null && message.hasOwnProperty("filenameSuffix"))
|
|
8307
|
+
object.filenameSuffix = message.filenameSuffix;
|
|
8308
|
+
if (message.textConfig != null && message.hasOwnProperty("textConfig")) {
|
|
8309
|
+
object.textConfig = $root.google.pubsub.v1.CloudStorageConfig.TextConfig.toObject(message.textConfig, options);
|
|
8310
|
+
if (options.oneofs)
|
|
8311
|
+
object.outputFormat = "textConfig";
|
|
8312
|
+
}
|
|
8313
|
+
if (message.avroConfig != null && message.hasOwnProperty("avroConfig")) {
|
|
8314
|
+
object.avroConfig = $root.google.pubsub.v1.CloudStorageConfig.AvroConfig.toObject(message.avroConfig, options);
|
|
8315
|
+
if (options.oneofs)
|
|
8316
|
+
object.outputFormat = "avroConfig";
|
|
8317
|
+
}
|
|
8318
|
+
if (message.maxDuration != null && message.hasOwnProperty("maxDuration"))
|
|
8319
|
+
object.maxDuration = $root.google.protobuf.Duration.toObject(message.maxDuration, options);
|
|
8320
|
+
if (message.maxBytes != null && message.hasOwnProperty("maxBytes"))
|
|
8321
|
+
if (typeof message.maxBytes === "number")
|
|
8322
|
+
object.maxBytes = options.longs === String ? String(message.maxBytes) : message.maxBytes;
|
|
8323
|
+
else
|
|
8324
|
+
object.maxBytes = options.longs === String ? $util.Long.prototype.toString.call(message.maxBytes) : options.longs === Number ? new $util.LongBits(message.maxBytes.low >>> 0, message.maxBytes.high >>> 0).toNumber() : message.maxBytes;
|
|
8325
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
8326
|
+
object.state = options.enums === String ? $root.google.pubsub.v1.CloudStorageConfig.State[message.state] === undefined ? message.state : $root.google.pubsub.v1.CloudStorageConfig.State[message.state] : message.state;
|
|
8327
|
+
return object;
|
|
8328
|
+
};
|
|
8329
|
+
|
|
8330
|
+
/**
|
|
8331
|
+
* Converts this CloudStorageConfig to JSON.
|
|
8332
|
+
* @function toJSON
|
|
8333
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8334
|
+
* @instance
|
|
8335
|
+
* @returns {Object.<string,*>} JSON object
|
|
8336
|
+
*/
|
|
8337
|
+
CloudStorageConfig.prototype.toJSON = function toJSON() {
|
|
8338
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8339
|
+
};
|
|
8340
|
+
|
|
8341
|
+
/**
|
|
8342
|
+
* Gets the default type url for CloudStorageConfig
|
|
8343
|
+
* @function getTypeUrl
|
|
8344
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8345
|
+
* @static
|
|
8346
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8347
|
+
* @returns {string} The default type url
|
|
8348
|
+
*/
|
|
8349
|
+
CloudStorageConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
8350
|
+
if (typeUrlPrefix === undefined) {
|
|
8351
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
8352
|
+
}
|
|
8353
|
+
return typeUrlPrefix + "/google.pubsub.v1.CloudStorageConfig";
|
|
8354
|
+
};
|
|
8355
|
+
|
|
8356
|
+
CloudStorageConfig.TextConfig = (function() {
|
|
8357
|
+
|
|
8358
|
+
/**
|
|
8359
|
+
* Properties of a TextConfig.
|
|
8360
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8361
|
+
* @interface ITextConfig
|
|
8362
|
+
*/
|
|
8363
|
+
|
|
8364
|
+
/**
|
|
8365
|
+
* Constructs a new TextConfig.
|
|
8366
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8367
|
+
* @classdesc Represents a TextConfig.
|
|
8368
|
+
* @implements ITextConfig
|
|
8369
|
+
* @constructor
|
|
8370
|
+
* @param {google.pubsub.v1.CloudStorageConfig.ITextConfig=} [properties] Properties to set
|
|
8371
|
+
*/
|
|
8372
|
+
function TextConfig(properties) {
|
|
8373
|
+
if (properties)
|
|
8374
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8375
|
+
if (properties[keys[i]] != null)
|
|
8376
|
+
this[keys[i]] = properties[keys[i]];
|
|
8377
|
+
}
|
|
8378
|
+
|
|
8379
|
+
/**
|
|
8380
|
+
* Creates a new TextConfig instance using the specified properties.
|
|
8381
|
+
* @function create
|
|
8382
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.TextConfig
|
|
8383
|
+
* @static
|
|
8384
|
+
* @param {google.pubsub.v1.CloudStorageConfig.ITextConfig=} [properties] Properties to set
|
|
8385
|
+
* @returns {google.pubsub.v1.CloudStorageConfig.TextConfig} TextConfig instance
|
|
8386
|
+
*/
|
|
8387
|
+
TextConfig.create = function create(properties) {
|
|
8388
|
+
return new TextConfig(properties);
|
|
8389
|
+
};
|
|
8390
|
+
|
|
8391
|
+
/**
|
|
8392
|
+
* Encodes the specified TextConfig message. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.TextConfig.verify|verify} messages.
|
|
8393
|
+
* @function encode
|
|
8394
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.TextConfig
|
|
8395
|
+
* @static
|
|
8396
|
+
* @param {google.pubsub.v1.CloudStorageConfig.ITextConfig} message TextConfig message or plain object to encode
|
|
8397
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8398
|
+
* @returns {$protobuf.Writer} Writer
|
|
8399
|
+
*/
|
|
8400
|
+
TextConfig.encode = function encode(message, writer) {
|
|
8401
|
+
if (!writer)
|
|
8402
|
+
writer = $Writer.create();
|
|
8403
|
+
return writer;
|
|
8404
|
+
};
|
|
8405
|
+
|
|
8406
|
+
/**
|
|
8407
|
+
* Encodes the specified TextConfig message, length delimited. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.TextConfig.verify|verify} messages.
|
|
8408
|
+
* @function encodeDelimited
|
|
8409
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.TextConfig
|
|
8410
|
+
* @static
|
|
8411
|
+
* @param {google.pubsub.v1.CloudStorageConfig.ITextConfig} message TextConfig message or plain object to encode
|
|
8412
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8413
|
+
* @returns {$protobuf.Writer} Writer
|
|
8414
|
+
*/
|
|
8415
|
+
TextConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8416
|
+
return this.encode(message, writer).ldelim();
|
|
8417
|
+
};
|
|
8418
|
+
|
|
8419
|
+
/**
|
|
8420
|
+
* Decodes a TextConfig message from the specified reader or buffer.
|
|
8421
|
+
* @function decode
|
|
8422
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.TextConfig
|
|
8423
|
+
* @static
|
|
8424
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8425
|
+
* @param {number} [length] Message length if known beforehand
|
|
8426
|
+
* @returns {google.pubsub.v1.CloudStorageConfig.TextConfig} TextConfig
|
|
8427
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8428
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8429
|
+
*/
|
|
8430
|
+
TextConfig.decode = function decode(reader, length) {
|
|
8431
|
+
if (!(reader instanceof $Reader))
|
|
8432
|
+
reader = $Reader.create(reader);
|
|
8433
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.CloudStorageConfig.TextConfig();
|
|
8434
|
+
while (reader.pos < end) {
|
|
8435
|
+
var tag = reader.uint32();
|
|
8436
|
+
switch (tag >>> 3) {
|
|
8437
|
+
default:
|
|
8438
|
+
reader.skipType(tag & 7);
|
|
7224
8439
|
break;
|
|
7225
8440
|
}
|
|
7226
|
-
|
|
7227
|
-
|
|
8441
|
+
}
|
|
8442
|
+
return message;
|
|
8443
|
+
};
|
|
8444
|
+
|
|
8445
|
+
/**
|
|
8446
|
+
* Decodes a TextConfig message from the specified reader or buffer, length delimited.
|
|
8447
|
+
* @function decodeDelimited
|
|
8448
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.TextConfig
|
|
8449
|
+
* @static
|
|
8450
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8451
|
+
* @returns {google.pubsub.v1.CloudStorageConfig.TextConfig} TextConfig
|
|
8452
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8453
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8454
|
+
*/
|
|
8455
|
+
TextConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
8456
|
+
if (!(reader instanceof $Reader))
|
|
8457
|
+
reader = new $Reader(reader);
|
|
8458
|
+
return this.decode(reader, reader.uint32());
|
|
8459
|
+
};
|
|
8460
|
+
|
|
8461
|
+
/**
|
|
8462
|
+
* Verifies a TextConfig message.
|
|
8463
|
+
* @function verify
|
|
8464
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.TextConfig
|
|
8465
|
+
* @static
|
|
8466
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8467
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8468
|
+
*/
|
|
8469
|
+
TextConfig.verify = function verify(message) {
|
|
8470
|
+
if (typeof message !== "object" || message === null)
|
|
8471
|
+
return "object expected";
|
|
8472
|
+
return null;
|
|
8473
|
+
};
|
|
8474
|
+
|
|
8475
|
+
/**
|
|
8476
|
+
* Creates a TextConfig message from a plain object. Also converts values to their respective internal types.
|
|
8477
|
+
* @function fromObject
|
|
8478
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.TextConfig
|
|
8479
|
+
* @static
|
|
8480
|
+
* @param {Object.<string,*>} object Plain object
|
|
8481
|
+
* @returns {google.pubsub.v1.CloudStorageConfig.TextConfig} TextConfig
|
|
8482
|
+
*/
|
|
8483
|
+
TextConfig.fromObject = function fromObject(object) {
|
|
8484
|
+
if (object instanceof $root.google.pubsub.v1.CloudStorageConfig.TextConfig)
|
|
8485
|
+
return object;
|
|
8486
|
+
return new $root.google.pubsub.v1.CloudStorageConfig.TextConfig();
|
|
8487
|
+
};
|
|
8488
|
+
|
|
8489
|
+
/**
|
|
8490
|
+
* Creates a plain object from a TextConfig message. Also converts values to other types if specified.
|
|
8491
|
+
* @function toObject
|
|
8492
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.TextConfig
|
|
8493
|
+
* @static
|
|
8494
|
+
* @param {google.pubsub.v1.CloudStorageConfig.TextConfig} message TextConfig
|
|
8495
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8496
|
+
* @returns {Object.<string,*>} Plain object
|
|
8497
|
+
*/
|
|
8498
|
+
TextConfig.toObject = function toObject() {
|
|
8499
|
+
return {};
|
|
8500
|
+
};
|
|
8501
|
+
|
|
8502
|
+
/**
|
|
8503
|
+
* Converts this TextConfig to JSON.
|
|
8504
|
+
* @function toJSON
|
|
8505
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.TextConfig
|
|
8506
|
+
* @instance
|
|
8507
|
+
* @returns {Object.<string,*>} JSON object
|
|
8508
|
+
*/
|
|
8509
|
+
TextConfig.prototype.toJSON = function toJSON() {
|
|
8510
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8511
|
+
};
|
|
8512
|
+
|
|
8513
|
+
/**
|
|
8514
|
+
* Gets the default type url for TextConfig
|
|
8515
|
+
* @function getTypeUrl
|
|
8516
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.TextConfig
|
|
8517
|
+
* @static
|
|
8518
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8519
|
+
* @returns {string} The default type url
|
|
8520
|
+
*/
|
|
8521
|
+
TextConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
8522
|
+
if (typeUrlPrefix === undefined) {
|
|
8523
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
8524
|
+
}
|
|
8525
|
+
return typeUrlPrefix + "/google.pubsub.v1.CloudStorageConfig.TextConfig";
|
|
8526
|
+
};
|
|
8527
|
+
|
|
8528
|
+
return TextConfig;
|
|
8529
|
+
})();
|
|
8530
|
+
|
|
8531
|
+
CloudStorageConfig.AvroConfig = (function() {
|
|
8532
|
+
|
|
8533
|
+
/**
|
|
8534
|
+
* Properties of an AvroConfig.
|
|
8535
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8536
|
+
* @interface IAvroConfig
|
|
8537
|
+
* @property {boolean|null} [writeMetadata] AvroConfig writeMetadata
|
|
8538
|
+
*/
|
|
8539
|
+
|
|
8540
|
+
/**
|
|
8541
|
+
* Constructs a new AvroConfig.
|
|
8542
|
+
* @memberof google.pubsub.v1.CloudStorageConfig
|
|
8543
|
+
* @classdesc Represents an AvroConfig.
|
|
8544
|
+
* @implements IAvroConfig
|
|
8545
|
+
* @constructor
|
|
8546
|
+
* @param {google.pubsub.v1.CloudStorageConfig.IAvroConfig=} [properties] Properties to set
|
|
8547
|
+
*/
|
|
8548
|
+
function AvroConfig(properties) {
|
|
8549
|
+
if (properties)
|
|
8550
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8551
|
+
if (properties[keys[i]] != null)
|
|
8552
|
+
this[keys[i]] = properties[keys[i]];
|
|
8553
|
+
}
|
|
8554
|
+
|
|
8555
|
+
/**
|
|
8556
|
+
* AvroConfig writeMetadata.
|
|
8557
|
+
* @member {boolean} writeMetadata
|
|
8558
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.AvroConfig
|
|
8559
|
+
* @instance
|
|
8560
|
+
*/
|
|
8561
|
+
AvroConfig.prototype.writeMetadata = false;
|
|
8562
|
+
|
|
8563
|
+
/**
|
|
8564
|
+
* Creates a new AvroConfig instance using the specified properties.
|
|
8565
|
+
* @function create
|
|
8566
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.AvroConfig
|
|
8567
|
+
* @static
|
|
8568
|
+
* @param {google.pubsub.v1.CloudStorageConfig.IAvroConfig=} [properties] Properties to set
|
|
8569
|
+
* @returns {google.pubsub.v1.CloudStorageConfig.AvroConfig} AvroConfig instance
|
|
8570
|
+
*/
|
|
8571
|
+
AvroConfig.create = function create(properties) {
|
|
8572
|
+
return new AvroConfig(properties);
|
|
8573
|
+
};
|
|
8574
|
+
|
|
8575
|
+
/**
|
|
8576
|
+
* Encodes the specified AvroConfig message. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.AvroConfig.verify|verify} messages.
|
|
8577
|
+
* @function encode
|
|
8578
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.AvroConfig
|
|
8579
|
+
* @static
|
|
8580
|
+
* @param {google.pubsub.v1.CloudStorageConfig.IAvroConfig} message AvroConfig message or plain object to encode
|
|
8581
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8582
|
+
* @returns {$protobuf.Writer} Writer
|
|
8583
|
+
*/
|
|
8584
|
+
AvroConfig.encode = function encode(message, writer) {
|
|
8585
|
+
if (!writer)
|
|
8586
|
+
writer = $Writer.create();
|
|
8587
|
+
if (message.writeMetadata != null && Object.hasOwnProperty.call(message, "writeMetadata"))
|
|
8588
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.writeMetadata);
|
|
8589
|
+
return writer;
|
|
8590
|
+
};
|
|
8591
|
+
|
|
8592
|
+
/**
|
|
8593
|
+
* Encodes the specified AvroConfig message, length delimited. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.AvroConfig.verify|verify} messages.
|
|
8594
|
+
* @function encodeDelimited
|
|
8595
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.AvroConfig
|
|
8596
|
+
* @static
|
|
8597
|
+
* @param {google.pubsub.v1.CloudStorageConfig.IAvroConfig} message AvroConfig message or plain object to encode
|
|
8598
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8599
|
+
* @returns {$protobuf.Writer} Writer
|
|
8600
|
+
*/
|
|
8601
|
+
AvroConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8602
|
+
return this.encode(message, writer).ldelim();
|
|
8603
|
+
};
|
|
8604
|
+
|
|
8605
|
+
/**
|
|
8606
|
+
* Decodes an AvroConfig message from the specified reader or buffer.
|
|
8607
|
+
* @function decode
|
|
8608
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.AvroConfig
|
|
8609
|
+
* @static
|
|
8610
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8611
|
+
* @param {number} [length] Message length if known beforehand
|
|
8612
|
+
* @returns {google.pubsub.v1.CloudStorageConfig.AvroConfig} AvroConfig
|
|
8613
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8614
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8615
|
+
*/
|
|
8616
|
+
AvroConfig.decode = function decode(reader, length) {
|
|
8617
|
+
if (!(reader instanceof $Reader))
|
|
8618
|
+
reader = $Reader.create(reader);
|
|
8619
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.CloudStorageConfig.AvroConfig();
|
|
8620
|
+
while (reader.pos < end) {
|
|
8621
|
+
var tag = reader.uint32();
|
|
8622
|
+
switch (tag >>> 3) {
|
|
8623
|
+
case 1: {
|
|
8624
|
+
message.writeMetadata = reader.bool();
|
|
8625
|
+
break;
|
|
8626
|
+
}
|
|
8627
|
+
default:
|
|
8628
|
+
reader.skipType(tag & 7);
|
|
7228
8629
|
break;
|
|
7229
8630
|
}
|
|
7230
|
-
default:
|
|
7231
|
-
reader.skipType(tag & 7);
|
|
7232
|
-
break;
|
|
7233
8631
|
}
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
};
|
|
8632
|
+
return message;
|
|
8633
|
+
};
|
|
7237
8634
|
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
8635
|
+
/**
|
|
8636
|
+
* Decodes an AvroConfig message from the specified reader or buffer, length delimited.
|
|
8637
|
+
* @function decodeDelimited
|
|
8638
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.AvroConfig
|
|
8639
|
+
* @static
|
|
8640
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8641
|
+
* @returns {google.pubsub.v1.CloudStorageConfig.AvroConfig} AvroConfig
|
|
8642
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8643
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8644
|
+
*/
|
|
8645
|
+
AvroConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
8646
|
+
if (!(reader instanceof $Reader))
|
|
8647
|
+
reader = new $Reader(reader);
|
|
8648
|
+
return this.decode(reader, reader.uint32());
|
|
8649
|
+
};
|
|
7253
8650
|
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
return "useTopicSchema: boolean expected";
|
|
7271
|
-
if (message.writeMetadata != null && message.hasOwnProperty("writeMetadata"))
|
|
7272
|
-
if (typeof message.writeMetadata !== "boolean")
|
|
7273
|
-
return "writeMetadata: boolean expected";
|
|
7274
|
-
if (message.dropUnknownFields != null && message.hasOwnProperty("dropUnknownFields"))
|
|
7275
|
-
if (typeof message.dropUnknownFields !== "boolean")
|
|
7276
|
-
return "dropUnknownFields: boolean expected";
|
|
7277
|
-
if (message.state != null && message.hasOwnProperty("state"))
|
|
7278
|
-
switch (message.state) {
|
|
7279
|
-
default:
|
|
7280
|
-
return "state: enum value expected";
|
|
7281
|
-
case 0:
|
|
7282
|
-
case 1:
|
|
7283
|
-
case 2:
|
|
7284
|
-
case 3:
|
|
7285
|
-
case 4:
|
|
7286
|
-
break;
|
|
7287
|
-
}
|
|
7288
|
-
return null;
|
|
7289
|
-
};
|
|
8651
|
+
/**
|
|
8652
|
+
* Verifies an AvroConfig message.
|
|
8653
|
+
* @function verify
|
|
8654
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.AvroConfig
|
|
8655
|
+
* @static
|
|
8656
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8657
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8658
|
+
*/
|
|
8659
|
+
AvroConfig.verify = function verify(message) {
|
|
8660
|
+
if (typeof message !== "object" || message === null)
|
|
8661
|
+
return "object expected";
|
|
8662
|
+
if (message.writeMetadata != null && message.hasOwnProperty("writeMetadata"))
|
|
8663
|
+
if (typeof message.writeMetadata !== "boolean")
|
|
8664
|
+
return "writeMetadata: boolean expected";
|
|
8665
|
+
return null;
|
|
8666
|
+
};
|
|
7290
8667
|
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
8668
|
+
/**
|
|
8669
|
+
* Creates an AvroConfig message from a plain object. Also converts values to their respective internal types.
|
|
8670
|
+
* @function fromObject
|
|
8671
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.AvroConfig
|
|
8672
|
+
* @static
|
|
8673
|
+
* @param {Object.<string,*>} object Plain object
|
|
8674
|
+
* @returns {google.pubsub.v1.CloudStorageConfig.AvroConfig} AvroConfig
|
|
8675
|
+
*/
|
|
8676
|
+
AvroConfig.fromObject = function fromObject(object) {
|
|
8677
|
+
if (object instanceof $root.google.pubsub.v1.CloudStorageConfig.AvroConfig)
|
|
8678
|
+
return object;
|
|
8679
|
+
var message = new $root.google.pubsub.v1.CloudStorageConfig.AvroConfig();
|
|
8680
|
+
if (object.writeMetadata != null)
|
|
8681
|
+
message.writeMetadata = Boolean(object.writeMetadata);
|
|
8682
|
+
return message;
|
|
8683
|
+
};
|
|
8684
|
+
|
|
8685
|
+
/**
|
|
8686
|
+
* Creates a plain object from an AvroConfig message. Also converts values to other types if specified.
|
|
8687
|
+
* @function toObject
|
|
8688
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.AvroConfig
|
|
8689
|
+
* @static
|
|
8690
|
+
* @param {google.pubsub.v1.CloudStorageConfig.AvroConfig} message AvroConfig
|
|
8691
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8692
|
+
* @returns {Object.<string,*>} Plain object
|
|
8693
|
+
*/
|
|
8694
|
+
AvroConfig.toObject = function toObject(message, options) {
|
|
8695
|
+
if (!options)
|
|
8696
|
+
options = {};
|
|
8697
|
+
var object = {};
|
|
8698
|
+
if (options.defaults)
|
|
8699
|
+
object.writeMetadata = false;
|
|
8700
|
+
if (message.writeMetadata != null && message.hasOwnProperty("writeMetadata"))
|
|
8701
|
+
object.writeMetadata = message.writeMetadata;
|
|
7301
8702
|
return object;
|
|
7302
|
-
|
|
7303
|
-
if (object.table != null)
|
|
7304
|
-
message.table = String(object.table);
|
|
7305
|
-
if (object.useTopicSchema != null)
|
|
7306
|
-
message.useTopicSchema = Boolean(object.useTopicSchema);
|
|
7307
|
-
if (object.writeMetadata != null)
|
|
7308
|
-
message.writeMetadata = Boolean(object.writeMetadata);
|
|
7309
|
-
if (object.dropUnknownFields != null)
|
|
7310
|
-
message.dropUnknownFields = Boolean(object.dropUnknownFields);
|
|
7311
|
-
switch (object.state) {
|
|
7312
|
-
default:
|
|
7313
|
-
if (typeof object.state === "number") {
|
|
7314
|
-
message.state = object.state;
|
|
7315
|
-
break;
|
|
7316
|
-
}
|
|
7317
|
-
break;
|
|
7318
|
-
case "STATE_UNSPECIFIED":
|
|
7319
|
-
case 0:
|
|
7320
|
-
message.state = 0;
|
|
7321
|
-
break;
|
|
7322
|
-
case "ACTIVE":
|
|
7323
|
-
case 1:
|
|
7324
|
-
message.state = 1;
|
|
7325
|
-
break;
|
|
7326
|
-
case "PERMISSION_DENIED":
|
|
7327
|
-
case 2:
|
|
7328
|
-
message.state = 2;
|
|
7329
|
-
break;
|
|
7330
|
-
case "NOT_FOUND":
|
|
7331
|
-
case 3:
|
|
7332
|
-
message.state = 3;
|
|
7333
|
-
break;
|
|
7334
|
-
case "SCHEMA_MISMATCH":
|
|
7335
|
-
case 4:
|
|
7336
|
-
message.state = 4;
|
|
7337
|
-
break;
|
|
7338
|
-
}
|
|
7339
|
-
return message;
|
|
7340
|
-
};
|
|
8703
|
+
};
|
|
7341
8704
|
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
if (!options)
|
|
7353
|
-
options = {};
|
|
7354
|
-
var object = {};
|
|
7355
|
-
if (options.defaults) {
|
|
7356
|
-
object.table = "";
|
|
7357
|
-
object.useTopicSchema = false;
|
|
7358
|
-
object.writeMetadata = false;
|
|
7359
|
-
object.dropUnknownFields = false;
|
|
7360
|
-
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
7361
|
-
}
|
|
7362
|
-
if (message.table != null && message.hasOwnProperty("table"))
|
|
7363
|
-
object.table = message.table;
|
|
7364
|
-
if (message.useTopicSchema != null && message.hasOwnProperty("useTopicSchema"))
|
|
7365
|
-
object.useTopicSchema = message.useTopicSchema;
|
|
7366
|
-
if (message.writeMetadata != null && message.hasOwnProperty("writeMetadata"))
|
|
7367
|
-
object.writeMetadata = message.writeMetadata;
|
|
7368
|
-
if (message.dropUnknownFields != null && message.hasOwnProperty("dropUnknownFields"))
|
|
7369
|
-
object.dropUnknownFields = message.dropUnknownFields;
|
|
7370
|
-
if (message.state != null && message.hasOwnProperty("state"))
|
|
7371
|
-
object.state = options.enums === String ? $root.google.pubsub.v1.BigQueryConfig.State[message.state] === undefined ? message.state : $root.google.pubsub.v1.BigQueryConfig.State[message.state] : message.state;
|
|
7372
|
-
return object;
|
|
7373
|
-
};
|
|
8705
|
+
/**
|
|
8706
|
+
* Converts this AvroConfig to JSON.
|
|
8707
|
+
* @function toJSON
|
|
8708
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.AvroConfig
|
|
8709
|
+
* @instance
|
|
8710
|
+
* @returns {Object.<string,*>} JSON object
|
|
8711
|
+
*/
|
|
8712
|
+
AvroConfig.prototype.toJSON = function toJSON() {
|
|
8713
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8714
|
+
};
|
|
7374
8715
|
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
8716
|
+
/**
|
|
8717
|
+
* Gets the default type url for AvroConfig
|
|
8718
|
+
* @function getTypeUrl
|
|
8719
|
+
* @memberof google.pubsub.v1.CloudStorageConfig.AvroConfig
|
|
8720
|
+
* @static
|
|
8721
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8722
|
+
* @returns {string} The default type url
|
|
8723
|
+
*/
|
|
8724
|
+
AvroConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
8725
|
+
if (typeUrlPrefix === undefined) {
|
|
8726
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
8727
|
+
}
|
|
8728
|
+
return typeUrlPrefix + "/google.pubsub.v1.CloudStorageConfig.AvroConfig";
|
|
8729
|
+
};
|
|
7385
8730
|
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
* @function getTypeUrl
|
|
7389
|
-
* @memberof google.pubsub.v1.BigQueryConfig
|
|
7390
|
-
* @static
|
|
7391
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7392
|
-
* @returns {string} The default type url
|
|
7393
|
-
*/
|
|
7394
|
-
BigQueryConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7395
|
-
if (typeUrlPrefix === undefined) {
|
|
7396
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
7397
|
-
}
|
|
7398
|
-
return typeUrlPrefix + "/google.pubsub.v1.BigQueryConfig";
|
|
7399
|
-
};
|
|
8731
|
+
return AvroConfig;
|
|
8732
|
+
})();
|
|
7400
8733
|
|
|
7401
8734
|
/**
|
|
7402
8735
|
* State enum.
|
|
7403
|
-
* @name google.pubsub.v1.
|
|
8736
|
+
* @name google.pubsub.v1.CloudStorageConfig.State
|
|
7404
8737
|
* @enum {number}
|
|
7405
8738
|
* @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
|
|
7406
8739
|
* @property {number} ACTIVE=1 ACTIVE value
|
|
7407
8740
|
* @property {number} PERMISSION_DENIED=2 PERMISSION_DENIED value
|
|
7408
8741
|
* @property {number} NOT_FOUND=3 NOT_FOUND value
|
|
7409
|
-
* @property {number} SCHEMA_MISMATCH=4 SCHEMA_MISMATCH value
|
|
7410
8742
|
*/
|
|
7411
|
-
|
|
8743
|
+
CloudStorageConfig.State = (function() {
|
|
7412
8744
|
var valuesById = {}, values = Object.create(valuesById);
|
|
7413
8745
|
values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
|
|
7414
8746
|
values[valuesById[1] = "ACTIVE"] = 1;
|
|
7415
8747
|
values[valuesById[2] = "PERMISSION_DENIED"] = 2;
|
|
7416
8748
|
values[valuesById[3] = "NOT_FOUND"] = 3;
|
|
7417
|
-
values[valuesById[4] = "SCHEMA_MISMATCH"] = 4;
|
|
7418
8749
|
return values;
|
|
7419
8750
|
})();
|
|
7420
8751
|
|
|
7421
|
-
return
|
|
8752
|
+
return CloudStorageConfig;
|
|
7422
8753
|
})();
|
|
7423
8754
|
|
|
7424
8755
|
v1.ReceivedMessage = (function() {
|