@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.d.ts
CHANGED
|
@@ -2398,6 +2398,9 @@ export namespace google {
|
|
|
2398
2398
|
/** Subscription bigqueryConfig */
|
|
2399
2399
|
bigqueryConfig?: (google.pubsub.v1.IBigQueryConfig|null);
|
|
2400
2400
|
|
|
2401
|
+
/** Subscription cloudStorageConfig */
|
|
2402
|
+
cloudStorageConfig?: (google.pubsub.v1.ICloudStorageConfig|null);
|
|
2403
|
+
|
|
2401
2404
|
/** Subscription ackDeadlineSeconds */
|
|
2402
2405
|
ackDeadlineSeconds?: (number|null);
|
|
2403
2406
|
|
|
@@ -2459,6 +2462,9 @@ export namespace google {
|
|
|
2459
2462
|
/** Subscription bigqueryConfig. */
|
|
2460
2463
|
public bigqueryConfig?: (google.pubsub.v1.IBigQueryConfig|null);
|
|
2461
2464
|
|
|
2465
|
+
/** Subscription cloudStorageConfig. */
|
|
2466
|
+
public cloudStorageConfig?: (google.pubsub.v1.ICloudStorageConfig|null);
|
|
2467
|
+
|
|
2462
2468
|
/** Subscription ackDeadlineSeconds. */
|
|
2463
2469
|
public ackDeadlineSeconds: number;
|
|
2464
2470
|
|
|
@@ -2900,6 +2906,12 @@ export namespace google {
|
|
|
2900
2906
|
|
|
2901
2907
|
/** PushConfig oidcToken */
|
|
2902
2908
|
oidcToken?: (google.pubsub.v1.PushConfig.IOidcToken|null);
|
|
2909
|
+
|
|
2910
|
+
/** PushConfig pubsubWrapper */
|
|
2911
|
+
pubsubWrapper?: (google.pubsub.v1.PushConfig.IPubsubWrapper|null);
|
|
2912
|
+
|
|
2913
|
+
/** PushConfig noWrapper */
|
|
2914
|
+
noWrapper?: (google.pubsub.v1.PushConfig.INoWrapper|null);
|
|
2903
2915
|
}
|
|
2904
2916
|
|
|
2905
2917
|
/** Represents a PushConfig. */
|
|
@@ -2920,9 +2932,18 @@ export namespace google {
|
|
|
2920
2932
|
/** PushConfig oidcToken. */
|
|
2921
2933
|
public oidcToken?: (google.pubsub.v1.PushConfig.IOidcToken|null);
|
|
2922
2934
|
|
|
2935
|
+
/** PushConfig pubsubWrapper. */
|
|
2936
|
+
public pubsubWrapper?: (google.pubsub.v1.PushConfig.IPubsubWrapper|null);
|
|
2937
|
+
|
|
2938
|
+
/** PushConfig noWrapper. */
|
|
2939
|
+
public noWrapper?: (google.pubsub.v1.PushConfig.INoWrapper|null);
|
|
2940
|
+
|
|
2923
2941
|
/** PushConfig authenticationMethod. */
|
|
2924
2942
|
public authenticationMethod?: "oidcToken";
|
|
2925
2943
|
|
|
2944
|
+
/** PushConfig wrapper. */
|
|
2945
|
+
public wrapper?: ("pubsubWrapper"|"noWrapper");
|
|
2946
|
+
|
|
2926
2947
|
/**
|
|
2927
2948
|
* Creates a new PushConfig instance using the specified properties.
|
|
2928
2949
|
* @param [properties] Properties to set
|
|
@@ -3105,6 +3126,194 @@ export namespace google {
|
|
|
3105
3126
|
*/
|
|
3106
3127
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3107
3128
|
}
|
|
3129
|
+
|
|
3130
|
+
/** Properties of a PubsubWrapper. */
|
|
3131
|
+
interface IPubsubWrapper {
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
/** Represents a PubsubWrapper. */
|
|
3135
|
+
class PubsubWrapper implements IPubsubWrapper {
|
|
3136
|
+
|
|
3137
|
+
/**
|
|
3138
|
+
* Constructs a new PubsubWrapper.
|
|
3139
|
+
* @param [properties] Properties to set
|
|
3140
|
+
*/
|
|
3141
|
+
constructor(properties?: google.pubsub.v1.PushConfig.IPubsubWrapper);
|
|
3142
|
+
|
|
3143
|
+
/**
|
|
3144
|
+
* Creates a new PubsubWrapper instance using the specified properties.
|
|
3145
|
+
* @param [properties] Properties to set
|
|
3146
|
+
* @returns PubsubWrapper instance
|
|
3147
|
+
*/
|
|
3148
|
+
public static create(properties?: google.pubsub.v1.PushConfig.IPubsubWrapper): google.pubsub.v1.PushConfig.PubsubWrapper;
|
|
3149
|
+
|
|
3150
|
+
/**
|
|
3151
|
+
* Encodes the specified PubsubWrapper message. Does not implicitly {@link google.pubsub.v1.PushConfig.PubsubWrapper.verify|verify} messages.
|
|
3152
|
+
* @param message PubsubWrapper message or plain object to encode
|
|
3153
|
+
* @param [writer] Writer to encode to
|
|
3154
|
+
* @returns Writer
|
|
3155
|
+
*/
|
|
3156
|
+
public static encode(message: google.pubsub.v1.PushConfig.IPubsubWrapper, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3157
|
+
|
|
3158
|
+
/**
|
|
3159
|
+
* Encodes the specified PubsubWrapper message, length delimited. Does not implicitly {@link google.pubsub.v1.PushConfig.PubsubWrapper.verify|verify} messages.
|
|
3160
|
+
* @param message PubsubWrapper message or plain object to encode
|
|
3161
|
+
* @param [writer] Writer to encode to
|
|
3162
|
+
* @returns Writer
|
|
3163
|
+
*/
|
|
3164
|
+
public static encodeDelimited(message: google.pubsub.v1.PushConfig.IPubsubWrapper, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3165
|
+
|
|
3166
|
+
/**
|
|
3167
|
+
* Decodes a PubsubWrapper message from the specified reader or buffer.
|
|
3168
|
+
* @param reader Reader or buffer to decode from
|
|
3169
|
+
* @param [length] Message length if known beforehand
|
|
3170
|
+
* @returns PubsubWrapper
|
|
3171
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3172
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3173
|
+
*/
|
|
3174
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PushConfig.PubsubWrapper;
|
|
3175
|
+
|
|
3176
|
+
/**
|
|
3177
|
+
* Decodes a PubsubWrapper message from the specified reader or buffer, length delimited.
|
|
3178
|
+
* @param reader Reader or buffer to decode from
|
|
3179
|
+
* @returns PubsubWrapper
|
|
3180
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3181
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3182
|
+
*/
|
|
3183
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PushConfig.PubsubWrapper;
|
|
3184
|
+
|
|
3185
|
+
/**
|
|
3186
|
+
* Verifies a PubsubWrapper message.
|
|
3187
|
+
* @param message Plain object to verify
|
|
3188
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3189
|
+
*/
|
|
3190
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3191
|
+
|
|
3192
|
+
/**
|
|
3193
|
+
* Creates a PubsubWrapper message from a plain object. Also converts values to their respective internal types.
|
|
3194
|
+
* @param object Plain object
|
|
3195
|
+
* @returns PubsubWrapper
|
|
3196
|
+
*/
|
|
3197
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PushConfig.PubsubWrapper;
|
|
3198
|
+
|
|
3199
|
+
/**
|
|
3200
|
+
* Creates a plain object from a PubsubWrapper message. Also converts values to other types if specified.
|
|
3201
|
+
* @param message PubsubWrapper
|
|
3202
|
+
* @param [options] Conversion options
|
|
3203
|
+
* @returns Plain object
|
|
3204
|
+
*/
|
|
3205
|
+
public static toObject(message: google.pubsub.v1.PushConfig.PubsubWrapper, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3206
|
+
|
|
3207
|
+
/**
|
|
3208
|
+
* Converts this PubsubWrapper to JSON.
|
|
3209
|
+
* @returns JSON object
|
|
3210
|
+
*/
|
|
3211
|
+
public toJSON(): { [k: string]: any };
|
|
3212
|
+
|
|
3213
|
+
/**
|
|
3214
|
+
* Gets the default type url for PubsubWrapper
|
|
3215
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3216
|
+
* @returns The default type url
|
|
3217
|
+
*/
|
|
3218
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3221
|
+
/** Properties of a NoWrapper. */
|
|
3222
|
+
interface INoWrapper {
|
|
3223
|
+
|
|
3224
|
+
/** NoWrapper writeMetadata */
|
|
3225
|
+
writeMetadata?: (boolean|null);
|
|
3226
|
+
}
|
|
3227
|
+
|
|
3228
|
+
/** Represents a NoWrapper. */
|
|
3229
|
+
class NoWrapper implements INoWrapper {
|
|
3230
|
+
|
|
3231
|
+
/**
|
|
3232
|
+
* Constructs a new NoWrapper.
|
|
3233
|
+
* @param [properties] Properties to set
|
|
3234
|
+
*/
|
|
3235
|
+
constructor(properties?: google.pubsub.v1.PushConfig.INoWrapper);
|
|
3236
|
+
|
|
3237
|
+
/** NoWrapper writeMetadata. */
|
|
3238
|
+
public writeMetadata: boolean;
|
|
3239
|
+
|
|
3240
|
+
/**
|
|
3241
|
+
* Creates a new NoWrapper instance using the specified properties.
|
|
3242
|
+
* @param [properties] Properties to set
|
|
3243
|
+
* @returns NoWrapper instance
|
|
3244
|
+
*/
|
|
3245
|
+
public static create(properties?: google.pubsub.v1.PushConfig.INoWrapper): google.pubsub.v1.PushConfig.NoWrapper;
|
|
3246
|
+
|
|
3247
|
+
/**
|
|
3248
|
+
* Encodes the specified NoWrapper message. Does not implicitly {@link google.pubsub.v1.PushConfig.NoWrapper.verify|verify} messages.
|
|
3249
|
+
* @param message NoWrapper message or plain object to encode
|
|
3250
|
+
* @param [writer] Writer to encode to
|
|
3251
|
+
* @returns Writer
|
|
3252
|
+
*/
|
|
3253
|
+
public static encode(message: google.pubsub.v1.PushConfig.INoWrapper, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3254
|
+
|
|
3255
|
+
/**
|
|
3256
|
+
* Encodes the specified NoWrapper message, length delimited. Does not implicitly {@link google.pubsub.v1.PushConfig.NoWrapper.verify|verify} messages.
|
|
3257
|
+
* @param message NoWrapper message or plain object to encode
|
|
3258
|
+
* @param [writer] Writer to encode to
|
|
3259
|
+
* @returns Writer
|
|
3260
|
+
*/
|
|
3261
|
+
public static encodeDelimited(message: google.pubsub.v1.PushConfig.INoWrapper, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3262
|
+
|
|
3263
|
+
/**
|
|
3264
|
+
* Decodes a NoWrapper message from the specified reader or buffer.
|
|
3265
|
+
* @param reader Reader or buffer to decode from
|
|
3266
|
+
* @param [length] Message length if known beforehand
|
|
3267
|
+
* @returns NoWrapper
|
|
3268
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3269
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3270
|
+
*/
|
|
3271
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PushConfig.NoWrapper;
|
|
3272
|
+
|
|
3273
|
+
/**
|
|
3274
|
+
* Decodes a NoWrapper message from the specified reader or buffer, length delimited.
|
|
3275
|
+
* @param reader Reader or buffer to decode from
|
|
3276
|
+
* @returns NoWrapper
|
|
3277
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3278
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3279
|
+
*/
|
|
3280
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PushConfig.NoWrapper;
|
|
3281
|
+
|
|
3282
|
+
/**
|
|
3283
|
+
* Verifies a NoWrapper message.
|
|
3284
|
+
* @param message Plain object to verify
|
|
3285
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3286
|
+
*/
|
|
3287
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3288
|
+
|
|
3289
|
+
/**
|
|
3290
|
+
* Creates a NoWrapper message from a plain object. Also converts values to their respective internal types.
|
|
3291
|
+
* @param object Plain object
|
|
3292
|
+
* @returns NoWrapper
|
|
3293
|
+
*/
|
|
3294
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PushConfig.NoWrapper;
|
|
3295
|
+
|
|
3296
|
+
/**
|
|
3297
|
+
* Creates a plain object from a NoWrapper message. Also converts values to other types if specified.
|
|
3298
|
+
* @param message NoWrapper
|
|
3299
|
+
* @param [options] Conversion options
|
|
3300
|
+
* @returns Plain object
|
|
3301
|
+
*/
|
|
3302
|
+
public static toObject(message: google.pubsub.v1.PushConfig.NoWrapper, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3303
|
+
|
|
3304
|
+
/**
|
|
3305
|
+
* Converts this NoWrapper to JSON.
|
|
3306
|
+
* @returns JSON object
|
|
3307
|
+
*/
|
|
3308
|
+
public toJSON(): { [k: string]: any };
|
|
3309
|
+
|
|
3310
|
+
/**
|
|
3311
|
+
* Gets the default type url for NoWrapper
|
|
3312
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3313
|
+
* @returns The default type url
|
|
3314
|
+
*/
|
|
3315
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3316
|
+
}
|
|
3108
3317
|
}
|
|
3109
3318
|
|
|
3110
3319
|
/** Properties of a BigQueryConfig. */
|
|
@@ -3240,6 +3449,347 @@ export namespace google {
|
|
|
3240
3449
|
}
|
|
3241
3450
|
}
|
|
3242
3451
|
|
|
3452
|
+
/** Properties of a CloudStorageConfig. */
|
|
3453
|
+
interface ICloudStorageConfig {
|
|
3454
|
+
|
|
3455
|
+
/** CloudStorageConfig bucket */
|
|
3456
|
+
bucket?: (string|null);
|
|
3457
|
+
|
|
3458
|
+
/** CloudStorageConfig filenamePrefix */
|
|
3459
|
+
filenamePrefix?: (string|null);
|
|
3460
|
+
|
|
3461
|
+
/** CloudStorageConfig filenameSuffix */
|
|
3462
|
+
filenameSuffix?: (string|null);
|
|
3463
|
+
|
|
3464
|
+
/** CloudStorageConfig textConfig */
|
|
3465
|
+
textConfig?: (google.pubsub.v1.CloudStorageConfig.ITextConfig|null);
|
|
3466
|
+
|
|
3467
|
+
/** CloudStorageConfig avroConfig */
|
|
3468
|
+
avroConfig?: (google.pubsub.v1.CloudStorageConfig.IAvroConfig|null);
|
|
3469
|
+
|
|
3470
|
+
/** CloudStorageConfig maxDuration */
|
|
3471
|
+
maxDuration?: (google.protobuf.IDuration|null);
|
|
3472
|
+
|
|
3473
|
+
/** CloudStorageConfig maxBytes */
|
|
3474
|
+
maxBytes?: (number|Long|string|null);
|
|
3475
|
+
|
|
3476
|
+
/** CloudStorageConfig state */
|
|
3477
|
+
state?: (google.pubsub.v1.CloudStorageConfig.State|keyof typeof google.pubsub.v1.CloudStorageConfig.State|null);
|
|
3478
|
+
}
|
|
3479
|
+
|
|
3480
|
+
/** Represents a CloudStorageConfig. */
|
|
3481
|
+
class CloudStorageConfig implements ICloudStorageConfig {
|
|
3482
|
+
|
|
3483
|
+
/**
|
|
3484
|
+
* Constructs a new CloudStorageConfig.
|
|
3485
|
+
* @param [properties] Properties to set
|
|
3486
|
+
*/
|
|
3487
|
+
constructor(properties?: google.pubsub.v1.ICloudStorageConfig);
|
|
3488
|
+
|
|
3489
|
+
/** CloudStorageConfig bucket. */
|
|
3490
|
+
public bucket: string;
|
|
3491
|
+
|
|
3492
|
+
/** CloudStorageConfig filenamePrefix. */
|
|
3493
|
+
public filenamePrefix: string;
|
|
3494
|
+
|
|
3495
|
+
/** CloudStorageConfig filenameSuffix. */
|
|
3496
|
+
public filenameSuffix: string;
|
|
3497
|
+
|
|
3498
|
+
/** CloudStorageConfig textConfig. */
|
|
3499
|
+
public textConfig?: (google.pubsub.v1.CloudStorageConfig.ITextConfig|null);
|
|
3500
|
+
|
|
3501
|
+
/** CloudStorageConfig avroConfig. */
|
|
3502
|
+
public avroConfig?: (google.pubsub.v1.CloudStorageConfig.IAvroConfig|null);
|
|
3503
|
+
|
|
3504
|
+
/** CloudStorageConfig maxDuration. */
|
|
3505
|
+
public maxDuration?: (google.protobuf.IDuration|null);
|
|
3506
|
+
|
|
3507
|
+
/** CloudStorageConfig maxBytes. */
|
|
3508
|
+
public maxBytes: (number|Long|string);
|
|
3509
|
+
|
|
3510
|
+
/** CloudStorageConfig state. */
|
|
3511
|
+
public state: (google.pubsub.v1.CloudStorageConfig.State|keyof typeof google.pubsub.v1.CloudStorageConfig.State);
|
|
3512
|
+
|
|
3513
|
+
/** CloudStorageConfig outputFormat. */
|
|
3514
|
+
public outputFormat?: ("textConfig"|"avroConfig");
|
|
3515
|
+
|
|
3516
|
+
/**
|
|
3517
|
+
* Creates a new CloudStorageConfig instance using the specified properties.
|
|
3518
|
+
* @param [properties] Properties to set
|
|
3519
|
+
* @returns CloudStorageConfig instance
|
|
3520
|
+
*/
|
|
3521
|
+
public static create(properties?: google.pubsub.v1.ICloudStorageConfig): google.pubsub.v1.CloudStorageConfig;
|
|
3522
|
+
|
|
3523
|
+
/**
|
|
3524
|
+
* Encodes the specified CloudStorageConfig message. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.verify|verify} messages.
|
|
3525
|
+
* @param message CloudStorageConfig message or plain object to encode
|
|
3526
|
+
* @param [writer] Writer to encode to
|
|
3527
|
+
* @returns Writer
|
|
3528
|
+
*/
|
|
3529
|
+
public static encode(message: google.pubsub.v1.ICloudStorageConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3530
|
+
|
|
3531
|
+
/**
|
|
3532
|
+
* Encodes the specified CloudStorageConfig message, length delimited. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.verify|verify} messages.
|
|
3533
|
+
* @param message CloudStorageConfig message or plain object to encode
|
|
3534
|
+
* @param [writer] Writer to encode to
|
|
3535
|
+
* @returns Writer
|
|
3536
|
+
*/
|
|
3537
|
+
public static encodeDelimited(message: google.pubsub.v1.ICloudStorageConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3538
|
+
|
|
3539
|
+
/**
|
|
3540
|
+
* Decodes a CloudStorageConfig message from the specified reader or buffer.
|
|
3541
|
+
* @param reader Reader or buffer to decode from
|
|
3542
|
+
* @param [length] Message length if known beforehand
|
|
3543
|
+
* @returns CloudStorageConfig
|
|
3544
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3545
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3546
|
+
*/
|
|
3547
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.CloudStorageConfig;
|
|
3548
|
+
|
|
3549
|
+
/**
|
|
3550
|
+
* Decodes a CloudStorageConfig message from the specified reader or buffer, length delimited.
|
|
3551
|
+
* @param reader Reader or buffer to decode from
|
|
3552
|
+
* @returns CloudStorageConfig
|
|
3553
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3554
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3555
|
+
*/
|
|
3556
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.CloudStorageConfig;
|
|
3557
|
+
|
|
3558
|
+
/**
|
|
3559
|
+
* Verifies a CloudStorageConfig message.
|
|
3560
|
+
* @param message Plain object to verify
|
|
3561
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3562
|
+
*/
|
|
3563
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3564
|
+
|
|
3565
|
+
/**
|
|
3566
|
+
* Creates a CloudStorageConfig message from a plain object. Also converts values to their respective internal types.
|
|
3567
|
+
* @param object Plain object
|
|
3568
|
+
* @returns CloudStorageConfig
|
|
3569
|
+
*/
|
|
3570
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.CloudStorageConfig;
|
|
3571
|
+
|
|
3572
|
+
/**
|
|
3573
|
+
* Creates a plain object from a CloudStorageConfig message. Also converts values to other types if specified.
|
|
3574
|
+
* @param message CloudStorageConfig
|
|
3575
|
+
* @param [options] Conversion options
|
|
3576
|
+
* @returns Plain object
|
|
3577
|
+
*/
|
|
3578
|
+
public static toObject(message: google.pubsub.v1.CloudStorageConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3579
|
+
|
|
3580
|
+
/**
|
|
3581
|
+
* Converts this CloudStorageConfig to JSON.
|
|
3582
|
+
* @returns JSON object
|
|
3583
|
+
*/
|
|
3584
|
+
public toJSON(): { [k: string]: any };
|
|
3585
|
+
|
|
3586
|
+
/**
|
|
3587
|
+
* Gets the default type url for CloudStorageConfig
|
|
3588
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3589
|
+
* @returns The default type url
|
|
3590
|
+
*/
|
|
3591
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3592
|
+
}
|
|
3593
|
+
|
|
3594
|
+
namespace CloudStorageConfig {
|
|
3595
|
+
|
|
3596
|
+
/** Properties of a TextConfig. */
|
|
3597
|
+
interface ITextConfig {
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3600
|
+
/** Represents a TextConfig. */
|
|
3601
|
+
class TextConfig implements ITextConfig {
|
|
3602
|
+
|
|
3603
|
+
/**
|
|
3604
|
+
* Constructs a new TextConfig.
|
|
3605
|
+
* @param [properties] Properties to set
|
|
3606
|
+
*/
|
|
3607
|
+
constructor(properties?: google.pubsub.v1.CloudStorageConfig.ITextConfig);
|
|
3608
|
+
|
|
3609
|
+
/**
|
|
3610
|
+
* Creates a new TextConfig instance using the specified properties.
|
|
3611
|
+
* @param [properties] Properties to set
|
|
3612
|
+
* @returns TextConfig instance
|
|
3613
|
+
*/
|
|
3614
|
+
public static create(properties?: google.pubsub.v1.CloudStorageConfig.ITextConfig): google.pubsub.v1.CloudStorageConfig.TextConfig;
|
|
3615
|
+
|
|
3616
|
+
/**
|
|
3617
|
+
* Encodes the specified TextConfig message. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.TextConfig.verify|verify} messages.
|
|
3618
|
+
* @param message TextConfig message or plain object to encode
|
|
3619
|
+
* @param [writer] Writer to encode to
|
|
3620
|
+
* @returns Writer
|
|
3621
|
+
*/
|
|
3622
|
+
public static encode(message: google.pubsub.v1.CloudStorageConfig.ITextConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3623
|
+
|
|
3624
|
+
/**
|
|
3625
|
+
* Encodes the specified TextConfig message, length delimited. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.TextConfig.verify|verify} messages.
|
|
3626
|
+
* @param message TextConfig message or plain object to encode
|
|
3627
|
+
* @param [writer] Writer to encode to
|
|
3628
|
+
* @returns Writer
|
|
3629
|
+
*/
|
|
3630
|
+
public static encodeDelimited(message: google.pubsub.v1.CloudStorageConfig.ITextConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3631
|
+
|
|
3632
|
+
/**
|
|
3633
|
+
* Decodes a TextConfig message from the specified reader or buffer.
|
|
3634
|
+
* @param reader Reader or buffer to decode from
|
|
3635
|
+
* @param [length] Message length if known beforehand
|
|
3636
|
+
* @returns TextConfig
|
|
3637
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3638
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3639
|
+
*/
|
|
3640
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.CloudStorageConfig.TextConfig;
|
|
3641
|
+
|
|
3642
|
+
/**
|
|
3643
|
+
* Decodes a TextConfig message from the specified reader or buffer, length delimited.
|
|
3644
|
+
* @param reader Reader or buffer to decode from
|
|
3645
|
+
* @returns TextConfig
|
|
3646
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3647
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3648
|
+
*/
|
|
3649
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.CloudStorageConfig.TextConfig;
|
|
3650
|
+
|
|
3651
|
+
/**
|
|
3652
|
+
* Verifies a TextConfig message.
|
|
3653
|
+
* @param message Plain object to verify
|
|
3654
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3655
|
+
*/
|
|
3656
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3657
|
+
|
|
3658
|
+
/**
|
|
3659
|
+
* Creates a TextConfig message from a plain object. Also converts values to their respective internal types.
|
|
3660
|
+
* @param object Plain object
|
|
3661
|
+
* @returns TextConfig
|
|
3662
|
+
*/
|
|
3663
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.CloudStorageConfig.TextConfig;
|
|
3664
|
+
|
|
3665
|
+
/**
|
|
3666
|
+
* Creates a plain object from a TextConfig message. Also converts values to other types if specified.
|
|
3667
|
+
* @param message TextConfig
|
|
3668
|
+
* @param [options] Conversion options
|
|
3669
|
+
* @returns Plain object
|
|
3670
|
+
*/
|
|
3671
|
+
public static toObject(message: google.pubsub.v1.CloudStorageConfig.TextConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* Converts this TextConfig to JSON.
|
|
3675
|
+
* @returns JSON object
|
|
3676
|
+
*/
|
|
3677
|
+
public toJSON(): { [k: string]: any };
|
|
3678
|
+
|
|
3679
|
+
/**
|
|
3680
|
+
* Gets the default type url for TextConfig
|
|
3681
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3682
|
+
* @returns The default type url
|
|
3683
|
+
*/
|
|
3684
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3687
|
+
/** Properties of an AvroConfig. */
|
|
3688
|
+
interface IAvroConfig {
|
|
3689
|
+
|
|
3690
|
+
/** AvroConfig writeMetadata */
|
|
3691
|
+
writeMetadata?: (boolean|null);
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
/** Represents an AvroConfig. */
|
|
3695
|
+
class AvroConfig implements IAvroConfig {
|
|
3696
|
+
|
|
3697
|
+
/**
|
|
3698
|
+
* Constructs a new AvroConfig.
|
|
3699
|
+
* @param [properties] Properties to set
|
|
3700
|
+
*/
|
|
3701
|
+
constructor(properties?: google.pubsub.v1.CloudStorageConfig.IAvroConfig);
|
|
3702
|
+
|
|
3703
|
+
/** AvroConfig writeMetadata. */
|
|
3704
|
+
public writeMetadata: boolean;
|
|
3705
|
+
|
|
3706
|
+
/**
|
|
3707
|
+
* Creates a new AvroConfig instance using the specified properties.
|
|
3708
|
+
* @param [properties] Properties to set
|
|
3709
|
+
* @returns AvroConfig instance
|
|
3710
|
+
*/
|
|
3711
|
+
public static create(properties?: google.pubsub.v1.CloudStorageConfig.IAvroConfig): google.pubsub.v1.CloudStorageConfig.AvroConfig;
|
|
3712
|
+
|
|
3713
|
+
/**
|
|
3714
|
+
* Encodes the specified AvroConfig message. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.AvroConfig.verify|verify} messages.
|
|
3715
|
+
* @param message AvroConfig message or plain object to encode
|
|
3716
|
+
* @param [writer] Writer to encode to
|
|
3717
|
+
* @returns Writer
|
|
3718
|
+
*/
|
|
3719
|
+
public static encode(message: google.pubsub.v1.CloudStorageConfig.IAvroConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3720
|
+
|
|
3721
|
+
/**
|
|
3722
|
+
* Encodes the specified AvroConfig message, length delimited. Does not implicitly {@link google.pubsub.v1.CloudStorageConfig.AvroConfig.verify|verify} messages.
|
|
3723
|
+
* @param message AvroConfig message or plain object to encode
|
|
3724
|
+
* @param [writer] Writer to encode to
|
|
3725
|
+
* @returns Writer
|
|
3726
|
+
*/
|
|
3727
|
+
public static encodeDelimited(message: google.pubsub.v1.CloudStorageConfig.IAvroConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3728
|
+
|
|
3729
|
+
/**
|
|
3730
|
+
* Decodes an AvroConfig message from the specified reader or buffer.
|
|
3731
|
+
* @param reader Reader or buffer to decode from
|
|
3732
|
+
* @param [length] Message length if known beforehand
|
|
3733
|
+
* @returns AvroConfig
|
|
3734
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3735
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3736
|
+
*/
|
|
3737
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.CloudStorageConfig.AvroConfig;
|
|
3738
|
+
|
|
3739
|
+
/**
|
|
3740
|
+
* Decodes an AvroConfig message from the specified reader or buffer, length delimited.
|
|
3741
|
+
* @param reader Reader or buffer to decode from
|
|
3742
|
+
* @returns AvroConfig
|
|
3743
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3744
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3745
|
+
*/
|
|
3746
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.CloudStorageConfig.AvroConfig;
|
|
3747
|
+
|
|
3748
|
+
/**
|
|
3749
|
+
* Verifies an AvroConfig message.
|
|
3750
|
+
* @param message Plain object to verify
|
|
3751
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3752
|
+
*/
|
|
3753
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3754
|
+
|
|
3755
|
+
/**
|
|
3756
|
+
* Creates an AvroConfig message from a plain object. Also converts values to their respective internal types.
|
|
3757
|
+
* @param object Plain object
|
|
3758
|
+
* @returns AvroConfig
|
|
3759
|
+
*/
|
|
3760
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.CloudStorageConfig.AvroConfig;
|
|
3761
|
+
|
|
3762
|
+
/**
|
|
3763
|
+
* Creates a plain object from an AvroConfig message. Also converts values to other types if specified.
|
|
3764
|
+
* @param message AvroConfig
|
|
3765
|
+
* @param [options] Conversion options
|
|
3766
|
+
* @returns Plain object
|
|
3767
|
+
*/
|
|
3768
|
+
public static toObject(message: google.pubsub.v1.CloudStorageConfig.AvroConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3769
|
+
|
|
3770
|
+
/**
|
|
3771
|
+
* Converts this AvroConfig to JSON.
|
|
3772
|
+
* @returns JSON object
|
|
3773
|
+
*/
|
|
3774
|
+
public toJSON(): { [k: string]: any };
|
|
3775
|
+
|
|
3776
|
+
/**
|
|
3777
|
+
* Gets the default type url for AvroConfig
|
|
3778
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3779
|
+
* @returns The default type url
|
|
3780
|
+
*/
|
|
3781
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3782
|
+
}
|
|
3783
|
+
|
|
3784
|
+
/** State enum. */
|
|
3785
|
+
enum State {
|
|
3786
|
+
STATE_UNSPECIFIED = 0,
|
|
3787
|
+
ACTIVE = 1,
|
|
3788
|
+
PERMISSION_DENIED = 2,
|
|
3789
|
+
NOT_FOUND = 3
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
|
|
3243
3793
|
/** Properties of a ReceivedMessage. */
|
|
3244
3794
|
interface IReceivedMessage {
|
|
3245
3795
|
|