@google-analytics/data 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +4 -0
- package/build/protos/google/analytics/data/v1alpha/analytics_data_api.proto +101 -16
- package/build/protos/google/analytics/data/v1beta/analytics_data_api.proto +341 -1
- package/build/protos/google/analytics/data/v1beta/data.proto +54 -7
- package/build/protos/protos.d.ts +1657 -130
- package/build/protos/protos.js +3751 -13
- package/build/protos/protos.json +483 -3
- package/build/src/index.js +1 -1
- package/build/src/v1alpha/alpha_analytics_data_client.d.ts +145 -18
- package/build/src/v1alpha/alpha_analytics_data_client.js +165 -10
- package/build/src/v1alpha/index.js +1 -1
- package/build/src/v1beta/beta_analytics_data_client.d.ts +451 -3
- package/build/src/v1beta/beta_analytics_data_client.js +447 -11
- package/build/src/v1beta/beta_analytics_data_client_config.json +32 -0
- package/build/src/v1beta/index.js +1 -1
- package/package.json +2 -2
package/build/protos/protos.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -11191,6 +11191,7 @@
|
|
|
11191
11191
|
* @property {Array.<google.analytics.data.v1alpha.IAudienceDimension>|null} [dimensions] RecurringAudienceList dimensions
|
|
11192
11192
|
* @property {number|null} [activeDaysRemaining] RecurringAudienceList activeDaysRemaining
|
|
11193
11193
|
* @property {Array.<string>|null} [audienceLists] RecurringAudienceList audienceLists
|
|
11194
|
+
* @property {google.analytics.data.v1alpha.IWebhookNotification|null} [webhookNotification] RecurringAudienceList webhookNotification
|
|
11194
11195
|
*/
|
|
11195
11196
|
|
|
11196
11197
|
/**
|
|
@@ -11258,6 +11259,14 @@
|
|
|
11258
11259
|
*/
|
|
11259
11260
|
RecurringAudienceList.prototype.audienceLists = $util.emptyArray;
|
|
11260
11261
|
|
|
11262
|
+
/**
|
|
11263
|
+
* RecurringAudienceList webhookNotification.
|
|
11264
|
+
* @member {google.analytics.data.v1alpha.IWebhookNotification|null|undefined} webhookNotification
|
|
11265
|
+
* @memberof google.analytics.data.v1alpha.RecurringAudienceList
|
|
11266
|
+
* @instance
|
|
11267
|
+
*/
|
|
11268
|
+
RecurringAudienceList.prototype.webhookNotification = null;
|
|
11269
|
+
|
|
11261
11270
|
// OneOf field names bound to virtual getters and setters
|
|
11262
11271
|
var $oneOfFields;
|
|
11263
11272
|
|
|
@@ -11272,6 +11281,17 @@
|
|
|
11272
11281
|
set: $util.oneOfSetter($oneOfFields)
|
|
11273
11282
|
});
|
|
11274
11283
|
|
|
11284
|
+
/**
|
|
11285
|
+
* RecurringAudienceList _webhookNotification.
|
|
11286
|
+
* @member {"webhookNotification"|undefined} _webhookNotification
|
|
11287
|
+
* @memberof google.analytics.data.v1alpha.RecurringAudienceList
|
|
11288
|
+
* @instance
|
|
11289
|
+
*/
|
|
11290
|
+
Object.defineProperty(RecurringAudienceList.prototype, "_webhookNotification", {
|
|
11291
|
+
get: $util.oneOfGetter($oneOfFields = ["webhookNotification"]),
|
|
11292
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
11293
|
+
});
|
|
11294
|
+
|
|
11275
11295
|
/**
|
|
11276
11296
|
* Creates a new RecurringAudienceList instance using the specified properties.
|
|
11277
11297
|
* @function create
|
|
@@ -11310,6 +11330,8 @@
|
|
|
11310
11330
|
if (message.audienceLists != null && message.audienceLists.length)
|
|
11311
11331
|
for (var i = 0; i < message.audienceLists.length; ++i)
|
|
11312
11332
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.audienceLists[i]);
|
|
11333
|
+
if (message.webhookNotification != null && Object.hasOwnProperty.call(message, "webhookNotification"))
|
|
11334
|
+
$root.google.analytics.data.v1alpha.WebhookNotification.encode(message.webhookNotification, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
11313
11335
|
return writer;
|
|
11314
11336
|
};
|
|
11315
11337
|
|
|
@@ -11372,6 +11394,10 @@
|
|
|
11372
11394
|
message.audienceLists.push(reader.string());
|
|
11373
11395
|
break;
|
|
11374
11396
|
}
|
|
11397
|
+
case 8: {
|
|
11398
|
+
message.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.decode(reader, reader.uint32());
|
|
11399
|
+
break;
|
|
11400
|
+
}
|
|
11375
11401
|
default:
|
|
11376
11402
|
reader.skipType(tag & 7);
|
|
11377
11403
|
break;
|
|
@@ -11438,6 +11464,14 @@
|
|
|
11438
11464
|
if (!$util.isString(message.audienceLists[i]))
|
|
11439
11465
|
return "audienceLists: string[] expected";
|
|
11440
11466
|
}
|
|
11467
|
+
if (message.webhookNotification != null && message.hasOwnProperty("webhookNotification")) {
|
|
11468
|
+
properties._webhookNotification = 1;
|
|
11469
|
+
{
|
|
11470
|
+
var error = $root.google.analytics.data.v1alpha.WebhookNotification.verify(message.webhookNotification);
|
|
11471
|
+
if (error)
|
|
11472
|
+
return "webhookNotification." + error;
|
|
11473
|
+
}
|
|
11474
|
+
}
|
|
11441
11475
|
return null;
|
|
11442
11476
|
};
|
|
11443
11477
|
|
|
@@ -11478,6 +11512,11 @@
|
|
|
11478
11512
|
for (var i = 0; i < object.audienceLists.length; ++i)
|
|
11479
11513
|
message.audienceLists[i] = String(object.audienceLists[i]);
|
|
11480
11514
|
}
|
|
11515
|
+
if (object.webhookNotification != null) {
|
|
11516
|
+
if (typeof object.webhookNotification !== "object")
|
|
11517
|
+
throw TypeError(".google.analytics.data.v1alpha.RecurringAudienceList.webhookNotification: object expected");
|
|
11518
|
+
message.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.fromObject(object.webhookNotification);
|
|
11519
|
+
}
|
|
11481
11520
|
return message;
|
|
11482
11521
|
};
|
|
11483
11522
|
|
|
@@ -11524,6 +11563,11 @@
|
|
|
11524
11563
|
for (var j = 0; j < message.audienceLists.length; ++j)
|
|
11525
11564
|
object.audienceLists[j] = message.audienceLists[j];
|
|
11526
11565
|
}
|
|
11566
|
+
if (message.webhookNotification != null && message.hasOwnProperty("webhookNotification")) {
|
|
11567
|
+
object.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.toObject(message.webhookNotification, options);
|
|
11568
|
+
if (options.oneofs)
|
|
11569
|
+
object._webhookNotification = "webhookNotification";
|
|
11570
|
+
}
|
|
11527
11571
|
return object;
|
|
11528
11572
|
};
|
|
11529
11573
|
|
|
@@ -11556,6 +11600,265 @@
|
|
|
11556
11600
|
return RecurringAudienceList;
|
|
11557
11601
|
})();
|
|
11558
11602
|
|
|
11603
|
+
v1alpha.WebhookNotification = (function() {
|
|
11604
|
+
|
|
11605
|
+
/**
|
|
11606
|
+
* Properties of a WebhookNotification.
|
|
11607
|
+
* @memberof google.analytics.data.v1alpha
|
|
11608
|
+
* @interface IWebhookNotification
|
|
11609
|
+
* @property {string|null} [uri] WebhookNotification uri
|
|
11610
|
+
* @property {string|null} [channelToken] WebhookNotification channelToken
|
|
11611
|
+
*/
|
|
11612
|
+
|
|
11613
|
+
/**
|
|
11614
|
+
* Constructs a new WebhookNotification.
|
|
11615
|
+
* @memberof google.analytics.data.v1alpha
|
|
11616
|
+
* @classdesc Represents a WebhookNotification.
|
|
11617
|
+
* @implements IWebhookNotification
|
|
11618
|
+
* @constructor
|
|
11619
|
+
* @param {google.analytics.data.v1alpha.IWebhookNotification=} [properties] Properties to set
|
|
11620
|
+
*/
|
|
11621
|
+
function WebhookNotification(properties) {
|
|
11622
|
+
if (properties)
|
|
11623
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11624
|
+
if (properties[keys[i]] != null)
|
|
11625
|
+
this[keys[i]] = properties[keys[i]];
|
|
11626
|
+
}
|
|
11627
|
+
|
|
11628
|
+
/**
|
|
11629
|
+
* WebhookNotification uri.
|
|
11630
|
+
* @member {string|null|undefined} uri
|
|
11631
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11632
|
+
* @instance
|
|
11633
|
+
*/
|
|
11634
|
+
WebhookNotification.prototype.uri = null;
|
|
11635
|
+
|
|
11636
|
+
/**
|
|
11637
|
+
* WebhookNotification channelToken.
|
|
11638
|
+
* @member {string|null|undefined} channelToken
|
|
11639
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11640
|
+
* @instance
|
|
11641
|
+
*/
|
|
11642
|
+
WebhookNotification.prototype.channelToken = null;
|
|
11643
|
+
|
|
11644
|
+
// OneOf field names bound to virtual getters and setters
|
|
11645
|
+
var $oneOfFields;
|
|
11646
|
+
|
|
11647
|
+
/**
|
|
11648
|
+
* WebhookNotification _uri.
|
|
11649
|
+
* @member {"uri"|undefined} _uri
|
|
11650
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11651
|
+
* @instance
|
|
11652
|
+
*/
|
|
11653
|
+
Object.defineProperty(WebhookNotification.prototype, "_uri", {
|
|
11654
|
+
get: $util.oneOfGetter($oneOfFields = ["uri"]),
|
|
11655
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
11656
|
+
});
|
|
11657
|
+
|
|
11658
|
+
/**
|
|
11659
|
+
* WebhookNotification _channelToken.
|
|
11660
|
+
* @member {"channelToken"|undefined} _channelToken
|
|
11661
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11662
|
+
* @instance
|
|
11663
|
+
*/
|
|
11664
|
+
Object.defineProperty(WebhookNotification.prototype, "_channelToken", {
|
|
11665
|
+
get: $util.oneOfGetter($oneOfFields = ["channelToken"]),
|
|
11666
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
11667
|
+
});
|
|
11668
|
+
|
|
11669
|
+
/**
|
|
11670
|
+
* Creates a new WebhookNotification instance using the specified properties.
|
|
11671
|
+
* @function create
|
|
11672
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11673
|
+
* @static
|
|
11674
|
+
* @param {google.analytics.data.v1alpha.IWebhookNotification=} [properties] Properties to set
|
|
11675
|
+
* @returns {google.analytics.data.v1alpha.WebhookNotification} WebhookNotification instance
|
|
11676
|
+
*/
|
|
11677
|
+
WebhookNotification.create = function create(properties) {
|
|
11678
|
+
return new WebhookNotification(properties);
|
|
11679
|
+
};
|
|
11680
|
+
|
|
11681
|
+
/**
|
|
11682
|
+
* Encodes the specified WebhookNotification message. Does not implicitly {@link google.analytics.data.v1alpha.WebhookNotification.verify|verify} messages.
|
|
11683
|
+
* @function encode
|
|
11684
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11685
|
+
* @static
|
|
11686
|
+
* @param {google.analytics.data.v1alpha.IWebhookNotification} message WebhookNotification message or plain object to encode
|
|
11687
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11688
|
+
* @returns {$protobuf.Writer} Writer
|
|
11689
|
+
*/
|
|
11690
|
+
WebhookNotification.encode = function encode(message, writer) {
|
|
11691
|
+
if (!writer)
|
|
11692
|
+
writer = $Writer.create();
|
|
11693
|
+
if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
|
|
11694
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri);
|
|
11695
|
+
if (message.channelToken != null && Object.hasOwnProperty.call(message, "channelToken"))
|
|
11696
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.channelToken);
|
|
11697
|
+
return writer;
|
|
11698
|
+
};
|
|
11699
|
+
|
|
11700
|
+
/**
|
|
11701
|
+
* Encodes the specified WebhookNotification message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.WebhookNotification.verify|verify} messages.
|
|
11702
|
+
* @function encodeDelimited
|
|
11703
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11704
|
+
* @static
|
|
11705
|
+
* @param {google.analytics.data.v1alpha.IWebhookNotification} message WebhookNotification message or plain object to encode
|
|
11706
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11707
|
+
* @returns {$protobuf.Writer} Writer
|
|
11708
|
+
*/
|
|
11709
|
+
WebhookNotification.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11710
|
+
return this.encode(message, writer).ldelim();
|
|
11711
|
+
};
|
|
11712
|
+
|
|
11713
|
+
/**
|
|
11714
|
+
* Decodes a WebhookNotification message from the specified reader or buffer.
|
|
11715
|
+
* @function decode
|
|
11716
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11717
|
+
* @static
|
|
11718
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11719
|
+
* @param {number} [length] Message length if known beforehand
|
|
11720
|
+
* @returns {google.analytics.data.v1alpha.WebhookNotification} WebhookNotification
|
|
11721
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11722
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11723
|
+
*/
|
|
11724
|
+
WebhookNotification.decode = function decode(reader, length) {
|
|
11725
|
+
if (!(reader instanceof $Reader))
|
|
11726
|
+
reader = $Reader.create(reader);
|
|
11727
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1alpha.WebhookNotification();
|
|
11728
|
+
while (reader.pos < end) {
|
|
11729
|
+
var tag = reader.uint32();
|
|
11730
|
+
switch (tag >>> 3) {
|
|
11731
|
+
case 1: {
|
|
11732
|
+
message.uri = reader.string();
|
|
11733
|
+
break;
|
|
11734
|
+
}
|
|
11735
|
+
case 2: {
|
|
11736
|
+
message.channelToken = reader.string();
|
|
11737
|
+
break;
|
|
11738
|
+
}
|
|
11739
|
+
default:
|
|
11740
|
+
reader.skipType(tag & 7);
|
|
11741
|
+
break;
|
|
11742
|
+
}
|
|
11743
|
+
}
|
|
11744
|
+
return message;
|
|
11745
|
+
};
|
|
11746
|
+
|
|
11747
|
+
/**
|
|
11748
|
+
* Decodes a WebhookNotification message from the specified reader or buffer, length delimited.
|
|
11749
|
+
* @function decodeDelimited
|
|
11750
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11751
|
+
* @static
|
|
11752
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11753
|
+
* @returns {google.analytics.data.v1alpha.WebhookNotification} WebhookNotification
|
|
11754
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11755
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11756
|
+
*/
|
|
11757
|
+
WebhookNotification.decodeDelimited = function decodeDelimited(reader) {
|
|
11758
|
+
if (!(reader instanceof $Reader))
|
|
11759
|
+
reader = new $Reader(reader);
|
|
11760
|
+
return this.decode(reader, reader.uint32());
|
|
11761
|
+
};
|
|
11762
|
+
|
|
11763
|
+
/**
|
|
11764
|
+
* Verifies a WebhookNotification message.
|
|
11765
|
+
* @function verify
|
|
11766
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11767
|
+
* @static
|
|
11768
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11769
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11770
|
+
*/
|
|
11771
|
+
WebhookNotification.verify = function verify(message) {
|
|
11772
|
+
if (typeof message !== "object" || message === null)
|
|
11773
|
+
return "object expected";
|
|
11774
|
+
var properties = {};
|
|
11775
|
+
if (message.uri != null && message.hasOwnProperty("uri")) {
|
|
11776
|
+
properties._uri = 1;
|
|
11777
|
+
if (!$util.isString(message.uri))
|
|
11778
|
+
return "uri: string expected";
|
|
11779
|
+
}
|
|
11780
|
+
if (message.channelToken != null && message.hasOwnProperty("channelToken")) {
|
|
11781
|
+
properties._channelToken = 1;
|
|
11782
|
+
if (!$util.isString(message.channelToken))
|
|
11783
|
+
return "channelToken: string expected";
|
|
11784
|
+
}
|
|
11785
|
+
return null;
|
|
11786
|
+
};
|
|
11787
|
+
|
|
11788
|
+
/**
|
|
11789
|
+
* Creates a WebhookNotification message from a plain object. Also converts values to their respective internal types.
|
|
11790
|
+
* @function fromObject
|
|
11791
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11792
|
+
* @static
|
|
11793
|
+
* @param {Object.<string,*>} object Plain object
|
|
11794
|
+
* @returns {google.analytics.data.v1alpha.WebhookNotification} WebhookNotification
|
|
11795
|
+
*/
|
|
11796
|
+
WebhookNotification.fromObject = function fromObject(object) {
|
|
11797
|
+
if (object instanceof $root.google.analytics.data.v1alpha.WebhookNotification)
|
|
11798
|
+
return object;
|
|
11799
|
+
var message = new $root.google.analytics.data.v1alpha.WebhookNotification();
|
|
11800
|
+
if (object.uri != null)
|
|
11801
|
+
message.uri = String(object.uri);
|
|
11802
|
+
if (object.channelToken != null)
|
|
11803
|
+
message.channelToken = String(object.channelToken);
|
|
11804
|
+
return message;
|
|
11805
|
+
};
|
|
11806
|
+
|
|
11807
|
+
/**
|
|
11808
|
+
* Creates a plain object from a WebhookNotification message. Also converts values to other types if specified.
|
|
11809
|
+
* @function toObject
|
|
11810
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11811
|
+
* @static
|
|
11812
|
+
* @param {google.analytics.data.v1alpha.WebhookNotification} message WebhookNotification
|
|
11813
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11814
|
+
* @returns {Object.<string,*>} Plain object
|
|
11815
|
+
*/
|
|
11816
|
+
WebhookNotification.toObject = function toObject(message, options) {
|
|
11817
|
+
if (!options)
|
|
11818
|
+
options = {};
|
|
11819
|
+
var object = {};
|
|
11820
|
+
if (message.uri != null && message.hasOwnProperty("uri")) {
|
|
11821
|
+
object.uri = message.uri;
|
|
11822
|
+
if (options.oneofs)
|
|
11823
|
+
object._uri = "uri";
|
|
11824
|
+
}
|
|
11825
|
+
if (message.channelToken != null && message.hasOwnProperty("channelToken")) {
|
|
11826
|
+
object.channelToken = message.channelToken;
|
|
11827
|
+
if (options.oneofs)
|
|
11828
|
+
object._channelToken = "channelToken";
|
|
11829
|
+
}
|
|
11830
|
+
return object;
|
|
11831
|
+
};
|
|
11832
|
+
|
|
11833
|
+
/**
|
|
11834
|
+
* Converts this WebhookNotification to JSON.
|
|
11835
|
+
* @function toJSON
|
|
11836
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11837
|
+
* @instance
|
|
11838
|
+
* @returns {Object.<string,*>} JSON object
|
|
11839
|
+
*/
|
|
11840
|
+
WebhookNotification.prototype.toJSON = function toJSON() {
|
|
11841
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11842
|
+
};
|
|
11843
|
+
|
|
11844
|
+
/**
|
|
11845
|
+
* Gets the default type url for WebhookNotification
|
|
11846
|
+
* @function getTypeUrl
|
|
11847
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11848
|
+
* @static
|
|
11849
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
11850
|
+
* @returns {string} The default type url
|
|
11851
|
+
*/
|
|
11852
|
+
WebhookNotification.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
11853
|
+
if (typeUrlPrefix === undefined) {
|
|
11854
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
11855
|
+
}
|
|
11856
|
+
return typeUrlPrefix + "/google.analytics.data.v1alpha.WebhookNotification";
|
|
11857
|
+
};
|
|
11858
|
+
|
|
11859
|
+
return WebhookNotification;
|
|
11860
|
+
})();
|
|
11861
|
+
|
|
11559
11862
|
v1alpha.GetRecurringAudienceListRequest = (function() {
|
|
11560
11863
|
|
|
11561
11864
|
/**
|
|
@@ -13243,6 +13546,7 @@
|
|
|
13243
13546
|
* @property {string|null} [errorMessage] AudienceList errorMessage
|
|
13244
13547
|
* @property {number|null} [percentageCompleted] AudienceList percentageCompleted
|
|
13245
13548
|
* @property {string|null} [recurringAudienceList] AudienceList recurringAudienceList
|
|
13549
|
+
* @property {google.analytics.data.v1alpha.IWebhookNotification|null} [webhookNotification] AudienceList webhookNotification
|
|
13246
13550
|
*/
|
|
13247
13551
|
|
|
13248
13552
|
/**
|
|
@@ -13349,6 +13653,14 @@
|
|
|
13349
13653
|
*/
|
|
13350
13654
|
AudienceList.prototype.recurringAudienceList = null;
|
|
13351
13655
|
|
|
13656
|
+
/**
|
|
13657
|
+
* AudienceList webhookNotification.
|
|
13658
|
+
* @member {google.analytics.data.v1alpha.IWebhookNotification|null|undefined} webhookNotification
|
|
13659
|
+
* @memberof google.analytics.data.v1alpha.AudienceList
|
|
13660
|
+
* @instance
|
|
13661
|
+
*/
|
|
13662
|
+
AudienceList.prototype.webhookNotification = null;
|
|
13663
|
+
|
|
13352
13664
|
// OneOf field names bound to virtual getters and setters
|
|
13353
13665
|
var $oneOfFields;
|
|
13354
13666
|
|
|
@@ -13418,6 +13730,17 @@
|
|
|
13418
13730
|
set: $util.oneOfSetter($oneOfFields)
|
|
13419
13731
|
});
|
|
13420
13732
|
|
|
13733
|
+
/**
|
|
13734
|
+
* AudienceList _webhookNotification.
|
|
13735
|
+
* @member {"webhookNotification"|undefined} _webhookNotification
|
|
13736
|
+
* @memberof google.analytics.data.v1alpha.AudienceList
|
|
13737
|
+
* @instance
|
|
13738
|
+
*/
|
|
13739
|
+
Object.defineProperty(AudienceList.prototype, "_webhookNotification", {
|
|
13740
|
+
get: $util.oneOfGetter($oneOfFields = ["webhookNotification"]),
|
|
13741
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
13742
|
+
});
|
|
13743
|
+
|
|
13421
13744
|
/**
|
|
13422
13745
|
* Creates a new AudienceList instance using the specified properties.
|
|
13423
13746
|
* @function create
|
|
@@ -13465,6 +13788,8 @@
|
|
|
13465
13788
|
writer.uint32(/* id 11, wireType 1 =*/89).double(message.percentageCompleted);
|
|
13466
13789
|
if (message.recurringAudienceList != null && Object.hasOwnProperty.call(message, "recurringAudienceList"))
|
|
13467
13790
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.recurringAudienceList);
|
|
13791
|
+
if (message.webhookNotification != null && Object.hasOwnProperty.call(message, "webhookNotification"))
|
|
13792
|
+
$root.google.analytics.data.v1alpha.WebhookNotification.encode(message.webhookNotification, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
13468
13793
|
return writer;
|
|
13469
13794
|
};
|
|
13470
13795
|
|
|
@@ -13545,6 +13870,10 @@
|
|
|
13545
13870
|
message.recurringAudienceList = reader.string();
|
|
13546
13871
|
break;
|
|
13547
13872
|
}
|
|
13873
|
+
case 13: {
|
|
13874
|
+
message.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.decode(reader, reader.uint32());
|
|
13875
|
+
break;
|
|
13876
|
+
}
|
|
13548
13877
|
default:
|
|
13549
13878
|
reader.skipType(tag & 7);
|
|
13550
13879
|
break;
|
|
@@ -13642,6 +13971,14 @@
|
|
|
13642
13971
|
if (!$util.isString(message.recurringAudienceList))
|
|
13643
13972
|
return "recurringAudienceList: string expected";
|
|
13644
13973
|
}
|
|
13974
|
+
if (message.webhookNotification != null && message.hasOwnProperty("webhookNotification")) {
|
|
13975
|
+
properties._webhookNotification = 1;
|
|
13976
|
+
{
|
|
13977
|
+
var error = $root.google.analytics.data.v1alpha.WebhookNotification.verify(message.webhookNotification);
|
|
13978
|
+
if (error)
|
|
13979
|
+
return "webhookNotification." + error;
|
|
13980
|
+
}
|
|
13981
|
+
}
|
|
13645
13982
|
return null;
|
|
13646
13983
|
};
|
|
13647
13984
|
|
|
@@ -13712,6 +14049,11 @@
|
|
|
13712
14049
|
message.percentageCompleted = Number(object.percentageCompleted);
|
|
13713
14050
|
if (object.recurringAudienceList != null)
|
|
13714
14051
|
message.recurringAudienceList = String(object.recurringAudienceList);
|
|
14052
|
+
if (object.webhookNotification != null) {
|
|
14053
|
+
if (typeof object.webhookNotification !== "object")
|
|
14054
|
+
throw TypeError(".google.analytics.data.v1alpha.AudienceList.webhookNotification: object expected");
|
|
14055
|
+
message.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.fromObject(object.webhookNotification);
|
|
14056
|
+
}
|
|
13715
14057
|
return message;
|
|
13716
14058
|
};
|
|
13717
14059
|
|
|
@@ -13779,6 +14121,11 @@
|
|
|
13779
14121
|
if (options.oneofs)
|
|
13780
14122
|
object._recurringAudienceList = "recurringAudienceList";
|
|
13781
14123
|
}
|
|
14124
|
+
if (message.webhookNotification != null && message.hasOwnProperty("webhookNotification")) {
|
|
14125
|
+
object.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.toObject(message.webhookNotification, options);
|
|
14126
|
+
if (options.oneofs)
|
|
14127
|
+
object._webhookNotification = "webhookNotification";
|
|
14128
|
+
}
|
|
13782
14129
|
return object;
|
|
13783
14130
|
};
|
|
13784
14131
|
|
|
@@ -32966,6 +33313,138 @@
|
|
|
32966
33313
|
* @variation 2
|
|
32967
33314
|
*/
|
|
32968
33315
|
|
|
33316
|
+
/**
|
|
33317
|
+
* Callback as used by {@link google.analytics.data.v1beta.BetaAnalyticsData|createAudienceExport}.
|
|
33318
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33319
|
+
* @typedef CreateAudienceExportCallback
|
|
33320
|
+
* @type {function}
|
|
33321
|
+
* @param {Error|null} error Error, if any
|
|
33322
|
+
* @param {google.longrunning.Operation} [response] Operation
|
|
33323
|
+
*/
|
|
33324
|
+
|
|
33325
|
+
/**
|
|
33326
|
+
* Calls CreateAudienceExport.
|
|
33327
|
+
* @function createAudienceExport
|
|
33328
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33329
|
+
* @instance
|
|
33330
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest} request CreateAudienceExportRequest message or plain object
|
|
33331
|
+
* @param {google.analytics.data.v1beta.BetaAnalyticsData.CreateAudienceExportCallback} callback Node-style callback called with the error, if any, and Operation
|
|
33332
|
+
* @returns {undefined}
|
|
33333
|
+
* @variation 1
|
|
33334
|
+
*/
|
|
33335
|
+
Object.defineProperty(BetaAnalyticsData.prototype.createAudienceExport = function createAudienceExport(request, callback) {
|
|
33336
|
+
return this.rpcCall(createAudienceExport, $root.google.analytics.data.v1beta.CreateAudienceExportRequest, $root.google.longrunning.Operation, request, callback);
|
|
33337
|
+
}, "name", { value: "CreateAudienceExport" });
|
|
33338
|
+
|
|
33339
|
+
/**
|
|
33340
|
+
* Calls CreateAudienceExport.
|
|
33341
|
+
* @function createAudienceExport
|
|
33342
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33343
|
+
* @instance
|
|
33344
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest} request CreateAudienceExportRequest message or plain object
|
|
33345
|
+
* @returns {Promise<google.longrunning.Operation>} Promise
|
|
33346
|
+
* @variation 2
|
|
33347
|
+
*/
|
|
33348
|
+
|
|
33349
|
+
/**
|
|
33350
|
+
* Callback as used by {@link google.analytics.data.v1beta.BetaAnalyticsData|queryAudienceExport}.
|
|
33351
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33352
|
+
* @typedef QueryAudienceExportCallback
|
|
33353
|
+
* @type {function}
|
|
33354
|
+
* @param {Error|null} error Error, if any
|
|
33355
|
+
* @param {google.analytics.data.v1beta.QueryAudienceExportResponse} [response] QueryAudienceExportResponse
|
|
33356
|
+
*/
|
|
33357
|
+
|
|
33358
|
+
/**
|
|
33359
|
+
* Calls QueryAudienceExport.
|
|
33360
|
+
* @function queryAudienceExport
|
|
33361
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33362
|
+
* @instance
|
|
33363
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest} request QueryAudienceExportRequest message or plain object
|
|
33364
|
+
* @param {google.analytics.data.v1beta.BetaAnalyticsData.QueryAudienceExportCallback} callback Node-style callback called with the error, if any, and QueryAudienceExportResponse
|
|
33365
|
+
* @returns {undefined}
|
|
33366
|
+
* @variation 1
|
|
33367
|
+
*/
|
|
33368
|
+
Object.defineProperty(BetaAnalyticsData.prototype.queryAudienceExport = function queryAudienceExport(request, callback) {
|
|
33369
|
+
return this.rpcCall(queryAudienceExport, $root.google.analytics.data.v1beta.QueryAudienceExportRequest, $root.google.analytics.data.v1beta.QueryAudienceExportResponse, request, callback);
|
|
33370
|
+
}, "name", { value: "QueryAudienceExport" });
|
|
33371
|
+
|
|
33372
|
+
/**
|
|
33373
|
+
* Calls QueryAudienceExport.
|
|
33374
|
+
* @function queryAudienceExport
|
|
33375
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33376
|
+
* @instance
|
|
33377
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest} request QueryAudienceExportRequest message or plain object
|
|
33378
|
+
* @returns {Promise<google.analytics.data.v1beta.QueryAudienceExportResponse>} Promise
|
|
33379
|
+
* @variation 2
|
|
33380
|
+
*/
|
|
33381
|
+
|
|
33382
|
+
/**
|
|
33383
|
+
* Callback as used by {@link google.analytics.data.v1beta.BetaAnalyticsData|getAudienceExport}.
|
|
33384
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33385
|
+
* @typedef GetAudienceExportCallback
|
|
33386
|
+
* @type {function}
|
|
33387
|
+
* @param {Error|null} error Error, if any
|
|
33388
|
+
* @param {google.analytics.data.v1beta.AudienceExport} [response] AudienceExport
|
|
33389
|
+
*/
|
|
33390
|
+
|
|
33391
|
+
/**
|
|
33392
|
+
* Calls GetAudienceExport.
|
|
33393
|
+
* @function getAudienceExport
|
|
33394
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33395
|
+
* @instance
|
|
33396
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest} request GetAudienceExportRequest message or plain object
|
|
33397
|
+
* @param {google.analytics.data.v1beta.BetaAnalyticsData.GetAudienceExportCallback} callback Node-style callback called with the error, if any, and AudienceExport
|
|
33398
|
+
* @returns {undefined}
|
|
33399
|
+
* @variation 1
|
|
33400
|
+
*/
|
|
33401
|
+
Object.defineProperty(BetaAnalyticsData.prototype.getAudienceExport = function getAudienceExport(request, callback) {
|
|
33402
|
+
return this.rpcCall(getAudienceExport, $root.google.analytics.data.v1beta.GetAudienceExportRequest, $root.google.analytics.data.v1beta.AudienceExport, request, callback);
|
|
33403
|
+
}, "name", { value: "GetAudienceExport" });
|
|
33404
|
+
|
|
33405
|
+
/**
|
|
33406
|
+
* Calls GetAudienceExport.
|
|
33407
|
+
* @function getAudienceExport
|
|
33408
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33409
|
+
* @instance
|
|
33410
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest} request GetAudienceExportRequest message or plain object
|
|
33411
|
+
* @returns {Promise<google.analytics.data.v1beta.AudienceExport>} Promise
|
|
33412
|
+
* @variation 2
|
|
33413
|
+
*/
|
|
33414
|
+
|
|
33415
|
+
/**
|
|
33416
|
+
* Callback as used by {@link google.analytics.data.v1beta.BetaAnalyticsData|listAudienceExports}.
|
|
33417
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33418
|
+
* @typedef ListAudienceExportsCallback
|
|
33419
|
+
* @type {function}
|
|
33420
|
+
* @param {Error|null} error Error, if any
|
|
33421
|
+
* @param {google.analytics.data.v1beta.ListAudienceExportsResponse} [response] ListAudienceExportsResponse
|
|
33422
|
+
*/
|
|
33423
|
+
|
|
33424
|
+
/**
|
|
33425
|
+
* Calls ListAudienceExports.
|
|
33426
|
+
* @function listAudienceExports
|
|
33427
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33428
|
+
* @instance
|
|
33429
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest} request ListAudienceExportsRequest message or plain object
|
|
33430
|
+
* @param {google.analytics.data.v1beta.BetaAnalyticsData.ListAudienceExportsCallback} callback Node-style callback called with the error, if any, and ListAudienceExportsResponse
|
|
33431
|
+
* @returns {undefined}
|
|
33432
|
+
* @variation 1
|
|
33433
|
+
*/
|
|
33434
|
+
Object.defineProperty(BetaAnalyticsData.prototype.listAudienceExports = function listAudienceExports(request, callback) {
|
|
33435
|
+
return this.rpcCall(listAudienceExports, $root.google.analytics.data.v1beta.ListAudienceExportsRequest, $root.google.analytics.data.v1beta.ListAudienceExportsResponse, request, callback);
|
|
33436
|
+
}, "name", { value: "ListAudienceExports" });
|
|
33437
|
+
|
|
33438
|
+
/**
|
|
33439
|
+
* Calls ListAudienceExports.
|
|
33440
|
+
* @function listAudienceExports
|
|
33441
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33442
|
+
* @instance
|
|
33443
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest} request ListAudienceExportsRequest message or plain object
|
|
33444
|
+
* @returns {Promise<google.analytics.data.v1beta.ListAudienceExportsResponse>} Promise
|
|
33445
|
+
* @variation 2
|
|
33446
|
+
*/
|
|
33447
|
+
|
|
32969
33448
|
return BetaAnalyticsData;
|
|
32970
33449
|
})();
|
|
32971
33450
|
|
|
@@ -38479,6 +38958,2933 @@
|
|
|
38479
38958
|
return RunRealtimeReportResponse;
|
|
38480
38959
|
})();
|
|
38481
38960
|
|
|
38961
|
+
v1beta.GetAudienceExportRequest = (function() {
|
|
38962
|
+
|
|
38963
|
+
/**
|
|
38964
|
+
* Properties of a GetAudienceExportRequest.
|
|
38965
|
+
* @memberof google.analytics.data.v1beta
|
|
38966
|
+
* @interface IGetAudienceExportRequest
|
|
38967
|
+
* @property {string|null} [name] GetAudienceExportRequest name
|
|
38968
|
+
*/
|
|
38969
|
+
|
|
38970
|
+
/**
|
|
38971
|
+
* Constructs a new GetAudienceExportRequest.
|
|
38972
|
+
* @memberof google.analytics.data.v1beta
|
|
38973
|
+
* @classdesc Represents a GetAudienceExportRequest.
|
|
38974
|
+
* @implements IGetAudienceExportRequest
|
|
38975
|
+
* @constructor
|
|
38976
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest=} [properties] Properties to set
|
|
38977
|
+
*/
|
|
38978
|
+
function GetAudienceExportRequest(properties) {
|
|
38979
|
+
if (properties)
|
|
38980
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
38981
|
+
if (properties[keys[i]] != null)
|
|
38982
|
+
this[keys[i]] = properties[keys[i]];
|
|
38983
|
+
}
|
|
38984
|
+
|
|
38985
|
+
/**
|
|
38986
|
+
* GetAudienceExportRequest name.
|
|
38987
|
+
* @member {string} name
|
|
38988
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38989
|
+
* @instance
|
|
38990
|
+
*/
|
|
38991
|
+
GetAudienceExportRequest.prototype.name = "";
|
|
38992
|
+
|
|
38993
|
+
/**
|
|
38994
|
+
* Creates a new GetAudienceExportRequest instance using the specified properties.
|
|
38995
|
+
* @function create
|
|
38996
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38997
|
+
* @static
|
|
38998
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest=} [properties] Properties to set
|
|
38999
|
+
* @returns {google.analytics.data.v1beta.GetAudienceExportRequest} GetAudienceExportRequest instance
|
|
39000
|
+
*/
|
|
39001
|
+
GetAudienceExportRequest.create = function create(properties) {
|
|
39002
|
+
return new GetAudienceExportRequest(properties);
|
|
39003
|
+
};
|
|
39004
|
+
|
|
39005
|
+
/**
|
|
39006
|
+
* Encodes the specified GetAudienceExportRequest message. Does not implicitly {@link google.analytics.data.v1beta.GetAudienceExportRequest.verify|verify} messages.
|
|
39007
|
+
* @function encode
|
|
39008
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
39009
|
+
* @static
|
|
39010
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest} message GetAudienceExportRequest message or plain object to encode
|
|
39011
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39012
|
+
* @returns {$protobuf.Writer} Writer
|
|
39013
|
+
*/
|
|
39014
|
+
GetAudienceExportRequest.encode = function encode(message, writer) {
|
|
39015
|
+
if (!writer)
|
|
39016
|
+
writer = $Writer.create();
|
|
39017
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
39018
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
39019
|
+
return writer;
|
|
39020
|
+
};
|
|
39021
|
+
|
|
39022
|
+
/**
|
|
39023
|
+
* Encodes the specified GetAudienceExportRequest message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.GetAudienceExportRequest.verify|verify} messages.
|
|
39024
|
+
* @function encodeDelimited
|
|
39025
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
39026
|
+
* @static
|
|
39027
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest} message GetAudienceExportRequest message or plain object to encode
|
|
39028
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39029
|
+
* @returns {$protobuf.Writer} Writer
|
|
39030
|
+
*/
|
|
39031
|
+
GetAudienceExportRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39032
|
+
return this.encode(message, writer).ldelim();
|
|
39033
|
+
};
|
|
39034
|
+
|
|
39035
|
+
/**
|
|
39036
|
+
* Decodes a GetAudienceExportRequest message from the specified reader or buffer.
|
|
39037
|
+
* @function decode
|
|
39038
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
39039
|
+
* @static
|
|
39040
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39041
|
+
* @param {number} [length] Message length if known beforehand
|
|
39042
|
+
* @returns {google.analytics.data.v1beta.GetAudienceExportRequest} GetAudienceExportRequest
|
|
39043
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39044
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39045
|
+
*/
|
|
39046
|
+
GetAudienceExportRequest.decode = function decode(reader, length) {
|
|
39047
|
+
if (!(reader instanceof $Reader))
|
|
39048
|
+
reader = $Reader.create(reader);
|
|
39049
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.GetAudienceExportRequest();
|
|
39050
|
+
while (reader.pos < end) {
|
|
39051
|
+
var tag = reader.uint32();
|
|
39052
|
+
switch (tag >>> 3) {
|
|
39053
|
+
case 1: {
|
|
39054
|
+
message.name = reader.string();
|
|
39055
|
+
break;
|
|
39056
|
+
}
|
|
39057
|
+
default:
|
|
39058
|
+
reader.skipType(tag & 7);
|
|
39059
|
+
break;
|
|
39060
|
+
}
|
|
39061
|
+
}
|
|
39062
|
+
return message;
|
|
39063
|
+
};
|
|
39064
|
+
|
|
39065
|
+
/**
|
|
39066
|
+
* Decodes a GetAudienceExportRequest message from the specified reader or buffer, length delimited.
|
|
39067
|
+
* @function decodeDelimited
|
|
39068
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
39069
|
+
* @static
|
|
39070
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39071
|
+
* @returns {google.analytics.data.v1beta.GetAudienceExportRequest} GetAudienceExportRequest
|
|
39072
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39073
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39074
|
+
*/
|
|
39075
|
+
GetAudienceExportRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
39076
|
+
if (!(reader instanceof $Reader))
|
|
39077
|
+
reader = new $Reader(reader);
|
|
39078
|
+
return this.decode(reader, reader.uint32());
|
|
39079
|
+
};
|
|
39080
|
+
|
|
39081
|
+
/**
|
|
39082
|
+
* Verifies a GetAudienceExportRequest message.
|
|
39083
|
+
* @function verify
|
|
39084
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
39085
|
+
* @static
|
|
39086
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39087
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39088
|
+
*/
|
|
39089
|
+
GetAudienceExportRequest.verify = function verify(message) {
|
|
39090
|
+
if (typeof message !== "object" || message === null)
|
|
39091
|
+
return "object expected";
|
|
39092
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
39093
|
+
if (!$util.isString(message.name))
|
|
39094
|
+
return "name: string expected";
|
|
39095
|
+
return null;
|
|
39096
|
+
};
|
|
39097
|
+
|
|
39098
|
+
/**
|
|
39099
|
+
* Creates a GetAudienceExportRequest message from a plain object. Also converts values to their respective internal types.
|
|
39100
|
+
* @function fromObject
|
|
39101
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
39102
|
+
* @static
|
|
39103
|
+
* @param {Object.<string,*>} object Plain object
|
|
39104
|
+
* @returns {google.analytics.data.v1beta.GetAudienceExportRequest} GetAudienceExportRequest
|
|
39105
|
+
*/
|
|
39106
|
+
GetAudienceExportRequest.fromObject = function fromObject(object) {
|
|
39107
|
+
if (object instanceof $root.google.analytics.data.v1beta.GetAudienceExportRequest)
|
|
39108
|
+
return object;
|
|
39109
|
+
var message = new $root.google.analytics.data.v1beta.GetAudienceExportRequest();
|
|
39110
|
+
if (object.name != null)
|
|
39111
|
+
message.name = String(object.name);
|
|
39112
|
+
return message;
|
|
39113
|
+
};
|
|
39114
|
+
|
|
39115
|
+
/**
|
|
39116
|
+
* Creates a plain object from a GetAudienceExportRequest message. Also converts values to other types if specified.
|
|
39117
|
+
* @function toObject
|
|
39118
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
39119
|
+
* @static
|
|
39120
|
+
* @param {google.analytics.data.v1beta.GetAudienceExportRequest} message GetAudienceExportRequest
|
|
39121
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39122
|
+
* @returns {Object.<string,*>} Plain object
|
|
39123
|
+
*/
|
|
39124
|
+
GetAudienceExportRequest.toObject = function toObject(message, options) {
|
|
39125
|
+
if (!options)
|
|
39126
|
+
options = {};
|
|
39127
|
+
var object = {};
|
|
39128
|
+
if (options.defaults)
|
|
39129
|
+
object.name = "";
|
|
39130
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
39131
|
+
object.name = message.name;
|
|
39132
|
+
return object;
|
|
39133
|
+
};
|
|
39134
|
+
|
|
39135
|
+
/**
|
|
39136
|
+
* Converts this GetAudienceExportRequest to JSON.
|
|
39137
|
+
* @function toJSON
|
|
39138
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
39139
|
+
* @instance
|
|
39140
|
+
* @returns {Object.<string,*>} JSON object
|
|
39141
|
+
*/
|
|
39142
|
+
GetAudienceExportRequest.prototype.toJSON = function toJSON() {
|
|
39143
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39144
|
+
};
|
|
39145
|
+
|
|
39146
|
+
/**
|
|
39147
|
+
* Gets the default type url for GetAudienceExportRequest
|
|
39148
|
+
* @function getTypeUrl
|
|
39149
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
39150
|
+
* @static
|
|
39151
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
39152
|
+
* @returns {string} The default type url
|
|
39153
|
+
*/
|
|
39154
|
+
GetAudienceExportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
39155
|
+
if (typeUrlPrefix === undefined) {
|
|
39156
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
39157
|
+
}
|
|
39158
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.GetAudienceExportRequest";
|
|
39159
|
+
};
|
|
39160
|
+
|
|
39161
|
+
return GetAudienceExportRequest;
|
|
39162
|
+
})();
|
|
39163
|
+
|
|
39164
|
+
v1beta.ListAudienceExportsRequest = (function() {
|
|
39165
|
+
|
|
39166
|
+
/**
|
|
39167
|
+
* Properties of a ListAudienceExportsRequest.
|
|
39168
|
+
* @memberof google.analytics.data.v1beta
|
|
39169
|
+
* @interface IListAudienceExportsRequest
|
|
39170
|
+
* @property {string|null} [parent] ListAudienceExportsRequest parent
|
|
39171
|
+
* @property {number|null} [pageSize] ListAudienceExportsRequest pageSize
|
|
39172
|
+
* @property {string|null} [pageToken] ListAudienceExportsRequest pageToken
|
|
39173
|
+
*/
|
|
39174
|
+
|
|
39175
|
+
/**
|
|
39176
|
+
* Constructs a new ListAudienceExportsRequest.
|
|
39177
|
+
* @memberof google.analytics.data.v1beta
|
|
39178
|
+
* @classdesc Represents a ListAudienceExportsRequest.
|
|
39179
|
+
* @implements IListAudienceExportsRequest
|
|
39180
|
+
* @constructor
|
|
39181
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest=} [properties] Properties to set
|
|
39182
|
+
*/
|
|
39183
|
+
function ListAudienceExportsRequest(properties) {
|
|
39184
|
+
if (properties)
|
|
39185
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39186
|
+
if (properties[keys[i]] != null)
|
|
39187
|
+
this[keys[i]] = properties[keys[i]];
|
|
39188
|
+
}
|
|
39189
|
+
|
|
39190
|
+
/**
|
|
39191
|
+
* ListAudienceExportsRequest parent.
|
|
39192
|
+
* @member {string} parent
|
|
39193
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39194
|
+
* @instance
|
|
39195
|
+
*/
|
|
39196
|
+
ListAudienceExportsRequest.prototype.parent = "";
|
|
39197
|
+
|
|
39198
|
+
/**
|
|
39199
|
+
* ListAudienceExportsRequest pageSize.
|
|
39200
|
+
* @member {number} pageSize
|
|
39201
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39202
|
+
* @instance
|
|
39203
|
+
*/
|
|
39204
|
+
ListAudienceExportsRequest.prototype.pageSize = 0;
|
|
39205
|
+
|
|
39206
|
+
/**
|
|
39207
|
+
* ListAudienceExportsRequest pageToken.
|
|
39208
|
+
* @member {string} pageToken
|
|
39209
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39210
|
+
* @instance
|
|
39211
|
+
*/
|
|
39212
|
+
ListAudienceExportsRequest.prototype.pageToken = "";
|
|
39213
|
+
|
|
39214
|
+
/**
|
|
39215
|
+
* Creates a new ListAudienceExportsRequest instance using the specified properties.
|
|
39216
|
+
* @function create
|
|
39217
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39218
|
+
* @static
|
|
39219
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest=} [properties] Properties to set
|
|
39220
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsRequest} ListAudienceExportsRequest instance
|
|
39221
|
+
*/
|
|
39222
|
+
ListAudienceExportsRequest.create = function create(properties) {
|
|
39223
|
+
return new ListAudienceExportsRequest(properties);
|
|
39224
|
+
};
|
|
39225
|
+
|
|
39226
|
+
/**
|
|
39227
|
+
* Encodes the specified ListAudienceExportsRequest message. Does not implicitly {@link google.analytics.data.v1beta.ListAudienceExportsRequest.verify|verify} messages.
|
|
39228
|
+
* @function encode
|
|
39229
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39230
|
+
* @static
|
|
39231
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest} message ListAudienceExportsRequest message or plain object to encode
|
|
39232
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39233
|
+
* @returns {$protobuf.Writer} Writer
|
|
39234
|
+
*/
|
|
39235
|
+
ListAudienceExportsRequest.encode = function encode(message, writer) {
|
|
39236
|
+
if (!writer)
|
|
39237
|
+
writer = $Writer.create();
|
|
39238
|
+
if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
|
|
39239
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
|
39240
|
+
if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
|
|
39241
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
|
|
39242
|
+
if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
|
|
39243
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
|
|
39244
|
+
return writer;
|
|
39245
|
+
};
|
|
39246
|
+
|
|
39247
|
+
/**
|
|
39248
|
+
* Encodes the specified ListAudienceExportsRequest message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.ListAudienceExportsRequest.verify|verify} messages.
|
|
39249
|
+
* @function encodeDelimited
|
|
39250
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39251
|
+
* @static
|
|
39252
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest} message ListAudienceExportsRequest message or plain object to encode
|
|
39253
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39254
|
+
* @returns {$protobuf.Writer} Writer
|
|
39255
|
+
*/
|
|
39256
|
+
ListAudienceExportsRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39257
|
+
return this.encode(message, writer).ldelim();
|
|
39258
|
+
};
|
|
39259
|
+
|
|
39260
|
+
/**
|
|
39261
|
+
* Decodes a ListAudienceExportsRequest message from the specified reader or buffer.
|
|
39262
|
+
* @function decode
|
|
39263
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39264
|
+
* @static
|
|
39265
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39266
|
+
* @param {number} [length] Message length if known beforehand
|
|
39267
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsRequest} ListAudienceExportsRequest
|
|
39268
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39269
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39270
|
+
*/
|
|
39271
|
+
ListAudienceExportsRequest.decode = function decode(reader, length) {
|
|
39272
|
+
if (!(reader instanceof $Reader))
|
|
39273
|
+
reader = $Reader.create(reader);
|
|
39274
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.ListAudienceExportsRequest();
|
|
39275
|
+
while (reader.pos < end) {
|
|
39276
|
+
var tag = reader.uint32();
|
|
39277
|
+
switch (tag >>> 3) {
|
|
39278
|
+
case 1: {
|
|
39279
|
+
message.parent = reader.string();
|
|
39280
|
+
break;
|
|
39281
|
+
}
|
|
39282
|
+
case 2: {
|
|
39283
|
+
message.pageSize = reader.int32();
|
|
39284
|
+
break;
|
|
39285
|
+
}
|
|
39286
|
+
case 3: {
|
|
39287
|
+
message.pageToken = reader.string();
|
|
39288
|
+
break;
|
|
39289
|
+
}
|
|
39290
|
+
default:
|
|
39291
|
+
reader.skipType(tag & 7);
|
|
39292
|
+
break;
|
|
39293
|
+
}
|
|
39294
|
+
}
|
|
39295
|
+
return message;
|
|
39296
|
+
};
|
|
39297
|
+
|
|
39298
|
+
/**
|
|
39299
|
+
* Decodes a ListAudienceExportsRequest message from the specified reader or buffer, length delimited.
|
|
39300
|
+
* @function decodeDelimited
|
|
39301
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39302
|
+
* @static
|
|
39303
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39304
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsRequest} ListAudienceExportsRequest
|
|
39305
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39306
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39307
|
+
*/
|
|
39308
|
+
ListAudienceExportsRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
39309
|
+
if (!(reader instanceof $Reader))
|
|
39310
|
+
reader = new $Reader(reader);
|
|
39311
|
+
return this.decode(reader, reader.uint32());
|
|
39312
|
+
};
|
|
39313
|
+
|
|
39314
|
+
/**
|
|
39315
|
+
* Verifies a ListAudienceExportsRequest message.
|
|
39316
|
+
* @function verify
|
|
39317
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39318
|
+
* @static
|
|
39319
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39320
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39321
|
+
*/
|
|
39322
|
+
ListAudienceExportsRequest.verify = function verify(message) {
|
|
39323
|
+
if (typeof message !== "object" || message === null)
|
|
39324
|
+
return "object expected";
|
|
39325
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
39326
|
+
if (!$util.isString(message.parent))
|
|
39327
|
+
return "parent: string expected";
|
|
39328
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
39329
|
+
if (!$util.isInteger(message.pageSize))
|
|
39330
|
+
return "pageSize: integer expected";
|
|
39331
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
39332
|
+
if (!$util.isString(message.pageToken))
|
|
39333
|
+
return "pageToken: string expected";
|
|
39334
|
+
return null;
|
|
39335
|
+
};
|
|
39336
|
+
|
|
39337
|
+
/**
|
|
39338
|
+
* Creates a ListAudienceExportsRequest message from a plain object. Also converts values to their respective internal types.
|
|
39339
|
+
* @function fromObject
|
|
39340
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39341
|
+
* @static
|
|
39342
|
+
* @param {Object.<string,*>} object Plain object
|
|
39343
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsRequest} ListAudienceExportsRequest
|
|
39344
|
+
*/
|
|
39345
|
+
ListAudienceExportsRequest.fromObject = function fromObject(object) {
|
|
39346
|
+
if (object instanceof $root.google.analytics.data.v1beta.ListAudienceExportsRequest)
|
|
39347
|
+
return object;
|
|
39348
|
+
var message = new $root.google.analytics.data.v1beta.ListAudienceExportsRequest();
|
|
39349
|
+
if (object.parent != null)
|
|
39350
|
+
message.parent = String(object.parent);
|
|
39351
|
+
if (object.pageSize != null)
|
|
39352
|
+
message.pageSize = object.pageSize | 0;
|
|
39353
|
+
if (object.pageToken != null)
|
|
39354
|
+
message.pageToken = String(object.pageToken);
|
|
39355
|
+
return message;
|
|
39356
|
+
};
|
|
39357
|
+
|
|
39358
|
+
/**
|
|
39359
|
+
* Creates a plain object from a ListAudienceExportsRequest message. Also converts values to other types if specified.
|
|
39360
|
+
* @function toObject
|
|
39361
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39362
|
+
* @static
|
|
39363
|
+
* @param {google.analytics.data.v1beta.ListAudienceExportsRequest} message ListAudienceExportsRequest
|
|
39364
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39365
|
+
* @returns {Object.<string,*>} Plain object
|
|
39366
|
+
*/
|
|
39367
|
+
ListAudienceExportsRequest.toObject = function toObject(message, options) {
|
|
39368
|
+
if (!options)
|
|
39369
|
+
options = {};
|
|
39370
|
+
var object = {};
|
|
39371
|
+
if (options.defaults) {
|
|
39372
|
+
object.parent = "";
|
|
39373
|
+
object.pageSize = 0;
|
|
39374
|
+
object.pageToken = "";
|
|
39375
|
+
}
|
|
39376
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
39377
|
+
object.parent = message.parent;
|
|
39378
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
39379
|
+
object.pageSize = message.pageSize;
|
|
39380
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
39381
|
+
object.pageToken = message.pageToken;
|
|
39382
|
+
return object;
|
|
39383
|
+
};
|
|
39384
|
+
|
|
39385
|
+
/**
|
|
39386
|
+
* Converts this ListAudienceExportsRequest to JSON.
|
|
39387
|
+
* @function toJSON
|
|
39388
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39389
|
+
* @instance
|
|
39390
|
+
* @returns {Object.<string,*>} JSON object
|
|
39391
|
+
*/
|
|
39392
|
+
ListAudienceExportsRequest.prototype.toJSON = function toJSON() {
|
|
39393
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39394
|
+
};
|
|
39395
|
+
|
|
39396
|
+
/**
|
|
39397
|
+
* Gets the default type url for ListAudienceExportsRequest
|
|
39398
|
+
* @function getTypeUrl
|
|
39399
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39400
|
+
* @static
|
|
39401
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
39402
|
+
* @returns {string} The default type url
|
|
39403
|
+
*/
|
|
39404
|
+
ListAudienceExportsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
39405
|
+
if (typeUrlPrefix === undefined) {
|
|
39406
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
39407
|
+
}
|
|
39408
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.ListAudienceExportsRequest";
|
|
39409
|
+
};
|
|
39410
|
+
|
|
39411
|
+
return ListAudienceExportsRequest;
|
|
39412
|
+
})();
|
|
39413
|
+
|
|
39414
|
+
v1beta.ListAudienceExportsResponse = (function() {
|
|
39415
|
+
|
|
39416
|
+
/**
|
|
39417
|
+
* Properties of a ListAudienceExportsResponse.
|
|
39418
|
+
* @memberof google.analytics.data.v1beta
|
|
39419
|
+
* @interface IListAudienceExportsResponse
|
|
39420
|
+
* @property {Array.<google.analytics.data.v1beta.IAudienceExport>|null} [audienceExports] ListAudienceExportsResponse audienceExports
|
|
39421
|
+
* @property {string|null} [nextPageToken] ListAudienceExportsResponse nextPageToken
|
|
39422
|
+
*/
|
|
39423
|
+
|
|
39424
|
+
/**
|
|
39425
|
+
* Constructs a new ListAudienceExportsResponse.
|
|
39426
|
+
* @memberof google.analytics.data.v1beta
|
|
39427
|
+
* @classdesc Represents a ListAudienceExportsResponse.
|
|
39428
|
+
* @implements IListAudienceExportsResponse
|
|
39429
|
+
* @constructor
|
|
39430
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsResponse=} [properties] Properties to set
|
|
39431
|
+
*/
|
|
39432
|
+
function ListAudienceExportsResponse(properties) {
|
|
39433
|
+
this.audienceExports = [];
|
|
39434
|
+
if (properties)
|
|
39435
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39436
|
+
if (properties[keys[i]] != null)
|
|
39437
|
+
this[keys[i]] = properties[keys[i]];
|
|
39438
|
+
}
|
|
39439
|
+
|
|
39440
|
+
/**
|
|
39441
|
+
* ListAudienceExportsResponse audienceExports.
|
|
39442
|
+
* @member {Array.<google.analytics.data.v1beta.IAudienceExport>} audienceExports
|
|
39443
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39444
|
+
* @instance
|
|
39445
|
+
*/
|
|
39446
|
+
ListAudienceExportsResponse.prototype.audienceExports = $util.emptyArray;
|
|
39447
|
+
|
|
39448
|
+
/**
|
|
39449
|
+
* ListAudienceExportsResponse nextPageToken.
|
|
39450
|
+
* @member {string|null|undefined} nextPageToken
|
|
39451
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39452
|
+
* @instance
|
|
39453
|
+
*/
|
|
39454
|
+
ListAudienceExportsResponse.prototype.nextPageToken = null;
|
|
39455
|
+
|
|
39456
|
+
// OneOf field names bound to virtual getters and setters
|
|
39457
|
+
var $oneOfFields;
|
|
39458
|
+
|
|
39459
|
+
/**
|
|
39460
|
+
* ListAudienceExportsResponse _nextPageToken.
|
|
39461
|
+
* @member {"nextPageToken"|undefined} _nextPageToken
|
|
39462
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39463
|
+
* @instance
|
|
39464
|
+
*/
|
|
39465
|
+
Object.defineProperty(ListAudienceExportsResponse.prototype, "_nextPageToken", {
|
|
39466
|
+
get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]),
|
|
39467
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
39468
|
+
});
|
|
39469
|
+
|
|
39470
|
+
/**
|
|
39471
|
+
* Creates a new ListAudienceExportsResponse instance using the specified properties.
|
|
39472
|
+
* @function create
|
|
39473
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39474
|
+
* @static
|
|
39475
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsResponse=} [properties] Properties to set
|
|
39476
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsResponse} ListAudienceExportsResponse instance
|
|
39477
|
+
*/
|
|
39478
|
+
ListAudienceExportsResponse.create = function create(properties) {
|
|
39479
|
+
return new ListAudienceExportsResponse(properties);
|
|
39480
|
+
};
|
|
39481
|
+
|
|
39482
|
+
/**
|
|
39483
|
+
* Encodes the specified ListAudienceExportsResponse message. Does not implicitly {@link google.analytics.data.v1beta.ListAudienceExportsResponse.verify|verify} messages.
|
|
39484
|
+
* @function encode
|
|
39485
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39486
|
+
* @static
|
|
39487
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsResponse} message ListAudienceExportsResponse message or plain object to encode
|
|
39488
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39489
|
+
* @returns {$protobuf.Writer} Writer
|
|
39490
|
+
*/
|
|
39491
|
+
ListAudienceExportsResponse.encode = function encode(message, writer) {
|
|
39492
|
+
if (!writer)
|
|
39493
|
+
writer = $Writer.create();
|
|
39494
|
+
if (message.audienceExports != null && message.audienceExports.length)
|
|
39495
|
+
for (var i = 0; i < message.audienceExports.length; ++i)
|
|
39496
|
+
$root.google.analytics.data.v1beta.AudienceExport.encode(message.audienceExports[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
39497
|
+
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
39498
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
39499
|
+
return writer;
|
|
39500
|
+
};
|
|
39501
|
+
|
|
39502
|
+
/**
|
|
39503
|
+
* Encodes the specified ListAudienceExportsResponse message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.ListAudienceExportsResponse.verify|verify} messages.
|
|
39504
|
+
* @function encodeDelimited
|
|
39505
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39506
|
+
* @static
|
|
39507
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsResponse} message ListAudienceExportsResponse message or plain object to encode
|
|
39508
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39509
|
+
* @returns {$protobuf.Writer} Writer
|
|
39510
|
+
*/
|
|
39511
|
+
ListAudienceExportsResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39512
|
+
return this.encode(message, writer).ldelim();
|
|
39513
|
+
};
|
|
39514
|
+
|
|
39515
|
+
/**
|
|
39516
|
+
* Decodes a ListAudienceExportsResponse message from the specified reader or buffer.
|
|
39517
|
+
* @function decode
|
|
39518
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39519
|
+
* @static
|
|
39520
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39521
|
+
* @param {number} [length] Message length if known beforehand
|
|
39522
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsResponse} ListAudienceExportsResponse
|
|
39523
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39524
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39525
|
+
*/
|
|
39526
|
+
ListAudienceExportsResponse.decode = function decode(reader, length) {
|
|
39527
|
+
if (!(reader instanceof $Reader))
|
|
39528
|
+
reader = $Reader.create(reader);
|
|
39529
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.ListAudienceExportsResponse();
|
|
39530
|
+
while (reader.pos < end) {
|
|
39531
|
+
var tag = reader.uint32();
|
|
39532
|
+
switch (tag >>> 3) {
|
|
39533
|
+
case 1: {
|
|
39534
|
+
if (!(message.audienceExports && message.audienceExports.length))
|
|
39535
|
+
message.audienceExports = [];
|
|
39536
|
+
message.audienceExports.push($root.google.analytics.data.v1beta.AudienceExport.decode(reader, reader.uint32()));
|
|
39537
|
+
break;
|
|
39538
|
+
}
|
|
39539
|
+
case 2: {
|
|
39540
|
+
message.nextPageToken = reader.string();
|
|
39541
|
+
break;
|
|
39542
|
+
}
|
|
39543
|
+
default:
|
|
39544
|
+
reader.skipType(tag & 7);
|
|
39545
|
+
break;
|
|
39546
|
+
}
|
|
39547
|
+
}
|
|
39548
|
+
return message;
|
|
39549
|
+
};
|
|
39550
|
+
|
|
39551
|
+
/**
|
|
39552
|
+
* Decodes a ListAudienceExportsResponse message from the specified reader or buffer, length delimited.
|
|
39553
|
+
* @function decodeDelimited
|
|
39554
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39555
|
+
* @static
|
|
39556
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39557
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsResponse} ListAudienceExportsResponse
|
|
39558
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39559
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39560
|
+
*/
|
|
39561
|
+
ListAudienceExportsResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
39562
|
+
if (!(reader instanceof $Reader))
|
|
39563
|
+
reader = new $Reader(reader);
|
|
39564
|
+
return this.decode(reader, reader.uint32());
|
|
39565
|
+
};
|
|
39566
|
+
|
|
39567
|
+
/**
|
|
39568
|
+
* Verifies a ListAudienceExportsResponse message.
|
|
39569
|
+
* @function verify
|
|
39570
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39571
|
+
* @static
|
|
39572
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39573
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39574
|
+
*/
|
|
39575
|
+
ListAudienceExportsResponse.verify = function verify(message) {
|
|
39576
|
+
if (typeof message !== "object" || message === null)
|
|
39577
|
+
return "object expected";
|
|
39578
|
+
var properties = {};
|
|
39579
|
+
if (message.audienceExports != null && message.hasOwnProperty("audienceExports")) {
|
|
39580
|
+
if (!Array.isArray(message.audienceExports))
|
|
39581
|
+
return "audienceExports: array expected";
|
|
39582
|
+
for (var i = 0; i < message.audienceExports.length; ++i) {
|
|
39583
|
+
var error = $root.google.analytics.data.v1beta.AudienceExport.verify(message.audienceExports[i]);
|
|
39584
|
+
if (error)
|
|
39585
|
+
return "audienceExports." + error;
|
|
39586
|
+
}
|
|
39587
|
+
}
|
|
39588
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) {
|
|
39589
|
+
properties._nextPageToken = 1;
|
|
39590
|
+
if (!$util.isString(message.nextPageToken))
|
|
39591
|
+
return "nextPageToken: string expected";
|
|
39592
|
+
}
|
|
39593
|
+
return null;
|
|
39594
|
+
};
|
|
39595
|
+
|
|
39596
|
+
/**
|
|
39597
|
+
* Creates a ListAudienceExportsResponse message from a plain object. Also converts values to their respective internal types.
|
|
39598
|
+
* @function fromObject
|
|
39599
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39600
|
+
* @static
|
|
39601
|
+
* @param {Object.<string,*>} object Plain object
|
|
39602
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsResponse} ListAudienceExportsResponse
|
|
39603
|
+
*/
|
|
39604
|
+
ListAudienceExportsResponse.fromObject = function fromObject(object) {
|
|
39605
|
+
if (object instanceof $root.google.analytics.data.v1beta.ListAudienceExportsResponse)
|
|
39606
|
+
return object;
|
|
39607
|
+
var message = new $root.google.analytics.data.v1beta.ListAudienceExportsResponse();
|
|
39608
|
+
if (object.audienceExports) {
|
|
39609
|
+
if (!Array.isArray(object.audienceExports))
|
|
39610
|
+
throw TypeError(".google.analytics.data.v1beta.ListAudienceExportsResponse.audienceExports: array expected");
|
|
39611
|
+
message.audienceExports = [];
|
|
39612
|
+
for (var i = 0; i < object.audienceExports.length; ++i) {
|
|
39613
|
+
if (typeof object.audienceExports[i] !== "object")
|
|
39614
|
+
throw TypeError(".google.analytics.data.v1beta.ListAudienceExportsResponse.audienceExports: object expected");
|
|
39615
|
+
message.audienceExports[i] = $root.google.analytics.data.v1beta.AudienceExport.fromObject(object.audienceExports[i]);
|
|
39616
|
+
}
|
|
39617
|
+
}
|
|
39618
|
+
if (object.nextPageToken != null)
|
|
39619
|
+
message.nextPageToken = String(object.nextPageToken);
|
|
39620
|
+
return message;
|
|
39621
|
+
};
|
|
39622
|
+
|
|
39623
|
+
/**
|
|
39624
|
+
* Creates a plain object from a ListAudienceExportsResponse message. Also converts values to other types if specified.
|
|
39625
|
+
* @function toObject
|
|
39626
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39627
|
+
* @static
|
|
39628
|
+
* @param {google.analytics.data.v1beta.ListAudienceExportsResponse} message ListAudienceExportsResponse
|
|
39629
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39630
|
+
* @returns {Object.<string,*>} Plain object
|
|
39631
|
+
*/
|
|
39632
|
+
ListAudienceExportsResponse.toObject = function toObject(message, options) {
|
|
39633
|
+
if (!options)
|
|
39634
|
+
options = {};
|
|
39635
|
+
var object = {};
|
|
39636
|
+
if (options.arrays || options.defaults)
|
|
39637
|
+
object.audienceExports = [];
|
|
39638
|
+
if (message.audienceExports && message.audienceExports.length) {
|
|
39639
|
+
object.audienceExports = [];
|
|
39640
|
+
for (var j = 0; j < message.audienceExports.length; ++j)
|
|
39641
|
+
object.audienceExports[j] = $root.google.analytics.data.v1beta.AudienceExport.toObject(message.audienceExports[j], options);
|
|
39642
|
+
}
|
|
39643
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) {
|
|
39644
|
+
object.nextPageToken = message.nextPageToken;
|
|
39645
|
+
if (options.oneofs)
|
|
39646
|
+
object._nextPageToken = "nextPageToken";
|
|
39647
|
+
}
|
|
39648
|
+
return object;
|
|
39649
|
+
};
|
|
39650
|
+
|
|
39651
|
+
/**
|
|
39652
|
+
* Converts this ListAudienceExportsResponse to JSON.
|
|
39653
|
+
* @function toJSON
|
|
39654
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39655
|
+
* @instance
|
|
39656
|
+
* @returns {Object.<string,*>} JSON object
|
|
39657
|
+
*/
|
|
39658
|
+
ListAudienceExportsResponse.prototype.toJSON = function toJSON() {
|
|
39659
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39660
|
+
};
|
|
39661
|
+
|
|
39662
|
+
/**
|
|
39663
|
+
* Gets the default type url for ListAudienceExportsResponse
|
|
39664
|
+
* @function getTypeUrl
|
|
39665
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39666
|
+
* @static
|
|
39667
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
39668
|
+
* @returns {string} The default type url
|
|
39669
|
+
*/
|
|
39670
|
+
ListAudienceExportsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
39671
|
+
if (typeUrlPrefix === undefined) {
|
|
39672
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
39673
|
+
}
|
|
39674
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.ListAudienceExportsResponse";
|
|
39675
|
+
};
|
|
39676
|
+
|
|
39677
|
+
return ListAudienceExportsResponse;
|
|
39678
|
+
})();
|
|
39679
|
+
|
|
39680
|
+
v1beta.CreateAudienceExportRequest = (function() {
|
|
39681
|
+
|
|
39682
|
+
/**
|
|
39683
|
+
* Properties of a CreateAudienceExportRequest.
|
|
39684
|
+
* @memberof google.analytics.data.v1beta
|
|
39685
|
+
* @interface ICreateAudienceExportRequest
|
|
39686
|
+
* @property {string|null} [parent] CreateAudienceExportRequest parent
|
|
39687
|
+
* @property {google.analytics.data.v1beta.IAudienceExport|null} [audienceExport] CreateAudienceExportRequest audienceExport
|
|
39688
|
+
*/
|
|
39689
|
+
|
|
39690
|
+
/**
|
|
39691
|
+
* Constructs a new CreateAudienceExportRequest.
|
|
39692
|
+
* @memberof google.analytics.data.v1beta
|
|
39693
|
+
* @classdesc Represents a CreateAudienceExportRequest.
|
|
39694
|
+
* @implements ICreateAudienceExportRequest
|
|
39695
|
+
* @constructor
|
|
39696
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest=} [properties] Properties to set
|
|
39697
|
+
*/
|
|
39698
|
+
function CreateAudienceExportRequest(properties) {
|
|
39699
|
+
if (properties)
|
|
39700
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39701
|
+
if (properties[keys[i]] != null)
|
|
39702
|
+
this[keys[i]] = properties[keys[i]];
|
|
39703
|
+
}
|
|
39704
|
+
|
|
39705
|
+
/**
|
|
39706
|
+
* CreateAudienceExportRequest parent.
|
|
39707
|
+
* @member {string} parent
|
|
39708
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39709
|
+
* @instance
|
|
39710
|
+
*/
|
|
39711
|
+
CreateAudienceExportRequest.prototype.parent = "";
|
|
39712
|
+
|
|
39713
|
+
/**
|
|
39714
|
+
* CreateAudienceExportRequest audienceExport.
|
|
39715
|
+
* @member {google.analytics.data.v1beta.IAudienceExport|null|undefined} audienceExport
|
|
39716
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39717
|
+
* @instance
|
|
39718
|
+
*/
|
|
39719
|
+
CreateAudienceExportRequest.prototype.audienceExport = null;
|
|
39720
|
+
|
|
39721
|
+
/**
|
|
39722
|
+
* Creates a new CreateAudienceExportRequest instance using the specified properties.
|
|
39723
|
+
* @function create
|
|
39724
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39725
|
+
* @static
|
|
39726
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest=} [properties] Properties to set
|
|
39727
|
+
* @returns {google.analytics.data.v1beta.CreateAudienceExportRequest} CreateAudienceExportRequest instance
|
|
39728
|
+
*/
|
|
39729
|
+
CreateAudienceExportRequest.create = function create(properties) {
|
|
39730
|
+
return new CreateAudienceExportRequest(properties);
|
|
39731
|
+
};
|
|
39732
|
+
|
|
39733
|
+
/**
|
|
39734
|
+
* Encodes the specified CreateAudienceExportRequest message. Does not implicitly {@link google.analytics.data.v1beta.CreateAudienceExportRequest.verify|verify} messages.
|
|
39735
|
+
* @function encode
|
|
39736
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39737
|
+
* @static
|
|
39738
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest} message CreateAudienceExportRequest message or plain object to encode
|
|
39739
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39740
|
+
* @returns {$protobuf.Writer} Writer
|
|
39741
|
+
*/
|
|
39742
|
+
CreateAudienceExportRequest.encode = function encode(message, writer) {
|
|
39743
|
+
if (!writer)
|
|
39744
|
+
writer = $Writer.create();
|
|
39745
|
+
if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
|
|
39746
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
|
39747
|
+
if (message.audienceExport != null && Object.hasOwnProperty.call(message, "audienceExport"))
|
|
39748
|
+
$root.google.analytics.data.v1beta.AudienceExport.encode(message.audienceExport, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
39749
|
+
return writer;
|
|
39750
|
+
};
|
|
39751
|
+
|
|
39752
|
+
/**
|
|
39753
|
+
* Encodes the specified CreateAudienceExportRequest message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.CreateAudienceExportRequest.verify|verify} messages.
|
|
39754
|
+
* @function encodeDelimited
|
|
39755
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39756
|
+
* @static
|
|
39757
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest} message CreateAudienceExportRequest message or plain object to encode
|
|
39758
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39759
|
+
* @returns {$protobuf.Writer} Writer
|
|
39760
|
+
*/
|
|
39761
|
+
CreateAudienceExportRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39762
|
+
return this.encode(message, writer).ldelim();
|
|
39763
|
+
};
|
|
39764
|
+
|
|
39765
|
+
/**
|
|
39766
|
+
* Decodes a CreateAudienceExportRequest message from the specified reader or buffer.
|
|
39767
|
+
* @function decode
|
|
39768
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39769
|
+
* @static
|
|
39770
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39771
|
+
* @param {number} [length] Message length if known beforehand
|
|
39772
|
+
* @returns {google.analytics.data.v1beta.CreateAudienceExportRequest} CreateAudienceExportRequest
|
|
39773
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39774
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39775
|
+
*/
|
|
39776
|
+
CreateAudienceExportRequest.decode = function decode(reader, length) {
|
|
39777
|
+
if (!(reader instanceof $Reader))
|
|
39778
|
+
reader = $Reader.create(reader);
|
|
39779
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.CreateAudienceExportRequest();
|
|
39780
|
+
while (reader.pos < end) {
|
|
39781
|
+
var tag = reader.uint32();
|
|
39782
|
+
switch (tag >>> 3) {
|
|
39783
|
+
case 1: {
|
|
39784
|
+
message.parent = reader.string();
|
|
39785
|
+
break;
|
|
39786
|
+
}
|
|
39787
|
+
case 2: {
|
|
39788
|
+
message.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.decode(reader, reader.uint32());
|
|
39789
|
+
break;
|
|
39790
|
+
}
|
|
39791
|
+
default:
|
|
39792
|
+
reader.skipType(tag & 7);
|
|
39793
|
+
break;
|
|
39794
|
+
}
|
|
39795
|
+
}
|
|
39796
|
+
return message;
|
|
39797
|
+
};
|
|
39798
|
+
|
|
39799
|
+
/**
|
|
39800
|
+
* Decodes a CreateAudienceExportRequest message from the specified reader or buffer, length delimited.
|
|
39801
|
+
* @function decodeDelimited
|
|
39802
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39803
|
+
* @static
|
|
39804
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39805
|
+
* @returns {google.analytics.data.v1beta.CreateAudienceExportRequest} CreateAudienceExportRequest
|
|
39806
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39807
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39808
|
+
*/
|
|
39809
|
+
CreateAudienceExportRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
39810
|
+
if (!(reader instanceof $Reader))
|
|
39811
|
+
reader = new $Reader(reader);
|
|
39812
|
+
return this.decode(reader, reader.uint32());
|
|
39813
|
+
};
|
|
39814
|
+
|
|
39815
|
+
/**
|
|
39816
|
+
* Verifies a CreateAudienceExportRequest message.
|
|
39817
|
+
* @function verify
|
|
39818
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39819
|
+
* @static
|
|
39820
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39821
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39822
|
+
*/
|
|
39823
|
+
CreateAudienceExportRequest.verify = function verify(message) {
|
|
39824
|
+
if (typeof message !== "object" || message === null)
|
|
39825
|
+
return "object expected";
|
|
39826
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
39827
|
+
if (!$util.isString(message.parent))
|
|
39828
|
+
return "parent: string expected";
|
|
39829
|
+
if (message.audienceExport != null && message.hasOwnProperty("audienceExport")) {
|
|
39830
|
+
var error = $root.google.analytics.data.v1beta.AudienceExport.verify(message.audienceExport);
|
|
39831
|
+
if (error)
|
|
39832
|
+
return "audienceExport." + error;
|
|
39833
|
+
}
|
|
39834
|
+
return null;
|
|
39835
|
+
};
|
|
39836
|
+
|
|
39837
|
+
/**
|
|
39838
|
+
* Creates a CreateAudienceExportRequest message from a plain object. Also converts values to their respective internal types.
|
|
39839
|
+
* @function fromObject
|
|
39840
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39841
|
+
* @static
|
|
39842
|
+
* @param {Object.<string,*>} object Plain object
|
|
39843
|
+
* @returns {google.analytics.data.v1beta.CreateAudienceExportRequest} CreateAudienceExportRequest
|
|
39844
|
+
*/
|
|
39845
|
+
CreateAudienceExportRequest.fromObject = function fromObject(object) {
|
|
39846
|
+
if (object instanceof $root.google.analytics.data.v1beta.CreateAudienceExportRequest)
|
|
39847
|
+
return object;
|
|
39848
|
+
var message = new $root.google.analytics.data.v1beta.CreateAudienceExportRequest();
|
|
39849
|
+
if (object.parent != null)
|
|
39850
|
+
message.parent = String(object.parent);
|
|
39851
|
+
if (object.audienceExport != null) {
|
|
39852
|
+
if (typeof object.audienceExport !== "object")
|
|
39853
|
+
throw TypeError(".google.analytics.data.v1beta.CreateAudienceExportRequest.audienceExport: object expected");
|
|
39854
|
+
message.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.fromObject(object.audienceExport);
|
|
39855
|
+
}
|
|
39856
|
+
return message;
|
|
39857
|
+
};
|
|
39858
|
+
|
|
39859
|
+
/**
|
|
39860
|
+
* Creates a plain object from a CreateAudienceExportRequest message. Also converts values to other types if specified.
|
|
39861
|
+
* @function toObject
|
|
39862
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39863
|
+
* @static
|
|
39864
|
+
* @param {google.analytics.data.v1beta.CreateAudienceExportRequest} message CreateAudienceExportRequest
|
|
39865
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39866
|
+
* @returns {Object.<string,*>} Plain object
|
|
39867
|
+
*/
|
|
39868
|
+
CreateAudienceExportRequest.toObject = function toObject(message, options) {
|
|
39869
|
+
if (!options)
|
|
39870
|
+
options = {};
|
|
39871
|
+
var object = {};
|
|
39872
|
+
if (options.defaults) {
|
|
39873
|
+
object.parent = "";
|
|
39874
|
+
object.audienceExport = null;
|
|
39875
|
+
}
|
|
39876
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
39877
|
+
object.parent = message.parent;
|
|
39878
|
+
if (message.audienceExport != null && message.hasOwnProperty("audienceExport"))
|
|
39879
|
+
object.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.toObject(message.audienceExport, options);
|
|
39880
|
+
return object;
|
|
39881
|
+
};
|
|
39882
|
+
|
|
39883
|
+
/**
|
|
39884
|
+
* Converts this CreateAudienceExportRequest to JSON.
|
|
39885
|
+
* @function toJSON
|
|
39886
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39887
|
+
* @instance
|
|
39888
|
+
* @returns {Object.<string,*>} JSON object
|
|
39889
|
+
*/
|
|
39890
|
+
CreateAudienceExportRequest.prototype.toJSON = function toJSON() {
|
|
39891
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39892
|
+
};
|
|
39893
|
+
|
|
39894
|
+
/**
|
|
39895
|
+
* Gets the default type url for CreateAudienceExportRequest
|
|
39896
|
+
* @function getTypeUrl
|
|
39897
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39898
|
+
* @static
|
|
39899
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
39900
|
+
* @returns {string} The default type url
|
|
39901
|
+
*/
|
|
39902
|
+
CreateAudienceExportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
39903
|
+
if (typeUrlPrefix === undefined) {
|
|
39904
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
39905
|
+
}
|
|
39906
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.CreateAudienceExportRequest";
|
|
39907
|
+
};
|
|
39908
|
+
|
|
39909
|
+
return CreateAudienceExportRequest;
|
|
39910
|
+
})();
|
|
39911
|
+
|
|
39912
|
+
v1beta.AudienceExport = (function() {
|
|
39913
|
+
|
|
39914
|
+
/**
|
|
39915
|
+
* Properties of an AudienceExport.
|
|
39916
|
+
* @memberof google.analytics.data.v1beta
|
|
39917
|
+
* @interface IAudienceExport
|
|
39918
|
+
* @property {string|null} [name] AudienceExport name
|
|
39919
|
+
* @property {string|null} [audience] AudienceExport audience
|
|
39920
|
+
* @property {string|null} [audienceDisplayName] AudienceExport audienceDisplayName
|
|
39921
|
+
* @property {Array.<google.analytics.data.v1beta.IAudienceDimension>|null} [dimensions] AudienceExport dimensions
|
|
39922
|
+
* @property {google.analytics.data.v1beta.AudienceExport.State|null} [state] AudienceExport state
|
|
39923
|
+
* @property {google.protobuf.ITimestamp|null} [beginCreatingTime] AudienceExport beginCreatingTime
|
|
39924
|
+
* @property {number|null} [creationQuotaTokensCharged] AudienceExport creationQuotaTokensCharged
|
|
39925
|
+
* @property {number|null} [rowCount] AudienceExport rowCount
|
|
39926
|
+
* @property {string|null} [errorMessage] AudienceExport errorMessage
|
|
39927
|
+
* @property {number|null} [percentageCompleted] AudienceExport percentageCompleted
|
|
39928
|
+
*/
|
|
39929
|
+
|
|
39930
|
+
/**
|
|
39931
|
+
* Constructs a new AudienceExport.
|
|
39932
|
+
* @memberof google.analytics.data.v1beta
|
|
39933
|
+
* @classdesc Represents an AudienceExport.
|
|
39934
|
+
* @implements IAudienceExport
|
|
39935
|
+
* @constructor
|
|
39936
|
+
* @param {google.analytics.data.v1beta.IAudienceExport=} [properties] Properties to set
|
|
39937
|
+
*/
|
|
39938
|
+
function AudienceExport(properties) {
|
|
39939
|
+
this.dimensions = [];
|
|
39940
|
+
if (properties)
|
|
39941
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39942
|
+
if (properties[keys[i]] != null)
|
|
39943
|
+
this[keys[i]] = properties[keys[i]];
|
|
39944
|
+
}
|
|
39945
|
+
|
|
39946
|
+
/**
|
|
39947
|
+
* AudienceExport name.
|
|
39948
|
+
* @member {string} name
|
|
39949
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39950
|
+
* @instance
|
|
39951
|
+
*/
|
|
39952
|
+
AudienceExport.prototype.name = "";
|
|
39953
|
+
|
|
39954
|
+
/**
|
|
39955
|
+
* AudienceExport audience.
|
|
39956
|
+
* @member {string} audience
|
|
39957
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39958
|
+
* @instance
|
|
39959
|
+
*/
|
|
39960
|
+
AudienceExport.prototype.audience = "";
|
|
39961
|
+
|
|
39962
|
+
/**
|
|
39963
|
+
* AudienceExport audienceDisplayName.
|
|
39964
|
+
* @member {string} audienceDisplayName
|
|
39965
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39966
|
+
* @instance
|
|
39967
|
+
*/
|
|
39968
|
+
AudienceExport.prototype.audienceDisplayName = "";
|
|
39969
|
+
|
|
39970
|
+
/**
|
|
39971
|
+
* AudienceExport dimensions.
|
|
39972
|
+
* @member {Array.<google.analytics.data.v1beta.IAudienceDimension>} dimensions
|
|
39973
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39974
|
+
* @instance
|
|
39975
|
+
*/
|
|
39976
|
+
AudienceExport.prototype.dimensions = $util.emptyArray;
|
|
39977
|
+
|
|
39978
|
+
/**
|
|
39979
|
+
* AudienceExport state.
|
|
39980
|
+
* @member {google.analytics.data.v1beta.AudienceExport.State|null|undefined} state
|
|
39981
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39982
|
+
* @instance
|
|
39983
|
+
*/
|
|
39984
|
+
AudienceExport.prototype.state = null;
|
|
39985
|
+
|
|
39986
|
+
/**
|
|
39987
|
+
* AudienceExport beginCreatingTime.
|
|
39988
|
+
* @member {google.protobuf.ITimestamp|null|undefined} beginCreatingTime
|
|
39989
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39990
|
+
* @instance
|
|
39991
|
+
*/
|
|
39992
|
+
AudienceExport.prototype.beginCreatingTime = null;
|
|
39993
|
+
|
|
39994
|
+
/**
|
|
39995
|
+
* AudienceExport creationQuotaTokensCharged.
|
|
39996
|
+
* @member {number} creationQuotaTokensCharged
|
|
39997
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39998
|
+
* @instance
|
|
39999
|
+
*/
|
|
40000
|
+
AudienceExport.prototype.creationQuotaTokensCharged = 0;
|
|
40001
|
+
|
|
40002
|
+
/**
|
|
40003
|
+
* AudienceExport rowCount.
|
|
40004
|
+
* @member {number|null|undefined} rowCount
|
|
40005
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40006
|
+
* @instance
|
|
40007
|
+
*/
|
|
40008
|
+
AudienceExport.prototype.rowCount = null;
|
|
40009
|
+
|
|
40010
|
+
/**
|
|
40011
|
+
* AudienceExport errorMessage.
|
|
40012
|
+
* @member {string|null|undefined} errorMessage
|
|
40013
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40014
|
+
* @instance
|
|
40015
|
+
*/
|
|
40016
|
+
AudienceExport.prototype.errorMessage = null;
|
|
40017
|
+
|
|
40018
|
+
/**
|
|
40019
|
+
* AudienceExport percentageCompleted.
|
|
40020
|
+
* @member {number|null|undefined} percentageCompleted
|
|
40021
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40022
|
+
* @instance
|
|
40023
|
+
*/
|
|
40024
|
+
AudienceExport.prototype.percentageCompleted = null;
|
|
40025
|
+
|
|
40026
|
+
// OneOf field names bound to virtual getters and setters
|
|
40027
|
+
var $oneOfFields;
|
|
40028
|
+
|
|
40029
|
+
/**
|
|
40030
|
+
* AudienceExport _state.
|
|
40031
|
+
* @member {"state"|undefined} _state
|
|
40032
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40033
|
+
* @instance
|
|
40034
|
+
*/
|
|
40035
|
+
Object.defineProperty(AudienceExport.prototype, "_state", {
|
|
40036
|
+
get: $util.oneOfGetter($oneOfFields = ["state"]),
|
|
40037
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
40038
|
+
});
|
|
40039
|
+
|
|
40040
|
+
/**
|
|
40041
|
+
* AudienceExport _beginCreatingTime.
|
|
40042
|
+
* @member {"beginCreatingTime"|undefined} _beginCreatingTime
|
|
40043
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40044
|
+
* @instance
|
|
40045
|
+
*/
|
|
40046
|
+
Object.defineProperty(AudienceExport.prototype, "_beginCreatingTime", {
|
|
40047
|
+
get: $util.oneOfGetter($oneOfFields = ["beginCreatingTime"]),
|
|
40048
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
40049
|
+
});
|
|
40050
|
+
|
|
40051
|
+
/**
|
|
40052
|
+
* AudienceExport _rowCount.
|
|
40053
|
+
* @member {"rowCount"|undefined} _rowCount
|
|
40054
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40055
|
+
* @instance
|
|
40056
|
+
*/
|
|
40057
|
+
Object.defineProperty(AudienceExport.prototype, "_rowCount", {
|
|
40058
|
+
get: $util.oneOfGetter($oneOfFields = ["rowCount"]),
|
|
40059
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
40060
|
+
});
|
|
40061
|
+
|
|
40062
|
+
/**
|
|
40063
|
+
* AudienceExport _errorMessage.
|
|
40064
|
+
* @member {"errorMessage"|undefined} _errorMessage
|
|
40065
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40066
|
+
* @instance
|
|
40067
|
+
*/
|
|
40068
|
+
Object.defineProperty(AudienceExport.prototype, "_errorMessage", {
|
|
40069
|
+
get: $util.oneOfGetter($oneOfFields = ["errorMessage"]),
|
|
40070
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
40071
|
+
});
|
|
40072
|
+
|
|
40073
|
+
/**
|
|
40074
|
+
* AudienceExport _percentageCompleted.
|
|
40075
|
+
* @member {"percentageCompleted"|undefined} _percentageCompleted
|
|
40076
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40077
|
+
* @instance
|
|
40078
|
+
*/
|
|
40079
|
+
Object.defineProperty(AudienceExport.prototype, "_percentageCompleted", {
|
|
40080
|
+
get: $util.oneOfGetter($oneOfFields = ["percentageCompleted"]),
|
|
40081
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
40082
|
+
});
|
|
40083
|
+
|
|
40084
|
+
/**
|
|
40085
|
+
* Creates a new AudienceExport instance using the specified properties.
|
|
40086
|
+
* @function create
|
|
40087
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40088
|
+
* @static
|
|
40089
|
+
* @param {google.analytics.data.v1beta.IAudienceExport=} [properties] Properties to set
|
|
40090
|
+
* @returns {google.analytics.data.v1beta.AudienceExport} AudienceExport instance
|
|
40091
|
+
*/
|
|
40092
|
+
AudienceExport.create = function create(properties) {
|
|
40093
|
+
return new AudienceExport(properties);
|
|
40094
|
+
};
|
|
40095
|
+
|
|
40096
|
+
/**
|
|
40097
|
+
* Encodes the specified AudienceExport message. Does not implicitly {@link google.analytics.data.v1beta.AudienceExport.verify|verify} messages.
|
|
40098
|
+
* @function encode
|
|
40099
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40100
|
+
* @static
|
|
40101
|
+
* @param {google.analytics.data.v1beta.IAudienceExport} message AudienceExport message or plain object to encode
|
|
40102
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40103
|
+
* @returns {$protobuf.Writer} Writer
|
|
40104
|
+
*/
|
|
40105
|
+
AudienceExport.encode = function encode(message, writer) {
|
|
40106
|
+
if (!writer)
|
|
40107
|
+
writer = $Writer.create();
|
|
40108
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
40109
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
40110
|
+
if (message.audience != null && Object.hasOwnProperty.call(message, "audience"))
|
|
40111
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.audience);
|
|
40112
|
+
if (message.audienceDisplayName != null && Object.hasOwnProperty.call(message, "audienceDisplayName"))
|
|
40113
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.audienceDisplayName);
|
|
40114
|
+
if (message.dimensions != null && message.dimensions.length)
|
|
40115
|
+
for (var i = 0; i < message.dimensions.length; ++i)
|
|
40116
|
+
$root.google.analytics.data.v1beta.AudienceDimension.encode(message.dimensions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
40117
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
40118
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
|
|
40119
|
+
if (message.beginCreatingTime != null && Object.hasOwnProperty.call(message, "beginCreatingTime"))
|
|
40120
|
+
$root.google.protobuf.Timestamp.encode(message.beginCreatingTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
40121
|
+
if (message.creationQuotaTokensCharged != null && Object.hasOwnProperty.call(message, "creationQuotaTokensCharged"))
|
|
40122
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.creationQuotaTokensCharged);
|
|
40123
|
+
if (message.rowCount != null && Object.hasOwnProperty.call(message, "rowCount"))
|
|
40124
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.rowCount);
|
|
40125
|
+
if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
|
|
40126
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.errorMessage);
|
|
40127
|
+
if (message.percentageCompleted != null && Object.hasOwnProperty.call(message, "percentageCompleted"))
|
|
40128
|
+
writer.uint32(/* id 10, wireType 1 =*/81).double(message.percentageCompleted);
|
|
40129
|
+
return writer;
|
|
40130
|
+
};
|
|
40131
|
+
|
|
40132
|
+
/**
|
|
40133
|
+
* Encodes the specified AudienceExport message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.AudienceExport.verify|verify} messages.
|
|
40134
|
+
* @function encodeDelimited
|
|
40135
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40136
|
+
* @static
|
|
40137
|
+
* @param {google.analytics.data.v1beta.IAudienceExport} message AudienceExport message or plain object to encode
|
|
40138
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40139
|
+
* @returns {$protobuf.Writer} Writer
|
|
40140
|
+
*/
|
|
40141
|
+
AudienceExport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40142
|
+
return this.encode(message, writer).ldelim();
|
|
40143
|
+
};
|
|
40144
|
+
|
|
40145
|
+
/**
|
|
40146
|
+
* Decodes an AudienceExport message from the specified reader or buffer.
|
|
40147
|
+
* @function decode
|
|
40148
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40149
|
+
* @static
|
|
40150
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40151
|
+
* @param {number} [length] Message length if known beforehand
|
|
40152
|
+
* @returns {google.analytics.data.v1beta.AudienceExport} AudienceExport
|
|
40153
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40154
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40155
|
+
*/
|
|
40156
|
+
AudienceExport.decode = function decode(reader, length) {
|
|
40157
|
+
if (!(reader instanceof $Reader))
|
|
40158
|
+
reader = $Reader.create(reader);
|
|
40159
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.AudienceExport();
|
|
40160
|
+
while (reader.pos < end) {
|
|
40161
|
+
var tag = reader.uint32();
|
|
40162
|
+
switch (tag >>> 3) {
|
|
40163
|
+
case 1: {
|
|
40164
|
+
message.name = reader.string();
|
|
40165
|
+
break;
|
|
40166
|
+
}
|
|
40167
|
+
case 2: {
|
|
40168
|
+
message.audience = reader.string();
|
|
40169
|
+
break;
|
|
40170
|
+
}
|
|
40171
|
+
case 3: {
|
|
40172
|
+
message.audienceDisplayName = reader.string();
|
|
40173
|
+
break;
|
|
40174
|
+
}
|
|
40175
|
+
case 4: {
|
|
40176
|
+
if (!(message.dimensions && message.dimensions.length))
|
|
40177
|
+
message.dimensions = [];
|
|
40178
|
+
message.dimensions.push($root.google.analytics.data.v1beta.AudienceDimension.decode(reader, reader.uint32()));
|
|
40179
|
+
break;
|
|
40180
|
+
}
|
|
40181
|
+
case 5: {
|
|
40182
|
+
message.state = reader.int32();
|
|
40183
|
+
break;
|
|
40184
|
+
}
|
|
40185
|
+
case 6: {
|
|
40186
|
+
message.beginCreatingTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
40187
|
+
break;
|
|
40188
|
+
}
|
|
40189
|
+
case 7: {
|
|
40190
|
+
message.creationQuotaTokensCharged = reader.int32();
|
|
40191
|
+
break;
|
|
40192
|
+
}
|
|
40193
|
+
case 8: {
|
|
40194
|
+
message.rowCount = reader.int32();
|
|
40195
|
+
break;
|
|
40196
|
+
}
|
|
40197
|
+
case 9: {
|
|
40198
|
+
message.errorMessage = reader.string();
|
|
40199
|
+
break;
|
|
40200
|
+
}
|
|
40201
|
+
case 10: {
|
|
40202
|
+
message.percentageCompleted = reader.double();
|
|
40203
|
+
break;
|
|
40204
|
+
}
|
|
40205
|
+
default:
|
|
40206
|
+
reader.skipType(tag & 7);
|
|
40207
|
+
break;
|
|
40208
|
+
}
|
|
40209
|
+
}
|
|
40210
|
+
return message;
|
|
40211
|
+
};
|
|
40212
|
+
|
|
40213
|
+
/**
|
|
40214
|
+
* Decodes an AudienceExport message from the specified reader or buffer, length delimited.
|
|
40215
|
+
* @function decodeDelimited
|
|
40216
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40217
|
+
* @static
|
|
40218
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40219
|
+
* @returns {google.analytics.data.v1beta.AudienceExport} AudienceExport
|
|
40220
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40221
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40222
|
+
*/
|
|
40223
|
+
AudienceExport.decodeDelimited = function decodeDelimited(reader) {
|
|
40224
|
+
if (!(reader instanceof $Reader))
|
|
40225
|
+
reader = new $Reader(reader);
|
|
40226
|
+
return this.decode(reader, reader.uint32());
|
|
40227
|
+
};
|
|
40228
|
+
|
|
40229
|
+
/**
|
|
40230
|
+
* Verifies an AudienceExport message.
|
|
40231
|
+
* @function verify
|
|
40232
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40233
|
+
* @static
|
|
40234
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40235
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40236
|
+
*/
|
|
40237
|
+
AudienceExport.verify = function verify(message) {
|
|
40238
|
+
if (typeof message !== "object" || message === null)
|
|
40239
|
+
return "object expected";
|
|
40240
|
+
var properties = {};
|
|
40241
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
40242
|
+
if (!$util.isString(message.name))
|
|
40243
|
+
return "name: string expected";
|
|
40244
|
+
if (message.audience != null && message.hasOwnProperty("audience"))
|
|
40245
|
+
if (!$util.isString(message.audience))
|
|
40246
|
+
return "audience: string expected";
|
|
40247
|
+
if (message.audienceDisplayName != null && message.hasOwnProperty("audienceDisplayName"))
|
|
40248
|
+
if (!$util.isString(message.audienceDisplayName))
|
|
40249
|
+
return "audienceDisplayName: string expected";
|
|
40250
|
+
if (message.dimensions != null && message.hasOwnProperty("dimensions")) {
|
|
40251
|
+
if (!Array.isArray(message.dimensions))
|
|
40252
|
+
return "dimensions: array expected";
|
|
40253
|
+
for (var i = 0; i < message.dimensions.length; ++i) {
|
|
40254
|
+
var error = $root.google.analytics.data.v1beta.AudienceDimension.verify(message.dimensions[i]);
|
|
40255
|
+
if (error)
|
|
40256
|
+
return "dimensions." + error;
|
|
40257
|
+
}
|
|
40258
|
+
}
|
|
40259
|
+
if (message.state != null && message.hasOwnProperty("state")) {
|
|
40260
|
+
properties._state = 1;
|
|
40261
|
+
switch (message.state) {
|
|
40262
|
+
default:
|
|
40263
|
+
return "state: enum value expected";
|
|
40264
|
+
case 0:
|
|
40265
|
+
case 1:
|
|
40266
|
+
case 2:
|
|
40267
|
+
case 3:
|
|
40268
|
+
break;
|
|
40269
|
+
}
|
|
40270
|
+
}
|
|
40271
|
+
if (message.beginCreatingTime != null && message.hasOwnProperty("beginCreatingTime")) {
|
|
40272
|
+
properties._beginCreatingTime = 1;
|
|
40273
|
+
{
|
|
40274
|
+
var error = $root.google.protobuf.Timestamp.verify(message.beginCreatingTime);
|
|
40275
|
+
if (error)
|
|
40276
|
+
return "beginCreatingTime." + error;
|
|
40277
|
+
}
|
|
40278
|
+
}
|
|
40279
|
+
if (message.creationQuotaTokensCharged != null && message.hasOwnProperty("creationQuotaTokensCharged"))
|
|
40280
|
+
if (!$util.isInteger(message.creationQuotaTokensCharged))
|
|
40281
|
+
return "creationQuotaTokensCharged: integer expected";
|
|
40282
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
40283
|
+
properties._rowCount = 1;
|
|
40284
|
+
if (!$util.isInteger(message.rowCount))
|
|
40285
|
+
return "rowCount: integer expected";
|
|
40286
|
+
}
|
|
40287
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) {
|
|
40288
|
+
properties._errorMessage = 1;
|
|
40289
|
+
if (!$util.isString(message.errorMessage))
|
|
40290
|
+
return "errorMessage: string expected";
|
|
40291
|
+
}
|
|
40292
|
+
if (message.percentageCompleted != null && message.hasOwnProperty("percentageCompleted")) {
|
|
40293
|
+
properties._percentageCompleted = 1;
|
|
40294
|
+
if (typeof message.percentageCompleted !== "number")
|
|
40295
|
+
return "percentageCompleted: number expected";
|
|
40296
|
+
}
|
|
40297
|
+
return null;
|
|
40298
|
+
};
|
|
40299
|
+
|
|
40300
|
+
/**
|
|
40301
|
+
* Creates an AudienceExport message from a plain object. Also converts values to their respective internal types.
|
|
40302
|
+
* @function fromObject
|
|
40303
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40304
|
+
* @static
|
|
40305
|
+
* @param {Object.<string,*>} object Plain object
|
|
40306
|
+
* @returns {google.analytics.data.v1beta.AudienceExport} AudienceExport
|
|
40307
|
+
*/
|
|
40308
|
+
AudienceExport.fromObject = function fromObject(object) {
|
|
40309
|
+
if (object instanceof $root.google.analytics.data.v1beta.AudienceExport)
|
|
40310
|
+
return object;
|
|
40311
|
+
var message = new $root.google.analytics.data.v1beta.AudienceExport();
|
|
40312
|
+
if (object.name != null)
|
|
40313
|
+
message.name = String(object.name);
|
|
40314
|
+
if (object.audience != null)
|
|
40315
|
+
message.audience = String(object.audience);
|
|
40316
|
+
if (object.audienceDisplayName != null)
|
|
40317
|
+
message.audienceDisplayName = String(object.audienceDisplayName);
|
|
40318
|
+
if (object.dimensions) {
|
|
40319
|
+
if (!Array.isArray(object.dimensions))
|
|
40320
|
+
throw TypeError(".google.analytics.data.v1beta.AudienceExport.dimensions: array expected");
|
|
40321
|
+
message.dimensions = [];
|
|
40322
|
+
for (var i = 0; i < object.dimensions.length; ++i) {
|
|
40323
|
+
if (typeof object.dimensions[i] !== "object")
|
|
40324
|
+
throw TypeError(".google.analytics.data.v1beta.AudienceExport.dimensions: object expected");
|
|
40325
|
+
message.dimensions[i] = $root.google.analytics.data.v1beta.AudienceDimension.fromObject(object.dimensions[i]);
|
|
40326
|
+
}
|
|
40327
|
+
}
|
|
40328
|
+
switch (object.state) {
|
|
40329
|
+
default:
|
|
40330
|
+
if (typeof object.state === "number") {
|
|
40331
|
+
message.state = object.state;
|
|
40332
|
+
break;
|
|
40333
|
+
}
|
|
40334
|
+
break;
|
|
40335
|
+
case "STATE_UNSPECIFIED":
|
|
40336
|
+
case 0:
|
|
40337
|
+
message.state = 0;
|
|
40338
|
+
break;
|
|
40339
|
+
case "CREATING":
|
|
40340
|
+
case 1:
|
|
40341
|
+
message.state = 1;
|
|
40342
|
+
break;
|
|
40343
|
+
case "ACTIVE":
|
|
40344
|
+
case 2:
|
|
40345
|
+
message.state = 2;
|
|
40346
|
+
break;
|
|
40347
|
+
case "FAILED":
|
|
40348
|
+
case 3:
|
|
40349
|
+
message.state = 3;
|
|
40350
|
+
break;
|
|
40351
|
+
}
|
|
40352
|
+
if (object.beginCreatingTime != null) {
|
|
40353
|
+
if (typeof object.beginCreatingTime !== "object")
|
|
40354
|
+
throw TypeError(".google.analytics.data.v1beta.AudienceExport.beginCreatingTime: object expected");
|
|
40355
|
+
message.beginCreatingTime = $root.google.protobuf.Timestamp.fromObject(object.beginCreatingTime);
|
|
40356
|
+
}
|
|
40357
|
+
if (object.creationQuotaTokensCharged != null)
|
|
40358
|
+
message.creationQuotaTokensCharged = object.creationQuotaTokensCharged | 0;
|
|
40359
|
+
if (object.rowCount != null)
|
|
40360
|
+
message.rowCount = object.rowCount | 0;
|
|
40361
|
+
if (object.errorMessage != null)
|
|
40362
|
+
message.errorMessage = String(object.errorMessage);
|
|
40363
|
+
if (object.percentageCompleted != null)
|
|
40364
|
+
message.percentageCompleted = Number(object.percentageCompleted);
|
|
40365
|
+
return message;
|
|
40366
|
+
};
|
|
40367
|
+
|
|
40368
|
+
/**
|
|
40369
|
+
* Creates a plain object from an AudienceExport message. Also converts values to other types if specified.
|
|
40370
|
+
* @function toObject
|
|
40371
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40372
|
+
* @static
|
|
40373
|
+
* @param {google.analytics.data.v1beta.AudienceExport} message AudienceExport
|
|
40374
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40375
|
+
* @returns {Object.<string,*>} Plain object
|
|
40376
|
+
*/
|
|
40377
|
+
AudienceExport.toObject = function toObject(message, options) {
|
|
40378
|
+
if (!options)
|
|
40379
|
+
options = {};
|
|
40380
|
+
var object = {};
|
|
40381
|
+
if (options.arrays || options.defaults)
|
|
40382
|
+
object.dimensions = [];
|
|
40383
|
+
if (options.defaults) {
|
|
40384
|
+
object.name = "";
|
|
40385
|
+
object.audience = "";
|
|
40386
|
+
object.audienceDisplayName = "";
|
|
40387
|
+
object.creationQuotaTokensCharged = 0;
|
|
40388
|
+
}
|
|
40389
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
40390
|
+
object.name = message.name;
|
|
40391
|
+
if (message.audience != null && message.hasOwnProperty("audience"))
|
|
40392
|
+
object.audience = message.audience;
|
|
40393
|
+
if (message.audienceDisplayName != null && message.hasOwnProperty("audienceDisplayName"))
|
|
40394
|
+
object.audienceDisplayName = message.audienceDisplayName;
|
|
40395
|
+
if (message.dimensions && message.dimensions.length) {
|
|
40396
|
+
object.dimensions = [];
|
|
40397
|
+
for (var j = 0; j < message.dimensions.length; ++j)
|
|
40398
|
+
object.dimensions[j] = $root.google.analytics.data.v1beta.AudienceDimension.toObject(message.dimensions[j], options);
|
|
40399
|
+
}
|
|
40400
|
+
if (message.state != null && message.hasOwnProperty("state")) {
|
|
40401
|
+
object.state = options.enums === String ? $root.google.analytics.data.v1beta.AudienceExport.State[message.state] === undefined ? message.state : $root.google.analytics.data.v1beta.AudienceExport.State[message.state] : message.state;
|
|
40402
|
+
if (options.oneofs)
|
|
40403
|
+
object._state = "state";
|
|
40404
|
+
}
|
|
40405
|
+
if (message.beginCreatingTime != null && message.hasOwnProperty("beginCreatingTime")) {
|
|
40406
|
+
object.beginCreatingTime = $root.google.protobuf.Timestamp.toObject(message.beginCreatingTime, options);
|
|
40407
|
+
if (options.oneofs)
|
|
40408
|
+
object._beginCreatingTime = "beginCreatingTime";
|
|
40409
|
+
}
|
|
40410
|
+
if (message.creationQuotaTokensCharged != null && message.hasOwnProperty("creationQuotaTokensCharged"))
|
|
40411
|
+
object.creationQuotaTokensCharged = message.creationQuotaTokensCharged;
|
|
40412
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
40413
|
+
object.rowCount = message.rowCount;
|
|
40414
|
+
if (options.oneofs)
|
|
40415
|
+
object._rowCount = "rowCount";
|
|
40416
|
+
}
|
|
40417
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) {
|
|
40418
|
+
object.errorMessage = message.errorMessage;
|
|
40419
|
+
if (options.oneofs)
|
|
40420
|
+
object._errorMessage = "errorMessage";
|
|
40421
|
+
}
|
|
40422
|
+
if (message.percentageCompleted != null && message.hasOwnProperty("percentageCompleted")) {
|
|
40423
|
+
object.percentageCompleted = options.json && !isFinite(message.percentageCompleted) ? String(message.percentageCompleted) : message.percentageCompleted;
|
|
40424
|
+
if (options.oneofs)
|
|
40425
|
+
object._percentageCompleted = "percentageCompleted";
|
|
40426
|
+
}
|
|
40427
|
+
return object;
|
|
40428
|
+
};
|
|
40429
|
+
|
|
40430
|
+
/**
|
|
40431
|
+
* Converts this AudienceExport to JSON.
|
|
40432
|
+
* @function toJSON
|
|
40433
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40434
|
+
* @instance
|
|
40435
|
+
* @returns {Object.<string,*>} JSON object
|
|
40436
|
+
*/
|
|
40437
|
+
AudienceExport.prototype.toJSON = function toJSON() {
|
|
40438
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40439
|
+
};
|
|
40440
|
+
|
|
40441
|
+
/**
|
|
40442
|
+
* Gets the default type url for AudienceExport
|
|
40443
|
+
* @function getTypeUrl
|
|
40444
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40445
|
+
* @static
|
|
40446
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40447
|
+
* @returns {string} The default type url
|
|
40448
|
+
*/
|
|
40449
|
+
AudienceExport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
40450
|
+
if (typeUrlPrefix === undefined) {
|
|
40451
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
40452
|
+
}
|
|
40453
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.AudienceExport";
|
|
40454
|
+
};
|
|
40455
|
+
|
|
40456
|
+
/**
|
|
40457
|
+
* State enum.
|
|
40458
|
+
* @name google.analytics.data.v1beta.AudienceExport.State
|
|
40459
|
+
* @enum {number}
|
|
40460
|
+
* @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
|
|
40461
|
+
* @property {number} CREATING=1 CREATING value
|
|
40462
|
+
* @property {number} ACTIVE=2 ACTIVE value
|
|
40463
|
+
* @property {number} FAILED=3 FAILED value
|
|
40464
|
+
*/
|
|
40465
|
+
AudienceExport.State = (function() {
|
|
40466
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
40467
|
+
values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
|
|
40468
|
+
values[valuesById[1] = "CREATING"] = 1;
|
|
40469
|
+
values[valuesById[2] = "ACTIVE"] = 2;
|
|
40470
|
+
values[valuesById[3] = "FAILED"] = 3;
|
|
40471
|
+
return values;
|
|
40472
|
+
})();
|
|
40473
|
+
|
|
40474
|
+
return AudienceExport;
|
|
40475
|
+
})();
|
|
40476
|
+
|
|
40477
|
+
v1beta.AudienceExportMetadata = (function() {
|
|
40478
|
+
|
|
40479
|
+
/**
|
|
40480
|
+
* Properties of an AudienceExportMetadata.
|
|
40481
|
+
* @memberof google.analytics.data.v1beta
|
|
40482
|
+
* @interface IAudienceExportMetadata
|
|
40483
|
+
*/
|
|
40484
|
+
|
|
40485
|
+
/**
|
|
40486
|
+
* Constructs a new AudienceExportMetadata.
|
|
40487
|
+
* @memberof google.analytics.data.v1beta
|
|
40488
|
+
* @classdesc Represents an AudienceExportMetadata.
|
|
40489
|
+
* @implements IAudienceExportMetadata
|
|
40490
|
+
* @constructor
|
|
40491
|
+
* @param {google.analytics.data.v1beta.IAudienceExportMetadata=} [properties] Properties to set
|
|
40492
|
+
*/
|
|
40493
|
+
function AudienceExportMetadata(properties) {
|
|
40494
|
+
if (properties)
|
|
40495
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40496
|
+
if (properties[keys[i]] != null)
|
|
40497
|
+
this[keys[i]] = properties[keys[i]];
|
|
40498
|
+
}
|
|
40499
|
+
|
|
40500
|
+
/**
|
|
40501
|
+
* Creates a new AudienceExportMetadata instance using the specified properties.
|
|
40502
|
+
* @function create
|
|
40503
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40504
|
+
* @static
|
|
40505
|
+
* @param {google.analytics.data.v1beta.IAudienceExportMetadata=} [properties] Properties to set
|
|
40506
|
+
* @returns {google.analytics.data.v1beta.AudienceExportMetadata} AudienceExportMetadata instance
|
|
40507
|
+
*/
|
|
40508
|
+
AudienceExportMetadata.create = function create(properties) {
|
|
40509
|
+
return new AudienceExportMetadata(properties);
|
|
40510
|
+
};
|
|
40511
|
+
|
|
40512
|
+
/**
|
|
40513
|
+
* Encodes the specified AudienceExportMetadata message. Does not implicitly {@link google.analytics.data.v1beta.AudienceExportMetadata.verify|verify} messages.
|
|
40514
|
+
* @function encode
|
|
40515
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40516
|
+
* @static
|
|
40517
|
+
* @param {google.analytics.data.v1beta.IAudienceExportMetadata} message AudienceExportMetadata message or plain object to encode
|
|
40518
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40519
|
+
* @returns {$protobuf.Writer} Writer
|
|
40520
|
+
*/
|
|
40521
|
+
AudienceExportMetadata.encode = function encode(message, writer) {
|
|
40522
|
+
if (!writer)
|
|
40523
|
+
writer = $Writer.create();
|
|
40524
|
+
return writer;
|
|
40525
|
+
};
|
|
40526
|
+
|
|
40527
|
+
/**
|
|
40528
|
+
* Encodes the specified AudienceExportMetadata message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.AudienceExportMetadata.verify|verify} messages.
|
|
40529
|
+
* @function encodeDelimited
|
|
40530
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40531
|
+
* @static
|
|
40532
|
+
* @param {google.analytics.data.v1beta.IAudienceExportMetadata} message AudienceExportMetadata message or plain object to encode
|
|
40533
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40534
|
+
* @returns {$protobuf.Writer} Writer
|
|
40535
|
+
*/
|
|
40536
|
+
AudienceExportMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40537
|
+
return this.encode(message, writer).ldelim();
|
|
40538
|
+
};
|
|
40539
|
+
|
|
40540
|
+
/**
|
|
40541
|
+
* Decodes an AudienceExportMetadata message from the specified reader or buffer.
|
|
40542
|
+
* @function decode
|
|
40543
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40544
|
+
* @static
|
|
40545
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40546
|
+
* @param {number} [length] Message length if known beforehand
|
|
40547
|
+
* @returns {google.analytics.data.v1beta.AudienceExportMetadata} AudienceExportMetadata
|
|
40548
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40549
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40550
|
+
*/
|
|
40551
|
+
AudienceExportMetadata.decode = function decode(reader, length) {
|
|
40552
|
+
if (!(reader instanceof $Reader))
|
|
40553
|
+
reader = $Reader.create(reader);
|
|
40554
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.AudienceExportMetadata();
|
|
40555
|
+
while (reader.pos < end) {
|
|
40556
|
+
var tag = reader.uint32();
|
|
40557
|
+
switch (tag >>> 3) {
|
|
40558
|
+
default:
|
|
40559
|
+
reader.skipType(tag & 7);
|
|
40560
|
+
break;
|
|
40561
|
+
}
|
|
40562
|
+
}
|
|
40563
|
+
return message;
|
|
40564
|
+
};
|
|
40565
|
+
|
|
40566
|
+
/**
|
|
40567
|
+
* Decodes an AudienceExportMetadata message from the specified reader or buffer, length delimited.
|
|
40568
|
+
* @function decodeDelimited
|
|
40569
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40570
|
+
* @static
|
|
40571
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40572
|
+
* @returns {google.analytics.data.v1beta.AudienceExportMetadata} AudienceExportMetadata
|
|
40573
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40574
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40575
|
+
*/
|
|
40576
|
+
AudienceExportMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
40577
|
+
if (!(reader instanceof $Reader))
|
|
40578
|
+
reader = new $Reader(reader);
|
|
40579
|
+
return this.decode(reader, reader.uint32());
|
|
40580
|
+
};
|
|
40581
|
+
|
|
40582
|
+
/**
|
|
40583
|
+
* Verifies an AudienceExportMetadata message.
|
|
40584
|
+
* @function verify
|
|
40585
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40586
|
+
* @static
|
|
40587
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40588
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40589
|
+
*/
|
|
40590
|
+
AudienceExportMetadata.verify = function verify(message) {
|
|
40591
|
+
if (typeof message !== "object" || message === null)
|
|
40592
|
+
return "object expected";
|
|
40593
|
+
return null;
|
|
40594
|
+
};
|
|
40595
|
+
|
|
40596
|
+
/**
|
|
40597
|
+
* Creates an AudienceExportMetadata message from a plain object. Also converts values to their respective internal types.
|
|
40598
|
+
* @function fromObject
|
|
40599
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40600
|
+
* @static
|
|
40601
|
+
* @param {Object.<string,*>} object Plain object
|
|
40602
|
+
* @returns {google.analytics.data.v1beta.AudienceExportMetadata} AudienceExportMetadata
|
|
40603
|
+
*/
|
|
40604
|
+
AudienceExportMetadata.fromObject = function fromObject(object) {
|
|
40605
|
+
if (object instanceof $root.google.analytics.data.v1beta.AudienceExportMetadata)
|
|
40606
|
+
return object;
|
|
40607
|
+
return new $root.google.analytics.data.v1beta.AudienceExportMetadata();
|
|
40608
|
+
};
|
|
40609
|
+
|
|
40610
|
+
/**
|
|
40611
|
+
* Creates a plain object from an AudienceExportMetadata message. Also converts values to other types if specified.
|
|
40612
|
+
* @function toObject
|
|
40613
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40614
|
+
* @static
|
|
40615
|
+
* @param {google.analytics.data.v1beta.AudienceExportMetadata} message AudienceExportMetadata
|
|
40616
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40617
|
+
* @returns {Object.<string,*>} Plain object
|
|
40618
|
+
*/
|
|
40619
|
+
AudienceExportMetadata.toObject = function toObject() {
|
|
40620
|
+
return {};
|
|
40621
|
+
};
|
|
40622
|
+
|
|
40623
|
+
/**
|
|
40624
|
+
* Converts this AudienceExportMetadata to JSON.
|
|
40625
|
+
* @function toJSON
|
|
40626
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40627
|
+
* @instance
|
|
40628
|
+
* @returns {Object.<string,*>} JSON object
|
|
40629
|
+
*/
|
|
40630
|
+
AudienceExportMetadata.prototype.toJSON = function toJSON() {
|
|
40631
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40632
|
+
};
|
|
40633
|
+
|
|
40634
|
+
/**
|
|
40635
|
+
* Gets the default type url for AudienceExportMetadata
|
|
40636
|
+
* @function getTypeUrl
|
|
40637
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40638
|
+
* @static
|
|
40639
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40640
|
+
* @returns {string} The default type url
|
|
40641
|
+
*/
|
|
40642
|
+
AudienceExportMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
40643
|
+
if (typeUrlPrefix === undefined) {
|
|
40644
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
40645
|
+
}
|
|
40646
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.AudienceExportMetadata";
|
|
40647
|
+
};
|
|
40648
|
+
|
|
40649
|
+
return AudienceExportMetadata;
|
|
40650
|
+
})();
|
|
40651
|
+
|
|
40652
|
+
v1beta.QueryAudienceExportRequest = (function() {
|
|
40653
|
+
|
|
40654
|
+
/**
|
|
40655
|
+
* Properties of a QueryAudienceExportRequest.
|
|
40656
|
+
* @memberof google.analytics.data.v1beta
|
|
40657
|
+
* @interface IQueryAudienceExportRequest
|
|
40658
|
+
* @property {string|null} [name] QueryAudienceExportRequest name
|
|
40659
|
+
* @property {number|Long|null} [offset] QueryAudienceExportRequest offset
|
|
40660
|
+
* @property {number|Long|null} [limit] QueryAudienceExportRequest limit
|
|
40661
|
+
*/
|
|
40662
|
+
|
|
40663
|
+
/**
|
|
40664
|
+
* Constructs a new QueryAudienceExportRequest.
|
|
40665
|
+
* @memberof google.analytics.data.v1beta
|
|
40666
|
+
* @classdesc Represents a QueryAudienceExportRequest.
|
|
40667
|
+
* @implements IQueryAudienceExportRequest
|
|
40668
|
+
* @constructor
|
|
40669
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest=} [properties] Properties to set
|
|
40670
|
+
*/
|
|
40671
|
+
function QueryAudienceExportRequest(properties) {
|
|
40672
|
+
if (properties)
|
|
40673
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40674
|
+
if (properties[keys[i]] != null)
|
|
40675
|
+
this[keys[i]] = properties[keys[i]];
|
|
40676
|
+
}
|
|
40677
|
+
|
|
40678
|
+
/**
|
|
40679
|
+
* QueryAudienceExportRequest name.
|
|
40680
|
+
* @member {string} name
|
|
40681
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40682
|
+
* @instance
|
|
40683
|
+
*/
|
|
40684
|
+
QueryAudienceExportRequest.prototype.name = "";
|
|
40685
|
+
|
|
40686
|
+
/**
|
|
40687
|
+
* QueryAudienceExportRequest offset.
|
|
40688
|
+
* @member {number|Long} offset
|
|
40689
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40690
|
+
* @instance
|
|
40691
|
+
*/
|
|
40692
|
+
QueryAudienceExportRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
40693
|
+
|
|
40694
|
+
/**
|
|
40695
|
+
* QueryAudienceExportRequest limit.
|
|
40696
|
+
* @member {number|Long} limit
|
|
40697
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40698
|
+
* @instance
|
|
40699
|
+
*/
|
|
40700
|
+
QueryAudienceExportRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
40701
|
+
|
|
40702
|
+
/**
|
|
40703
|
+
* Creates a new QueryAudienceExportRequest instance using the specified properties.
|
|
40704
|
+
* @function create
|
|
40705
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40706
|
+
* @static
|
|
40707
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest=} [properties] Properties to set
|
|
40708
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportRequest} QueryAudienceExportRequest instance
|
|
40709
|
+
*/
|
|
40710
|
+
QueryAudienceExportRequest.create = function create(properties) {
|
|
40711
|
+
return new QueryAudienceExportRequest(properties);
|
|
40712
|
+
};
|
|
40713
|
+
|
|
40714
|
+
/**
|
|
40715
|
+
* Encodes the specified QueryAudienceExportRequest message. Does not implicitly {@link google.analytics.data.v1beta.QueryAudienceExportRequest.verify|verify} messages.
|
|
40716
|
+
* @function encode
|
|
40717
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40718
|
+
* @static
|
|
40719
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest} message QueryAudienceExportRequest message or plain object to encode
|
|
40720
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40721
|
+
* @returns {$protobuf.Writer} Writer
|
|
40722
|
+
*/
|
|
40723
|
+
QueryAudienceExportRequest.encode = function encode(message, writer) {
|
|
40724
|
+
if (!writer)
|
|
40725
|
+
writer = $Writer.create();
|
|
40726
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
40727
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
40728
|
+
if (message.offset != null && Object.hasOwnProperty.call(message, "offset"))
|
|
40729
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.offset);
|
|
40730
|
+
if (message.limit != null && Object.hasOwnProperty.call(message, "limit"))
|
|
40731
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.limit);
|
|
40732
|
+
return writer;
|
|
40733
|
+
};
|
|
40734
|
+
|
|
40735
|
+
/**
|
|
40736
|
+
* Encodes the specified QueryAudienceExportRequest message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.QueryAudienceExportRequest.verify|verify} messages.
|
|
40737
|
+
* @function encodeDelimited
|
|
40738
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40739
|
+
* @static
|
|
40740
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest} message QueryAudienceExportRequest message or plain object to encode
|
|
40741
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40742
|
+
* @returns {$protobuf.Writer} Writer
|
|
40743
|
+
*/
|
|
40744
|
+
QueryAudienceExportRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40745
|
+
return this.encode(message, writer).ldelim();
|
|
40746
|
+
};
|
|
40747
|
+
|
|
40748
|
+
/**
|
|
40749
|
+
* Decodes a QueryAudienceExportRequest message from the specified reader or buffer.
|
|
40750
|
+
* @function decode
|
|
40751
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40752
|
+
* @static
|
|
40753
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40754
|
+
* @param {number} [length] Message length if known beforehand
|
|
40755
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportRequest} QueryAudienceExportRequest
|
|
40756
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40757
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40758
|
+
*/
|
|
40759
|
+
QueryAudienceExportRequest.decode = function decode(reader, length) {
|
|
40760
|
+
if (!(reader instanceof $Reader))
|
|
40761
|
+
reader = $Reader.create(reader);
|
|
40762
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.QueryAudienceExportRequest();
|
|
40763
|
+
while (reader.pos < end) {
|
|
40764
|
+
var tag = reader.uint32();
|
|
40765
|
+
switch (tag >>> 3) {
|
|
40766
|
+
case 1: {
|
|
40767
|
+
message.name = reader.string();
|
|
40768
|
+
break;
|
|
40769
|
+
}
|
|
40770
|
+
case 2: {
|
|
40771
|
+
message.offset = reader.int64();
|
|
40772
|
+
break;
|
|
40773
|
+
}
|
|
40774
|
+
case 3: {
|
|
40775
|
+
message.limit = reader.int64();
|
|
40776
|
+
break;
|
|
40777
|
+
}
|
|
40778
|
+
default:
|
|
40779
|
+
reader.skipType(tag & 7);
|
|
40780
|
+
break;
|
|
40781
|
+
}
|
|
40782
|
+
}
|
|
40783
|
+
return message;
|
|
40784
|
+
};
|
|
40785
|
+
|
|
40786
|
+
/**
|
|
40787
|
+
* Decodes a QueryAudienceExportRequest message from the specified reader or buffer, length delimited.
|
|
40788
|
+
* @function decodeDelimited
|
|
40789
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40790
|
+
* @static
|
|
40791
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40792
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportRequest} QueryAudienceExportRequest
|
|
40793
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40794
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40795
|
+
*/
|
|
40796
|
+
QueryAudienceExportRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
40797
|
+
if (!(reader instanceof $Reader))
|
|
40798
|
+
reader = new $Reader(reader);
|
|
40799
|
+
return this.decode(reader, reader.uint32());
|
|
40800
|
+
};
|
|
40801
|
+
|
|
40802
|
+
/**
|
|
40803
|
+
* Verifies a QueryAudienceExportRequest message.
|
|
40804
|
+
* @function verify
|
|
40805
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40806
|
+
* @static
|
|
40807
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40808
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40809
|
+
*/
|
|
40810
|
+
QueryAudienceExportRequest.verify = function verify(message) {
|
|
40811
|
+
if (typeof message !== "object" || message === null)
|
|
40812
|
+
return "object expected";
|
|
40813
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
40814
|
+
if (!$util.isString(message.name))
|
|
40815
|
+
return "name: string expected";
|
|
40816
|
+
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
40817
|
+
if (!$util.isInteger(message.offset) && !(message.offset && $util.isInteger(message.offset.low) && $util.isInteger(message.offset.high)))
|
|
40818
|
+
return "offset: integer|Long expected";
|
|
40819
|
+
if (message.limit != null && message.hasOwnProperty("limit"))
|
|
40820
|
+
if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high)))
|
|
40821
|
+
return "limit: integer|Long expected";
|
|
40822
|
+
return null;
|
|
40823
|
+
};
|
|
40824
|
+
|
|
40825
|
+
/**
|
|
40826
|
+
* Creates a QueryAudienceExportRequest message from a plain object. Also converts values to their respective internal types.
|
|
40827
|
+
* @function fromObject
|
|
40828
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40829
|
+
* @static
|
|
40830
|
+
* @param {Object.<string,*>} object Plain object
|
|
40831
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportRequest} QueryAudienceExportRequest
|
|
40832
|
+
*/
|
|
40833
|
+
QueryAudienceExportRequest.fromObject = function fromObject(object) {
|
|
40834
|
+
if (object instanceof $root.google.analytics.data.v1beta.QueryAudienceExportRequest)
|
|
40835
|
+
return object;
|
|
40836
|
+
var message = new $root.google.analytics.data.v1beta.QueryAudienceExportRequest();
|
|
40837
|
+
if (object.name != null)
|
|
40838
|
+
message.name = String(object.name);
|
|
40839
|
+
if (object.offset != null)
|
|
40840
|
+
if ($util.Long)
|
|
40841
|
+
(message.offset = $util.Long.fromValue(object.offset)).unsigned = false;
|
|
40842
|
+
else if (typeof object.offset === "string")
|
|
40843
|
+
message.offset = parseInt(object.offset, 10);
|
|
40844
|
+
else if (typeof object.offset === "number")
|
|
40845
|
+
message.offset = object.offset;
|
|
40846
|
+
else if (typeof object.offset === "object")
|
|
40847
|
+
message.offset = new $util.LongBits(object.offset.low >>> 0, object.offset.high >>> 0).toNumber();
|
|
40848
|
+
if (object.limit != null)
|
|
40849
|
+
if ($util.Long)
|
|
40850
|
+
(message.limit = $util.Long.fromValue(object.limit)).unsigned = false;
|
|
40851
|
+
else if (typeof object.limit === "string")
|
|
40852
|
+
message.limit = parseInt(object.limit, 10);
|
|
40853
|
+
else if (typeof object.limit === "number")
|
|
40854
|
+
message.limit = object.limit;
|
|
40855
|
+
else if (typeof object.limit === "object")
|
|
40856
|
+
message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber();
|
|
40857
|
+
return message;
|
|
40858
|
+
};
|
|
40859
|
+
|
|
40860
|
+
/**
|
|
40861
|
+
* Creates a plain object from a QueryAudienceExportRequest message. Also converts values to other types if specified.
|
|
40862
|
+
* @function toObject
|
|
40863
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40864
|
+
* @static
|
|
40865
|
+
* @param {google.analytics.data.v1beta.QueryAudienceExportRequest} message QueryAudienceExportRequest
|
|
40866
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40867
|
+
* @returns {Object.<string,*>} Plain object
|
|
40868
|
+
*/
|
|
40869
|
+
QueryAudienceExportRequest.toObject = function toObject(message, options) {
|
|
40870
|
+
if (!options)
|
|
40871
|
+
options = {};
|
|
40872
|
+
var object = {};
|
|
40873
|
+
if (options.defaults) {
|
|
40874
|
+
object.name = "";
|
|
40875
|
+
if ($util.Long) {
|
|
40876
|
+
var long = new $util.Long(0, 0, false);
|
|
40877
|
+
object.offset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40878
|
+
} else
|
|
40879
|
+
object.offset = options.longs === String ? "0" : 0;
|
|
40880
|
+
if ($util.Long) {
|
|
40881
|
+
var long = new $util.Long(0, 0, false);
|
|
40882
|
+
object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40883
|
+
} else
|
|
40884
|
+
object.limit = options.longs === String ? "0" : 0;
|
|
40885
|
+
}
|
|
40886
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
40887
|
+
object.name = message.name;
|
|
40888
|
+
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
40889
|
+
if (typeof message.offset === "number")
|
|
40890
|
+
object.offset = options.longs === String ? String(message.offset) : message.offset;
|
|
40891
|
+
else
|
|
40892
|
+
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;
|
|
40893
|
+
if (message.limit != null && message.hasOwnProperty("limit"))
|
|
40894
|
+
if (typeof message.limit === "number")
|
|
40895
|
+
object.limit = options.longs === String ? String(message.limit) : message.limit;
|
|
40896
|
+
else
|
|
40897
|
+
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;
|
|
40898
|
+
return object;
|
|
40899
|
+
};
|
|
40900
|
+
|
|
40901
|
+
/**
|
|
40902
|
+
* Converts this QueryAudienceExportRequest to JSON.
|
|
40903
|
+
* @function toJSON
|
|
40904
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40905
|
+
* @instance
|
|
40906
|
+
* @returns {Object.<string,*>} JSON object
|
|
40907
|
+
*/
|
|
40908
|
+
QueryAudienceExportRequest.prototype.toJSON = function toJSON() {
|
|
40909
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40910
|
+
};
|
|
40911
|
+
|
|
40912
|
+
/**
|
|
40913
|
+
* Gets the default type url for QueryAudienceExportRequest
|
|
40914
|
+
* @function getTypeUrl
|
|
40915
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40916
|
+
* @static
|
|
40917
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40918
|
+
* @returns {string} The default type url
|
|
40919
|
+
*/
|
|
40920
|
+
QueryAudienceExportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
40921
|
+
if (typeUrlPrefix === undefined) {
|
|
40922
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
40923
|
+
}
|
|
40924
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.QueryAudienceExportRequest";
|
|
40925
|
+
};
|
|
40926
|
+
|
|
40927
|
+
return QueryAudienceExportRequest;
|
|
40928
|
+
})();
|
|
40929
|
+
|
|
40930
|
+
v1beta.QueryAudienceExportResponse = (function() {
|
|
40931
|
+
|
|
40932
|
+
/**
|
|
40933
|
+
* Properties of a QueryAudienceExportResponse.
|
|
40934
|
+
* @memberof google.analytics.data.v1beta
|
|
40935
|
+
* @interface IQueryAudienceExportResponse
|
|
40936
|
+
* @property {google.analytics.data.v1beta.IAudienceExport|null} [audienceExport] QueryAudienceExportResponse audienceExport
|
|
40937
|
+
* @property {Array.<google.analytics.data.v1beta.IAudienceRow>|null} [audienceRows] QueryAudienceExportResponse audienceRows
|
|
40938
|
+
* @property {number|null} [rowCount] QueryAudienceExportResponse rowCount
|
|
40939
|
+
*/
|
|
40940
|
+
|
|
40941
|
+
/**
|
|
40942
|
+
* Constructs a new QueryAudienceExportResponse.
|
|
40943
|
+
* @memberof google.analytics.data.v1beta
|
|
40944
|
+
* @classdesc Represents a QueryAudienceExportResponse.
|
|
40945
|
+
* @implements IQueryAudienceExportResponse
|
|
40946
|
+
* @constructor
|
|
40947
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportResponse=} [properties] Properties to set
|
|
40948
|
+
*/
|
|
40949
|
+
function QueryAudienceExportResponse(properties) {
|
|
40950
|
+
this.audienceRows = [];
|
|
40951
|
+
if (properties)
|
|
40952
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40953
|
+
if (properties[keys[i]] != null)
|
|
40954
|
+
this[keys[i]] = properties[keys[i]];
|
|
40955
|
+
}
|
|
40956
|
+
|
|
40957
|
+
/**
|
|
40958
|
+
* QueryAudienceExportResponse audienceExport.
|
|
40959
|
+
* @member {google.analytics.data.v1beta.IAudienceExport|null|undefined} audienceExport
|
|
40960
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40961
|
+
* @instance
|
|
40962
|
+
*/
|
|
40963
|
+
QueryAudienceExportResponse.prototype.audienceExport = null;
|
|
40964
|
+
|
|
40965
|
+
/**
|
|
40966
|
+
* QueryAudienceExportResponse audienceRows.
|
|
40967
|
+
* @member {Array.<google.analytics.data.v1beta.IAudienceRow>} audienceRows
|
|
40968
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40969
|
+
* @instance
|
|
40970
|
+
*/
|
|
40971
|
+
QueryAudienceExportResponse.prototype.audienceRows = $util.emptyArray;
|
|
40972
|
+
|
|
40973
|
+
/**
|
|
40974
|
+
* QueryAudienceExportResponse rowCount.
|
|
40975
|
+
* @member {number|null|undefined} rowCount
|
|
40976
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40977
|
+
* @instance
|
|
40978
|
+
*/
|
|
40979
|
+
QueryAudienceExportResponse.prototype.rowCount = null;
|
|
40980
|
+
|
|
40981
|
+
// OneOf field names bound to virtual getters and setters
|
|
40982
|
+
var $oneOfFields;
|
|
40983
|
+
|
|
40984
|
+
/**
|
|
40985
|
+
* QueryAudienceExportResponse _audienceExport.
|
|
40986
|
+
* @member {"audienceExport"|undefined} _audienceExport
|
|
40987
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40988
|
+
* @instance
|
|
40989
|
+
*/
|
|
40990
|
+
Object.defineProperty(QueryAudienceExportResponse.prototype, "_audienceExport", {
|
|
40991
|
+
get: $util.oneOfGetter($oneOfFields = ["audienceExport"]),
|
|
40992
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
40993
|
+
});
|
|
40994
|
+
|
|
40995
|
+
/**
|
|
40996
|
+
* QueryAudienceExportResponse _rowCount.
|
|
40997
|
+
* @member {"rowCount"|undefined} _rowCount
|
|
40998
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40999
|
+
* @instance
|
|
41000
|
+
*/
|
|
41001
|
+
Object.defineProperty(QueryAudienceExportResponse.prototype, "_rowCount", {
|
|
41002
|
+
get: $util.oneOfGetter($oneOfFields = ["rowCount"]),
|
|
41003
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
41004
|
+
});
|
|
41005
|
+
|
|
41006
|
+
/**
|
|
41007
|
+
* Creates a new QueryAudienceExportResponse instance using the specified properties.
|
|
41008
|
+
* @function create
|
|
41009
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
41010
|
+
* @static
|
|
41011
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportResponse=} [properties] Properties to set
|
|
41012
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportResponse} QueryAudienceExportResponse instance
|
|
41013
|
+
*/
|
|
41014
|
+
QueryAudienceExportResponse.create = function create(properties) {
|
|
41015
|
+
return new QueryAudienceExportResponse(properties);
|
|
41016
|
+
};
|
|
41017
|
+
|
|
41018
|
+
/**
|
|
41019
|
+
* Encodes the specified QueryAudienceExportResponse message. Does not implicitly {@link google.analytics.data.v1beta.QueryAudienceExportResponse.verify|verify} messages.
|
|
41020
|
+
* @function encode
|
|
41021
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
41022
|
+
* @static
|
|
41023
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportResponse} message QueryAudienceExportResponse message or plain object to encode
|
|
41024
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41025
|
+
* @returns {$protobuf.Writer} Writer
|
|
41026
|
+
*/
|
|
41027
|
+
QueryAudienceExportResponse.encode = function encode(message, writer) {
|
|
41028
|
+
if (!writer)
|
|
41029
|
+
writer = $Writer.create();
|
|
41030
|
+
if (message.audienceExport != null && Object.hasOwnProperty.call(message, "audienceExport"))
|
|
41031
|
+
$root.google.analytics.data.v1beta.AudienceExport.encode(message.audienceExport, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
41032
|
+
if (message.audienceRows != null && message.audienceRows.length)
|
|
41033
|
+
for (var i = 0; i < message.audienceRows.length; ++i)
|
|
41034
|
+
$root.google.analytics.data.v1beta.AudienceRow.encode(message.audienceRows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
41035
|
+
if (message.rowCount != null && Object.hasOwnProperty.call(message, "rowCount"))
|
|
41036
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.rowCount);
|
|
41037
|
+
return writer;
|
|
41038
|
+
};
|
|
41039
|
+
|
|
41040
|
+
/**
|
|
41041
|
+
* Encodes the specified QueryAudienceExportResponse message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.QueryAudienceExportResponse.verify|verify} messages.
|
|
41042
|
+
* @function encodeDelimited
|
|
41043
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
41044
|
+
* @static
|
|
41045
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportResponse} message QueryAudienceExportResponse message or plain object to encode
|
|
41046
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41047
|
+
* @returns {$protobuf.Writer} Writer
|
|
41048
|
+
*/
|
|
41049
|
+
QueryAudienceExportResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41050
|
+
return this.encode(message, writer).ldelim();
|
|
41051
|
+
};
|
|
41052
|
+
|
|
41053
|
+
/**
|
|
41054
|
+
* Decodes a QueryAudienceExportResponse message from the specified reader or buffer.
|
|
41055
|
+
* @function decode
|
|
41056
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
41057
|
+
* @static
|
|
41058
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41059
|
+
* @param {number} [length] Message length if known beforehand
|
|
41060
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportResponse} QueryAudienceExportResponse
|
|
41061
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41062
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41063
|
+
*/
|
|
41064
|
+
QueryAudienceExportResponse.decode = function decode(reader, length) {
|
|
41065
|
+
if (!(reader instanceof $Reader))
|
|
41066
|
+
reader = $Reader.create(reader);
|
|
41067
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.QueryAudienceExportResponse();
|
|
41068
|
+
while (reader.pos < end) {
|
|
41069
|
+
var tag = reader.uint32();
|
|
41070
|
+
switch (tag >>> 3) {
|
|
41071
|
+
case 1: {
|
|
41072
|
+
message.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.decode(reader, reader.uint32());
|
|
41073
|
+
break;
|
|
41074
|
+
}
|
|
41075
|
+
case 2: {
|
|
41076
|
+
if (!(message.audienceRows && message.audienceRows.length))
|
|
41077
|
+
message.audienceRows = [];
|
|
41078
|
+
message.audienceRows.push($root.google.analytics.data.v1beta.AudienceRow.decode(reader, reader.uint32()));
|
|
41079
|
+
break;
|
|
41080
|
+
}
|
|
41081
|
+
case 3: {
|
|
41082
|
+
message.rowCount = reader.int32();
|
|
41083
|
+
break;
|
|
41084
|
+
}
|
|
41085
|
+
default:
|
|
41086
|
+
reader.skipType(tag & 7);
|
|
41087
|
+
break;
|
|
41088
|
+
}
|
|
41089
|
+
}
|
|
41090
|
+
return message;
|
|
41091
|
+
};
|
|
41092
|
+
|
|
41093
|
+
/**
|
|
41094
|
+
* Decodes a QueryAudienceExportResponse message from the specified reader or buffer, length delimited.
|
|
41095
|
+
* @function decodeDelimited
|
|
41096
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
41097
|
+
* @static
|
|
41098
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41099
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportResponse} QueryAudienceExportResponse
|
|
41100
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41101
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41102
|
+
*/
|
|
41103
|
+
QueryAudienceExportResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
41104
|
+
if (!(reader instanceof $Reader))
|
|
41105
|
+
reader = new $Reader(reader);
|
|
41106
|
+
return this.decode(reader, reader.uint32());
|
|
41107
|
+
};
|
|
41108
|
+
|
|
41109
|
+
/**
|
|
41110
|
+
* Verifies a QueryAudienceExportResponse message.
|
|
41111
|
+
* @function verify
|
|
41112
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
41113
|
+
* @static
|
|
41114
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41115
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41116
|
+
*/
|
|
41117
|
+
QueryAudienceExportResponse.verify = function verify(message) {
|
|
41118
|
+
if (typeof message !== "object" || message === null)
|
|
41119
|
+
return "object expected";
|
|
41120
|
+
var properties = {};
|
|
41121
|
+
if (message.audienceExport != null && message.hasOwnProperty("audienceExport")) {
|
|
41122
|
+
properties._audienceExport = 1;
|
|
41123
|
+
{
|
|
41124
|
+
var error = $root.google.analytics.data.v1beta.AudienceExport.verify(message.audienceExport);
|
|
41125
|
+
if (error)
|
|
41126
|
+
return "audienceExport." + error;
|
|
41127
|
+
}
|
|
41128
|
+
}
|
|
41129
|
+
if (message.audienceRows != null && message.hasOwnProperty("audienceRows")) {
|
|
41130
|
+
if (!Array.isArray(message.audienceRows))
|
|
41131
|
+
return "audienceRows: array expected";
|
|
41132
|
+
for (var i = 0; i < message.audienceRows.length; ++i) {
|
|
41133
|
+
var error = $root.google.analytics.data.v1beta.AudienceRow.verify(message.audienceRows[i]);
|
|
41134
|
+
if (error)
|
|
41135
|
+
return "audienceRows." + error;
|
|
41136
|
+
}
|
|
41137
|
+
}
|
|
41138
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
41139
|
+
properties._rowCount = 1;
|
|
41140
|
+
if (!$util.isInteger(message.rowCount))
|
|
41141
|
+
return "rowCount: integer expected";
|
|
41142
|
+
}
|
|
41143
|
+
return null;
|
|
41144
|
+
};
|
|
41145
|
+
|
|
41146
|
+
/**
|
|
41147
|
+
* Creates a QueryAudienceExportResponse message from a plain object. Also converts values to their respective internal types.
|
|
41148
|
+
* @function fromObject
|
|
41149
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
41150
|
+
* @static
|
|
41151
|
+
* @param {Object.<string,*>} object Plain object
|
|
41152
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportResponse} QueryAudienceExportResponse
|
|
41153
|
+
*/
|
|
41154
|
+
QueryAudienceExportResponse.fromObject = function fromObject(object) {
|
|
41155
|
+
if (object instanceof $root.google.analytics.data.v1beta.QueryAudienceExportResponse)
|
|
41156
|
+
return object;
|
|
41157
|
+
var message = new $root.google.analytics.data.v1beta.QueryAudienceExportResponse();
|
|
41158
|
+
if (object.audienceExport != null) {
|
|
41159
|
+
if (typeof object.audienceExport !== "object")
|
|
41160
|
+
throw TypeError(".google.analytics.data.v1beta.QueryAudienceExportResponse.audienceExport: object expected");
|
|
41161
|
+
message.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.fromObject(object.audienceExport);
|
|
41162
|
+
}
|
|
41163
|
+
if (object.audienceRows) {
|
|
41164
|
+
if (!Array.isArray(object.audienceRows))
|
|
41165
|
+
throw TypeError(".google.analytics.data.v1beta.QueryAudienceExportResponse.audienceRows: array expected");
|
|
41166
|
+
message.audienceRows = [];
|
|
41167
|
+
for (var i = 0; i < object.audienceRows.length; ++i) {
|
|
41168
|
+
if (typeof object.audienceRows[i] !== "object")
|
|
41169
|
+
throw TypeError(".google.analytics.data.v1beta.QueryAudienceExportResponse.audienceRows: object expected");
|
|
41170
|
+
message.audienceRows[i] = $root.google.analytics.data.v1beta.AudienceRow.fromObject(object.audienceRows[i]);
|
|
41171
|
+
}
|
|
41172
|
+
}
|
|
41173
|
+
if (object.rowCount != null)
|
|
41174
|
+
message.rowCount = object.rowCount | 0;
|
|
41175
|
+
return message;
|
|
41176
|
+
};
|
|
41177
|
+
|
|
41178
|
+
/**
|
|
41179
|
+
* Creates a plain object from a QueryAudienceExportResponse message. Also converts values to other types if specified.
|
|
41180
|
+
* @function toObject
|
|
41181
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
41182
|
+
* @static
|
|
41183
|
+
* @param {google.analytics.data.v1beta.QueryAudienceExportResponse} message QueryAudienceExportResponse
|
|
41184
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41185
|
+
* @returns {Object.<string,*>} Plain object
|
|
41186
|
+
*/
|
|
41187
|
+
QueryAudienceExportResponse.toObject = function toObject(message, options) {
|
|
41188
|
+
if (!options)
|
|
41189
|
+
options = {};
|
|
41190
|
+
var object = {};
|
|
41191
|
+
if (options.arrays || options.defaults)
|
|
41192
|
+
object.audienceRows = [];
|
|
41193
|
+
if (message.audienceExport != null && message.hasOwnProperty("audienceExport")) {
|
|
41194
|
+
object.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.toObject(message.audienceExport, options);
|
|
41195
|
+
if (options.oneofs)
|
|
41196
|
+
object._audienceExport = "audienceExport";
|
|
41197
|
+
}
|
|
41198
|
+
if (message.audienceRows && message.audienceRows.length) {
|
|
41199
|
+
object.audienceRows = [];
|
|
41200
|
+
for (var j = 0; j < message.audienceRows.length; ++j)
|
|
41201
|
+
object.audienceRows[j] = $root.google.analytics.data.v1beta.AudienceRow.toObject(message.audienceRows[j], options);
|
|
41202
|
+
}
|
|
41203
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
41204
|
+
object.rowCount = message.rowCount;
|
|
41205
|
+
if (options.oneofs)
|
|
41206
|
+
object._rowCount = "rowCount";
|
|
41207
|
+
}
|
|
41208
|
+
return object;
|
|
41209
|
+
};
|
|
41210
|
+
|
|
41211
|
+
/**
|
|
41212
|
+
* Converts this QueryAudienceExportResponse to JSON.
|
|
41213
|
+
* @function toJSON
|
|
41214
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
41215
|
+
* @instance
|
|
41216
|
+
* @returns {Object.<string,*>} JSON object
|
|
41217
|
+
*/
|
|
41218
|
+
QueryAudienceExportResponse.prototype.toJSON = function toJSON() {
|
|
41219
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41220
|
+
};
|
|
41221
|
+
|
|
41222
|
+
/**
|
|
41223
|
+
* Gets the default type url for QueryAudienceExportResponse
|
|
41224
|
+
* @function getTypeUrl
|
|
41225
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
41226
|
+
* @static
|
|
41227
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41228
|
+
* @returns {string} The default type url
|
|
41229
|
+
*/
|
|
41230
|
+
QueryAudienceExportResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41231
|
+
if (typeUrlPrefix === undefined) {
|
|
41232
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41233
|
+
}
|
|
41234
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.QueryAudienceExportResponse";
|
|
41235
|
+
};
|
|
41236
|
+
|
|
41237
|
+
return QueryAudienceExportResponse;
|
|
41238
|
+
})();
|
|
41239
|
+
|
|
41240
|
+
v1beta.AudienceRow = (function() {
|
|
41241
|
+
|
|
41242
|
+
/**
|
|
41243
|
+
* Properties of an AudienceRow.
|
|
41244
|
+
* @memberof google.analytics.data.v1beta
|
|
41245
|
+
* @interface IAudienceRow
|
|
41246
|
+
* @property {Array.<google.analytics.data.v1beta.IAudienceDimensionValue>|null} [dimensionValues] AudienceRow dimensionValues
|
|
41247
|
+
*/
|
|
41248
|
+
|
|
41249
|
+
/**
|
|
41250
|
+
* Constructs a new AudienceRow.
|
|
41251
|
+
* @memberof google.analytics.data.v1beta
|
|
41252
|
+
* @classdesc Represents an AudienceRow.
|
|
41253
|
+
* @implements IAudienceRow
|
|
41254
|
+
* @constructor
|
|
41255
|
+
* @param {google.analytics.data.v1beta.IAudienceRow=} [properties] Properties to set
|
|
41256
|
+
*/
|
|
41257
|
+
function AudienceRow(properties) {
|
|
41258
|
+
this.dimensionValues = [];
|
|
41259
|
+
if (properties)
|
|
41260
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41261
|
+
if (properties[keys[i]] != null)
|
|
41262
|
+
this[keys[i]] = properties[keys[i]];
|
|
41263
|
+
}
|
|
41264
|
+
|
|
41265
|
+
/**
|
|
41266
|
+
* AudienceRow dimensionValues.
|
|
41267
|
+
* @member {Array.<google.analytics.data.v1beta.IAudienceDimensionValue>} dimensionValues
|
|
41268
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41269
|
+
* @instance
|
|
41270
|
+
*/
|
|
41271
|
+
AudienceRow.prototype.dimensionValues = $util.emptyArray;
|
|
41272
|
+
|
|
41273
|
+
/**
|
|
41274
|
+
* Creates a new AudienceRow instance using the specified properties.
|
|
41275
|
+
* @function create
|
|
41276
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41277
|
+
* @static
|
|
41278
|
+
* @param {google.analytics.data.v1beta.IAudienceRow=} [properties] Properties to set
|
|
41279
|
+
* @returns {google.analytics.data.v1beta.AudienceRow} AudienceRow instance
|
|
41280
|
+
*/
|
|
41281
|
+
AudienceRow.create = function create(properties) {
|
|
41282
|
+
return new AudienceRow(properties);
|
|
41283
|
+
};
|
|
41284
|
+
|
|
41285
|
+
/**
|
|
41286
|
+
* Encodes the specified AudienceRow message. Does not implicitly {@link google.analytics.data.v1beta.AudienceRow.verify|verify} messages.
|
|
41287
|
+
* @function encode
|
|
41288
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41289
|
+
* @static
|
|
41290
|
+
* @param {google.analytics.data.v1beta.IAudienceRow} message AudienceRow message or plain object to encode
|
|
41291
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41292
|
+
* @returns {$protobuf.Writer} Writer
|
|
41293
|
+
*/
|
|
41294
|
+
AudienceRow.encode = function encode(message, writer) {
|
|
41295
|
+
if (!writer)
|
|
41296
|
+
writer = $Writer.create();
|
|
41297
|
+
if (message.dimensionValues != null && message.dimensionValues.length)
|
|
41298
|
+
for (var i = 0; i < message.dimensionValues.length; ++i)
|
|
41299
|
+
$root.google.analytics.data.v1beta.AudienceDimensionValue.encode(message.dimensionValues[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
41300
|
+
return writer;
|
|
41301
|
+
};
|
|
41302
|
+
|
|
41303
|
+
/**
|
|
41304
|
+
* Encodes the specified AudienceRow message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.AudienceRow.verify|verify} messages.
|
|
41305
|
+
* @function encodeDelimited
|
|
41306
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41307
|
+
* @static
|
|
41308
|
+
* @param {google.analytics.data.v1beta.IAudienceRow} message AudienceRow message or plain object to encode
|
|
41309
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41310
|
+
* @returns {$protobuf.Writer} Writer
|
|
41311
|
+
*/
|
|
41312
|
+
AudienceRow.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41313
|
+
return this.encode(message, writer).ldelim();
|
|
41314
|
+
};
|
|
41315
|
+
|
|
41316
|
+
/**
|
|
41317
|
+
* Decodes an AudienceRow message from the specified reader or buffer.
|
|
41318
|
+
* @function decode
|
|
41319
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41320
|
+
* @static
|
|
41321
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41322
|
+
* @param {number} [length] Message length if known beforehand
|
|
41323
|
+
* @returns {google.analytics.data.v1beta.AudienceRow} AudienceRow
|
|
41324
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41325
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41326
|
+
*/
|
|
41327
|
+
AudienceRow.decode = function decode(reader, length) {
|
|
41328
|
+
if (!(reader instanceof $Reader))
|
|
41329
|
+
reader = $Reader.create(reader);
|
|
41330
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.AudienceRow();
|
|
41331
|
+
while (reader.pos < end) {
|
|
41332
|
+
var tag = reader.uint32();
|
|
41333
|
+
switch (tag >>> 3) {
|
|
41334
|
+
case 1: {
|
|
41335
|
+
if (!(message.dimensionValues && message.dimensionValues.length))
|
|
41336
|
+
message.dimensionValues = [];
|
|
41337
|
+
message.dimensionValues.push($root.google.analytics.data.v1beta.AudienceDimensionValue.decode(reader, reader.uint32()));
|
|
41338
|
+
break;
|
|
41339
|
+
}
|
|
41340
|
+
default:
|
|
41341
|
+
reader.skipType(tag & 7);
|
|
41342
|
+
break;
|
|
41343
|
+
}
|
|
41344
|
+
}
|
|
41345
|
+
return message;
|
|
41346
|
+
};
|
|
41347
|
+
|
|
41348
|
+
/**
|
|
41349
|
+
* Decodes an AudienceRow message from the specified reader or buffer, length delimited.
|
|
41350
|
+
* @function decodeDelimited
|
|
41351
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41352
|
+
* @static
|
|
41353
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41354
|
+
* @returns {google.analytics.data.v1beta.AudienceRow} AudienceRow
|
|
41355
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41356
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41357
|
+
*/
|
|
41358
|
+
AudienceRow.decodeDelimited = function decodeDelimited(reader) {
|
|
41359
|
+
if (!(reader instanceof $Reader))
|
|
41360
|
+
reader = new $Reader(reader);
|
|
41361
|
+
return this.decode(reader, reader.uint32());
|
|
41362
|
+
};
|
|
41363
|
+
|
|
41364
|
+
/**
|
|
41365
|
+
* Verifies an AudienceRow message.
|
|
41366
|
+
* @function verify
|
|
41367
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41368
|
+
* @static
|
|
41369
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41370
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41371
|
+
*/
|
|
41372
|
+
AudienceRow.verify = function verify(message) {
|
|
41373
|
+
if (typeof message !== "object" || message === null)
|
|
41374
|
+
return "object expected";
|
|
41375
|
+
if (message.dimensionValues != null && message.hasOwnProperty("dimensionValues")) {
|
|
41376
|
+
if (!Array.isArray(message.dimensionValues))
|
|
41377
|
+
return "dimensionValues: array expected";
|
|
41378
|
+
for (var i = 0; i < message.dimensionValues.length; ++i) {
|
|
41379
|
+
var error = $root.google.analytics.data.v1beta.AudienceDimensionValue.verify(message.dimensionValues[i]);
|
|
41380
|
+
if (error)
|
|
41381
|
+
return "dimensionValues." + error;
|
|
41382
|
+
}
|
|
41383
|
+
}
|
|
41384
|
+
return null;
|
|
41385
|
+
};
|
|
41386
|
+
|
|
41387
|
+
/**
|
|
41388
|
+
* Creates an AudienceRow message from a plain object. Also converts values to their respective internal types.
|
|
41389
|
+
* @function fromObject
|
|
41390
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41391
|
+
* @static
|
|
41392
|
+
* @param {Object.<string,*>} object Plain object
|
|
41393
|
+
* @returns {google.analytics.data.v1beta.AudienceRow} AudienceRow
|
|
41394
|
+
*/
|
|
41395
|
+
AudienceRow.fromObject = function fromObject(object) {
|
|
41396
|
+
if (object instanceof $root.google.analytics.data.v1beta.AudienceRow)
|
|
41397
|
+
return object;
|
|
41398
|
+
var message = new $root.google.analytics.data.v1beta.AudienceRow();
|
|
41399
|
+
if (object.dimensionValues) {
|
|
41400
|
+
if (!Array.isArray(object.dimensionValues))
|
|
41401
|
+
throw TypeError(".google.analytics.data.v1beta.AudienceRow.dimensionValues: array expected");
|
|
41402
|
+
message.dimensionValues = [];
|
|
41403
|
+
for (var i = 0; i < object.dimensionValues.length; ++i) {
|
|
41404
|
+
if (typeof object.dimensionValues[i] !== "object")
|
|
41405
|
+
throw TypeError(".google.analytics.data.v1beta.AudienceRow.dimensionValues: object expected");
|
|
41406
|
+
message.dimensionValues[i] = $root.google.analytics.data.v1beta.AudienceDimensionValue.fromObject(object.dimensionValues[i]);
|
|
41407
|
+
}
|
|
41408
|
+
}
|
|
41409
|
+
return message;
|
|
41410
|
+
};
|
|
41411
|
+
|
|
41412
|
+
/**
|
|
41413
|
+
* Creates a plain object from an AudienceRow message. Also converts values to other types if specified.
|
|
41414
|
+
* @function toObject
|
|
41415
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41416
|
+
* @static
|
|
41417
|
+
* @param {google.analytics.data.v1beta.AudienceRow} message AudienceRow
|
|
41418
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41419
|
+
* @returns {Object.<string,*>} Plain object
|
|
41420
|
+
*/
|
|
41421
|
+
AudienceRow.toObject = function toObject(message, options) {
|
|
41422
|
+
if (!options)
|
|
41423
|
+
options = {};
|
|
41424
|
+
var object = {};
|
|
41425
|
+
if (options.arrays || options.defaults)
|
|
41426
|
+
object.dimensionValues = [];
|
|
41427
|
+
if (message.dimensionValues && message.dimensionValues.length) {
|
|
41428
|
+
object.dimensionValues = [];
|
|
41429
|
+
for (var j = 0; j < message.dimensionValues.length; ++j)
|
|
41430
|
+
object.dimensionValues[j] = $root.google.analytics.data.v1beta.AudienceDimensionValue.toObject(message.dimensionValues[j], options);
|
|
41431
|
+
}
|
|
41432
|
+
return object;
|
|
41433
|
+
};
|
|
41434
|
+
|
|
41435
|
+
/**
|
|
41436
|
+
* Converts this AudienceRow to JSON.
|
|
41437
|
+
* @function toJSON
|
|
41438
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41439
|
+
* @instance
|
|
41440
|
+
* @returns {Object.<string,*>} JSON object
|
|
41441
|
+
*/
|
|
41442
|
+
AudienceRow.prototype.toJSON = function toJSON() {
|
|
41443
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41444
|
+
};
|
|
41445
|
+
|
|
41446
|
+
/**
|
|
41447
|
+
* Gets the default type url for AudienceRow
|
|
41448
|
+
* @function getTypeUrl
|
|
41449
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41450
|
+
* @static
|
|
41451
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41452
|
+
* @returns {string} The default type url
|
|
41453
|
+
*/
|
|
41454
|
+
AudienceRow.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41455
|
+
if (typeUrlPrefix === undefined) {
|
|
41456
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41457
|
+
}
|
|
41458
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.AudienceRow";
|
|
41459
|
+
};
|
|
41460
|
+
|
|
41461
|
+
return AudienceRow;
|
|
41462
|
+
})();
|
|
41463
|
+
|
|
41464
|
+
v1beta.AudienceDimension = (function() {
|
|
41465
|
+
|
|
41466
|
+
/**
|
|
41467
|
+
* Properties of an AudienceDimension.
|
|
41468
|
+
* @memberof google.analytics.data.v1beta
|
|
41469
|
+
* @interface IAudienceDimension
|
|
41470
|
+
* @property {string|null} [dimensionName] AudienceDimension dimensionName
|
|
41471
|
+
*/
|
|
41472
|
+
|
|
41473
|
+
/**
|
|
41474
|
+
* Constructs a new AudienceDimension.
|
|
41475
|
+
* @memberof google.analytics.data.v1beta
|
|
41476
|
+
* @classdesc Represents an AudienceDimension.
|
|
41477
|
+
* @implements IAudienceDimension
|
|
41478
|
+
* @constructor
|
|
41479
|
+
* @param {google.analytics.data.v1beta.IAudienceDimension=} [properties] Properties to set
|
|
41480
|
+
*/
|
|
41481
|
+
function AudienceDimension(properties) {
|
|
41482
|
+
if (properties)
|
|
41483
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41484
|
+
if (properties[keys[i]] != null)
|
|
41485
|
+
this[keys[i]] = properties[keys[i]];
|
|
41486
|
+
}
|
|
41487
|
+
|
|
41488
|
+
/**
|
|
41489
|
+
* AudienceDimension dimensionName.
|
|
41490
|
+
* @member {string} dimensionName
|
|
41491
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41492
|
+
* @instance
|
|
41493
|
+
*/
|
|
41494
|
+
AudienceDimension.prototype.dimensionName = "";
|
|
41495
|
+
|
|
41496
|
+
/**
|
|
41497
|
+
* Creates a new AudienceDimension instance using the specified properties.
|
|
41498
|
+
* @function create
|
|
41499
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41500
|
+
* @static
|
|
41501
|
+
* @param {google.analytics.data.v1beta.IAudienceDimension=} [properties] Properties to set
|
|
41502
|
+
* @returns {google.analytics.data.v1beta.AudienceDimension} AudienceDimension instance
|
|
41503
|
+
*/
|
|
41504
|
+
AudienceDimension.create = function create(properties) {
|
|
41505
|
+
return new AudienceDimension(properties);
|
|
41506
|
+
};
|
|
41507
|
+
|
|
41508
|
+
/**
|
|
41509
|
+
* Encodes the specified AudienceDimension message. Does not implicitly {@link google.analytics.data.v1beta.AudienceDimension.verify|verify} messages.
|
|
41510
|
+
* @function encode
|
|
41511
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41512
|
+
* @static
|
|
41513
|
+
* @param {google.analytics.data.v1beta.IAudienceDimension} message AudienceDimension message or plain object to encode
|
|
41514
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41515
|
+
* @returns {$protobuf.Writer} Writer
|
|
41516
|
+
*/
|
|
41517
|
+
AudienceDimension.encode = function encode(message, writer) {
|
|
41518
|
+
if (!writer)
|
|
41519
|
+
writer = $Writer.create();
|
|
41520
|
+
if (message.dimensionName != null && Object.hasOwnProperty.call(message, "dimensionName"))
|
|
41521
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimensionName);
|
|
41522
|
+
return writer;
|
|
41523
|
+
};
|
|
41524
|
+
|
|
41525
|
+
/**
|
|
41526
|
+
* Encodes the specified AudienceDimension message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.AudienceDimension.verify|verify} messages.
|
|
41527
|
+
* @function encodeDelimited
|
|
41528
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41529
|
+
* @static
|
|
41530
|
+
* @param {google.analytics.data.v1beta.IAudienceDimension} message AudienceDimension message or plain object to encode
|
|
41531
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41532
|
+
* @returns {$protobuf.Writer} Writer
|
|
41533
|
+
*/
|
|
41534
|
+
AudienceDimension.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41535
|
+
return this.encode(message, writer).ldelim();
|
|
41536
|
+
};
|
|
41537
|
+
|
|
41538
|
+
/**
|
|
41539
|
+
* Decodes an AudienceDimension message from the specified reader or buffer.
|
|
41540
|
+
* @function decode
|
|
41541
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41542
|
+
* @static
|
|
41543
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41544
|
+
* @param {number} [length] Message length if known beforehand
|
|
41545
|
+
* @returns {google.analytics.data.v1beta.AudienceDimension} AudienceDimension
|
|
41546
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41547
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41548
|
+
*/
|
|
41549
|
+
AudienceDimension.decode = function decode(reader, length) {
|
|
41550
|
+
if (!(reader instanceof $Reader))
|
|
41551
|
+
reader = $Reader.create(reader);
|
|
41552
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.AudienceDimension();
|
|
41553
|
+
while (reader.pos < end) {
|
|
41554
|
+
var tag = reader.uint32();
|
|
41555
|
+
switch (tag >>> 3) {
|
|
41556
|
+
case 1: {
|
|
41557
|
+
message.dimensionName = reader.string();
|
|
41558
|
+
break;
|
|
41559
|
+
}
|
|
41560
|
+
default:
|
|
41561
|
+
reader.skipType(tag & 7);
|
|
41562
|
+
break;
|
|
41563
|
+
}
|
|
41564
|
+
}
|
|
41565
|
+
return message;
|
|
41566
|
+
};
|
|
41567
|
+
|
|
41568
|
+
/**
|
|
41569
|
+
* Decodes an AudienceDimension message from the specified reader or buffer, length delimited.
|
|
41570
|
+
* @function decodeDelimited
|
|
41571
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41572
|
+
* @static
|
|
41573
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41574
|
+
* @returns {google.analytics.data.v1beta.AudienceDimension} AudienceDimension
|
|
41575
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41576
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41577
|
+
*/
|
|
41578
|
+
AudienceDimension.decodeDelimited = function decodeDelimited(reader) {
|
|
41579
|
+
if (!(reader instanceof $Reader))
|
|
41580
|
+
reader = new $Reader(reader);
|
|
41581
|
+
return this.decode(reader, reader.uint32());
|
|
41582
|
+
};
|
|
41583
|
+
|
|
41584
|
+
/**
|
|
41585
|
+
* Verifies an AudienceDimension message.
|
|
41586
|
+
* @function verify
|
|
41587
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41588
|
+
* @static
|
|
41589
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41590
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41591
|
+
*/
|
|
41592
|
+
AudienceDimension.verify = function verify(message) {
|
|
41593
|
+
if (typeof message !== "object" || message === null)
|
|
41594
|
+
return "object expected";
|
|
41595
|
+
if (message.dimensionName != null && message.hasOwnProperty("dimensionName"))
|
|
41596
|
+
if (!$util.isString(message.dimensionName))
|
|
41597
|
+
return "dimensionName: string expected";
|
|
41598
|
+
return null;
|
|
41599
|
+
};
|
|
41600
|
+
|
|
41601
|
+
/**
|
|
41602
|
+
* Creates an AudienceDimension message from a plain object. Also converts values to their respective internal types.
|
|
41603
|
+
* @function fromObject
|
|
41604
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41605
|
+
* @static
|
|
41606
|
+
* @param {Object.<string,*>} object Plain object
|
|
41607
|
+
* @returns {google.analytics.data.v1beta.AudienceDimension} AudienceDimension
|
|
41608
|
+
*/
|
|
41609
|
+
AudienceDimension.fromObject = function fromObject(object) {
|
|
41610
|
+
if (object instanceof $root.google.analytics.data.v1beta.AudienceDimension)
|
|
41611
|
+
return object;
|
|
41612
|
+
var message = new $root.google.analytics.data.v1beta.AudienceDimension();
|
|
41613
|
+
if (object.dimensionName != null)
|
|
41614
|
+
message.dimensionName = String(object.dimensionName);
|
|
41615
|
+
return message;
|
|
41616
|
+
};
|
|
41617
|
+
|
|
41618
|
+
/**
|
|
41619
|
+
* Creates a plain object from an AudienceDimension message. Also converts values to other types if specified.
|
|
41620
|
+
* @function toObject
|
|
41621
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41622
|
+
* @static
|
|
41623
|
+
* @param {google.analytics.data.v1beta.AudienceDimension} message AudienceDimension
|
|
41624
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41625
|
+
* @returns {Object.<string,*>} Plain object
|
|
41626
|
+
*/
|
|
41627
|
+
AudienceDimension.toObject = function toObject(message, options) {
|
|
41628
|
+
if (!options)
|
|
41629
|
+
options = {};
|
|
41630
|
+
var object = {};
|
|
41631
|
+
if (options.defaults)
|
|
41632
|
+
object.dimensionName = "";
|
|
41633
|
+
if (message.dimensionName != null && message.hasOwnProperty("dimensionName"))
|
|
41634
|
+
object.dimensionName = message.dimensionName;
|
|
41635
|
+
return object;
|
|
41636
|
+
};
|
|
41637
|
+
|
|
41638
|
+
/**
|
|
41639
|
+
* Converts this AudienceDimension to JSON.
|
|
41640
|
+
* @function toJSON
|
|
41641
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41642
|
+
* @instance
|
|
41643
|
+
* @returns {Object.<string,*>} JSON object
|
|
41644
|
+
*/
|
|
41645
|
+
AudienceDimension.prototype.toJSON = function toJSON() {
|
|
41646
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41647
|
+
};
|
|
41648
|
+
|
|
41649
|
+
/**
|
|
41650
|
+
* Gets the default type url for AudienceDimension
|
|
41651
|
+
* @function getTypeUrl
|
|
41652
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41653
|
+
* @static
|
|
41654
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41655
|
+
* @returns {string} The default type url
|
|
41656
|
+
*/
|
|
41657
|
+
AudienceDimension.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41658
|
+
if (typeUrlPrefix === undefined) {
|
|
41659
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41660
|
+
}
|
|
41661
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.AudienceDimension";
|
|
41662
|
+
};
|
|
41663
|
+
|
|
41664
|
+
return AudienceDimension;
|
|
41665
|
+
})();
|
|
41666
|
+
|
|
41667
|
+
v1beta.AudienceDimensionValue = (function() {
|
|
41668
|
+
|
|
41669
|
+
/**
|
|
41670
|
+
* Properties of an AudienceDimensionValue.
|
|
41671
|
+
* @memberof google.analytics.data.v1beta
|
|
41672
|
+
* @interface IAudienceDimensionValue
|
|
41673
|
+
* @property {string|null} [value] AudienceDimensionValue value
|
|
41674
|
+
*/
|
|
41675
|
+
|
|
41676
|
+
/**
|
|
41677
|
+
* Constructs a new AudienceDimensionValue.
|
|
41678
|
+
* @memberof google.analytics.data.v1beta
|
|
41679
|
+
* @classdesc Represents an AudienceDimensionValue.
|
|
41680
|
+
* @implements IAudienceDimensionValue
|
|
41681
|
+
* @constructor
|
|
41682
|
+
* @param {google.analytics.data.v1beta.IAudienceDimensionValue=} [properties] Properties to set
|
|
41683
|
+
*/
|
|
41684
|
+
function AudienceDimensionValue(properties) {
|
|
41685
|
+
if (properties)
|
|
41686
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41687
|
+
if (properties[keys[i]] != null)
|
|
41688
|
+
this[keys[i]] = properties[keys[i]];
|
|
41689
|
+
}
|
|
41690
|
+
|
|
41691
|
+
/**
|
|
41692
|
+
* AudienceDimensionValue value.
|
|
41693
|
+
* @member {string|null|undefined} value
|
|
41694
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41695
|
+
* @instance
|
|
41696
|
+
*/
|
|
41697
|
+
AudienceDimensionValue.prototype.value = null;
|
|
41698
|
+
|
|
41699
|
+
// OneOf field names bound to virtual getters and setters
|
|
41700
|
+
var $oneOfFields;
|
|
41701
|
+
|
|
41702
|
+
/**
|
|
41703
|
+
* AudienceDimensionValue oneValue.
|
|
41704
|
+
* @member {"value"|undefined} oneValue
|
|
41705
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41706
|
+
* @instance
|
|
41707
|
+
*/
|
|
41708
|
+
Object.defineProperty(AudienceDimensionValue.prototype, "oneValue", {
|
|
41709
|
+
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
|
41710
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
41711
|
+
});
|
|
41712
|
+
|
|
41713
|
+
/**
|
|
41714
|
+
* Creates a new AudienceDimensionValue instance using the specified properties.
|
|
41715
|
+
* @function create
|
|
41716
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41717
|
+
* @static
|
|
41718
|
+
* @param {google.analytics.data.v1beta.IAudienceDimensionValue=} [properties] Properties to set
|
|
41719
|
+
* @returns {google.analytics.data.v1beta.AudienceDimensionValue} AudienceDimensionValue instance
|
|
41720
|
+
*/
|
|
41721
|
+
AudienceDimensionValue.create = function create(properties) {
|
|
41722
|
+
return new AudienceDimensionValue(properties);
|
|
41723
|
+
};
|
|
41724
|
+
|
|
41725
|
+
/**
|
|
41726
|
+
* Encodes the specified AudienceDimensionValue message. Does not implicitly {@link google.analytics.data.v1beta.AudienceDimensionValue.verify|verify} messages.
|
|
41727
|
+
* @function encode
|
|
41728
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41729
|
+
* @static
|
|
41730
|
+
* @param {google.analytics.data.v1beta.IAudienceDimensionValue} message AudienceDimensionValue message or plain object to encode
|
|
41731
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41732
|
+
* @returns {$protobuf.Writer} Writer
|
|
41733
|
+
*/
|
|
41734
|
+
AudienceDimensionValue.encode = function encode(message, writer) {
|
|
41735
|
+
if (!writer)
|
|
41736
|
+
writer = $Writer.create();
|
|
41737
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
41738
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
|
|
41739
|
+
return writer;
|
|
41740
|
+
};
|
|
41741
|
+
|
|
41742
|
+
/**
|
|
41743
|
+
* Encodes the specified AudienceDimensionValue message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.AudienceDimensionValue.verify|verify} messages.
|
|
41744
|
+
* @function encodeDelimited
|
|
41745
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41746
|
+
* @static
|
|
41747
|
+
* @param {google.analytics.data.v1beta.IAudienceDimensionValue} message AudienceDimensionValue message or plain object to encode
|
|
41748
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41749
|
+
* @returns {$protobuf.Writer} Writer
|
|
41750
|
+
*/
|
|
41751
|
+
AudienceDimensionValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41752
|
+
return this.encode(message, writer).ldelim();
|
|
41753
|
+
};
|
|
41754
|
+
|
|
41755
|
+
/**
|
|
41756
|
+
* Decodes an AudienceDimensionValue message from the specified reader or buffer.
|
|
41757
|
+
* @function decode
|
|
41758
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41759
|
+
* @static
|
|
41760
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41761
|
+
* @param {number} [length] Message length if known beforehand
|
|
41762
|
+
* @returns {google.analytics.data.v1beta.AudienceDimensionValue} AudienceDimensionValue
|
|
41763
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41764
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41765
|
+
*/
|
|
41766
|
+
AudienceDimensionValue.decode = function decode(reader, length) {
|
|
41767
|
+
if (!(reader instanceof $Reader))
|
|
41768
|
+
reader = $Reader.create(reader);
|
|
41769
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.AudienceDimensionValue();
|
|
41770
|
+
while (reader.pos < end) {
|
|
41771
|
+
var tag = reader.uint32();
|
|
41772
|
+
switch (tag >>> 3) {
|
|
41773
|
+
case 1: {
|
|
41774
|
+
message.value = reader.string();
|
|
41775
|
+
break;
|
|
41776
|
+
}
|
|
41777
|
+
default:
|
|
41778
|
+
reader.skipType(tag & 7);
|
|
41779
|
+
break;
|
|
41780
|
+
}
|
|
41781
|
+
}
|
|
41782
|
+
return message;
|
|
41783
|
+
};
|
|
41784
|
+
|
|
41785
|
+
/**
|
|
41786
|
+
* Decodes an AudienceDimensionValue message from the specified reader or buffer, length delimited.
|
|
41787
|
+
* @function decodeDelimited
|
|
41788
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41789
|
+
* @static
|
|
41790
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41791
|
+
* @returns {google.analytics.data.v1beta.AudienceDimensionValue} AudienceDimensionValue
|
|
41792
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41793
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41794
|
+
*/
|
|
41795
|
+
AudienceDimensionValue.decodeDelimited = function decodeDelimited(reader) {
|
|
41796
|
+
if (!(reader instanceof $Reader))
|
|
41797
|
+
reader = new $Reader(reader);
|
|
41798
|
+
return this.decode(reader, reader.uint32());
|
|
41799
|
+
};
|
|
41800
|
+
|
|
41801
|
+
/**
|
|
41802
|
+
* Verifies an AudienceDimensionValue message.
|
|
41803
|
+
* @function verify
|
|
41804
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41805
|
+
* @static
|
|
41806
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41807
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41808
|
+
*/
|
|
41809
|
+
AudienceDimensionValue.verify = function verify(message) {
|
|
41810
|
+
if (typeof message !== "object" || message === null)
|
|
41811
|
+
return "object expected";
|
|
41812
|
+
var properties = {};
|
|
41813
|
+
if (message.value != null && message.hasOwnProperty("value")) {
|
|
41814
|
+
properties.oneValue = 1;
|
|
41815
|
+
if (!$util.isString(message.value))
|
|
41816
|
+
return "value: string expected";
|
|
41817
|
+
}
|
|
41818
|
+
return null;
|
|
41819
|
+
};
|
|
41820
|
+
|
|
41821
|
+
/**
|
|
41822
|
+
* Creates an AudienceDimensionValue message from a plain object. Also converts values to their respective internal types.
|
|
41823
|
+
* @function fromObject
|
|
41824
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41825
|
+
* @static
|
|
41826
|
+
* @param {Object.<string,*>} object Plain object
|
|
41827
|
+
* @returns {google.analytics.data.v1beta.AudienceDimensionValue} AudienceDimensionValue
|
|
41828
|
+
*/
|
|
41829
|
+
AudienceDimensionValue.fromObject = function fromObject(object) {
|
|
41830
|
+
if (object instanceof $root.google.analytics.data.v1beta.AudienceDimensionValue)
|
|
41831
|
+
return object;
|
|
41832
|
+
var message = new $root.google.analytics.data.v1beta.AudienceDimensionValue();
|
|
41833
|
+
if (object.value != null)
|
|
41834
|
+
message.value = String(object.value);
|
|
41835
|
+
return message;
|
|
41836
|
+
};
|
|
41837
|
+
|
|
41838
|
+
/**
|
|
41839
|
+
* Creates a plain object from an AudienceDimensionValue message. Also converts values to other types if specified.
|
|
41840
|
+
* @function toObject
|
|
41841
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41842
|
+
* @static
|
|
41843
|
+
* @param {google.analytics.data.v1beta.AudienceDimensionValue} message AudienceDimensionValue
|
|
41844
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41845
|
+
* @returns {Object.<string,*>} Plain object
|
|
41846
|
+
*/
|
|
41847
|
+
AudienceDimensionValue.toObject = function toObject(message, options) {
|
|
41848
|
+
if (!options)
|
|
41849
|
+
options = {};
|
|
41850
|
+
var object = {};
|
|
41851
|
+
if (message.value != null && message.hasOwnProperty("value")) {
|
|
41852
|
+
object.value = message.value;
|
|
41853
|
+
if (options.oneofs)
|
|
41854
|
+
object.oneValue = "value";
|
|
41855
|
+
}
|
|
41856
|
+
return object;
|
|
41857
|
+
};
|
|
41858
|
+
|
|
41859
|
+
/**
|
|
41860
|
+
* Converts this AudienceDimensionValue to JSON.
|
|
41861
|
+
* @function toJSON
|
|
41862
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41863
|
+
* @instance
|
|
41864
|
+
* @returns {Object.<string,*>} JSON object
|
|
41865
|
+
*/
|
|
41866
|
+
AudienceDimensionValue.prototype.toJSON = function toJSON() {
|
|
41867
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41868
|
+
};
|
|
41869
|
+
|
|
41870
|
+
/**
|
|
41871
|
+
* Gets the default type url for AudienceDimensionValue
|
|
41872
|
+
* @function getTypeUrl
|
|
41873
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41874
|
+
* @static
|
|
41875
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41876
|
+
* @returns {string} The default type url
|
|
41877
|
+
*/
|
|
41878
|
+
AudienceDimensionValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41879
|
+
if (typeUrlPrefix === undefined) {
|
|
41880
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41881
|
+
}
|
|
41882
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.AudienceDimensionValue";
|
|
41883
|
+
};
|
|
41884
|
+
|
|
41885
|
+
return AudienceDimensionValue;
|
|
41886
|
+
})();
|
|
41887
|
+
|
|
38482
41888
|
v1beta.DateRange = (function() {
|
|
38483
41889
|
|
|
38484
41890
|
/**
|
|
@@ -44983,6 +48389,7 @@
|
|
|
44983
48389
|
* @property {string|null} [timeZone] ResponseMetaData timeZone
|
|
44984
48390
|
* @property {string|null} [emptyReason] ResponseMetaData emptyReason
|
|
44985
48391
|
* @property {boolean|null} [subjectToThresholding] ResponseMetaData subjectToThresholding
|
|
48392
|
+
* @property {Array.<google.analytics.data.v1beta.ISamplingMetadata>|null} [samplingMetadatas] ResponseMetaData samplingMetadatas
|
|
44986
48393
|
*/
|
|
44987
48394
|
|
|
44988
48395
|
/**
|
|
@@ -44994,6 +48401,7 @@
|
|
|
44994
48401
|
* @param {google.analytics.data.v1beta.IResponseMetaData=} [properties] Properties to set
|
|
44995
48402
|
*/
|
|
44996
48403
|
function ResponseMetaData(properties) {
|
|
48404
|
+
this.samplingMetadatas = [];
|
|
44997
48405
|
if (properties)
|
|
44998
48406
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44999
48407
|
if (properties[keys[i]] != null)
|
|
@@ -45048,6 +48456,14 @@
|
|
|
45048
48456
|
*/
|
|
45049
48457
|
ResponseMetaData.prototype.subjectToThresholding = null;
|
|
45050
48458
|
|
|
48459
|
+
/**
|
|
48460
|
+
* ResponseMetaData samplingMetadatas.
|
|
48461
|
+
* @member {Array.<google.analytics.data.v1beta.ISamplingMetadata>} samplingMetadatas
|
|
48462
|
+
* @memberof google.analytics.data.v1beta.ResponseMetaData
|
|
48463
|
+
* @instance
|
|
48464
|
+
*/
|
|
48465
|
+
ResponseMetaData.prototype.samplingMetadatas = $util.emptyArray;
|
|
48466
|
+
|
|
45051
48467
|
// OneOf field names bound to virtual getters and setters
|
|
45052
48468
|
var $oneOfFields;
|
|
45053
48469
|
|
|
@@ -45142,6 +48558,9 @@
|
|
|
45142
48558
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.emptyReason);
|
|
45143
48559
|
if (message.subjectToThresholding != null && Object.hasOwnProperty.call(message, "subjectToThresholding"))
|
|
45144
48560
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.subjectToThresholding);
|
|
48561
|
+
if (message.samplingMetadatas != null && message.samplingMetadatas.length)
|
|
48562
|
+
for (var i = 0; i < message.samplingMetadatas.length; ++i)
|
|
48563
|
+
$root.google.analytics.data.v1beta.SamplingMetadata.encode(message.samplingMetadatas[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
45145
48564
|
return writer;
|
|
45146
48565
|
};
|
|
45147
48566
|
|
|
@@ -45200,6 +48619,12 @@
|
|
|
45200
48619
|
message.subjectToThresholding = reader.bool();
|
|
45201
48620
|
break;
|
|
45202
48621
|
}
|
|
48622
|
+
case 9: {
|
|
48623
|
+
if (!(message.samplingMetadatas && message.samplingMetadatas.length))
|
|
48624
|
+
message.samplingMetadatas = [];
|
|
48625
|
+
message.samplingMetadatas.push($root.google.analytics.data.v1beta.SamplingMetadata.decode(reader, reader.uint32()));
|
|
48626
|
+
break;
|
|
48627
|
+
}
|
|
45203
48628
|
default:
|
|
45204
48629
|
reader.skipType(tag & 7);
|
|
45205
48630
|
break;
|
|
@@ -45267,6 +48692,15 @@
|
|
|
45267
48692
|
if (typeof message.subjectToThresholding !== "boolean")
|
|
45268
48693
|
return "subjectToThresholding: boolean expected";
|
|
45269
48694
|
}
|
|
48695
|
+
if (message.samplingMetadatas != null && message.hasOwnProperty("samplingMetadatas")) {
|
|
48696
|
+
if (!Array.isArray(message.samplingMetadatas))
|
|
48697
|
+
return "samplingMetadatas: array expected";
|
|
48698
|
+
for (var i = 0; i < message.samplingMetadatas.length; ++i) {
|
|
48699
|
+
var error = $root.google.analytics.data.v1beta.SamplingMetadata.verify(message.samplingMetadatas[i]);
|
|
48700
|
+
if (error)
|
|
48701
|
+
return "samplingMetadatas." + error;
|
|
48702
|
+
}
|
|
48703
|
+
}
|
|
45270
48704
|
return null;
|
|
45271
48705
|
};
|
|
45272
48706
|
|
|
@@ -45297,6 +48731,16 @@
|
|
|
45297
48731
|
message.emptyReason = String(object.emptyReason);
|
|
45298
48732
|
if (object.subjectToThresholding != null)
|
|
45299
48733
|
message.subjectToThresholding = Boolean(object.subjectToThresholding);
|
|
48734
|
+
if (object.samplingMetadatas) {
|
|
48735
|
+
if (!Array.isArray(object.samplingMetadatas))
|
|
48736
|
+
throw TypeError(".google.analytics.data.v1beta.ResponseMetaData.samplingMetadatas: array expected");
|
|
48737
|
+
message.samplingMetadatas = [];
|
|
48738
|
+
for (var i = 0; i < object.samplingMetadatas.length; ++i) {
|
|
48739
|
+
if (typeof object.samplingMetadatas[i] !== "object")
|
|
48740
|
+
throw TypeError(".google.analytics.data.v1beta.ResponseMetaData.samplingMetadatas: object expected");
|
|
48741
|
+
message.samplingMetadatas[i] = $root.google.analytics.data.v1beta.SamplingMetadata.fromObject(object.samplingMetadatas[i]);
|
|
48742
|
+
}
|
|
48743
|
+
}
|
|
45300
48744
|
return message;
|
|
45301
48745
|
};
|
|
45302
48746
|
|
|
@@ -45313,6 +48757,8 @@
|
|
|
45313
48757
|
if (!options)
|
|
45314
48758
|
options = {};
|
|
45315
48759
|
var object = {};
|
|
48760
|
+
if (options.arrays || options.defaults)
|
|
48761
|
+
object.samplingMetadatas = [];
|
|
45316
48762
|
if (options.defaults)
|
|
45317
48763
|
object.dataLossFromOtherRow = false;
|
|
45318
48764
|
if (message.dataLossFromOtherRow != null && message.hasOwnProperty("dataLossFromOtherRow"))
|
|
@@ -45342,6 +48788,11 @@
|
|
|
45342
48788
|
if (options.oneofs)
|
|
45343
48789
|
object._subjectToThresholding = "subjectToThresholding";
|
|
45344
48790
|
}
|
|
48791
|
+
if (message.samplingMetadatas && message.samplingMetadatas.length) {
|
|
48792
|
+
object.samplingMetadatas = [];
|
|
48793
|
+
for (var j = 0; j < message.samplingMetadatas.length; ++j)
|
|
48794
|
+
object.samplingMetadatas[j] = $root.google.analytics.data.v1beta.SamplingMetadata.toObject(message.samplingMetadatas[j], options);
|
|
48795
|
+
}
|
|
45345
48796
|
return object;
|
|
45346
48797
|
};
|
|
45347
48798
|
|
|
@@ -45891,6 +49342,261 @@
|
|
|
45891
49342
|
return ResponseMetaData;
|
|
45892
49343
|
})();
|
|
45893
49344
|
|
|
49345
|
+
v1beta.SamplingMetadata = (function() {
|
|
49346
|
+
|
|
49347
|
+
/**
|
|
49348
|
+
* Properties of a SamplingMetadata.
|
|
49349
|
+
* @memberof google.analytics.data.v1beta
|
|
49350
|
+
* @interface ISamplingMetadata
|
|
49351
|
+
* @property {number|Long|null} [samplesReadCount] SamplingMetadata samplesReadCount
|
|
49352
|
+
* @property {number|Long|null} [samplingSpaceSize] SamplingMetadata samplingSpaceSize
|
|
49353
|
+
*/
|
|
49354
|
+
|
|
49355
|
+
/**
|
|
49356
|
+
* Constructs a new SamplingMetadata.
|
|
49357
|
+
* @memberof google.analytics.data.v1beta
|
|
49358
|
+
* @classdesc Represents a SamplingMetadata.
|
|
49359
|
+
* @implements ISamplingMetadata
|
|
49360
|
+
* @constructor
|
|
49361
|
+
* @param {google.analytics.data.v1beta.ISamplingMetadata=} [properties] Properties to set
|
|
49362
|
+
*/
|
|
49363
|
+
function SamplingMetadata(properties) {
|
|
49364
|
+
if (properties)
|
|
49365
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49366
|
+
if (properties[keys[i]] != null)
|
|
49367
|
+
this[keys[i]] = properties[keys[i]];
|
|
49368
|
+
}
|
|
49369
|
+
|
|
49370
|
+
/**
|
|
49371
|
+
* SamplingMetadata samplesReadCount.
|
|
49372
|
+
* @member {number|Long} samplesReadCount
|
|
49373
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49374
|
+
* @instance
|
|
49375
|
+
*/
|
|
49376
|
+
SamplingMetadata.prototype.samplesReadCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
49377
|
+
|
|
49378
|
+
/**
|
|
49379
|
+
* SamplingMetadata samplingSpaceSize.
|
|
49380
|
+
* @member {number|Long} samplingSpaceSize
|
|
49381
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49382
|
+
* @instance
|
|
49383
|
+
*/
|
|
49384
|
+
SamplingMetadata.prototype.samplingSpaceSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
49385
|
+
|
|
49386
|
+
/**
|
|
49387
|
+
* Creates a new SamplingMetadata instance using the specified properties.
|
|
49388
|
+
* @function create
|
|
49389
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49390
|
+
* @static
|
|
49391
|
+
* @param {google.analytics.data.v1beta.ISamplingMetadata=} [properties] Properties to set
|
|
49392
|
+
* @returns {google.analytics.data.v1beta.SamplingMetadata} SamplingMetadata instance
|
|
49393
|
+
*/
|
|
49394
|
+
SamplingMetadata.create = function create(properties) {
|
|
49395
|
+
return new SamplingMetadata(properties);
|
|
49396
|
+
};
|
|
49397
|
+
|
|
49398
|
+
/**
|
|
49399
|
+
* Encodes the specified SamplingMetadata message. Does not implicitly {@link google.analytics.data.v1beta.SamplingMetadata.verify|verify} messages.
|
|
49400
|
+
* @function encode
|
|
49401
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49402
|
+
* @static
|
|
49403
|
+
* @param {google.analytics.data.v1beta.ISamplingMetadata} message SamplingMetadata message or plain object to encode
|
|
49404
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49405
|
+
* @returns {$protobuf.Writer} Writer
|
|
49406
|
+
*/
|
|
49407
|
+
SamplingMetadata.encode = function encode(message, writer) {
|
|
49408
|
+
if (!writer)
|
|
49409
|
+
writer = $Writer.create();
|
|
49410
|
+
if (message.samplesReadCount != null && Object.hasOwnProperty.call(message, "samplesReadCount"))
|
|
49411
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.samplesReadCount);
|
|
49412
|
+
if (message.samplingSpaceSize != null && Object.hasOwnProperty.call(message, "samplingSpaceSize"))
|
|
49413
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.samplingSpaceSize);
|
|
49414
|
+
return writer;
|
|
49415
|
+
};
|
|
49416
|
+
|
|
49417
|
+
/**
|
|
49418
|
+
* Encodes the specified SamplingMetadata message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.SamplingMetadata.verify|verify} messages.
|
|
49419
|
+
* @function encodeDelimited
|
|
49420
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49421
|
+
* @static
|
|
49422
|
+
* @param {google.analytics.data.v1beta.ISamplingMetadata} message SamplingMetadata message or plain object to encode
|
|
49423
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49424
|
+
* @returns {$protobuf.Writer} Writer
|
|
49425
|
+
*/
|
|
49426
|
+
SamplingMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49427
|
+
return this.encode(message, writer).ldelim();
|
|
49428
|
+
};
|
|
49429
|
+
|
|
49430
|
+
/**
|
|
49431
|
+
* Decodes a SamplingMetadata message from the specified reader or buffer.
|
|
49432
|
+
* @function decode
|
|
49433
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49434
|
+
* @static
|
|
49435
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49436
|
+
* @param {number} [length] Message length if known beforehand
|
|
49437
|
+
* @returns {google.analytics.data.v1beta.SamplingMetadata} SamplingMetadata
|
|
49438
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49439
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49440
|
+
*/
|
|
49441
|
+
SamplingMetadata.decode = function decode(reader, length) {
|
|
49442
|
+
if (!(reader instanceof $Reader))
|
|
49443
|
+
reader = $Reader.create(reader);
|
|
49444
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.SamplingMetadata();
|
|
49445
|
+
while (reader.pos < end) {
|
|
49446
|
+
var tag = reader.uint32();
|
|
49447
|
+
switch (tag >>> 3) {
|
|
49448
|
+
case 1: {
|
|
49449
|
+
message.samplesReadCount = reader.int64();
|
|
49450
|
+
break;
|
|
49451
|
+
}
|
|
49452
|
+
case 2: {
|
|
49453
|
+
message.samplingSpaceSize = reader.int64();
|
|
49454
|
+
break;
|
|
49455
|
+
}
|
|
49456
|
+
default:
|
|
49457
|
+
reader.skipType(tag & 7);
|
|
49458
|
+
break;
|
|
49459
|
+
}
|
|
49460
|
+
}
|
|
49461
|
+
return message;
|
|
49462
|
+
};
|
|
49463
|
+
|
|
49464
|
+
/**
|
|
49465
|
+
* Decodes a SamplingMetadata message from the specified reader or buffer, length delimited.
|
|
49466
|
+
* @function decodeDelimited
|
|
49467
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49468
|
+
* @static
|
|
49469
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49470
|
+
* @returns {google.analytics.data.v1beta.SamplingMetadata} SamplingMetadata
|
|
49471
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49472
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49473
|
+
*/
|
|
49474
|
+
SamplingMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
49475
|
+
if (!(reader instanceof $Reader))
|
|
49476
|
+
reader = new $Reader(reader);
|
|
49477
|
+
return this.decode(reader, reader.uint32());
|
|
49478
|
+
};
|
|
49479
|
+
|
|
49480
|
+
/**
|
|
49481
|
+
* Verifies a SamplingMetadata message.
|
|
49482
|
+
* @function verify
|
|
49483
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49484
|
+
* @static
|
|
49485
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
49486
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
49487
|
+
*/
|
|
49488
|
+
SamplingMetadata.verify = function verify(message) {
|
|
49489
|
+
if (typeof message !== "object" || message === null)
|
|
49490
|
+
return "object expected";
|
|
49491
|
+
if (message.samplesReadCount != null && message.hasOwnProperty("samplesReadCount"))
|
|
49492
|
+
if (!$util.isInteger(message.samplesReadCount) && !(message.samplesReadCount && $util.isInteger(message.samplesReadCount.low) && $util.isInteger(message.samplesReadCount.high)))
|
|
49493
|
+
return "samplesReadCount: integer|Long expected";
|
|
49494
|
+
if (message.samplingSpaceSize != null && message.hasOwnProperty("samplingSpaceSize"))
|
|
49495
|
+
if (!$util.isInteger(message.samplingSpaceSize) && !(message.samplingSpaceSize && $util.isInteger(message.samplingSpaceSize.low) && $util.isInteger(message.samplingSpaceSize.high)))
|
|
49496
|
+
return "samplingSpaceSize: integer|Long expected";
|
|
49497
|
+
return null;
|
|
49498
|
+
};
|
|
49499
|
+
|
|
49500
|
+
/**
|
|
49501
|
+
* Creates a SamplingMetadata message from a plain object. Also converts values to their respective internal types.
|
|
49502
|
+
* @function fromObject
|
|
49503
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49504
|
+
* @static
|
|
49505
|
+
* @param {Object.<string,*>} object Plain object
|
|
49506
|
+
* @returns {google.analytics.data.v1beta.SamplingMetadata} SamplingMetadata
|
|
49507
|
+
*/
|
|
49508
|
+
SamplingMetadata.fromObject = function fromObject(object) {
|
|
49509
|
+
if (object instanceof $root.google.analytics.data.v1beta.SamplingMetadata)
|
|
49510
|
+
return object;
|
|
49511
|
+
var message = new $root.google.analytics.data.v1beta.SamplingMetadata();
|
|
49512
|
+
if (object.samplesReadCount != null)
|
|
49513
|
+
if ($util.Long)
|
|
49514
|
+
(message.samplesReadCount = $util.Long.fromValue(object.samplesReadCount)).unsigned = false;
|
|
49515
|
+
else if (typeof object.samplesReadCount === "string")
|
|
49516
|
+
message.samplesReadCount = parseInt(object.samplesReadCount, 10);
|
|
49517
|
+
else if (typeof object.samplesReadCount === "number")
|
|
49518
|
+
message.samplesReadCount = object.samplesReadCount;
|
|
49519
|
+
else if (typeof object.samplesReadCount === "object")
|
|
49520
|
+
message.samplesReadCount = new $util.LongBits(object.samplesReadCount.low >>> 0, object.samplesReadCount.high >>> 0).toNumber();
|
|
49521
|
+
if (object.samplingSpaceSize != null)
|
|
49522
|
+
if ($util.Long)
|
|
49523
|
+
(message.samplingSpaceSize = $util.Long.fromValue(object.samplingSpaceSize)).unsigned = false;
|
|
49524
|
+
else if (typeof object.samplingSpaceSize === "string")
|
|
49525
|
+
message.samplingSpaceSize = parseInt(object.samplingSpaceSize, 10);
|
|
49526
|
+
else if (typeof object.samplingSpaceSize === "number")
|
|
49527
|
+
message.samplingSpaceSize = object.samplingSpaceSize;
|
|
49528
|
+
else if (typeof object.samplingSpaceSize === "object")
|
|
49529
|
+
message.samplingSpaceSize = new $util.LongBits(object.samplingSpaceSize.low >>> 0, object.samplingSpaceSize.high >>> 0).toNumber();
|
|
49530
|
+
return message;
|
|
49531
|
+
};
|
|
49532
|
+
|
|
49533
|
+
/**
|
|
49534
|
+
* Creates a plain object from a SamplingMetadata message. Also converts values to other types if specified.
|
|
49535
|
+
* @function toObject
|
|
49536
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49537
|
+
* @static
|
|
49538
|
+
* @param {google.analytics.data.v1beta.SamplingMetadata} message SamplingMetadata
|
|
49539
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
49540
|
+
* @returns {Object.<string,*>} Plain object
|
|
49541
|
+
*/
|
|
49542
|
+
SamplingMetadata.toObject = function toObject(message, options) {
|
|
49543
|
+
if (!options)
|
|
49544
|
+
options = {};
|
|
49545
|
+
var object = {};
|
|
49546
|
+
if (options.defaults) {
|
|
49547
|
+
if ($util.Long) {
|
|
49548
|
+
var long = new $util.Long(0, 0, false);
|
|
49549
|
+
object.samplesReadCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
49550
|
+
} else
|
|
49551
|
+
object.samplesReadCount = options.longs === String ? "0" : 0;
|
|
49552
|
+
if ($util.Long) {
|
|
49553
|
+
var long = new $util.Long(0, 0, false);
|
|
49554
|
+
object.samplingSpaceSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
49555
|
+
} else
|
|
49556
|
+
object.samplingSpaceSize = options.longs === String ? "0" : 0;
|
|
49557
|
+
}
|
|
49558
|
+
if (message.samplesReadCount != null && message.hasOwnProperty("samplesReadCount"))
|
|
49559
|
+
if (typeof message.samplesReadCount === "number")
|
|
49560
|
+
object.samplesReadCount = options.longs === String ? String(message.samplesReadCount) : message.samplesReadCount;
|
|
49561
|
+
else
|
|
49562
|
+
object.samplesReadCount = options.longs === String ? $util.Long.prototype.toString.call(message.samplesReadCount) : options.longs === Number ? new $util.LongBits(message.samplesReadCount.low >>> 0, message.samplesReadCount.high >>> 0).toNumber() : message.samplesReadCount;
|
|
49563
|
+
if (message.samplingSpaceSize != null && message.hasOwnProperty("samplingSpaceSize"))
|
|
49564
|
+
if (typeof message.samplingSpaceSize === "number")
|
|
49565
|
+
object.samplingSpaceSize = options.longs === String ? String(message.samplingSpaceSize) : message.samplingSpaceSize;
|
|
49566
|
+
else
|
|
49567
|
+
object.samplingSpaceSize = options.longs === String ? $util.Long.prototype.toString.call(message.samplingSpaceSize) : options.longs === Number ? new $util.LongBits(message.samplingSpaceSize.low >>> 0, message.samplingSpaceSize.high >>> 0).toNumber() : message.samplingSpaceSize;
|
|
49568
|
+
return object;
|
|
49569
|
+
};
|
|
49570
|
+
|
|
49571
|
+
/**
|
|
49572
|
+
* Converts this SamplingMetadata to JSON.
|
|
49573
|
+
* @function toJSON
|
|
49574
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49575
|
+
* @instance
|
|
49576
|
+
* @returns {Object.<string,*>} JSON object
|
|
49577
|
+
*/
|
|
49578
|
+
SamplingMetadata.prototype.toJSON = function toJSON() {
|
|
49579
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
49580
|
+
};
|
|
49581
|
+
|
|
49582
|
+
/**
|
|
49583
|
+
* Gets the default type url for SamplingMetadata
|
|
49584
|
+
* @function getTypeUrl
|
|
49585
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49586
|
+
* @static
|
|
49587
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
49588
|
+
* @returns {string} The default type url
|
|
49589
|
+
*/
|
|
49590
|
+
SamplingMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
49591
|
+
if (typeUrlPrefix === undefined) {
|
|
49592
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
49593
|
+
}
|
|
49594
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.SamplingMetadata";
|
|
49595
|
+
};
|
|
49596
|
+
|
|
49597
|
+
return SamplingMetadata;
|
|
49598
|
+
})();
|
|
49599
|
+
|
|
45894
49600
|
v1beta.DimensionHeader = (function() {
|
|
45895
49601
|
|
|
45896
49602
|
/**
|
|
@@ -48214,19 +51920,44 @@
|
|
|
48214
51920
|
|
|
48215
51921
|
/**
|
|
48216
51922
|
* QuotaStatus consumed.
|
|
48217
|
-
* @member {number} consumed
|
|
51923
|
+
* @member {number|null|undefined} consumed
|
|
48218
51924
|
* @memberof google.analytics.data.v1beta.QuotaStatus
|
|
48219
51925
|
* @instance
|
|
48220
51926
|
*/
|
|
48221
|
-
QuotaStatus.prototype.consumed =
|
|
51927
|
+
QuotaStatus.prototype.consumed = null;
|
|
48222
51928
|
|
|
48223
51929
|
/**
|
|
48224
51930
|
* QuotaStatus remaining.
|
|
48225
|
-
* @member {number} remaining
|
|
51931
|
+
* @member {number|null|undefined} remaining
|
|
48226
51932
|
* @memberof google.analytics.data.v1beta.QuotaStatus
|
|
48227
51933
|
* @instance
|
|
48228
51934
|
*/
|
|
48229
|
-
QuotaStatus.prototype.remaining =
|
|
51935
|
+
QuotaStatus.prototype.remaining = null;
|
|
51936
|
+
|
|
51937
|
+
// OneOf field names bound to virtual getters and setters
|
|
51938
|
+
var $oneOfFields;
|
|
51939
|
+
|
|
51940
|
+
/**
|
|
51941
|
+
* QuotaStatus _consumed.
|
|
51942
|
+
* @member {"consumed"|undefined} _consumed
|
|
51943
|
+
* @memberof google.analytics.data.v1beta.QuotaStatus
|
|
51944
|
+
* @instance
|
|
51945
|
+
*/
|
|
51946
|
+
Object.defineProperty(QuotaStatus.prototype, "_consumed", {
|
|
51947
|
+
get: $util.oneOfGetter($oneOfFields = ["consumed"]),
|
|
51948
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
51949
|
+
});
|
|
51950
|
+
|
|
51951
|
+
/**
|
|
51952
|
+
* QuotaStatus _remaining.
|
|
51953
|
+
* @member {"remaining"|undefined} _remaining
|
|
51954
|
+
* @memberof google.analytics.data.v1beta.QuotaStatus
|
|
51955
|
+
* @instance
|
|
51956
|
+
*/
|
|
51957
|
+
Object.defineProperty(QuotaStatus.prototype, "_remaining", {
|
|
51958
|
+
get: $util.oneOfGetter($oneOfFields = ["remaining"]),
|
|
51959
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
51960
|
+
});
|
|
48230
51961
|
|
|
48231
51962
|
/**
|
|
48232
51963
|
* Creates a new QuotaStatus instance using the specified properties.
|
|
@@ -48333,12 +52064,17 @@
|
|
|
48333
52064
|
QuotaStatus.verify = function verify(message) {
|
|
48334
52065
|
if (typeof message !== "object" || message === null)
|
|
48335
52066
|
return "object expected";
|
|
48336
|
-
|
|
52067
|
+
var properties = {};
|
|
52068
|
+
if (message.consumed != null && message.hasOwnProperty("consumed")) {
|
|
52069
|
+
properties._consumed = 1;
|
|
48337
52070
|
if (!$util.isInteger(message.consumed))
|
|
48338
52071
|
return "consumed: integer expected";
|
|
48339
|
-
|
|
52072
|
+
}
|
|
52073
|
+
if (message.remaining != null && message.hasOwnProperty("remaining")) {
|
|
52074
|
+
properties._remaining = 1;
|
|
48340
52075
|
if (!$util.isInteger(message.remaining))
|
|
48341
52076
|
return "remaining: integer expected";
|
|
52077
|
+
}
|
|
48342
52078
|
return null;
|
|
48343
52079
|
};
|
|
48344
52080
|
|
|
@@ -48374,14 +52110,16 @@
|
|
|
48374
52110
|
if (!options)
|
|
48375
52111
|
options = {};
|
|
48376
52112
|
var object = {};
|
|
48377
|
-
if (
|
|
48378
|
-
object.consumed = 0;
|
|
48379
|
-
object.remaining = 0;
|
|
48380
|
-
}
|
|
48381
|
-
if (message.consumed != null && message.hasOwnProperty("consumed"))
|
|
52113
|
+
if (message.consumed != null && message.hasOwnProperty("consumed")) {
|
|
48382
52114
|
object.consumed = message.consumed;
|
|
48383
|
-
|
|
52115
|
+
if (options.oneofs)
|
|
52116
|
+
object._consumed = "consumed";
|
|
52117
|
+
}
|
|
52118
|
+
if (message.remaining != null && message.hasOwnProperty("remaining")) {
|
|
48384
52119
|
object.remaining = message.remaining;
|
|
52120
|
+
if (options.oneofs)
|
|
52121
|
+
object._remaining = "remaining";
|
|
52122
|
+
}
|
|
48385
52123
|
return object;
|
|
48386
52124
|
};
|
|
48387
52125
|
|