@google-analytics/data 4.2.0 → 4.3.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 +7 -0
- package/README.md +4 -0
- 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 +1511 -111
- package/build/protos/protos.js +3630 -239
- package/build/protos/protos.json +425 -3
- package/build/src/v1beta/beta_analytics_data_client.d.ts +440 -1
- package/build/src/v1beta/beta_analytics_data_client.js +410 -1
- package/build/src/v1beta/beta_analytics_data_client_config.json +32 -0
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -32966,6 +32966,138 @@
|
|
|
32966
32966
|
* @variation 2
|
|
32967
32967
|
*/
|
|
32968
32968
|
|
|
32969
|
+
/**
|
|
32970
|
+
* Callback as used by {@link google.analytics.data.v1beta.BetaAnalyticsData|createAudienceExport}.
|
|
32971
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
32972
|
+
* @typedef CreateAudienceExportCallback
|
|
32973
|
+
* @type {function}
|
|
32974
|
+
* @param {Error|null} error Error, if any
|
|
32975
|
+
* @param {google.longrunning.Operation} [response] Operation
|
|
32976
|
+
*/
|
|
32977
|
+
|
|
32978
|
+
/**
|
|
32979
|
+
* Calls CreateAudienceExport.
|
|
32980
|
+
* @function createAudienceExport
|
|
32981
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
32982
|
+
* @instance
|
|
32983
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest} request CreateAudienceExportRequest message or plain object
|
|
32984
|
+
* @param {google.analytics.data.v1beta.BetaAnalyticsData.CreateAudienceExportCallback} callback Node-style callback called with the error, if any, and Operation
|
|
32985
|
+
* @returns {undefined}
|
|
32986
|
+
* @variation 1
|
|
32987
|
+
*/
|
|
32988
|
+
Object.defineProperty(BetaAnalyticsData.prototype.createAudienceExport = function createAudienceExport(request, callback) {
|
|
32989
|
+
return this.rpcCall(createAudienceExport, $root.google.analytics.data.v1beta.CreateAudienceExportRequest, $root.google.longrunning.Operation, request, callback);
|
|
32990
|
+
}, "name", { value: "CreateAudienceExport" });
|
|
32991
|
+
|
|
32992
|
+
/**
|
|
32993
|
+
* Calls CreateAudienceExport.
|
|
32994
|
+
* @function createAudienceExport
|
|
32995
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
32996
|
+
* @instance
|
|
32997
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest} request CreateAudienceExportRequest message or plain object
|
|
32998
|
+
* @returns {Promise<google.longrunning.Operation>} Promise
|
|
32999
|
+
* @variation 2
|
|
33000
|
+
*/
|
|
33001
|
+
|
|
33002
|
+
/**
|
|
33003
|
+
* Callback as used by {@link google.analytics.data.v1beta.BetaAnalyticsData|queryAudienceExport}.
|
|
33004
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33005
|
+
* @typedef QueryAudienceExportCallback
|
|
33006
|
+
* @type {function}
|
|
33007
|
+
* @param {Error|null} error Error, if any
|
|
33008
|
+
* @param {google.analytics.data.v1beta.QueryAudienceExportResponse} [response] QueryAudienceExportResponse
|
|
33009
|
+
*/
|
|
33010
|
+
|
|
33011
|
+
/**
|
|
33012
|
+
* Calls QueryAudienceExport.
|
|
33013
|
+
* @function queryAudienceExport
|
|
33014
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33015
|
+
* @instance
|
|
33016
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest} request QueryAudienceExportRequest message or plain object
|
|
33017
|
+
* @param {google.analytics.data.v1beta.BetaAnalyticsData.QueryAudienceExportCallback} callback Node-style callback called with the error, if any, and QueryAudienceExportResponse
|
|
33018
|
+
* @returns {undefined}
|
|
33019
|
+
* @variation 1
|
|
33020
|
+
*/
|
|
33021
|
+
Object.defineProperty(BetaAnalyticsData.prototype.queryAudienceExport = function queryAudienceExport(request, callback) {
|
|
33022
|
+
return this.rpcCall(queryAudienceExport, $root.google.analytics.data.v1beta.QueryAudienceExportRequest, $root.google.analytics.data.v1beta.QueryAudienceExportResponse, request, callback);
|
|
33023
|
+
}, "name", { value: "QueryAudienceExport" });
|
|
33024
|
+
|
|
33025
|
+
/**
|
|
33026
|
+
* Calls QueryAudienceExport.
|
|
33027
|
+
* @function queryAudienceExport
|
|
33028
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33029
|
+
* @instance
|
|
33030
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest} request QueryAudienceExportRequest message or plain object
|
|
33031
|
+
* @returns {Promise<google.analytics.data.v1beta.QueryAudienceExportResponse>} Promise
|
|
33032
|
+
* @variation 2
|
|
33033
|
+
*/
|
|
33034
|
+
|
|
33035
|
+
/**
|
|
33036
|
+
* Callback as used by {@link google.analytics.data.v1beta.BetaAnalyticsData|getAudienceExport}.
|
|
33037
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33038
|
+
* @typedef GetAudienceExportCallback
|
|
33039
|
+
* @type {function}
|
|
33040
|
+
* @param {Error|null} error Error, if any
|
|
33041
|
+
* @param {google.analytics.data.v1beta.AudienceExport} [response] AudienceExport
|
|
33042
|
+
*/
|
|
33043
|
+
|
|
33044
|
+
/**
|
|
33045
|
+
* Calls GetAudienceExport.
|
|
33046
|
+
* @function getAudienceExport
|
|
33047
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33048
|
+
* @instance
|
|
33049
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest} request GetAudienceExportRequest message or plain object
|
|
33050
|
+
* @param {google.analytics.data.v1beta.BetaAnalyticsData.GetAudienceExportCallback} callback Node-style callback called with the error, if any, and AudienceExport
|
|
33051
|
+
* @returns {undefined}
|
|
33052
|
+
* @variation 1
|
|
33053
|
+
*/
|
|
33054
|
+
Object.defineProperty(BetaAnalyticsData.prototype.getAudienceExport = function getAudienceExport(request, callback) {
|
|
33055
|
+
return this.rpcCall(getAudienceExport, $root.google.analytics.data.v1beta.GetAudienceExportRequest, $root.google.analytics.data.v1beta.AudienceExport, request, callback);
|
|
33056
|
+
}, "name", { value: "GetAudienceExport" });
|
|
33057
|
+
|
|
33058
|
+
/**
|
|
33059
|
+
* Calls GetAudienceExport.
|
|
33060
|
+
* @function getAudienceExport
|
|
33061
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33062
|
+
* @instance
|
|
33063
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest} request GetAudienceExportRequest message or plain object
|
|
33064
|
+
* @returns {Promise<google.analytics.data.v1beta.AudienceExport>} Promise
|
|
33065
|
+
* @variation 2
|
|
33066
|
+
*/
|
|
33067
|
+
|
|
33068
|
+
/**
|
|
33069
|
+
* Callback as used by {@link google.analytics.data.v1beta.BetaAnalyticsData|listAudienceExports}.
|
|
33070
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33071
|
+
* @typedef ListAudienceExportsCallback
|
|
33072
|
+
* @type {function}
|
|
33073
|
+
* @param {Error|null} error Error, if any
|
|
33074
|
+
* @param {google.analytics.data.v1beta.ListAudienceExportsResponse} [response] ListAudienceExportsResponse
|
|
33075
|
+
*/
|
|
33076
|
+
|
|
33077
|
+
/**
|
|
33078
|
+
* Calls ListAudienceExports.
|
|
33079
|
+
* @function listAudienceExports
|
|
33080
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33081
|
+
* @instance
|
|
33082
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest} request ListAudienceExportsRequest message or plain object
|
|
33083
|
+
* @param {google.analytics.data.v1beta.BetaAnalyticsData.ListAudienceExportsCallback} callback Node-style callback called with the error, if any, and ListAudienceExportsResponse
|
|
33084
|
+
* @returns {undefined}
|
|
33085
|
+
* @variation 1
|
|
33086
|
+
*/
|
|
33087
|
+
Object.defineProperty(BetaAnalyticsData.prototype.listAudienceExports = function listAudienceExports(request, callback) {
|
|
33088
|
+
return this.rpcCall(listAudienceExports, $root.google.analytics.data.v1beta.ListAudienceExportsRequest, $root.google.analytics.data.v1beta.ListAudienceExportsResponse, request, callback);
|
|
33089
|
+
}, "name", { value: "ListAudienceExports" });
|
|
33090
|
+
|
|
33091
|
+
/**
|
|
33092
|
+
* Calls ListAudienceExports.
|
|
33093
|
+
* @function listAudienceExports
|
|
33094
|
+
* @memberof google.analytics.data.v1beta.BetaAnalyticsData
|
|
33095
|
+
* @instance
|
|
33096
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest} request ListAudienceExportsRequest message or plain object
|
|
33097
|
+
* @returns {Promise<google.analytics.data.v1beta.ListAudienceExportsResponse>} Promise
|
|
33098
|
+
* @variation 2
|
|
33099
|
+
*/
|
|
33100
|
+
|
|
32969
33101
|
return BetaAnalyticsData;
|
|
32970
33102
|
})();
|
|
32971
33103
|
|
|
@@ -38479,26 +38611,24 @@
|
|
|
38479
38611
|
return RunRealtimeReportResponse;
|
|
38480
38612
|
})();
|
|
38481
38613
|
|
|
38482
|
-
v1beta.
|
|
38614
|
+
v1beta.GetAudienceExportRequest = (function() {
|
|
38483
38615
|
|
|
38484
38616
|
/**
|
|
38485
|
-
* Properties of a
|
|
38617
|
+
* Properties of a GetAudienceExportRequest.
|
|
38486
38618
|
* @memberof google.analytics.data.v1beta
|
|
38487
|
-
* @interface
|
|
38488
|
-
* @property {string|null} [
|
|
38489
|
-
* @property {string|null} [endDate] DateRange endDate
|
|
38490
|
-
* @property {string|null} [name] DateRange name
|
|
38619
|
+
* @interface IGetAudienceExportRequest
|
|
38620
|
+
* @property {string|null} [name] GetAudienceExportRequest name
|
|
38491
38621
|
*/
|
|
38492
38622
|
|
|
38493
38623
|
/**
|
|
38494
|
-
* Constructs a new
|
|
38624
|
+
* Constructs a new GetAudienceExportRequest.
|
|
38495
38625
|
* @memberof google.analytics.data.v1beta
|
|
38496
|
-
* @classdesc Represents a
|
|
38497
|
-
* @implements
|
|
38626
|
+
* @classdesc Represents a GetAudienceExportRequest.
|
|
38627
|
+
* @implements IGetAudienceExportRequest
|
|
38498
38628
|
* @constructor
|
|
38499
|
-
* @param {google.analytics.data.v1beta.
|
|
38629
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest=} [properties] Properties to set
|
|
38500
38630
|
*/
|
|
38501
|
-
function
|
|
38631
|
+
function GetAudienceExportRequest(properties) {
|
|
38502
38632
|
if (properties)
|
|
38503
38633
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
38504
38634
|
if (properties[keys[i]] != null)
|
|
@@ -38506,102 +38636,74 @@
|
|
|
38506
38636
|
}
|
|
38507
38637
|
|
|
38508
38638
|
/**
|
|
38509
|
-
*
|
|
38510
|
-
* @member {string} startDate
|
|
38511
|
-
* @memberof google.analytics.data.v1beta.DateRange
|
|
38512
|
-
* @instance
|
|
38513
|
-
*/
|
|
38514
|
-
DateRange.prototype.startDate = "";
|
|
38515
|
-
|
|
38516
|
-
/**
|
|
38517
|
-
* DateRange endDate.
|
|
38518
|
-
* @member {string} endDate
|
|
38519
|
-
* @memberof google.analytics.data.v1beta.DateRange
|
|
38520
|
-
* @instance
|
|
38521
|
-
*/
|
|
38522
|
-
DateRange.prototype.endDate = "";
|
|
38523
|
-
|
|
38524
|
-
/**
|
|
38525
|
-
* DateRange name.
|
|
38639
|
+
* GetAudienceExportRequest name.
|
|
38526
38640
|
* @member {string} name
|
|
38527
|
-
* @memberof google.analytics.data.v1beta.
|
|
38641
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38528
38642
|
* @instance
|
|
38529
38643
|
*/
|
|
38530
|
-
|
|
38644
|
+
GetAudienceExportRequest.prototype.name = "";
|
|
38531
38645
|
|
|
38532
38646
|
/**
|
|
38533
|
-
* Creates a new
|
|
38647
|
+
* Creates a new GetAudienceExportRequest instance using the specified properties.
|
|
38534
38648
|
* @function create
|
|
38535
|
-
* @memberof google.analytics.data.v1beta.
|
|
38649
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38536
38650
|
* @static
|
|
38537
|
-
* @param {google.analytics.data.v1beta.
|
|
38538
|
-
* @returns {google.analytics.data.v1beta.
|
|
38651
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest=} [properties] Properties to set
|
|
38652
|
+
* @returns {google.analytics.data.v1beta.GetAudienceExportRequest} GetAudienceExportRequest instance
|
|
38539
38653
|
*/
|
|
38540
|
-
|
|
38541
|
-
return new
|
|
38654
|
+
GetAudienceExportRequest.create = function create(properties) {
|
|
38655
|
+
return new GetAudienceExportRequest(properties);
|
|
38542
38656
|
};
|
|
38543
38657
|
|
|
38544
38658
|
/**
|
|
38545
|
-
* Encodes the specified
|
|
38659
|
+
* Encodes the specified GetAudienceExportRequest message. Does not implicitly {@link google.analytics.data.v1beta.GetAudienceExportRequest.verify|verify} messages.
|
|
38546
38660
|
* @function encode
|
|
38547
|
-
* @memberof google.analytics.data.v1beta.
|
|
38661
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38548
38662
|
* @static
|
|
38549
|
-
* @param {google.analytics.data.v1beta.
|
|
38663
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest} message GetAudienceExportRequest message or plain object to encode
|
|
38550
38664
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38551
38665
|
* @returns {$protobuf.Writer} Writer
|
|
38552
38666
|
*/
|
|
38553
|
-
|
|
38667
|
+
GetAudienceExportRequest.encode = function encode(message, writer) {
|
|
38554
38668
|
if (!writer)
|
|
38555
38669
|
writer = $Writer.create();
|
|
38556
|
-
if (message.startDate != null && Object.hasOwnProperty.call(message, "startDate"))
|
|
38557
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.startDate);
|
|
38558
|
-
if (message.endDate != null && Object.hasOwnProperty.call(message, "endDate"))
|
|
38559
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.endDate);
|
|
38560
38670
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
38561
|
-
writer.uint32(/* id
|
|
38671
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
38562
38672
|
return writer;
|
|
38563
38673
|
};
|
|
38564
38674
|
|
|
38565
38675
|
/**
|
|
38566
|
-
* Encodes the specified
|
|
38676
|
+
* Encodes the specified GetAudienceExportRequest message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.GetAudienceExportRequest.verify|verify} messages.
|
|
38567
38677
|
* @function encodeDelimited
|
|
38568
|
-
* @memberof google.analytics.data.v1beta.
|
|
38678
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38569
38679
|
* @static
|
|
38570
|
-
* @param {google.analytics.data.v1beta.
|
|
38680
|
+
* @param {google.analytics.data.v1beta.IGetAudienceExportRequest} message GetAudienceExportRequest message or plain object to encode
|
|
38571
38681
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38572
38682
|
* @returns {$protobuf.Writer} Writer
|
|
38573
38683
|
*/
|
|
38574
|
-
|
|
38684
|
+
GetAudienceExportRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
38575
38685
|
return this.encode(message, writer).ldelim();
|
|
38576
38686
|
};
|
|
38577
38687
|
|
|
38578
38688
|
/**
|
|
38579
|
-
* Decodes a
|
|
38689
|
+
* Decodes a GetAudienceExportRequest message from the specified reader or buffer.
|
|
38580
38690
|
* @function decode
|
|
38581
|
-
* @memberof google.analytics.data.v1beta.
|
|
38691
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38582
38692
|
* @static
|
|
38583
38693
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38584
38694
|
* @param {number} [length] Message length if known beforehand
|
|
38585
|
-
* @returns {google.analytics.data.v1beta.
|
|
38695
|
+
* @returns {google.analytics.data.v1beta.GetAudienceExportRequest} GetAudienceExportRequest
|
|
38586
38696
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38587
38697
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38588
38698
|
*/
|
|
38589
|
-
|
|
38699
|
+
GetAudienceExportRequest.decode = function decode(reader, length) {
|
|
38590
38700
|
if (!(reader instanceof $Reader))
|
|
38591
38701
|
reader = $Reader.create(reader);
|
|
38592
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.
|
|
38702
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.GetAudienceExportRequest();
|
|
38593
38703
|
while (reader.pos < end) {
|
|
38594
38704
|
var tag = reader.uint32();
|
|
38595
38705
|
switch (tag >>> 3) {
|
|
38596
38706
|
case 1: {
|
|
38597
|
-
message.startDate = reader.string();
|
|
38598
|
-
break;
|
|
38599
|
-
}
|
|
38600
|
-
case 2: {
|
|
38601
|
-
message.endDate = reader.string();
|
|
38602
|
-
break;
|
|
38603
|
-
}
|
|
38604
|
-
case 3: {
|
|
38605
38707
|
message.name = reader.string();
|
|
38606
38708
|
break;
|
|
38607
38709
|
}
|
|
@@ -38614,38 +38716,32 @@
|
|
|
38614
38716
|
};
|
|
38615
38717
|
|
|
38616
38718
|
/**
|
|
38617
|
-
* Decodes a
|
|
38719
|
+
* Decodes a GetAudienceExportRequest message from the specified reader or buffer, length delimited.
|
|
38618
38720
|
* @function decodeDelimited
|
|
38619
|
-
* @memberof google.analytics.data.v1beta.
|
|
38721
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38620
38722
|
* @static
|
|
38621
38723
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38622
|
-
* @returns {google.analytics.data.v1beta.
|
|
38724
|
+
* @returns {google.analytics.data.v1beta.GetAudienceExportRequest} GetAudienceExportRequest
|
|
38623
38725
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38624
38726
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38625
38727
|
*/
|
|
38626
|
-
|
|
38728
|
+
GetAudienceExportRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
38627
38729
|
if (!(reader instanceof $Reader))
|
|
38628
38730
|
reader = new $Reader(reader);
|
|
38629
38731
|
return this.decode(reader, reader.uint32());
|
|
38630
38732
|
};
|
|
38631
38733
|
|
|
38632
38734
|
/**
|
|
38633
|
-
* Verifies a
|
|
38735
|
+
* Verifies a GetAudienceExportRequest message.
|
|
38634
38736
|
* @function verify
|
|
38635
|
-
* @memberof google.analytics.data.v1beta.
|
|
38737
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38636
38738
|
* @static
|
|
38637
38739
|
* @param {Object.<string,*>} message Plain object to verify
|
|
38638
38740
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
38639
38741
|
*/
|
|
38640
|
-
|
|
38742
|
+
GetAudienceExportRequest.verify = function verify(message) {
|
|
38641
38743
|
if (typeof message !== "object" || message === null)
|
|
38642
38744
|
return "object expected";
|
|
38643
|
-
if (message.startDate != null && message.hasOwnProperty("startDate"))
|
|
38644
|
-
if (!$util.isString(message.startDate))
|
|
38645
|
-
return "startDate: string expected";
|
|
38646
|
-
if (message.endDate != null && message.hasOwnProperty("endDate"))
|
|
38647
|
-
if (!$util.isString(message.endDate))
|
|
38648
|
-
return "endDate: string expected";
|
|
38649
38745
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
38650
38746
|
if (!$util.isString(message.name))
|
|
38651
38747
|
return "name: string expected";
|
|
@@ -38653,102 +38749,91 @@
|
|
|
38653
38749
|
};
|
|
38654
38750
|
|
|
38655
38751
|
/**
|
|
38656
|
-
* Creates a
|
|
38752
|
+
* Creates a GetAudienceExportRequest message from a plain object. Also converts values to their respective internal types.
|
|
38657
38753
|
* @function fromObject
|
|
38658
|
-
* @memberof google.analytics.data.v1beta.
|
|
38754
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38659
38755
|
* @static
|
|
38660
38756
|
* @param {Object.<string,*>} object Plain object
|
|
38661
|
-
* @returns {google.analytics.data.v1beta.
|
|
38757
|
+
* @returns {google.analytics.data.v1beta.GetAudienceExportRequest} GetAudienceExportRequest
|
|
38662
38758
|
*/
|
|
38663
|
-
|
|
38664
|
-
if (object instanceof $root.google.analytics.data.v1beta.
|
|
38759
|
+
GetAudienceExportRequest.fromObject = function fromObject(object) {
|
|
38760
|
+
if (object instanceof $root.google.analytics.data.v1beta.GetAudienceExportRequest)
|
|
38665
38761
|
return object;
|
|
38666
|
-
var message = new $root.google.analytics.data.v1beta.
|
|
38667
|
-
if (object.startDate != null)
|
|
38668
|
-
message.startDate = String(object.startDate);
|
|
38669
|
-
if (object.endDate != null)
|
|
38670
|
-
message.endDate = String(object.endDate);
|
|
38762
|
+
var message = new $root.google.analytics.data.v1beta.GetAudienceExportRequest();
|
|
38671
38763
|
if (object.name != null)
|
|
38672
38764
|
message.name = String(object.name);
|
|
38673
38765
|
return message;
|
|
38674
38766
|
};
|
|
38675
38767
|
|
|
38676
38768
|
/**
|
|
38677
|
-
* Creates a plain object from a
|
|
38769
|
+
* Creates a plain object from a GetAudienceExportRequest message. Also converts values to other types if specified.
|
|
38678
38770
|
* @function toObject
|
|
38679
|
-
* @memberof google.analytics.data.v1beta.
|
|
38771
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38680
38772
|
* @static
|
|
38681
|
-
* @param {google.analytics.data.v1beta.
|
|
38773
|
+
* @param {google.analytics.data.v1beta.GetAudienceExportRequest} message GetAudienceExportRequest
|
|
38682
38774
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
38683
38775
|
* @returns {Object.<string,*>} Plain object
|
|
38684
38776
|
*/
|
|
38685
|
-
|
|
38777
|
+
GetAudienceExportRequest.toObject = function toObject(message, options) {
|
|
38686
38778
|
if (!options)
|
|
38687
38779
|
options = {};
|
|
38688
38780
|
var object = {};
|
|
38689
|
-
if (options.defaults)
|
|
38690
|
-
object.startDate = "";
|
|
38691
|
-
object.endDate = "";
|
|
38781
|
+
if (options.defaults)
|
|
38692
38782
|
object.name = "";
|
|
38693
|
-
}
|
|
38694
|
-
if (message.startDate != null && message.hasOwnProperty("startDate"))
|
|
38695
|
-
object.startDate = message.startDate;
|
|
38696
|
-
if (message.endDate != null && message.hasOwnProperty("endDate"))
|
|
38697
|
-
object.endDate = message.endDate;
|
|
38698
38783
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
38699
38784
|
object.name = message.name;
|
|
38700
38785
|
return object;
|
|
38701
38786
|
};
|
|
38702
38787
|
|
|
38703
38788
|
/**
|
|
38704
|
-
* Converts this
|
|
38789
|
+
* Converts this GetAudienceExportRequest to JSON.
|
|
38705
38790
|
* @function toJSON
|
|
38706
|
-
* @memberof google.analytics.data.v1beta.
|
|
38791
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38707
38792
|
* @instance
|
|
38708
38793
|
* @returns {Object.<string,*>} JSON object
|
|
38709
38794
|
*/
|
|
38710
|
-
|
|
38795
|
+
GetAudienceExportRequest.prototype.toJSON = function toJSON() {
|
|
38711
38796
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
38712
38797
|
};
|
|
38713
38798
|
|
|
38714
38799
|
/**
|
|
38715
|
-
* Gets the default type url for
|
|
38800
|
+
* Gets the default type url for GetAudienceExportRequest
|
|
38716
38801
|
* @function getTypeUrl
|
|
38717
|
-
* @memberof google.analytics.data.v1beta.
|
|
38802
|
+
* @memberof google.analytics.data.v1beta.GetAudienceExportRequest
|
|
38718
38803
|
* @static
|
|
38719
38804
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
38720
38805
|
* @returns {string} The default type url
|
|
38721
38806
|
*/
|
|
38722
|
-
|
|
38807
|
+
GetAudienceExportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
38723
38808
|
if (typeUrlPrefix === undefined) {
|
|
38724
38809
|
typeUrlPrefix = "type.googleapis.com";
|
|
38725
38810
|
}
|
|
38726
|
-
return typeUrlPrefix + "/google.analytics.data.v1beta.
|
|
38811
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.GetAudienceExportRequest";
|
|
38727
38812
|
};
|
|
38728
38813
|
|
|
38729
|
-
return
|
|
38814
|
+
return GetAudienceExportRequest;
|
|
38730
38815
|
})();
|
|
38731
38816
|
|
|
38732
|
-
v1beta.
|
|
38817
|
+
v1beta.ListAudienceExportsRequest = (function() {
|
|
38733
38818
|
|
|
38734
38819
|
/**
|
|
38735
|
-
* Properties of a
|
|
38820
|
+
* Properties of a ListAudienceExportsRequest.
|
|
38736
38821
|
* @memberof google.analytics.data.v1beta
|
|
38737
|
-
* @interface
|
|
38738
|
-
* @property {
|
|
38739
|
-
* @property {number|null} [
|
|
38740
|
-
* @property {string|null} [
|
|
38822
|
+
* @interface IListAudienceExportsRequest
|
|
38823
|
+
* @property {string|null} [parent] ListAudienceExportsRequest parent
|
|
38824
|
+
* @property {number|null} [pageSize] ListAudienceExportsRequest pageSize
|
|
38825
|
+
* @property {string|null} [pageToken] ListAudienceExportsRequest pageToken
|
|
38741
38826
|
*/
|
|
38742
38827
|
|
|
38743
38828
|
/**
|
|
38744
|
-
* Constructs a new
|
|
38829
|
+
* Constructs a new ListAudienceExportsRequest.
|
|
38745
38830
|
* @memberof google.analytics.data.v1beta
|
|
38746
|
-
* @classdesc Represents a
|
|
38747
|
-
* @implements
|
|
38831
|
+
* @classdesc Represents a ListAudienceExportsRequest.
|
|
38832
|
+
* @implements IListAudienceExportsRequest
|
|
38748
38833
|
* @constructor
|
|
38749
|
-
* @param {google.analytics.data.v1beta.
|
|
38834
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest=} [properties] Properties to set
|
|
38750
38835
|
*/
|
|
38751
|
-
function
|
|
38836
|
+
function ListAudienceExportsRequest(properties) {
|
|
38752
38837
|
if (properties)
|
|
38753
38838
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
38754
38839
|
if (properties[keys[i]] != null)
|
|
@@ -38756,88 +38841,3062 @@
|
|
|
38756
38841
|
}
|
|
38757
38842
|
|
|
38758
38843
|
/**
|
|
38759
|
-
*
|
|
38760
|
-
* @member {
|
|
38761
|
-
* @memberof google.analytics.data.v1beta.
|
|
38762
|
-
* @instance
|
|
38763
|
-
*/
|
|
38764
|
-
MinuteRange.prototype.startMinutesAgo = null;
|
|
38765
|
-
|
|
38766
|
-
/**
|
|
38767
|
-
* MinuteRange endMinutesAgo.
|
|
38768
|
-
* @member {number|null|undefined} endMinutesAgo
|
|
38769
|
-
* @memberof google.analytics.data.v1beta.MinuteRange
|
|
38770
|
-
* @instance
|
|
38771
|
-
*/
|
|
38772
|
-
MinuteRange.prototype.endMinutesAgo = null;
|
|
38773
|
-
|
|
38774
|
-
/**
|
|
38775
|
-
* MinuteRange name.
|
|
38776
|
-
* @member {string} name
|
|
38777
|
-
* @memberof google.analytics.data.v1beta.MinuteRange
|
|
38844
|
+
* ListAudienceExportsRequest parent.
|
|
38845
|
+
* @member {string} parent
|
|
38846
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
38778
38847
|
* @instance
|
|
38779
38848
|
*/
|
|
38780
|
-
|
|
38781
|
-
|
|
38782
|
-
// OneOf field names bound to virtual getters and setters
|
|
38783
|
-
var $oneOfFields;
|
|
38849
|
+
ListAudienceExportsRequest.prototype.parent = "";
|
|
38784
38850
|
|
|
38785
38851
|
/**
|
|
38786
|
-
*
|
|
38787
|
-
* @member {
|
|
38788
|
-
* @memberof google.analytics.data.v1beta.
|
|
38852
|
+
* ListAudienceExportsRequest pageSize.
|
|
38853
|
+
* @member {number} pageSize
|
|
38854
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
38789
38855
|
* @instance
|
|
38790
38856
|
*/
|
|
38791
|
-
|
|
38792
|
-
get: $util.oneOfGetter($oneOfFields = ["startMinutesAgo"]),
|
|
38793
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
38794
|
-
});
|
|
38857
|
+
ListAudienceExportsRequest.prototype.pageSize = 0;
|
|
38795
38858
|
|
|
38796
38859
|
/**
|
|
38797
|
-
*
|
|
38798
|
-
* @member {
|
|
38799
|
-
* @memberof google.analytics.data.v1beta.
|
|
38860
|
+
* ListAudienceExportsRequest pageToken.
|
|
38861
|
+
* @member {string} pageToken
|
|
38862
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
38800
38863
|
* @instance
|
|
38801
38864
|
*/
|
|
38802
|
-
|
|
38803
|
-
get: $util.oneOfGetter($oneOfFields = ["endMinutesAgo"]),
|
|
38804
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
38805
|
-
});
|
|
38865
|
+
ListAudienceExportsRequest.prototype.pageToken = "";
|
|
38806
38866
|
|
|
38807
38867
|
/**
|
|
38808
|
-
* Creates a new
|
|
38868
|
+
* Creates a new ListAudienceExportsRequest instance using the specified properties.
|
|
38809
38869
|
* @function create
|
|
38810
|
-
* @memberof google.analytics.data.v1beta.
|
|
38870
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
38811
38871
|
* @static
|
|
38812
|
-
* @param {google.analytics.data.v1beta.
|
|
38813
|
-
* @returns {google.analytics.data.v1beta.
|
|
38872
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest=} [properties] Properties to set
|
|
38873
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsRequest} ListAudienceExportsRequest instance
|
|
38814
38874
|
*/
|
|
38815
|
-
|
|
38816
|
-
return new
|
|
38875
|
+
ListAudienceExportsRequest.create = function create(properties) {
|
|
38876
|
+
return new ListAudienceExportsRequest(properties);
|
|
38817
38877
|
};
|
|
38818
38878
|
|
|
38819
38879
|
/**
|
|
38820
|
-
* Encodes the specified
|
|
38880
|
+
* Encodes the specified ListAudienceExportsRequest message. Does not implicitly {@link google.analytics.data.v1beta.ListAudienceExportsRequest.verify|verify} messages.
|
|
38821
38881
|
* @function encode
|
|
38822
|
-
* @memberof google.analytics.data.v1beta.
|
|
38882
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
38823
38883
|
* @static
|
|
38824
|
-
* @param {google.analytics.data.v1beta.
|
|
38884
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest} message ListAudienceExportsRequest message or plain object to encode
|
|
38825
38885
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38826
38886
|
* @returns {$protobuf.Writer} Writer
|
|
38827
38887
|
*/
|
|
38828
|
-
|
|
38888
|
+
ListAudienceExportsRequest.encode = function encode(message, writer) {
|
|
38829
38889
|
if (!writer)
|
|
38830
38890
|
writer = $Writer.create();
|
|
38831
|
-
if (message.
|
|
38832
|
-
writer.uint32(/* id 1, wireType
|
|
38833
|
-
if (message.
|
|
38834
|
-
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.
|
|
38835
|
-
if (message.
|
|
38836
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.
|
|
38837
|
-
return writer;
|
|
38838
|
-
};
|
|
38839
|
-
|
|
38840
|
-
/**
|
|
38891
|
+
if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
|
|
38892
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
|
38893
|
+
if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
|
|
38894
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
|
|
38895
|
+
if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
|
|
38896
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
|
|
38897
|
+
return writer;
|
|
38898
|
+
};
|
|
38899
|
+
|
|
38900
|
+
/**
|
|
38901
|
+
* Encodes the specified ListAudienceExportsRequest message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.ListAudienceExportsRequest.verify|verify} messages.
|
|
38902
|
+
* @function encodeDelimited
|
|
38903
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
38904
|
+
* @static
|
|
38905
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsRequest} message ListAudienceExportsRequest message or plain object to encode
|
|
38906
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38907
|
+
* @returns {$protobuf.Writer} Writer
|
|
38908
|
+
*/
|
|
38909
|
+
ListAudienceExportsRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
38910
|
+
return this.encode(message, writer).ldelim();
|
|
38911
|
+
};
|
|
38912
|
+
|
|
38913
|
+
/**
|
|
38914
|
+
* Decodes a ListAudienceExportsRequest message from the specified reader or buffer.
|
|
38915
|
+
* @function decode
|
|
38916
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
38917
|
+
* @static
|
|
38918
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38919
|
+
* @param {number} [length] Message length if known beforehand
|
|
38920
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsRequest} ListAudienceExportsRequest
|
|
38921
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38922
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38923
|
+
*/
|
|
38924
|
+
ListAudienceExportsRequest.decode = function decode(reader, length) {
|
|
38925
|
+
if (!(reader instanceof $Reader))
|
|
38926
|
+
reader = $Reader.create(reader);
|
|
38927
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.ListAudienceExportsRequest();
|
|
38928
|
+
while (reader.pos < end) {
|
|
38929
|
+
var tag = reader.uint32();
|
|
38930
|
+
switch (tag >>> 3) {
|
|
38931
|
+
case 1: {
|
|
38932
|
+
message.parent = reader.string();
|
|
38933
|
+
break;
|
|
38934
|
+
}
|
|
38935
|
+
case 2: {
|
|
38936
|
+
message.pageSize = reader.int32();
|
|
38937
|
+
break;
|
|
38938
|
+
}
|
|
38939
|
+
case 3: {
|
|
38940
|
+
message.pageToken = reader.string();
|
|
38941
|
+
break;
|
|
38942
|
+
}
|
|
38943
|
+
default:
|
|
38944
|
+
reader.skipType(tag & 7);
|
|
38945
|
+
break;
|
|
38946
|
+
}
|
|
38947
|
+
}
|
|
38948
|
+
return message;
|
|
38949
|
+
};
|
|
38950
|
+
|
|
38951
|
+
/**
|
|
38952
|
+
* Decodes a ListAudienceExportsRequest message from the specified reader or buffer, length delimited.
|
|
38953
|
+
* @function decodeDelimited
|
|
38954
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
38955
|
+
* @static
|
|
38956
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38957
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsRequest} ListAudienceExportsRequest
|
|
38958
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38959
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38960
|
+
*/
|
|
38961
|
+
ListAudienceExportsRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
38962
|
+
if (!(reader instanceof $Reader))
|
|
38963
|
+
reader = new $Reader(reader);
|
|
38964
|
+
return this.decode(reader, reader.uint32());
|
|
38965
|
+
};
|
|
38966
|
+
|
|
38967
|
+
/**
|
|
38968
|
+
* Verifies a ListAudienceExportsRequest message.
|
|
38969
|
+
* @function verify
|
|
38970
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
38971
|
+
* @static
|
|
38972
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
38973
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
38974
|
+
*/
|
|
38975
|
+
ListAudienceExportsRequest.verify = function verify(message) {
|
|
38976
|
+
if (typeof message !== "object" || message === null)
|
|
38977
|
+
return "object expected";
|
|
38978
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
38979
|
+
if (!$util.isString(message.parent))
|
|
38980
|
+
return "parent: string expected";
|
|
38981
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
38982
|
+
if (!$util.isInteger(message.pageSize))
|
|
38983
|
+
return "pageSize: integer expected";
|
|
38984
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
38985
|
+
if (!$util.isString(message.pageToken))
|
|
38986
|
+
return "pageToken: string expected";
|
|
38987
|
+
return null;
|
|
38988
|
+
};
|
|
38989
|
+
|
|
38990
|
+
/**
|
|
38991
|
+
* Creates a ListAudienceExportsRequest message from a plain object. Also converts values to their respective internal types.
|
|
38992
|
+
* @function fromObject
|
|
38993
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
38994
|
+
* @static
|
|
38995
|
+
* @param {Object.<string,*>} object Plain object
|
|
38996
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsRequest} ListAudienceExportsRequest
|
|
38997
|
+
*/
|
|
38998
|
+
ListAudienceExportsRequest.fromObject = function fromObject(object) {
|
|
38999
|
+
if (object instanceof $root.google.analytics.data.v1beta.ListAudienceExportsRequest)
|
|
39000
|
+
return object;
|
|
39001
|
+
var message = new $root.google.analytics.data.v1beta.ListAudienceExportsRequest();
|
|
39002
|
+
if (object.parent != null)
|
|
39003
|
+
message.parent = String(object.parent);
|
|
39004
|
+
if (object.pageSize != null)
|
|
39005
|
+
message.pageSize = object.pageSize | 0;
|
|
39006
|
+
if (object.pageToken != null)
|
|
39007
|
+
message.pageToken = String(object.pageToken);
|
|
39008
|
+
return message;
|
|
39009
|
+
};
|
|
39010
|
+
|
|
39011
|
+
/**
|
|
39012
|
+
* Creates a plain object from a ListAudienceExportsRequest message. Also converts values to other types if specified.
|
|
39013
|
+
* @function toObject
|
|
39014
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39015
|
+
* @static
|
|
39016
|
+
* @param {google.analytics.data.v1beta.ListAudienceExportsRequest} message ListAudienceExportsRequest
|
|
39017
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39018
|
+
* @returns {Object.<string,*>} Plain object
|
|
39019
|
+
*/
|
|
39020
|
+
ListAudienceExportsRequest.toObject = function toObject(message, options) {
|
|
39021
|
+
if (!options)
|
|
39022
|
+
options = {};
|
|
39023
|
+
var object = {};
|
|
39024
|
+
if (options.defaults) {
|
|
39025
|
+
object.parent = "";
|
|
39026
|
+
object.pageSize = 0;
|
|
39027
|
+
object.pageToken = "";
|
|
39028
|
+
}
|
|
39029
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
39030
|
+
object.parent = message.parent;
|
|
39031
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
39032
|
+
object.pageSize = message.pageSize;
|
|
39033
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
39034
|
+
object.pageToken = message.pageToken;
|
|
39035
|
+
return object;
|
|
39036
|
+
};
|
|
39037
|
+
|
|
39038
|
+
/**
|
|
39039
|
+
* Converts this ListAudienceExportsRequest to JSON.
|
|
39040
|
+
* @function toJSON
|
|
39041
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39042
|
+
* @instance
|
|
39043
|
+
* @returns {Object.<string,*>} JSON object
|
|
39044
|
+
*/
|
|
39045
|
+
ListAudienceExportsRequest.prototype.toJSON = function toJSON() {
|
|
39046
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39047
|
+
};
|
|
39048
|
+
|
|
39049
|
+
/**
|
|
39050
|
+
* Gets the default type url for ListAudienceExportsRequest
|
|
39051
|
+
* @function getTypeUrl
|
|
39052
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsRequest
|
|
39053
|
+
* @static
|
|
39054
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
39055
|
+
* @returns {string} The default type url
|
|
39056
|
+
*/
|
|
39057
|
+
ListAudienceExportsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
39058
|
+
if (typeUrlPrefix === undefined) {
|
|
39059
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
39060
|
+
}
|
|
39061
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.ListAudienceExportsRequest";
|
|
39062
|
+
};
|
|
39063
|
+
|
|
39064
|
+
return ListAudienceExportsRequest;
|
|
39065
|
+
})();
|
|
39066
|
+
|
|
39067
|
+
v1beta.ListAudienceExportsResponse = (function() {
|
|
39068
|
+
|
|
39069
|
+
/**
|
|
39070
|
+
* Properties of a ListAudienceExportsResponse.
|
|
39071
|
+
* @memberof google.analytics.data.v1beta
|
|
39072
|
+
* @interface IListAudienceExportsResponse
|
|
39073
|
+
* @property {Array.<google.analytics.data.v1beta.IAudienceExport>|null} [audienceExports] ListAudienceExportsResponse audienceExports
|
|
39074
|
+
* @property {string|null} [nextPageToken] ListAudienceExportsResponse nextPageToken
|
|
39075
|
+
*/
|
|
39076
|
+
|
|
39077
|
+
/**
|
|
39078
|
+
* Constructs a new ListAudienceExportsResponse.
|
|
39079
|
+
* @memberof google.analytics.data.v1beta
|
|
39080
|
+
* @classdesc Represents a ListAudienceExportsResponse.
|
|
39081
|
+
* @implements IListAudienceExportsResponse
|
|
39082
|
+
* @constructor
|
|
39083
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsResponse=} [properties] Properties to set
|
|
39084
|
+
*/
|
|
39085
|
+
function ListAudienceExportsResponse(properties) {
|
|
39086
|
+
this.audienceExports = [];
|
|
39087
|
+
if (properties)
|
|
39088
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39089
|
+
if (properties[keys[i]] != null)
|
|
39090
|
+
this[keys[i]] = properties[keys[i]];
|
|
39091
|
+
}
|
|
39092
|
+
|
|
39093
|
+
/**
|
|
39094
|
+
* ListAudienceExportsResponse audienceExports.
|
|
39095
|
+
* @member {Array.<google.analytics.data.v1beta.IAudienceExport>} audienceExports
|
|
39096
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39097
|
+
* @instance
|
|
39098
|
+
*/
|
|
39099
|
+
ListAudienceExportsResponse.prototype.audienceExports = $util.emptyArray;
|
|
39100
|
+
|
|
39101
|
+
/**
|
|
39102
|
+
* ListAudienceExportsResponse nextPageToken.
|
|
39103
|
+
* @member {string|null|undefined} nextPageToken
|
|
39104
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39105
|
+
* @instance
|
|
39106
|
+
*/
|
|
39107
|
+
ListAudienceExportsResponse.prototype.nextPageToken = null;
|
|
39108
|
+
|
|
39109
|
+
// OneOf field names bound to virtual getters and setters
|
|
39110
|
+
var $oneOfFields;
|
|
39111
|
+
|
|
39112
|
+
/**
|
|
39113
|
+
* ListAudienceExportsResponse _nextPageToken.
|
|
39114
|
+
* @member {"nextPageToken"|undefined} _nextPageToken
|
|
39115
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39116
|
+
* @instance
|
|
39117
|
+
*/
|
|
39118
|
+
Object.defineProperty(ListAudienceExportsResponse.prototype, "_nextPageToken", {
|
|
39119
|
+
get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]),
|
|
39120
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
39121
|
+
});
|
|
39122
|
+
|
|
39123
|
+
/**
|
|
39124
|
+
* Creates a new ListAudienceExportsResponse instance using the specified properties.
|
|
39125
|
+
* @function create
|
|
39126
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39127
|
+
* @static
|
|
39128
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsResponse=} [properties] Properties to set
|
|
39129
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsResponse} ListAudienceExportsResponse instance
|
|
39130
|
+
*/
|
|
39131
|
+
ListAudienceExportsResponse.create = function create(properties) {
|
|
39132
|
+
return new ListAudienceExportsResponse(properties);
|
|
39133
|
+
};
|
|
39134
|
+
|
|
39135
|
+
/**
|
|
39136
|
+
* Encodes the specified ListAudienceExportsResponse message. Does not implicitly {@link google.analytics.data.v1beta.ListAudienceExportsResponse.verify|verify} messages.
|
|
39137
|
+
* @function encode
|
|
39138
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39139
|
+
* @static
|
|
39140
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsResponse} message ListAudienceExportsResponse message or plain object to encode
|
|
39141
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39142
|
+
* @returns {$protobuf.Writer} Writer
|
|
39143
|
+
*/
|
|
39144
|
+
ListAudienceExportsResponse.encode = function encode(message, writer) {
|
|
39145
|
+
if (!writer)
|
|
39146
|
+
writer = $Writer.create();
|
|
39147
|
+
if (message.audienceExports != null && message.audienceExports.length)
|
|
39148
|
+
for (var i = 0; i < message.audienceExports.length; ++i)
|
|
39149
|
+
$root.google.analytics.data.v1beta.AudienceExport.encode(message.audienceExports[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
39150
|
+
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
39151
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
39152
|
+
return writer;
|
|
39153
|
+
};
|
|
39154
|
+
|
|
39155
|
+
/**
|
|
39156
|
+
* Encodes the specified ListAudienceExportsResponse message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.ListAudienceExportsResponse.verify|verify} messages.
|
|
39157
|
+
* @function encodeDelimited
|
|
39158
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39159
|
+
* @static
|
|
39160
|
+
* @param {google.analytics.data.v1beta.IListAudienceExportsResponse} message ListAudienceExportsResponse message or plain object to encode
|
|
39161
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39162
|
+
* @returns {$protobuf.Writer} Writer
|
|
39163
|
+
*/
|
|
39164
|
+
ListAudienceExportsResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39165
|
+
return this.encode(message, writer).ldelim();
|
|
39166
|
+
};
|
|
39167
|
+
|
|
39168
|
+
/**
|
|
39169
|
+
* Decodes a ListAudienceExportsResponse message from the specified reader or buffer.
|
|
39170
|
+
* @function decode
|
|
39171
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39172
|
+
* @static
|
|
39173
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39174
|
+
* @param {number} [length] Message length if known beforehand
|
|
39175
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsResponse} ListAudienceExportsResponse
|
|
39176
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39177
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39178
|
+
*/
|
|
39179
|
+
ListAudienceExportsResponse.decode = function decode(reader, length) {
|
|
39180
|
+
if (!(reader instanceof $Reader))
|
|
39181
|
+
reader = $Reader.create(reader);
|
|
39182
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.ListAudienceExportsResponse();
|
|
39183
|
+
while (reader.pos < end) {
|
|
39184
|
+
var tag = reader.uint32();
|
|
39185
|
+
switch (tag >>> 3) {
|
|
39186
|
+
case 1: {
|
|
39187
|
+
if (!(message.audienceExports && message.audienceExports.length))
|
|
39188
|
+
message.audienceExports = [];
|
|
39189
|
+
message.audienceExports.push($root.google.analytics.data.v1beta.AudienceExport.decode(reader, reader.uint32()));
|
|
39190
|
+
break;
|
|
39191
|
+
}
|
|
39192
|
+
case 2: {
|
|
39193
|
+
message.nextPageToken = reader.string();
|
|
39194
|
+
break;
|
|
39195
|
+
}
|
|
39196
|
+
default:
|
|
39197
|
+
reader.skipType(tag & 7);
|
|
39198
|
+
break;
|
|
39199
|
+
}
|
|
39200
|
+
}
|
|
39201
|
+
return message;
|
|
39202
|
+
};
|
|
39203
|
+
|
|
39204
|
+
/**
|
|
39205
|
+
* Decodes a ListAudienceExportsResponse message from the specified reader or buffer, length delimited.
|
|
39206
|
+
* @function decodeDelimited
|
|
39207
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39208
|
+
* @static
|
|
39209
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39210
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsResponse} ListAudienceExportsResponse
|
|
39211
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39212
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39213
|
+
*/
|
|
39214
|
+
ListAudienceExportsResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
39215
|
+
if (!(reader instanceof $Reader))
|
|
39216
|
+
reader = new $Reader(reader);
|
|
39217
|
+
return this.decode(reader, reader.uint32());
|
|
39218
|
+
};
|
|
39219
|
+
|
|
39220
|
+
/**
|
|
39221
|
+
* Verifies a ListAudienceExportsResponse message.
|
|
39222
|
+
* @function verify
|
|
39223
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39224
|
+
* @static
|
|
39225
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39226
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39227
|
+
*/
|
|
39228
|
+
ListAudienceExportsResponse.verify = function verify(message) {
|
|
39229
|
+
if (typeof message !== "object" || message === null)
|
|
39230
|
+
return "object expected";
|
|
39231
|
+
var properties = {};
|
|
39232
|
+
if (message.audienceExports != null && message.hasOwnProperty("audienceExports")) {
|
|
39233
|
+
if (!Array.isArray(message.audienceExports))
|
|
39234
|
+
return "audienceExports: array expected";
|
|
39235
|
+
for (var i = 0; i < message.audienceExports.length; ++i) {
|
|
39236
|
+
var error = $root.google.analytics.data.v1beta.AudienceExport.verify(message.audienceExports[i]);
|
|
39237
|
+
if (error)
|
|
39238
|
+
return "audienceExports." + error;
|
|
39239
|
+
}
|
|
39240
|
+
}
|
|
39241
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) {
|
|
39242
|
+
properties._nextPageToken = 1;
|
|
39243
|
+
if (!$util.isString(message.nextPageToken))
|
|
39244
|
+
return "nextPageToken: string expected";
|
|
39245
|
+
}
|
|
39246
|
+
return null;
|
|
39247
|
+
};
|
|
39248
|
+
|
|
39249
|
+
/**
|
|
39250
|
+
* Creates a ListAudienceExportsResponse message from a plain object. Also converts values to their respective internal types.
|
|
39251
|
+
* @function fromObject
|
|
39252
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39253
|
+
* @static
|
|
39254
|
+
* @param {Object.<string,*>} object Plain object
|
|
39255
|
+
* @returns {google.analytics.data.v1beta.ListAudienceExportsResponse} ListAudienceExportsResponse
|
|
39256
|
+
*/
|
|
39257
|
+
ListAudienceExportsResponse.fromObject = function fromObject(object) {
|
|
39258
|
+
if (object instanceof $root.google.analytics.data.v1beta.ListAudienceExportsResponse)
|
|
39259
|
+
return object;
|
|
39260
|
+
var message = new $root.google.analytics.data.v1beta.ListAudienceExportsResponse();
|
|
39261
|
+
if (object.audienceExports) {
|
|
39262
|
+
if (!Array.isArray(object.audienceExports))
|
|
39263
|
+
throw TypeError(".google.analytics.data.v1beta.ListAudienceExportsResponse.audienceExports: array expected");
|
|
39264
|
+
message.audienceExports = [];
|
|
39265
|
+
for (var i = 0; i < object.audienceExports.length; ++i) {
|
|
39266
|
+
if (typeof object.audienceExports[i] !== "object")
|
|
39267
|
+
throw TypeError(".google.analytics.data.v1beta.ListAudienceExportsResponse.audienceExports: object expected");
|
|
39268
|
+
message.audienceExports[i] = $root.google.analytics.data.v1beta.AudienceExport.fromObject(object.audienceExports[i]);
|
|
39269
|
+
}
|
|
39270
|
+
}
|
|
39271
|
+
if (object.nextPageToken != null)
|
|
39272
|
+
message.nextPageToken = String(object.nextPageToken);
|
|
39273
|
+
return message;
|
|
39274
|
+
};
|
|
39275
|
+
|
|
39276
|
+
/**
|
|
39277
|
+
* Creates a plain object from a ListAudienceExportsResponse message. Also converts values to other types if specified.
|
|
39278
|
+
* @function toObject
|
|
39279
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39280
|
+
* @static
|
|
39281
|
+
* @param {google.analytics.data.v1beta.ListAudienceExportsResponse} message ListAudienceExportsResponse
|
|
39282
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39283
|
+
* @returns {Object.<string,*>} Plain object
|
|
39284
|
+
*/
|
|
39285
|
+
ListAudienceExportsResponse.toObject = function toObject(message, options) {
|
|
39286
|
+
if (!options)
|
|
39287
|
+
options = {};
|
|
39288
|
+
var object = {};
|
|
39289
|
+
if (options.arrays || options.defaults)
|
|
39290
|
+
object.audienceExports = [];
|
|
39291
|
+
if (message.audienceExports && message.audienceExports.length) {
|
|
39292
|
+
object.audienceExports = [];
|
|
39293
|
+
for (var j = 0; j < message.audienceExports.length; ++j)
|
|
39294
|
+
object.audienceExports[j] = $root.google.analytics.data.v1beta.AudienceExport.toObject(message.audienceExports[j], options);
|
|
39295
|
+
}
|
|
39296
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) {
|
|
39297
|
+
object.nextPageToken = message.nextPageToken;
|
|
39298
|
+
if (options.oneofs)
|
|
39299
|
+
object._nextPageToken = "nextPageToken";
|
|
39300
|
+
}
|
|
39301
|
+
return object;
|
|
39302
|
+
};
|
|
39303
|
+
|
|
39304
|
+
/**
|
|
39305
|
+
* Converts this ListAudienceExportsResponse to JSON.
|
|
39306
|
+
* @function toJSON
|
|
39307
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39308
|
+
* @instance
|
|
39309
|
+
* @returns {Object.<string,*>} JSON object
|
|
39310
|
+
*/
|
|
39311
|
+
ListAudienceExportsResponse.prototype.toJSON = function toJSON() {
|
|
39312
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39313
|
+
};
|
|
39314
|
+
|
|
39315
|
+
/**
|
|
39316
|
+
* Gets the default type url for ListAudienceExportsResponse
|
|
39317
|
+
* @function getTypeUrl
|
|
39318
|
+
* @memberof google.analytics.data.v1beta.ListAudienceExportsResponse
|
|
39319
|
+
* @static
|
|
39320
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
39321
|
+
* @returns {string} The default type url
|
|
39322
|
+
*/
|
|
39323
|
+
ListAudienceExportsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
39324
|
+
if (typeUrlPrefix === undefined) {
|
|
39325
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
39326
|
+
}
|
|
39327
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.ListAudienceExportsResponse";
|
|
39328
|
+
};
|
|
39329
|
+
|
|
39330
|
+
return ListAudienceExportsResponse;
|
|
39331
|
+
})();
|
|
39332
|
+
|
|
39333
|
+
v1beta.CreateAudienceExportRequest = (function() {
|
|
39334
|
+
|
|
39335
|
+
/**
|
|
39336
|
+
* Properties of a CreateAudienceExportRequest.
|
|
39337
|
+
* @memberof google.analytics.data.v1beta
|
|
39338
|
+
* @interface ICreateAudienceExportRequest
|
|
39339
|
+
* @property {string|null} [parent] CreateAudienceExportRequest parent
|
|
39340
|
+
* @property {google.analytics.data.v1beta.IAudienceExport|null} [audienceExport] CreateAudienceExportRequest audienceExport
|
|
39341
|
+
*/
|
|
39342
|
+
|
|
39343
|
+
/**
|
|
39344
|
+
* Constructs a new CreateAudienceExportRequest.
|
|
39345
|
+
* @memberof google.analytics.data.v1beta
|
|
39346
|
+
* @classdesc Represents a CreateAudienceExportRequest.
|
|
39347
|
+
* @implements ICreateAudienceExportRequest
|
|
39348
|
+
* @constructor
|
|
39349
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest=} [properties] Properties to set
|
|
39350
|
+
*/
|
|
39351
|
+
function CreateAudienceExportRequest(properties) {
|
|
39352
|
+
if (properties)
|
|
39353
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39354
|
+
if (properties[keys[i]] != null)
|
|
39355
|
+
this[keys[i]] = properties[keys[i]];
|
|
39356
|
+
}
|
|
39357
|
+
|
|
39358
|
+
/**
|
|
39359
|
+
* CreateAudienceExportRequest parent.
|
|
39360
|
+
* @member {string} parent
|
|
39361
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39362
|
+
* @instance
|
|
39363
|
+
*/
|
|
39364
|
+
CreateAudienceExportRequest.prototype.parent = "";
|
|
39365
|
+
|
|
39366
|
+
/**
|
|
39367
|
+
* CreateAudienceExportRequest audienceExport.
|
|
39368
|
+
* @member {google.analytics.data.v1beta.IAudienceExport|null|undefined} audienceExport
|
|
39369
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39370
|
+
* @instance
|
|
39371
|
+
*/
|
|
39372
|
+
CreateAudienceExportRequest.prototype.audienceExport = null;
|
|
39373
|
+
|
|
39374
|
+
/**
|
|
39375
|
+
* Creates a new CreateAudienceExportRequest instance using the specified properties.
|
|
39376
|
+
* @function create
|
|
39377
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39378
|
+
* @static
|
|
39379
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest=} [properties] Properties to set
|
|
39380
|
+
* @returns {google.analytics.data.v1beta.CreateAudienceExportRequest} CreateAudienceExportRequest instance
|
|
39381
|
+
*/
|
|
39382
|
+
CreateAudienceExportRequest.create = function create(properties) {
|
|
39383
|
+
return new CreateAudienceExportRequest(properties);
|
|
39384
|
+
};
|
|
39385
|
+
|
|
39386
|
+
/**
|
|
39387
|
+
* Encodes the specified CreateAudienceExportRequest message. Does not implicitly {@link google.analytics.data.v1beta.CreateAudienceExportRequest.verify|verify} messages.
|
|
39388
|
+
* @function encode
|
|
39389
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39390
|
+
* @static
|
|
39391
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest} message CreateAudienceExportRequest message or plain object to encode
|
|
39392
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39393
|
+
* @returns {$protobuf.Writer} Writer
|
|
39394
|
+
*/
|
|
39395
|
+
CreateAudienceExportRequest.encode = function encode(message, writer) {
|
|
39396
|
+
if (!writer)
|
|
39397
|
+
writer = $Writer.create();
|
|
39398
|
+
if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
|
|
39399
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
|
39400
|
+
if (message.audienceExport != null && Object.hasOwnProperty.call(message, "audienceExport"))
|
|
39401
|
+
$root.google.analytics.data.v1beta.AudienceExport.encode(message.audienceExport, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
39402
|
+
return writer;
|
|
39403
|
+
};
|
|
39404
|
+
|
|
39405
|
+
/**
|
|
39406
|
+
* Encodes the specified CreateAudienceExportRequest message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.CreateAudienceExportRequest.verify|verify} messages.
|
|
39407
|
+
* @function encodeDelimited
|
|
39408
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39409
|
+
* @static
|
|
39410
|
+
* @param {google.analytics.data.v1beta.ICreateAudienceExportRequest} message CreateAudienceExportRequest message or plain object to encode
|
|
39411
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39412
|
+
* @returns {$protobuf.Writer} Writer
|
|
39413
|
+
*/
|
|
39414
|
+
CreateAudienceExportRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39415
|
+
return this.encode(message, writer).ldelim();
|
|
39416
|
+
};
|
|
39417
|
+
|
|
39418
|
+
/**
|
|
39419
|
+
* Decodes a CreateAudienceExportRequest message from the specified reader or buffer.
|
|
39420
|
+
* @function decode
|
|
39421
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39422
|
+
* @static
|
|
39423
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39424
|
+
* @param {number} [length] Message length if known beforehand
|
|
39425
|
+
* @returns {google.analytics.data.v1beta.CreateAudienceExportRequest} CreateAudienceExportRequest
|
|
39426
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39427
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39428
|
+
*/
|
|
39429
|
+
CreateAudienceExportRequest.decode = function decode(reader, length) {
|
|
39430
|
+
if (!(reader instanceof $Reader))
|
|
39431
|
+
reader = $Reader.create(reader);
|
|
39432
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.CreateAudienceExportRequest();
|
|
39433
|
+
while (reader.pos < end) {
|
|
39434
|
+
var tag = reader.uint32();
|
|
39435
|
+
switch (tag >>> 3) {
|
|
39436
|
+
case 1: {
|
|
39437
|
+
message.parent = reader.string();
|
|
39438
|
+
break;
|
|
39439
|
+
}
|
|
39440
|
+
case 2: {
|
|
39441
|
+
message.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.decode(reader, reader.uint32());
|
|
39442
|
+
break;
|
|
39443
|
+
}
|
|
39444
|
+
default:
|
|
39445
|
+
reader.skipType(tag & 7);
|
|
39446
|
+
break;
|
|
39447
|
+
}
|
|
39448
|
+
}
|
|
39449
|
+
return message;
|
|
39450
|
+
};
|
|
39451
|
+
|
|
39452
|
+
/**
|
|
39453
|
+
* Decodes a CreateAudienceExportRequest message from the specified reader or buffer, length delimited.
|
|
39454
|
+
* @function decodeDelimited
|
|
39455
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39456
|
+
* @static
|
|
39457
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39458
|
+
* @returns {google.analytics.data.v1beta.CreateAudienceExportRequest} CreateAudienceExportRequest
|
|
39459
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39460
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39461
|
+
*/
|
|
39462
|
+
CreateAudienceExportRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
39463
|
+
if (!(reader instanceof $Reader))
|
|
39464
|
+
reader = new $Reader(reader);
|
|
39465
|
+
return this.decode(reader, reader.uint32());
|
|
39466
|
+
};
|
|
39467
|
+
|
|
39468
|
+
/**
|
|
39469
|
+
* Verifies a CreateAudienceExportRequest message.
|
|
39470
|
+
* @function verify
|
|
39471
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39472
|
+
* @static
|
|
39473
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39474
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39475
|
+
*/
|
|
39476
|
+
CreateAudienceExportRequest.verify = function verify(message) {
|
|
39477
|
+
if (typeof message !== "object" || message === null)
|
|
39478
|
+
return "object expected";
|
|
39479
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
39480
|
+
if (!$util.isString(message.parent))
|
|
39481
|
+
return "parent: string expected";
|
|
39482
|
+
if (message.audienceExport != null && message.hasOwnProperty("audienceExport")) {
|
|
39483
|
+
var error = $root.google.analytics.data.v1beta.AudienceExport.verify(message.audienceExport);
|
|
39484
|
+
if (error)
|
|
39485
|
+
return "audienceExport." + error;
|
|
39486
|
+
}
|
|
39487
|
+
return null;
|
|
39488
|
+
};
|
|
39489
|
+
|
|
39490
|
+
/**
|
|
39491
|
+
* Creates a CreateAudienceExportRequest message from a plain object. Also converts values to their respective internal types.
|
|
39492
|
+
* @function fromObject
|
|
39493
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39494
|
+
* @static
|
|
39495
|
+
* @param {Object.<string,*>} object Plain object
|
|
39496
|
+
* @returns {google.analytics.data.v1beta.CreateAudienceExportRequest} CreateAudienceExportRequest
|
|
39497
|
+
*/
|
|
39498
|
+
CreateAudienceExportRequest.fromObject = function fromObject(object) {
|
|
39499
|
+
if (object instanceof $root.google.analytics.data.v1beta.CreateAudienceExportRequest)
|
|
39500
|
+
return object;
|
|
39501
|
+
var message = new $root.google.analytics.data.v1beta.CreateAudienceExportRequest();
|
|
39502
|
+
if (object.parent != null)
|
|
39503
|
+
message.parent = String(object.parent);
|
|
39504
|
+
if (object.audienceExport != null) {
|
|
39505
|
+
if (typeof object.audienceExport !== "object")
|
|
39506
|
+
throw TypeError(".google.analytics.data.v1beta.CreateAudienceExportRequest.audienceExport: object expected");
|
|
39507
|
+
message.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.fromObject(object.audienceExport);
|
|
39508
|
+
}
|
|
39509
|
+
return message;
|
|
39510
|
+
};
|
|
39511
|
+
|
|
39512
|
+
/**
|
|
39513
|
+
* Creates a plain object from a CreateAudienceExportRequest message. Also converts values to other types if specified.
|
|
39514
|
+
* @function toObject
|
|
39515
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39516
|
+
* @static
|
|
39517
|
+
* @param {google.analytics.data.v1beta.CreateAudienceExportRequest} message CreateAudienceExportRequest
|
|
39518
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39519
|
+
* @returns {Object.<string,*>} Plain object
|
|
39520
|
+
*/
|
|
39521
|
+
CreateAudienceExportRequest.toObject = function toObject(message, options) {
|
|
39522
|
+
if (!options)
|
|
39523
|
+
options = {};
|
|
39524
|
+
var object = {};
|
|
39525
|
+
if (options.defaults) {
|
|
39526
|
+
object.parent = "";
|
|
39527
|
+
object.audienceExport = null;
|
|
39528
|
+
}
|
|
39529
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
39530
|
+
object.parent = message.parent;
|
|
39531
|
+
if (message.audienceExport != null && message.hasOwnProperty("audienceExport"))
|
|
39532
|
+
object.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.toObject(message.audienceExport, options);
|
|
39533
|
+
return object;
|
|
39534
|
+
};
|
|
39535
|
+
|
|
39536
|
+
/**
|
|
39537
|
+
* Converts this CreateAudienceExportRequest to JSON.
|
|
39538
|
+
* @function toJSON
|
|
39539
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39540
|
+
* @instance
|
|
39541
|
+
* @returns {Object.<string,*>} JSON object
|
|
39542
|
+
*/
|
|
39543
|
+
CreateAudienceExportRequest.prototype.toJSON = function toJSON() {
|
|
39544
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39545
|
+
};
|
|
39546
|
+
|
|
39547
|
+
/**
|
|
39548
|
+
* Gets the default type url for CreateAudienceExportRequest
|
|
39549
|
+
* @function getTypeUrl
|
|
39550
|
+
* @memberof google.analytics.data.v1beta.CreateAudienceExportRequest
|
|
39551
|
+
* @static
|
|
39552
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
39553
|
+
* @returns {string} The default type url
|
|
39554
|
+
*/
|
|
39555
|
+
CreateAudienceExportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
39556
|
+
if (typeUrlPrefix === undefined) {
|
|
39557
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
39558
|
+
}
|
|
39559
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.CreateAudienceExportRequest";
|
|
39560
|
+
};
|
|
39561
|
+
|
|
39562
|
+
return CreateAudienceExportRequest;
|
|
39563
|
+
})();
|
|
39564
|
+
|
|
39565
|
+
v1beta.AudienceExport = (function() {
|
|
39566
|
+
|
|
39567
|
+
/**
|
|
39568
|
+
* Properties of an AudienceExport.
|
|
39569
|
+
* @memberof google.analytics.data.v1beta
|
|
39570
|
+
* @interface IAudienceExport
|
|
39571
|
+
* @property {string|null} [name] AudienceExport name
|
|
39572
|
+
* @property {string|null} [audience] AudienceExport audience
|
|
39573
|
+
* @property {string|null} [audienceDisplayName] AudienceExport audienceDisplayName
|
|
39574
|
+
* @property {Array.<google.analytics.data.v1beta.IAudienceDimension>|null} [dimensions] AudienceExport dimensions
|
|
39575
|
+
* @property {google.analytics.data.v1beta.AudienceExport.State|null} [state] AudienceExport state
|
|
39576
|
+
* @property {google.protobuf.ITimestamp|null} [beginCreatingTime] AudienceExport beginCreatingTime
|
|
39577
|
+
* @property {number|null} [creationQuotaTokensCharged] AudienceExport creationQuotaTokensCharged
|
|
39578
|
+
* @property {number|null} [rowCount] AudienceExport rowCount
|
|
39579
|
+
* @property {string|null} [errorMessage] AudienceExport errorMessage
|
|
39580
|
+
* @property {number|null} [percentageCompleted] AudienceExport percentageCompleted
|
|
39581
|
+
*/
|
|
39582
|
+
|
|
39583
|
+
/**
|
|
39584
|
+
* Constructs a new AudienceExport.
|
|
39585
|
+
* @memberof google.analytics.data.v1beta
|
|
39586
|
+
* @classdesc Represents an AudienceExport.
|
|
39587
|
+
* @implements IAudienceExport
|
|
39588
|
+
* @constructor
|
|
39589
|
+
* @param {google.analytics.data.v1beta.IAudienceExport=} [properties] Properties to set
|
|
39590
|
+
*/
|
|
39591
|
+
function AudienceExport(properties) {
|
|
39592
|
+
this.dimensions = [];
|
|
39593
|
+
if (properties)
|
|
39594
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39595
|
+
if (properties[keys[i]] != null)
|
|
39596
|
+
this[keys[i]] = properties[keys[i]];
|
|
39597
|
+
}
|
|
39598
|
+
|
|
39599
|
+
/**
|
|
39600
|
+
* AudienceExport name.
|
|
39601
|
+
* @member {string} name
|
|
39602
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39603
|
+
* @instance
|
|
39604
|
+
*/
|
|
39605
|
+
AudienceExport.prototype.name = "";
|
|
39606
|
+
|
|
39607
|
+
/**
|
|
39608
|
+
* AudienceExport audience.
|
|
39609
|
+
* @member {string} audience
|
|
39610
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39611
|
+
* @instance
|
|
39612
|
+
*/
|
|
39613
|
+
AudienceExport.prototype.audience = "";
|
|
39614
|
+
|
|
39615
|
+
/**
|
|
39616
|
+
* AudienceExport audienceDisplayName.
|
|
39617
|
+
* @member {string} audienceDisplayName
|
|
39618
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39619
|
+
* @instance
|
|
39620
|
+
*/
|
|
39621
|
+
AudienceExport.prototype.audienceDisplayName = "";
|
|
39622
|
+
|
|
39623
|
+
/**
|
|
39624
|
+
* AudienceExport dimensions.
|
|
39625
|
+
* @member {Array.<google.analytics.data.v1beta.IAudienceDimension>} dimensions
|
|
39626
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39627
|
+
* @instance
|
|
39628
|
+
*/
|
|
39629
|
+
AudienceExport.prototype.dimensions = $util.emptyArray;
|
|
39630
|
+
|
|
39631
|
+
/**
|
|
39632
|
+
* AudienceExport state.
|
|
39633
|
+
* @member {google.analytics.data.v1beta.AudienceExport.State|null|undefined} state
|
|
39634
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39635
|
+
* @instance
|
|
39636
|
+
*/
|
|
39637
|
+
AudienceExport.prototype.state = null;
|
|
39638
|
+
|
|
39639
|
+
/**
|
|
39640
|
+
* AudienceExport beginCreatingTime.
|
|
39641
|
+
* @member {google.protobuf.ITimestamp|null|undefined} beginCreatingTime
|
|
39642
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39643
|
+
* @instance
|
|
39644
|
+
*/
|
|
39645
|
+
AudienceExport.prototype.beginCreatingTime = null;
|
|
39646
|
+
|
|
39647
|
+
/**
|
|
39648
|
+
* AudienceExport creationQuotaTokensCharged.
|
|
39649
|
+
* @member {number} creationQuotaTokensCharged
|
|
39650
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39651
|
+
* @instance
|
|
39652
|
+
*/
|
|
39653
|
+
AudienceExport.prototype.creationQuotaTokensCharged = 0;
|
|
39654
|
+
|
|
39655
|
+
/**
|
|
39656
|
+
* AudienceExport rowCount.
|
|
39657
|
+
* @member {number|null|undefined} rowCount
|
|
39658
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39659
|
+
* @instance
|
|
39660
|
+
*/
|
|
39661
|
+
AudienceExport.prototype.rowCount = null;
|
|
39662
|
+
|
|
39663
|
+
/**
|
|
39664
|
+
* AudienceExport errorMessage.
|
|
39665
|
+
* @member {string|null|undefined} errorMessage
|
|
39666
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39667
|
+
* @instance
|
|
39668
|
+
*/
|
|
39669
|
+
AudienceExport.prototype.errorMessage = null;
|
|
39670
|
+
|
|
39671
|
+
/**
|
|
39672
|
+
* AudienceExport percentageCompleted.
|
|
39673
|
+
* @member {number|null|undefined} percentageCompleted
|
|
39674
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39675
|
+
* @instance
|
|
39676
|
+
*/
|
|
39677
|
+
AudienceExport.prototype.percentageCompleted = null;
|
|
39678
|
+
|
|
39679
|
+
// OneOf field names bound to virtual getters and setters
|
|
39680
|
+
var $oneOfFields;
|
|
39681
|
+
|
|
39682
|
+
/**
|
|
39683
|
+
* AudienceExport _state.
|
|
39684
|
+
* @member {"state"|undefined} _state
|
|
39685
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39686
|
+
* @instance
|
|
39687
|
+
*/
|
|
39688
|
+
Object.defineProperty(AudienceExport.prototype, "_state", {
|
|
39689
|
+
get: $util.oneOfGetter($oneOfFields = ["state"]),
|
|
39690
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
39691
|
+
});
|
|
39692
|
+
|
|
39693
|
+
/**
|
|
39694
|
+
* AudienceExport _beginCreatingTime.
|
|
39695
|
+
* @member {"beginCreatingTime"|undefined} _beginCreatingTime
|
|
39696
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39697
|
+
* @instance
|
|
39698
|
+
*/
|
|
39699
|
+
Object.defineProperty(AudienceExport.prototype, "_beginCreatingTime", {
|
|
39700
|
+
get: $util.oneOfGetter($oneOfFields = ["beginCreatingTime"]),
|
|
39701
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
39702
|
+
});
|
|
39703
|
+
|
|
39704
|
+
/**
|
|
39705
|
+
* AudienceExport _rowCount.
|
|
39706
|
+
* @member {"rowCount"|undefined} _rowCount
|
|
39707
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39708
|
+
* @instance
|
|
39709
|
+
*/
|
|
39710
|
+
Object.defineProperty(AudienceExport.prototype, "_rowCount", {
|
|
39711
|
+
get: $util.oneOfGetter($oneOfFields = ["rowCount"]),
|
|
39712
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
39713
|
+
});
|
|
39714
|
+
|
|
39715
|
+
/**
|
|
39716
|
+
* AudienceExport _errorMessage.
|
|
39717
|
+
* @member {"errorMessage"|undefined} _errorMessage
|
|
39718
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39719
|
+
* @instance
|
|
39720
|
+
*/
|
|
39721
|
+
Object.defineProperty(AudienceExport.prototype, "_errorMessage", {
|
|
39722
|
+
get: $util.oneOfGetter($oneOfFields = ["errorMessage"]),
|
|
39723
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
39724
|
+
});
|
|
39725
|
+
|
|
39726
|
+
/**
|
|
39727
|
+
* AudienceExport _percentageCompleted.
|
|
39728
|
+
* @member {"percentageCompleted"|undefined} _percentageCompleted
|
|
39729
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39730
|
+
* @instance
|
|
39731
|
+
*/
|
|
39732
|
+
Object.defineProperty(AudienceExport.prototype, "_percentageCompleted", {
|
|
39733
|
+
get: $util.oneOfGetter($oneOfFields = ["percentageCompleted"]),
|
|
39734
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
39735
|
+
});
|
|
39736
|
+
|
|
39737
|
+
/**
|
|
39738
|
+
* Creates a new AudienceExport instance using the specified properties.
|
|
39739
|
+
* @function create
|
|
39740
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39741
|
+
* @static
|
|
39742
|
+
* @param {google.analytics.data.v1beta.IAudienceExport=} [properties] Properties to set
|
|
39743
|
+
* @returns {google.analytics.data.v1beta.AudienceExport} AudienceExport instance
|
|
39744
|
+
*/
|
|
39745
|
+
AudienceExport.create = function create(properties) {
|
|
39746
|
+
return new AudienceExport(properties);
|
|
39747
|
+
};
|
|
39748
|
+
|
|
39749
|
+
/**
|
|
39750
|
+
* Encodes the specified AudienceExport message. Does not implicitly {@link google.analytics.data.v1beta.AudienceExport.verify|verify} messages.
|
|
39751
|
+
* @function encode
|
|
39752
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39753
|
+
* @static
|
|
39754
|
+
* @param {google.analytics.data.v1beta.IAudienceExport} message AudienceExport message or plain object to encode
|
|
39755
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39756
|
+
* @returns {$protobuf.Writer} Writer
|
|
39757
|
+
*/
|
|
39758
|
+
AudienceExport.encode = function encode(message, writer) {
|
|
39759
|
+
if (!writer)
|
|
39760
|
+
writer = $Writer.create();
|
|
39761
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
39762
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
39763
|
+
if (message.audience != null && Object.hasOwnProperty.call(message, "audience"))
|
|
39764
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.audience);
|
|
39765
|
+
if (message.audienceDisplayName != null && Object.hasOwnProperty.call(message, "audienceDisplayName"))
|
|
39766
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.audienceDisplayName);
|
|
39767
|
+
if (message.dimensions != null && message.dimensions.length)
|
|
39768
|
+
for (var i = 0; i < message.dimensions.length; ++i)
|
|
39769
|
+
$root.google.analytics.data.v1beta.AudienceDimension.encode(message.dimensions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
39770
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
39771
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
|
|
39772
|
+
if (message.beginCreatingTime != null && Object.hasOwnProperty.call(message, "beginCreatingTime"))
|
|
39773
|
+
$root.google.protobuf.Timestamp.encode(message.beginCreatingTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
39774
|
+
if (message.creationQuotaTokensCharged != null && Object.hasOwnProperty.call(message, "creationQuotaTokensCharged"))
|
|
39775
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.creationQuotaTokensCharged);
|
|
39776
|
+
if (message.rowCount != null && Object.hasOwnProperty.call(message, "rowCount"))
|
|
39777
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.rowCount);
|
|
39778
|
+
if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
|
|
39779
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.errorMessage);
|
|
39780
|
+
if (message.percentageCompleted != null && Object.hasOwnProperty.call(message, "percentageCompleted"))
|
|
39781
|
+
writer.uint32(/* id 10, wireType 1 =*/81).double(message.percentageCompleted);
|
|
39782
|
+
return writer;
|
|
39783
|
+
};
|
|
39784
|
+
|
|
39785
|
+
/**
|
|
39786
|
+
* Encodes the specified AudienceExport message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.AudienceExport.verify|verify} messages.
|
|
39787
|
+
* @function encodeDelimited
|
|
39788
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39789
|
+
* @static
|
|
39790
|
+
* @param {google.analytics.data.v1beta.IAudienceExport} message AudienceExport message or plain object to encode
|
|
39791
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39792
|
+
* @returns {$protobuf.Writer} Writer
|
|
39793
|
+
*/
|
|
39794
|
+
AudienceExport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39795
|
+
return this.encode(message, writer).ldelim();
|
|
39796
|
+
};
|
|
39797
|
+
|
|
39798
|
+
/**
|
|
39799
|
+
* Decodes an AudienceExport message from the specified reader or buffer.
|
|
39800
|
+
* @function decode
|
|
39801
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39802
|
+
* @static
|
|
39803
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39804
|
+
* @param {number} [length] Message length if known beforehand
|
|
39805
|
+
* @returns {google.analytics.data.v1beta.AudienceExport} AudienceExport
|
|
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
|
+
AudienceExport.decode = function decode(reader, length) {
|
|
39810
|
+
if (!(reader instanceof $Reader))
|
|
39811
|
+
reader = $Reader.create(reader);
|
|
39812
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.AudienceExport();
|
|
39813
|
+
while (reader.pos < end) {
|
|
39814
|
+
var tag = reader.uint32();
|
|
39815
|
+
switch (tag >>> 3) {
|
|
39816
|
+
case 1: {
|
|
39817
|
+
message.name = reader.string();
|
|
39818
|
+
break;
|
|
39819
|
+
}
|
|
39820
|
+
case 2: {
|
|
39821
|
+
message.audience = reader.string();
|
|
39822
|
+
break;
|
|
39823
|
+
}
|
|
39824
|
+
case 3: {
|
|
39825
|
+
message.audienceDisplayName = reader.string();
|
|
39826
|
+
break;
|
|
39827
|
+
}
|
|
39828
|
+
case 4: {
|
|
39829
|
+
if (!(message.dimensions && message.dimensions.length))
|
|
39830
|
+
message.dimensions = [];
|
|
39831
|
+
message.dimensions.push($root.google.analytics.data.v1beta.AudienceDimension.decode(reader, reader.uint32()));
|
|
39832
|
+
break;
|
|
39833
|
+
}
|
|
39834
|
+
case 5: {
|
|
39835
|
+
message.state = reader.int32();
|
|
39836
|
+
break;
|
|
39837
|
+
}
|
|
39838
|
+
case 6: {
|
|
39839
|
+
message.beginCreatingTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
39840
|
+
break;
|
|
39841
|
+
}
|
|
39842
|
+
case 7: {
|
|
39843
|
+
message.creationQuotaTokensCharged = reader.int32();
|
|
39844
|
+
break;
|
|
39845
|
+
}
|
|
39846
|
+
case 8: {
|
|
39847
|
+
message.rowCount = reader.int32();
|
|
39848
|
+
break;
|
|
39849
|
+
}
|
|
39850
|
+
case 9: {
|
|
39851
|
+
message.errorMessage = reader.string();
|
|
39852
|
+
break;
|
|
39853
|
+
}
|
|
39854
|
+
case 10: {
|
|
39855
|
+
message.percentageCompleted = reader.double();
|
|
39856
|
+
break;
|
|
39857
|
+
}
|
|
39858
|
+
default:
|
|
39859
|
+
reader.skipType(tag & 7);
|
|
39860
|
+
break;
|
|
39861
|
+
}
|
|
39862
|
+
}
|
|
39863
|
+
return message;
|
|
39864
|
+
};
|
|
39865
|
+
|
|
39866
|
+
/**
|
|
39867
|
+
* Decodes an AudienceExport message from the specified reader or buffer, length delimited.
|
|
39868
|
+
* @function decodeDelimited
|
|
39869
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39870
|
+
* @static
|
|
39871
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39872
|
+
* @returns {google.analytics.data.v1beta.AudienceExport} AudienceExport
|
|
39873
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39874
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39875
|
+
*/
|
|
39876
|
+
AudienceExport.decodeDelimited = function decodeDelimited(reader) {
|
|
39877
|
+
if (!(reader instanceof $Reader))
|
|
39878
|
+
reader = new $Reader(reader);
|
|
39879
|
+
return this.decode(reader, reader.uint32());
|
|
39880
|
+
};
|
|
39881
|
+
|
|
39882
|
+
/**
|
|
39883
|
+
* Verifies an AudienceExport message.
|
|
39884
|
+
* @function verify
|
|
39885
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39886
|
+
* @static
|
|
39887
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39888
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39889
|
+
*/
|
|
39890
|
+
AudienceExport.verify = function verify(message) {
|
|
39891
|
+
if (typeof message !== "object" || message === null)
|
|
39892
|
+
return "object expected";
|
|
39893
|
+
var properties = {};
|
|
39894
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
39895
|
+
if (!$util.isString(message.name))
|
|
39896
|
+
return "name: string expected";
|
|
39897
|
+
if (message.audience != null && message.hasOwnProperty("audience"))
|
|
39898
|
+
if (!$util.isString(message.audience))
|
|
39899
|
+
return "audience: string expected";
|
|
39900
|
+
if (message.audienceDisplayName != null && message.hasOwnProperty("audienceDisplayName"))
|
|
39901
|
+
if (!$util.isString(message.audienceDisplayName))
|
|
39902
|
+
return "audienceDisplayName: string expected";
|
|
39903
|
+
if (message.dimensions != null && message.hasOwnProperty("dimensions")) {
|
|
39904
|
+
if (!Array.isArray(message.dimensions))
|
|
39905
|
+
return "dimensions: array expected";
|
|
39906
|
+
for (var i = 0; i < message.dimensions.length; ++i) {
|
|
39907
|
+
var error = $root.google.analytics.data.v1beta.AudienceDimension.verify(message.dimensions[i]);
|
|
39908
|
+
if (error)
|
|
39909
|
+
return "dimensions." + error;
|
|
39910
|
+
}
|
|
39911
|
+
}
|
|
39912
|
+
if (message.state != null && message.hasOwnProperty("state")) {
|
|
39913
|
+
properties._state = 1;
|
|
39914
|
+
switch (message.state) {
|
|
39915
|
+
default:
|
|
39916
|
+
return "state: enum value expected";
|
|
39917
|
+
case 0:
|
|
39918
|
+
case 1:
|
|
39919
|
+
case 2:
|
|
39920
|
+
case 3:
|
|
39921
|
+
break;
|
|
39922
|
+
}
|
|
39923
|
+
}
|
|
39924
|
+
if (message.beginCreatingTime != null && message.hasOwnProperty("beginCreatingTime")) {
|
|
39925
|
+
properties._beginCreatingTime = 1;
|
|
39926
|
+
{
|
|
39927
|
+
var error = $root.google.protobuf.Timestamp.verify(message.beginCreatingTime);
|
|
39928
|
+
if (error)
|
|
39929
|
+
return "beginCreatingTime." + error;
|
|
39930
|
+
}
|
|
39931
|
+
}
|
|
39932
|
+
if (message.creationQuotaTokensCharged != null && message.hasOwnProperty("creationQuotaTokensCharged"))
|
|
39933
|
+
if (!$util.isInteger(message.creationQuotaTokensCharged))
|
|
39934
|
+
return "creationQuotaTokensCharged: integer expected";
|
|
39935
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
39936
|
+
properties._rowCount = 1;
|
|
39937
|
+
if (!$util.isInteger(message.rowCount))
|
|
39938
|
+
return "rowCount: integer expected";
|
|
39939
|
+
}
|
|
39940
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) {
|
|
39941
|
+
properties._errorMessage = 1;
|
|
39942
|
+
if (!$util.isString(message.errorMessage))
|
|
39943
|
+
return "errorMessage: string expected";
|
|
39944
|
+
}
|
|
39945
|
+
if (message.percentageCompleted != null && message.hasOwnProperty("percentageCompleted")) {
|
|
39946
|
+
properties._percentageCompleted = 1;
|
|
39947
|
+
if (typeof message.percentageCompleted !== "number")
|
|
39948
|
+
return "percentageCompleted: number expected";
|
|
39949
|
+
}
|
|
39950
|
+
return null;
|
|
39951
|
+
};
|
|
39952
|
+
|
|
39953
|
+
/**
|
|
39954
|
+
* Creates an AudienceExport message from a plain object. Also converts values to their respective internal types.
|
|
39955
|
+
* @function fromObject
|
|
39956
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
39957
|
+
* @static
|
|
39958
|
+
* @param {Object.<string,*>} object Plain object
|
|
39959
|
+
* @returns {google.analytics.data.v1beta.AudienceExport} AudienceExport
|
|
39960
|
+
*/
|
|
39961
|
+
AudienceExport.fromObject = function fromObject(object) {
|
|
39962
|
+
if (object instanceof $root.google.analytics.data.v1beta.AudienceExport)
|
|
39963
|
+
return object;
|
|
39964
|
+
var message = new $root.google.analytics.data.v1beta.AudienceExport();
|
|
39965
|
+
if (object.name != null)
|
|
39966
|
+
message.name = String(object.name);
|
|
39967
|
+
if (object.audience != null)
|
|
39968
|
+
message.audience = String(object.audience);
|
|
39969
|
+
if (object.audienceDisplayName != null)
|
|
39970
|
+
message.audienceDisplayName = String(object.audienceDisplayName);
|
|
39971
|
+
if (object.dimensions) {
|
|
39972
|
+
if (!Array.isArray(object.dimensions))
|
|
39973
|
+
throw TypeError(".google.analytics.data.v1beta.AudienceExport.dimensions: array expected");
|
|
39974
|
+
message.dimensions = [];
|
|
39975
|
+
for (var i = 0; i < object.dimensions.length; ++i) {
|
|
39976
|
+
if (typeof object.dimensions[i] !== "object")
|
|
39977
|
+
throw TypeError(".google.analytics.data.v1beta.AudienceExport.dimensions: object expected");
|
|
39978
|
+
message.dimensions[i] = $root.google.analytics.data.v1beta.AudienceDimension.fromObject(object.dimensions[i]);
|
|
39979
|
+
}
|
|
39980
|
+
}
|
|
39981
|
+
switch (object.state) {
|
|
39982
|
+
default:
|
|
39983
|
+
if (typeof object.state === "number") {
|
|
39984
|
+
message.state = object.state;
|
|
39985
|
+
break;
|
|
39986
|
+
}
|
|
39987
|
+
break;
|
|
39988
|
+
case "STATE_UNSPECIFIED":
|
|
39989
|
+
case 0:
|
|
39990
|
+
message.state = 0;
|
|
39991
|
+
break;
|
|
39992
|
+
case "CREATING":
|
|
39993
|
+
case 1:
|
|
39994
|
+
message.state = 1;
|
|
39995
|
+
break;
|
|
39996
|
+
case "ACTIVE":
|
|
39997
|
+
case 2:
|
|
39998
|
+
message.state = 2;
|
|
39999
|
+
break;
|
|
40000
|
+
case "FAILED":
|
|
40001
|
+
case 3:
|
|
40002
|
+
message.state = 3;
|
|
40003
|
+
break;
|
|
40004
|
+
}
|
|
40005
|
+
if (object.beginCreatingTime != null) {
|
|
40006
|
+
if (typeof object.beginCreatingTime !== "object")
|
|
40007
|
+
throw TypeError(".google.analytics.data.v1beta.AudienceExport.beginCreatingTime: object expected");
|
|
40008
|
+
message.beginCreatingTime = $root.google.protobuf.Timestamp.fromObject(object.beginCreatingTime);
|
|
40009
|
+
}
|
|
40010
|
+
if (object.creationQuotaTokensCharged != null)
|
|
40011
|
+
message.creationQuotaTokensCharged = object.creationQuotaTokensCharged | 0;
|
|
40012
|
+
if (object.rowCount != null)
|
|
40013
|
+
message.rowCount = object.rowCount | 0;
|
|
40014
|
+
if (object.errorMessage != null)
|
|
40015
|
+
message.errorMessage = String(object.errorMessage);
|
|
40016
|
+
if (object.percentageCompleted != null)
|
|
40017
|
+
message.percentageCompleted = Number(object.percentageCompleted);
|
|
40018
|
+
return message;
|
|
40019
|
+
};
|
|
40020
|
+
|
|
40021
|
+
/**
|
|
40022
|
+
* Creates a plain object from an AudienceExport message. Also converts values to other types if specified.
|
|
40023
|
+
* @function toObject
|
|
40024
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40025
|
+
* @static
|
|
40026
|
+
* @param {google.analytics.data.v1beta.AudienceExport} message AudienceExport
|
|
40027
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40028
|
+
* @returns {Object.<string,*>} Plain object
|
|
40029
|
+
*/
|
|
40030
|
+
AudienceExport.toObject = function toObject(message, options) {
|
|
40031
|
+
if (!options)
|
|
40032
|
+
options = {};
|
|
40033
|
+
var object = {};
|
|
40034
|
+
if (options.arrays || options.defaults)
|
|
40035
|
+
object.dimensions = [];
|
|
40036
|
+
if (options.defaults) {
|
|
40037
|
+
object.name = "";
|
|
40038
|
+
object.audience = "";
|
|
40039
|
+
object.audienceDisplayName = "";
|
|
40040
|
+
object.creationQuotaTokensCharged = 0;
|
|
40041
|
+
}
|
|
40042
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
40043
|
+
object.name = message.name;
|
|
40044
|
+
if (message.audience != null && message.hasOwnProperty("audience"))
|
|
40045
|
+
object.audience = message.audience;
|
|
40046
|
+
if (message.audienceDisplayName != null && message.hasOwnProperty("audienceDisplayName"))
|
|
40047
|
+
object.audienceDisplayName = message.audienceDisplayName;
|
|
40048
|
+
if (message.dimensions && message.dimensions.length) {
|
|
40049
|
+
object.dimensions = [];
|
|
40050
|
+
for (var j = 0; j < message.dimensions.length; ++j)
|
|
40051
|
+
object.dimensions[j] = $root.google.analytics.data.v1beta.AudienceDimension.toObject(message.dimensions[j], options);
|
|
40052
|
+
}
|
|
40053
|
+
if (message.state != null && message.hasOwnProperty("state")) {
|
|
40054
|
+
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;
|
|
40055
|
+
if (options.oneofs)
|
|
40056
|
+
object._state = "state";
|
|
40057
|
+
}
|
|
40058
|
+
if (message.beginCreatingTime != null && message.hasOwnProperty("beginCreatingTime")) {
|
|
40059
|
+
object.beginCreatingTime = $root.google.protobuf.Timestamp.toObject(message.beginCreatingTime, options);
|
|
40060
|
+
if (options.oneofs)
|
|
40061
|
+
object._beginCreatingTime = "beginCreatingTime";
|
|
40062
|
+
}
|
|
40063
|
+
if (message.creationQuotaTokensCharged != null && message.hasOwnProperty("creationQuotaTokensCharged"))
|
|
40064
|
+
object.creationQuotaTokensCharged = message.creationQuotaTokensCharged;
|
|
40065
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
40066
|
+
object.rowCount = message.rowCount;
|
|
40067
|
+
if (options.oneofs)
|
|
40068
|
+
object._rowCount = "rowCount";
|
|
40069
|
+
}
|
|
40070
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) {
|
|
40071
|
+
object.errorMessage = message.errorMessage;
|
|
40072
|
+
if (options.oneofs)
|
|
40073
|
+
object._errorMessage = "errorMessage";
|
|
40074
|
+
}
|
|
40075
|
+
if (message.percentageCompleted != null && message.hasOwnProperty("percentageCompleted")) {
|
|
40076
|
+
object.percentageCompleted = options.json && !isFinite(message.percentageCompleted) ? String(message.percentageCompleted) : message.percentageCompleted;
|
|
40077
|
+
if (options.oneofs)
|
|
40078
|
+
object._percentageCompleted = "percentageCompleted";
|
|
40079
|
+
}
|
|
40080
|
+
return object;
|
|
40081
|
+
};
|
|
40082
|
+
|
|
40083
|
+
/**
|
|
40084
|
+
* Converts this AudienceExport to JSON.
|
|
40085
|
+
* @function toJSON
|
|
40086
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40087
|
+
* @instance
|
|
40088
|
+
* @returns {Object.<string,*>} JSON object
|
|
40089
|
+
*/
|
|
40090
|
+
AudienceExport.prototype.toJSON = function toJSON() {
|
|
40091
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40092
|
+
};
|
|
40093
|
+
|
|
40094
|
+
/**
|
|
40095
|
+
* Gets the default type url for AudienceExport
|
|
40096
|
+
* @function getTypeUrl
|
|
40097
|
+
* @memberof google.analytics.data.v1beta.AudienceExport
|
|
40098
|
+
* @static
|
|
40099
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40100
|
+
* @returns {string} The default type url
|
|
40101
|
+
*/
|
|
40102
|
+
AudienceExport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
40103
|
+
if (typeUrlPrefix === undefined) {
|
|
40104
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
40105
|
+
}
|
|
40106
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.AudienceExport";
|
|
40107
|
+
};
|
|
40108
|
+
|
|
40109
|
+
/**
|
|
40110
|
+
* State enum.
|
|
40111
|
+
* @name google.analytics.data.v1beta.AudienceExport.State
|
|
40112
|
+
* @enum {number}
|
|
40113
|
+
* @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
|
|
40114
|
+
* @property {number} CREATING=1 CREATING value
|
|
40115
|
+
* @property {number} ACTIVE=2 ACTIVE value
|
|
40116
|
+
* @property {number} FAILED=3 FAILED value
|
|
40117
|
+
*/
|
|
40118
|
+
AudienceExport.State = (function() {
|
|
40119
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
40120
|
+
values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
|
|
40121
|
+
values[valuesById[1] = "CREATING"] = 1;
|
|
40122
|
+
values[valuesById[2] = "ACTIVE"] = 2;
|
|
40123
|
+
values[valuesById[3] = "FAILED"] = 3;
|
|
40124
|
+
return values;
|
|
40125
|
+
})();
|
|
40126
|
+
|
|
40127
|
+
return AudienceExport;
|
|
40128
|
+
})();
|
|
40129
|
+
|
|
40130
|
+
v1beta.AudienceExportMetadata = (function() {
|
|
40131
|
+
|
|
40132
|
+
/**
|
|
40133
|
+
* Properties of an AudienceExportMetadata.
|
|
40134
|
+
* @memberof google.analytics.data.v1beta
|
|
40135
|
+
* @interface IAudienceExportMetadata
|
|
40136
|
+
*/
|
|
40137
|
+
|
|
40138
|
+
/**
|
|
40139
|
+
* Constructs a new AudienceExportMetadata.
|
|
40140
|
+
* @memberof google.analytics.data.v1beta
|
|
40141
|
+
* @classdesc Represents an AudienceExportMetadata.
|
|
40142
|
+
* @implements IAudienceExportMetadata
|
|
40143
|
+
* @constructor
|
|
40144
|
+
* @param {google.analytics.data.v1beta.IAudienceExportMetadata=} [properties] Properties to set
|
|
40145
|
+
*/
|
|
40146
|
+
function AudienceExportMetadata(properties) {
|
|
40147
|
+
if (properties)
|
|
40148
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40149
|
+
if (properties[keys[i]] != null)
|
|
40150
|
+
this[keys[i]] = properties[keys[i]];
|
|
40151
|
+
}
|
|
40152
|
+
|
|
40153
|
+
/**
|
|
40154
|
+
* Creates a new AudienceExportMetadata instance using the specified properties.
|
|
40155
|
+
* @function create
|
|
40156
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40157
|
+
* @static
|
|
40158
|
+
* @param {google.analytics.data.v1beta.IAudienceExportMetadata=} [properties] Properties to set
|
|
40159
|
+
* @returns {google.analytics.data.v1beta.AudienceExportMetadata} AudienceExportMetadata instance
|
|
40160
|
+
*/
|
|
40161
|
+
AudienceExportMetadata.create = function create(properties) {
|
|
40162
|
+
return new AudienceExportMetadata(properties);
|
|
40163
|
+
};
|
|
40164
|
+
|
|
40165
|
+
/**
|
|
40166
|
+
* Encodes the specified AudienceExportMetadata message. Does not implicitly {@link google.analytics.data.v1beta.AudienceExportMetadata.verify|verify} messages.
|
|
40167
|
+
* @function encode
|
|
40168
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40169
|
+
* @static
|
|
40170
|
+
* @param {google.analytics.data.v1beta.IAudienceExportMetadata} message AudienceExportMetadata message or plain object to encode
|
|
40171
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40172
|
+
* @returns {$protobuf.Writer} Writer
|
|
40173
|
+
*/
|
|
40174
|
+
AudienceExportMetadata.encode = function encode(message, writer) {
|
|
40175
|
+
if (!writer)
|
|
40176
|
+
writer = $Writer.create();
|
|
40177
|
+
return writer;
|
|
40178
|
+
};
|
|
40179
|
+
|
|
40180
|
+
/**
|
|
40181
|
+
* Encodes the specified AudienceExportMetadata message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.AudienceExportMetadata.verify|verify} messages.
|
|
40182
|
+
* @function encodeDelimited
|
|
40183
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40184
|
+
* @static
|
|
40185
|
+
* @param {google.analytics.data.v1beta.IAudienceExportMetadata} message AudienceExportMetadata message or plain object to encode
|
|
40186
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40187
|
+
* @returns {$protobuf.Writer} Writer
|
|
40188
|
+
*/
|
|
40189
|
+
AudienceExportMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40190
|
+
return this.encode(message, writer).ldelim();
|
|
40191
|
+
};
|
|
40192
|
+
|
|
40193
|
+
/**
|
|
40194
|
+
* Decodes an AudienceExportMetadata message from the specified reader or buffer.
|
|
40195
|
+
* @function decode
|
|
40196
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40197
|
+
* @static
|
|
40198
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40199
|
+
* @param {number} [length] Message length if known beforehand
|
|
40200
|
+
* @returns {google.analytics.data.v1beta.AudienceExportMetadata} AudienceExportMetadata
|
|
40201
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40202
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40203
|
+
*/
|
|
40204
|
+
AudienceExportMetadata.decode = function decode(reader, length) {
|
|
40205
|
+
if (!(reader instanceof $Reader))
|
|
40206
|
+
reader = $Reader.create(reader);
|
|
40207
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.AudienceExportMetadata();
|
|
40208
|
+
while (reader.pos < end) {
|
|
40209
|
+
var tag = reader.uint32();
|
|
40210
|
+
switch (tag >>> 3) {
|
|
40211
|
+
default:
|
|
40212
|
+
reader.skipType(tag & 7);
|
|
40213
|
+
break;
|
|
40214
|
+
}
|
|
40215
|
+
}
|
|
40216
|
+
return message;
|
|
40217
|
+
};
|
|
40218
|
+
|
|
40219
|
+
/**
|
|
40220
|
+
* Decodes an AudienceExportMetadata message from the specified reader or buffer, length delimited.
|
|
40221
|
+
* @function decodeDelimited
|
|
40222
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40223
|
+
* @static
|
|
40224
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40225
|
+
* @returns {google.analytics.data.v1beta.AudienceExportMetadata} AudienceExportMetadata
|
|
40226
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40227
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40228
|
+
*/
|
|
40229
|
+
AudienceExportMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
40230
|
+
if (!(reader instanceof $Reader))
|
|
40231
|
+
reader = new $Reader(reader);
|
|
40232
|
+
return this.decode(reader, reader.uint32());
|
|
40233
|
+
};
|
|
40234
|
+
|
|
40235
|
+
/**
|
|
40236
|
+
* Verifies an AudienceExportMetadata message.
|
|
40237
|
+
* @function verify
|
|
40238
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40239
|
+
* @static
|
|
40240
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40241
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40242
|
+
*/
|
|
40243
|
+
AudienceExportMetadata.verify = function verify(message) {
|
|
40244
|
+
if (typeof message !== "object" || message === null)
|
|
40245
|
+
return "object expected";
|
|
40246
|
+
return null;
|
|
40247
|
+
};
|
|
40248
|
+
|
|
40249
|
+
/**
|
|
40250
|
+
* Creates an AudienceExportMetadata message from a plain object. Also converts values to their respective internal types.
|
|
40251
|
+
* @function fromObject
|
|
40252
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40253
|
+
* @static
|
|
40254
|
+
* @param {Object.<string,*>} object Plain object
|
|
40255
|
+
* @returns {google.analytics.data.v1beta.AudienceExportMetadata} AudienceExportMetadata
|
|
40256
|
+
*/
|
|
40257
|
+
AudienceExportMetadata.fromObject = function fromObject(object) {
|
|
40258
|
+
if (object instanceof $root.google.analytics.data.v1beta.AudienceExportMetadata)
|
|
40259
|
+
return object;
|
|
40260
|
+
return new $root.google.analytics.data.v1beta.AudienceExportMetadata();
|
|
40261
|
+
};
|
|
40262
|
+
|
|
40263
|
+
/**
|
|
40264
|
+
* Creates a plain object from an AudienceExportMetadata message. Also converts values to other types if specified.
|
|
40265
|
+
* @function toObject
|
|
40266
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40267
|
+
* @static
|
|
40268
|
+
* @param {google.analytics.data.v1beta.AudienceExportMetadata} message AudienceExportMetadata
|
|
40269
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40270
|
+
* @returns {Object.<string,*>} Plain object
|
|
40271
|
+
*/
|
|
40272
|
+
AudienceExportMetadata.toObject = function toObject() {
|
|
40273
|
+
return {};
|
|
40274
|
+
};
|
|
40275
|
+
|
|
40276
|
+
/**
|
|
40277
|
+
* Converts this AudienceExportMetadata to JSON.
|
|
40278
|
+
* @function toJSON
|
|
40279
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40280
|
+
* @instance
|
|
40281
|
+
* @returns {Object.<string,*>} JSON object
|
|
40282
|
+
*/
|
|
40283
|
+
AudienceExportMetadata.prototype.toJSON = function toJSON() {
|
|
40284
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40285
|
+
};
|
|
40286
|
+
|
|
40287
|
+
/**
|
|
40288
|
+
* Gets the default type url for AudienceExportMetadata
|
|
40289
|
+
* @function getTypeUrl
|
|
40290
|
+
* @memberof google.analytics.data.v1beta.AudienceExportMetadata
|
|
40291
|
+
* @static
|
|
40292
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40293
|
+
* @returns {string} The default type url
|
|
40294
|
+
*/
|
|
40295
|
+
AudienceExportMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
40296
|
+
if (typeUrlPrefix === undefined) {
|
|
40297
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
40298
|
+
}
|
|
40299
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.AudienceExportMetadata";
|
|
40300
|
+
};
|
|
40301
|
+
|
|
40302
|
+
return AudienceExportMetadata;
|
|
40303
|
+
})();
|
|
40304
|
+
|
|
40305
|
+
v1beta.QueryAudienceExportRequest = (function() {
|
|
40306
|
+
|
|
40307
|
+
/**
|
|
40308
|
+
* Properties of a QueryAudienceExportRequest.
|
|
40309
|
+
* @memberof google.analytics.data.v1beta
|
|
40310
|
+
* @interface IQueryAudienceExportRequest
|
|
40311
|
+
* @property {string|null} [name] QueryAudienceExportRequest name
|
|
40312
|
+
* @property {number|Long|null} [offset] QueryAudienceExportRequest offset
|
|
40313
|
+
* @property {number|Long|null} [limit] QueryAudienceExportRequest limit
|
|
40314
|
+
*/
|
|
40315
|
+
|
|
40316
|
+
/**
|
|
40317
|
+
* Constructs a new QueryAudienceExportRequest.
|
|
40318
|
+
* @memberof google.analytics.data.v1beta
|
|
40319
|
+
* @classdesc Represents a QueryAudienceExportRequest.
|
|
40320
|
+
* @implements IQueryAudienceExportRequest
|
|
40321
|
+
* @constructor
|
|
40322
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest=} [properties] Properties to set
|
|
40323
|
+
*/
|
|
40324
|
+
function QueryAudienceExportRequest(properties) {
|
|
40325
|
+
if (properties)
|
|
40326
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40327
|
+
if (properties[keys[i]] != null)
|
|
40328
|
+
this[keys[i]] = properties[keys[i]];
|
|
40329
|
+
}
|
|
40330
|
+
|
|
40331
|
+
/**
|
|
40332
|
+
* QueryAudienceExportRequest name.
|
|
40333
|
+
* @member {string} name
|
|
40334
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40335
|
+
* @instance
|
|
40336
|
+
*/
|
|
40337
|
+
QueryAudienceExportRequest.prototype.name = "";
|
|
40338
|
+
|
|
40339
|
+
/**
|
|
40340
|
+
* QueryAudienceExportRequest offset.
|
|
40341
|
+
* @member {number|Long} offset
|
|
40342
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40343
|
+
* @instance
|
|
40344
|
+
*/
|
|
40345
|
+
QueryAudienceExportRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
40346
|
+
|
|
40347
|
+
/**
|
|
40348
|
+
* QueryAudienceExportRequest limit.
|
|
40349
|
+
* @member {number|Long} limit
|
|
40350
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40351
|
+
* @instance
|
|
40352
|
+
*/
|
|
40353
|
+
QueryAudienceExportRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
40354
|
+
|
|
40355
|
+
/**
|
|
40356
|
+
* Creates a new QueryAudienceExportRequest instance using the specified properties.
|
|
40357
|
+
* @function create
|
|
40358
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40359
|
+
* @static
|
|
40360
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest=} [properties] Properties to set
|
|
40361
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportRequest} QueryAudienceExportRequest instance
|
|
40362
|
+
*/
|
|
40363
|
+
QueryAudienceExportRequest.create = function create(properties) {
|
|
40364
|
+
return new QueryAudienceExportRequest(properties);
|
|
40365
|
+
};
|
|
40366
|
+
|
|
40367
|
+
/**
|
|
40368
|
+
* Encodes the specified QueryAudienceExportRequest message. Does not implicitly {@link google.analytics.data.v1beta.QueryAudienceExportRequest.verify|verify} messages.
|
|
40369
|
+
* @function encode
|
|
40370
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40371
|
+
* @static
|
|
40372
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest} message QueryAudienceExportRequest message or plain object to encode
|
|
40373
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40374
|
+
* @returns {$protobuf.Writer} Writer
|
|
40375
|
+
*/
|
|
40376
|
+
QueryAudienceExportRequest.encode = function encode(message, writer) {
|
|
40377
|
+
if (!writer)
|
|
40378
|
+
writer = $Writer.create();
|
|
40379
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
40380
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
40381
|
+
if (message.offset != null && Object.hasOwnProperty.call(message, "offset"))
|
|
40382
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.offset);
|
|
40383
|
+
if (message.limit != null && Object.hasOwnProperty.call(message, "limit"))
|
|
40384
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.limit);
|
|
40385
|
+
return writer;
|
|
40386
|
+
};
|
|
40387
|
+
|
|
40388
|
+
/**
|
|
40389
|
+
* Encodes the specified QueryAudienceExportRequest message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.QueryAudienceExportRequest.verify|verify} messages.
|
|
40390
|
+
* @function encodeDelimited
|
|
40391
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40392
|
+
* @static
|
|
40393
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportRequest} message QueryAudienceExportRequest message or plain object to encode
|
|
40394
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40395
|
+
* @returns {$protobuf.Writer} Writer
|
|
40396
|
+
*/
|
|
40397
|
+
QueryAudienceExportRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40398
|
+
return this.encode(message, writer).ldelim();
|
|
40399
|
+
};
|
|
40400
|
+
|
|
40401
|
+
/**
|
|
40402
|
+
* Decodes a QueryAudienceExportRequest message from the specified reader or buffer.
|
|
40403
|
+
* @function decode
|
|
40404
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40405
|
+
* @static
|
|
40406
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40407
|
+
* @param {number} [length] Message length if known beforehand
|
|
40408
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportRequest} QueryAudienceExportRequest
|
|
40409
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40410
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40411
|
+
*/
|
|
40412
|
+
QueryAudienceExportRequest.decode = function decode(reader, length) {
|
|
40413
|
+
if (!(reader instanceof $Reader))
|
|
40414
|
+
reader = $Reader.create(reader);
|
|
40415
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.QueryAudienceExportRequest();
|
|
40416
|
+
while (reader.pos < end) {
|
|
40417
|
+
var tag = reader.uint32();
|
|
40418
|
+
switch (tag >>> 3) {
|
|
40419
|
+
case 1: {
|
|
40420
|
+
message.name = reader.string();
|
|
40421
|
+
break;
|
|
40422
|
+
}
|
|
40423
|
+
case 2: {
|
|
40424
|
+
message.offset = reader.int64();
|
|
40425
|
+
break;
|
|
40426
|
+
}
|
|
40427
|
+
case 3: {
|
|
40428
|
+
message.limit = reader.int64();
|
|
40429
|
+
break;
|
|
40430
|
+
}
|
|
40431
|
+
default:
|
|
40432
|
+
reader.skipType(tag & 7);
|
|
40433
|
+
break;
|
|
40434
|
+
}
|
|
40435
|
+
}
|
|
40436
|
+
return message;
|
|
40437
|
+
};
|
|
40438
|
+
|
|
40439
|
+
/**
|
|
40440
|
+
* Decodes a QueryAudienceExportRequest message from the specified reader or buffer, length delimited.
|
|
40441
|
+
* @function decodeDelimited
|
|
40442
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40443
|
+
* @static
|
|
40444
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40445
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportRequest} QueryAudienceExportRequest
|
|
40446
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40447
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40448
|
+
*/
|
|
40449
|
+
QueryAudienceExportRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
40450
|
+
if (!(reader instanceof $Reader))
|
|
40451
|
+
reader = new $Reader(reader);
|
|
40452
|
+
return this.decode(reader, reader.uint32());
|
|
40453
|
+
};
|
|
40454
|
+
|
|
40455
|
+
/**
|
|
40456
|
+
* Verifies a QueryAudienceExportRequest message.
|
|
40457
|
+
* @function verify
|
|
40458
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40459
|
+
* @static
|
|
40460
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40461
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40462
|
+
*/
|
|
40463
|
+
QueryAudienceExportRequest.verify = function verify(message) {
|
|
40464
|
+
if (typeof message !== "object" || message === null)
|
|
40465
|
+
return "object expected";
|
|
40466
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
40467
|
+
if (!$util.isString(message.name))
|
|
40468
|
+
return "name: string expected";
|
|
40469
|
+
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
40470
|
+
if (!$util.isInteger(message.offset) && !(message.offset && $util.isInteger(message.offset.low) && $util.isInteger(message.offset.high)))
|
|
40471
|
+
return "offset: integer|Long expected";
|
|
40472
|
+
if (message.limit != null && message.hasOwnProperty("limit"))
|
|
40473
|
+
if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high)))
|
|
40474
|
+
return "limit: integer|Long expected";
|
|
40475
|
+
return null;
|
|
40476
|
+
};
|
|
40477
|
+
|
|
40478
|
+
/**
|
|
40479
|
+
* Creates a QueryAudienceExportRequest message from a plain object. Also converts values to their respective internal types.
|
|
40480
|
+
* @function fromObject
|
|
40481
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40482
|
+
* @static
|
|
40483
|
+
* @param {Object.<string,*>} object Plain object
|
|
40484
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportRequest} QueryAudienceExportRequest
|
|
40485
|
+
*/
|
|
40486
|
+
QueryAudienceExportRequest.fromObject = function fromObject(object) {
|
|
40487
|
+
if (object instanceof $root.google.analytics.data.v1beta.QueryAudienceExportRequest)
|
|
40488
|
+
return object;
|
|
40489
|
+
var message = new $root.google.analytics.data.v1beta.QueryAudienceExportRequest();
|
|
40490
|
+
if (object.name != null)
|
|
40491
|
+
message.name = String(object.name);
|
|
40492
|
+
if (object.offset != null)
|
|
40493
|
+
if ($util.Long)
|
|
40494
|
+
(message.offset = $util.Long.fromValue(object.offset)).unsigned = false;
|
|
40495
|
+
else if (typeof object.offset === "string")
|
|
40496
|
+
message.offset = parseInt(object.offset, 10);
|
|
40497
|
+
else if (typeof object.offset === "number")
|
|
40498
|
+
message.offset = object.offset;
|
|
40499
|
+
else if (typeof object.offset === "object")
|
|
40500
|
+
message.offset = new $util.LongBits(object.offset.low >>> 0, object.offset.high >>> 0).toNumber();
|
|
40501
|
+
if (object.limit != null)
|
|
40502
|
+
if ($util.Long)
|
|
40503
|
+
(message.limit = $util.Long.fromValue(object.limit)).unsigned = false;
|
|
40504
|
+
else if (typeof object.limit === "string")
|
|
40505
|
+
message.limit = parseInt(object.limit, 10);
|
|
40506
|
+
else if (typeof object.limit === "number")
|
|
40507
|
+
message.limit = object.limit;
|
|
40508
|
+
else if (typeof object.limit === "object")
|
|
40509
|
+
message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber();
|
|
40510
|
+
return message;
|
|
40511
|
+
};
|
|
40512
|
+
|
|
40513
|
+
/**
|
|
40514
|
+
* Creates a plain object from a QueryAudienceExportRequest message. Also converts values to other types if specified.
|
|
40515
|
+
* @function toObject
|
|
40516
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40517
|
+
* @static
|
|
40518
|
+
* @param {google.analytics.data.v1beta.QueryAudienceExportRequest} message QueryAudienceExportRequest
|
|
40519
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40520
|
+
* @returns {Object.<string,*>} Plain object
|
|
40521
|
+
*/
|
|
40522
|
+
QueryAudienceExportRequest.toObject = function toObject(message, options) {
|
|
40523
|
+
if (!options)
|
|
40524
|
+
options = {};
|
|
40525
|
+
var object = {};
|
|
40526
|
+
if (options.defaults) {
|
|
40527
|
+
object.name = "";
|
|
40528
|
+
if ($util.Long) {
|
|
40529
|
+
var long = new $util.Long(0, 0, false);
|
|
40530
|
+
object.offset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40531
|
+
} else
|
|
40532
|
+
object.offset = options.longs === String ? "0" : 0;
|
|
40533
|
+
if ($util.Long) {
|
|
40534
|
+
var long = new $util.Long(0, 0, false);
|
|
40535
|
+
object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40536
|
+
} else
|
|
40537
|
+
object.limit = options.longs === String ? "0" : 0;
|
|
40538
|
+
}
|
|
40539
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
40540
|
+
object.name = message.name;
|
|
40541
|
+
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
40542
|
+
if (typeof message.offset === "number")
|
|
40543
|
+
object.offset = options.longs === String ? String(message.offset) : message.offset;
|
|
40544
|
+
else
|
|
40545
|
+
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;
|
|
40546
|
+
if (message.limit != null && message.hasOwnProperty("limit"))
|
|
40547
|
+
if (typeof message.limit === "number")
|
|
40548
|
+
object.limit = options.longs === String ? String(message.limit) : message.limit;
|
|
40549
|
+
else
|
|
40550
|
+
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;
|
|
40551
|
+
return object;
|
|
40552
|
+
};
|
|
40553
|
+
|
|
40554
|
+
/**
|
|
40555
|
+
* Converts this QueryAudienceExportRequest to JSON.
|
|
40556
|
+
* @function toJSON
|
|
40557
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40558
|
+
* @instance
|
|
40559
|
+
* @returns {Object.<string,*>} JSON object
|
|
40560
|
+
*/
|
|
40561
|
+
QueryAudienceExportRequest.prototype.toJSON = function toJSON() {
|
|
40562
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40563
|
+
};
|
|
40564
|
+
|
|
40565
|
+
/**
|
|
40566
|
+
* Gets the default type url for QueryAudienceExportRequest
|
|
40567
|
+
* @function getTypeUrl
|
|
40568
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportRequest
|
|
40569
|
+
* @static
|
|
40570
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40571
|
+
* @returns {string} The default type url
|
|
40572
|
+
*/
|
|
40573
|
+
QueryAudienceExportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
40574
|
+
if (typeUrlPrefix === undefined) {
|
|
40575
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
40576
|
+
}
|
|
40577
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.QueryAudienceExportRequest";
|
|
40578
|
+
};
|
|
40579
|
+
|
|
40580
|
+
return QueryAudienceExportRequest;
|
|
40581
|
+
})();
|
|
40582
|
+
|
|
40583
|
+
v1beta.QueryAudienceExportResponse = (function() {
|
|
40584
|
+
|
|
40585
|
+
/**
|
|
40586
|
+
* Properties of a QueryAudienceExportResponse.
|
|
40587
|
+
* @memberof google.analytics.data.v1beta
|
|
40588
|
+
* @interface IQueryAudienceExportResponse
|
|
40589
|
+
* @property {google.analytics.data.v1beta.IAudienceExport|null} [audienceExport] QueryAudienceExportResponse audienceExport
|
|
40590
|
+
* @property {Array.<google.analytics.data.v1beta.IAudienceRow>|null} [audienceRows] QueryAudienceExportResponse audienceRows
|
|
40591
|
+
* @property {number|null} [rowCount] QueryAudienceExportResponse rowCount
|
|
40592
|
+
*/
|
|
40593
|
+
|
|
40594
|
+
/**
|
|
40595
|
+
* Constructs a new QueryAudienceExportResponse.
|
|
40596
|
+
* @memberof google.analytics.data.v1beta
|
|
40597
|
+
* @classdesc Represents a QueryAudienceExportResponse.
|
|
40598
|
+
* @implements IQueryAudienceExportResponse
|
|
40599
|
+
* @constructor
|
|
40600
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportResponse=} [properties] Properties to set
|
|
40601
|
+
*/
|
|
40602
|
+
function QueryAudienceExportResponse(properties) {
|
|
40603
|
+
this.audienceRows = [];
|
|
40604
|
+
if (properties)
|
|
40605
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40606
|
+
if (properties[keys[i]] != null)
|
|
40607
|
+
this[keys[i]] = properties[keys[i]];
|
|
40608
|
+
}
|
|
40609
|
+
|
|
40610
|
+
/**
|
|
40611
|
+
* QueryAudienceExportResponse audienceExport.
|
|
40612
|
+
* @member {google.analytics.data.v1beta.IAudienceExport|null|undefined} audienceExport
|
|
40613
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40614
|
+
* @instance
|
|
40615
|
+
*/
|
|
40616
|
+
QueryAudienceExportResponse.prototype.audienceExport = null;
|
|
40617
|
+
|
|
40618
|
+
/**
|
|
40619
|
+
* QueryAudienceExportResponse audienceRows.
|
|
40620
|
+
* @member {Array.<google.analytics.data.v1beta.IAudienceRow>} audienceRows
|
|
40621
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40622
|
+
* @instance
|
|
40623
|
+
*/
|
|
40624
|
+
QueryAudienceExportResponse.prototype.audienceRows = $util.emptyArray;
|
|
40625
|
+
|
|
40626
|
+
/**
|
|
40627
|
+
* QueryAudienceExportResponse rowCount.
|
|
40628
|
+
* @member {number|null|undefined} rowCount
|
|
40629
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40630
|
+
* @instance
|
|
40631
|
+
*/
|
|
40632
|
+
QueryAudienceExportResponse.prototype.rowCount = null;
|
|
40633
|
+
|
|
40634
|
+
// OneOf field names bound to virtual getters and setters
|
|
40635
|
+
var $oneOfFields;
|
|
40636
|
+
|
|
40637
|
+
/**
|
|
40638
|
+
* QueryAudienceExportResponse _audienceExport.
|
|
40639
|
+
* @member {"audienceExport"|undefined} _audienceExport
|
|
40640
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40641
|
+
* @instance
|
|
40642
|
+
*/
|
|
40643
|
+
Object.defineProperty(QueryAudienceExportResponse.prototype, "_audienceExport", {
|
|
40644
|
+
get: $util.oneOfGetter($oneOfFields = ["audienceExport"]),
|
|
40645
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
40646
|
+
});
|
|
40647
|
+
|
|
40648
|
+
/**
|
|
40649
|
+
* QueryAudienceExportResponse _rowCount.
|
|
40650
|
+
* @member {"rowCount"|undefined} _rowCount
|
|
40651
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40652
|
+
* @instance
|
|
40653
|
+
*/
|
|
40654
|
+
Object.defineProperty(QueryAudienceExportResponse.prototype, "_rowCount", {
|
|
40655
|
+
get: $util.oneOfGetter($oneOfFields = ["rowCount"]),
|
|
40656
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
40657
|
+
});
|
|
40658
|
+
|
|
40659
|
+
/**
|
|
40660
|
+
* Creates a new QueryAudienceExportResponse instance using the specified properties.
|
|
40661
|
+
* @function create
|
|
40662
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40663
|
+
* @static
|
|
40664
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportResponse=} [properties] Properties to set
|
|
40665
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportResponse} QueryAudienceExportResponse instance
|
|
40666
|
+
*/
|
|
40667
|
+
QueryAudienceExportResponse.create = function create(properties) {
|
|
40668
|
+
return new QueryAudienceExportResponse(properties);
|
|
40669
|
+
};
|
|
40670
|
+
|
|
40671
|
+
/**
|
|
40672
|
+
* Encodes the specified QueryAudienceExportResponse message. Does not implicitly {@link google.analytics.data.v1beta.QueryAudienceExportResponse.verify|verify} messages.
|
|
40673
|
+
* @function encode
|
|
40674
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40675
|
+
* @static
|
|
40676
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportResponse} message QueryAudienceExportResponse message or plain object to encode
|
|
40677
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40678
|
+
* @returns {$protobuf.Writer} Writer
|
|
40679
|
+
*/
|
|
40680
|
+
QueryAudienceExportResponse.encode = function encode(message, writer) {
|
|
40681
|
+
if (!writer)
|
|
40682
|
+
writer = $Writer.create();
|
|
40683
|
+
if (message.audienceExport != null && Object.hasOwnProperty.call(message, "audienceExport"))
|
|
40684
|
+
$root.google.analytics.data.v1beta.AudienceExport.encode(message.audienceExport, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
40685
|
+
if (message.audienceRows != null && message.audienceRows.length)
|
|
40686
|
+
for (var i = 0; i < message.audienceRows.length; ++i)
|
|
40687
|
+
$root.google.analytics.data.v1beta.AudienceRow.encode(message.audienceRows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
40688
|
+
if (message.rowCount != null && Object.hasOwnProperty.call(message, "rowCount"))
|
|
40689
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.rowCount);
|
|
40690
|
+
return writer;
|
|
40691
|
+
};
|
|
40692
|
+
|
|
40693
|
+
/**
|
|
40694
|
+
* Encodes the specified QueryAudienceExportResponse message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.QueryAudienceExportResponse.verify|verify} messages.
|
|
40695
|
+
* @function encodeDelimited
|
|
40696
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40697
|
+
* @static
|
|
40698
|
+
* @param {google.analytics.data.v1beta.IQueryAudienceExportResponse} message QueryAudienceExportResponse message or plain object to encode
|
|
40699
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40700
|
+
* @returns {$protobuf.Writer} Writer
|
|
40701
|
+
*/
|
|
40702
|
+
QueryAudienceExportResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40703
|
+
return this.encode(message, writer).ldelim();
|
|
40704
|
+
};
|
|
40705
|
+
|
|
40706
|
+
/**
|
|
40707
|
+
* Decodes a QueryAudienceExportResponse message from the specified reader or buffer.
|
|
40708
|
+
* @function decode
|
|
40709
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40710
|
+
* @static
|
|
40711
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40712
|
+
* @param {number} [length] Message length if known beforehand
|
|
40713
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportResponse} QueryAudienceExportResponse
|
|
40714
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40715
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40716
|
+
*/
|
|
40717
|
+
QueryAudienceExportResponse.decode = function decode(reader, length) {
|
|
40718
|
+
if (!(reader instanceof $Reader))
|
|
40719
|
+
reader = $Reader.create(reader);
|
|
40720
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.QueryAudienceExportResponse();
|
|
40721
|
+
while (reader.pos < end) {
|
|
40722
|
+
var tag = reader.uint32();
|
|
40723
|
+
switch (tag >>> 3) {
|
|
40724
|
+
case 1: {
|
|
40725
|
+
message.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.decode(reader, reader.uint32());
|
|
40726
|
+
break;
|
|
40727
|
+
}
|
|
40728
|
+
case 2: {
|
|
40729
|
+
if (!(message.audienceRows && message.audienceRows.length))
|
|
40730
|
+
message.audienceRows = [];
|
|
40731
|
+
message.audienceRows.push($root.google.analytics.data.v1beta.AudienceRow.decode(reader, reader.uint32()));
|
|
40732
|
+
break;
|
|
40733
|
+
}
|
|
40734
|
+
case 3: {
|
|
40735
|
+
message.rowCount = reader.int32();
|
|
40736
|
+
break;
|
|
40737
|
+
}
|
|
40738
|
+
default:
|
|
40739
|
+
reader.skipType(tag & 7);
|
|
40740
|
+
break;
|
|
40741
|
+
}
|
|
40742
|
+
}
|
|
40743
|
+
return message;
|
|
40744
|
+
};
|
|
40745
|
+
|
|
40746
|
+
/**
|
|
40747
|
+
* Decodes a QueryAudienceExportResponse message from the specified reader or buffer, length delimited.
|
|
40748
|
+
* @function decodeDelimited
|
|
40749
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40750
|
+
* @static
|
|
40751
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40752
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportResponse} QueryAudienceExportResponse
|
|
40753
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40754
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40755
|
+
*/
|
|
40756
|
+
QueryAudienceExportResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
40757
|
+
if (!(reader instanceof $Reader))
|
|
40758
|
+
reader = new $Reader(reader);
|
|
40759
|
+
return this.decode(reader, reader.uint32());
|
|
40760
|
+
};
|
|
40761
|
+
|
|
40762
|
+
/**
|
|
40763
|
+
* Verifies a QueryAudienceExportResponse message.
|
|
40764
|
+
* @function verify
|
|
40765
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40766
|
+
* @static
|
|
40767
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40768
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40769
|
+
*/
|
|
40770
|
+
QueryAudienceExportResponse.verify = function verify(message) {
|
|
40771
|
+
if (typeof message !== "object" || message === null)
|
|
40772
|
+
return "object expected";
|
|
40773
|
+
var properties = {};
|
|
40774
|
+
if (message.audienceExport != null && message.hasOwnProperty("audienceExport")) {
|
|
40775
|
+
properties._audienceExport = 1;
|
|
40776
|
+
{
|
|
40777
|
+
var error = $root.google.analytics.data.v1beta.AudienceExport.verify(message.audienceExport);
|
|
40778
|
+
if (error)
|
|
40779
|
+
return "audienceExport." + error;
|
|
40780
|
+
}
|
|
40781
|
+
}
|
|
40782
|
+
if (message.audienceRows != null && message.hasOwnProperty("audienceRows")) {
|
|
40783
|
+
if (!Array.isArray(message.audienceRows))
|
|
40784
|
+
return "audienceRows: array expected";
|
|
40785
|
+
for (var i = 0; i < message.audienceRows.length; ++i) {
|
|
40786
|
+
var error = $root.google.analytics.data.v1beta.AudienceRow.verify(message.audienceRows[i]);
|
|
40787
|
+
if (error)
|
|
40788
|
+
return "audienceRows." + error;
|
|
40789
|
+
}
|
|
40790
|
+
}
|
|
40791
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
40792
|
+
properties._rowCount = 1;
|
|
40793
|
+
if (!$util.isInteger(message.rowCount))
|
|
40794
|
+
return "rowCount: integer expected";
|
|
40795
|
+
}
|
|
40796
|
+
return null;
|
|
40797
|
+
};
|
|
40798
|
+
|
|
40799
|
+
/**
|
|
40800
|
+
* Creates a QueryAudienceExportResponse message from a plain object. Also converts values to their respective internal types.
|
|
40801
|
+
* @function fromObject
|
|
40802
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40803
|
+
* @static
|
|
40804
|
+
* @param {Object.<string,*>} object Plain object
|
|
40805
|
+
* @returns {google.analytics.data.v1beta.QueryAudienceExportResponse} QueryAudienceExportResponse
|
|
40806
|
+
*/
|
|
40807
|
+
QueryAudienceExportResponse.fromObject = function fromObject(object) {
|
|
40808
|
+
if (object instanceof $root.google.analytics.data.v1beta.QueryAudienceExportResponse)
|
|
40809
|
+
return object;
|
|
40810
|
+
var message = new $root.google.analytics.data.v1beta.QueryAudienceExportResponse();
|
|
40811
|
+
if (object.audienceExport != null) {
|
|
40812
|
+
if (typeof object.audienceExport !== "object")
|
|
40813
|
+
throw TypeError(".google.analytics.data.v1beta.QueryAudienceExportResponse.audienceExport: object expected");
|
|
40814
|
+
message.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.fromObject(object.audienceExport);
|
|
40815
|
+
}
|
|
40816
|
+
if (object.audienceRows) {
|
|
40817
|
+
if (!Array.isArray(object.audienceRows))
|
|
40818
|
+
throw TypeError(".google.analytics.data.v1beta.QueryAudienceExportResponse.audienceRows: array expected");
|
|
40819
|
+
message.audienceRows = [];
|
|
40820
|
+
for (var i = 0; i < object.audienceRows.length; ++i) {
|
|
40821
|
+
if (typeof object.audienceRows[i] !== "object")
|
|
40822
|
+
throw TypeError(".google.analytics.data.v1beta.QueryAudienceExportResponse.audienceRows: object expected");
|
|
40823
|
+
message.audienceRows[i] = $root.google.analytics.data.v1beta.AudienceRow.fromObject(object.audienceRows[i]);
|
|
40824
|
+
}
|
|
40825
|
+
}
|
|
40826
|
+
if (object.rowCount != null)
|
|
40827
|
+
message.rowCount = object.rowCount | 0;
|
|
40828
|
+
return message;
|
|
40829
|
+
};
|
|
40830
|
+
|
|
40831
|
+
/**
|
|
40832
|
+
* Creates a plain object from a QueryAudienceExportResponse message. Also converts values to other types if specified.
|
|
40833
|
+
* @function toObject
|
|
40834
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40835
|
+
* @static
|
|
40836
|
+
* @param {google.analytics.data.v1beta.QueryAudienceExportResponse} message QueryAudienceExportResponse
|
|
40837
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40838
|
+
* @returns {Object.<string,*>} Plain object
|
|
40839
|
+
*/
|
|
40840
|
+
QueryAudienceExportResponse.toObject = function toObject(message, options) {
|
|
40841
|
+
if (!options)
|
|
40842
|
+
options = {};
|
|
40843
|
+
var object = {};
|
|
40844
|
+
if (options.arrays || options.defaults)
|
|
40845
|
+
object.audienceRows = [];
|
|
40846
|
+
if (message.audienceExport != null && message.hasOwnProperty("audienceExport")) {
|
|
40847
|
+
object.audienceExport = $root.google.analytics.data.v1beta.AudienceExport.toObject(message.audienceExport, options);
|
|
40848
|
+
if (options.oneofs)
|
|
40849
|
+
object._audienceExport = "audienceExport";
|
|
40850
|
+
}
|
|
40851
|
+
if (message.audienceRows && message.audienceRows.length) {
|
|
40852
|
+
object.audienceRows = [];
|
|
40853
|
+
for (var j = 0; j < message.audienceRows.length; ++j)
|
|
40854
|
+
object.audienceRows[j] = $root.google.analytics.data.v1beta.AudienceRow.toObject(message.audienceRows[j], options);
|
|
40855
|
+
}
|
|
40856
|
+
if (message.rowCount != null && message.hasOwnProperty("rowCount")) {
|
|
40857
|
+
object.rowCount = message.rowCount;
|
|
40858
|
+
if (options.oneofs)
|
|
40859
|
+
object._rowCount = "rowCount";
|
|
40860
|
+
}
|
|
40861
|
+
return object;
|
|
40862
|
+
};
|
|
40863
|
+
|
|
40864
|
+
/**
|
|
40865
|
+
* Converts this QueryAudienceExportResponse to JSON.
|
|
40866
|
+
* @function toJSON
|
|
40867
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40868
|
+
* @instance
|
|
40869
|
+
* @returns {Object.<string,*>} JSON object
|
|
40870
|
+
*/
|
|
40871
|
+
QueryAudienceExportResponse.prototype.toJSON = function toJSON() {
|
|
40872
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40873
|
+
};
|
|
40874
|
+
|
|
40875
|
+
/**
|
|
40876
|
+
* Gets the default type url for QueryAudienceExportResponse
|
|
40877
|
+
* @function getTypeUrl
|
|
40878
|
+
* @memberof google.analytics.data.v1beta.QueryAudienceExportResponse
|
|
40879
|
+
* @static
|
|
40880
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40881
|
+
* @returns {string} The default type url
|
|
40882
|
+
*/
|
|
40883
|
+
QueryAudienceExportResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
40884
|
+
if (typeUrlPrefix === undefined) {
|
|
40885
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
40886
|
+
}
|
|
40887
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.QueryAudienceExportResponse";
|
|
40888
|
+
};
|
|
40889
|
+
|
|
40890
|
+
return QueryAudienceExportResponse;
|
|
40891
|
+
})();
|
|
40892
|
+
|
|
40893
|
+
v1beta.AudienceRow = (function() {
|
|
40894
|
+
|
|
40895
|
+
/**
|
|
40896
|
+
* Properties of an AudienceRow.
|
|
40897
|
+
* @memberof google.analytics.data.v1beta
|
|
40898
|
+
* @interface IAudienceRow
|
|
40899
|
+
* @property {Array.<google.analytics.data.v1beta.IAudienceDimensionValue>|null} [dimensionValues] AudienceRow dimensionValues
|
|
40900
|
+
*/
|
|
40901
|
+
|
|
40902
|
+
/**
|
|
40903
|
+
* Constructs a new AudienceRow.
|
|
40904
|
+
* @memberof google.analytics.data.v1beta
|
|
40905
|
+
* @classdesc Represents an AudienceRow.
|
|
40906
|
+
* @implements IAudienceRow
|
|
40907
|
+
* @constructor
|
|
40908
|
+
* @param {google.analytics.data.v1beta.IAudienceRow=} [properties] Properties to set
|
|
40909
|
+
*/
|
|
40910
|
+
function AudienceRow(properties) {
|
|
40911
|
+
this.dimensionValues = [];
|
|
40912
|
+
if (properties)
|
|
40913
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40914
|
+
if (properties[keys[i]] != null)
|
|
40915
|
+
this[keys[i]] = properties[keys[i]];
|
|
40916
|
+
}
|
|
40917
|
+
|
|
40918
|
+
/**
|
|
40919
|
+
* AudienceRow dimensionValues.
|
|
40920
|
+
* @member {Array.<google.analytics.data.v1beta.IAudienceDimensionValue>} dimensionValues
|
|
40921
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
40922
|
+
* @instance
|
|
40923
|
+
*/
|
|
40924
|
+
AudienceRow.prototype.dimensionValues = $util.emptyArray;
|
|
40925
|
+
|
|
40926
|
+
/**
|
|
40927
|
+
* Creates a new AudienceRow instance using the specified properties.
|
|
40928
|
+
* @function create
|
|
40929
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
40930
|
+
* @static
|
|
40931
|
+
* @param {google.analytics.data.v1beta.IAudienceRow=} [properties] Properties to set
|
|
40932
|
+
* @returns {google.analytics.data.v1beta.AudienceRow} AudienceRow instance
|
|
40933
|
+
*/
|
|
40934
|
+
AudienceRow.create = function create(properties) {
|
|
40935
|
+
return new AudienceRow(properties);
|
|
40936
|
+
};
|
|
40937
|
+
|
|
40938
|
+
/**
|
|
40939
|
+
* Encodes the specified AudienceRow message. Does not implicitly {@link google.analytics.data.v1beta.AudienceRow.verify|verify} messages.
|
|
40940
|
+
* @function encode
|
|
40941
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
40942
|
+
* @static
|
|
40943
|
+
* @param {google.analytics.data.v1beta.IAudienceRow} message AudienceRow message or plain object to encode
|
|
40944
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40945
|
+
* @returns {$protobuf.Writer} Writer
|
|
40946
|
+
*/
|
|
40947
|
+
AudienceRow.encode = function encode(message, writer) {
|
|
40948
|
+
if (!writer)
|
|
40949
|
+
writer = $Writer.create();
|
|
40950
|
+
if (message.dimensionValues != null && message.dimensionValues.length)
|
|
40951
|
+
for (var i = 0; i < message.dimensionValues.length; ++i)
|
|
40952
|
+
$root.google.analytics.data.v1beta.AudienceDimensionValue.encode(message.dimensionValues[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
40953
|
+
return writer;
|
|
40954
|
+
};
|
|
40955
|
+
|
|
40956
|
+
/**
|
|
40957
|
+
* Encodes the specified AudienceRow message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.AudienceRow.verify|verify} messages.
|
|
40958
|
+
* @function encodeDelimited
|
|
40959
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
40960
|
+
* @static
|
|
40961
|
+
* @param {google.analytics.data.v1beta.IAudienceRow} message AudienceRow message or plain object to encode
|
|
40962
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40963
|
+
* @returns {$protobuf.Writer} Writer
|
|
40964
|
+
*/
|
|
40965
|
+
AudienceRow.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40966
|
+
return this.encode(message, writer).ldelim();
|
|
40967
|
+
};
|
|
40968
|
+
|
|
40969
|
+
/**
|
|
40970
|
+
* Decodes an AudienceRow message from the specified reader or buffer.
|
|
40971
|
+
* @function decode
|
|
40972
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
40973
|
+
* @static
|
|
40974
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40975
|
+
* @param {number} [length] Message length if known beforehand
|
|
40976
|
+
* @returns {google.analytics.data.v1beta.AudienceRow} AudienceRow
|
|
40977
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40978
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40979
|
+
*/
|
|
40980
|
+
AudienceRow.decode = function decode(reader, length) {
|
|
40981
|
+
if (!(reader instanceof $Reader))
|
|
40982
|
+
reader = $Reader.create(reader);
|
|
40983
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.AudienceRow();
|
|
40984
|
+
while (reader.pos < end) {
|
|
40985
|
+
var tag = reader.uint32();
|
|
40986
|
+
switch (tag >>> 3) {
|
|
40987
|
+
case 1: {
|
|
40988
|
+
if (!(message.dimensionValues && message.dimensionValues.length))
|
|
40989
|
+
message.dimensionValues = [];
|
|
40990
|
+
message.dimensionValues.push($root.google.analytics.data.v1beta.AudienceDimensionValue.decode(reader, reader.uint32()));
|
|
40991
|
+
break;
|
|
40992
|
+
}
|
|
40993
|
+
default:
|
|
40994
|
+
reader.skipType(tag & 7);
|
|
40995
|
+
break;
|
|
40996
|
+
}
|
|
40997
|
+
}
|
|
40998
|
+
return message;
|
|
40999
|
+
};
|
|
41000
|
+
|
|
41001
|
+
/**
|
|
41002
|
+
* Decodes an AudienceRow message from the specified reader or buffer, length delimited.
|
|
41003
|
+
* @function decodeDelimited
|
|
41004
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41005
|
+
* @static
|
|
41006
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41007
|
+
* @returns {google.analytics.data.v1beta.AudienceRow} AudienceRow
|
|
41008
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41009
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41010
|
+
*/
|
|
41011
|
+
AudienceRow.decodeDelimited = function decodeDelimited(reader) {
|
|
41012
|
+
if (!(reader instanceof $Reader))
|
|
41013
|
+
reader = new $Reader(reader);
|
|
41014
|
+
return this.decode(reader, reader.uint32());
|
|
41015
|
+
};
|
|
41016
|
+
|
|
41017
|
+
/**
|
|
41018
|
+
* Verifies an AudienceRow message.
|
|
41019
|
+
* @function verify
|
|
41020
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41021
|
+
* @static
|
|
41022
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41023
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41024
|
+
*/
|
|
41025
|
+
AudienceRow.verify = function verify(message) {
|
|
41026
|
+
if (typeof message !== "object" || message === null)
|
|
41027
|
+
return "object expected";
|
|
41028
|
+
if (message.dimensionValues != null && message.hasOwnProperty("dimensionValues")) {
|
|
41029
|
+
if (!Array.isArray(message.dimensionValues))
|
|
41030
|
+
return "dimensionValues: array expected";
|
|
41031
|
+
for (var i = 0; i < message.dimensionValues.length; ++i) {
|
|
41032
|
+
var error = $root.google.analytics.data.v1beta.AudienceDimensionValue.verify(message.dimensionValues[i]);
|
|
41033
|
+
if (error)
|
|
41034
|
+
return "dimensionValues." + error;
|
|
41035
|
+
}
|
|
41036
|
+
}
|
|
41037
|
+
return null;
|
|
41038
|
+
};
|
|
41039
|
+
|
|
41040
|
+
/**
|
|
41041
|
+
* Creates an AudienceRow message from a plain object. Also converts values to their respective internal types.
|
|
41042
|
+
* @function fromObject
|
|
41043
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41044
|
+
* @static
|
|
41045
|
+
* @param {Object.<string,*>} object Plain object
|
|
41046
|
+
* @returns {google.analytics.data.v1beta.AudienceRow} AudienceRow
|
|
41047
|
+
*/
|
|
41048
|
+
AudienceRow.fromObject = function fromObject(object) {
|
|
41049
|
+
if (object instanceof $root.google.analytics.data.v1beta.AudienceRow)
|
|
41050
|
+
return object;
|
|
41051
|
+
var message = new $root.google.analytics.data.v1beta.AudienceRow();
|
|
41052
|
+
if (object.dimensionValues) {
|
|
41053
|
+
if (!Array.isArray(object.dimensionValues))
|
|
41054
|
+
throw TypeError(".google.analytics.data.v1beta.AudienceRow.dimensionValues: array expected");
|
|
41055
|
+
message.dimensionValues = [];
|
|
41056
|
+
for (var i = 0; i < object.dimensionValues.length; ++i) {
|
|
41057
|
+
if (typeof object.dimensionValues[i] !== "object")
|
|
41058
|
+
throw TypeError(".google.analytics.data.v1beta.AudienceRow.dimensionValues: object expected");
|
|
41059
|
+
message.dimensionValues[i] = $root.google.analytics.data.v1beta.AudienceDimensionValue.fromObject(object.dimensionValues[i]);
|
|
41060
|
+
}
|
|
41061
|
+
}
|
|
41062
|
+
return message;
|
|
41063
|
+
};
|
|
41064
|
+
|
|
41065
|
+
/**
|
|
41066
|
+
* Creates a plain object from an AudienceRow message. Also converts values to other types if specified.
|
|
41067
|
+
* @function toObject
|
|
41068
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41069
|
+
* @static
|
|
41070
|
+
* @param {google.analytics.data.v1beta.AudienceRow} message AudienceRow
|
|
41071
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41072
|
+
* @returns {Object.<string,*>} Plain object
|
|
41073
|
+
*/
|
|
41074
|
+
AudienceRow.toObject = function toObject(message, options) {
|
|
41075
|
+
if (!options)
|
|
41076
|
+
options = {};
|
|
41077
|
+
var object = {};
|
|
41078
|
+
if (options.arrays || options.defaults)
|
|
41079
|
+
object.dimensionValues = [];
|
|
41080
|
+
if (message.dimensionValues && message.dimensionValues.length) {
|
|
41081
|
+
object.dimensionValues = [];
|
|
41082
|
+
for (var j = 0; j < message.dimensionValues.length; ++j)
|
|
41083
|
+
object.dimensionValues[j] = $root.google.analytics.data.v1beta.AudienceDimensionValue.toObject(message.dimensionValues[j], options);
|
|
41084
|
+
}
|
|
41085
|
+
return object;
|
|
41086
|
+
};
|
|
41087
|
+
|
|
41088
|
+
/**
|
|
41089
|
+
* Converts this AudienceRow to JSON.
|
|
41090
|
+
* @function toJSON
|
|
41091
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41092
|
+
* @instance
|
|
41093
|
+
* @returns {Object.<string,*>} JSON object
|
|
41094
|
+
*/
|
|
41095
|
+
AudienceRow.prototype.toJSON = function toJSON() {
|
|
41096
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41097
|
+
};
|
|
41098
|
+
|
|
41099
|
+
/**
|
|
41100
|
+
* Gets the default type url for AudienceRow
|
|
41101
|
+
* @function getTypeUrl
|
|
41102
|
+
* @memberof google.analytics.data.v1beta.AudienceRow
|
|
41103
|
+
* @static
|
|
41104
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41105
|
+
* @returns {string} The default type url
|
|
41106
|
+
*/
|
|
41107
|
+
AudienceRow.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41108
|
+
if (typeUrlPrefix === undefined) {
|
|
41109
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41110
|
+
}
|
|
41111
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.AudienceRow";
|
|
41112
|
+
};
|
|
41113
|
+
|
|
41114
|
+
return AudienceRow;
|
|
41115
|
+
})();
|
|
41116
|
+
|
|
41117
|
+
v1beta.AudienceDimension = (function() {
|
|
41118
|
+
|
|
41119
|
+
/**
|
|
41120
|
+
* Properties of an AudienceDimension.
|
|
41121
|
+
* @memberof google.analytics.data.v1beta
|
|
41122
|
+
* @interface IAudienceDimension
|
|
41123
|
+
* @property {string|null} [dimensionName] AudienceDimension dimensionName
|
|
41124
|
+
*/
|
|
41125
|
+
|
|
41126
|
+
/**
|
|
41127
|
+
* Constructs a new AudienceDimension.
|
|
41128
|
+
* @memberof google.analytics.data.v1beta
|
|
41129
|
+
* @classdesc Represents an AudienceDimension.
|
|
41130
|
+
* @implements IAudienceDimension
|
|
41131
|
+
* @constructor
|
|
41132
|
+
* @param {google.analytics.data.v1beta.IAudienceDimension=} [properties] Properties to set
|
|
41133
|
+
*/
|
|
41134
|
+
function AudienceDimension(properties) {
|
|
41135
|
+
if (properties)
|
|
41136
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41137
|
+
if (properties[keys[i]] != null)
|
|
41138
|
+
this[keys[i]] = properties[keys[i]];
|
|
41139
|
+
}
|
|
41140
|
+
|
|
41141
|
+
/**
|
|
41142
|
+
* AudienceDimension dimensionName.
|
|
41143
|
+
* @member {string} dimensionName
|
|
41144
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41145
|
+
* @instance
|
|
41146
|
+
*/
|
|
41147
|
+
AudienceDimension.prototype.dimensionName = "";
|
|
41148
|
+
|
|
41149
|
+
/**
|
|
41150
|
+
* Creates a new AudienceDimension instance using the specified properties.
|
|
41151
|
+
* @function create
|
|
41152
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41153
|
+
* @static
|
|
41154
|
+
* @param {google.analytics.data.v1beta.IAudienceDimension=} [properties] Properties to set
|
|
41155
|
+
* @returns {google.analytics.data.v1beta.AudienceDimension} AudienceDimension instance
|
|
41156
|
+
*/
|
|
41157
|
+
AudienceDimension.create = function create(properties) {
|
|
41158
|
+
return new AudienceDimension(properties);
|
|
41159
|
+
};
|
|
41160
|
+
|
|
41161
|
+
/**
|
|
41162
|
+
* Encodes the specified AudienceDimension message. Does not implicitly {@link google.analytics.data.v1beta.AudienceDimension.verify|verify} messages.
|
|
41163
|
+
* @function encode
|
|
41164
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41165
|
+
* @static
|
|
41166
|
+
* @param {google.analytics.data.v1beta.IAudienceDimension} message AudienceDimension message or plain object to encode
|
|
41167
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41168
|
+
* @returns {$protobuf.Writer} Writer
|
|
41169
|
+
*/
|
|
41170
|
+
AudienceDimension.encode = function encode(message, writer) {
|
|
41171
|
+
if (!writer)
|
|
41172
|
+
writer = $Writer.create();
|
|
41173
|
+
if (message.dimensionName != null && Object.hasOwnProperty.call(message, "dimensionName"))
|
|
41174
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimensionName);
|
|
41175
|
+
return writer;
|
|
41176
|
+
};
|
|
41177
|
+
|
|
41178
|
+
/**
|
|
41179
|
+
* Encodes the specified AudienceDimension message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.AudienceDimension.verify|verify} messages.
|
|
41180
|
+
* @function encodeDelimited
|
|
41181
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41182
|
+
* @static
|
|
41183
|
+
* @param {google.analytics.data.v1beta.IAudienceDimension} message AudienceDimension message or plain object to encode
|
|
41184
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41185
|
+
* @returns {$protobuf.Writer} Writer
|
|
41186
|
+
*/
|
|
41187
|
+
AudienceDimension.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41188
|
+
return this.encode(message, writer).ldelim();
|
|
41189
|
+
};
|
|
41190
|
+
|
|
41191
|
+
/**
|
|
41192
|
+
* Decodes an AudienceDimension message from the specified reader or buffer.
|
|
41193
|
+
* @function decode
|
|
41194
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41195
|
+
* @static
|
|
41196
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41197
|
+
* @param {number} [length] Message length if known beforehand
|
|
41198
|
+
* @returns {google.analytics.data.v1beta.AudienceDimension} AudienceDimension
|
|
41199
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41200
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41201
|
+
*/
|
|
41202
|
+
AudienceDimension.decode = function decode(reader, length) {
|
|
41203
|
+
if (!(reader instanceof $Reader))
|
|
41204
|
+
reader = $Reader.create(reader);
|
|
41205
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.AudienceDimension();
|
|
41206
|
+
while (reader.pos < end) {
|
|
41207
|
+
var tag = reader.uint32();
|
|
41208
|
+
switch (tag >>> 3) {
|
|
41209
|
+
case 1: {
|
|
41210
|
+
message.dimensionName = reader.string();
|
|
41211
|
+
break;
|
|
41212
|
+
}
|
|
41213
|
+
default:
|
|
41214
|
+
reader.skipType(tag & 7);
|
|
41215
|
+
break;
|
|
41216
|
+
}
|
|
41217
|
+
}
|
|
41218
|
+
return message;
|
|
41219
|
+
};
|
|
41220
|
+
|
|
41221
|
+
/**
|
|
41222
|
+
* Decodes an AudienceDimension message from the specified reader or buffer, length delimited.
|
|
41223
|
+
* @function decodeDelimited
|
|
41224
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41225
|
+
* @static
|
|
41226
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41227
|
+
* @returns {google.analytics.data.v1beta.AudienceDimension} AudienceDimension
|
|
41228
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41229
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41230
|
+
*/
|
|
41231
|
+
AudienceDimension.decodeDelimited = function decodeDelimited(reader) {
|
|
41232
|
+
if (!(reader instanceof $Reader))
|
|
41233
|
+
reader = new $Reader(reader);
|
|
41234
|
+
return this.decode(reader, reader.uint32());
|
|
41235
|
+
};
|
|
41236
|
+
|
|
41237
|
+
/**
|
|
41238
|
+
* Verifies an AudienceDimension message.
|
|
41239
|
+
* @function verify
|
|
41240
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41241
|
+
* @static
|
|
41242
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41243
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41244
|
+
*/
|
|
41245
|
+
AudienceDimension.verify = function verify(message) {
|
|
41246
|
+
if (typeof message !== "object" || message === null)
|
|
41247
|
+
return "object expected";
|
|
41248
|
+
if (message.dimensionName != null && message.hasOwnProperty("dimensionName"))
|
|
41249
|
+
if (!$util.isString(message.dimensionName))
|
|
41250
|
+
return "dimensionName: string expected";
|
|
41251
|
+
return null;
|
|
41252
|
+
};
|
|
41253
|
+
|
|
41254
|
+
/**
|
|
41255
|
+
* Creates an AudienceDimension message from a plain object. Also converts values to their respective internal types.
|
|
41256
|
+
* @function fromObject
|
|
41257
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41258
|
+
* @static
|
|
41259
|
+
* @param {Object.<string,*>} object Plain object
|
|
41260
|
+
* @returns {google.analytics.data.v1beta.AudienceDimension} AudienceDimension
|
|
41261
|
+
*/
|
|
41262
|
+
AudienceDimension.fromObject = function fromObject(object) {
|
|
41263
|
+
if (object instanceof $root.google.analytics.data.v1beta.AudienceDimension)
|
|
41264
|
+
return object;
|
|
41265
|
+
var message = new $root.google.analytics.data.v1beta.AudienceDimension();
|
|
41266
|
+
if (object.dimensionName != null)
|
|
41267
|
+
message.dimensionName = String(object.dimensionName);
|
|
41268
|
+
return message;
|
|
41269
|
+
};
|
|
41270
|
+
|
|
41271
|
+
/**
|
|
41272
|
+
* Creates a plain object from an AudienceDimension message. Also converts values to other types if specified.
|
|
41273
|
+
* @function toObject
|
|
41274
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41275
|
+
* @static
|
|
41276
|
+
* @param {google.analytics.data.v1beta.AudienceDimension} message AudienceDimension
|
|
41277
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41278
|
+
* @returns {Object.<string,*>} Plain object
|
|
41279
|
+
*/
|
|
41280
|
+
AudienceDimension.toObject = function toObject(message, options) {
|
|
41281
|
+
if (!options)
|
|
41282
|
+
options = {};
|
|
41283
|
+
var object = {};
|
|
41284
|
+
if (options.defaults)
|
|
41285
|
+
object.dimensionName = "";
|
|
41286
|
+
if (message.dimensionName != null && message.hasOwnProperty("dimensionName"))
|
|
41287
|
+
object.dimensionName = message.dimensionName;
|
|
41288
|
+
return object;
|
|
41289
|
+
};
|
|
41290
|
+
|
|
41291
|
+
/**
|
|
41292
|
+
* Converts this AudienceDimension to JSON.
|
|
41293
|
+
* @function toJSON
|
|
41294
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41295
|
+
* @instance
|
|
41296
|
+
* @returns {Object.<string,*>} JSON object
|
|
41297
|
+
*/
|
|
41298
|
+
AudienceDimension.prototype.toJSON = function toJSON() {
|
|
41299
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41300
|
+
};
|
|
41301
|
+
|
|
41302
|
+
/**
|
|
41303
|
+
* Gets the default type url for AudienceDimension
|
|
41304
|
+
* @function getTypeUrl
|
|
41305
|
+
* @memberof google.analytics.data.v1beta.AudienceDimension
|
|
41306
|
+
* @static
|
|
41307
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41308
|
+
* @returns {string} The default type url
|
|
41309
|
+
*/
|
|
41310
|
+
AudienceDimension.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41311
|
+
if (typeUrlPrefix === undefined) {
|
|
41312
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41313
|
+
}
|
|
41314
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.AudienceDimension";
|
|
41315
|
+
};
|
|
41316
|
+
|
|
41317
|
+
return AudienceDimension;
|
|
41318
|
+
})();
|
|
41319
|
+
|
|
41320
|
+
v1beta.AudienceDimensionValue = (function() {
|
|
41321
|
+
|
|
41322
|
+
/**
|
|
41323
|
+
* Properties of an AudienceDimensionValue.
|
|
41324
|
+
* @memberof google.analytics.data.v1beta
|
|
41325
|
+
* @interface IAudienceDimensionValue
|
|
41326
|
+
* @property {string|null} [value] AudienceDimensionValue value
|
|
41327
|
+
*/
|
|
41328
|
+
|
|
41329
|
+
/**
|
|
41330
|
+
* Constructs a new AudienceDimensionValue.
|
|
41331
|
+
* @memberof google.analytics.data.v1beta
|
|
41332
|
+
* @classdesc Represents an AudienceDimensionValue.
|
|
41333
|
+
* @implements IAudienceDimensionValue
|
|
41334
|
+
* @constructor
|
|
41335
|
+
* @param {google.analytics.data.v1beta.IAudienceDimensionValue=} [properties] Properties to set
|
|
41336
|
+
*/
|
|
41337
|
+
function AudienceDimensionValue(properties) {
|
|
41338
|
+
if (properties)
|
|
41339
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41340
|
+
if (properties[keys[i]] != null)
|
|
41341
|
+
this[keys[i]] = properties[keys[i]];
|
|
41342
|
+
}
|
|
41343
|
+
|
|
41344
|
+
/**
|
|
41345
|
+
* AudienceDimensionValue value.
|
|
41346
|
+
* @member {string|null|undefined} value
|
|
41347
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41348
|
+
* @instance
|
|
41349
|
+
*/
|
|
41350
|
+
AudienceDimensionValue.prototype.value = null;
|
|
41351
|
+
|
|
41352
|
+
// OneOf field names bound to virtual getters and setters
|
|
41353
|
+
var $oneOfFields;
|
|
41354
|
+
|
|
41355
|
+
/**
|
|
41356
|
+
* AudienceDimensionValue oneValue.
|
|
41357
|
+
* @member {"value"|undefined} oneValue
|
|
41358
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41359
|
+
* @instance
|
|
41360
|
+
*/
|
|
41361
|
+
Object.defineProperty(AudienceDimensionValue.prototype, "oneValue", {
|
|
41362
|
+
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
|
41363
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
41364
|
+
});
|
|
41365
|
+
|
|
41366
|
+
/**
|
|
41367
|
+
* Creates a new AudienceDimensionValue instance using the specified properties.
|
|
41368
|
+
* @function create
|
|
41369
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41370
|
+
* @static
|
|
41371
|
+
* @param {google.analytics.data.v1beta.IAudienceDimensionValue=} [properties] Properties to set
|
|
41372
|
+
* @returns {google.analytics.data.v1beta.AudienceDimensionValue} AudienceDimensionValue instance
|
|
41373
|
+
*/
|
|
41374
|
+
AudienceDimensionValue.create = function create(properties) {
|
|
41375
|
+
return new AudienceDimensionValue(properties);
|
|
41376
|
+
};
|
|
41377
|
+
|
|
41378
|
+
/**
|
|
41379
|
+
* Encodes the specified AudienceDimensionValue message. Does not implicitly {@link google.analytics.data.v1beta.AudienceDimensionValue.verify|verify} messages.
|
|
41380
|
+
* @function encode
|
|
41381
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41382
|
+
* @static
|
|
41383
|
+
* @param {google.analytics.data.v1beta.IAudienceDimensionValue} message AudienceDimensionValue message or plain object to encode
|
|
41384
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41385
|
+
* @returns {$protobuf.Writer} Writer
|
|
41386
|
+
*/
|
|
41387
|
+
AudienceDimensionValue.encode = function encode(message, writer) {
|
|
41388
|
+
if (!writer)
|
|
41389
|
+
writer = $Writer.create();
|
|
41390
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
41391
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
|
|
41392
|
+
return writer;
|
|
41393
|
+
};
|
|
41394
|
+
|
|
41395
|
+
/**
|
|
41396
|
+
* Encodes the specified AudienceDimensionValue message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.AudienceDimensionValue.verify|verify} messages.
|
|
41397
|
+
* @function encodeDelimited
|
|
41398
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41399
|
+
* @static
|
|
41400
|
+
* @param {google.analytics.data.v1beta.IAudienceDimensionValue} message AudienceDimensionValue message or plain object to encode
|
|
41401
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41402
|
+
* @returns {$protobuf.Writer} Writer
|
|
41403
|
+
*/
|
|
41404
|
+
AudienceDimensionValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41405
|
+
return this.encode(message, writer).ldelim();
|
|
41406
|
+
};
|
|
41407
|
+
|
|
41408
|
+
/**
|
|
41409
|
+
* Decodes an AudienceDimensionValue message from the specified reader or buffer.
|
|
41410
|
+
* @function decode
|
|
41411
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41412
|
+
* @static
|
|
41413
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41414
|
+
* @param {number} [length] Message length if known beforehand
|
|
41415
|
+
* @returns {google.analytics.data.v1beta.AudienceDimensionValue} AudienceDimensionValue
|
|
41416
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41417
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41418
|
+
*/
|
|
41419
|
+
AudienceDimensionValue.decode = function decode(reader, length) {
|
|
41420
|
+
if (!(reader instanceof $Reader))
|
|
41421
|
+
reader = $Reader.create(reader);
|
|
41422
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.AudienceDimensionValue();
|
|
41423
|
+
while (reader.pos < end) {
|
|
41424
|
+
var tag = reader.uint32();
|
|
41425
|
+
switch (tag >>> 3) {
|
|
41426
|
+
case 1: {
|
|
41427
|
+
message.value = reader.string();
|
|
41428
|
+
break;
|
|
41429
|
+
}
|
|
41430
|
+
default:
|
|
41431
|
+
reader.skipType(tag & 7);
|
|
41432
|
+
break;
|
|
41433
|
+
}
|
|
41434
|
+
}
|
|
41435
|
+
return message;
|
|
41436
|
+
};
|
|
41437
|
+
|
|
41438
|
+
/**
|
|
41439
|
+
* Decodes an AudienceDimensionValue message from the specified reader or buffer, length delimited.
|
|
41440
|
+
* @function decodeDelimited
|
|
41441
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41442
|
+
* @static
|
|
41443
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41444
|
+
* @returns {google.analytics.data.v1beta.AudienceDimensionValue} AudienceDimensionValue
|
|
41445
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41446
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41447
|
+
*/
|
|
41448
|
+
AudienceDimensionValue.decodeDelimited = function decodeDelimited(reader) {
|
|
41449
|
+
if (!(reader instanceof $Reader))
|
|
41450
|
+
reader = new $Reader(reader);
|
|
41451
|
+
return this.decode(reader, reader.uint32());
|
|
41452
|
+
};
|
|
41453
|
+
|
|
41454
|
+
/**
|
|
41455
|
+
* Verifies an AudienceDimensionValue message.
|
|
41456
|
+
* @function verify
|
|
41457
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41458
|
+
* @static
|
|
41459
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41460
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41461
|
+
*/
|
|
41462
|
+
AudienceDimensionValue.verify = function verify(message) {
|
|
41463
|
+
if (typeof message !== "object" || message === null)
|
|
41464
|
+
return "object expected";
|
|
41465
|
+
var properties = {};
|
|
41466
|
+
if (message.value != null && message.hasOwnProperty("value")) {
|
|
41467
|
+
properties.oneValue = 1;
|
|
41468
|
+
if (!$util.isString(message.value))
|
|
41469
|
+
return "value: string expected";
|
|
41470
|
+
}
|
|
41471
|
+
return null;
|
|
41472
|
+
};
|
|
41473
|
+
|
|
41474
|
+
/**
|
|
41475
|
+
* Creates an AudienceDimensionValue message from a plain object. Also converts values to their respective internal types.
|
|
41476
|
+
* @function fromObject
|
|
41477
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41478
|
+
* @static
|
|
41479
|
+
* @param {Object.<string,*>} object Plain object
|
|
41480
|
+
* @returns {google.analytics.data.v1beta.AudienceDimensionValue} AudienceDimensionValue
|
|
41481
|
+
*/
|
|
41482
|
+
AudienceDimensionValue.fromObject = function fromObject(object) {
|
|
41483
|
+
if (object instanceof $root.google.analytics.data.v1beta.AudienceDimensionValue)
|
|
41484
|
+
return object;
|
|
41485
|
+
var message = new $root.google.analytics.data.v1beta.AudienceDimensionValue();
|
|
41486
|
+
if (object.value != null)
|
|
41487
|
+
message.value = String(object.value);
|
|
41488
|
+
return message;
|
|
41489
|
+
};
|
|
41490
|
+
|
|
41491
|
+
/**
|
|
41492
|
+
* Creates a plain object from an AudienceDimensionValue message. Also converts values to other types if specified.
|
|
41493
|
+
* @function toObject
|
|
41494
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41495
|
+
* @static
|
|
41496
|
+
* @param {google.analytics.data.v1beta.AudienceDimensionValue} message AudienceDimensionValue
|
|
41497
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41498
|
+
* @returns {Object.<string,*>} Plain object
|
|
41499
|
+
*/
|
|
41500
|
+
AudienceDimensionValue.toObject = function toObject(message, options) {
|
|
41501
|
+
if (!options)
|
|
41502
|
+
options = {};
|
|
41503
|
+
var object = {};
|
|
41504
|
+
if (message.value != null && message.hasOwnProperty("value")) {
|
|
41505
|
+
object.value = message.value;
|
|
41506
|
+
if (options.oneofs)
|
|
41507
|
+
object.oneValue = "value";
|
|
41508
|
+
}
|
|
41509
|
+
return object;
|
|
41510
|
+
};
|
|
41511
|
+
|
|
41512
|
+
/**
|
|
41513
|
+
* Converts this AudienceDimensionValue to JSON.
|
|
41514
|
+
* @function toJSON
|
|
41515
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41516
|
+
* @instance
|
|
41517
|
+
* @returns {Object.<string,*>} JSON object
|
|
41518
|
+
*/
|
|
41519
|
+
AudienceDimensionValue.prototype.toJSON = function toJSON() {
|
|
41520
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41521
|
+
};
|
|
41522
|
+
|
|
41523
|
+
/**
|
|
41524
|
+
* Gets the default type url for AudienceDimensionValue
|
|
41525
|
+
* @function getTypeUrl
|
|
41526
|
+
* @memberof google.analytics.data.v1beta.AudienceDimensionValue
|
|
41527
|
+
* @static
|
|
41528
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41529
|
+
* @returns {string} The default type url
|
|
41530
|
+
*/
|
|
41531
|
+
AudienceDimensionValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41532
|
+
if (typeUrlPrefix === undefined) {
|
|
41533
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41534
|
+
}
|
|
41535
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.AudienceDimensionValue";
|
|
41536
|
+
};
|
|
41537
|
+
|
|
41538
|
+
return AudienceDimensionValue;
|
|
41539
|
+
})();
|
|
41540
|
+
|
|
41541
|
+
v1beta.DateRange = (function() {
|
|
41542
|
+
|
|
41543
|
+
/**
|
|
41544
|
+
* Properties of a DateRange.
|
|
41545
|
+
* @memberof google.analytics.data.v1beta
|
|
41546
|
+
* @interface IDateRange
|
|
41547
|
+
* @property {string|null} [startDate] DateRange startDate
|
|
41548
|
+
* @property {string|null} [endDate] DateRange endDate
|
|
41549
|
+
* @property {string|null} [name] DateRange name
|
|
41550
|
+
*/
|
|
41551
|
+
|
|
41552
|
+
/**
|
|
41553
|
+
* Constructs a new DateRange.
|
|
41554
|
+
* @memberof google.analytics.data.v1beta
|
|
41555
|
+
* @classdesc Represents a DateRange.
|
|
41556
|
+
* @implements IDateRange
|
|
41557
|
+
* @constructor
|
|
41558
|
+
* @param {google.analytics.data.v1beta.IDateRange=} [properties] Properties to set
|
|
41559
|
+
*/
|
|
41560
|
+
function DateRange(properties) {
|
|
41561
|
+
if (properties)
|
|
41562
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41563
|
+
if (properties[keys[i]] != null)
|
|
41564
|
+
this[keys[i]] = properties[keys[i]];
|
|
41565
|
+
}
|
|
41566
|
+
|
|
41567
|
+
/**
|
|
41568
|
+
* DateRange startDate.
|
|
41569
|
+
* @member {string} startDate
|
|
41570
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41571
|
+
* @instance
|
|
41572
|
+
*/
|
|
41573
|
+
DateRange.prototype.startDate = "";
|
|
41574
|
+
|
|
41575
|
+
/**
|
|
41576
|
+
* DateRange endDate.
|
|
41577
|
+
* @member {string} endDate
|
|
41578
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41579
|
+
* @instance
|
|
41580
|
+
*/
|
|
41581
|
+
DateRange.prototype.endDate = "";
|
|
41582
|
+
|
|
41583
|
+
/**
|
|
41584
|
+
* DateRange name.
|
|
41585
|
+
* @member {string} name
|
|
41586
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41587
|
+
* @instance
|
|
41588
|
+
*/
|
|
41589
|
+
DateRange.prototype.name = "";
|
|
41590
|
+
|
|
41591
|
+
/**
|
|
41592
|
+
* Creates a new DateRange instance using the specified properties.
|
|
41593
|
+
* @function create
|
|
41594
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41595
|
+
* @static
|
|
41596
|
+
* @param {google.analytics.data.v1beta.IDateRange=} [properties] Properties to set
|
|
41597
|
+
* @returns {google.analytics.data.v1beta.DateRange} DateRange instance
|
|
41598
|
+
*/
|
|
41599
|
+
DateRange.create = function create(properties) {
|
|
41600
|
+
return new DateRange(properties);
|
|
41601
|
+
};
|
|
41602
|
+
|
|
41603
|
+
/**
|
|
41604
|
+
* Encodes the specified DateRange message. Does not implicitly {@link google.analytics.data.v1beta.DateRange.verify|verify} messages.
|
|
41605
|
+
* @function encode
|
|
41606
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41607
|
+
* @static
|
|
41608
|
+
* @param {google.analytics.data.v1beta.IDateRange} message DateRange message or plain object to encode
|
|
41609
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41610
|
+
* @returns {$protobuf.Writer} Writer
|
|
41611
|
+
*/
|
|
41612
|
+
DateRange.encode = function encode(message, writer) {
|
|
41613
|
+
if (!writer)
|
|
41614
|
+
writer = $Writer.create();
|
|
41615
|
+
if (message.startDate != null && Object.hasOwnProperty.call(message, "startDate"))
|
|
41616
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.startDate);
|
|
41617
|
+
if (message.endDate != null && Object.hasOwnProperty.call(message, "endDate"))
|
|
41618
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.endDate);
|
|
41619
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
41620
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.name);
|
|
41621
|
+
return writer;
|
|
41622
|
+
};
|
|
41623
|
+
|
|
41624
|
+
/**
|
|
41625
|
+
* Encodes the specified DateRange message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.DateRange.verify|verify} messages.
|
|
41626
|
+
* @function encodeDelimited
|
|
41627
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41628
|
+
* @static
|
|
41629
|
+
* @param {google.analytics.data.v1beta.IDateRange} message DateRange message or plain object to encode
|
|
41630
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41631
|
+
* @returns {$protobuf.Writer} Writer
|
|
41632
|
+
*/
|
|
41633
|
+
DateRange.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41634
|
+
return this.encode(message, writer).ldelim();
|
|
41635
|
+
};
|
|
41636
|
+
|
|
41637
|
+
/**
|
|
41638
|
+
* Decodes a DateRange message from the specified reader or buffer.
|
|
41639
|
+
* @function decode
|
|
41640
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41641
|
+
* @static
|
|
41642
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41643
|
+
* @param {number} [length] Message length if known beforehand
|
|
41644
|
+
* @returns {google.analytics.data.v1beta.DateRange} DateRange
|
|
41645
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41646
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41647
|
+
*/
|
|
41648
|
+
DateRange.decode = function decode(reader, length) {
|
|
41649
|
+
if (!(reader instanceof $Reader))
|
|
41650
|
+
reader = $Reader.create(reader);
|
|
41651
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.DateRange();
|
|
41652
|
+
while (reader.pos < end) {
|
|
41653
|
+
var tag = reader.uint32();
|
|
41654
|
+
switch (tag >>> 3) {
|
|
41655
|
+
case 1: {
|
|
41656
|
+
message.startDate = reader.string();
|
|
41657
|
+
break;
|
|
41658
|
+
}
|
|
41659
|
+
case 2: {
|
|
41660
|
+
message.endDate = reader.string();
|
|
41661
|
+
break;
|
|
41662
|
+
}
|
|
41663
|
+
case 3: {
|
|
41664
|
+
message.name = reader.string();
|
|
41665
|
+
break;
|
|
41666
|
+
}
|
|
41667
|
+
default:
|
|
41668
|
+
reader.skipType(tag & 7);
|
|
41669
|
+
break;
|
|
41670
|
+
}
|
|
41671
|
+
}
|
|
41672
|
+
return message;
|
|
41673
|
+
};
|
|
41674
|
+
|
|
41675
|
+
/**
|
|
41676
|
+
* Decodes a DateRange message from the specified reader or buffer, length delimited.
|
|
41677
|
+
* @function decodeDelimited
|
|
41678
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41679
|
+
* @static
|
|
41680
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41681
|
+
* @returns {google.analytics.data.v1beta.DateRange} DateRange
|
|
41682
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41683
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41684
|
+
*/
|
|
41685
|
+
DateRange.decodeDelimited = function decodeDelimited(reader) {
|
|
41686
|
+
if (!(reader instanceof $Reader))
|
|
41687
|
+
reader = new $Reader(reader);
|
|
41688
|
+
return this.decode(reader, reader.uint32());
|
|
41689
|
+
};
|
|
41690
|
+
|
|
41691
|
+
/**
|
|
41692
|
+
* Verifies a DateRange message.
|
|
41693
|
+
* @function verify
|
|
41694
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41695
|
+
* @static
|
|
41696
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41697
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41698
|
+
*/
|
|
41699
|
+
DateRange.verify = function verify(message) {
|
|
41700
|
+
if (typeof message !== "object" || message === null)
|
|
41701
|
+
return "object expected";
|
|
41702
|
+
if (message.startDate != null && message.hasOwnProperty("startDate"))
|
|
41703
|
+
if (!$util.isString(message.startDate))
|
|
41704
|
+
return "startDate: string expected";
|
|
41705
|
+
if (message.endDate != null && message.hasOwnProperty("endDate"))
|
|
41706
|
+
if (!$util.isString(message.endDate))
|
|
41707
|
+
return "endDate: string expected";
|
|
41708
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
41709
|
+
if (!$util.isString(message.name))
|
|
41710
|
+
return "name: string expected";
|
|
41711
|
+
return null;
|
|
41712
|
+
};
|
|
41713
|
+
|
|
41714
|
+
/**
|
|
41715
|
+
* Creates a DateRange message from a plain object. Also converts values to their respective internal types.
|
|
41716
|
+
* @function fromObject
|
|
41717
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41718
|
+
* @static
|
|
41719
|
+
* @param {Object.<string,*>} object Plain object
|
|
41720
|
+
* @returns {google.analytics.data.v1beta.DateRange} DateRange
|
|
41721
|
+
*/
|
|
41722
|
+
DateRange.fromObject = function fromObject(object) {
|
|
41723
|
+
if (object instanceof $root.google.analytics.data.v1beta.DateRange)
|
|
41724
|
+
return object;
|
|
41725
|
+
var message = new $root.google.analytics.data.v1beta.DateRange();
|
|
41726
|
+
if (object.startDate != null)
|
|
41727
|
+
message.startDate = String(object.startDate);
|
|
41728
|
+
if (object.endDate != null)
|
|
41729
|
+
message.endDate = String(object.endDate);
|
|
41730
|
+
if (object.name != null)
|
|
41731
|
+
message.name = String(object.name);
|
|
41732
|
+
return message;
|
|
41733
|
+
};
|
|
41734
|
+
|
|
41735
|
+
/**
|
|
41736
|
+
* Creates a plain object from a DateRange message. Also converts values to other types if specified.
|
|
41737
|
+
* @function toObject
|
|
41738
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41739
|
+
* @static
|
|
41740
|
+
* @param {google.analytics.data.v1beta.DateRange} message DateRange
|
|
41741
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41742
|
+
* @returns {Object.<string,*>} Plain object
|
|
41743
|
+
*/
|
|
41744
|
+
DateRange.toObject = function toObject(message, options) {
|
|
41745
|
+
if (!options)
|
|
41746
|
+
options = {};
|
|
41747
|
+
var object = {};
|
|
41748
|
+
if (options.defaults) {
|
|
41749
|
+
object.startDate = "";
|
|
41750
|
+
object.endDate = "";
|
|
41751
|
+
object.name = "";
|
|
41752
|
+
}
|
|
41753
|
+
if (message.startDate != null && message.hasOwnProperty("startDate"))
|
|
41754
|
+
object.startDate = message.startDate;
|
|
41755
|
+
if (message.endDate != null && message.hasOwnProperty("endDate"))
|
|
41756
|
+
object.endDate = message.endDate;
|
|
41757
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
41758
|
+
object.name = message.name;
|
|
41759
|
+
return object;
|
|
41760
|
+
};
|
|
41761
|
+
|
|
41762
|
+
/**
|
|
41763
|
+
* Converts this DateRange to JSON.
|
|
41764
|
+
* @function toJSON
|
|
41765
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41766
|
+
* @instance
|
|
41767
|
+
* @returns {Object.<string,*>} JSON object
|
|
41768
|
+
*/
|
|
41769
|
+
DateRange.prototype.toJSON = function toJSON() {
|
|
41770
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41771
|
+
};
|
|
41772
|
+
|
|
41773
|
+
/**
|
|
41774
|
+
* Gets the default type url for DateRange
|
|
41775
|
+
* @function getTypeUrl
|
|
41776
|
+
* @memberof google.analytics.data.v1beta.DateRange
|
|
41777
|
+
* @static
|
|
41778
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41779
|
+
* @returns {string} The default type url
|
|
41780
|
+
*/
|
|
41781
|
+
DateRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41782
|
+
if (typeUrlPrefix === undefined) {
|
|
41783
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41784
|
+
}
|
|
41785
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.DateRange";
|
|
41786
|
+
};
|
|
41787
|
+
|
|
41788
|
+
return DateRange;
|
|
41789
|
+
})();
|
|
41790
|
+
|
|
41791
|
+
v1beta.MinuteRange = (function() {
|
|
41792
|
+
|
|
41793
|
+
/**
|
|
41794
|
+
* Properties of a MinuteRange.
|
|
41795
|
+
* @memberof google.analytics.data.v1beta
|
|
41796
|
+
* @interface IMinuteRange
|
|
41797
|
+
* @property {number|null} [startMinutesAgo] MinuteRange startMinutesAgo
|
|
41798
|
+
* @property {number|null} [endMinutesAgo] MinuteRange endMinutesAgo
|
|
41799
|
+
* @property {string|null} [name] MinuteRange name
|
|
41800
|
+
*/
|
|
41801
|
+
|
|
41802
|
+
/**
|
|
41803
|
+
* Constructs a new MinuteRange.
|
|
41804
|
+
* @memberof google.analytics.data.v1beta
|
|
41805
|
+
* @classdesc Represents a MinuteRange.
|
|
41806
|
+
* @implements IMinuteRange
|
|
41807
|
+
* @constructor
|
|
41808
|
+
* @param {google.analytics.data.v1beta.IMinuteRange=} [properties] Properties to set
|
|
41809
|
+
*/
|
|
41810
|
+
function MinuteRange(properties) {
|
|
41811
|
+
if (properties)
|
|
41812
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41813
|
+
if (properties[keys[i]] != null)
|
|
41814
|
+
this[keys[i]] = properties[keys[i]];
|
|
41815
|
+
}
|
|
41816
|
+
|
|
41817
|
+
/**
|
|
41818
|
+
* MinuteRange startMinutesAgo.
|
|
41819
|
+
* @member {number|null|undefined} startMinutesAgo
|
|
41820
|
+
* @memberof google.analytics.data.v1beta.MinuteRange
|
|
41821
|
+
* @instance
|
|
41822
|
+
*/
|
|
41823
|
+
MinuteRange.prototype.startMinutesAgo = null;
|
|
41824
|
+
|
|
41825
|
+
/**
|
|
41826
|
+
* MinuteRange endMinutesAgo.
|
|
41827
|
+
* @member {number|null|undefined} endMinutesAgo
|
|
41828
|
+
* @memberof google.analytics.data.v1beta.MinuteRange
|
|
41829
|
+
* @instance
|
|
41830
|
+
*/
|
|
41831
|
+
MinuteRange.prototype.endMinutesAgo = null;
|
|
41832
|
+
|
|
41833
|
+
/**
|
|
41834
|
+
* MinuteRange name.
|
|
41835
|
+
* @member {string} name
|
|
41836
|
+
* @memberof google.analytics.data.v1beta.MinuteRange
|
|
41837
|
+
* @instance
|
|
41838
|
+
*/
|
|
41839
|
+
MinuteRange.prototype.name = "";
|
|
41840
|
+
|
|
41841
|
+
// OneOf field names bound to virtual getters and setters
|
|
41842
|
+
var $oneOfFields;
|
|
41843
|
+
|
|
41844
|
+
/**
|
|
41845
|
+
* MinuteRange _startMinutesAgo.
|
|
41846
|
+
* @member {"startMinutesAgo"|undefined} _startMinutesAgo
|
|
41847
|
+
* @memberof google.analytics.data.v1beta.MinuteRange
|
|
41848
|
+
* @instance
|
|
41849
|
+
*/
|
|
41850
|
+
Object.defineProperty(MinuteRange.prototype, "_startMinutesAgo", {
|
|
41851
|
+
get: $util.oneOfGetter($oneOfFields = ["startMinutesAgo"]),
|
|
41852
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
41853
|
+
});
|
|
41854
|
+
|
|
41855
|
+
/**
|
|
41856
|
+
* MinuteRange _endMinutesAgo.
|
|
41857
|
+
* @member {"endMinutesAgo"|undefined} _endMinutesAgo
|
|
41858
|
+
* @memberof google.analytics.data.v1beta.MinuteRange
|
|
41859
|
+
* @instance
|
|
41860
|
+
*/
|
|
41861
|
+
Object.defineProperty(MinuteRange.prototype, "_endMinutesAgo", {
|
|
41862
|
+
get: $util.oneOfGetter($oneOfFields = ["endMinutesAgo"]),
|
|
41863
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
41864
|
+
});
|
|
41865
|
+
|
|
41866
|
+
/**
|
|
41867
|
+
* Creates a new MinuteRange instance using the specified properties.
|
|
41868
|
+
* @function create
|
|
41869
|
+
* @memberof google.analytics.data.v1beta.MinuteRange
|
|
41870
|
+
* @static
|
|
41871
|
+
* @param {google.analytics.data.v1beta.IMinuteRange=} [properties] Properties to set
|
|
41872
|
+
* @returns {google.analytics.data.v1beta.MinuteRange} MinuteRange instance
|
|
41873
|
+
*/
|
|
41874
|
+
MinuteRange.create = function create(properties) {
|
|
41875
|
+
return new MinuteRange(properties);
|
|
41876
|
+
};
|
|
41877
|
+
|
|
41878
|
+
/**
|
|
41879
|
+
* Encodes the specified MinuteRange message. Does not implicitly {@link google.analytics.data.v1beta.MinuteRange.verify|verify} messages.
|
|
41880
|
+
* @function encode
|
|
41881
|
+
* @memberof google.analytics.data.v1beta.MinuteRange
|
|
41882
|
+
* @static
|
|
41883
|
+
* @param {google.analytics.data.v1beta.IMinuteRange} message MinuteRange message or plain object to encode
|
|
41884
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41885
|
+
* @returns {$protobuf.Writer} Writer
|
|
41886
|
+
*/
|
|
41887
|
+
MinuteRange.encode = function encode(message, writer) {
|
|
41888
|
+
if (!writer)
|
|
41889
|
+
writer = $Writer.create();
|
|
41890
|
+
if (message.startMinutesAgo != null && Object.hasOwnProperty.call(message, "startMinutesAgo"))
|
|
41891
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.startMinutesAgo);
|
|
41892
|
+
if (message.endMinutesAgo != null && Object.hasOwnProperty.call(message, "endMinutesAgo"))
|
|
41893
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.endMinutesAgo);
|
|
41894
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
41895
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.name);
|
|
41896
|
+
return writer;
|
|
41897
|
+
};
|
|
41898
|
+
|
|
41899
|
+
/**
|
|
38841
41900
|
* Encodes the specified MinuteRange message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.MinuteRange.verify|verify} messages.
|
|
38842
41901
|
* @function encodeDelimited
|
|
38843
41902
|
* @memberof google.analytics.data.v1beta.MinuteRange
|
|
@@ -44983,6 +48042,7 @@
|
|
|
44983
48042
|
* @property {string|null} [timeZone] ResponseMetaData timeZone
|
|
44984
48043
|
* @property {string|null} [emptyReason] ResponseMetaData emptyReason
|
|
44985
48044
|
* @property {boolean|null} [subjectToThresholding] ResponseMetaData subjectToThresholding
|
|
48045
|
+
* @property {Array.<google.analytics.data.v1beta.ISamplingMetadata>|null} [samplingMetadatas] ResponseMetaData samplingMetadatas
|
|
44986
48046
|
*/
|
|
44987
48047
|
|
|
44988
48048
|
/**
|
|
@@ -44994,6 +48054,7 @@
|
|
|
44994
48054
|
* @param {google.analytics.data.v1beta.IResponseMetaData=} [properties] Properties to set
|
|
44995
48055
|
*/
|
|
44996
48056
|
function ResponseMetaData(properties) {
|
|
48057
|
+
this.samplingMetadatas = [];
|
|
44997
48058
|
if (properties)
|
|
44998
48059
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44999
48060
|
if (properties[keys[i]] != null)
|
|
@@ -45048,6 +48109,14 @@
|
|
|
45048
48109
|
*/
|
|
45049
48110
|
ResponseMetaData.prototype.subjectToThresholding = null;
|
|
45050
48111
|
|
|
48112
|
+
/**
|
|
48113
|
+
* ResponseMetaData samplingMetadatas.
|
|
48114
|
+
* @member {Array.<google.analytics.data.v1beta.ISamplingMetadata>} samplingMetadatas
|
|
48115
|
+
* @memberof google.analytics.data.v1beta.ResponseMetaData
|
|
48116
|
+
* @instance
|
|
48117
|
+
*/
|
|
48118
|
+
ResponseMetaData.prototype.samplingMetadatas = $util.emptyArray;
|
|
48119
|
+
|
|
45051
48120
|
// OneOf field names bound to virtual getters and setters
|
|
45052
48121
|
var $oneOfFields;
|
|
45053
48122
|
|
|
@@ -45142,6 +48211,9 @@
|
|
|
45142
48211
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.emptyReason);
|
|
45143
48212
|
if (message.subjectToThresholding != null && Object.hasOwnProperty.call(message, "subjectToThresholding"))
|
|
45144
48213
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.subjectToThresholding);
|
|
48214
|
+
if (message.samplingMetadatas != null && message.samplingMetadatas.length)
|
|
48215
|
+
for (var i = 0; i < message.samplingMetadatas.length; ++i)
|
|
48216
|
+
$root.google.analytics.data.v1beta.SamplingMetadata.encode(message.samplingMetadatas[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
45145
48217
|
return writer;
|
|
45146
48218
|
};
|
|
45147
48219
|
|
|
@@ -45200,6 +48272,12 @@
|
|
|
45200
48272
|
message.subjectToThresholding = reader.bool();
|
|
45201
48273
|
break;
|
|
45202
48274
|
}
|
|
48275
|
+
case 9: {
|
|
48276
|
+
if (!(message.samplingMetadatas && message.samplingMetadatas.length))
|
|
48277
|
+
message.samplingMetadatas = [];
|
|
48278
|
+
message.samplingMetadatas.push($root.google.analytics.data.v1beta.SamplingMetadata.decode(reader, reader.uint32()));
|
|
48279
|
+
break;
|
|
48280
|
+
}
|
|
45203
48281
|
default:
|
|
45204
48282
|
reader.skipType(tag & 7);
|
|
45205
48283
|
break;
|
|
@@ -45267,6 +48345,15 @@
|
|
|
45267
48345
|
if (typeof message.subjectToThresholding !== "boolean")
|
|
45268
48346
|
return "subjectToThresholding: boolean expected";
|
|
45269
48347
|
}
|
|
48348
|
+
if (message.samplingMetadatas != null && message.hasOwnProperty("samplingMetadatas")) {
|
|
48349
|
+
if (!Array.isArray(message.samplingMetadatas))
|
|
48350
|
+
return "samplingMetadatas: array expected";
|
|
48351
|
+
for (var i = 0; i < message.samplingMetadatas.length; ++i) {
|
|
48352
|
+
var error = $root.google.analytics.data.v1beta.SamplingMetadata.verify(message.samplingMetadatas[i]);
|
|
48353
|
+
if (error)
|
|
48354
|
+
return "samplingMetadatas." + error;
|
|
48355
|
+
}
|
|
48356
|
+
}
|
|
45270
48357
|
return null;
|
|
45271
48358
|
};
|
|
45272
48359
|
|
|
@@ -45297,6 +48384,16 @@
|
|
|
45297
48384
|
message.emptyReason = String(object.emptyReason);
|
|
45298
48385
|
if (object.subjectToThresholding != null)
|
|
45299
48386
|
message.subjectToThresholding = Boolean(object.subjectToThresholding);
|
|
48387
|
+
if (object.samplingMetadatas) {
|
|
48388
|
+
if (!Array.isArray(object.samplingMetadatas))
|
|
48389
|
+
throw TypeError(".google.analytics.data.v1beta.ResponseMetaData.samplingMetadatas: array expected");
|
|
48390
|
+
message.samplingMetadatas = [];
|
|
48391
|
+
for (var i = 0; i < object.samplingMetadatas.length; ++i) {
|
|
48392
|
+
if (typeof object.samplingMetadatas[i] !== "object")
|
|
48393
|
+
throw TypeError(".google.analytics.data.v1beta.ResponseMetaData.samplingMetadatas: object expected");
|
|
48394
|
+
message.samplingMetadatas[i] = $root.google.analytics.data.v1beta.SamplingMetadata.fromObject(object.samplingMetadatas[i]);
|
|
48395
|
+
}
|
|
48396
|
+
}
|
|
45300
48397
|
return message;
|
|
45301
48398
|
};
|
|
45302
48399
|
|
|
@@ -45313,6 +48410,8 @@
|
|
|
45313
48410
|
if (!options)
|
|
45314
48411
|
options = {};
|
|
45315
48412
|
var object = {};
|
|
48413
|
+
if (options.arrays || options.defaults)
|
|
48414
|
+
object.samplingMetadatas = [];
|
|
45316
48415
|
if (options.defaults)
|
|
45317
48416
|
object.dataLossFromOtherRow = false;
|
|
45318
48417
|
if (message.dataLossFromOtherRow != null && message.hasOwnProperty("dataLossFromOtherRow"))
|
|
@@ -45342,6 +48441,11 @@
|
|
|
45342
48441
|
if (options.oneofs)
|
|
45343
48442
|
object._subjectToThresholding = "subjectToThresholding";
|
|
45344
48443
|
}
|
|
48444
|
+
if (message.samplingMetadatas && message.samplingMetadatas.length) {
|
|
48445
|
+
object.samplingMetadatas = [];
|
|
48446
|
+
for (var j = 0; j < message.samplingMetadatas.length; ++j)
|
|
48447
|
+
object.samplingMetadatas[j] = $root.google.analytics.data.v1beta.SamplingMetadata.toObject(message.samplingMetadatas[j], options);
|
|
48448
|
+
}
|
|
45345
48449
|
return object;
|
|
45346
48450
|
};
|
|
45347
48451
|
|
|
@@ -45828,67 +48932,322 @@
|
|
|
45828
48932
|
return message;
|
|
45829
48933
|
};
|
|
45830
48934
|
|
|
45831
|
-
/**
|
|
45832
|
-
* Creates a plain object from an ActiveMetricRestriction message. Also converts values to other types if specified.
|
|
45833
|
-
* @function toObject
|
|
45834
|
-
* @memberof google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
|
|
45835
|
-
* @static
|
|
45836
|
-
* @param {google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction} message ActiveMetricRestriction
|
|
45837
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
45838
|
-
* @returns {Object.<string,*>} Plain object
|
|
45839
|
-
*/
|
|
45840
|
-
ActiveMetricRestriction.toObject = function toObject(message, options) {
|
|
45841
|
-
if (!options)
|
|
45842
|
-
options = {};
|
|
45843
|
-
var object = {};
|
|
45844
|
-
if (options.arrays || options.defaults)
|
|
45845
|
-
object.restrictedMetricTypes = [];
|
|
45846
|
-
if (message.metricName != null && message.hasOwnProperty("metricName")) {
|
|
45847
|
-
object.metricName = message.metricName;
|
|
45848
|
-
if (options.oneofs)
|
|
45849
|
-
object._metricName = "metricName";
|
|
48935
|
+
/**
|
|
48936
|
+
* Creates a plain object from an ActiveMetricRestriction message. Also converts values to other types if specified.
|
|
48937
|
+
* @function toObject
|
|
48938
|
+
* @memberof google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
|
|
48939
|
+
* @static
|
|
48940
|
+
* @param {google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction} message ActiveMetricRestriction
|
|
48941
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
48942
|
+
* @returns {Object.<string,*>} Plain object
|
|
48943
|
+
*/
|
|
48944
|
+
ActiveMetricRestriction.toObject = function toObject(message, options) {
|
|
48945
|
+
if (!options)
|
|
48946
|
+
options = {};
|
|
48947
|
+
var object = {};
|
|
48948
|
+
if (options.arrays || options.defaults)
|
|
48949
|
+
object.restrictedMetricTypes = [];
|
|
48950
|
+
if (message.metricName != null && message.hasOwnProperty("metricName")) {
|
|
48951
|
+
object.metricName = message.metricName;
|
|
48952
|
+
if (options.oneofs)
|
|
48953
|
+
object._metricName = "metricName";
|
|
48954
|
+
}
|
|
48955
|
+
if (message.restrictedMetricTypes && message.restrictedMetricTypes.length) {
|
|
48956
|
+
object.restrictedMetricTypes = [];
|
|
48957
|
+
for (var j = 0; j < message.restrictedMetricTypes.length; ++j)
|
|
48958
|
+
object.restrictedMetricTypes[j] = options.enums === String ? $root.google.analytics.data.v1beta.RestrictedMetricType[message.restrictedMetricTypes[j]] === undefined ? message.restrictedMetricTypes[j] : $root.google.analytics.data.v1beta.RestrictedMetricType[message.restrictedMetricTypes[j]] : message.restrictedMetricTypes[j];
|
|
48959
|
+
}
|
|
48960
|
+
return object;
|
|
48961
|
+
};
|
|
48962
|
+
|
|
48963
|
+
/**
|
|
48964
|
+
* Converts this ActiveMetricRestriction to JSON.
|
|
48965
|
+
* @function toJSON
|
|
48966
|
+
* @memberof google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
|
|
48967
|
+
* @instance
|
|
48968
|
+
* @returns {Object.<string,*>} JSON object
|
|
48969
|
+
*/
|
|
48970
|
+
ActiveMetricRestriction.prototype.toJSON = function toJSON() {
|
|
48971
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
48972
|
+
};
|
|
48973
|
+
|
|
48974
|
+
/**
|
|
48975
|
+
* Gets the default type url for ActiveMetricRestriction
|
|
48976
|
+
* @function getTypeUrl
|
|
48977
|
+
* @memberof google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
|
|
48978
|
+
* @static
|
|
48979
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
48980
|
+
* @returns {string} The default type url
|
|
48981
|
+
*/
|
|
48982
|
+
ActiveMetricRestriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
48983
|
+
if (typeUrlPrefix === undefined) {
|
|
48984
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
48985
|
+
}
|
|
48986
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction";
|
|
48987
|
+
};
|
|
48988
|
+
|
|
48989
|
+
return ActiveMetricRestriction;
|
|
48990
|
+
})();
|
|
48991
|
+
|
|
48992
|
+
return SchemaRestrictionResponse;
|
|
48993
|
+
})();
|
|
48994
|
+
|
|
48995
|
+
return ResponseMetaData;
|
|
48996
|
+
})();
|
|
48997
|
+
|
|
48998
|
+
v1beta.SamplingMetadata = (function() {
|
|
48999
|
+
|
|
49000
|
+
/**
|
|
49001
|
+
* Properties of a SamplingMetadata.
|
|
49002
|
+
* @memberof google.analytics.data.v1beta
|
|
49003
|
+
* @interface ISamplingMetadata
|
|
49004
|
+
* @property {number|Long|null} [samplesReadCount] SamplingMetadata samplesReadCount
|
|
49005
|
+
* @property {number|Long|null} [samplingSpaceSize] SamplingMetadata samplingSpaceSize
|
|
49006
|
+
*/
|
|
49007
|
+
|
|
49008
|
+
/**
|
|
49009
|
+
* Constructs a new SamplingMetadata.
|
|
49010
|
+
* @memberof google.analytics.data.v1beta
|
|
49011
|
+
* @classdesc Represents a SamplingMetadata.
|
|
49012
|
+
* @implements ISamplingMetadata
|
|
49013
|
+
* @constructor
|
|
49014
|
+
* @param {google.analytics.data.v1beta.ISamplingMetadata=} [properties] Properties to set
|
|
49015
|
+
*/
|
|
49016
|
+
function SamplingMetadata(properties) {
|
|
49017
|
+
if (properties)
|
|
49018
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49019
|
+
if (properties[keys[i]] != null)
|
|
49020
|
+
this[keys[i]] = properties[keys[i]];
|
|
49021
|
+
}
|
|
49022
|
+
|
|
49023
|
+
/**
|
|
49024
|
+
* SamplingMetadata samplesReadCount.
|
|
49025
|
+
* @member {number|Long} samplesReadCount
|
|
49026
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49027
|
+
* @instance
|
|
49028
|
+
*/
|
|
49029
|
+
SamplingMetadata.prototype.samplesReadCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
49030
|
+
|
|
49031
|
+
/**
|
|
49032
|
+
* SamplingMetadata samplingSpaceSize.
|
|
49033
|
+
* @member {number|Long} samplingSpaceSize
|
|
49034
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49035
|
+
* @instance
|
|
49036
|
+
*/
|
|
49037
|
+
SamplingMetadata.prototype.samplingSpaceSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
49038
|
+
|
|
49039
|
+
/**
|
|
49040
|
+
* Creates a new SamplingMetadata instance using the specified properties.
|
|
49041
|
+
* @function create
|
|
49042
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49043
|
+
* @static
|
|
49044
|
+
* @param {google.analytics.data.v1beta.ISamplingMetadata=} [properties] Properties to set
|
|
49045
|
+
* @returns {google.analytics.data.v1beta.SamplingMetadata} SamplingMetadata instance
|
|
49046
|
+
*/
|
|
49047
|
+
SamplingMetadata.create = function create(properties) {
|
|
49048
|
+
return new SamplingMetadata(properties);
|
|
49049
|
+
};
|
|
49050
|
+
|
|
49051
|
+
/**
|
|
49052
|
+
* Encodes the specified SamplingMetadata message. Does not implicitly {@link google.analytics.data.v1beta.SamplingMetadata.verify|verify} messages.
|
|
49053
|
+
* @function encode
|
|
49054
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49055
|
+
* @static
|
|
49056
|
+
* @param {google.analytics.data.v1beta.ISamplingMetadata} message SamplingMetadata message or plain object to encode
|
|
49057
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49058
|
+
* @returns {$protobuf.Writer} Writer
|
|
49059
|
+
*/
|
|
49060
|
+
SamplingMetadata.encode = function encode(message, writer) {
|
|
49061
|
+
if (!writer)
|
|
49062
|
+
writer = $Writer.create();
|
|
49063
|
+
if (message.samplesReadCount != null && Object.hasOwnProperty.call(message, "samplesReadCount"))
|
|
49064
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.samplesReadCount);
|
|
49065
|
+
if (message.samplingSpaceSize != null && Object.hasOwnProperty.call(message, "samplingSpaceSize"))
|
|
49066
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.samplingSpaceSize);
|
|
49067
|
+
return writer;
|
|
49068
|
+
};
|
|
49069
|
+
|
|
49070
|
+
/**
|
|
49071
|
+
* Encodes the specified SamplingMetadata message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.SamplingMetadata.verify|verify} messages.
|
|
49072
|
+
* @function encodeDelimited
|
|
49073
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49074
|
+
* @static
|
|
49075
|
+
* @param {google.analytics.data.v1beta.ISamplingMetadata} message SamplingMetadata message or plain object to encode
|
|
49076
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49077
|
+
* @returns {$protobuf.Writer} Writer
|
|
49078
|
+
*/
|
|
49079
|
+
SamplingMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49080
|
+
return this.encode(message, writer).ldelim();
|
|
49081
|
+
};
|
|
49082
|
+
|
|
49083
|
+
/**
|
|
49084
|
+
* Decodes a SamplingMetadata message from the specified reader or buffer.
|
|
49085
|
+
* @function decode
|
|
49086
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49087
|
+
* @static
|
|
49088
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49089
|
+
* @param {number} [length] Message length if known beforehand
|
|
49090
|
+
* @returns {google.analytics.data.v1beta.SamplingMetadata} SamplingMetadata
|
|
49091
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49092
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49093
|
+
*/
|
|
49094
|
+
SamplingMetadata.decode = function decode(reader, length) {
|
|
49095
|
+
if (!(reader instanceof $Reader))
|
|
49096
|
+
reader = $Reader.create(reader);
|
|
49097
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.SamplingMetadata();
|
|
49098
|
+
while (reader.pos < end) {
|
|
49099
|
+
var tag = reader.uint32();
|
|
49100
|
+
switch (tag >>> 3) {
|
|
49101
|
+
case 1: {
|
|
49102
|
+
message.samplesReadCount = reader.int64();
|
|
49103
|
+
break;
|
|
45850
49104
|
}
|
|
45851
|
-
|
|
45852
|
-
|
|
45853
|
-
|
|
45854
|
-
object.restrictedMetricTypes[j] = options.enums === String ? $root.google.analytics.data.v1beta.RestrictedMetricType[message.restrictedMetricTypes[j]] === undefined ? message.restrictedMetricTypes[j] : $root.google.analytics.data.v1beta.RestrictedMetricType[message.restrictedMetricTypes[j]] : message.restrictedMetricTypes[j];
|
|
49105
|
+
case 2: {
|
|
49106
|
+
message.samplingSpaceSize = reader.int64();
|
|
49107
|
+
break;
|
|
45855
49108
|
}
|
|
45856
|
-
|
|
45857
|
-
|
|
49109
|
+
default:
|
|
49110
|
+
reader.skipType(tag & 7);
|
|
49111
|
+
break;
|
|
49112
|
+
}
|
|
49113
|
+
}
|
|
49114
|
+
return message;
|
|
49115
|
+
};
|
|
45858
49116
|
|
|
45859
|
-
|
|
45860
|
-
|
|
45861
|
-
|
|
45862
|
-
|
|
45863
|
-
|
|
45864
|
-
|
|
45865
|
-
|
|
45866
|
-
|
|
45867
|
-
|
|
45868
|
-
|
|
49117
|
+
/**
|
|
49118
|
+
* Decodes a SamplingMetadata message from the specified reader or buffer, length delimited.
|
|
49119
|
+
* @function decodeDelimited
|
|
49120
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49121
|
+
* @static
|
|
49122
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49123
|
+
* @returns {google.analytics.data.v1beta.SamplingMetadata} SamplingMetadata
|
|
49124
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49125
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49126
|
+
*/
|
|
49127
|
+
SamplingMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
49128
|
+
if (!(reader instanceof $Reader))
|
|
49129
|
+
reader = new $Reader(reader);
|
|
49130
|
+
return this.decode(reader, reader.uint32());
|
|
49131
|
+
};
|
|
45869
49132
|
|
|
45870
|
-
|
|
45871
|
-
|
|
45872
|
-
|
|
45873
|
-
|
|
45874
|
-
|
|
45875
|
-
|
|
45876
|
-
|
|
45877
|
-
|
|
45878
|
-
|
|
45879
|
-
|
|
45880
|
-
|
|
45881
|
-
|
|
45882
|
-
|
|
45883
|
-
|
|
49133
|
+
/**
|
|
49134
|
+
* Verifies a SamplingMetadata message.
|
|
49135
|
+
* @function verify
|
|
49136
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49137
|
+
* @static
|
|
49138
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
49139
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
49140
|
+
*/
|
|
49141
|
+
SamplingMetadata.verify = function verify(message) {
|
|
49142
|
+
if (typeof message !== "object" || message === null)
|
|
49143
|
+
return "object expected";
|
|
49144
|
+
if (message.samplesReadCount != null && message.hasOwnProperty("samplesReadCount"))
|
|
49145
|
+
if (!$util.isInteger(message.samplesReadCount) && !(message.samplesReadCount && $util.isInteger(message.samplesReadCount.low) && $util.isInteger(message.samplesReadCount.high)))
|
|
49146
|
+
return "samplesReadCount: integer|Long expected";
|
|
49147
|
+
if (message.samplingSpaceSize != null && message.hasOwnProperty("samplingSpaceSize"))
|
|
49148
|
+
if (!$util.isInteger(message.samplingSpaceSize) && !(message.samplingSpaceSize && $util.isInteger(message.samplingSpaceSize.low) && $util.isInteger(message.samplingSpaceSize.high)))
|
|
49149
|
+
return "samplingSpaceSize: integer|Long expected";
|
|
49150
|
+
return null;
|
|
49151
|
+
};
|
|
45884
49152
|
|
|
45885
|
-
|
|
45886
|
-
|
|
49153
|
+
/**
|
|
49154
|
+
* Creates a SamplingMetadata message from a plain object. Also converts values to their respective internal types.
|
|
49155
|
+
* @function fromObject
|
|
49156
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49157
|
+
* @static
|
|
49158
|
+
* @param {Object.<string,*>} object Plain object
|
|
49159
|
+
* @returns {google.analytics.data.v1beta.SamplingMetadata} SamplingMetadata
|
|
49160
|
+
*/
|
|
49161
|
+
SamplingMetadata.fromObject = function fromObject(object) {
|
|
49162
|
+
if (object instanceof $root.google.analytics.data.v1beta.SamplingMetadata)
|
|
49163
|
+
return object;
|
|
49164
|
+
var message = new $root.google.analytics.data.v1beta.SamplingMetadata();
|
|
49165
|
+
if (object.samplesReadCount != null)
|
|
49166
|
+
if ($util.Long)
|
|
49167
|
+
(message.samplesReadCount = $util.Long.fromValue(object.samplesReadCount)).unsigned = false;
|
|
49168
|
+
else if (typeof object.samplesReadCount === "string")
|
|
49169
|
+
message.samplesReadCount = parseInt(object.samplesReadCount, 10);
|
|
49170
|
+
else if (typeof object.samplesReadCount === "number")
|
|
49171
|
+
message.samplesReadCount = object.samplesReadCount;
|
|
49172
|
+
else if (typeof object.samplesReadCount === "object")
|
|
49173
|
+
message.samplesReadCount = new $util.LongBits(object.samplesReadCount.low >>> 0, object.samplesReadCount.high >>> 0).toNumber();
|
|
49174
|
+
if (object.samplingSpaceSize != null)
|
|
49175
|
+
if ($util.Long)
|
|
49176
|
+
(message.samplingSpaceSize = $util.Long.fromValue(object.samplingSpaceSize)).unsigned = false;
|
|
49177
|
+
else if (typeof object.samplingSpaceSize === "string")
|
|
49178
|
+
message.samplingSpaceSize = parseInt(object.samplingSpaceSize, 10);
|
|
49179
|
+
else if (typeof object.samplingSpaceSize === "number")
|
|
49180
|
+
message.samplingSpaceSize = object.samplingSpaceSize;
|
|
49181
|
+
else if (typeof object.samplingSpaceSize === "object")
|
|
49182
|
+
message.samplingSpaceSize = new $util.LongBits(object.samplingSpaceSize.low >>> 0, object.samplingSpaceSize.high >>> 0).toNumber();
|
|
49183
|
+
return message;
|
|
49184
|
+
};
|
|
45887
49185
|
|
|
45888
|
-
|
|
45889
|
-
|
|
49186
|
+
/**
|
|
49187
|
+
* Creates a plain object from a SamplingMetadata message. Also converts values to other types if specified.
|
|
49188
|
+
* @function toObject
|
|
49189
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49190
|
+
* @static
|
|
49191
|
+
* @param {google.analytics.data.v1beta.SamplingMetadata} message SamplingMetadata
|
|
49192
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
49193
|
+
* @returns {Object.<string,*>} Plain object
|
|
49194
|
+
*/
|
|
49195
|
+
SamplingMetadata.toObject = function toObject(message, options) {
|
|
49196
|
+
if (!options)
|
|
49197
|
+
options = {};
|
|
49198
|
+
var object = {};
|
|
49199
|
+
if (options.defaults) {
|
|
49200
|
+
if ($util.Long) {
|
|
49201
|
+
var long = new $util.Long(0, 0, false);
|
|
49202
|
+
object.samplesReadCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
49203
|
+
} else
|
|
49204
|
+
object.samplesReadCount = options.longs === String ? "0" : 0;
|
|
49205
|
+
if ($util.Long) {
|
|
49206
|
+
var long = new $util.Long(0, 0, false);
|
|
49207
|
+
object.samplingSpaceSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
49208
|
+
} else
|
|
49209
|
+
object.samplingSpaceSize = options.longs === String ? "0" : 0;
|
|
49210
|
+
}
|
|
49211
|
+
if (message.samplesReadCount != null && message.hasOwnProperty("samplesReadCount"))
|
|
49212
|
+
if (typeof message.samplesReadCount === "number")
|
|
49213
|
+
object.samplesReadCount = options.longs === String ? String(message.samplesReadCount) : message.samplesReadCount;
|
|
49214
|
+
else
|
|
49215
|
+
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;
|
|
49216
|
+
if (message.samplingSpaceSize != null && message.hasOwnProperty("samplingSpaceSize"))
|
|
49217
|
+
if (typeof message.samplingSpaceSize === "number")
|
|
49218
|
+
object.samplingSpaceSize = options.longs === String ? String(message.samplingSpaceSize) : message.samplingSpaceSize;
|
|
49219
|
+
else
|
|
49220
|
+
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;
|
|
49221
|
+
return object;
|
|
49222
|
+
};
|
|
45890
49223
|
|
|
45891
|
-
|
|
49224
|
+
/**
|
|
49225
|
+
* Converts this SamplingMetadata to JSON.
|
|
49226
|
+
* @function toJSON
|
|
49227
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49228
|
+
* @instance
|
|
49229
|
+
* @returns {Object.<string,*>} JSON object
|
|
49230
|
+
*/
|
|
49231
|
+
SamplingMetadata.prototype.toJSON = function toJSON() {
|
|
49232
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
49233
|
+
};
|
|
49234
|
+
|
|
49235
|
+
/**
|
|
49236
|
+
* Gets the default type url for SamplingMetadata
|
|
49237
|
+
* @function getTypeUrl
|
|
49238
|
+
* @memberof google.analytics.data.v1beta.SamplingMetadata
|
|
49239
|
+
* @static
|
|
49240
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
49241
|
+
* @returns {string} The default type url
|
|
49242
|
+
*/
|
|
49243
|
+
SamplingMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
49244
|
+
if (typeUrlPrefix === undefined) {
|
|
49245
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
49246
|
+
}
|
|
49247
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.SamplingMetadata";
|
|
49248
|
+
};
|
|
49249
|
+
|
|
49250
|
+
return SamplingMetadata;
|
|
45892
49251
|
})();
|
|
45893
49252
|
|
|
45894
49253
|
v1beta.DimensionHeader = (function() {
|
|
@@ -48214,19 +51573,44 @@
|
|
|
48214
51573
|
|
|
48215
51574
|
/**
|
|
48216
51575
|
* QuotaStatus consumed.
|
|
48217
|
-
* @member {number} consumed
|
|
51576
|
+
* @member {number|null|undefined} consumed
|
|
48218
51577
|
* @memberof google.analytics.data.v1beta.QuotaStatus
|
|
48219
51578
|
* @instance
|
|
48220
51579
|
*/
|
|
48221
|
-
QuotaStatus.prototype.consumed =
|
|
51580
|
+
QuotaStatus.prototype.consumed = null;
|
|
48222
51581
|
|
|
48223
51582
|
/**
|
|
48224
51583
|
* QuotaStatus remaining.
|
|
48225
|
-
* @member {number} remaining
|
|
51584
|
+
* @member {number|null|undefined} remaining
|
|
48226
51585
|
* @memberof google.analytics.data.v1beta.QuotaStatus
|
|
48227
51586
|
* @instance
|
|
48228
51587
|
*/
|
|
48229
|
-
QuotaStatus.prototype.remaining =
|
|
51588
|
+
QuotaStatus.prototype.remaining = null;
|
|
51589
|
+
|
|
51590
|
+
// OneOf field names bound to virtual getters and setters
|
|
51591
|
+
var $oneOfFields;
|
|
51592
|
+
|
|
51593
|
+
/**
|
|
51594
|
+
* QuotaStatus _consumed.
|
|
51595
|
+
* @member {"consumed"|undefined} _consumed
|
|
51596
|
+
* @memberof google.analytics.data.v1beta.QuotaStatus
|
|
51597
|
+
* @instance
|
|
51598
|
+
*/
|
|
51599
|
+
Object.defineProperty(QuotaStatus.prototype, "_consumed", {
|
|
51600
|
+
get: $util.oneOfGetter($oneOfFields = ["consumed"]),
|
|
51601
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
51602
|
+
});
|
|
51603
|
+
|
|
51604
|
+
/**
|
|
51605
|
+
* QuotaStatus _remaining.
|
|
51606
|
+
* @member {"remaining"|undefined} _remaining
|
|
51607
|
+
* @memberof google.analytics.data.v1beta.QuotaStatus
|
|
51608
|
+
* @instance
|
|
51609
|
+
*/
|
|
51610
|
+
Object.defineProperty(QuotaStatus.prototype, "_remaining", {
|
|
51611
|
+
get: $util.oneOfGetter($oneOfFields = ["remaining"]),
|
|
51612
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
51613
|
+
});
|
|
48230
51614
|
|
|
48231
51615
|
/**
|
|
48232
51616
|
* Creates a new QuotaStatus instance using the specified properties.
|
|
@@ -48333,12 +51717,17 @@
|
|
|
48333
51717
|
QuotaStatus.verify = function verify(message) {
|
|
48334
51718
|
if (typeof message !== "object" || message === null)
|
|
48335
51719
|
return "object expected";
|
|
48336
|
-
|
|
51720
|
+
var properties = {};
|
|
51721
|
+
if (message.consumed != null && message.hasOwnProperty("consumed")) {
|
|
51722
|
+
properties._consumed = 1;
|
|
48337
51723
|
if (!$util.isInteger(message.consumed))
|
|
48338
51724
|
return "consumed: integer expected";
|
|
48339
|
-
|
|
51725
|
+
}
|
|
51726
|
+
if (message.remaining != null && message.hasOwnProperty("remaining")) {
|
|
51727
|
+
properties._remaining = 1;
|
|
48340
51728
|
if (!$util.isInteger(message.remaining))
|
|
48341
51729
|
return "remaining: integer expected";
|
|
51730
|
+
}
|
|
48342
51731
|
return null;
|
|
48343
51732
|
};
|
|
48344
51733
|
|
|
@@ -48374,14 +51763,16 @@
|
|
|
48374
51763
|
if (!options)
|
|
48375
51764
|
options = {};
|
|
48376
51765
|
var object = {};
|
|
48377
|
-
if (
|
|
48378
|
-
object.consumed = 0;
|
|
48379
|
-
object.remaining = 0;
|
|
48380
|
-
}
|
|
48381
|
-
if (message.consumed != null && message.hasOwnProperty("consumed"))
|
|
51766
|
+
if (message.consumed != null && message.hasOwnProperty("consumed")) {
|
|
48382
51767
|
object.consumed = message.consumed;
|
|
48383
|
-
|
|
51768
|
+
if (options.oneofs)
|
|
51769
|
+
object._consumed = "consumed";
|
|
51770
|
+
}
|
|
51771
|
+
if (message.remaining != null && message.hasOwnProperty("remaining")) {
|
|
48384
51772
|
object.remaining = message.remaining;
|
|
51773
|
+
if (options.oneofs)
|
|
51774
|
+
object._remaining = "remaining";
|
|
51775
|
+
}
|
|
48385
51776
|
return object;
|
|
48386
51777
|
};
|
|
48387
51778
|
|