@google-analytics/data 4.0.0 → 4.1.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 +15 -0
- package/README.md +1 -0
- package/build/protos/google/analytics/data/v1alpha/analytics_data_api.proto +239 -80
- package/build/protos/google/analytics/data/v1alpha/data.proto +14 -5
- package/build/protos/protos.d.ts +816 -5
- package/build/protos/protos.js +2803 -203
- package/build/protos/protos.json +491 -24
- package/build/src/v1alpha/alpha_analytics_data_client.d.ts +200 -95
- package/build/src/v1alpha/alpha_analytics_data_client.js +69 -46
- package/build/src/v1alpha/alpha_analytics_data_client_config.json +5 -0
- package/build/src/v1beta/beta_analytics_data_client.d.ts +2 -3
- package/build/src/v1beta/beta_analytics_data_client.js +3 -4
- package/package.json +7 -7
package/build/protos/protos.js
CHANGED
|
@@ -2217,6 +2217,9 @@
|
|
|
2217
2217
|
* @memberof google.protobuf
|
|
2218
2218
|
* @interface IExtensionRangeOptions
|
|
2219
2219
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption
|
|
2220
|
+
* @property {Array.<google.protobuf.ExtensionRangeOptions.IDeclaration>|null} [declaration] ExtensionRangeOptions declaration
|
|
2221
|
+
* @property {google.protobuf.IFeatureSet|null} [features] ExtensionRangeOptions features
|
|
2222
|
+
* @property {google.protobuf.ExtensionRangeOptions.VerificationState|null} [verification] ExtensionRangeOptions verification
|
|
2220
2223
|
*/
|
|
2221
2224
|
|
|
2222
2225
|
/**
|
|
@@ -2229,6 +2232,7 @@
|
|
|
2229
2232
|
*/
|
|
2230
2233
|
function ExtensionRangeOptions(properties) {
|
|
2231
2234
|
this.uninterpretedOption = [];
|
|
2235
|
+
this.declaration = [];
|
|
2232
2236
|
if (properties)
|
|
2233
2237
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2234
2238
|
if (properties[keys[i]] != null)
|
|
@@ -2243,6 +2247,30 @@
|
|
|
2243
2247
|
*/
|
|
2244
2248
|
ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray;
|
|
2245
2249
|
|
|
2250
|
+
/**
|
|
2251
|
+
* ExtensionRangeOptions declaration.
|
|
2252
|
+
* @member {Array.<google.protobuf.ExtensionRangeOptions.IDeclaration>} declaration
|
|
2253
|
+
* @memberof google.protobuf.ExtensionRangeOptions
|
|
2254
|
+
* @instance
|
|
2255
|
+
*/
|
|
2256
|
+
ExtensionRangeOptions.prototype.declaration = $util.emptyArray;
|
|
2257
|
+
|
|
2258
|
+
/**
|
|
2259
|
+
* ExtensionRangeOptions features.
|
|
2260
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
2261
|
+
* @memberof google.protobuf.ExtensionRangeOptions
|
|
2262
|
+
* @instance
|
|
2263
|
+
*/
|
|
2264
|
+
ExtensionRangeOptions.prototype.features = null;
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* ExtensionRangeOptions verification.
|
|
2268
|
+
* @member {google.protobuf.ExtensionRangeOptions.VerificationState} verification
|
|
2269
|
+
* @memberof google.protobuf.ExtensionRangeOptions
|
|
2270
|
+
* @instance
|
|
2271
|
+
*/
|
|
2272
|
+
ExtensionRangeOptions.prototype.verification = 1;
|
|
2273
|
+
|
|
2246
2274
|
/**
|
|
2247
2275
|
* Creates a new ExtensionRangeOptions instance using the specified properties.
|
|
2248
2276
|
* @function create
|
|
@@ -2267,6 +2295,13 @@
|
|
|
2267
2295
|
ExtensionRangeOptions.encode = function encode(message, writer) {
|
|
2268
2296
|
if (!writer)
|
|
2269
2297
|
writer = $Writer.create();
|
|
2298
|
+
if (message.declaration != null && message.declaration.length)
|
|
2299
|
+
for (var i = 0; i < message.declaration.length; ++i)
|
|
2300
|
+
$root.google.protobuf.ExtensionRangeOptions.Declaration.encode(message.declaration[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
2301
|
+
if (message.verification != null && Object.hasOwnProperty.call(message, "verification"))
|
|
2302
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verification);
|
|
2303
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
2304
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim();
|
|
2270
2305
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
2271
2306
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
2272
2307
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -2310,6 +2345,20 @@
|
|
|
2310
2345
|
message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2311
2346
|
break;
|
|
2312
2347
|
}
|
|
2348
|
+
case 2: {
|
|
2349
|
+
if (!(message.declaration && message.declaration.length))
|
|
2350
|
+
message.declaration = [];
|
|
2351
|
+
message.declaration.push($root.google.protobuf.ExtensionRangeOptions.Declaration.decode(reader, reader.uint32()));
|
|
2352
|
+
break;
|
|
2353
|
+
}
|
|
2354
|
+
case 50: {
|
|
2355
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
2356
|
+
break;
|
|
2357
|
+
}
|
|
2358
|
+
case 3: {
|
|
2359
|
+
message.verification = reader.int32();
|
|
2360
|
+
break;
|
|
2361
|
+
}
|
|
2313
2362
|
default:
|
|
2314
2363
|
reader.skipType(tag & 7);
|
|
2315
2364
|
break;
|
|
@@ -2354,6 +2403,28 @@
|
|
|
2354
2403
|
return "uninterpretedOption." + error;
|
|
2355
2404
|
}
|
|
2356
2405
|
}
|
|
2406
|
+
if (message.declaration != null && message.hasOwnProperty("declaration")) {
|
|
2407
|
+
if (!Array.isArray(message.declaration))
|
|
2408
|
+
return "declaration: array expected";
|
|
2409
|
+
for (var i = 0; i < message.declaration.length; ++i) {
|
|
2410
|
+
var error = $root.google.protobuf.ExtensionRangeOptions.Declaration.verify(message.declaration[i]);
|
|
2411
|
+
if (error)
|
|
2412
|
+
return "declaration." + error;
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
2416
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
2417
|
+
if (error)
|
|
2418
|
+
return "features." + error;
|
|
2419
|
+
}
|
|
2420
|
+
if (message.verification != null && message.hasOwnProperty("verification"))
|
|
2421
|
+
switch (message.verification) {
|
|
2422
|
+
default:
|
|
2423
|
+
return "verification: enum value expected";
|
|
2424
|
+
case 0:
|
|
2425
|
+
case 1:
|
|
2426
|
+
break;
|
|
2427
|
+
}
|
|
2357
2428
|
return null;
|
|
2358
2429
|
};
|
|
2359
2430
|
|
|
@@ -2379,6 +2450,37 @@
|
|
|
2379
2450
|
message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]);
|
|
2380
2451
|
}
|
|
2381
2452
|
}
|
|
2453
|
+
if (object.declaration) {
|
|
2454
|
+
if (!Array.isArray(object.declaration))
|
|
2455
|
+
throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected");
|
|
2456
|
+
message.declaration = [];
|
|
2457
|
+
for (var i = 0; i < object.declaration.length; ++i) {
|
|
2458
|
+
if (typeof object.declaration[i] !== "object")
|
|
2459
|
+
throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected");
|
|
2460
|
+
message.declaration[i] = $root.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(object.declaration[i]);
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
if (object.features != null) {
|
|
2464
|
+
if (typeof object.features !== "object")
|
|
2465
|
+
throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected");
|
|
2466
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
2467
|
+
}
|
|
2468
|
+
switch (object.verification) {
|
|
2469
|
+
case "DECLARATION":
|
|
2470
|
+
case 0:
|
|
2471
|
+
message.verification = 0;
|
|
2472
|
+
break;
|
|
2473
|
+
default:
|
|
2474
|
+
if (typeof object.verification === "number") {
|
|
2475
|
+
message.verification = object.verification;
|
|
2476
|
+
break;
|
|
2477
|
+
}
|
|
2478
|
+
break;
|
|
2479
|
+
case "UNVERIFIED":
|
|
2480
|
+
case 1:
|
|
2481
|
+
message.verification = 1;
|
|
2482
|
+
break;
|
|
2483
|
+
}
|
|
2382
2484
|
return message;
|
|
2383
2485
|
};
|
|
2384
2486
|
|
|
@@ -2395,8 +2497,23 @@
|
|
|
2395
2497
|
if (!options)
|
|
2396
2498
|
options = {};
|
|
2397
2499
|
var object = {};
|
|
2398
|
-
if (options.arrays || options.defaults)
|
|
2500
|
+
if (options.arrays || options.defaults) {
|
|
2501
|
+
object.declaration = [];
|
|
2399
2502
|
object.uninterpretedOption = [];
|
|
2503
|
+
}
|
|
2504
|
+
if (options.defaults) {
|
|
2505
|
+
object.verification = options.enums === String ? "UNVERIFIED" : 1;
|
|
2506
|
+
object.features = null;
|
|
2507
|
+
}
|
|
2508
|
+
if (message.declaration && message.declaration.length) {
|
|
2509
|
+
object.declaration = [];
|
|
2510
|
+
for (var j = 0; j < message.declaration.length; ++j)
|
|
2511
|
+
object.declaration[j] = $root.google.protobuf.ExtensionRangeOptions.Declaration.toObject(message.declaration[j], options);
|
|
2512
|
+
}
|
|
2513
|
+
if (message.verification != null && message.hasOwnProperty("verification"))
|
|
2514
|
+
object.verification = options.enums === String ? $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] === undefined ? message.verification : $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] : message.verification;
|
|
2515
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
2516
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
2400
2517
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
2401
2518
|
object.uninterpretedOption = [];
|
|
2402
2519
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -2431,6 +2548,316 @@
|
|
|
2431
2548
|
return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions";
|
|
2432
2549
|
};
|
|
2433
2550
|
|
|
2551
|
+
ExtensionRangeOptions.Declaration = (function() {
|
|
2552
|
+
|
|
2553
|
+
/**
|
|
2554
|
+
* Properties of a Declaration.
|
|
2555
|
+
* @memberof google.protobuf.ExtensionRangeOptions
|
|
2556
|
+
* @interface IDeclaration
|
|
2557
|
+
* @property {number|null} [number] Declaration number
|
|
2558
|
+
* @property {string|null} [fullName] Declaration fullName
|
|
2559
|
+
* @property {string|null} [type] Declaration type
|
|
2560
|
+
* @property {boolean|null} [reserved] Declaration reserved
|
|
2561
|
+
* @property {boolean|null} [repeated] Declaration repeated
|
|
2562
|
+
*/
|
|
2563
|
+
|
|
2564
|
+
/**
|
|
2565
|
+
* Constructs a new Declaration.
|
|
2566
|
+
* @memberof google.protobuf.ExtensionRangeOptions
|
|
2567
|
+
* @classdesc Represents a Declaration.
|
|
2568
|
+
* @implements IDeclaration
|
|
2569
|
+
* @constructor
|
|
2570
|
+
* @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set
|
|
2571
|
+
*/
|
|
2572
|
+
function Declaration(properties) {
|
|
2573
|
+
if (properties)
|
|
2574
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2575
|
+
if (properties[keys[i]] != null)
|
|
2576
|
+
this[keys[i]] = properties[keys[i]];
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
/**
|
|
2580
|
+
* Declaration number.
|
|
2581
|
+
* @member {number} number
|
|
2582
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2583
|
+
* @instance
|
|
2584
|
+
*/
|
|
2585
|
+
Declaration.prototype.number = 0;
|
|
2586
|
+
|
|
2587
|
+
/**
|
|
2588
|
+
* Declaration fullName.
|
|
2589
|
+
* @member {string} fullName
|
|
2590
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2591
|
+
* @instance
|
|
2592
|
+
*/
|
|
2593
|
+
Declaration.prototype.fullName = "";
|
|
2594
|
+
|
|
2595
|
+
/**
|
|
2596
|
+
* Declaration type.
|
|
2597
|
+
* @member {string} type
|
|
2598
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2599
|
+
* @instance
|
|
2600
|
+
*/
|
|
2601
|
+
Declaration.prototype.type = "";
|
|
2602
|
+
|
|
2603
|
+
/**
|
|
2604
|
+
* Declaration reserved.
|
|
2605
|
+
* @member {boolean} reserved
|
|
2606
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2607
|
+
* @instance
|
|
2608
|
+
*/
|
|
2609
|
+
Declaration.prototype.reserved = false;
|
|
2610
|
+
|
|
2611
|
+
/**
|
|
2612
|
+
* Declaration repeated.
|
|
2613
|
+
* @member {boolean} repeated
|
|
2614
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2615
|
+
* @instance
|
|
2616
|
+
*/
|
|
2617
|
+
Declaration.prototype.repeated = false;
|
|
2618
|
+
|
|
2619
|
+
/**
|
|
2620
|
+
* Creates a new Declaration instance using the specified properties.
|
|
2621
|
+
* @function create
|
|
2622
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2623
|
+
* @static
|
|
2624
|
+
* @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set
|
|
2625
|
+
* @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration instance
|
|
2626
|
+
*/
|
|
2627
|
+
Declaration.create = function create(properties) {
|
|
2628
|
+
return new Declaration(properties);
|
|
2629
|
+
};
|
|
2630
|
+
|
|
2631
|
+
/**
|
|
2632
|
+
* Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
|
|
2633
|
+
* @function encode
|
|
2634
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2635
|
+
* @static
|
|
2636
|
+
* @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode
|
|
2637
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2638
|
+
* @returns {$protobuf.Writer} Writer
|
|
2639
|
+
*/
|
|
2640
|
+
Declaration.encode = function encode(message, writer) {
|
|
2641
|
+
if (!writer)
|
|
2642
|
+
writer = $Writer.create();
|
|
2643
|
+
if (message.number != null && Object.hasOwnProperty.call(message, "number"))
|
|
2644
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.number);
|
|
2645
|
+
if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName"))
|
|
2646
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName);
|
|
2647
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
2648
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
|
|
2649
|
+
if (message.reserved != null && Object.hasOwnProperty.call(message, "reserved"))
|
|
2650
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reserved);
|
|
2651
|
+
if (message.repeated != null && Object.hasOwnProperty.call(message, "repeated"))
|
|
2652
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.repeated);
|
|
2653
|
+
return writer;
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
|
|
2658
|
+
* @function encodeDelimited
|
|
2659
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2660
|
+
* @static
|
|
2661
|
+
* @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode
|
|
2662
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2663
|
+
* @returns {$protobuf.Writer} Writer
|
|
2664
|
+
*/
|
|
2665
|
+
Declaration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2666
|
+
return this.encode(message, writer).ldelim();
|
|
2667
|
+
};
|
|
2668
|
+
|
|
2669
|
+
/**
|
|
2670
|
+
* Decodes a Declaration message from the specified reader or buffer.
|
|
2671
|
+
* @function decode
|
|
2672
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2673
|
+
* @static
|
|
2674
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2675
|
+
* @param {number} [length] Message length if known beforehand
|
|
2676
|
+
* @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
|
|
2677
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2678
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2679
|
+
*/
|
|
2680
|
+
Declaration.decode = function decode(reader, length) {
|
|
2681
|
+
if (!(reader instanceof $Reader))
|
|
2682
|
+
reader = $Reader.create(reader);
|
|
2683
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions.Declaration();
|
|
2684
|
+
while (reader.pos < end) {
|
|
2685
|
+
var tag = reader.uint32();
|
|
2686
|
+
switch (tag >>> 3) {
|
|
2687
|
+
case 1: {
|
|
2688
|
+
message.number = reader.int32();
|
|
2689
|
+
break;
|
|
2690
|
+
}
|
|
2691
|
+
case 2: {
|
|
2692
|
+
message.fullName = reader.string();
|
|
2693
|
+
break;
|
|
2694
|
+
}
|
|
2695
|
+
case 3: {
|
|
2696
|
+
message.type = reader.string();
|
|
2697
|
+
break;
|
|
2698
|
+
}
|
|
2699
|
+
case 5: {
|
|
2700
|
+
message.reserved = reader.bool();
|
|
2701
|
+
break;
|
|
2702
|
+
}
|
|
2703
|
+
case 6: {
|
|
2704
|
+
message.repeated = reader.bool();
|
|
2705
|
+
break;
|
|
2706
|
+
}
|
|
2707
|
+
default:
|
|
2708
|
+
reader.skipType(tag & 7);
|
|
2709
|
+
break;
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
return message;
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2715
|
+
/**
|
|
2716
|
+
* Decodes a Declaration message from the specified reader or buffer, length delimited.
|
|
2717
|
+
* @function decodeDelimited
|
|
2718
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2719
|
+
* @static
|
|
2720
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2721
|
+
* @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
|
|
2722
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2723
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2724
|
+
*/
|
|
2725
|
+
Declaration.decodeDelimited = function decodeDelimited(reader) {
|
|
2726
|
+
if (!(reader instanceof $Reader))
|
|
2727
|
+
reader = new $Reader(reader);
|
|
2728
|
+
return this.decode(reader, reader.uint32());
|
|
2729
|
+
};
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* Verifies a Declaration message.
|
|
2733
|
+
* @function verify
|
|
2734
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2735
|
+
* @static
|
|
2736
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2737
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2738
|
+
*/
|
|
2739
|
+
Declaration.verify = function verify(message) {
|
|
2740
|
+
if (typeof message !== "object" || message === null)
|
|
2741
|
+
return "object expected";
|
|
2742
|
+
if (message.number != null && message.hasOwnProperty("number"))
|
|
2743
|
+
if (!$util.isInteger(message.number))
|
|
2744
|
+
return "number: integer expected";
|
|
2745
|
+
if (message.fullName != null && message.hasOwnProperty("fullName"))
|
|
2746
|
+
if (!$util.isString(message.fullName))
|
|
2747
|
+
return "fullName: string expected";
|
|
2748
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
2749
|
+
if (!$util.isString(message.type))
|
|
2750
|
+
return "type: string expected";
|
|
2751
|
+
if (message.reserved != null && message.hasOwnProperty("reserved"))
|
|
2752
|
+
if (typeof message.reserved !== "boolean")
|
|
2753
|
+
return "reserved: boolean expected";
|
|
2754
|
+
if (message.repeated != null && message.hasOwnProperty("repeated"))
|
|
2755
|
+
if (typeof message.repeated !== "boolean")
|
|
2756
|
+
return "repeated: boolean expected";
|
|
2757
|
+
return null;
|
|
2758
|
+
};
|
|
2759
|
+
|
|
2760
|
+
/**
|
|
2761
|
+
* Creates a Declaration message from a plain object. Also converts values to their respective internal types.
|
|
2762
|
+
* @function fromObject
|
|
2763
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2764
|
+
* @static
|
|
2765
|
+
* @param {Object.<string,*>} object Plain object
|
|
2766
|
+
* @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
|
|
2767
|
+
*/
|
|
2768
|
+
Declaration.fromObject = function fromObject(object) {
|
|
2769
|
+
if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration)
|
|
2770
|
+
return object;
|
|
2771
|
+
var message = new $root.google.protobuf.ExtensionRangeOptions.Declaration();
|
|
2772
|
+
if (object.number != null)
|
|
2773
|
+
message.number = object.number | 0;
|
|
2774
|
+
if (object.fullName != null)
|
|
2775
|
+
message.fullName = String(object.fullName);
|
|
2776
|
+
if (object.type != null)
|
|
2777
|
+
message.type = String(object.type);
|
|
2778
|
+
if (object.reserved != null)
|
|
2779
|
+
message.reserved = Boolean(object.reserved);
|
|
2780
|
+
if (object.repeated != null)
|
|
2781
|
+
message.repeated = Boolean(object.repeated);
|
|
2782
|
+
return message;
|
|
2783
|
+
};
|
|
2784
|
+
|
|
2785
|
+
/**
|
|
2786
|
+
* Creates a plain object from a Declaration message. Also converts values to other types if specified.
|
|
2787
|
+
* @function toObject
|
|
2788
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2789
|
+
* @static
|
|
2790
|
+
* @param {google.protobuf.ExtensionRangeOptions.Declaration} message Declaration
|
|
2791
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2792
|
+
* @returns {Object.<string,*>} Plain object
|
|
2793
|
+
*/
|
|
2794
|
+
Declaration.toObject = function toObject(message, options) {
|
|
2795
|
+
if (!options)
|
|
2796
|
+
options = {};
|
|
2797
|
+
var object = {};
|
|
2798
|
+
if (options.defaults) {
|
|
2799
|
+
object.number = 0;
|
|
2800
|
+
object.fullName = "";
|
|
2801
|
+
object.type = "";
|
|
2802
|
+
object.reserved = false;
|
|
2803
|
+
object.repeated = false;
|
|
2804
|
+
}
|
|
2805
|
+
if (message.number != null && message.hasOwnProperty("number"))
|
|
2806
|
+
object.number = message.number;
|
|
2807
|
+
if (message.fullName != null && message.hasOwnProperty("fullName"))
|
|
2808
|
+
object.fullName = message.fullName;
|
|
2809
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
2810
|
+
object.type = message.type;
|
|
2811
|
+
if (message.reserved != null && message.hasOwnProperty("reserved"))
|
|
2812
|
+
object.reserved = message.reserved;
|
|
2813
|
+
if (message.repeated != null && message.hasOwnProperty("repeated"))
|
|
2814
|
+
object.repeated = message.repeated;
|
|
2815
|
+
return object;
|
|
2816
|
+
};
|
|
2817
|
+
|
|
2818
|
+
/**
|
|
2819
|
+
* Converts this Declaration to JSON.
|
|
2820
|
+
* @function toJSON
|
|
2821
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2822
|
+
* @instance
|
|
2823
|
+
* @returns {Object.<string,*>} JSON object
|
|
2824
|
+
*/
|
|
2825
|
+
Declaration.prototype.toJSON = function toJSON() {
|
|
2826
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2827
|
+
};
|
|
2828
|
+
|
|
2829
|
+
/**
|
|
2830
|
+
* Gets the default type url for Declaration
|
|
2831
|
+
* @function getTypeUrl
|
|
2832
|
+
* @memberof google.protobuf.ExtensionRangeOptions.Declaration
|
|
2833
|
+
* @static
|
|
2834
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2835
|
+
* @returns {string} The default type url
|
|
2836
|
+
*/
|
|
2837
|
+
Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2838
|
+
if (typeUrlPrefix === undefined) {
|
|
2839
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2840
|
+
}
|
|
2841
|
+
return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions.Declaration";
|
|
2842
|
+
};
|
|
2843
|
+
|
|
2844
|
+
return Declaration;
|
|
2845
|
+
})();
|
|
2846
|
+
|
|
2847
|
+
/**
|
|
2848
|
+
* VerificationState enum.
|
|
2849
|
+
* @name google.protobuf.ExtensionRangeOptions.VerificationState
|
|
2850
|
+
* @enum {number}
|
|
2851
|
+
* @property {number} DECLARATION=0 DECLARATION value
|
|
2852
|
+
* @property {number} UNVERIFIED=1 UNVERIFIED value
|
|
2853
|
+
*/
|
|
2854
|
+
ExtensionRangeOptions.VerificationState = (function() {
|
|
2855
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
2856
|
+
values[valuesById[0] = "DECLARATION"] = 0;
|
|
2857
|
+
values[valuesById[1] = "UNVERIFIED"] = 1;
|
|
2858
|
+
return values;
|
|
2859
|
+
})();
|
|
2860
|
+
|
|
2434
2861
|
return ExtensionRangeOptions;
|
|
2435
2862
|
})();
|
|
2436
2863
|
|
|
@@ -4760,6 +5187,7 @@
|
|
|
4760
5187
|
* @property {string|null} [phpNamespace] FileOptions phpNamespace
|
|
4761
5188
|
* @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace
|
|
4762
5189
|
* @property {string|null} [rubyPackage] FileOptions rubyPackage
|
|
5190
|
+
* @property {google.protobuf.IFeatureSet|null} [features] FileOptions features
|
|
4763
5191
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FileOptions uninterpretedOption
|
|
4764
5192
|
* @property {Array.<google.api.IResourceDescriptor>|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition
|
|
4765
5193
|
*/
|
|
@@ -4941,6 +5369,14 @@
|
|
|
4941
5369
|
*/
|
|
4942
5370
|
FileOptions.prototype.rubyPackage = "";
|
|
4943
5371
|
|
|
5372
|
+
/**
|
|
5373
|
+
* FileOptions features.
|
|
5374
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
5375
|
+
* @memberof google.protobuf.FileOptions
|
|
5376
|
+
* @instance
|
|
5377
|
+
*/
|
|
5378
|
+
FileOptions.prototype.features = null;
|
|
5379
|
+
|
|
4944
5380
|
/**
|
|
4945
5381
|
* FileOptions uninterpretedOption.
|
|
4946
5382
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -5021,6 +5457,8 @@
|
|
|
5021
5457
|
writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace);
|
|
5022
5458
|
if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage"))
|
|
5023
5459
|
writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage);
|
|
5460
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
5461
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim();
|
|
5024
5462
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
5025
5463
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
5026
5464
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -5141,6 +5579,10 @@
|
|
|
5141
5579
|
message.rubyPackage = reader.string();
|
|
5142
5580
|
break;
|
|
5143
5581
|
}
|
|
5582
|
+
case 50: {
|
|
5583
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
5584
|
+
break;
|
|
5585
|
+
}
|
|
5144
5586
|
case 999: {
|
|
5145
5587
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
5146
5588
|
message.uninterpretedOption = [];
|
|
@@ -5254,6 +5696,11 @@
|
|
|
5254
5696
|
if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage"))
|
|
5255
5697
|
if (!$util.isString(message.rubyPackage))
|
|
5256
5698
|
return "rubyPackage: string expected";
|
|
5699
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
5700
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
5701
|
+
if (error)
|
|
5702
|
+
return "features." + error;
|
|
5703
|
+
}
|
|
5257
5704
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
5258
5705
|
if (!Array.isArray(message.uninterpretedOption))
|
|
5259
5706
|
return "uninterpretedOption: array expected";
|
|
@@ -5345,6 +5792,11 @@
|
|
|
5345
5792
|
message.phpMetadataNamespace = String(object.phpMetadataNamespace);
|
|
5346
5793
|
if (object.rubyPackage != null)
|
|
5347
5794
|
message.rubyPackage = String(object.rubyPackage);
|
|
5795
|
+
if (object.features != null) {
|
|
5796
|
+
if (typeof object.features !== "object")
|
|
5797
|
+
throw TypeError(".google.protobuf.FileOptions.features: object expected");
|
|
5798
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
5799
|
+
}
|
|
5348
5800
|
if (object.uninterpretedOption) {
|
|
5349
5801
|
if (!Array.isArray(object.uninterpretedOption))
|
|
5350
5802
|
throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");
|
|
@@ -5406,6 +5858,7 @@
|
|
|
5406
5858
|
object.phpGenericServices = false;
|
|
5407
5859
|
object.phpMetadataNamespace = "";
|
|
5408
5860
|
object.rubyPackage = "";
|
|
5861
|
+
object.features = null;
|
|
5409
5862
|
}
|
|
5410
5863
|
if (message.javaPackage != null && message.hasOwnProperty("javaPackage"))
|
|
5411
5864
|
object.javaPackage = message.javaPackage;
|
|
@@ -5447,6 +5900,8 @@
|
|
|
5447
5900
|
object.phpMetadataNamespace = message.phpMetadataNamespace;
|
|
5448
5901
|
if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage"))
|
|
5449
5902
|
object.rubyPackage = message.rubyPackage;
|
|
5903
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
5904
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
5450
5905
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
5451
5906
|
object.uninterpretedOption = [];
|
|
5452
5907
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -5516,6 +5971,7 @@
|
|
|
5516
5971
|
* @property {boolean|null} [deprecated] MessageOptions deprecated
|
|
5517
5972
|
* @property {boolean|null} [mapEntry] MessageOptions mapEntry
|
|
5518
5973
|
* @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts
|
|
5974
|
+
* @property {google.protobuf.IFeatureSet|null} [features] MessageOptions features
|
|
5519
5975
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption
|
|
5520
5976
|
* @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource
|
|
5521
5977
|
*/
|
|
@@ -5576,6 +6032,14 @@
|
|
|
5576
6032
|
*/
|
|
5577
6033
|
MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
|
|
5578
6034
|
|
|
6035
|
+
/**
|
|
6036
|
+
* MessageOptions features.
|
|
6037
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
6038
|
+
* @memberof google.protobuf.MessageOptions
|
|
6039
|
+
* @instance
|
|
6040
|
+
*/
|
|
6041
|
+
MessageOptions.prototype.features = null;
|
|
6042
|
+
|
|
5579
6043
|
/**
|
|
5580
6044
|
* MessageOptions uninterpretedOption.
|
|
5581
6045
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -5626,6 +6090,8 @@
|
|
|
5626
6090
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry);
|
|
5627
6091
|
if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
|
|
5628
6092
|
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
6093
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
6094
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
5629
6095
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
5630
6096
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
5631
6097
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -5685,6 +6151,10 @@
|
|
|
5685
6151
|
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
5686
6152
|
break;
|
|
5687
6153
|
}
|
|
6154
|
+
case 12: {
|
|
6155
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
6156
|
+
break;
|
|
6157
|
+
}
|
|
5688
6158
|
case 999: {
|
|
5689
6159
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
5690
6160
|
message.uninterpretedOption = [];
|
|
@@ -5745,6 +6215,11 @@
|
|
|
5745
6215
|
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
5746
6216
|
if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
|
|
5747
6217
|
return "deprecatedLegacyJsonFieldConflicts: boolean expected";
|
|
6218
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
6219
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
6220
|
+
if (error)
|
|
6221
|
+
return "features." + error;
|
|
6222
|
+
}
|
|
5748
6223
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
5749
6224
|
if (!Array.isArray(message.uninterpretedOption))
|
|
5750
6225
|
return "uninterpretedOption: array expected";
|
|
@@ -5784,6 +6259,11 @@
|
|
|
5784
6259
|
message.mapEntry = Boolean(object.mapEntry);
|
|
5785
6260
|
if (object.deprecatedLegacyJsonFieldConflicts != null)
|
|
5786
6261
|
message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
|
|
6262
|
+
if (object.features != null) {
|
|
6263
|
+
if (typeof object.features !== "object")
|
|
6264
|
+
throw TypeError(".google.protobuf.MessageOptions.features: object expected");
|
|
6265
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
6266
|
+
}
|
|
5787
6267
|
if (object.uninterpretedOption) {
|
|
5788
6268
|
if (!Array.isArray(object.uninterpretedOption))
|
|
5789
6269
|
throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");
|
|
@@ -5823,6 +6303,7 @@
|
|
|
5823
6303
|
object.deprecated = false;
|
|
5824
6304
|
object.mapEntry = false;
|
|
5825
6305
|
object.deprecatedLegacyJsonFieldConflicts = false;
|
|
6306
|
+
object.features = null;
|
|
5826
6307
|
object[".google.api.resource"] = null;
|
|
5827
6308
|
}
|
|
5828
6309
|
if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat"))
|
|
@@ -5835,6 +6316,8 @@
|
|
|
5835
6316
|
object.mapEntry = message.mapEntry;
|
|
5836
6317
|
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
5837
6318
|
object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
6319
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
6320
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
5838
6321
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
5839
6322
|
object.uninterpretedOption = [];
|
|
5840
6323
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -5889,7 +6372,9 @@
|
|
|
5889
6372
|
* @property {boolean|null} [weak] FieldOptions weak
|
|
5890
6373
|
* @property {boolean|null} [debugRedact] FieldOptions debugRedact
|
|
5891
6374
|
* @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention
|
|
5892
|
-
* @property {google.protobuf.FieldOptions.OptionTargetType
|
|
6375
|
+
* @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
|
|
6376
|
+
* @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
|
|
6377
|
+
* @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
|
|
5893
6378
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
|
|
5894
6379
|
* @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
|
|
5895
6380
|
* @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
|
|
@@ -5904,6 +6389,8 @@
|
|
|
5904
6389
|
* @param {google.protobuf.IFieldOptions=} [properties] Properties to set
|
|
5905
6390
|
*/
|
|
5906
6391
|
function FieldOptions(properties) {
|
|
6392
|
+
this.targets = [];
|
|
6393
|
+
this.editionDefaults = [];
|
|
5907
6394
|
this.uninterpretedOption = [];
|
|
5908
6395
|
this[".google.api.fieldBehavior"] = [];
|
|
5909
6396
|
if (properties)
|
|
@@ -5985,12 +6472,28 @@
|
|
|
5985
6472
|
FieldOptions.prototype.retention = 0;
|
|
5986
6473
|
|
|
5987
6474
|
/**
|
|
5988
|
-
* FieldOptions
|
|
5989
|
-
* @member {google.protobuf.FieldOptions.OptionTargetType}
|
|
6475
|
+
* FieldOptions targets.
|
|
6476
|
+
* @member {Array.<google.protobuf.FieldOptions.OptionTargetType>} targets
|
|
6477
|
+
* @memberof google.protobuf.FieldOptions
|
|
6478
|
+
* @instance
|
|
6479
|
+
*/
|
|
6480
|
+
FieldOptions.prototype.targets = $util.emptyArray;
|
|
6481
|
+
|
|
6482
|
+
/**
|
|
6483
|
+
* FieldOptions editionDefaults.
|
|
6484
|
+
* @member {Array.<google.protobuf.FieldOptions.IEditionDefault>} editionDefaults
|
|
5990
6485
|
* @memberof google.protobuf.FieldOptions
|
|
5991
6486
|
* @instance
|
|
5992
6487
|
*/
|
|
5993
|
-
FieldOptions.prototype.
|
|
6488
|
+
FieldOptions.prototype.editionDefaults = $util.emptyArray;
|
|
6489
|
+
|
|
6490
|
+
/**
|
|
6491
|
+
* FieldOptions features.
|
|
6492
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
6493
|
+
* @memberof google.protobuf.FieldOptions
|
|
6494
|
+
* @instance
|
|
6495
|
+
*/
|
|
6496
|
+
FieldOptions.prototype.features = null;
|
|
5994
6497
|
|
|
5995
6498
|
/**
|
|
5996
6499
|
* FieldOptions uninterpretedOption.
|
|
@@ -6058,8 +6561,14 @@
|
|
|
6058
6561
|
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact);
|
|
6059
6562
|
if (message.retention != null && Object.hasOwnProperty.call(message, "retention"))
|
|
6060
6563
|
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention);
|
|
6061
|
-
if (message.
|
|
6062
|
-
|
|
6564
|
+
if (message.targets != null && message.targets.length)
|
|
6565
|
+
for (var i = 0; i < message.targets.length; ++i)
|
|
6566
|
+
writer.uint32(/* id 19, wireType 0 =*/152).int32(message.targets[i]);
|
|
6567
|
+
if (message.editionDefaults != null && message.editionDefaults.length)
|
|
6568
|
+
for (var i = 0; i < message.editionDefaults.length; ++i)
|
|
6569
|
+
$root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
6570
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
6571
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
6063
6572
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
6064
6573
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
6065
6574
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -6141,8 +6650,25 @@
|
|
|
6141
6650
|
message.retention = reader.int32();
|
|
6142
6651
|
break;
|
|
6143
6652
|
}
|
|
6144
|
-
case
|
|
6145
|
-
message.
|
|
6653
|
+
case 19: {
|
|
6654
|
+
if (!(message.targets && message.targets.length))
|
|
6655
|
+
message.targets = [];
|
|
6656
|
+
if ((tag & 7) === 2) {
|
|
6657
|
+
var end2 = reader.uint32() + reader.pos;
|
|
6658
|
+
while (reader.pos < end2)
|
|
6659
|
+
message.targets.push(reader.int32());
|
|
6660
|
+
} else
|
|
6661
|
+
message.targets.push(reader.int32());
|
|
6662
|
+
break;
|
|
6663
|
+
}
|
|
6664
|
+
case 20: {
|
|
6665
|
+
if (!(message.editionDefaults && message.editionDefaults.length))
|
|
6666
|
+
message.editionDefaults = [];
|
|
6667
|
+
message.editionDefaults.push($root.google.protobuf.FieldOptions.EditionDefault.decode(reader, reader.uint32()));
|
|
6668
|
+
break;
|
|
6669
|
+
}
|
|
6670
|
+
case 21: {
|
|
6671
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
6146
6672
|
break;
|
|
6147
6673
|
}
|
|
6148
6674
|
case 999: {
|
|
@@ -6246,22 +6772,40 @@
|
|
|
6246
6772
|
case 2:
|
|
6247
6773
|
break;
|
|
6248
6774
|
}
|
|
6249
|
-
if (message.
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6775
|
+
if (message.targets != null && message.hasOwnProperty("targets")) {
|
|
6776
|
+
if (!Array.isArray(message.targets))
|
|
6777
|
+
return "targets: array expected";
|
|
6778
|
+
for (var i = 0; i < message.targets.length; ++i)
|
|
6779
|
+
switch (message.targets[i]) {
|
|
6780
|
+
default:
|
|
6781
|
+
return "targets: enum value[] expected";
|
|
6782
|
+
case 0:
|
|
6783
|
+
case 1:
|
|
6784
|
+
case 2:
|
|
6785
|
+
case 3:
|
|
6786
|
+
case 4:
|
|
6787
|
+
case 5:
|
|
6788
|
+
case 6:
|
|
6789
|
+
case 7:
|
|
6790
|
+
case 8:
|
|
6791
|
+
case 9:
|
|
6792
|
+
break;
|
|
6793
|
+
}
|
|
6794
|
+
}
|
|
6795
|
+
if (message.editionDefaults != null && message.hasOwnProperty("editionDefaults")) {
|
|
6796
|
+
if (!Array.isArray(message.editionDefaults))
|
|
6797
|
+
return "editionDefaults: array expected";
|
|
6798
|
+
for (var i = 0; i < message.editionDefaults.length; ++i) {
|
|
6799
|
+
var error = $root.google.protobuf.FieldOptions.EditionDefault.verify(message.editionDefaults[i]);
|
|
6800
|
+
if (error)
|
|
6801
|
+
return "editionDefaults." + error;
|
|
6264
6802
|
}
|
|
6803
|
+
}
|
|
6804
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
6805
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
6806
|
+
if (error)
|
|
6807
|
+
return "features." + error;
|
|
6808
|
+
}
|
|
6265
6809
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
6266
6810
|
if (!Array.isArray(message.uninterpretedOption))
|
|
6267
6811
|
return "uninterpretedOption: array expected";
|
|
@@ -6381,53 +6925,73 @@
|
|
|
6381
6925
|
message.retention = 2;
|
|
6382
6926
|
break;
|
|
6383
6927
|
}
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6928
|
+
if (object.targets) {
|
|
6929
|
+
if (!Array.isArray(object.targets))
|
|
6930
|
+
throw TypeError(".google.protobuf.FieldOptions.targets: array expected");
|
|
6931
|
+
message.targets = [];
|
|
6932
|
+
for (var i = 0; i < object.targets.length; ++i)
|
|
6933
|
+
switch (object.targets[i]) {
|
|
6934
|
+
default:
|
|
6935
|
+
if (typeof object.targets[i] === "number") {
|
|
6936
|
+
message.targets[i] = object.targets[i];
|
|
6937
|
+
break;
|
|
6938
|
+
}
|
|
6939
|
+
case "TARGET_TYPE_UNKNOWN":
|
|
6940
|
+
case 0:
|
|
6941
|
+
message.targets[i] = 0;
|
|
6942
|
+
break;
|
|
6943
|
+
case "TARGET_TYPE_FILE":
|
|
6944
|
+
case 1:
|
|
6945
|
+
message.targets[i] = 1;
|
|
6946
|
+
break;
|
|
6947
|
+
case "TARGET_TYPE_EXTENSION_RANGE":
|
|
6948
|
+
case 2:
|
|
6949
|
+
message.targets[i] = 2;
|
|
6950
|
+
break;
|
|
6951
|
+
case "TARGET_TYPE_MESSAGE":
|
|
6952
|
+
case 3:
|
|
6953
|
+
message.targets[i] = 3;
|
|
6954
|
+
break;
|
|
6955
|
+
case "TARGET_TYPE_FIELD":
|
|
6956
|
+
case 4:
|
|
6957
|
+
message.targets[i] = 4;
|
|
6958
|
+
break;
|
|
6959
|
+
case "TARGET_TYPE_ONEOF":
|
|
6960
|
+
case 5:
|
|
6961
|
+
message.targets[i] = 5;
|
|
6962
|
+
break;
|
|
6963
|
+
case "TARGET_TYPE_ENUM":
|
|
6964
|
+
case 6:
|
|
6965
|
+
message.targets[i] = 6;
|
|
6966
|
+
break;
|
|
6967
|
+
case "TARGET_TYPE_ENUM_ENTRY":
|
|
6968
|
+
case 7:
|
|
6969
|
+
message.targets[i] = 7;
|
|
6970
|
+
break;
|
|
6971
|
+
case "TARGET_TYPE_SERVICE":
|
|
6972
|
+
case 8:
|
|
6973
|
+
message.targets[i] = 8;
|
|
6974
|
+
break;
|
|
6975
|
+
case "TARGET_TYPE_METHOD":
|
|
6976
|
+
case 9:
|
|
6977
|
+
message.targets[i] = 9;
|
|
6978
|
+
break;
|
|
6979
|
+
}
|
|
6980
|
+
}
|
|
6981
|
+
if (object.editionDefaults) {
|
|
6982
|
+
if (!Array.isArray(object.editionDefaults))
|
|
6983
|
+
throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected");
|
|
6984
|
+
message.editionDefaults = [];
|
|
6985
|
+
for (var i = 0; i < object.editionDefaults.length; ++i) {
|
|
6986
|
+
if (typeof object.editionDefaults[i] !== "object")
|
|
6987
|
+
throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected");
|
|
6988
|
+
message.editionDefaults[i] = $root.google.protobuf.FieldOptions.EditionDefault.fromObject(object.editionDefaults[i]);
|
|
6389
6989
|
}
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
case "TARGET_TYPE_FILE":
|
|
6396
|
-
case 1:
|
|
6397
|
-
message.target = 1;
|
|
6398
|
-
break;
|
|
6399
|
-
case "TARGET_TYPE_EXTENSION_RANGE":
|
|
6400
|
-
case 2:
|
|
6401
|
-
message.target = 2;
|
|
6402
|
-
break;
|
|
6403
|
-
case "TARGET_TYPE_MESSAGE":
|
|
6404
|
-
case 3:
|
|
6405
|
-
message.target = 3;
|
|
6406
|
-
break;
|
|
6407
|
-
case "TARGET_TYPE_FIELD":
|
|
6408
|
-
case 4:
|
|
6409
|
-
message.target = 4;
|
|
6410
|
-
break;
|
|
6411
|
-
case "TARGET_TYPE_ONEOF":
|
|
6412
|
-
case 5:
|
|
6413
|
-
message.target = 5;
|
|
6414
|
-
break;
|
|
6415
|
-
case "TARGET_TYPE_ENUM":
|
|
6416
|
-
case 6:
|
|
6417
|
-
message.target = 6;
|
|
6418
|
-
break;
|
|
6419
|
-
case "TARGET_TYPE_ENUM_ENTRY":
|
|
6420
|
-
case 7:
|
|
6421
|
-
message.target = 7;
|
|
6422
|
-
break;
|
|
6423
|
-
case "TARGET_TYPE_SERVICE":
|
|
6424
|
-
case 8:
|
|
6425
|
-
message.target = 8;
|
|
6426
|
-
break;
|
|
6427
|
-
case "TARGET_TYPE_METHOD":
|
|
6428
|
-
case 9:
|
|
6429
|
-
message.target = 9;
|
|
6430
|
-
break;
|
|
6990
|
+
}
|
|
6991
|
+
if (object.features != null) {
|
|
6992
|
+
if (typeof object.features !== "object")
|
|
6993
|
+
throw TypeError(".google.protobuf.FieldOptions.features: object expected");
|
|
6994
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
6431
6995
|
}
|
|
6432
6996
|
if (object.uninterpretedOption) {
|
|
6433
6997
|
if (!Array.isArray(object.uninterpretedOption))
|
|
@@ -6506,6 +7070,8 @@
|
|
|
6506
7070
|
options = {};
|
|
6507
7071
|
var object = {};
|
|
6508
7072
|
if (options.arrays || options.defaults) {
|
|
7073
|
+
object.targets = [];
|
|
7074
|
+
object.editionDefaults = [];
|
|
6509
7075
|
object.uninterpretedOption = [];
|
|
6510
7076
|
object[".google.api.fieldBehavior"] = [];
|
|
6511
7077
|
}
|
|
@@ -6519,7 +7085,7 @@
|
|
|
6519
7085
|
object.unverifiedLazy = false;
|
|
6520
7086
|
object.debugRedact = false;
|
|
6521
7087
|
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
|
|
6522
|
-
object.
|
|
7088
|
+
object.features = null;
|
|
6523
7089
|
object[".google.api.resourceReference"] = null;
|
|
6524
7090
|
}
|
|
6525
7091
|
if (message.ctype != null && message.hasOwnProperty("ctype"))
|
|
@@ -6540,8 +7106,18 @@
|
|
|
6540
7106
|
object.debugRedact = message.debugRedact;
|
|
6541
7107
|
if (message.retention != null && message.hasOwnProperty("retention"))
|
|
6542
7108
|
object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention;
|
|
6543
|
-
if (message.
|
|
6544
|
-
object.
|
|
7109
|
+
if (message.targets && message.targets.length) {
|
|
7110
|
+
object.targets = [];
|
|
7111
|
+
for (var j = 0; j < message.targets.length; ++j)
|
|
7112
|
+
object.targets[j] = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] === undefined ? message.targets[j] : $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] : message.targets[j];
|
|
7113
|
+
}
|
|
7114
|
+
if (message.editionDefaults && message.editionDefaults.length) {
|
|
7115
|
+
object.editionDefaults = [];
|
|
7116
|
+
for (var j = 0; j < message.editionDefaults.length; ++j)
|
|
7117
|
+
object.editionDefaults[j] = $root.google.protobuf.FieldOptions.EditionDefault.toObject(message.editionDefaults[j], options);
|
|
7118
|
+
}
|
|
7119
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
7120
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
6545
7121
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
6546
7122
|
object.uninterpretedOption = [];
|
|
6547
7123
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -6661,6 +7237,233 @@
|
|
|
6661
7237
|
return values;
|
|
6662
7238
|
})();
|
|
6663
7239
|
|
|
7240
|
+
FieldOptions.EditionDefault = (function() {
|
|
7241
|
+
|
|
7242
|
+
/**
|
|
7243
|
+
* Properties of an EditionDefault.
|
|
7244
|
+
* @memberof google.protobuf.FieldOptions
|
|
7245
|
+
* @interface IEditionDefault
|
|
7246
|
+
* @property {string|null} [edition] EditionDefault edition
|
|
7247
|
+
* @property {string|null} [value] EditionDefault value
|
|
7248
|
+
*/
|
|
7249
|
+
|
|
7250
|
+
/**
|
|
7251
|
+
* Constructs a new EditionDefault.
|
|
7252
|
+
* @memberof google.protobuf.FieldOptions
|
|
7253
|
+
* @classdesc Represents an EditionDefault.
|
|
7254
|
+
* @implements IEditionDefault
|
|
7255
|
+
* @constructor
|
|
7256
|
+
* @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set
|
|
7257
|
+
*/
|
|
7258
|
+
function EditionDefault(properties) {
|
|
7259
|
+
if (properties)
|
|
7260
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7261
|
+
if (properties[keys[i]] != null)
|
|
7262
|
+
this[keys[i]] = properties[keys[i]];
|
|
7263
|
+
}
|
|
7264
|
+
|
|
7265
|
+
/**
|
|
7266
|
+
* EditionDefault edition.
|
|
7267
|
+
* @member {string} edition
|
|
7268
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7269
|
+
* @instance
|
|
7270
|
+
*/
|
|
7271
|
+
EditionDefault.prototype.edition = "";
|
|
7272
|
+
|
|
7273
|
+
/**
|
|
7274
|
+
* EditionDefault value.
|
|
7275
|
+
* @member {string} value
|
|
7276
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7277
|
+
* @instance
|
|
7278
|
+
*/
|
|
7279
|
+
EditionDefault.prototype.value = "";
|
|
7280
|
+
|
|
7281
|
+
/**
|
|
7282
|
+
* Creates a new EditionDefault instance using the specified properties.
|
|
7283
|
+
* @function create
|
|
7284
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7285
|
+
* @static
|
|
7286
|
+
* @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set
|
|
7287
|
+
* @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault instance
|
|
7288
|
+
*/
|
|
7289
|
+
EditionDefault.create = function create(properties) {
|
|
7290
|
+
return new EditionDefault(properties);
|
|
7291
|
+
};
|
|
7292
|
+
|
|
7293
|
+
/**
|
|
7294
|
+
* Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
|
|
7295
|
+
* @function encode
|
|
7296
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7297
|
+
* @static
|
|
7298
|
+
* @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode
|
|
7299
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7300
|
+
* @returns {$protobuf.Writer} Writer
|
|
7301
|
+
*/
|
|
7302
|
+
EditionDefault.encode = function encode(message, writer) {
|
|
7303
|
+
if (!writer)
|
|
7304
|
+
writer = $Writer.create();
|
|
7305
|
+
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
7306
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.edition);
|
|
7307
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
7308
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
|
|
7309
|
+
return writer;
|
|
7310
|
+
};
|
|
7311
|
+
|
|
7312
|
+
/**
|
|
7313
|
+
* Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
|
|
7314
|
+
* @function encodeDelimited
|
|
7315
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7316
|
+
* @static
|
|
7317
|
+
* @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode
|
|
7318
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7319
|
+
* @returns {$protobuf.Writer} Writer
|
|
7320
|
+
*/
|
|
7321
|
+
EditionDefault.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7322
|
+
return this.encode(message, writer).ldelim();
|
|
7323
|
+
};
|
|
7324
|
+
|
|
7325
|
+
/**
|
|
7326
|
+
* Decodes an EditionDefault message from the specified reader or buffer.
|
|
7327
|
+
* @function decode
|
|
7328
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7329
|
+
* @static
|
|
7330
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7331
|
+
* @param {number} [length] Message length if known beforehand
|
|
7332
|
+
* @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
|
|
7333
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7334
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7335
|
+
*/
|
|
7336
|
+
EditionDefault.decode = function decode(reader, length) {
|
|
7337
|
+
if (!(reader instanceof $Reader))
|
|
7338
|
+
reader = $Reader.create(reader);
|
|
7339
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.EditionDefault();
|
|
7340
|
+
while (reader.pos < end) {
|
|
7341
|
+
var tag = reader.uint32();
|
|
7342
|
+
switch (tag >>> 3) {
|
|
7343
|
+
case 1: {
|
|
7344
|
+
message.edition = reader.string();
|
|
7345
|
+
break;
|
|
7346
|
+
}
|
|
7347
|
+
case 2: {
|
|
7348
|
+
message.value = reader.string();
|
|
7349
|
+
break;
|
|
7350
|
+
}
|
|
7351
|
+
default:
|
|
7352
|
+
reader.skipType(tag & 7);
|
|
7353
|
+
break;
|
|
7354
|
+
}
|
|
7355
|
+
}
|
|
7356
|
+
return message;
|
|
7357
|
+
};
|
|
7358
|
+
|
|
7359
|
+
/**
|
|
7360
|
+
* Decodes an EditionDefault message from the specified reader or buffer, length delimited.
|
|
7361
|
+
* @function decodeDelimited
|
|
7362
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7363
|
+
* @static
|
|
7364
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7365
|
+
* @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
|
|
7366
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7367
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7368
|
+
*/
|
|
7369
|
+
EditionDefault.decodeDelimited = function decodeDelimited(reader) {
|
|
7370
|
+
if (!(reader instanceof $Reader))
|
|
7371
|
+
reader = new $Reader(reader);
|
|
7372
|
+
return this.decode(reader, reader.uint32());
|
|
7373
|
+
};
|
|
7374
|
+
|
|
7375
|
+
/**
|
|
7376
|
+
* Verifies an EditionDefault message.
|
|
7377
|
+
* @function verify
|
|
7378
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7379
|
+
* @static
|
|
7380
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7381
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7382
|
+
*/
|
|
7383
|
+
EditionDefault.verify = function verify(message) {
|
|
7384
|
+
if (typeof message !== "object" || message === null)
|
|
7385
|
+
return "object expected";
|
|
7386
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
7387
|
+
if (!$util.isString(message.edition))
|
|
7388
|
+
return "edition: string expected";
|
|
7389
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
7390
|
+
if (!$util.isString(message.value))
|
|
7391
|
+
return "value: string expected";
|
|
7392
|
+
return null;
|
|
7393
|
+
};
|
|
7394
|
+
|
|
7395
|
+
/**
|
|
7396
|
+
* Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
|
|
7397
|
+
* @function fromObject
|
|
7398
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7399
|
+
* @static
|
|
7400
|
+
* @param {Object.<string,*>} object Plain object
|
|
7401
|
+
* @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
|
|
7402
|
+
*/
|
|
7403
|
+
EditionDefault.fromObject = function fromObject(object) {
|
|
7404
|
+
if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault)
|
|
7405
|
+
return object;
|
|
7406
|
+
var message = new $root.google.protobuf.FieldOptions.EditionDefault();
|
|
7407
|
+
if (object.edition != null)
|
|
7408
|
+
message.edition = String(object.edition);
|
|
7409
|
+
if (object.value != null)
|
|
7410
|
+
message.value = String(object.value);
|
|
7411
|
+
return message;
|
|
7412
|
+
};
|
|
7413
|
+
|
|
7414
|
+
/**
|
|
7415
|
+
* Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
|
|
7416
|
+
* @function toObject
|
|
7417
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7418
|
+
* @static
|
|
7419
|
+
* @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
|
|
7420
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7421
|
+
* @returns {Object.<string,*>} Plain object
|
|
7422
|
+
*/
|
|
7423
|
+
EditionDefault.toObject = function toObject(message, options) {
|
|
7424
|
+
if (!options)
|
|
7425
|
+
options = {};
|
|
7426
|
+
var object = {};
|
|
7427
|
+
if (options.defaults) {
|
|
7428
|
+
object.edition = "";
|
|
7429
|
+
object.value = "";
|
|
7430
|
+
}
|
|
7431
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
7432
|
+
object.edition = message.edition;
|
|
7433
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
7434
|
+
object.value = message.value;
|
|
7435
|
+
return object;
|
|
7436
|
+
};
|
|
7437
|
+
|
|
7438
|
+
/**
|
|
7439
|
+
* Converts this EditionDefault to JSON.
|
|
7440
|
+
* @function toJSON
|
|
7441
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7442
|
+
* @instance
|
|
7443
|
+
* @returns {Object.<string,*>} JSON object
|
|
7444
|
+
*/
|
|
7445
|
+
EditionDefault.prototype.toJSON = function toJSON() {
|
|
7446
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7447
|
+
};
|
|
7448
|
+
|
|
7449
|
+
/**
|
|
7450
|
+
* Gets the default type url for EditionDefault
|
|
7451
|
+
* @function getTypeUrl
|
|
7452
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7453
|
+
* @static
|
|
7454
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7455
|
+
* @returns {string} The default type url
|
|
7456
|
+
*/
|
|
7457
|
+
EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7458
|
+
if (typeUrlPrefix === undefined) {
|
|
7459
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
7460
|
+
}
|
|
7461
|
+
return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
|
|
7462
|
+
};
|
|
7463
|
+
|
|
7464
|
+
return EditionDefault;
|
|
7465
|
+
})();
|
|
7466
|
+
|
|
6664
7467
|
return FieldOptions;
|
|
6665
7468
|
})();
|
|
6666
7469
|
|
|
@@ -6670,6 +7473,7 @@
|
|
|
6670
7473
|
* Properties of an OneofOptions.
|
|
6671
7474
|
* @memberof google.protobuf
|
|
6672
7475
|
* @interface IOneofOptions
|
|
7476
|
+
* @property {google.protobuf.IFeatureSet|null} [features] OneofOptions features
|
|
6673
7477
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] OneofOptions uninterpretedOption
|
|
6674
7478
|
*/
|
|
6675
7479
|
|
|
@@ -6689,6 +7493,14 @@
|
|
|
6689
7493
|
this[keys[i]] = properties[keys[i]];
|
|
6690
7494
|
}
|
|
6691
7495
|
|
|
7496
|
+
/**
|
|
7497
|
+
* OneofOptions features.
|
|
7498
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
7499
|
+
* @memberof google.protobuf.OneofOptions
|
|
7500
|
+
* @instance
|
|
7501
|
+
*/
|
|
7502
|
+
OneofOptions.prototype.features = null;
|
|
7503
|
+
|
|
6692
7504
|
/**
|
|
6693
7505
|
* OneofOptions uninterpretedOption.
|
|
6694
7506
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -6721,6 +7533,8 @@
|
|
|
6721
7533
|
OneofOptions.encode = function encode(message, writer) {
|
|
6722
7534
|
if (!writer)
|
|
6723
7535
|
writer = $Writer.create();
|
|
7536
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
7537
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
6724
7538
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
6725
7539
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
6726
7540
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -6758,6 +7572,10 @@
|
|
|
6758
7572
|
while (reader.pos < end) {
|
|
6759
7573
|
var tag = reader.uint32();
|
|
6760
7574
|
switch (tag >>> 3) {
|
|
7575
|
+
case 1: {
|
|
7576
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
7577
|
+
break;
|
|
7578
|
+
}
|
|
6761
7579
|
case 999: {
|
|
6762
7580
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
6763
7581
|
message.uninterpretedOption = [];
|
|
@@ -6799,6 +7617,11 @@
|
|
|
6799
7617
|
OneofOptions.verify = function verify(message) {
|
|
6800
7618
|
if (typeof message !== "object" || message === null)
|
|
6801
7619
|
return "object expected";
|
|
7620
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
7621
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
7622
|
+
if (error)
|
|
7623
|
+
return "features." + error;
|
|
7624
|
+
}
|
|
6802
7625
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
6803
7626
|
if (!Array.isArray(message.uninterpretedOption))
|
|
6804
7627
|
return "uninterpretedOption: array expected";
|
|
@@ -6823,6 +7646,11 @@
|
|
|
6823
7646
|
if (object instanceof $root.google.protobuf.OneofOptions)
|
|
6824
7647
|
return object;
|
|
6825
7648
|
var message = new $root.google.protobuf.OneofOptions();
|
|
7649
|
+
if (object.features != null) {
|
|
7650
|
+
if (typeof object.features !== "object")
|
|
7651
|
+
throw TypeError(".google.protobuf.OneofOptions.features: object expected");
|
|
7652
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
7653
|
+
}
|
|
6826
7654
|
if (object.uninterpretedOption) {
|
|
6827
7655
|
if (!Array.isArray(object.uninterpretedOption))
|
|
6828
7656
|
throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");
|
|
@@ -6851,6 +7679,10 @@
|
|
|
6851
7679
|
var object = {};
|
|
6852
7680
|
if (options.arrays || options.defaults)
|
|
6853
7681
|
object.uninterpretedOption = [];
|
|
7682
|
+
if (options.defaults)
|
|
7683
|
+
object.features = null;
|
|
7684
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
7685
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
6854
7686
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
6855
7687
|
object.uninterpretedOption = [];
|
|
6856
7688
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -6897,6 +7729,7 @@
|
|
|
6897
7729
|
* @property {boolean|null} [allowAlias] EnumOptions allowAlias
|
|
6898
7730
|
* @property {boolean|null} [deprecated] EnumOptions deprecated
|
|
6899
7731
|
* @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts
|
|
7732
|
+
* @property {google.protobuf.IFeatureSet|null} [features] EnumOptions features
|
|
6900
7733
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumOptions uninterpretedOption
|
|
6901
7734
|
*/
|
|
6902
7735
|
|
|
@@ -6940,6 +7773,14 @@
|
|
|
6940
7773
|
*/
|
|
6941
7774
|
EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
|
|
6942
7775
|
|
|
7776
|
+
/**
|
|
7777
|
+
* EnumOptions features.
|
|
7778
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
7779
|
+
* @memberof google.protobuf.EnumOptions
|
|
7780
|
+
* @instance
|
|
7781
|
+
*/
|
|
7782
|
+
EnumOptions.prototype.features = null;
|
|
7783
|
+
|
|
6943
7784
|
/**
|
|
6944
7785
|
* EnumOptions uninterpretedOption.
|
|
6945
7786
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -6978,6 +7819,8 @@
|
|
|
6978
7819
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
|
|
6979
7820
|
if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
|
|
6980
7821
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
7822
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
7823
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
6981
7824
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
6982
7825
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
6983
7826
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -7027,6 +7870,10 @@
|
|
|
7027
7870
|
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
7028
7871
|
break;
|
|
7029
7872
|
}
|
|
7873
|
+
case 7: {
|
|
7874
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
7875
|
+
break;
|
|
7876
|
+
}
|
|
7030
7877
|
case 999: {
|
|
7031
7878
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
7032
7879
|
message.uninterpretedOption = [];
|
|
@@ -7077,6 +7924,11 @@
|
|
|
7077
7924
|
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
7078
7925
|
if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
|
|
7079
7926
|
return "deprecatedLegacyJsonFieldConflicts: boolean expected";
|
|
7927
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
7928
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
7929
|
+
if (error)
|
|
7930
|
+
return "features." + error;
|
|
7931
|
+
}
|
|
7080
7932
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
7081
7933
|
if (!Array.isArray(message.uninterpretedOption))
|
|
7082
7934
|
return "uninterpretedOption: array expected";
|
|
@@ -7107,6 +7959,11 @@
|
|
|
7107
7959
|
message.deprecated = Boolean(object.deprecated);
|
|
7108
7960
|
if (object.deprecatedLegacyJsonFieldConflicts != null)
|
|
7109
7961
|
message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
|
|
7962
|
+
if (object.features != null) {
|
|
7963
|
+
if (typeof object.features !== "object")
|
|
7964
|
+
throw TypeError(".google.protobuf.EnumOptions.features: object expected");
|
|
7965
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
7966
|
+
}
|
|
7110
7967
|
if (object.uninterpretedOption) {
|
|
7111
7968
|
if (!Array.isArray(object.uninterpretedOption))
|
|
7112
7969
|
throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");
|
|
@@ -7139,6 +7996,7 @@
|
|
|
7139
7996
|
object.allowAlias = false;
|
|
7140
7997
|
object.deprecated = false;
|
|
7141
7998
|
object.deprecatedLegacyJsonFieldConflicts = false;
|
|
7999
|
+
object.features = null;
|
|
7142
8000
|
}
|
|
7143
8001
|
if (message.allowAlias != null && message.hasOwnProperty("allowAlias"))
|
|
7144
8002
|
object.allowAlias = message.allowAlias;
|
|
@@ -7146,6 +8004,8 @@
|
|
|
7146
8004
|
object.deprecated = message.deprecated;
|
|
7147
8005
|
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
7148
8006
|
object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
8007
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
8008
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
7149
8009
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
7150
8010
|
object.uninterpretedOption = [];
|
|
7151
8011
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -7190,6 +8050,8 @@
|
|
|
7190
8050
|
* @memberof google.protobuf
|
|
7191
8051
|
* @interface IEnumValueOptions
|
|
7192
8052
|
* @property {boolean|null} [deprecated] EnumValueOptions deprecated
|
|
8053
|
+
* @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
|
|
8054
|
+
* @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
|
|
7193
8055
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
|
|
7194
8056
|
*/
|
|
7195
8057
|
|
|
@@ -7217,6 +8079,22 @@
|
|
|
7217
8079
|
*/
|
|
7218
8080
|
EnumValueOptions.prototype.deprecated = false;
|
|
7219
8081
|
|
|
8082
|
+
/**
|
|
8083
|
+
* EnumValueOptions features.
|
|
8084
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
8085
|
+
* @memberof google.protobuf.EnumValueOptions
|
|
8086
|
+
* @instance
|
|
8087
|
+
*/
|
|
8088
|
+
EnumValueOptions.prototype.features = null;
|
|
8089
|
+
|
|
8090
|
+
/**
|
|
8091
|
+
* EnumValueOptions debugRedact.
|
|
8092
|
+
* @member {boolean} debugRedact
|
|
8093
|
+
* @memberof google.protobuf.EnumValueOptions
|
|
8094
|
+
* @instance
|
|
8095
|
+
*/
|
|
8096
|
+
EnumValueOptions.prototype.debugRedact = false;
|
|
8097
|
+
|
|
7220
8098
|
/**
|
|
7221
8099
|
* EnumValueOptions uninterpretedOption.
|
|
7222
8100
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -7251,6 +8129,10 @@
|
|
|
7251
8129
|
writer = $Writer.create();
|
|
7252
8130
|
if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
|
|
7253
8131
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated);
|
|
8132
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
8133
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
8134
|
+
if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
|
|
8135
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
|
|
7254
8136
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
7255
8137
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
7256
8138
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -7292,6 +8174,14 @@
|
|
|
7292
8174
|
message.deprecated = reader.bool();
|
|
7293
8175
|
break;
|
|
7294
8176
|
}
|
|
8177
|
+
case 2: {
|
|
8178
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
8179
|
+
break;
|
|
8180
|
+
}
|
|
8181
|
+
case 3: {
|
|
8182
|
+
message.debugRedact = reader.bool();
|
|
8183
|
+
break;
|
|
8184
|
+
}
|
|
7295
8185
|
case 999: {
|
|
7296
8186
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
7297
8187
|
message.uninterpretedOption = [];
|
|
@@ -7336,6 +8226,14 @@
|
|
|
7336
8226
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
7337
8227
|
if (typeof message.deprecated !== "boolean")
|
|
7338
8228
|
return "deprecated: boolean expected";
|
|
8229
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
8230
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
8231
|
+
if (error)
|
|
8232
|
+
return "features." + error;
|
|
8233
|
+
}
|
|
8234
|
+
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
8235
|
+
if (typeof message.debugRedact !== "boolean")
|
|
8236
|
+
return "debugRedact: boolean expected";
|
|
7339
8237
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
7340
8238
|
if (!Array.isArray(message.uninterpretedOption))
|
|
7341
8239
|
return "uninterpretedOption: array expected";
|
|
@@ -7362,6 +8260,13 @@
|
|
|
7362
8260
|
var message = new $root.google.protobuf.EnumValueOptions();
|
|
7363
8261
|
if (object.deprecated != null)
|
|
7364
8262
|
message.deprecated = Boolean(object.deprecated);
|
|
8263
|
+
if (object.features != null) {
|
|
8264
|
+
if (typeof object.features !== "object")
|
|
8265
|
+
throw TypeError(".google.protobuf.EnumValueOptions.features: object expected");
|
|
8266
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
8267
|
+
}
|
|
8268
|
+
if (object.debugRedact != null)
|
|
8269
|
+
message.debugRedact = Boolean(object.debugRedact);
|
|
7365
8270
|
if (object.uninterpretedOption) {
|
|
7366
8271
|
if (!Array.isArray(object.uninterpretedOption))
|
|
7367
8272
|
throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
|
|
@@ -7390,10 +8295,17 @@
|
|
|
7390
8295
|
var object = {};
|
|
7391
8296
|
if (options.arrays || options.defaults)
|
|
7392
8297
|
object.uninterpretedOption = [];
|
|
7393
|
-
if (options.defaults)
|
|
8298
|
+
if (options.defaults) {
|
|
7394
8299
|
object.deprecated = false;
|
|
8300
|
+
object.features = null;
|
|
8301
|
+
object.debugRedact = false;
|
|
8302
|
+
}
|
|
7395
8303
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
7396
8304
|
object.deprecated = message.deprecated;
|
|
8305
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
8306
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
8307
|
+
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
8308
|
+
object.debugRedact = message.debugRedact;
|
|
7397
8309
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
7398
8310
|
object.uninterpretedOption = [];
|
|
7399
8311
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -7437,6 +8349,7 @@
|
|
|
7437
8349
|
* Properties of a ServiceOptions.
|
|
7438
8350
|
* @memberof google.protobuf
|
|
7439
8351
|
* @interface IServiceOptions
|
|
8352
|
+
* @property {google.protobuf.IFeatureSet|null} [features] ServiceOptions features
|
|
7440
8353
|
* @property {boolean|null} [deprecated] ServiceOptions deprecated
|
|
7441
8354
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] ServiceOptions uninterpretedOption
|
|
7442
8355
|
* @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost
|
|
@@ -7459,6 +8372,14 @@
|
|
|
7459
8372
|
this[keys[i]] = properties[keys[i]];
|
|
7460
8373
|
}
|
|
7461
8374
|
|
|
8375
|
+
/**
|
|
8376
|
+
* ServiceOptions features.
|
|
8377
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
8378
|
+
* @memberof google.protobuf.ServiceOptions
|
|
8379
|
+
* @instance
|
|
8380
|
+
*/
|
|
8381
|
+
ServiceOptions.prototype.features = null;
|
|
8382
|
+
|
|
7462
8383
|
/**
|
|
7463
8384
|
* ServiceOptions deprecated.
|
|
7464
8385
|
* @member {boolean} deprecated
|
|
@@ -7517,6 +8438,8 @@
|
|
|
7517
8438
|
writer = $Writer.create();
|
|
7518
8439
|
if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
|
|
7519
8440
|
writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated);
|
|
8441
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
8442
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim();
|
|
7520
8443
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
7521
8444
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
7522
8445
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -7558,6 +8481,10 @@
|
|
|
7558
8481
|
while (reader.pos < end) {
|
|
7559
8482
|
var tag = reader.uint32();
|
|
7560
8483
|
switch (tag >>> 3) {
|
|
8484
|
+
case 34: {
|
|
8485
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
8486
|
+
break;
|
|
8487
|
+
}
|
|
7561
8488
|
case 33: {
|
|
7562
8489
|
message.deprecated = reader.bool();
|
|
7563
8490
|
break;
|
|
@@ -7611,6 +8538,11 @@
|
|
|
7611
8538
|
ServiceOptions.verify = function verify(message) {
|
|
7612
8539
|
if (typeof message !== "object" || message === null)
|
|
7613
8540
|
return "object expected";
|
|
8541
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
8542
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
8543
|
+
if (error)
|
|
8544
|
+
return "features." + error;
|
|
8545
|
+
}
|
|
7614
8546
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
7615
8547
|
if (typeof message.deprecated !== "boolean")
|
|
7616
8548
|
return "deprecated: boolean expected";
|
|
@@ -7644,6 +8576,11 @@
|
|
|
7644
8576
|
if (object instanceof $root.google.protobuf.ServiceOptions)
|
|
7645
8577
|
return object;
|
|
7646
8578
|
var message = new $root.google.protobuf.ServiceOptions();
|
|
8579
|
+
if (object.features != null) {
|
|
8580
|
+
if (typeof object.features !== "object")
|
|
8581
|
+
throw TypeError(".google.protobuf.ServiceOptions.features: object expected");
|
|
8582
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
8583
|
+
}
|
|
7647
8584
|
if (object.deprecated != null)
|
|
7648
8585
|
message.deprecated = Boolean(object.deprecated);
|
|
7649
8586
|
if (object.uninterpretedOption) {
|
|
@@ -7680,11 +8617,14 @@
|
|
|
7680
8617
|
object.uninterpretedOption = [];
|
|
7681
8618
|
if (options.defaults) {
|
|
7682
8619
|
object.deprecated = false;
|
|
8620
|
+
object.features = null;
|
|
7683
8621
|
object[".google.api.defaultHost"] = "";
|
|
7684
8622
|
object[".google.api.oauthScopes"] = "";
|
|
7685
8623
|
}
|
|
7686
8624
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
7687
8625
|
object.deprecated = message.deprecated;
|
|
8626
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
8627
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
7688
8628
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
7689
8629
|
object.uninterpretedOption = [];
|
|
7690
8630
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -7734,6 +8674,7 @@
|
|
|
7734
8674
|
* @interface IMethodOptions
|
|
7735
8675
|
* @property {boolean|null} [deprecated] MethodOptions deprecated
|
|
7736
8676
|
* @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel
|
|
8677
|
+
* @property {google.protobuf.IFeatureSet|null} [features] MethodOptions features
|
|
7737
8678
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MethodOptions uninterpretedOption
|
|
7738
8679
|
* @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http
|
|
7739
8680
|
* @property {Array.<string>|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature
|
|
@@ -7773,6 +8714,14 @@
|
|
|
7773
8714
|
*/
|
|
7774
8715
|
MethodOptions.prototype.idempotencyLevel = 0;
|
|
7775
8716
|
|
|
8717
|
+
/**
|
|
8718
|
+
* MethodOptions features.
|
|
8719
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
8720
|
+
* @memberof google.protobuf.MethodOptions
|
|
8721
|
+
* @instance
|
|
8722
|
+
*/
|
|
8723
|
+
MethodOptions.prototype.features = null;
|
|
8724
|
+
|
|
7776
8725
|
/**
|
|
7777
8726
|
* MethodOptions uninterpretedOption.
|
|
7778
8727
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -7833,6 +8782,8 @@
|
|
|
7833
8782
|
writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated);
|
|
7834
8783
|
if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel"))
|
|
7835
8784
|
writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel);
|
|
8785
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
8786
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim();
|
|
7836
8787
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
7837
8788
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
7838
8789
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -7885,6 +8836,10 @@
|
|
|
7885
8836
|
message.idempotencyLevel = reader.int32();
|
|
7886
8837
|
break;
|
|
7887
8838
|
}
|
|
8839
|
+
case 35: {
|
|
8840
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
8841
|
+
break;
|
|
8842
|
+
}
|
|
7888
8843
|
case 999: {
|
|
7889
8844
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
7890
8845
|
message.uninterpretedOption = [];
|
|
@@ -7952,6 +8907,11 @@
|
|
|
7952
8907
|
case 2:
|
|
7953
8908
|
break;
|
|
7954
8909
|
}
|
|
8910
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
8911
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
8912
|
+
if (error)
|
|
8913
|
+
return "features." + error;
|
|
8914
|
+
}
|
|
7955
8915
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
7956
8916
|
if (!Array.isArray(message.uninterpretedOption))
|
|
7957
8917
|
return "uninterpretedOption: array expected";
|
|
@@ -8015,6 +8975,11 @@
|
|
|
8015
8975
|
message.idempotencyLevel = 2;
|
|
8016
8976
|
break;
|
|
8017
8977
|
}
|
|
8978
|
+
if (object.features != null) {
|
|
8979
|
+
if (typeof object.features !== "object")
|
|
8980
|
+
throw TypeError(".google.protobuf.MethodOptions.features: object expected");
|
|
8981
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
8982
|
+
}
|
|
8018
8983
|
if (object.uninterpretedOption) {
|
|
8019
8984
|
if (!Array.isArray(object.uninterpretedOption))
|
|
8020
8985
|
throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");
|
|
@@ -8065,6 +9030,7 @@
|
|
|
8065
9030
|
if (options.defaults) {
|
|
8066
9031
|
object.deprecated = false;
|
|
8067
9032
|
object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0;
|
|
9033
|
+
object.features = null;
|
|
8068
9034
|
object[".google.longrunning.operationInfo"] = null;
|
|
8069
9035
|
object[".google.api.http"] = null;
|
|
8070
9036
|
}
|
|
@@ -8072,6 +9038,8 @@
|
|
|
8072
9038
|
object.deprecated = message.deprecated;
|
|
8073
9039
|
if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel"))
|
|
8074
9040
|
object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel;
|
|
9041
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
9042
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
8075
9043
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
8076
9044
|
object.uninterpretedOption = [];
|
|
8077
9045
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -8762,6 +9730,607 @@
|
|
|
8762
9730
|
return UninterpretedOption;
|
|
8763
9731
|
})();
|
|
8764
9732
|
|
|
9733
|
+
protobuf.FeatureSet = (function() {
|
|
9734
|
+
|
|
9735
|
+
/**
|
|
9736
|
+
* Properties of a FeatureSet.
|
|
9737
|
+
* @memberof google.protobuf
|
|
9738
|
+
* @interface IFeatureSet
|
|
9739
|
+
* @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence
|
|
9740
|
+
* @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType
|
|
9741
|
+
* @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding
|
|
9742
|
+
* @property {google.protobuf.FeatureSet.StringFieldValidation|null} [stringFieldValidation] FeatureSet stringFieldValidation
|
|
9743
|
+
* @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
|
|
9744
|
+
* @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
|
|
9745
|
+
* @property {google.protobuf.IFeatureSet|null} [rawFeatures] FeatureSet rawFeatures
|
|
9746
|
+
*/
|
|
9747
|
+
|
|
9748
|
+
/**
|
|
9749
|
+
* Constructs a new FeatureSet.
|
|
9750
|
+
* @memberof google.protobuf
|
|
9751
|
+
* @classdesc Represents a FeatureSet.
|
|
9752
|
+
* @implements IFeatureSet
|
|
9753
|
+
* @constructor
|
|
9754
|
+
* @param {google.protobuf.IFeatureSet=} [properties] Properties to set
|
|
9755
|
+
*/
|
|
9756
|
+
function FeatureSet(properties) {
|
|
9757
|
+
if (properties)
|
|
9758
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9759
|
+
if (properties[keys[i]] != null)
|
|
9760
|
+
this[keys[i]] = properties[keys[i]];
|
|
9761
|
+
}
|
|
9762
|
+
|
|
9763
|
+
/**
|
|
9764
|
+
* FeatureSet fieldPresence.
|
|
9765
|
+
* @member {google.protobuf.FeatureSet.FieldPresence} fieldPresence
|
|
9766
|
+
* @memberof google.protobuf.FeatureSet
|
|
9767
|
+
* @instance
|
|
9768
|
+
*/
|
|
9769
|
+
FeatureSet.prototype.fieldPresence = 0;
|
|
9770
|
+
|
|
9771
|
+
/**
|
|
9772
|
+
* FeatureSet enumType.
|
|
9773
|
+
* @member {google.protobuf.FeatureSet.EnumType} enumType
|
|
9774
|
+
* @memberof google.protobuf.FeatureSet
|
|
9775
|
+
* @instance
|
|
9776
|
+
*/
|
|
9777
|
+
FeatureSet.prototype.enumType = 0;
|
|
9778
|
+
|
|
9779
|
+
/**
|
|
9780
|
+
* FeatureSet repeatedFieldEncoding.
|
|
9781
|
+
* @member {google.protobuf.FeatureSet.RepeatedFieldEncoding} repeatedFieldEncoding
|
|
9782
|
+
* @memberof google.protobuf.FeatureSet
|
|
9783
|
+
* @instance
|
|
9784
|
+
*/
|
|
9785
|
+
FeatureSet.prototype.repeatedFieldEncoding = 0;
|
|
9786
|
+
|
|
9787
|
+
/**
|
|
9788
|
+
* FeatureSet stringFieldValidation.
|
|
9789
|
+
* @member {google.protobuf.FeatureSet.StringFieldValidation} stringFieldValidation
|
|
9790
|
+
* @memberof google.protobuf.FeatureSet
|
|
9791
|
+
* @instance
|
|
9792
|
+
*/
|
|
9793
|
+
FeatureSet.prototype.stringFieldValidation = 0;
|
|
9794
|
+
|
|
9795
|
+
/**
|
|
9796
|
+
* FeatureSet messageEncoding.
|
|
9797
|
+
* @member {google.protobuf.FeatureSet.MessageEncoding} messageEncoding
|
|
9798
|
+
* @memberof google.protobuf.FeatureSet
|
|
9799
|
+
* @instance
|
|
9800
|
+
*/
|
|
9801
|
+
FeatureSet.prototype.messageEncoding = 0;
|
|
9802
|
+
|
|
9803
|
+
/**
|
|
9804
|
+
* FeatureSet jsonFormat.
|
|
9805
|
+
* @member {google.protobuf.FeatureSet.JsonFormat} jsonFormat
|
|
9806
|
+
* @memberof google.protobuf.FeatureSet
|
|
9807
|
+
* @instance
|
|
9808
|
+
*/
|
|
9809
|
+
FeatureSet.prototype.jsonFormat = 0;
|
|
9810
|
+
|
|
9811
|
+
/**
|
|
9812
|
+
* FeatureSet rawFeatures.
|
|
9813
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} rawFeatures
|
|
9814
|
+
* @memberof google.protobuf.FeatureSet
|
|
9815
|
+
* @instance
|
|
9816
|
+
*/
|
|
9817
|
+
FeatureSet.prototype.rawFeatures = null;
|
|
9818
|
+
|
|
9819
|
+
/**
|
|
9820
|
+
* Creates a new FeatureSet instance using the specified properties.
|
|
9821
|
+
* @function create
|
|
9822
|
+
* @memberof google.protobuf.FeatureSet
|
|
9823
|
+
* @static
|
|
9824
|
+
* @param {google.protobuf.IFeatureSet=} [properties] Properties to set
|
|
9825
|
+
* @returns {google.protobuf.FeatureSet} FeatureSet instance
|
|
9826
|
+
*/
|
|
9827
|
+
FeatureSet.create = function create(properties) {
|
|
9828
|
+
return new FeatureSet(properties);
|
|
9829
|
+
};
|
|
9830
|
+
|
|
9831
|
+
/**
|
|
9832
|
+
* Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
|
|
9833
|
+
* @function encode
|
|
9834
|
+
* @memberof google.protobuf.FeatureSet
|
|
9835
|
+
* @static
|
|
9836
|
+
* @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode
|
|
9837
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9838
|
+
* @returns {$protobuf.Writer} Writer
|
|
9839
|
+
*/
|
|
9840
|
+
FeatureSet.encode = function encode(message, writer) {
|
|
9841
|
+
if (!writer)
|
|
9842
|
+
writer = $Writer.create();
|
|
9843
|
+
if (message.fieldPresence != null && Object.hasOwnProperty.call(message, "fieldPresence"))
|
|
9844
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.fieldPresence);
|
|
9845
|
+
if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType"))
|
|
9846
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType);
|
|
9847
|
+
if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding"))
|
|
9848
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding);
|
|
9849
|
+
if (message.stringFieldValidation != null && Object.hasOwnProperty.call(message, "stringFieldValidation"))
|
|
9850
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.stringFieldValidation);
|
|
9851
|
+
if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding"))
|
|
9852
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
|
|
9853
|
+
if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
|
|
9854
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
|
|
9855
|
+
if (message.rawFeatures != null && Object.hasOwnProperty.call(message, "rawFeatures"))
|
|
9856
|
+
$root.google.protobuf.FeatureSet.encode(message.rawFeatures, writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
9857
|
+
return writer;
|
|
9858
|
+
};
|
|
9859
|
+
|
|
9860
|
+
/**
|
|
9861
|
+
* Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
|
|
9862
|
+
* @function encodeDelimited
|
|
9863
|
+
* @memberof google.protobuf.FeatureSet
|
|
9864
|
+
* @static
|
|
9865
|
+
* @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode
|
|
9866
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9867
|
+
* @returns {$protobuf.Writer} Writer
|
|
9868
|
+
*/
|
|
9869
|
+
FeatureSet.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9870
|
+
return this.encode(message, writer).ldelim();
|
|
9871
|
+
};
|
|
9872
|
+
|
|
9873
|
+
/**
|
|
9874
|
+
* Decodes a FeatureSet message from the specified reader or buffer.
|
|
9875
|
+
* @function decode
|
|
9876
|
+
* @memberof google.protobuf.FeatureSet
|
|
9877
|
+
* @static
|
|
9878
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9879
|
+
* @param {number} [length] Message length if known beforehand
|
|
9880
|
+
* @returns {google.protobuf.FeatureSet} FeatureSet
|
|
9881
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9882
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9883
|
+
*/
|
|
9884
|
+
FeatureSet.decode = function decode(reader, length) {
|
|
9885
|
+
if (!(reader instanceof $Reader))
|
|
9886
|
+
reader = $Reader.create(reader);
|
|
9887
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet();
|
|
9888
|
+
while (reader.pos < end) {
|
|
9889
|
+
var tag = reader.uint32();
|
|
9890
|
+
switch (tag >>> 3) {
|
|
9891
|
+
case 1: {
|
|
9892
|
+
message.fieldPresence = reader.int32();
|
|
9893
|
+
break;
|
|
9894
|
+
}
|
|
9895
|
+
case 2: {
|
|
9896
|
+
message.enumType = reader.int32();
|
|
9897
|
+
break;
|
|
9898
|
+
}
|
|
9899
|
+
case 3: {
|
|
9900
|
+
message.repeatedFieldEncoding = reader.int32();
|
|
9901
|
+
break;
|
|
9902
|
+
}
|
|
9903
|
+
case 4: {
|
|
9904
|
+
message.stringFieldValidation = reader.int32();
|
|
9905
|
+
break;
|
|
9906
|
+
}
|
|
9907
|
+
case 5: {
|
|
9908
|
+
message.messageEncoding = reader.int32();
|
|
9909
|
+
break;
|
|
9910
|
+
}
|
|
9911
|
+
case 6: {
|
|
9912
|
+
message.jsonFormat = reader.int32();
|
|
9913
|
+
break;
|
|
9914
|
+
}
|
|
9915
|
+
case 999: {
|
|
9916
|
+
message.rawFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
9917
|
+
break;
|
|
9918
|
+
}
|
|
9919
|
+
default:
|
|
9920
|
+
reader.skipType(tag & 7);
|
|
9921
|
+
break;
|
|
9922
|
+
}
|
|
9923
|
+
}
|
|
9924
|
+
return message;
|
|
9925
|
+
};
|
|
9926
|
+
|
|
9927
|
+
/**
|
|
9928
|
+
* Decodes a FeatureSet message from the specified reader or buffer, length delimited.
|
|
9929
|
+
* @function decodeDelimited
|
|
9930
|
+
* @memberof google.protobuf.FeatureSet
|
|
9931
|
+
* @static
|
|
9932
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9933
|
+
* @returns {google.protobuf.FeatureSet} FeatureSet
|
|
9934
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9935
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9936
|
+
*/
|
|
9937
|
+
FeatureSet.decodeDelimited = function decodeDelimited(reader) {
|
|
9938
|
+
if (!(reader instanceof $Reader))
|
|
9939
|
+
reader = new $Reader(reader);
|
|
9940
|
+
return this.decode(reader, reader.uint32());
|
|
9941
|
+
};
|
|
9942
|
+
|
|
9943
|
+
/**
|
|
9944
|
+
* Verifies a FeatureSet message.
|
|
9945
|
+
* @function verify
|
|
9946
|
+
* @memberof google.protobuf.FeatureSet
|
|
9947
|
+
* @static
|
|
9948
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9949
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9950
|
+
*/
|
|
9951
|
+
FeatureSet.verify = function verify(message) {
|
|
9952
|
+
if (typeof message !== "object" || message === null)
|
|
9953
|
+
return "object expected";
|
|
9954
|
+
if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
|
|
9955
|
+
switch (message.fieldPresence) {
|
|
9956
|
+
default:
|
|
9957
|
+
return "fieldPresence: enum value expected";
|
|
9958
|
+
case 0:
|
|
9959
|
+
case 1:
|
|
9960
|
+
case 2:
|
|
9961
|
+
case 3:
|
|
9962
|
+
break;
|
|
9963
|
+
}
|
|
9964
|
+
if (message.enumType != null && message.hasOwnProperty("enumType"))
|
|
9965
|
+
switch (message.enumType) {
|
|
9966
|
+
default:
|
|
9967
|
+
return "enumType: enum value expected";
|
|
9968
|
+
case 0:
|
|
9969
|
+
case 1:
|
|
9970
|
+
case 2:
|
|
9971
|
+
break;
|
|
9972
|
+
}
|
|
9973
|
+
if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding"))
|
|
9974
|
+
switch (message.repeatedFieldEncoding) {
|
|
9975
|
+
default:
|
|
9976
|
+
return "repeatedFieldEncoding: enum value expected";
|
|
9977
|
+
case 0:
|
|
9978
|
+
case 1:
|
|
9979
|
+
case 2:
|
|
9980
|
+
break;
|
|
9981
|
+
}
|
|
9982
|
+
if (message.stringFieldValidation != null && message.hasOwnProperty("stringFieldValidation"))
|
|
9983
|
+
switch (message.stringFieldValidation) {
|
|
9984
|
+
default:
|
|
9985
|
+
return "stringFieldValidation: enum value expected";
|
|
9986
|
+
case 0:
|
|
9987
|
+
case 1:
|
|
9988
|
+
case 2:
|
|
9989
|
+
case 3:
|
|
9990
|
+
break;
|
|
9991
|
+
}
|
|
9992
|
+
if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding"))
|
|
9993
|
+
switch (message.messageEncoding) {
|
|
9994
|
+
default:
|
|
9995
|
+
return "messageEncoding: enum value expected";
|
|
9996
|
+
case 0:
|
|
9997
|
+
case 1:
|
|
9998
|
+
case 2:
|
|
9999
|
+
break;
|
|
10000
|
+
}
|
|
10001
|
+
if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
|
|
10002
|
+
switch (message.jsonFormat) {
|
|
10003
|
+
default:
|
|
10004
|
+
return "jsonFormat: enum value expected";
|
|
10005
|
+
case 0:
|
|
10006
|
+
case 1:
|
|
10007
|
+
case 2:
|
|
10008
|
+
break;
|
|
10009
|
+
}
|
|
10010
|
+
if (message.rawFeatures != null && message.hasOwnProperty("rawFeatures")) {
|
|
10011
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.rawFeatures);
|
|
10012
|
+
if (error)
|
|
10013
|
+
return "rawFeatures." + error;
|
|
10014
|
+
}
|
|
10015
|
+
return null;
|
|
10016
|
+
};
|
|
10017
|
+
|
|
10018
|
+
/**
|
|
10019
|
+
* Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
|
|
10020
|
+
* @function fromObject
|
|
10021
|
+
* @memberof google.protobuf.FeatureSet
|
|
10022
|
+
* @static
|
|
10023
|
+
* @param {Object.<string,*>} object Plain object
|
|
10024
|
+
* @returns {google.protobuf.FeatureSet} FeatureSet
|
|
10025
|
+
*/
|
|
10026
|
+
FeatureSet.fromObject = function fromObject(object) {
|
|
10027
|
+
if (object instanceof $root.google.protobuf.FeatureSet)
|
|
10028
|
+
return object;
|
|
10029
|
+
var message = new $root.google.protobuf.FeatureSet();
|
|
10030
|
+
switch (object.fieldPresence) {
|
|
10031
|
+
default:
|
|
10032
|
+
if (typeof object.fieldPresence === "number") {
|
|
10033
|
+
message.fieldPresence = object.fieldPresence;
|
|
10034
|
+
break;
|
|
10035
|
+
}
|
|
10036
|
+
break;
|
|
10037
|
+
case "FIELD_PRESENCE_UNKNOWN":
|
|
10038
|
+
case 0:
|
|
10039
|
+
message.fieldPresence = 0;
|
|
10040
|
+
break;
|
|
10041
|
+
case "EXPLICIT":
|
|
10042
|
+
case 1:
|
|
10043
|
+
message.fieldPresence = 1;
|
|
10044
|
+
break;
|
|
10045
|
+
case "IMPLICIT":
|
|
10046
|
+
case 2:
|
|
10047
|
+
message.fieldPresence = 2;
|
|
10048
|
+
break;
|
|
10049
|
+
case "LEGACY_REQUIRED":
|
|
10050
|
+
case 3:
|
|
10051
|
+
message.fieldPresence = 3;
|
|
10052
|
+
break;
|
|
10053
|
+
}
|
|
10054
|
+
switch (object.enumType) {
|
|
10055
|
+
default:
|
|
10056
|
+
if (typeof object.enumType === "number") {
|
|
10057
|
+
message.enumType = object.enumType;
|
|
10058
|
+
break;
|
|
10059
|
+
}
|
|
10060
|
+
break;
|
|
10061
|
+
case "ENUM_TYPE_UNKNOWN":
|
|
10062
|
+
case 0:
|
|
10063
|
+
message.enumType = 0;
|
|
10064
|
+
break;
|
|
10065
|
+
case "OPEN":
|
|
10066
|
+
case 1:
|
|
10067
|
+
message.enumType = 1;
|
|
10068
|
+
break;
|
|
10069
|
+
case "CLOSED":
|
|
10070
|
+
case 2:
|
|
10071
|
+
message.enumType = 2;
|
|
10072
|
+
break;
|
|
10073
|
+
}
|
|
10074
|
+
switch (object.repeatedFieldEncoding) {
|
|
10075
|
+
default:
|
|
10076
|
+
if (typeof object.repeatedFieldEncoding === "number") {
|
|
10077
|
+
message.repeatedFieldEncoding = object.repeatedFieldEncoding;
|
|
10078
|
+
break;
|
|
10079
|
+
}
|
|
10080
|
+
break;
|
|
10081
|
+
case "REPEATED_FIELD_ENCODING_UNKNOWN":
|
|
10082
|
+
case 0:
|
|
10083
|
+
message.repeatedFieldEncoding = 0;
|
|
10084
|
+
break;
|
|
10085
|
+
case "PACKED":
|
|
10086
|
+
case 1:
|
|
10087
|
+
message.repeatedFieldEncoding = 1;
|
|
10088
|
+
break;
|
|
10089
|
+
case "EXPANDED":
|
|
10090
|
+
case 2:
|
|
10091
|
+
message.repeatedFieldEncoding = 2;
|
|
10092
|
+
break;
|
|
10093
|
+
}
|
|
10094
|
+
switch (object.stringFieldValidation) {
|
|
10095
|
+
default:
|
|
10096
|
+
if (typeof object.stringFieldValidation === "number") {
|
|
10097
|
+
message.stringFieldValidation = object.stringFieldValidation;
|
|
10098
|
+
break;
|
|
10099
|
+
}
|
|
10100
|
+
break;
|
|
10101
|
+
case "STRING_FIELD_VALIDATION_UNKNOWN":
|
|
10102
|
+
case 0:
|
|
10103
|
+
message.stringFieldValidation = 0;
|
|
10104
|
+
break;
|
|
10105
|
+
case "MANDATORY":
|
|
10106
|
+
case 1:
|
|
10107
|
+
message.stringFieldValidation = 1;
|
|
10108
|
+
break;
|
|
10109
|
+
case "HINT":
|
|
10110
|
+
case 2:
|
|
10111
|
+
message.stringFieldValidation = 2;
|
|
10112
|
+
break;
|
|
10113
|
+
case "NONE":
|
|
10114
|
+
case 3:
|
|
10115
|
+
message.stringFieldValidation = 3;
|
|
10116
|
+
break;
|
|
10117
|
+
}
|
|
10118
|
+
switch (object.messageEncoding) {
|
|
10119
|
+
default:
|
|
10120
|
+
if (typeof object.messageEncoding === "number") {
|
|
10121
|
+
message.messageEncoding = object.messageEncoding;
|
|
10122
|
+
break;
|
|
10123
|
+
}
|
|
10124
|
+
break;
|
|
10125
|
+
case "MESSAGE_ENCODING_UNKNOWN":
|
|
10126
|
+
case 0:
|
|
10127
|
+
message.messageEncoding = 0;
|
|
10128
|
+
break;
|
|
10129
|
+
case "LENGTH_PREFIXED":
|
|
10130
|
+
case 1:
|
|
10131
|
+
message.messageEncoding = 1;
|
|
10132
|
+
break;
|
|
10133
|
+
case "DELIMITED":
|
|
10134
|
+
case 2:
|
|
10135
|
+
message.messageEncoding = 2;
|
|
10136
|
+
break;
|
|
10137
|
+
}
|
|
10138
|
+
switch (object.jsonFormat) {
|
|
10139
|
+
default:
|
|
10140
|
+
if (typeof object.jsonFormat === "number") {
|
|
10141
|
+
message.jsonFormat = object.jsonFormat;
|
|
10142
|
+
break;
|
|
10143
|
+
}
|
|
10144
|
+
break;
|
|
10145
|
+
case "JSON_FORMAT_UNKNOWN":
|
|
10146
|
+
case 0:
|
|
10147
|
+
message.jsonFormat = 0;
|
|
10148
|
+
break;
|
|
10149
|
+
case "ALLOW":
|
|
10150
|
+
case 1:
|
|
10151
|
+
message.jsonFormat = 1;
|
|
10152
|
+
break;
|
|
10153
|
+
case "LEGACY_BEST_EFFORT":
|
|
10154
|
+
case 2:
|
|
10155
|
+
message.jsonFormat = 2;
|
|
10156
|
+
break;
|
|
10157
|
+
}
|
|
10158
|
+
if (object.rawFeatures != null) {
|
|
10159
|
+
if (typeof object.rawFeatures !== "object")
|
|
10160
|
+
throw TypeError(".google.protobuf.FeatureSet.rawFeatures: object expected");
|
|
10161
|
+
message.rawFeatures = $root.google.protobuf.FeatureSet.fromObject(object.rawFeatures);
|
|
10162
|
+
}
|
|
10163
|
+
return message;
|
|
10164
|
+
};
|
|
10165
|
+
|
|
10166
|
+
/**
|
|
10167
|
+
* Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
|
|
10168
|
+
* @function toObject
|
|
10169
|
+
* @memberof google.protobuf.FeatureSet
|
|
10170
|
+
* @static
|
|
10171
|
+
* @param {google.protobuf.FeatureSet} message FeatureSet
|
|
10172
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10173
|
+
* @returns {Object.<string,*>} Plain object
|
|
10174
|
+
*/
|
|
10175
|
+
FeatureSet.toObject = function toObject(message, options) {
|
|
10176
|
+
if (!options)
|
|
10177
|
+
options = {};
|
|
10178
|
+
var object = {};
|
|
10179
|
+
if (options.defaults) {
|
|
10180
|
+
object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0;
|
|
10181
|
+
object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0;
|
|
10182
|
+
object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0;
|
|
10183
|
+
object.stringFieldValidation = options.enums === String ? "STRING_FIELD_VALIDATION_UNKNOWN" : 0;
|
|
10184
|
+
object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
|
|
10185
|
+
object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
|
|
10186
|
+
object.rawFeatures = null;
|
|
10187
|
+
}
|
|
10188
|
+
if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
|
|
10189
|
+
object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
|
|
10190
|
+
if (message.enumType != null && message.hasOwnProperty("enumType"))
|
|
10191
|
+
object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType;
|
|
10192
|
+
if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding"))
|
|
10193
|
+
object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding;
|
|
10194
|
+
if (message.stringFieldValidation != null && message.hasOwnProperty("stringFieldValidation"))
|
|
10195
|
+
object.stringFieldValidation = options.enums === String ? $root.google.protobuf.FeatureSet.StringFieldValidation[message.stringFieldValidation] === undefined ? message.stringFieldValidation : $root.google.protobuf.FeatureSet.StringFieldValidation[message.stringFieldValidation] : message.stringFieldValidation;
|
|
10196
|
+
if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding"))
|
|
10197
|
+
object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
|
|
10198
|
+
if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
|
|
10199
|
+
object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
|
|
10200
|
+
if (message.rawFeatures != null && message.hasOwnProperty("rawFeatures"))
|
|
10201
|
+
object.rawFeatures = $root.google.protobuf.FeatureSet.toObject(message.rawFeatures, options);
|
|
10202
|
+
return object;
|
|
10203
|
+
};
|
|
10204
|
+
|
|
10205
|
+
/**
|
|
10206
|
+
* Converts this FeatureSet to JSON.
|
|
10207
|
+
* @function toJSON
|
|
10208
|
+
* @memberof google.protobuf.FeatureSet
|
|
10209
|
+
* @instance
|
|
10210
|
+
* @returns {Object.<string,*>} JSON object
|
|
10211
|
+
*/
|
|
10212
|
+
FeatureSet.prototype.toJSON = function toJSON() {
|
|
10213
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10214
|
+
};
|
|
10215
|
+
|
|
10216
|
+
/**
|
|
10217
|
+
* Gets the default type url for FeatureSet
|
|
10218
|
+
* @function getTypeUrl
|
|
10219
|
+
* @memberof google.protobuf.FeatureSet
|
|
10220
|
+
* @static
|
|
10221
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
10222
|
+
* @returns {string} The default type url
|
|
10223
|
+
*/
|
|
10224
|
+
FeatureSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
10225
|
+
if (typeUrlPrefix === undefined) {
|
|
10226
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
10227
|
+
}
|
|
10228
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSet";
|
|
10229
|
+
};
|
|
10230
|
+
|
|
10231
|
+
/**
|
|
10232
|
+
* FieldPresence enum.
|
|
10233
|
+
* @name google.protobuf.FeatureSet.FieldPresence
|
|
10234
|
+
* @enum {number}
|
|
10235
|
+
* @property {number} FIELD_PRESENCE_UNKNOWN=0 FIELD_PRESENCE_UNKNOWN value
|
|
10236
|
+
* @property {number} EXPLICIT=1 EXPLICIT value
|
|
10237
|
+
* @property {number} IMPLICIT=2 IMPLICIT value
|
|
10238
|
+
* @property {number} LEGACY_REQUIRED=3 LEGACY_REQUIRED value
|
|
10239
|
+
*/
|
|
10240
|
+
FeatureSet.FieldPresence = (function() {
|
|
10241
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
10242
|
+
values[valuesById[0] = "FIELD_PRESENCE_UNKNOWN"] = 0;
|
|
10243
|
+
values[valuesById[1] = "EXPLICIT"] = 1;
|
|
10244
|
+
values[valuesById[2] = "IMPLICIT"] = 2;
|
|
10245
|
+
values[valuesById[3] = "LEGACY_REQUIRED"] = 3;
|
|
10246
|
+
return values;
|
|
10247
|
+
})();
|
|
10248
|
+
|
|
10249
|
+
/**
|
|
10250
|
+
* EnumType enum.
|
|
10251
|
+
* @name google.protobuf.FeatureSet.EnumType
|
|
10252
|
+
* @enum {number}
|
|
10253
|
+
* @property {number} ENUM_TYPE_UNKNOWN=0 ENUM_TYPE_UNKNOWN value
|
|
10254
|
+
* @property {number} OPEN=1 OPEN value
|
|
10255
|
+
* @property {number} CLOSED=2 CLOSED value
|
|
10256
|
+
*/
|
|
10257
|
+
FeatureSet.EnumType = (function() {
|
|
10258
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
10259
|
+
values[valuesById[0] = "ENUM_TYPE_UNKNOWN"] = 0;
|
|
10260
|
+
values[valuesById[1] = "OPEN"] = 1;
|
|
10261
|
+
values[valuesById[2] = "CLOSED"] = 2;
|
|
10262
|
+
return values;
|
|
10263
|
+
})();
|
|
10264
|
+
|
|
10265
|
+
/**
|
|
10266
|
+
* RepeatedFieldEncoding enum.
|
|
10267
|
+
* @name google.protobuf.FeatureSet.RepeatedFieldEncoding
|
|
10268
|
+
* @enum {number}
|
|
10269
|
+
* @property {number} REPEATED_FIELD_ENCODING_UNKNOWN=0 REPEATED_FIELD_ENCODING_UNKNOWN value
|
|
10270
|
+
* @property {number} PACKED=1 PACKED value
|
|
10271
|
+
* @property {number} EXPANDED=2 EXPANDED value
|
|
10272
|
+
*/
|
|
10273
|
+
FeatureSet.RepeatedFieldEncoding = (function() {
|
|
10274
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
10275
|
+
values[valuesById[0] = "REPEATED_FIELD_ENCODING_UNKNOWN"] = 0;
|
|
10276
|
+
values[valuesById[1] = "PACKED"] = 1;
|
|
10277
|
+
values[valuesById[2] = "EXPANDED"] = 2;
|
|
10278
|
+
return values;
|
|
10279
|
+
})();
|
|
10280
|
+
|
|
10281
|
+
/**
|
|
10282
|
+
* StringFieldValidation enum.
|
|
10283
|
+
* @name google.protobuf.FeatureSet.StringFieldValidation
|
|
10284
|
+
* @enum {number}
|
|
10285
|
+
* @property {number} STRING_FIELD_VALIDATION_UNKNOWN=0 STRING_FIELD_VALIDATION_UNKNOWN value
|
|
10286
|
+
* @property {number} MANDATORY=1 MANDATORY value
|
|
10287
|
+
* @property {number} HINT=2 HINT value
|
|
10288
|
+
* @property {number} NONE=3 NONE value
|
|
10289
|
+
*/
|
|
10290
|
+
FeatureSet.StringFieldValidation = (function() {
|
|
10291
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
10292
|
+
values[valuesById[0] = "STRING_FIELD_VALIDATION_UNKNOWN"] = 0;
|
|
10293
|
+
values[valuesById[1] = "MANDATORY"] = 1;
|
|
10294
|
+
values[valuesById[2] = "HINT"] = 2;
|
|
10295
|
+
values[valuesById[3] = "NONE"] = 3;
|
|
10296
|
+
return values;
|
|
10297
|
+
})();
|
|
10298
|
+
|
|
10299
|
+
/**
|
|
10300
|
+
* MessageEncoding enum.
|
|
10301
|
+
* @name google.protobuf.FeatureSet.MessageEncoding
|
|
10302
|
+
* @enum {number}
|
|
10303
|
+
* @property {number} MESSAGE_ENCODING_UNKNOWN=0 MESSAGE_ENCODING_UNKNOWN value
|
|
10304
|
+
* @property {number} LENGTH_PREFIXED=1 LENGTH_PREFIXED value
|
|
10305
|
+
* @property {number} DELIMITED=2 DELIMITED value
|
|
10306
|
+
*/
|
|
10307
|
+
FeatureSet.MessageEncoding = (function() {
|
|
10308
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
10309
|
+
values[valuesById[0] = "MESSAGE_ENCODING_UNKNOWN"] = 0;
|
|
10310
|
+
values[valuesById[1] = "LENGTH_PREFIXED"] = 1;
|
|
10311
|
+
values[valuesById[2] = "DELIMITED"] = 2;
|
|
10312
|
+
return values;
|
|
10313
|
+
})();
|
|
10314
|
+
|
|
10315
|
+
/**
|
|
10316
|
+
* JsonFormat enum.
|
|
10317
|
+
* @name google.protobuf.FeatureSet.JsonFormat
|
|
10318
|
+
* @enum {number}
|
|
10319
|
+
* @property {number} JSON_FORMAT_UNKNOWN=0 JSON_FORMAT_UNKNOWN value
|
|
10320
|
+
* @property {number} ALLOW=1 ALLOW value
|
|
10321
|
+
* @property {number} LEGACY_BEST_EFFORT=2 LEGACY_BEST_EFFORT value
|
|
10322
|
+
*/
|
|
10323
|
+
FeatureSet.JsonFormat = (function() {
|
|
10324
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
10325
|
+
values[valuesById[0] = "JSON_FORMAT_UNKNOWN"] = 0;
|
|
10326
|
+
values[valuesById[1] = "ALLOW"] = 1;
|
|
10327
|
+
values[valuesById[2] = "LEGACY_BEST_EFFORT"] = 2;
|
|
10328
|
+
return values;
|
|
10329
|
+
})();
|
|
10330
|
+
|
|
10331
|
+
return FeatureSet;
|
|
10332
|
+
})();
|
|
10333
|
+
|
|
8765
10334
|
protobuf.SourceCodeInfo = (function() {
|
|
8766
10335
|
|
|
8767
10336
|
/**
|
|
@@ -10746,6 +12315,39 @@
|
|
|
10746
12315
|
* @variation 2
|
|
10747
12316
|
*/
|
|
10748
12317
|
|
|
12318
|
+
/**
|
|
12319
|
+
* Callback as used by {@link google.analytics.data.v1alpha.AlphaAnalyticsData|sheetExportAudienceList}.
|
|
12320
|
+
* @memberof google.analytics.data.v1alpha.AlphaAnalyticsData
|
|
12321
|
+
* @typedef SheetExportAudienceListCallback
|
|
12322
|
+
* @type {function}
|
|
12323
|
+
* @param {Error|null} error Error, if any
|
|
12324
|
+
* @param {google.analytics.data.v1alpha.SheetExportAudienceListResponse} [response] SheetExportAudienceListResponse
|
|
12325
|
+
*/
|
|
12326
|
+
|
|
12327
|
+
/**
|
|
12328
|
+
* Calls SheetExportAudienceList.
|
|
12329
|
+
* @function sheetExportAudienceList
|
|
12330
|
+
* @memberof google.analytics.data.v1alpha.AlphaAnalyticsData
|
|
12331
|
+
* @instance
|
|
12332
|
+
* @param {google.analytics.data.v1alpha.ISheetExportAudienceListRequest} request SheetExportAudienceListRequest message or plain object
|
|
12333
|
+
* @param {google.analytics.data.v1alpha.AlphaAnalyticsData.SheetExportAudienceListCallback} callback Node-style callback called with the error, if any, and SheetExportAudienceListResponse
|
|
12334
|
+
* @returns {undefined}
|
|
12335
|
+
* @variation 1
|
|
12336
|
+
*/
|
|
12337
|
+
Object.defineProperty(AlphaAnalyticsData.prototype.sheetExportAudienceList = function sheetExportAudienceList(request, callback) {
|
|
12338
|
+
return this.rpcCall(sheetExportAudienceList, $root.google.analytics.data.v1alpha.SheetExportAudienceListRequest, $root.google.analytics.data.v1alpha.SheetExportAudienceListResponse, request, callback);
|
|
12339
|
+
}, "name", { value: "SheetExportAudienceList" });
|
|
12340
|
+
|
|
12341
|
+
/**
|
|
12342
|
+
* Calls SheetExportAudienceList.
|
|
12343
|
+
* @function sheetExportAudienceList
|
|
12344
|
+
* @memberof google.analytics.data.v1alpha.AlphaAnalyticsData
|
|
12345
|
+
* @instance
|
|
12346
|
+
* @param {google.analytics.data.v1alpha.ISheetExportAudienceListRequest} request SheetExportAudienceListRequest message or plain object
|
|
12347
|
+
* @returns {Promise<google.analytics.data.v1alpha.SheetExportAudienceListResponse>} Promise
|
|
12348
|
+
* @variation 2
|
|
12349
|
+
*/
|
|
12350
|
+
|
|
10749
12351
|
/**
|
|
10750
12352
|
* Callback as used by {@link google.analytics.data.v1alpha.AlphaAnalyticsData|getAudienceList}.
|
|
10751
12353
|
* @memberof google.analytics.data.v1alpha.AlphaAnalyticsData
|
|
@@ -11778,6 +13380,9 @@
|
|
|
11778
13380
|
* @property {Array.<google.analytics.data.v1alpha.IAudienceDimension>|null} [dimensions] AudienceList dimensions
|
|
11779
13381
|
* @property {google.analytics.data.v1alpha.AudienceList.State|null} [state] AudienceList state
|
|
11780
13382
|
* @property {google.protobuf.ITimestamp|null} [beginCreatingTime] AudienceList beginCreatingTime
|
|
13383
|
+
* @property {number|null} [creationQuotaTokensCharged] AudienceList creationQuotaTokensCharged
|
|
13384
|
+
* @property {number|null} [rowCount] AudienceList rowCount
|
|
13385
|
+
* @property {string|null} [errorMessage] AudienceList errorMessage
|
|
11781
13386
|
*/
|
|
11782
13387
|
|
|
11783
13388
|
/**
|
|
@@ -11844,6 +13449,30 @@
|
|
|
11844
13449
|
*/
|
|
11845
13450
|
AudienceList.prototype.beginCreatingTime = null;
|
|
11846
13451
|
|
|
13452
|
+
/**
|
|
13453
|
+
* AudienceList creationQuotaTokensCharged.
|
|
13454
|
+
* @member {number} creationQuotaTokensCharged
|
|
13455
|
+
* @memberof google.analytics.data.v1alpha.AudienceList
|
|
13456
|
+
* @instance
|
|
13457
|
+
*/
|
|
13458
|
+
AudienceList.prototype.creationQuotaTokensCharged = 0;
|
|
13459
|
+
|
|
13460
|
+
/**
|
|
13461
|
+
* AudienceList rowCount.
|
|
13462
|
+
* @member {number|null|undefined} rowCount
|
|
13463
|
+
* @memberof google.analytics.data.v1alpha.AudienceList
|
|
13464
|
+
* @instance
|
|
13465
|
+
*/
|
|
13466
|
+
AudienceList.prototype.rowCount = null;
|
|
13467
|
+
|
|
13468
|
+
/**
|
|
13469
|
+
* AudienceList errorMessage.
|
|
13470
|
+
* @member {string|null|undefined} errorMessage
|
|
13471
|
+
* @memberof google.analytics.data.v1alpha.AudienceList
|
|
13472
|
+
* @instance
|
|
13473
|
+
*/
|
|
13474
|
+
AudienceList.prototype.errorMessage = null;
|
|
13475
|
+
|
|
11847
13476
|
// OneOf field names bound to virtual getters and setters
|
|
11848
13477
|
var $oneOfFields;
|
|
11849
13478
|
|
|
@@ -11869,6 +13498,28 @@
|
|
|
11869
13498
|
set: $util.oneOfSetter($oneOfFields)
|
|
11870
13499
|
});
|
|
11871
13500
|
|
|
13501
|
+
/**
|
|
13502
|
+
* AudienceList _rowCount.
|
|
13503
|
+
* @member {"rowCount"|undefined} _rowCount
|
|
13504
|
+
* @memberof google.analytics.data.v1alpha.AudienceList
|
|
13505
|
+
* @instance
|
|
13506
|
+
*/
|
|
13507
|
+
Object.defineProperty(AudienceList.prototype, "_rowCount", {
|
|
13508
|
+
get: $util.oneOfGetter($oneOfFields = ["rowCount"]),
|
|
13509
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
13510
|
+
});
|
|
13511
|
+
|
|
13512
|
+
/**
|
|
13513
|
+
* AudienceList _errorMessage.
|
|
13514
|
+
* @member {"errorMessage"|undefined} _errorMessage
|
|
13515
|
+
* @memberof google.analytics.data.v1alpha.AudienceList
|
|
13516
|
+
* @instance
|
|
13517
|
+
*/
|
|
13518
|
+
Object.defineProperty(AudienceList.prototype, "_errorMessage", {
|
|
13519
|
+
get: $util.oneOfGetter($oneOfFields = ["errorMessage"]),
|
|
13520
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
13521
|
+
});
|
|
13522
|
+
|
|
11872
13523
|
/**
|
|
11873
13524
|
* Creates a new AudienceList instance using the specified properties.
|
|
11874
13525
|
* @function create
|
|
@@ -11906,6 +13557,12 @@
|
|
|
11906
13557
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
|
|
11907
13558
|
if (message.beginCreatingTime != null && Object.hasOwnProperty.call(message, "beginCreatingTime"))
|
|
11908
13559
|
$root.google.protobuf.Timestamp.encode(message.beginCreatingTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
13560
|
+
if (message.creationQuotaTokensCharged != null && Object.hasOwnProperty.call(message, "creationQuotaTokensCharged"))
|
|
13561
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.creationQuotaTokensCharged);
|
|
13562
|
+
if (message.rowCount != null && Object.hasOwnProperty.call(message, "rowCount"))
|
|
13563
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.rowCount);
|
|
13564
|
+
if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
|
|
13565
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.errorMessage);
|
|
11909
13566
|
return writer;
|
|
11910
13567
|
};
|
|
11911
13568
|
|
|
@@ -11966,6 +13623,18 @@
|
|
|
11966
13623
|
message.beginCreatingTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
11967
13624
|
break;
|
|
11968
13625
|
}
|
|
13626
|
+
case 7: {
|
|
13627
|
+
message.creationQuotaTokensCharged = reader.int32();
|
|
13628
|
+
break;
|
|
13629
|
+
}
|
|
13630
|
+
case 8: {
|
|
13631
|
+
message.rowCount = reader.int32();
|
|
13632
|
+
break;
|
|
13633
|
+
}
|
|
13634
|
+
case 9: {
|
|
13635
|
+
message.errorMessage = reader.string();
|
|
13636
|
+
break;
|
|
13637
|
+
}
|
|
11969
13638
|
default:
|
|
11970
13639
|
reader.skipType(tag & 7);
|
|
11971
13640
|
break;
|
|
@@ -12040,6 +13709,19 @@
|
|
|
12040
13709
|
return "beginCreatingTime." + error;
|
|
12041
13710
|
}
|
|
12042
13711
|
}
|
|
13712
|
+
if (message.creationQuotaTokensCharged != null && message.hasOwnProperty("creationQuotaTokensCharged"))
|
|
13713
|
+
if (!$util.isInteger(message.creationQuotaTokensCharged))
|
|
13714
|
+
return "creationQuotaTokensCharged: integer expected";
|
|
13715
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
13716
|
+
properties._rowCount = 1;
|
|
13717
|
+
if (!$util.isInteger(message.rowCount))
|
|
13718
|
+
return "rowCount: integer expected";
|
|
13719
|
+
}
|
|
13720
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) {
|
|
13721
|
+
properties._errorMessage = 1;
|
|
13722
|
+
if (!$util.isString(message.errorMessage))
|
|
13723
|
+
return "errorMessage: string expected";
|
|
13724
|
+
}
|
|
12043
13725
|
return null;
|
|
12044
13726
|
};
|
|
12045
13727
|
|
|
@@ -12100,6 +13782,12 @@
|
|
|
12100
13782
|
throw TypeError(".google.analytics.data.v1alpha.AudienceList.beginCreatingTime: object expected");
|
|
12101
13783
|
message.beginCreatingTime = $root.google.protobuf.Timestamp.fromObject(object.beginCreatingTime);
|
|
12102
13784
|
}
|
|
13785
|
+
if (object.creationQuotaTokensCharged != null)
|
|
13786
|
+
message.creationQuotaTokensCharged = object.creationQuotaTokensCharged | 0;
|
|
13787
|
+
if (object.rowCount != null)
|
|
13788
|
+
message.rowCount = object.rowCount | 0;
|
|
13789
|
+
if (object.errorMessage != null)
|
|
13790
|
+
message.errorMessage = String(object.errorMessage);
|
|
12103
13791
|
return message;
|
|
12104
13792
|
};
|
|
12105
13793
|
|
|
@@ -12122,6 +13810,7 @@
|
|
|
12122
13810
|
object.name = "";
|
|
12123
13811
|
object.audience = "";
|
|
12124
13812
|
object.audienceDisplayName = "";
|
|
13813
|
+
object.creationQuotaTokensCharged = 0;
|
|
12125
13814
|
}
|
|
12126
13815
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
12127
13816
|
object.name = message.name;
|
|
@@ -12144,6 +13833,18 @@
|
|
|
12144
13833
|
if (options.oneofs)
|
|
12145
13834
|
object._beginCreatingTime = "beginCreatingTime";
|
|
12146
13835
|
}
|
|
13836
|
+
if (message.creationQuotaTokensCharged != null && message.hasOwnProperty("creationQuotaTokensCharged"))
|
|
13837
|
+
object.creationQuotaTokensCharged = message.creationQuotaTokensCharged;
|
|
13838
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
13839
|
+
object.rowCount = message.rowCount;
|
|
13840
|
+
if (options.oneofs)
|
|
13841
|
+
object._rowCount = "rowCount";
|
|
13842
|
+
}
|
|
13843
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) {
|
|
13844
|
+
object.errorMessage = message.errorMessage;
|
|
13845
|
+
if (options.oneofs)
|
|
13846
|
+
object._errorMessage = "errorMessage";
|
|
13847
|
+
}
|
|
12147
13848
|
return object;
|
|
12148
13849
|
};
|
|
12149
13850
|
|
|
@@ -12619,55 +14320,643 @@
|
|
|
12619
14320
|
};
|
|
12620
14321
|
|
|
12621
14322
|
/**
|
|
12622
|
-
* Converts this QueryAudienceListRequest to JSON.
|
|
14323
|
+
* Converts this QueryAudienceListRequest to JSON.
|
|
14324
|
+
* @function toJSON
|
|
14325
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListRequest
|
|
14326
|
+
* @instance
|
|
14327
|
+
* @returns {Object.<string,*>} JSON object
|
|
14328
|
+
*/
|
|
14329
|
+
QueryAudienceListRequest.prototype.toJSON = function toJSON() {
|
|
14330
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14331
|
+
};
|
|
14332
|
+
|
|
14333
|
+
/**
|
|
14334
|
+
* Gets the default type url for QueryAudienceListRequest
|
|
14335
|
+
* @function getTypeUrl
|
|
14336
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListRequest
|
|
14337
|
+
* @static
|
|
14338
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14339
|
+
* @returns {string} The default type url
|
|
14340
|
+
*/
|
|
14341
|
+
QueryAudienceListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14342
|
+
if (typeUrlPrefix === undefined) {
|
|
14343
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
14344
|
+
}
|
|
14345
|
+
return typeUrlPrefix + "/google.analytics.data.v1alpha.QueryAudienceListRequest";
|
|
14346
|
+
};
|
|
14347
|
+
|
|
14348
|
+
return QueryAudienceListRequest;
|
|
14349
|
+
})();
|
|
14350
|
+
|
|
14351
|
+
v1alpha.QueryAudienceListResponse = (function() {
|
|
14352
|
+
|
|
14353
|
+
/**
|
|
14354
|
+
* Properties of a QueryAudienceListResponse.
|
|
14355
|
+
* @memberof google.analytics.data.v1alpha
|
|
14356
|
+
* @interface IQueryAudienceListResponse
|
|
14357
|
+
* @property {google.analytics.data.v1alpha.IAudienceList|null} [audienceList] QueryAudienceListResponse audienceList
|
|
14358
|
+
* @property {Array.<google.analytics.data.v1alpha.IAudienceRow>|null} [audienceRows] QueryAudienceListResponse audienceRows
|
|
14359
|
+
* @property {number|null} [rowCount] QueryAudienceListResponse rowCount
|
|
14360
|
+
*/
|
|
14361
|
+
|
|
14362
|
+
/**
|
|
14363
|
+
* Constructs a new QueryAudienceListResponse.
|
|
14364
|
+
* @memberof google.analytics.data.v1alpha
|
|
14365
|
+
* @classdesc Represents a QueryAudienceListResponse.
|
|
14366
|
+
* @implements IQueryAudienceListResponse
|
|
14367
|
+
* @constructor
|
|
14368
|
+
* @param {google.analytics.data.v1alpha.IQueryAudienceListResponse=} [properties] Properties to set
|
|
14369
|
+
*/
|
|
14370
|
+
function QueryAudienceListResponse(properties) {
|
|
14371
|
+
this.audienceRows = [];
|
|
14372
|
+
if (properties)
|
|
14373
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14374
|
+
if (properties[keys[i]] != null)
|
|
14375
|
+
this[keys[i]] = properties[keys[i]];
|
|
14376
|
+
}
|
|
14377
|
+
|
|
14378
|
+
/**
|
|
14379
|
+
* QueryAudienceListResponse audienceList.
|
|
14380
|
+
* @member {google.analytics.data.v1alpha.IAudienceList|null|undefined} audienceList
|
|
14381
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14382
|
+
* @instance
|
|
14383
|
+
*/
|
|
14384
|
+
QueryAudienceListResponse.prototype.audienceList = null;
|
|
14385
|
+
|
|
14386
|
+
/**
|
|
14387
|
+
* QueryAudienceListResponse audienceRows.
|
|
14388
|
+
* @member {Array.<google.analytics.data.v1alpha.IAudienceRow>} audienceRows
|
|
14389
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14390
|
+
* @instance
|
|
14391
|
+
*/
|
|
14392
|
+
QueryAudienceListResponse.prototype.audienceRows = $util.emptyArray;
|
|
14393
|
+
|
|
14394
|
+
/**
|
|
14395
|
+
* QueryAudienceListResponse rowCount.
|
|
14396
|
+
* @member {number|null|undefined} rowCount
|
|
14397
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14398
|
+
* @instance
|
|
14399
|
+
*/
|
|
14400
|
+
QueryAudienceListResponse.prototype.rowCount = null;
|
|
14401
|
+
|
|
14402
|
+
// OneOf field names bound to virtual getters and setters
|
|
14403
|
+
var $oneOfFields;
|
|
14404
|
+
|
|
14405
|
+
/**
|
|
14406
|
+
* QueryAudienceListResponse _audienceList.
|
|
14407
|
+
* @member {"audienceList"|undefined} _audienceList
|
|
14408
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14409
|
+
* @instance
|
|
14410
|
+
*/
|
|
14411
|
+
Object.defineProperty(QueryAudienceListResponse.prototype, "_audienceList", {
|
|
14412
|
+
get: $util.oneOfGetter($oneOfFields = ["audienceList"]),
|
|
14413
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14414
|
+
});
|
|
14415
|
+
|
|
14416
|
+
/**
|
|
14417
|
+
* QueryAudienceListResponse _rowCount.
|
|
14418
|
+
* @member {"rowCount"|undefined} _rowCount
|
|
14419
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14420
|
+
* @instance
|
|
14421
|
+
*/
|
|
14422
|
+
Object.defineProperty(QueryAudienceListResponse.prototype, "_rowCount", {
|
|
14423
|
+
get: $util.oneOfGetter($oneOfFields = ["rowCount"]),
|
|
14424
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14425
|
+
});
|
|
14426
|
+
|
|
14427
|
+
/**
|
|
14428
|
+
* Creates a new QueryAudienceListResponse instance using the specified properties.
|
|
14429
|
+
* @function create
|
|
14430
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14431
|
+
* @static
|
|
14432
|
+
* @param {google.analytics.data.v1alpha.IQueryAudienceListResponse=} [properties] Properties to set
|
|
14433
|
+
* @returns {google.analytics.data.v1alpha.QueryAudienceListResponse} QueryAudienceListResponse instance
|
|
14434
|
+
*/
|
|
14435
|
+
QueryAudienceListResponse.create = function create(properties) {
|
|
14436
|
+
return new QueryAudienceListResponse(properties);
|
|
14437
|
+
};
|
|
14438
|
+
|
|
14439
|
+
/**
|
|
14440
|
+
* Encodes the specified QueryAudienceListResponse message. Does not implicitly {@link google.analytics.data.v1alpha.QueryAudienceListResponse.verify|verify} messages.
|
|
14441
|
+
* @function encode
|
|
14442
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14443
|
+
* @static
|
|
14444
|
+
* @param {google.analytics.data.v1alpha.IQueryAudienceListResponse} message QueryAudienceListResponse message or plain object to encode
|
|
14445
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14446
|
+
* @returns {$protobuf.Writer} Writer
|
|
14447
|
+
*/
|
|
14448
|
+
QueryAudienceListResponse.encode = function encode(message, writer) {
|
|
14449
|
+
if (!writer)
|
|
14450
|
+
writer = $Writer.create();
|
|
14451
|
+
if (message.audienceList != null && Object.hasOwnProperty.call(message, "audienceList"))
|
|
14452
|
+
$root.google.analytics.data.v1alpha.AudienceList.encode(message.audienceList, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
14453
|
+
if (message.audienceRows != null && message.audienceRows.length)
|
|
14454
|
+
for (var i = 0; i < message.audienceRows.length; ++i)
|
|
14455
|
+
$root.google.analytics.data.v1alpha.AudienceRow.encode(message.audienceRows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
14456
|
+
if (message.rowCount != null && Object.hasOwnProperty.call(message, "rowCount"))
|
|
14457
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.rowCount);
|
|
14458
|
+
return writer;
|
|
14459
|
+
};
|
|
14460
|
+
|
|
14461
|
+
/**
|
|
14462
|
+
* Encodes the specified QueryAudienceListResponse message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.QueryAudienceListResponse.verify|verify} messages.
|
|
14463
|
+
* @function encodeDelimited
|
|
14464
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14465
|
+
* @static
|
|
14466
|
+
* @param {google.analytics.data.v1alpha.IQueryAudienceListResponse} message QueryAudienceListResponse message or plain object to encode
|
|
14467
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14468
|
+
* @returns {$protobuf.Writer} Writer
|
|
14469
|
+
*/
|
|
14470
|
+
QueryAudienceListResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14471
|
+
return this.encode(message, writer).ldelim();
|
|
14472
|
+
};
|
|
14473
|
+
|
|
14474
|
+
/**
|
|
14475
|
+
* Decodes a QueryAudienceListResponse message from the specified reader or buffer.
|
|
14476
|
+
* @function decode
|
|
14477
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14478
|
+
* @static
|
|
14479
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14480
|
+
* @param {number} [length] Message length if known beforehand
|
|
14481
|
+
* @returns {google.analytics.data.v1alpha.QueryAudienceListResponse} QueryAudienceListResponse
|
|
14482
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14483
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14484
|
+
*/
|
|
14485
|
+
QueryAudienceListResponse.decode = function decode(reader, length) {
|
|
14486
|
+
if (!(reader instanceof $Reader))
|
|
14487
|
+
reader = $Reader.create(reader);
|
|
14488
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1alpha.QueryAudienceListResponse();
|
|
14489
|
+
while (reader.pos < end) {
|
|
14490
|
+
var tag = reader.uint32();
|
|
14491
|
+
switch (tag >>> 3) {
|
|
14492
|
+
case 1: {
|
|
14493
|
+
message.audienceList = $root.google.analytics.data.v1alpha.AudienceList.decode(reader, reader.uint32());
|
|
14494
|
+
break;
|
|
14495
|
+
}
|
|
14496
|
+
case 2: {
|
|
14497
|
+
if (!(message.audienceRows && message.audienceRows.length))
|
|
14498
|
+
message.audienceRows = [];
|
|
14499
|
+
message.audienceRows.push($root.google.analytics.data.v1alpha.AudienceRow.decode(reader, reader.uint32()));
|
|
14500
|
+
break;
|
|
14501
|
+
}
|
|
14502
|
+
case 3: {
|
|
14503
|
+
message.rowCount = reader.int32();
|
|
14504
|
+
break;
|
|
14505
|
+
}
|
|
14506
|
+
default:
|
|
14507
|
+
reader.skipType(tag & 7);
|
|
14508
|
+
break;
|
|
14509
|
+
}
|
|
14510
|
+
}
|
|
14511
|
+
return message;
|
|
14512
|
+
};
|
|
14513
|
+
|
|
14514
|
+
/**
|
|
14515
|
+
* Decodes a QueryAudienceListResponse message from the specified reader or buffer, length delimited.
|
|
14516
|
+
* @function decodeDelimited
|
|
14517
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14518
|
+
* @static
|
|
14519
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14520
|
+
* @returns {google.analytics.data.v1alpha.QueryAudienceListResponse} QueryAudienceListResponse
|
|
14521
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14522
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14523
|
+
*/
|
|
14524
|
+
QueryAudienceListResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
14525
|
+
if (!(reader instanceof $Reader))
|
|
14526
|
+
reader = new $Reader(reader);
|
|
14527
|
+
return this.decode(reader, reader.uint32());
|
|
14528
|
+
};
|
|
14529
|
+
|
|
14530
|
+
/**
|
|
14531
|
+
* Verifies a QueryAudienceListResponse message.
|
|
14532
|
+
* @function verify
|
|
14533
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14534
|
+
* @static
|
|
14535
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14536
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14537
|
+
*/
|
|
14538
|
+
QueryAudienceListResponse.verify = function verify(message) {
|
|
14539
|
+
if (typeof message !== "object" || message === null)
|
|
14540
|
+
return "object expected";
|
|
14541
|
+
var properties = {};
|
|
14542
|
+
if (message.audienceList != null && message.hasOwnProperty("audienceList")) {
|
|
14543
|
+
properties._audienceList = 1;
|
|
14544
|
+
{
|
|
14545
|
+
var error = $root.google.analytics.data.v1alpha.AudienceList.verify(message.audienceList);
|
|
14546
|
+
if (error)
|
|
14547
|
+
return "audienceList." + error;
|
|
14548
|
+
}
|
|
14549
|
+
}
|
|
14550
|
+
if (message.audienceRows != null && message.hasOwnProperty("audienceRows")) {
|
|
14551
|
+
if (!Array.isArray(message.audienceRows))
|
|
14552
|
+
return "audienceRows: array expected";
|
|
14553
|
+
for (var i = 0; i < message.audienceRows.length; ++i) {
|
|
14554
|
+
var error = $root.google.analytics.data.v1alpha.AudienceRow.verify(message.audienceRows[i]);
|
|
14555
|
+
if (error)
|
|
14556
|
+
return "audienceRows." + error;
|
|
14557
|
+
}
|
|
14558
|
+
}
|
|
14559
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
14560
|
+
properties._rowCount = 1;
|
|
14561
|
+
if (!$util.isInteger(message.rowCount))
|
|
14562
|
+
return "rowCount: integer expected";
|
|
14563
|
+
}
|
|
14564
|
+
return null;
|
|
14565
|
+
};
|
|
14566
|
+
|
|
14567
|
+
/**
|
|
14568
|
+
* Creates a QueryAudienceListResponse message from a plain object. Also converts values to their respective internal types.
|
|
14569
|
+
* @function fromObject
|
|
14570
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14571
|
+
* @static
|
|
14572
|
+
* @param {Object.<string,*>} object Plain object
|
|
14573
|
+
* @returns {google.analytics.data.v1alpha.QueryAudienceListResponse} QueryAudienceListResponse
|
|
14574
|
+
*/
|
|
14575
|
+
QueryAudienceListResponse.fromObject = function fromObject(object) {
|
|
14576
|
+
if (object instanceof $root.google.analytics.data.v1alpha.QueryAudienceListResponse)
|
|
14577
|
+
return object;
|
|
14578
|
+
var message = new $root.google.analytics.data.v1alpha.QueryAudienceListResponse();
|
|
14579
|
+
if (object.audienceList != null) {
|
|
14580
|
+
if (typeof object.audienceList !== "object")
|
|
14581
|
+
throw TypeError(".google.analytics.data.v1alpha.QueryAudienceListResponse.audienceList: object expected");
|
|
14582
|
+
message.audienceList = $root.google.analytics.data.v1alpha.AudienceList.fromObject(object.audienceList);
|
|
14583
|
+
}
|
|
14584
|
+
if (object.audienceRows) {
|
|
14585
|
+
if (!Array.isArray(object.audienceRows))
|
|
14586
|
+
throw TypeError(".google.analytics.data.v1alpha.QueryAudienceListResponse.audienceRows: array expected");
|
|
14587
|
+
message.audienceRows = [];
|
|
14588
|
+
for (var i = 0; i < object.audienceRows.length; ++i) {
|
|
14589
|
+
if (typeof object.audienceRows[i] !== "object")
|
|
14590
|
+
throw TypeError(".google.analytics.data.v1alpha.QueryAudienceListResponse.audienceRows: object expected");
|
|
14591
|
+
message.audienceRows[i] = $root.google.analytics.data.v1alpha.AudienceRow.fromObject(object.audienceRows[i]);
|
|
14592
|
+
}
|
|
14593
|
+
}
|
|
14594
|
+
if (object.rowCount != null)
|
|
14595
|
+
message.rowCount = object.rowCount | 0;
|
|
14596
|
+
return message;
|
|
14597
|
+
};
|
|
14598
|
+
|
|
14599
|
+
/**
|
|
14600
|
+
* Creates a plain object from a QueryAudienceListResponse message. Also converts values to other types if specified.
|
|
14601
|
+
* @function toObject
|
|
14602
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14603
|
+
* @static
|
|
14604
|
+
* @param {google.analytics.data.v1alpha.QueryAudienceListResponse} message QueryAudienceListResponse
|
|
14605
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14606
|
+
* @returns {Object.<string,*>} Plain object
|
|
14607
|
+
*/
|
|
14608
|
+
QueryAudienceListResponse.toObject = function toObject(message, options) {
|
|
14609
|
+
if (!options)
|
|
14610
|
+
options = {};
|
|
14611
|
+
var object = {};
|
|
14612
|
+
if (options.arrays || options.defaults)
|
|
14613
|
+
object.audienceRows = [];
|
|
14614
|
+
if (message.audienceList != null && message.hasOwnProperty("audienceList")) {
|
|
14615
|
+
object.audienceList = $root.google.analytics.data.v1alpha.AudienceList.toObject(message.audienceList, options);
|
|
14616
|
+
if (options.oneofs)
|
|
14617
|
+
object._audienceList = "audienceList";
|
|
14618
|
+
}
|
|
14619
|
+
if (message.audienceRows && message.audienceRows.length) {
|
|
14620
|
+
object.audienceRows = [];
|
|
14621
|
+
for (var j = 0; j < message.audienceRows.length; ++j)
|
|
14622
|
+
object.audienceRows[j] = $root.google.analytics.data.v1alpha.AudienceRow.toObject(message.audienceRows[j], options);
|
|
14623
|
+
}
|
|
14624
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
14625
|
+
object.rowCount = message.rowCount;
|
|
14626
|
+
if (options.oneofs)
|
|
14627
|
+
object._rowCount = "rowCount";
|
|
14628
|
+
}
|
|
14629
|
+
return object;
|
|
14630
|
+
};
|
|
14631
|
+
|
|
14632
|
+
/**
|
|
14633
|
+
* Converts this QueryAudienceListResponse to JSON.
|
|
14634
|
+
* @function toJSON
|
|
14635
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14636
|
+
* @instance
|
|
14637
|
+
* @returns {Object.<string,*>} JSON object
|
|
14638
|
+
*/
|
|
14639
|
+
QueryAudienceListResponse.prototype.toJSON = function toJSON() {
|
|
14640
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14641
|
+
};
|
|
14642
|
+
|
|
14643
|
+
/**
|
|
14644
|
+
* Gets the default type url for QueryAudienceListResponse
|
|
14645
|
+
* @function getTypeUrl
|
|
14646
|
+
* @memberof google.analytics.data.v1alpha.QueryAudienceListResponse
|
|
14647
|
+
* @static
|
|
14648
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14649
|
+
* @returns {string} The default type url
|
|
14650
|
+
*/
|
|
14651
|
+
QueryAudienceListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14652
|
+
if (typeUrlPrefix === undefined) {
|
|
14653
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
14654
|
+
}
|
|
14655
|
+
return typeUrlPrefix + "/google.analytics.data.v1alpha.QueryAudienceListResponse";
|
|
14656
|
+
};
|
|
14657
|
+
|
|
14658
|
+
return QueryAudienceListResponse;
|
|
14659
|
+
})();
|
|
14660
|
+
|
|
14661
|
+
v1alpha.SheetExportAudienceListRequest = (function() {
|
|
14662
|
+
|
|
14663
|
+
/**
|
|
14664
|
+
* Properties of a SheetExportAudienceListRequest.
|
|
14665
|
+
* @memberof google.analytics.data.v1alpha
|
|
14666
|
+
* @interface ISheetExportAudienceListRequest
|
|
14667
|
+
* @property {string|null} [name] SheetExportAudienceListRequest name
|
|
14668
|
+
* @property {number|Long|null} [offset] SheetExportAudienceListRequest offset
|
|
14669
|
+
* @property {number|Long|null} [limit] SheetExportAudienceListRequest limit
|
|
14670
|
+
*/
|
|
14671
|
+
|
|
14672
|
+
/**
|
|
14673
|
+
* Constructs a new SheetExportAudienceListRequest.
|
|
14674
|
+
* @memberof google.analytics.data.v1alpha
|
|
14675
|
+
* @classdesc Represents a SheetExportAudienceListRequest.
|
|
14676
|
+
* @implements ISheetExportAudienceListRequest
|
|
14677
|
+
* @constructor
|
|
14678
|
+
* @param {google.analytics.data.v1alpha.ISheetExportAudienceListRequest=} [properties] Properties to set
|
|
14679
|
+
*/
|
|
14680
|
+
function SheetExportAudienceListRequest(properties) {
|
|
14681
|
+
if (properties)
|
|
14682
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14683
|
+
if (properties[keys[i]] != null)
|
|
14684
|
+
this[keys[i]] = properties[keys[i]];
|
|
14685
|
+
}
|
|
14686
|
+
|
|
14687
|
+
/**
|
|
14688
|
+
* SheetExportAudienceListRequest name.
|
|
14689
|
+
* @member {string} name
|
|
14690
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
14691
|
+
* @instance
|
|
14692
|
+
*/
|
|
14693
|
+
SheetExportAudienceListRequest.prototype.name = "";
|
|
14694
|
+
|
|
14695
|
+
/**
|
|
14696
|
+
* SheetExportAudienceListRequest offset.
|
|
14697
|
+
* @member {number|Long} offset
|
|
14698
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
14699
|
+
* @instance
|
|
14700
|
+
*/
|
|
14701
|
+
SheetExportAudienceListRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
14702
|
+
|
|
14703
|
+
/**
|
|
14704
|
+
* SheetExportAudienceListRequest limit.
|
|
14705
|
+
* @member {number|Long} limit
|
|
14706
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
14707
|
+
* @instance
|
|
14708
|
+
*/
|
|
14709
|
+
SheetExportAudienceListRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
14710
|
+
|
|
14711
|
+
/**
|
|
14712
|
+
* Creates a new SheetExportAudienceListRequest instance using the specified properties.
|
|
14713
|
+
* @function create
|
|
14714
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
14715
|
+
* @static
|
|
14716
|
+
* @param {google.analytics.data.v1alpha.ISheetExportAudienceListRequest=} [properties] Properties to set
|
|
14717
|
+
* @returns {google.analytics.data.v1alpha.SheetExportAudienceListRequest} SheetExportAudienceListRequest instance
|
|
14718
|
+
*/
|
|
14719
|
+
SheetExportAudienceListRequest.create = function create(properties) {
|
|
14720
|
+
return new SheetExportAudienceListRequest(properties);
|
|
14721
|
+
};
|
|
14722
|
+
|
|
14723
|
+
/**
|
|
14724
|
+
* Encodes the specified SheetExportAudienceListRequest message. Does not implicitly {@link google.analytics.data.v1alpha.SheetExportAudienceListRequest.verify|verify} messages.
|
|
14725
|
+
* @function encode
|
|
14726
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
14727
|
+
* @static
|
|
14728
|
+
* @param {google.analytics.data.v1alpha.ISheetExportAudienceListRequest} message SheetExportAudienceListRequest message or plain object to encode
|
|
14729
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14730
|
+
* @returns {$protobuf.Writer} Writer
|
|
14731
|
+
*/
|
|
14732
|
+
SheetExportAudienceListRequest.encode = function encode(message, writer) {
|
|
14733
|
+
if (!writer)
|
|
14734
|
+
writer = $Writer.create();
|
|
14735
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
14736
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
14737
|
+
if (message.offset != null && Object.hasOwnProperty.call(message, "offset"))
|
|
14738
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.offset);
|
|
14739
|
+
if (message.limit != null && Object.hasOwnProperty.call(message, "limit"))
|
|
14740
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.limit);
|
|
14741
|
+
return writer;
|
|
14742
|
+
};
|
|
14743
|
+
|
|
14744
|
+
/**
|
|
14745
|
+
* Encodes the specified SheetExportAudienceListRequest message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.SheetExportAudienceListRequest.verify|verify} messages.
|
|
14746
|
+
* @function encodeDelimited
|
|
14747
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
14748
|
+
* @static
|
|
14749
|
+
* @param {google.analytics.data.v1alpha.ISheetExportAudienceListRequest} message SheetExportAudienceListRequest message or plain object to encode
|
|
14750
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14751
|
+
* @returns {$protobuf.Writer} Writer
|
|
14752
|
+
*/
|
|
14753
|
+
SheetExportAudienceListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14754
|
+
return this.encode(message, writer).ldelim();
|
|
14755
|
+
};
|
|
14756
|
+
|
|
14757
|
+
/**
|
|
14758
|
+
* Decodes a SheetExportAudienceListRequest message from the specified reader or buffer.
|
|
14759
|
+
* @function decode
|
|
14760
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
14761
|
+
* @static
|
|
14762
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14763
|
+
* @param {number} [length] Message length if known beforehand
|
|
14764
|
+
* @returns {google.analytics.data.v1alpha.SheetExportAudienceListRequest} SheetExportAudienceListRequest
|
|
14765
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14766
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14767
|
+
*/
|
|
14768
|
+
SheetExportAudienceListRequest.decode = function decode(reader, length) {
|
|
14769
|
+
if (!(reader instanceof $Reader))
|
|
14770
|
+
reader = $Reader.create(reader);
|
|
14771
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1alpha.SheetExportAudienceListRequest();
|
|
14772
|
+
while (reader.pos < end) {
|
|
14773
|
+
var tag = reader.uint32();
|
|
14774
|
+
switch (tag >>> 3) {
|
|
14775
|
+
case 1: {
|
|
14776
|
+
message.name = reader.string();
|
|
14777
|
+
break;
|
|
14778
|
+
}
|
|
14779
|
+
case 2: {
|
|
14780
|
+
message.offset = reader.int64();
|
|
14781
|
+
break;
|
|
14782
|
+
}
|
|
14783
|
+
case 3: {
|
|
14784
|
+
message.limit = reader.int64();
|
|
14785
|
+
break;
|
|
14786
|
+
}
|
|
14787
|
+
default:
|
|
14788
|
+
reader.skipType(tag & 7);
|
|
14789
|
+
break;
|
|
14790
|
+
}
|
|
14791
|
+
}
|
|
14792
|
+
return message;
|
|
14793
|
+
};
|
|
14794
|
+
|
|
14795
|
+
/**
|
|
14796
|
+
* Decodes a SheetExportAudienceListRequest message from the specified reader or buffer, length delimited.
|
|
14797
|
+
* @function decodeDelimited
|
|
14798
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
14799
|
+
* @static
|
|
14800
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14801
|
+
* @returns {google.analytics.data.v1alpha.SheetExportAudienceListRequest} SheetExportAudienceListRequest
|
|
14802
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14803
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14804
|
+
*/
|
|
14805
|
+
SheetExportAudienceListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
14806
|
+
if (!(reader instanceof $Reader))
|
|
14807
|
+
reader = new $Reader(reader);
|
|
14808
|
+
return this.decode(reader, reader.uint32());
|
|
14809
|
+
};
|
|
14810
|
+
|
|
14811
|
+
/**
|
|
14812
|
+
* Verifies a SheetExportAudienceListRequest message.
|
|
14813
|
+
* @function verify
|
|
14814
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
14815
|
+
* @static
|
|
14816
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14817
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14818
|
+
*/
|
|
14819
|
+
SheetExportAudienceListRequest.verify = function verify(message) {
|
|
14820
|
+
if (typeof message !== "object" || message === null)
|
|
14821
|
+
return "object expected";
|
|
14822
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
14823
|
+
if (!$util.isString(message.name))
|
|
14824
|
+
return "name: string expected";
|
|
14825
|
+
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
14826
|
+
if (!$util.isInteger(message.offset) && !(message.offset && $util.isInteger(message.offset.low) && $util.isInteger(message.offset.high)))
|
|
14827
|
+
return "offset: integer|Long expected";
|
|
14828
|
+
if (message.limit != null && message.hasOwnProperty("limit"))
|
|
14829
|
+
if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high)))
|
|
14830
|
+
return "limit: integer|Long expected";
|
|
14831
|
+
return null;
|
|
14832
|
+
};
|
|
14833
|
+
|
|
14834
|
+
/**
|
|
14835
|
+
* Creates a SheetExportAudienceListRequest message from a plain object. Also converts values to their respective internal types.
|
|
14836
|
+
* @function fromObject
|
|
14837
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
14838
|
+
* @static
|
|
14839
|
+
* @param {Object.<string,*>} object Plain object
|
|
14840
|
+
* @returns {google.analytics.data.v1alpha.SheetExportAudienceListRequest} SheetExportAudienceListRequest
|
|
14841
|
+
*/
|
|
14842
|
+
SheetExportAudienceListRequest.fromObject = function fromObject(object) {
|
|
14843
|
+
if (object instanceof $root.google.analytics.data.v1alpha.SheetExportAudienceListRequest)
|
|
14844
|
+
return object;
|
|
14845
|
+
var message = new $root.google.analytics.data.v1alpha.SheetExportAudienceListRequest();
|
|
14846
|
+
if (object.name != null)
|
|
14847
|
+
message.name = String(object.name);
|
|
14848
|
+
if (object.offset != null)
|
|
14849
|
+
if ($util.Long)
|
|
14850
|
+
(message.offset = $util.Long.fromValue(object.offset)).unsigned = false;
|
|
14851
|
+
else if (typeof object.offset === "string")
|
|
14852
|
+
message.offset = parseInt(object.offset, 10);
|
|
14853
|
+
else if (typeof object.offset === "number")
|
|
14854
|
+
message.offset = object.offset;
|
|
14855
|
+
else if (typeof object.offset === "object")
|
|
14856
|
+
message.offset = new $util.LongBits(object.offset.low >>> 0, object.offset.high >>> 0).toNumber();
|
|
14857
|
+
if (object.limit != null)
|
|
14858
|
+
if ($util.Long)
|
|
14859
|
+
(message.limit = $util.Long.fromValue(object.limit)).unsigned = false;
|
|
14860
|
+
else if (typeof object.limit === "string")
|
|
14861
|
+
message.limit = parseInt(object.limit, 10);
|
|
14862
|
+
else if (typeof object.limit === "number")
|
|
14863
|
+
message.limit = object.limit;
|
|
14864
|
+
else if (typeof object.limit === "object")
|
|
14865
|
+
message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber();
|
|
14866
|
+
return message;
|
|
14867
|
+
};
|
|
14868
|
+
|
|
14869
|
+
/**
|
|
14870
|
+
* Creates a plain object from a SheetExportAudienceListRequest message. Also converts values to other types if specified.
|
|
14871
|
+
* @function toObject
|
|
14872
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
14873
|
+
* @static
|
|
14874
|
+
* @param {google.analytics.data.v1alpha.SheetExportAudienceListRequest} message SheetExportAudienceListRequest
|
|
14875
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14876
|
+
* @returns {Object.<string,*>} Plain object
|
|
14877
|
+
*/
|
|
14878
|
+
SheetExportAudienceListRequest.toObject = function toObject(message, options) {
|
|
14879
|
+
if (!options)
|
|
14880
|
+
options = {};
|
|
14881
|
+
var object = {};
|
|
14882
|
+
if (options.defaults) {
|
|
14883
|
+
object.name = "";
|
|
14884
|
+
if ($util.Long) {
|
|
14885
|
+
var long = new $util.Long(0, 0, false);
|
|
14886
|
+
object.offset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
14887
|
+
} else
|
|
14888
|
+
object.offset = options.longs === String ? "0" : 0;
|
|
14889
|
+
if ($util.Long) {
|
|
14890
|
+
var long = new $util.Long(0, 0, false);
|
|
14891
|
+
object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
14892
|
+
} else
|
|
14893
|
+
object.limit = options.longs === String ? "0" : 0;
|
|
14894
|
+
}
|
|
14895
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
14896
|
+
object.name = message.name;
|
|
14897
|
+
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
14898
|
+
if (typeof message.offset === "number")
|
|
14899
|
+
object.offset = options.longs === String ? String(message.offset) : message.offset;
|
|
14900
|
+
else
|
|
14901
|
+
object.offset = options.longs === String ? $util.Long.prototype.toString.call(message.offset) : options.longs === Number ? new $util.LongBits(message.offset.low >>> 0, message.offset.high >>> 0).toNumber() : message.offset;
|
|
14902
|
+
if (message.limit != null && message.hasOwnProperty("limit"))
|
|
14903
|
+
if (typeof message.limit === "number")
|
|
14904
|
+
object.limit = options.longs === String ? String(message.limit) : message.limit;
|
|
14905
|
+
else
|
|
14906
|
+
object.limit = options.longs === String ? $util.Long.prototype.toString.call(message.limit) : options.longs === Number ? new $util.LongBits(message.limit.low >>> 0, message.limit.high >>> 0).toNumber() : message.limit;
|
|
14907
|
+
return object;
|
|
14908
|
+
};
|
|
14909
|
+
|
|
14910
|
+
/**
|
|
14911
|
+
* Converts this SheetExportAudienceListRequest to JSON.
|
|
12623
14912
|
* @function toJSON
|
|
12624
|
-
* @memberof google.analytics.data.v1alpha.
|
|
14913
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
12625
14914
|
* @instance
|
|
12626
14915
|
* @returns {Object.<string,*>} JSON object
|
|
12627
14916
|
*/
|
|
12628
|
-
|
|
14917
|
+
SheetExportAudienceListRequest.prototype.toJSON = function toJSON() {
|
|
12629
14918
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12630
14919
|
};
|
|
12631
14920
|
|
|
12632
14921
|
/**
|
|
12633
|
-
* Gets the default type url for
|
|
14922
|
+
* Gets the default type url for SheetExportAudienceListRequest
|
|
12634
14923
|
* @function getTypeUrl
|
|
12635
|
-
* @memberof google.analytics.data.v1alpha.
|
|
14924
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListRequest
|
|
12636
14925
|
* @static
|
|
12637
14926
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
12638
14927
|
* @returns {string} The default type url
|
|
12639
14928
|
*/
|
|
12640
|
-
|
|
14929
|
+
SheetExportAudienceListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
12641
14930
|
if (typeUrlPrefix === undefined) {
|
|
12642
14931
|
typeUrlPrefix = "type.googleapis.com";
|
|
12643
14932
|
}
|
|
12644
|
-
return typeUrlPrefix + "/google.analytics.data.v1alpha.
|
|
14933
|
+
return typeUrlPrefix + "/google.analytics.data.v1alpha.SheetExportAudienceListRequest";
|
|
12645
14934
|
};
|
|
12646
14935
|
|
|
12647
|
-
return
|
|
14936
|
+
return SheetExportAudienceListRequest;
|
|
12648
14937
|
})();
|
|
12649
14938
|
|
|
12650
|
-
v1alpha.
|
|
14939
|
+
v1alpha.SheetExportAudienceListResponse = (function() {
|
|
12651
14940
|
|
|
12652
14941
|
/**
|
|
12653
|
-
* Properties of a
|
|
14942
|
+
* Properties of a SheetExportAudienceListResponse.
|
|
12654
14943
|
* @memberof google.analytics.data.v1alpha
|
|
12655
|
-
* @interface
|
|
12656
|
-
* @property {
|
|
12657
|
-
* @property {
|
|
12658
|
-
* @property {number|null} [rowCount]
|
|
14944
|
+
* @interface ISheetExportAudienceListResponse
|
|
14945
|
+
* @property {string|null} [spreadsheetUri] SheetExportAudienceListResponse spreadsheetUri
|
|
14946
|
+
* @property {string|null} [spreadsheetId] SheetExportAudienceListResponse spreadsheetId
|
|
14947
|
+
* @property {number|null} [rowCount] SheetExportAudienceListResponse rowCount
|
|
14948
|
+
* @property {google.analytics.data.v1alpha.IAudienceList|null} [audienceList] SheetExportAudienceListResponse audienceList
|
|
12659
14949
|
*/
|
|
12660
14950
|
|
|
12661
14951
|
/**
|
|
12662
|
-
* Constructs a new
|
|
14952
|
+
* Constructs a new SheetExportAudienceListResponse.
|
|
12663
14953
|
* @memberof google.analytics.data.v1alpha
|
|
12664
|
-
* @classdesc Represents a
|
|
12665
|
-
* @implements
|
|
14954
|
+
* @classdesc Represents a SheetExportAudienceListResponse.
|
|
14955
|
+
* @implements ISheetExportAudienceListResponse
|
|
12666
14956
|
* @constructor
|
|
12667
|
-
* @param {google.analytics.data.v1alpha.
|
|
14957
|
+
* @param {google.analytics.data.v1alpha.ISheetExportAudienceListResponse=} [properties] Properties to set
|
|
12668
14958
|
*/
|
|
12669
|
-
function
|
|
12670
|
-
this.audienceRows = [];
|
|
14959
|
+
function SheetExportAudienceListResponse(properties) {
|
|
12671
14960
|
if (properties)
|
|
12672
14961
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12673
14962
|
if (properties[keys[i]] != null)
|
|
@@ -12675,133 +14964,166 @@
|
|
|
12675
14964
|
}
|
|
12676
14965
|
|
|
12677
14966
|
/**
|
|
12678
|
-
*
|
|
12679
|
-
* @member {
|
|
12680
|
-
* @memberof google.analytics.data.v1alpha.
|
|
14967
|
+
* SheetExportAudienceListResponse spreadsheetUri.
|
|
14968
|
+
* @member {string|null|undefined} spreadsheetUri
|
|
14969
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12681
14970
|
* @instance
|
|
12682
14971
|
*/
|
|
12683
|
-
|
|
14972
|
+
SheetExportAudienceListResponse.prototype.spreadsheetUri = null;
|
|
12684
14973
|
|
|
12685
14974
|
/**
|
|
12686
|
-
*
|
|
12687
|
-
* @member {
|
|
12688
|
-
* @memberof google.analytics.data.v1alpha.
|
|
14975
|
+
* SheetExportAudienceListResponse spreadsheetId.
|
|
14976
|
+
* @member {string|null|undefined} spreadsheetId
|
|
14977
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12689
14978
|
* @instance
|
|
12690
14979
|
*/
|
|
12691
|
-
|
|
14980
|
+
SheetExportAudienceListResponse.prototype.spreadsheetId = null;
|
|
12692
14981
|
|
|
12693
14982
|
/**
|
|
12694
|
-
*
|
|
14983
|
+
* SheetExportAudienceListResponse rowCount.
|
|
12695
14984
|
* @member {number|null|undefined} rowCount
|
|
12696
|
-
* @memberof google.analytics.data.v1alpha.
|
|
14985
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12697
14986
|
* @instance
|
|
12698
14987
|
*/
|
|
12699
|
-
|
|
14988
|
+
SheetExportAudienceListResponse.prototype.rowCount = null;
|
|
14989
|
+
|
|
14990
|
+
/**
|
|
14991
|
+
* SheetExportAudienceListResponse audienceList.
|
|
14992
|
+
* @member {google.analytics.data.v1alpha.IAudienceList|null|undefined} audienceList
|
|
14993
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
14994
|
+
* @instance
|
|
14995
|
+
*/
|
|
14996
|
+
SheetExportAudienceListResponse.prototype.audienceList = null;
|
|
12700
14997
|
|
|
12701
14998
|
// OneOf field names bound to virtual getters and setters
|
|
12702
14999
|
var $oneOfFields;
|
|
12703
15000
|
|
|
12704
15001
|
/**
|
|
12705
|
-
*
|
|
12706
|
-
* @member {"
|
|
12707
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15002
|
+
* SheetExportAudienceListResponse _spreadsheetUri.
|
|
15003
|
+
* @member {"spreadsheetUri"|undefined} _spreadsheetUri
|
|
15004
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12708
15005
|
* @instance
|
|
12709
15006
|
*/
|
|
12710
|
-
Object.defineProperty(
|
|
12711
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
15007
|
+
Object.defineProperty(SheetExportAudienceListResponse.prototype, "_spreadsheetUri", {
|
|
15008
|
+
get: $util.oneOfGetter($oneOfFields = ["spreadsheetUri"]),
|
|
12712
15009
|
set: $util.oneOfSetter($oneOfFields)
|
|
12713
15010
|
});
|
|
12714
15011
|
|
|
12715
15012
|
/**
|
|
12716
|
-
*
|
|
15013
|
+
* SheetExportAudienceListResponse _spreadsheetId.
|
|
15014
|
+
* @member {"spreadsheetId"|undefined} _spreadsheetId
|
|
15015
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
15016
|
+
* @instance
|
|
15017
|
+
*/
|
|
15018
|
+
Object.defineProperty(SheetExportAudienceListResponse.prototype, "_spreadsheetId", {
|
|
15019
|
+
get: $util.oneOfGetter($oneOfFields = ["spreadsheetId"]),
|
|
15020
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
15021
|
+
});
|
|
15022
|
+
|
|
15023
|
+
/**
|
|
15024
|
+
* SheetExportAudienceListResponse _rowCount.
|
|
12717
15025
|
* @member {"rowCount"|undefined} _rowCount
|
|
12718
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15026
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12719
15027
|
* @instance
|
|
12720
15028
|
*/
|
|
12721
|
-
Object.defineProperty(
|
|
15029
|
+
Object.defineProperty(SheetExportAudienceListResponse.prototype, "_rowCount", {
|
|
12722
15030
|
get: $util.oneOfGetter($oneOfFields = ["rowCount"]),
|
|
12723
15031
|
set: $util.oneOfSetter($oneOfFields)
|
|
12724
15032
|
});
|
|
12725
15033
|
|
|
12726
15034
|
/**
|
|
12727
|
-
*
|
|
15035
|
+
* SheetExportAudienceListResponse _audienceList.
|
|
15036
|
+
* @member {"audienceList"|undefined} _audienceList
|
|
15037
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
15038
|
+
* @instance
|
|
15039
|
+
*/
|
|
15040
|
+
Object.defineProperty(SheetExportAudienceListResponse.prototype, "_audienceList", {
|
|
15041
|
+
get: $util.oneOfGetter($oneOfFields = ["audienceList"]),
|
|
15042
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
15043
|
+
});
|
|
15044
|
+
|
|
15045
|
+
/**
|
|
15046
|
+
* Creates a new SheetExportAudienceListResponse instance using the specified properties.
|
|
12728
15047
|
* @function create
|
|
12729
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15048
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12730
15049
|
* @static
|
|
12731
|
-
* @param {google.analytics.data.v1alpha.
|
|
12732
|
-
* @returns {google.analytics.data.v1alpha.
|
|
15050
|
+
* @param {google.analytics.data.v1alpha.ISheetExportAudienceListResponse=} [properties] Properties to set
|
|
15051
|
+
* @returns {google.analytics.data.v1alpha.SheetExportAudienceListResponse} SheetExportAudienceListResponse instance
|
|
12733
15052
|
*/
|
|
12734
|
-
|
|
12735
|
-
return new
|
|
15053
|
+
SheetExportAudienceListResponse.create = function create(properties) {
|
|
15054
|
+
return new SheetExportAudienceListResponse(properties);
|
|
12736
15055
|
};
|
|
12737
15056
|
|
|
12738
15057
|
/**
|
|
12739
|
-
* Encodes the specified
|
|
15058
|
+
* Encodes the specified SheetExportAudienceListResponse message. Does not implicitly {@link google.analytics.data.v1alpha.SheetExportAudienceListResponse.verify|verify} messages.
|
|
12740
15059
|
* @function encode
|
|
12741
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15060
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12742
15061
|
* @static
|
|
12743
|
-
* @param {google.analytics.data.v1alpha.
|
|
15062
|
+
* @param {google.analytics.data.v1alpha.ISheetExportAudienceListResponse} message SheetExportAudienceListResponse message or plain object to encode
|
|
12744
15063
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12745
15064
|
* @returns {$protobuf.Writer} Writer
|
|
12746
15065
|
*/
|
|
12747
|
-
|
|
15066
|
+
SheetExportAudienceListResponse.encode = function encode(message, writer) {
|
|
12748
15067
|
if (!writer)
|
|
12749
15068
|
writer = $Writer.create();
|
|
12750
|
-
if (message.
|
|
12751
|
-
|
|
12752
|
-
if (message.
|
|
12753
|
-
|
|
12754
|
-
$root.google.analytics.data.v1alpha.AudienceRow.encode(message.audienceRows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
15069
|
+
if (message.spreadsheetUri != null && Object.hasOwnProperty.call(message, "spreadsheetUri"))
|
|
15070
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.spreadsheetUri);
|
|
15071
|
+
if (message.spreadsheetId != null && Object.hasOwnProperty.call(message, "spreadsheetId"))
|
|
15072
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.spreadsheetId);
|
|
12755
15073
|
if (message.rowCount != null && Object.hasOwnProperty.call(message, "rowCount"))
|
|
12756
15074
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.rowCount);
|
|
15075
|
+
if (message.audienceList != null && Object.hasOwnProperty.call(message, "audienceList"))
|
|
15076
|
+
$root.google.analytics.data.v1alpha.AudienceList.encode(message.audienceList, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
12757
15077
|
return writer;
|
|
12758
15078
|
};
|
|
12759
15079
|
|
|
12760
15080
|
/**
|
|
12761
|
-
* Encodes the specified
|
|
15081
|
+
* Encodes the specified SheetExportAudienceListResponse message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.SheetExportAudienceListResponse.verify|verify} messages.
|
|
12762
15082
|
* @function encodeDelimited
|
|
12763
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15083
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12764
15084
|
* @static
|
|
12765
|
-
* @param {google.analytics.data.v1alpha.
|
|
15085
|
+
* @param {google.analytics.data.v1alpha.ISheetExportAudienceListResponse} message SheetExportAudienceListResponse message or plain object to encode
|
|
12766
15086
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12767
15087
|
* @returns {$protobuf.Writer} Writer
|
|
12768
15088
|
*/
|
|
12769
|
-
|
|
15089
|
+
SheetExportAudienceListResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12770
15090
|
return this.encode(message, writer).ldelim();
|
|
12771
15091
|
};
|
|
12772
15092
|
|
|
12773
15093
|
/**
|
|
12774
|
-
* Decodes a
|
|
15094
|
+
* Decodes a SheetExportAudienceListResponse message from the specified reader or buffer.
|
|
12775
15095
|
* @function decode
|
|
12776
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15096
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12777
15097
|
* @static
|
|
12778
15098
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12779
15099
|
* @param {number} [length] Message length if known beforehand
|
|
12780
|
-
* @returns {google.analytics.data.v1alpha.
|
|
15100
|
+
* @returns {google.analytics.data.v1alpha.SheetExportAudienceListResponse} SheetExportAudienceListResponse
|
|
12781
15101
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12782
15102
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12783
15103
|
*/
|
|
12784
|
-
|
|
15104
|
+
SheetExportAudienceListResponse.decode = function decode(reader, length) {
|
|
12785
15105
|
if (!(reader instanceof $Reader))
|
|
12786
15106
|
reader = $Reader.create(reader);
|
|
12787
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1alpha.
|
|
15107
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1alpha.SheetExportAudienceListResponse();
|
|
12788
15108
|
while (reader.pos < end) {
|
|
12789
15109
|
var tag = reader.uint32();
|
|
12790
15110
|
switch (tag >>> 3) {
|
|
12791
15111
|
case 1: {
|
|
12792
|
-
message.
|
|
15112
|
+
message.spreadsheetUri = reader.string();
|
|
12793
15113
|
break;
|
|
12794
15114
|
}
|
|
12795
15115
|
case 2: {
|
|
12796
|
-
|
|
12797
|
-
message.audienceRows = [];
|
|
12798
|
-
message.audienceRows.push($root.google.analytics.data.v1alpha.AudienceRow.decode(reader, reader.uint32()));
|
|
15116
|
+
message.spreadsheetId = reader.string();
|
|
12799
15117
|
break;
|
|
12800
15118
|
}
|
|
12801
15119
|
case 3: {
|
|
12802
15120
|
message.rowCount = reader.int32();
|
|
12803
15121
|
break;
|
|
12804
15122
|
}
|
|
15123
|
+
case 4: {
|
|
15124
|
+
message.audienceList = $root.google.analytics.data.v1alpha.AudienceList.decode(reader, reader.uint32());
|
|
15125
|
+
break;
|
|
15126
|
+
}
|
|
12805
15127
|
default:
|
|
12806
15128
|
reader.skipType(tag & 7);
|
|
12807
15129
|
break;
|
|
@@ -12811,33 +15133,48 @@
|
|
|
12811
15133
|
};
|
|
12812
15134
|
|
|
12813
15135
|
/**
|
|
12814
|
-
* Decodes a
|
|
15136
|
+
* Decodes a SheetExportAudienceListResponse message from the specified reader or buffer, length delimited.
|
|
12815
15137
|
* @function decodeDelimited
|
|
12816
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15138
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12817
15139
|
* @static
|
|
12818
15140
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12819
|
-
* @returns {google.analytics.data.v1alpha.
|
|
15141
|
+
* @returns {google.analytics.data.v1alpha.SheetExportAudienceListResponse} SheetExportAudienceListResponse
|
|
12820
15142
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12821
15143
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12822
15144
|
*/
|
|
12823
|
-
|
|
15145
|
+
SheetExportAudienceListResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
12824
15146
|
if (!(reader instanceof $Reader))
|
|
12825
15147
|
reader = new $Reader(reader);
|
|
12826
15148
|
return this.decode(reader, reader.uint32());
|
|
12827
15149
|
};
|
|
12828
15150
|
|
|
12829
15151
|
/**
|
|
12830
|
-
* Verifies a
|
|
15152
|
+
* Verifies a SheetExportAudienceListResponse message.
|
|
12831
15153
|
* @function verify
|
|
12832
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15154
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12833
15155
|
* @static
|
|
12834
15156
|
* @param {Object.<string,*>} message Plain object to verify
|
|
12835
15157
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12836
15158
|
*/
|
|
12837
|
-
|
|
15159
|
+
SheetExportAudienceListResponse.verify = function verify(message) {
|
|
12838
15160
|
if (typeof message !== "object" || message === null)
|
|
12839
15161
|
return "object expected";
|
|
12840
15162
|
var properties = {};
|
|
15163
|
+
if (message.spreadsheetUri != null && message.hasOwnProperty("spreadsheetUri")) {
|
|
15164
|
+
properties._spreadsheetUri = 1;
|
|
15165
|
+
if (!$util.isString(message.spreadsheetUri))
|
|
15166
|
+
return "spreadsheetUri: string expected";
|
|
15167
|
+
}
|
|
15168
|
+
if (message.spreadsheetId != null && message.hasOwnProperty("spreadsheetId")) {
|
|
15169
|
+
properties._spreadsheetId = 1;
|
|
15170
|
+
if (!$util.isString(message.spreadsheetId))
|
|
15171
|
+
return "spreadsheetId: string expected";
|
|
15172
|
+
}
|
|
15173
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
15174
|
+
properties._rowCount = 1;
|
|
15175
|
+
if (!$util.isInteger(message.rowCount))
|
|
15176
|
+
return "rowCount: integer expected";
|
|
15177
|
+
}
|
|
12841
15178
|
if (message.audienceList != null && message.hasOwnProperty("audienceList")) {
|
|
12842
15179
|
properties._audienceList = 1;
|
|
12843
15180
|
{
|
|
@@ -12846,115 +15183,98 @@
|
|
|
12846
15183
|
return "audienceList." + error;
|
|
12847
15184
|
}
|
|
12848
15185
|
}
|
|
12849
|
-
if (message.audienceRows != null && message.hasOwnProperty("audienceRows")) {
|
|
12850
|
-
if (!Array.isArray(message.audienceRows))
|
|
12851
|
-
return "audienceRows: array expected";
|
|
12852
|
-
for (var i = 0; i < message.audienceRows.length; ++i) {
|
|
12853
|
-
var error = $root.google.analytics.data.v1alpha.AudienceRow.verify(message.audienceRows[i]);
|
|
12854
|
-
if (error)
|
|
12855
|
-
return "audienceRows." + error;
|
|
12856
|
-
}
|
|
12857
|
-
}
|
|
12858
|
-
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
12859
|
-
properties._rowCount = 1;
|
|
12860
|
-
if (!$util.isInteger(message.rowCount))
|
|
12861
|
-
return "rowCount: integer expected";
|
|
12862
|
-
}
|
|
12863
15186
|
return null;
|
|
12864
15187
|
};
|
|
12865
15188
|
|
|
12866
15189
|
/**
|
|
12867
|
-
* Creates a
|
|
15190
|
+
* Creates a SheetExportAudienceListResponse message from a plain object. Also converts values to their respective internal types.
|
|
12868
15191
|
* @function fromObject
|
|
12869
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15192
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12870
15193
|
* @static
|
|
12871
15194
|
* @param {Object.<string,*>} object Plain object
|
|
12872
|
-
* @returns {google.analytics.data.v1alpha.
|
|
15195
|
+
* @returns {google.analytics.data.v1alpha.SheetExportAudienceListResponse} SheetExportAudienceListResponse
|
|
12873
15196
|
*/
|
|
12874
|
-
|
|
12875
|
-
if (object instanceof $root.google.analytics.data.v1alpha.
|
|
15197
|
+
SheetExportAudienceListResponse.fromObject = function fromObject(object) {
|
|
15198
|
+
if (object instanceof $root.google.analytics.data.v1alpha.SheetExportAudienceListResponse)
|
|
12876
15199
|
return object;
|
|
12877
|
-
var message = new $root.google.analytics.data.v1alpha.
|
|
15200
|
+
var message = new $root.google.analytics.data.v1alpha.SheetExportAudienceListResponse();
|
|
15201
|
+
if (object.spreadsheetUri != null)
|
|
15202
|
+
message.spreadsheetUri = String(object.spreadsheetUri);
|
|
15203
|
+
if (object.spreadsheetId != null)
|
|
15204
|
+
message.spreadsheetId = String(object.spreadsheetId);
|
|
15205
|
+
if (object.rowCount != null)
|
|
15206
|
+
message.rowCount = object.rowCount | 0;
|
|
12878
15207
|
if (object.audienceList != null) {
|
|
12879
15208
|
if (typeof object.audienceList !== "object")
|
|
12880
|
-
throw TypeError(".google.analytics.data.v1alpha.
|
|
15209
|
+
throw TypeError(".google.analytics.data.v1alpha.SheetExportAudienceListResponse.audienceList: object expected");
|
|
12881
15210
|
message.audienceList = $root.google.analytics.data.v1alpha.AudienceList.fromObject(object.audienceList);
|
|
12882
15211
|
}
|
|
12883
|
-
if (object.audienceRows) {
|
|
12884
|
-
if (!Array.isArray(object.audienceRows))
|
|
12885
|
-
throw TypeError(".google.analytics.data.v1alpha.QueryAudienceListResponse.audienceRows: array expected");
|
|
12886
|
-
message.audienceRows = [];
|
|
12887
|
-
for (var i = 0; i < object.audienceRows.length; ++i) {
|
|
12888
|
-
if (typeof object.audienceRows[i] !== "object")
|
|
12889
|
-
throw TypeError(".google.analytics.data.v1alpha.QueryAudienceListResponse.audienceRows: object expected");
|
|
12890
|
-
message.audienceRows[i] = $root.google.analytics.data.v1alpha.AudienceRow.fromObject(object.audienceRows[i]);
|
|
12891
|
-
}
|
|
12892
|
-
}
|
|
12893
|
-
if (object.rowCount != null)
|
|
12894
|
-
message.rowCount = object.rowCount | 0;
|
|
12895
15212
|
return message;
|
|
12896
15213
|
};
|
|
12897
15214
|
|
|
12898
15215
|
/**
|
|
12899
|
-
* Creates a plain object from a
|
|
15216
|
+
* Creates a plain object from a SheetExportAudienceListResponse message. Also converts values to other types if specified.
|
|
12900
15217
|
* @function toObject
|
|
12901
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15218
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12902
15219
|
* @static
|
|
12903
|
-
* @param {google.analytics.data.v1alpha.
|
|
15220
|
+
* @param {google.analytics.data.v1alpha.SheetExportAudienceListResponse} message SheetExportAudienceListResponse
|
|
12904
15221
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12905
15222
|
* @returns {Object.<string,*>} Plain object
|
|
12906
15223
|
*/
|
|
12907
|
-
|
|
15224
|
+
SheetExportAudienceListResponse.toObject = function toObject(message, options) {
|
|
12908
15225
|
if (!options)
|
|
12909
15226
|
options = {};
|
|
12910
15227
|
var object = {};
|
|
12911
|
-
if (
|
|
12912
|
-
object.
|
|
12913
|
-
if (message.audienceList != null && message.hasOwnProperty("audienceList")) {
|
|
12914
|
-
object.audienceList = $root.google.analytics.data.v1alpha.AudienceList.toObject(message.audienceList, options);
|
|
15228
|
+
if (message.spreadsheetUri != null && message.hasOwnProperty("spreadsheetUri")) {
|
|
15229
|
+
object.spreadsheetUri = message.spreadsheetUri;
|
|
12915
15230
|
if (options.oneofs)
|
|
12916
|
-
object.
|
|
15231
|
+
object._spreadsheetUri = "spreadsheetUri";
|
|
12917
15232
|
}
|
|
12918
|
-
if (message.
|
|
12919
|
-
object.
|
|
12920
|
-
|
|
12921
|
-
object.
|
|
15233
|
+
if (message.spreadsheetId != null && message.hasOwnProperty("spreadsheetId")) {
|
|
15234
|
+
object.spreadsheetId = message.spreadsheetId;
|
|
15235
|
+
if (options.oneofs)
|
|
15236
|
+
object._spreadsheetId = "spreadsheetId";
|
|
12922
15237
|
}
|
|
12923
15238
|
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
12924
15239
|
object.rowCount = message.rowCount;
|
|
12925
15240
|
if (options.oneofs)
|
|
12926
15241
|
object._rowCount = "rowCount";
|
|
12927
15242
|
}
|
|
15243
|
+
if (message.audienceList != null && message.hasOwnProperty("audienceList")) {
|
|
15244
|
+
object.audienceList = $root.google.analytics.data.v1alpha.AudienceList.toObject(message.audienceList, options);
|
|
15245
|
+
if (options.oneofs)
|
|
15246
|
+
object._audienceList = "audienceList";
|
|
15247
|
+
}
|
|
12928
15248
|
return object;
|
|
12929
15249
|
};
|
|
12930
15250
|
|
|
12931
15251
|
/**
|
|
12932
|
-
* Converts this
|
|
15252
|
+
* Converts this SheetExportAudienceListResponse to JSON.
|
|
12933
15253
|
* @function toJSON
|
|
12934
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15254
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12935
15255
|
* @instance
|
|
12936
15256
|
* @returns {Object.<string,*>} JSON object
|
|
12937
15257
|
*/
|
|
12938
|
-
|
|
15258
|
+
SheetExportAudienceListResponse.prototype.toJSON = function toJSON() {
|
|
12939
15259
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12940
15260
|
};
|
|
12941
15261
|
|
|
12942
15262
|
/**
|
|
12943
|
-
* Gets the default type url for
|
|
15263
|
+
* Gets the default type url for SheetExportAudienceListResponse
|
|
12944
15264
|
* @function getTypeUrl
|
|
12945
|
-
* @memberof google.analytics.data.v1alpha.
|
|
15265
|
+
* @memberof google.analytics.data.v1alpha.SheetExportAudienceListResponse
|
|
12946
15266
|
* @static
|
|
12947
15267
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
12948
15268
|
* @returns {string} The default type url
|
|
12949
15269
|
*/
|
|
12950
|
-
|
|
15270
|
+
SheetExportAudienceListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
12951
15271
|
if (typeUrlPrefix === undefined) {
|
|
12952
15272
|
typeUrlPrefix = "type.googleapis.com";
|
|
12953
15273
|
}
|
|
12954
|
-
return typeUrlPrefix + "/google.analytics.data.v1alpha.
|
|
15274
|
+
return typeUrlPrefix + "/google.analytics.data.v1alpha.SheetExportAudienceListResponse";
|
|
12955
15275
|
};
|
|
12956
15276
|
|
|
12957
|
-
return
|
|
15277
|
+
return SheetExportAudienceListResponse;
|
|
12958
15278
|
})();
|
|
12959
15279
|
|
|
12960
15280
|
v1alpha.AudienceRow = (function() {
|
|
@@ -49500,6 +51820,7 @@
|
|
|
49500
51820
|
* @property {string|null} [docTagPrefix] Publishing docTagPrefix
|
|
49501
51821
|
* @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
|
|
49502
51822
|
* @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
|
|
51823
|
+
* @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri
|
|
49503
51824
|
*/
|
|
49504
51825
|
|
|
49505
51826
|
/**
|
|
@@ -49592,6 +51913,14 @@
|
|
|
49592
51913
|
*/
|
|
49593
51914
|
Publishing.prototype.librarySettings = $util.emptyArray;
|
|
49594
51915
|
|
|
51916
|
+
/**
|
|
51917
|
+
* Publishing protoReferenceDocumentationUri.
|
|
51918
|
+
* @member {string} protoReferenceDocumentationUri
|
|
51919
|
+
* @memberof google.api.Publishing
|
|
51920
|
+
* @instance
|
|
51921
|
+
*/
|
|
51922
|
+
Publishing.prototype.protoReferenceDocumentationUri = "";
|
|
51923
|
+
|
|
49595
51924
|
/**
|
|
49596
51925
|
* Creates a new Publishing instance using the specified properties.
|
|
49597
51926
|
* @function create
|
|
@@ -49637,6 +51966,8 @@
|
|
|
49637
51966
|
if (message.librarySettings != null && message.librarySettings.length)
|
|
49638
51967
|
for (var i = 0; i < message.librarySettings.length; ++i)
|
|
49639
51968
|
$root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
|
|
51969
|
+
if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
|
|
51970
|
+
writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri);
|
|
49640
51971
|
return writer;
|
|
49641
51972
|
};
|
|
49642
51973
|
|
|
@@ -49713,6 +52044,10 @@
|
|
|
49713
52044
|
message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
|
|
49714
52045
|
break;
|
|
49715
52046
|
}
|
|
52047
|
+
case 110: {
|
|
52048
|
+
message.protoReferenceDocumentationUri = reader.string();
|
|
52049
|
+
break;
|
|
52050
|
+
}
|
|
49716
52051
|
default:
|
|
49717
52052
|
reader.skipType(tag & 7);
|
|
49718
52053
|
break;
|
|
@@ -49788,6 +52123,9 @@
|
|
|
49788
52123
|
case 2:
|
|
49789
52124
|
case 3:
|
|
49790
52125
|
case 4:
|
|
52126
|
+
case 5:
|
|
52127
|
+
case 6:
|
|
52128
|
+
case 7:
|
|
49791
52129
|
break;
|
|
49792
52130
|
}
|
|
49793
52131
|
if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
|
|
@@ -49799,6 +52137,9 @@
|
|
|
49799
52137
|
return "librarySettings." + error;
|
|
49800
52138
|
}
|
|
49801
52139
|
}
|
|
52140
|
+
if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
|
|
52141
|
+
if (!$util.isString(message.protoReferenceDocumentationUri))
|
|
52142
|
+
return "protoReferenceDocumentationUri: string expected";
|
|
49802
52143
|
return null;
|
|
49803
52144
|
};
|
|
49804
52145
|
|
|
@@ -49868,6 +52209,18 @@
|
|
|
49868
52209
|
case 4:
|
|
49869
52210
|
message.organization = 4;
|
|
49870
52211
|
break;
|
|
52212
|
+
case "SHOPPING":
|
|
52213
|
+
case 5:
|
|
52214
|
+
message.organization = 5;
|
|
52215
|
+
break;
|
|
52216
|
+
case "GEO":
|
|
52217
|
+
case 6:
|
|
52218
|
+
message.organization = 6;
|
|
52219
|
+
break;
|
|
52220
|
+
case "GENERATIVE_AI":
|
|
52221
|
+
case 7:
|
|
52222
|
+
message.organization = 7;
|
|
52223
|
+
break;
|
|
49871
52224
|
}
|
|
49872
52225
|
if (object.librarySettings) {
|
|
49873
52226
|
if (!Array.isArray(object.librarySettings))
|
|
@@ -49879,6 +52232,8 @@
|
|
|
49879
52232
|
message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
|
|
49880
52233
|
}
|
|
49881
52234
|
}
|
|
52235
|
+
if (object.protoReferenceDocumentationUri != null)
|
|
52236
|
+
message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
|
|
49882
52237
|
return message;
|
|
49883
52238
|
};
|
|
49884
52239
|
|
|
@@ -49907,6 +52262,7 @@
|
|
|
49907
52262
|
object.githubLabel = "";
|
|
49908
52263
|
object.docTagPrefix = "";
|
|
49909
52264
|
object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
|
|
52265
|
+
object.protoReferenceDocumentationUri = "";
|
|
49910
52266
|
}
|
|
49911
52267
|
if (message.methodSettings && message.methodSettings.length) {
|
|
49912
52268
|
object.methodSettings = [];
|
|
@@ -49935,6 +52291,8 @@
|
|
|
49935
52291
|
for (var j = 0; j < message.librarySettings.length; ++j)
|
|
49936
52292
|
object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
|
|
49937
52293
|
}
|
|
52294
|
+
if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
|
|
52295
|
+
object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
|
|
49938
52296
|
return object;
|
|
49939
52297
|
};
|
|
49940
52298
|
|
|
@@ -51097,6 +53455,11 @@
|
|
|
51097
53455
|
* @memberof google.api
|
|
51098
53456
|
* @interface IDotnetSettings
|
|
51099
53457
|
* @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
|
|
53458
|
+
* @property {Object.<string,string>|null} [renamedServices] DotnetSettings renamedServices
|
|
53459
|
+
* @property {Object.<string,string>|null} [renamedResources] DotnetSettings renamedResources
|
|
53460
|
+
* @property {Array.<string>|null} [ignoredResources] DotnetSettings ignoredResources
|
|
53461
|
+
* @property {Array.<string>|null} [forcedNamespaceAliases] DotnetSettings forcedNamespaceAliases
|
|
53462
|
+
* @property {Array.<string>|null} [handwrittenSignatures] DotnetSettings handwrittenSignatures
|
|
51100
53463
|
*/
|
|
51101
53464
|
|
|
51102
53465
|
/**
|
|
@@ -51108,6 +53471,11 @@
|
|
|
51108
53471
|
* @param {google.api.IDotnetSettings=} [properties] Properties to set
|
|
51109
53472
|
*/
|
|
51110
53473
|
function DotnetSettings(properties) {
|
|
53474
|
+
this.renamedServices = {};
|
|
53475
|
+
this.renamedResources = {};
|
|
53476
|
+
this.ignoredResources = [];
|
|
53477
|
+
this.forcedNamespaceAliases = [];
|
|
53478
|
+
this.handwrittenSignatures = [];
|
|
51111
53479
|
if (properties)
|
|
51112
53480
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
51113
53481
|
if (properties[keys[i]] != null)
|
|
@@ -51122,6 +53490,46 @@
|
|
|
51122
53490
|
*/
|
|
51123
53491
|
DotnetSettings.prototype.common = null;
|
|
51124
53492
|
|
|
53493
|
+
/**
|
|
53494
|
+
* DotnetSettings renamedServices.
|
|
53495
|
+
* @member {Object.<string,string>} renamedServices
|
|
53496
|
+
* @memberof google.api.DotnetSettings
|
|
53497
|
+
* @instance
|
|
53498
|
+
*/
|
|
53499
|
+
DotnetSettings.prototype.renamedServices = $util.emptyObject;
|
|
53500
|
+
|
|
53501
|
+
/**
|
|
53502
|
+
* DotnetSettings renamedResources.
|
|
53503
|
+
* @member {Object.<string,string>} renamedResources
|
|
53504
|
+
* @memberof google.api.DotnetSettings
|
|
53505
|
+
* @instance
|
|
53506
|
+
*/
|
|
53507
|
+
DotnetSettings.prototype.renamedResources = $util.emptyObject;
|
|
53508
|
+
|
|
53509
|
+
/**
|
|
53510
|
+
* DotnetSettings ignoredResources.
|
|
53511
|
+
* @member {Array.<string>} ignoredResources
|
|
53512
|
+
* @memberof google.api.DotnetSettings
|
|
53513
|
+
* @instance
|
|
53514
|
+
*/
|
|
53515
|
+
DotnetSettings.prototype.ignoredResources = $util.emptyArray;
|
|
53516
|
+
|
|
53517
|
+
/**
|
|
53518
|
+
* DotnetSettings forcedNamespaceAliases.
|
|
53519
|
+
* @member {Array.<string>} forcedNamespaceAliases
|
|
53520
|
+
* @memberof google.api.DotnetSettings
|
|
53521
|
+
* @instance
|
|
53522
|
+
*/
|
|
53523
|
+
DotnetSettings.prototype.forcedNamespaceAliases = $util.emptyArray;
|
|
53524
|
+
|
|
53525
|
+
/**
|
|
53526
|
+
* DotnetSettings handwrittenSignatures.
|
|
53527
|
+
* @member {Array.<string>} handwrittenSignatures
|
|
53528
|
+
* @memberof google.api.DotnetSettings
|
|
53529
|
+
* @instance
|
|
53530
|
+
*/
|
|
53531
|
+
DotnetSettings.prototype.handwrittenSignatures = $util.emptyArray;
|
|
53532
|
+
|
|
51125
53533
|
/**
|
|
51126
53534
|
* Creates a new DotnetSettings instance using the specified properties.
|
|
51127
53535
|
* @function create
|
|
@@ -51148,6 +53556,21 @@
|
|
|
51148
53556
|
writer = $Writer.create();
|
|
51149
53557
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
51150
53558
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
53559
|
+
if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
|
|
53560
|
+
for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
|
|
53561
|
+
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.renamedServices[keys[i]]).ldelim();
|
|
53562
|
+
if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources"))
|
|
53563
|
+
for (var keys = Object.keys(message.renamedResources), i = 0; i < keys.length; ++i)
|
|
53564
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedResources[keys[i]]).ldelim();
|
|
53565
|
+
if (message.ignoredResources != null && message.ignoredResources.length)
|
|
53566
|
+
for (var i = 0; i < message.ignoredResources.length; ++i)
|
|
53567
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.ignoredResources[i]);
|
|
53568
|
+
if (message.forcedNamespaceAliases != null && message.forcedNamespaceAliases.length)
|
|
53569
|
+
for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
|
|
53570
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.forcedNamespaceAliases[i]);
|
|
53571
|
+
if (message.handwrittenSignatures != null && message.handwrittenSignatures.length)
|
|
53572
|
+
for (var i = 0; i < message.handwrittenSignatures.length; ++i)
|
|
53573
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.handwrittenSignatures[i]);
|
|
51151
53574
|
return writer;
|
|
51152
53575
|
};
|
|
51153
53576
|
|
|
@@ -51178,7 +53601,7 @@
|
|
|
51178
53601
|
DotnetSettings.decode = function decode(reader, length) {
|
|
51179
53602
|
if (!(reader instanceof $Reader))
|
|
51180
53603
|
reader = $Reader.create(reader);
|
|
51181
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
|
|
53604
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(), key, value;
|
|
51182
53605
|
while (reader.pos < end) {
|
|
51183
53606
|
var tag = reader.uint32();
|
|
51184
53607
|
switch (tag >>> 3) {
|
|
@@ -51186,6 +53609,70 @@
|
|
|
51186
53609
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
51187
53610
|
break;
|
|
51188
53611
|
}
|
|
53612
|
+
case 2: {
|
|
53613
|
+
if (message.renamedServices === $util.emptyObject)
|
|
53614
|
+
message.renamedServices = {};
|
|
53615
|
+
var end2 = reader.uint32() + reader.pos;
|
|
53616
|
+
key = "";
|
|
53617
|
+
value = "";
|
|
53618
|
+
while (reader.pos < end2) {
|
|
53619
|
+
var tag2 = reader.uint32();
|
|
53620
|
+
switch (tag2 >>> 3) {
|
|
53621
|
+
case 1:
|
|
53622
|
+
key = reader.string();
|
|
53623
|
+
break;
|
|
53624
|
+
case 2:
|
|
53625
|
+
value = reader.string();
|
|
53626
|
+
break;
|
|
53627
|
+
default:
|
|
53628
|
+
reader.skipType(tag2 & 7);
|
|
53629
|
+
break;
|
|
53630
|
+
}
|
|
53631
|
+
}
|
|
53632
|
+
message.renamedServices[key] = value;
|
|
53633
|
+
break;
|
|
53634
|
+
}
|
|
53635
|
+
case 3: {
|
|
53636
|
+
if (message.renamedResources === $util.emptyObject)
|
|
53637
|
+
message.renamedResources = {};
|
|
53638
|
+
var end2 = reader.uint32() + reader.pos;
|
|
53639
|
+
key = "";
|
|
53640
|
+
value = "";
|
|
53641
|
+
while (reader.pos < end2) {
|
|
53642
|
+
var tag2 = reader.uint32();
|
|
53643
|
+
switch (tag2 >>> 3) {
|
|
53644
|
+
case 1:
|
|
53645
|
+
key = reader.string();
|
|
53646
|
+
break;
|
|
53647
|
+
case 2:
|
|
53648
|
+
value = reader.string();
|
|
53649
|
+
break;
|
|
53650
|
+
default:
|
|
53651
|
+
reader.skipType(tag2 & 7);
|
|
53652
|
+
break;
|
|
53653
|
+
}
|
|
53654
|
+
}
|
|
53655
|
+
message.renamedResources[key] = value;
|
|
53656
|
+
break;
|
|
53657
|
+
}
|
|
53658
|
+
case 4: {
|
|
53659
|
+
if (!(message.ignoredResources && message.ignoredResources.length))
|
|
53660
|
+
message.ignoredResources = [];
|
|
53661
|
+
message.ignoredResources.push(reader.string());
|
|
53662
|
+
break;
|
|
53663
|
+
}
|
|
53664
|
+
case 5: {
|
|
53665
|
+
if (!(message.forcedNamespaceAliases && message.forcedNamespaceAliases.length))
|
|
53666
|
+
message.forcedNamespaceAliases = [];
|
|
53667
|
+
message.forcedNamespaceAliases.push(reader.string());
|
|
53668
|
+
break;
|
|
53669
|
+
}
|
|
53670
|
+
case 6: {
|
|
53671
|
+
if (!(message.handwrittenSignatures && message.handwrittenSignatures.length))
|
|
53672
|
+
message.handwrittenSignatures = [];
|
|
53673
|
+
message.handwrittenSignatures.push(reader.string());
|
|
53674
|
+
break;
|
|
53675
|
+
}
|
|
51189
53676
|
default:
|
|
51190
53677
|
reader.skipType(tag & 7);
|
|
51191
53678
|
break;
|
|
@@ -51226,6 +53713,43 @@
|
|
|
51226
53713
|
if (error)
|
|
51227
53714
|
return "common." + error;
|
|
51228
53715
|
}
|
|
53716
|
+
if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
|
|
53717
|
+
if (!$util.isObject(message.renamedServices))
|
|
53718
|
+
return "renamedServices: object expected";
|
|
53719
|
+
var key = Object.keys(message.renamedServices);
|
|
53720
|
+
for (var i = 0; i < key.length; ++i)
|
|
53721
|
+
if (!$util.isString(message.renamedServices[key[i]]))
|
|
53722
|
+
return "renamedServices: string{k:string} expected";
|
|
53723
|
+
}
|
|
53724
|
+
if (message.renamedResources != null && message.hasOwnProperty("renamedResources")) {
|
|
53725
|
+
if (!$util.isObject(message.renamedResources))
|
|
53726
|
+
return "renamedResources: object expected";
|
|
53727
|
+
var key = Object.keys(message.renamedResources);
|
|
53728
|
+
for (var i = 0; i < key.length; ++i)
|
|
53729
|
+
if (!$util.isString(message.renamedResources[key[i]]))
|
|
53730
|
+
return "renamedResources: string{k:string} expected";
|
|
53731
|
+
}
|
|
53732
|
+
if (message.ignoredResources != null && message.hasOwnProperty("ignoredResources")) {
|
|
53733
|
+
if (!Array.isArray(message.ignoredResources))
|
|
53734
|
+
return "ignoredResources: array expected";
|
|
53735
|
+
for (var i = 0; i < message.ignoredResources.length; ++i)
|
|
53736
|
+
if (!$util.isString(message.ignoredResources[i]))
|
|
53737
|
+
return "ignoredResources: string[] expected";
|
|
53738
|
+
}
|
|
53739
|
+
if (message.forcedNamespaceAliases != null && message.hasOwnProperty("forcedNamespaceAliases")) {
|
|
53740
|
+
if (!Array.isArray(message.forcedNamespaceAliases))
|
|
53741
|
+
return "forcedNamespaceAliases: array expected";
|
|
53742
|
+
for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
|
|
53743
|
+
if (!$util.isString(message.forcedNamespaceAliases[i]))
|
|
53744
|
+
return "forcedNamespaceAliases: string[] expected";
|
|
53745
|
+
}
|
|
53746
|
+
if (message.handwrittenSignatures != null && message.hasOwnProperty("handwrittenSignatures")) {
|
|
53747
|
+
if (!Array.isArray(message.handwrittenSignatures))
|
|
53748
|
+
return "handwrittenSignatures: array expected";
|
|
53749
|
+
for (var i = 0; i < message.handwrittenSignatures.length; ++i)
|
|
53750
|
+
if (!$util.isString(message.handwrittenSignatures[i]))
|
|
53751
|
+
return "handwrittenSignatures: string[] expected";
|
|
53752
|
+
}
|
|
51229
53753
|
return null;
|
|
51230
53754
|
};
|
|
51231
53755
|
|
|
@@ -51246,6 +53770,41 @@
|
|
|
51246
53770
|
throw TypeError(".google.api.DotnetSettings.common: object expected");
|
|
51247
53771
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
51248
53772
|
}
|
|
53773
|
+
if (object.renamedServices) {
|
|
53774
|
+
if (typeof object.renamedServices !== "object")
|
|
53775
|
+
throw TypeError(".google.api.DotnetSettings.renamedServices: object expected");
|
|
53776
|
+
message.renamedServices = {};
|
|
53777
|
+
for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
|
|
53778
|
+
message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
|
|
53779
|
+
}
|
|
53780
|
+
if (object.renamedResources) {
|
|
53781
|
+
if (typeof object.renamedResources !== "object")
|
|
53782
|
+
throw TypeError(".google.api.DotnetSettings.renamedResources: object expected");
|
|
53783
|
+
message.renamedResources = {};
|
|
53784
|
+
for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++i)
|
|
53785
|
+
message.renamedResources[keys[i]] = String(object.renamedResources[keys[i]]);
|
|
53786
|
+
}
|
|
53787
|
+
if (object.ignoredResources) {
|
|
53788
|
+
if (!Array.isArray(object.ignoredResources))
|
|
53789
|
+
throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected");
|
|
53790
|
+
message.ignoredResources = [];
|
|
53791
|
+
for (var i = 0; i < object.ignoredResources.length; ++i)
|
|
53792
|
+
message.ignoredResources[i] = String(object.ignoredResources[i]);
|
|
53793
|
+
}
|
|
53794
|
+
if (object.forcedNamespaceAliases) {
|
|
53795
|
+
if (!Array.isArray(object.forcedNamespaceAliases))
|
|
53796
|
+
throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected");
|
|
53797
|
+
message.forcedNamespaceAliases = [];
|
|
53798
|
+
for (var i = 0; i < object.forcedNamespaceAliases.length; ++i)
|
|
53799
|
+
message.forcedNamespaceAliases[i] = String(object.forcedNamespaceAliases[i]);
|
|
53800
|
+
}
|
|
53801
|
+
if (object.handwrittenSignatures) {
|
|
53802
|
+
if (!Array.isArray(object.handwrittenSignatures))
|
|
53803
|
+
throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected");
|
|
53804
|
+
message.handwrittenSignatures = [];
|
|
53805
|
+
for (var i = 0; i < object.handwrittenSignatures.length; ++i)
|
|
53806
|
+
message.handwrittenSignatures[i] = String(object.handwrittenSignatures[i]);
|
|
53807
|
+
}
|
|
51249
53808
|
return message;
|
|
51250
53809
|
};
|
|
51251
53810
|
|
|
@@ -51262,10 +53821,45 @@
|
|
|
51262
53821
|
if (!options)
|
|
51263
53822
|
options = {};
|
|
51264
53823
|
var object = {};
|
|
53824
|
+
if (options.arrays || options.defaults) {
|
|
53825
|
+
object.ignoredResources = [];
|
|
53826
|
+
object.forcedNamespaceAliases = [];
|
|
53827
|
+
object.handwrittenSignatures = [];
|
|
53828
|
+
}
|
|
53829
|
+
if (options.objects || options.defaults) {
|
|
53830
|
+
object.renamedServices = {};
|
|
53831
|
+
object.renamedResources = {};
|
|
53832
|
+
}
|
|
51265
53833
|
if (options.defaults)
|
|
51266
53834
|
object.common = null;
|
|
51267
53835
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
51268
53836
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
53837
|
+
var keys2;
|
|
53838
|
+
if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
|
|
53839
|
+
object.renamedServices = {};
|
|
53840
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
53841
|
+
object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
|
|
53842
|
+
}
|
|
53843
|
+
if (message.renamedResources && (keys2 = Object.keys(message.renamedResources)).length) {
|
|
53844
|
+
object.renamedResources = {};
|
|
53845
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
53846
|
+
object.renamedResources[keys2[j]] = message.renamedResources[keys2[j]];
|
|
53847
|
+
}
|
|
53848
|
+
if (message.ignoredResources && message.ignoredResources.length) {
|
|
53849
|
+
object.ignoredResources = [];
|
|
53850
|
+
for (var j = 0; j < message.ignoredResources.length; ++j)
|
|
53851
|
+
object.ignoredResources[j] = message.ignoredResources[j];
|
|
53852
|
+
}
|
|
53853
|
+
if (message.forcedNamespaceAliases && message.forcedNamespaceAliases.length) {
|
|
53854
|
+
object.forcedNamespaceAliases = [];
|
|
53855
|
+
for (var j = 0; j < message.forcedNamespaceAliases.length; ++j)
|
|
53856
|
+
object.forcedNamespaceAliases[j] = message.forcedNamespaceAliases[j];
|
|
53857
|
+
}
|
|
53858
|
+
if (message.handwrittenSignatures && message.handwrittenSignatures.length) {
|
|
53859
|
+
object.handwrittenSignatures = [];
|
|
53860
|
+
for (var j = 0; j < message.handwrittenSignatures.length; ++j)
|
|
53861
|
+
object.handwrittenSignatures[j] = message.handwrittenSignatures[j];
|
|
53862
|
+
}
|
|
51269
53863
|
return object;
|
|
51270
53864
|
};
|
|
51271
53865
|
|
|
@@ -52243,6 +54837,9 @@
|
|
|
52243
54837
|
* @property {number} ADS=2 ADS value
|
|
52244
54838
|
* @property {number} PHOTOS=3 PHOTOS value
|
|
52245
54839
|
* @property {number} STREET_VIEW=4 STREET_VIEW value
|
|
54840
|
+
* @property {number} SHOPPING=5 SHOPPING value
|
|
54841
|
+
* @property {number} GEO=6 GEO value
|
|
54842
|
+
* @property {number} GENERATIVE_AI=7 GENERATIVE_AI value
|
|
52246
54843
|
*/
|
|
52247
54844
|
api.ClientLibraryOrganization = (function() {
|
|
52248
54845
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -52251,6 +54848,9 @@
|
|
|
52251
54848
|
values[valuesById[2] = "ADS"] = 2;
|
|
52252
54849
|
values[valuesById[3] = "PHOTOS"] = 3;
|
|
52253
54850
|
values[valuesById[4] = "STREET_VIEW"] = 4;
|
|
54851
|
+
values[valuesById[5] = "SHOPPING"] = 5;
|
|
54852
|
+
values[valuesById[6] = "GEO"] = 6;
|
|
54853
|
+
values[valuesById[7] = "GENERATIVE_AI"] = 7;
|
|
52254
54854
|
return values;
|
|
52255
54855
|
})();
|
|
52256
54856
|
|