@google-analytics/data 4.7.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +3 -2
- package/build/protos/google/analytics/data/v1alpha/analytics_data_api.proto +55 -5
- package/build/protos/google/analytics/data/v1alpha/data.proto +3 -3
- package/build/protos/google/analytics/data/v1beta/analytics_data_api.proto +13 -0
- package/build/protos/google/analytics/data/v1beta/data.proto +37 -1
- package/build/protos/protos.d.ts +475 -0
- package/build/protos/protos.js +1200 -0
- package/build/protos/protos.json +131 -0
- package/build/src/v1alpha/alpha_analytics_data_client.d.ts +49 -4
- package/build/src/v1alpha/alpha_analytics_data_client.js +44 -0
- package/build/src/v1alpha/alpha_analytics_data_client_config.json +5 -0
- package/build/src/v1beta/beta_analytics_data_client.d.ts +8 -1
- package/package.json +2 -2
package/build/protos/protos.js
CHANGED
|
@@ -13316,6 +13316,39 @@
|
|
|
13316
13316
|
* @variation 2
|
|
13317
13317
|
*/
|
|
13318
13318
|
|
|
13319
|
+
/**
|
|
13320
|
+
* Callback as used by {@link google.analytics.data.v1alpha.AlphaAnalyticsData|getPropertyQuotasSnapshot}.
|
|
13321
|
+
* @memberof google.analytics.data.v1alpha.AlphaAnalyticsData
|
|
13322
|
+
* @typedef GetPropertyQuotasSnapshotCallback
|
|
13323
|
+
* @type {function}
|
|
13324
|
+
* @param {Error|null} error Error, if any
|
|
13325
|
+
* @param {google.analytics.data.v1alpha.PropertyQuotasSnapshot} [response] PropertyQuotasSnapshot
|
|
13326
|
+
*/
|
|
13327
|
+
|
|
13328
|
+
/**
|
|
13329
|
+
* Calls GetPropertyQuotasSnapshot.
|
|
13330
|
+
* @function getPropertyQuotasSnapshot
|
|
13331
|
+
* @memberof google.analytics.data.v1alpha.AlphaAnalyticsData
|
|
13332
|
+
* @instance
|
|
13333
|
+
* @param {google.analytics.data.v1alpha.IGetPropertyQuotasSnapshotRequest} request GetPropertyQuotasSnapshotRequest message or plain object
|
|
13334
|
+
* @param {google.analytics.data.v1alpha.AlphaAnalyticsData.GetPropertyQuotasSnapshotCallback} callback Node-style callback called with the error, if any, and PropertyQuotasSnapshot
|
|
13335
|
+
* @returns {undefined}
|
|
13336
|
+
* @variation 1
|
|
13337
|
+
*/
|
|
13338
|
+
Object.defineProperty(AlphaAnalyticsData.prototype.getPropertyQuotasSnapshot = function getPropertyQuotasSnapshot(request, callback) {
|
|
13339
|
+
return this.rpcCall(getPropertyQuotasSnapshot, $root.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest, $root.google.analytics.data.v1alpha.PropertyQuotasSnapshot, request, callback);
|
|
13340
|
+
}, "name", { value: "GetPropertyQuotasSnapshot" });
|
|
13341
|
+
|
|
13342
|
+
/**
|
|
13343
|
+
* Calls GetPropertyQuotasSnapshot.
|
|
13344
|
+
* @function getPropertyQuotasSnapshot
|
|
13345
|
+
* @memberof google.analytics.data.v1alpha.AlphaAnalyticsData
|
|
13346
|
+
* @instance
|
|
13347
|
+
* @param {google.analytics.data.v1alpha.IGetPropertyQuotasSnapshotRequest} request GetPropertyQuotasSnapshotRequest message or plain object
|
|
13348
|
+
* @returns {Promise<google.analytics.data.v1alpha.PropertyQuotasSnapshot>} Promise
|
|
13349
|
+
* @variation 2
|
|
13350
|
+
*/
|
|
13351
|
+
|
|
13319
13352
|
/**
|
|
13320
13353
|
* Callback as used by {@link google.analytics.data.v1alpha.AlphaAnalyticsData|createReportTask}.
|
|
13321
13354
|
* @memberof google.analytics.data.v1alpha.AlphaAnalyticsData
|
|
@@ -15082,6 +15115,497 @@
|
|
|
15082
15115
|
return ListRecurringAudienceListsResponse;
|
|
15083
15116
|
})();
|
|
15084
15117
|
|
|
15118
|
+
v1alpha.GetPropertyQuotasSnapshotRequest = (function() {
|
|
15119
|
+
|
|
15120
|
+
/**
|
|
15121
|
+
* Properties of a GetPropertyQuotasSnapshotRequest.
|
|
15122
|
+
* @memberof google.analytics.data.v1alpha
|
|
15123
|
+
* @interface IGetPropertyQuotasSnapshotRequest
|
|
15124
|
+
* @property {string|null} [name] GetPropertyQuotasSnapshotRequest name
|
|
15125
|
+
*/
|
|
15126
|
+
|
|
15127
|
+
/**
|
|
15128
|
+
* Constructs a new GetPropertyQuotasSnapshotRequest.
|
|
15129
|
+
* @memberof google.analytics.data.v1alpha
|
|
15130
|
+
* @classdesc Represents a GetPropertyQuotasSnapshotRequest.
|
|
15131
|
+
* @implements IGetPropertyQuotasSnapshotRequest
|
|
15132
|
+
* @constructor
|
|
15133
|
+
* @param {google.analytics.data.v1alpha.IGetPropertyQuotasSnapshotRequest=} [properties] Properties to set
|
|
15134
|
+
*/
|
|
15135
|
+
function GetPropertyQuotasSnapshotRequest(properties) {
|
|
15136
|
+
if (properties)
|
|
15137
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15138
|
+
if (properties[keys[i]] != null)
|
|
15139
|
+
this[keys[i]] = properties[keys[i]];
|
|
15140
|
+
}
|
|
15141
|
+
|
|
15142
|
+
/**
|
|
15143
|
+
* GetPropertyQuotasSnapshotRequest name.
|
|
15144
|
+
* @member {string} name
|
|
15145
|
+
* @memberof google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest
|
|
15146
|
+
* @instance
|
|
15147
|
+
*/
|
|
15148
|
+
GetPropertyQuotasSnapshotRequest.prototype.name = "";
|
|
15149
|
+
|
|
15150
|
+
/**
|
|
15151
|
+
* Creates a new GetPropertyQuotasSnapshotRequest instance using the specified properties.
|
|
15152
|
+
* @function create
|
|
15153
|
+
* @memberof google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest
|
|
15154
|
+
* @static
|
|
15155
|
+
* @param {google.analytics.data.v1alpha.IGetPropertyQuotasSnapshotRequest=} [properties] Properties to set
|
|
15156
|
+
* @returns {google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest} GetPropertyQuotasSnapshotRequest instance
|
|
15157
|
+
*/
|
|
15158
|
+
GetPropertyQuotasSnapshotRequest.create = function create(properties) {
|
|
15159
|
+
return new GetPropertyQuotasSnapshotRequest(properties);
|
|
15160
|
+
};
|
|
15161
|
+
|
|
15162
|
+
/**
|
|
15163
|
+
* Encodes the specified GetPropertyQuotasSnapshotRequest message. Does not implicitly {@link google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest.verify|verify} messages.
|
|
15164
|
+
* @function encode
|
|
15165
|
+
* @memberof google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest
|
|
15166
|
+
* @static
|
|
15167
|
+
* @param {google.analytics.data.v1alpha.IGetPropertyQuotasSnapshotRequest} message GetPropertyQuotasSnapshotRequest message or plain object to encode
|
|
15168
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15169
|
+
* @returns {$protobuf.Writer} Writer
|
|
15170
|
+
*/
|
|
15171
|
+
GetPropertyQuotasSnapshotRequest.encode = function encode(message, writer) {
|
|
15172
|
+
if (!writer)
|
|
15173
|
+
writer = $Writer.create();
|
|
15174
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
15175
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
15176
|
+
return writer;
|
|
15177
|
+
};
|
|
15178
|
+
|
|
15179
|
+
/**
|
|
15180
|
+
* Encodes the specified GetPropertyQuotasSnapshotRequest message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest.verify|verify} messages.
|
|
15181
|
+
* @function encodeDelimited
|
|
15182
|
+
* @memberof google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest
|
|
15183
|
+
* @static
|
|
15184
|
+
* @param {google.analytics.data.v1alpha.IGetPropertyQuotasSnapshotRequest} message GetPropertyQuotasSnapshotRequest message or plain object to encode
|
|
15185
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15186
|
+
* @returns {$protobuf.Writer} Writer
|
|
15187
|
+
*/
|
|
15188
|
+
GetPropertyQuotasSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15189
|
+
return this.encode(message, writer).ldelim();
|
|
15190
|
+
};
|
|
15191
|
+
|
|
15192
|
+
/**
|
|
15193
|
+
* Decodes a GetPropertyQuotasSnapshotRequest message from the specified reader or buffer.
|
|
15194
|
+
* @function decode
|
|
15195
|
+
* @memberof google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest
|
|
15196
|
+
* @static
|
|
15197
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15198
|
+
* @param {number} [length] Message length if known beforehand
|
|
15199
|
+
* @returns {google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest} GetPropertyQuotasSnapshotRequest
|
|
15200
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15201
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15202
|
+
*/
|
|
15203
|
+
GetPropertyQuotasSnapshotRequest.decode = function decode(reader, length) {
|
|
15204
|
+
if (!(reader instanceof $Reader))
|
|
15205
|
+
reader = $Reader.create(reader);
|
|
15206
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest();
|
|
15207
|
+
while (reader.pos < end) {
|
|
15208
|
+
var tag = reader.uint32();
|
|
15209
|
+
switch (tag >>> 3) {
|
|
15210
|
+
case 1: {
|
|
15211
|
+
message.name = reader.string();
|
|
15212
|
+
break;
|
|
15213
|
+
}
|
|
15214
|
+
default:
|
|
15215
|
+
reader.skipType(tag & 7);
|
|
15216
|
+
break;
|
|
15217
|
+
}
|
|
15218
|
+
}
|
|
15219
|
+
return message;
|
|
15220
|
+
};
|
|
15221
|
+
|
|
15222
|
+
/**
|
|
15223
|
+
* Decodes a GetPropertyQuotasSnapshotRequest message from the specified reader or buffer, length delimited.
|
|
15224
|
+
* @function decodeDelimited
|
|
15225
|
+
* @memberof google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest
|
|
15226
|
+
* @static
|
|
15227
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15228
|
+
* @returns {google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest} GetPropertyQuotasSnapshotRequest
|
|
15229
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15230
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15231
|
+
*/
|
|
15232
|
+
GetPropertyQuotasSnapshotRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
15233
|
+
if (!(reader instanceof $Reader))
|
|
15234
|
+
reader = new $Reader(reader);
|
|
15235
|
+
return this.decode(reader, reader.uint32());
|
|
15236
|
+
};
|
|
15237
|
+
|
|
15238
|
+
/**
|
|
15239
|
+
* Verifies a GetPropertyQuotasSnapshotRequest message.
|
|
15240
|
+
* @function verify
|
|
15241
|
+
* @memberof google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest
|
|
15242
|
+
* @static
|
|
15243
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15244
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15245
|
+
*/
|
|
15246
|
+
GetPropertyQuotasSnapshotRequest.verify = function verify(message) {
|
|
15247
|
+
if (typeof message !== "object" || message === null)
|
|
15248
|
+
return "object expected";
|
|
15249
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
15250
|
+
if (!$util.isString(message.name))
|
|
15251
|
+
return "name: string expected";
|
|
15252
|
+
return null;
|
|
15253
|
+
};
|
|
15254
|
+
|
|
15255
|
+
/**
|
|
15256
|
+
* Creates a GetPropertyQuotasSnapshotRequest message from a plain object. Also converts values to their respective internal types.
|
|
15257
|
+
* @function fromObject
|
|
15258
|
+
* @memberof google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest
|
|
15259
|
+
* @static
|
|
15260
|
+
* @param {Object.<string,*>} object Plain object
|
|
15261
|
+
* @returns {google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest} GetPropertyQuotasSnapshotRequest
|
|
15262
|
+
*/
|
|
15263
|
+
GetPropertyQuotasSnapshotRequest.fromObject = function fromObject(object) {
|
|
15264
|
+
if (object instanceof $root.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest)
|
|
15265
|
+
return object;
|
|
15266
|
+
var message = new $root.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest();
|
|
15267
|
+
if (object.name != null)
|
|
15268
|
+
message.name = String(object.name);
|
|
15269
|
+
return message;
|
|
15270
|
+
};
|
|
15271
|
+
|
|
15272
|
+
/**
|
|
15273
|
+
* Creates a plain object from a GetPropertyQuotasSnapshotRequest message. Also converts values to other types if specified.
|
|
15274
|
+
* @function toObject
|
|
15275
|
+
* @memberof google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest
|
|
15276
|
+
* @static
|
|
15277
|
+
* @param {google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest} message GetPropertyQuotasSnapshotRequest
|
|
15278
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15279
|
+
* @returns {Object.<string,*>} Plain object
|
|
15280
|
+
*/
|
|
15281
|
+
GetPropertyQuotasSnapshotRequest.toObject = function toObject(message, options) {
|
|
15282
|
+
if (!options)
|
|
15283
|
+
options = {};
|
|
15284
|
+
var object = {};
|
|
15285
|
+
if (options.defaults)
|
|
15286
|
+
object.name = "";
|
|
15287
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
15288
|
+
object.name = message.name;
|
|
15289
|
+
return object;
|
|
15290
|
+
};
|
|
15291
|
+
|
|
15292
|
+
/**
|
|
15293
|
+
* Converts this GetPropertyQuotasSnapshotRequest to JSON.
|
|
15294
|
+
* @function toJSON
|
|
15295
|
+
* @memberof google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest
|
|
15296
|
+
* @instance
|
|
15297
|
+
* @returns {Object.<string,*>} JSON object
|
|
15298
|
+
*/
|
|
15299
|
+
GetPropertyQuotasSnapshotRequest.prototype.toJSON = function toJSON() {
|
|
15300
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15301
|
+
};
|
|
15302
|
+
|
|
15303
|
+
/**
|
|
15304
|
+
* Gets the default type url for GetPropertyQuotasSnapshotRequest
|
|
15305
|
+
* @function getTypeUrl
|
|
15306
|
+
* @memberof google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest
|
|
15307
|
+
* @static
|
|
15308
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15309
|
+
* @returns {string} The default type url
|
|
15310
|
+
*/
|
|
15311
|
+
GetPropertyQuotasSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
15312
|
+
if (typeUrlPrefix === undefined) {
|
|
15313
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
15314
|
+
}
|
|
15315
|
+
return typeUrlPrefix + "/google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest";
|
|
15316
|
+
};
|
|
15317
|
+
|
|
15318
|
+
return GetPropertyQuotasSnapshotRequest;
|
|
15319
|
+
})();
|
|
15320
|
+
|
|
15321
|
+
v1alpha.PropertyQuotasSnapshot = (function() {
|
|
15322
|
+
|
|
15323
|
+
/**
|
|
15324
|
+
* Properties of a PropertyQuotasSnapshot.
|
|
15325
|
+
* @memberof google.analytics.data.v1alpha
|
|
15326
|
+
* @interface IPropertyQuotasSnapshot
|
|
15327
|
+
* @property {string|null} [name] PropertyQuotasSnapshot name
|
|
15328
|
+
* @property {google.analytics.data.v1alpha.IPropertyQuota|null} [corePropertyQuota] PropertyQuotasSnapshot corePropertyQuota
|
|
15329
|
+
* @property {google.analytics.data.v1alpha.IPropertyQuota|null} [realtimePropertyQuota] PropertyQuotasSnapshot realtimePropertyQuota
|
|
15330
|
+
* @property {google.analytics.data.v1alpha.IPropertyQuota|null} [funnelPropertyQuota] PropertyQuotasSnapshot funnelPropertyQuota
|
|
15331
|
+
*/
|
|
15332
|
+
|
|
15333
|
+
/**
|
|
15334
|
+
* Constructs a new PropertyQuotasSnapshot.
|
|
15335
|
+
* @memberof google.analytics.data.v1alpha
|
|
15336
|
+
* @classdesc Represents a PropertyQuotasSnapshot.
|
|
15337
|
+
* @implements IPropertyQuotasSnapshot
|
|
15338
|
+
* @constructor
|
|
15339
|
+
* @param {google.analytics.data.v1alpha.IPropertyQuotasSnapshot=} [properties] Properties to set
|
|
15340
|
+
*/
|
|
15341
|
+
function PropertyQuotasSnapshot(properties) {
|
|
15342
|
+
if (properties)
|
|
15343
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15344
|
+
if (properties[keys[i]] != null)
|
|
15345
|
+
this[keys[i]] = properties[keys[i]];
|
|
15346
|
+
}
|
|
15347
|
+
|
|
15348
|
+
/**
|
|
15349
|
+
* PropertyQuotasSnapshot name.
|
|
15350
|
+
* @member {string} name
|
|
15351
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15352
|
+
* @instance
|
|
15353
|
+
*/
|
|
15354
|
+
PropertyQuotasSnapshot.prototype.name = "";
|
|
15355
|
+
|
|
15356
|
+
/**
|
|
15357
|
+
* PropertyQuotasSnapshot corePropertyQuota.
|
|
15358
|
+
* @member {google.analytics.data.v1alpha.IPropertyQuota|null|undefined} corePropertyQuota
|
|
15359
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15360
|
+
* @instance
|
|
15361
|
+
*/
|
|
15362
|
+
PropertyQuotasSnapshot.prototype.corePropertyQuota = null;
|
|
15363
|
+
|
|
15364
|
+
/**
|
|
15365
|
+
* PropertyQuotasSnapshot realtimePropertyQuota.
|
|
15366
|
+
* @member {google.analytics.data.v1alpha.IPropertyQuota|null|undefined} realtimePropertyQuota
|
|
15367
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15368
|
+
* @instance
|
|
15369
|
+
*/
|
|
15370
|
+
PropertyQuotasSnapshot.prototype.realtimePropertyQuota = null;
|
|
15371
|
+
|
|
15372
|
+
/**
|
|
15373
|
+
* PropertyQuotasSnapshot funnelPropertyQuota.
|
|
15374
|
+
* @member {google.analytics.data.v1alpha.IPropertyQuota|null|undefined} funnelPropertyQuota
|
|
15375
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15376
|
+
* @instance
|
|
15377
|
+
*/
|
|
15378
|
+
PropertyQuotasSnapshot.prototype.funnelPropertyQuota = null;
|
|
15379
|
+
|
|
15380
|
+
/**
|
|
15381
|
+
* Creates a new PropertyQuotasSnapshot instance using the specified properties.
|
|
15382
|
+
* @function create
|
|
15383
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15384
|
+
* @static
|
|
15385
|
+
* @param {google.analytics.data.v1alpha.IPropertyQuotasSnapshot=} [properties] Properties to set
|
|
15386
|
+
* @returns {google.analytics.data.v1alpha.PropertyQuotasSnapshot} PropertyQuotasSnapshot instance
|
|
15387
|
+
*/
|
|
15388
|
+
PropertyQuotasSnapshot.create = function create(properties) {
|
|
15389
|
+
return new PropertyQuotasSnapshot(properties);
|
|
15390
|
+
};
|
|
15391
|
+
|
|
15392
|
+
/**
|
|
15393
|
+
* Encodes the specified PropertyQuotasSnapshot message. Does not implicitly {@link google.analytics.data.v1alpha.PropertyQuotasSnapshot.verify|verify} messages.
|
|
15394
|
+
* @function encode
|
|
15395
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15396
|
+
* @static
|
|
15397
|
+
* @param {google.analytics.data.v1alpha.IPropertyQuotasSnapshot} message PropertyQuotasSnapshot message or plain object to encode
|
|
15398
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15399
|
+
* @returns {$protobuf.Writer} Writer
|
|
15400
|
+
*/
|
|
15401
|
+
PropertyQuotasSnapshot.encode = function encode(message, writer) {
|
|
15402
|
+
if (!writer)
|
|
15403
|
+
writer = $Writer.create();
|
|
15404
|
+
if (message.corePropertyQuota != null && Object.hasOwnProperty.call(message, "corePropertyQuota"))
|
|
15405
|
+
$root.google.analytics.data.v1alpha.PropertyQuota.encode(message.corePropertyQuota, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15406
|
+
if (message.realtimePropertyQuota != null && Object.hasOwnProperty.call(message, "realtimePropertyQuota"))
|
|
15407
|
+
$root.google.analytics.data.v1alpha.PropertyQuota.encode(message.realtimePropertyQuota, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
15408
|
+
if (message.funnelPropertyQuota != null && Object.hasOwnProperty.call(message, "funnelPropertyQuota"))
|
|
15409
|
+
$root.google.analytics.data.v1alpha.PropertyQuota.encode(message.funnelPropertyQuota, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
15410
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
15411
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.name);
|
|
15412
|
+
return writer;
|
|
15413
|
+
};
|
|
15414
|
+
|
|
15415
|
+
/**
|
|
15416
|
+
* Encodes the specified PropertyQuotasSnapshot message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.PropertyQuotasSnapshot.verify|verify} messages.
|
|
15417
|
+
* @function encodeDelimited
|
|
15418
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15419
|
+
* @static
|
|
15420
|
+
* @param {google.analytics.data.v1alpha.IPropertyQuotasSnapshot} message PropertyQuotasSnapshot message or plain object to encode
|
|
15421
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15422
|
+
* @returns {$protobuf.Writer} Writer
|
|
15423
|
+
*/
|
|
15424
|
+
PropertyQuotasSnapshot.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15425
|
+
return this.encode(message, writer).ldelim();
|
|
15426
|
+
};
|
|
15427
|
+
|
|
15428
|
+
/**
|
|
15429
|
+
* Decodes a PropertyQuotasSnapshot message from the specified reader or buffer.
|
|
15430
|
+
* @function decode
|
|
15431
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15432
|
+
* @static
|
|
15433
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15434
|
+
* @param {number} [length] Message length if known beforehand
|
|
15435
|
+
* @returns {google.analytics.data.v1alpha.PropertyQuotasSnapshot} PropertyQuotasSnapshot
|
|
15436
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15437
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15438
|
+
*/
|
|
15439
|
+
PropertyQuotasSnapshot.decode = function decode(reader, length) {
|
|
15440
|
+
if (!(reader instanceof $Reader))
|
|
15441
|
+
reader = $Reader.create(reader);
|
|
15442
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1alpha.PropertyQuotasSnapshot();
|
|
15443
|
+
while (reader.pos < end) {
|
|
15444
|
+
var tag = reader.uint32();
|
|
15445
|
+
switch (tag >>> 3) {
|
|
15446
|
+
case 4: {
|
|
15447
|
+
message.name = reader.string();
|
|
15448
|
+
break;
|
|
15449
|
+
}
|
|
15450
|
+
case 1: {
|
|
15451
|
+
message.corePropertyQuota = $root.google.analytics.data.v1alpha.PropertyQuota.decode(reader, reader.uint32());
|
|
15452
|
+
break;
|
|
15453
|
+
}
|
|
15454
|
+
case 2: {
|
|
15455
|
+
message.realtimePropertyQuota = $root.google.analytics.data.v1alpha.PropertyQuota.decode(reader, reader.uint32());
|
|
15456
|
+
break;
|
|
15457
|
+
}
|
|
15458
|
+
case 3: {
|
|
15459
|
+
message.funnelPropertyQuota = $root.google.analytics.data.v1alpha.PropertyQuota.decode(reader, reader.uint32());
|
|
15460
|
+
break;
|
|
15461
|
+
}
|
|
15462
|
+
default:
|
|
15463
|
+
reader.skipType(tag & 7);
|
|
15464
|
+
break;
|
|
15465
|
+
}
|
|
15466
|
+
}
|
|
15467
|
+
return message;
|
|
15468
|
+
};
|
|
15469
|
+
|
|
15470
|
+
/**
|
|
15471
|
+
* Decodes a PropertyQuotasSnapshot message from the specified reader or buffer, length delimited.
|
|
15472
|
+
* @function decodeDelimited
|
|
15473
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15474
|
+
* @static
|
|
15475
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15476
|
+
* @returns {google.analytics.data.v1alpha.PropertyQuotasSnapshot} PropertyQuotasSnapshot
|
|
15477
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15478
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15479
|
+
*/
|
|
15480
|
+
PropertyQuotasSnapshot.decodeDelimited = function decodeDelimited(reader) {
|
|
15481
|
+
if (!(reader instanceof $Reader))
|
|
15482
|
+
reader = new $Reader(reader);
|
|
15483
|
+
return this.decode(reader, reader.uint32());
|
|
15484
|
+
};
|
|
15485
|
+
|
|
15486
|
+
/**
|
|
15487
|
+
* Verifies a PropertyQuotasSnapshot message.
|
|
15488
|
+
* @function verify
|
|
15489
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15490
|
+
* @static
|
|
15491
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15492
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15493
|
+
*/
|
|
15494
|
+
PropertyQuotasSnapshot.verify = function verify(message) {
|
|
15495
|
+
if (typeof message !== "object" || message === null)
|
|
15496
|
+
return "object expected";
|
|
15497
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
15498
|
+
if (!$util.isString(message.name))
|
|
15499
|
+
return "name: string expected";
|
|
15500
|
+
if (message.corePropertyQuota != null && message.hasOwnProperty("corePropertyQuota")) {
|
|
15501
|
+
var error = $root.google.analytics.data.v1alpha.PropertyQuota.verify(message.corePropertyQuota);
|
|
15502
|
+
if (error)
|
|
15503
|
+
return "corePropertyQuota." + error;
|
|
15504
|
+
}
|
|
15505
|
+
if (message.realtimePropertyQuota != null && message.hasOwnProperty("realtimePropertyQuota")) {
|
|
15506
|
+
var error = $root.google.analytics.data.v1alpha.PropertyQuota.verify(message.realtimePropertyQuota);
|
|
15507
|
+
if (error)
|
|
15508
|
+
return "realtimePropertyQuota." + error;
|
|
15509
|
+
}
|
|
15510
|
+
if (message.funnelPropertyQuota != null && message.hasOwnProperty("funnelPropertyQuota")) {
|
|
15511
|
+
var error = $root.google.analytics.data.v1alpha.PropertyQuota.verify(message.funnelPropertyQuota);
|
|
15512
|
+
if (error)
|
|
15513
|
+
return "funnelPropertyQuota." + error;
|
|
15514
|
+
}
|
|
15515
|
+
return null;
|
|
15516
|
+
};
|
|
15517
|
+
|
|
15518
|
+
/**
|
|
15519
|
+
* Creates a PropertyQuotasSnapshot message from a plain object. Also converts values to their respective internal types.
|
|
15520
|
+
* @function fromObject
|
|
15521
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15522
|
+
* @static
|
|
15523
|
+
* @param {Object.<string,*>} object Plain object
|
|
15524
|
+
* @returns {google.analytics.data.v1alpha.PropertyQuotasSnapshot} PropertyQuotasSnapshot
|
|
15525
|
+
*/
|
|
15526
|
+
PropertyQuotasSnapshot.fromObject = function fromObject(object) {
|
|
15527
|
+
if (object instanceof $root.google.analytics.data.v1alpha.PropertyQuotasSnapshot)
|
|
15528
|
+
return object;
|
|
15529
|
+
var message = new $root.google.analytics.data.v1alpha.PropertyQuotasSnapshot();
|
|
15530
|
+
if (object.name != null)
|
|
15531
|
+
message.name = String(object.name);
|
|
15532
|
+
if (object.corePropertyQuota != null) {
|
|
15533
|
+
if (typeof object.corePropertyQuota !== "object")
|
|
15534
|
+
throw TypeError(".google.analytics.data.v1alpha.PropertyQuotasSnapshot.corePropertyQuota: object expected");
|
|
15535
|
+
message.corePropertyQuota = $root.google.analytics.data.v1alpha.PropertyQuota.fromObject(object.corePropertyQuota);
|
|
15536
|
+
}
|
|
15537
|
+
if (object.realtimePropertyQuota != null) {
|
|
15538
|
+
if (typeof object.realtimePropertyQuota !== "object")
|
|
15539
|
+
throw TypeError(".google.analytics.data.v1alpha.PropertyQuotasSnapshot.realtimePropertyQuota: object expected");
|
|
15540
|
+
message.realtimePropertyQuota = $root.google.analytics.data.v1alpha.PropertyQuota.fromObject(object.realtimePropertyQuota);
|
|
15541
|
+
}
|
|
15542
|
+
if (object.funnelPropertyQuota != null) {
|
|
15543
|
+
if (typeof object.funnelPropertyQuota !== "object")
|
|
15544
|
+
throw TypeError(".google.analytics.data.v1alpha.PropertyQuotasSnapshot.funnelPropertyQuota: object expected");
|
|
15545
|
+
message.funnelPropertyQuota = $root.google.analytics.data.v1alpha.PropertyQuota.fromObject(object.funnelPropertyQuota);
|
|
15546
|
+
}
|
|
15547
|
+
return message;
|
|
15548
|
+
};
|
|
15549
|
+
|
|
15550
|
+
/**
|
|
15551
|
+
* Creates a plain object from a PropertyQuotasSnapshot message. Also converts values to other types if specified.
|
|
15552
|
+
* @function toObject
|
|
15553
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15554
|
+
* @static
|
|
15555
|
+
* @param {google.analytics.data.v1alpha.PropertyQuotasSnapshot} message PropertyQuotasSnapshot
|
|
15556
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15557
|
+
* @returns {Object.<string,*>} Plain object
|
|
15558
|
+
*/
|
|
15559
|
+
PropertyQuotasSnapshot.toObject = function toObject(message, options) {
|
|
15560
|
+
if (!options)
|
|
15561
|
+
options = {};
|
|
15562
|
+
var object = {};
|
|
15563
|
+
if (options.defaults) {
|
|
15564
|
+
object.corePropertyQuota = null;
|
|
15565
|
+
object.realtimePropertyQuota = null;
|
|
15566
|
+
object.funnelPropertyQuota = null;
|
|
15567
|
+
object.name = "";
|
|
15568
|
+
}
|
|
15569
|
+
if (message.corePropertyQuota != null && message.hasOwnProperty("corePropertyQuota"))
|
|
15570
|
+
object.corePropertyQuota = $root.google.analytics.data.v1alpha.PropertyQuota.toObject(message.corePropertyQuota, options);
|
|
15571
|
+
if (message.realtimePropertyQuota != null && message.hasOwnProperty("realtimePropertyQuota"))
|
|
15572
|
+
object.realtimePropertyQuota = $root.google.analytics.data.v1alpha.PropertyQuota.toObject(message.realtimePropertyQuota, options);
|
|
15573
|
+
if (message.funnelPropertyQuota != null && message.hasOwnProperty("funnelPropertyQuota"))
|
|
15574
|
+
object.funnelPropertyQuota = $root.google.analytics.data.v1alpha.PropertyQuota.toObject(message.funnelPropertyQuota, options);
|
|
15575
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
15576
|
+
object.name = message.name;
|
|
15577
|
+
return object;
|
|
15578
|
+
};
|
|
15579
|
+
|
|
15580
|
+
/**
|
|
15581
|
+
* Converts this PropertyQuotasSnapshot to JSON.
|
|
15582
|
+
* @function toJSON
|
|
15583
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15584
|
+
* @instance
|
|
15585
|
+
* @returns {Object.<string,*>} JSON object
|
|
15586
|
+
*/
|
|
15587
|
+
PropertyQuotasSnapshot.prototype.toJSON = function toJSON() {
|
|
15588
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15589
|
+
};
|
|
15590
|
+
|
|
15591
|
+
/**
|
|
15592
|
+
* Gets the default type url for PropertyQuotasSnapshot
|
|
15593
|
+
* @function getTypeUrl
|
|
15594
|
+
* @memberof google.analytics.data.v1alpha.PropertyQuotasSnapshot
|
|
15595
|
+
* @static
|
|
15596
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15597
|
+
* @returns {string} The default type url
|
|
15598
|
+
*/
|
|
15599
|
+
PropertyQuotasSnapshot.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
15600
|
+
if (typeUrlPrefix === undefined) {
|
|
15601
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
15602
|
+
}
|
|
15603
|
+
return typeUrlPrefix + "/google.analytics.data.v1alpha.PropertyQuotasSnapshot";
|
|
15604
|
+
};
|
|
15605
|
+
|
|
15606
|
+
return PropertyQuotasSnapshot;
|
|
15607
|
+
})();
|
|
15608
|
+
|
|
15085
15609
|
v1alpha.GetAudienceListRequest = (function() {
|
|
15086
15610
|
|
|
15087
15611
|
/**
|
|
@@ -42889,6 +43413,7 @@
|
|
|
42889
43413
|
* @property {string|null} [name] Metadata name
|
|
42890
43414
|
* @property {Array.<google.analytics.data.v1beta.IDimensionMetadata>|null} [dimensions] Metadata dimensions
|
|
42891
43415
|
* @property {Array.<google.analytics.data.v1beta.IMetricMetadata>|null} [metrics] Metadata metrics
|
|
43416
|
+
* @property {Array.<google.analytics.data.v1beta.IComparisonMetadata>|null} [comparisons] Metadata comparisons
|
|
42892
43417
|
*/
|
|
42893
43418
|
|
|
42894
43419
|
/**
|
|
@@ -42902,6 +43427,7 @@
|
|
|
42902
43427
|
function Metadata(properties) {
|
|
42903
43428
|
this.dimensions = [];
|
|
42904
43429
|
this.metrics = [];
|
|
43430
|
+
this.comparisons = [];
|
|
42905
43431
|
if (properties)
|
|
42906
43432
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
42907
43433
|
if (properties[keys[i]] != null)
|
|
@@ -42932,6 +43458,14 @@
|
|
|
42932
43458
|
*/
|
|
42933
43459
|
Metadata.prototype.metrics = $util.emptyArray;
|
|
42934
43460
|
|
|
43461
|
+
/**
|
|
43462
|
+
* Metadata comparisons.
|
|
43463
|
+
* @member {Array.<google.analytics.data.v1beta.IComparisonMetadata>} comparisons
|
|
43464
|
+
* @memberof google.analytics.data.v1beta.Metadata
|
|
43465
|
+
* @instance
|
|
43466
|
+
*/
|
|
43467
|
+
Metadata.prototype.comparisons = $util.emptyArray;
|
|
43468
|
+
|
|
42935
43469
|
/**
|
|
42936
43470
|
* Creates a new Metadata instance using the specified properties.
|
|
42937
43471
|
* @function create
|
|
@@ -42964,6 +43498,9 @@
|
|
|
42964
43498
|
$root.google.analytics.data.v1beta.MetricMetadata.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
42965
43499
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
42966
43500
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.name);
|
|
43501
|
+
if (message.comparisons != null && message.comparisons.length)
|
|
43502
|
+
for (var i = 0; i < message.comparisons.length; ++i)
|
|
43503
|
+
$root.google.analytics.data.v1beta.ComparisonMetadata.encode(message.comparisons[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
42967
43504
|
return writer;
|
|
42968
43505
|
};
|
|
42969
43506
|
|
|
@@ -43014,6 +43551,12 @@
|
|
|
43014
43551
|
message.metrics.push($root.google.analytics.data.v1beta.MetricMetadata.decode(reader, reader.uint32()));
|
|
43015
43552
|
break;
|
|
43016
43553
|
}
|
|
43554
|
+
case 4: {
|
|
43555
|
+
if (!(message.comparisons && message.comparisons.length))
|
|
43556
|
+
message.comparisons = [];
|
|
43557
|
+
message.comparisons.push($root.google.analytics.data.v1beta.ComparisonMetadata.decode(reader, reader.uint32()));
|
|
43558
|
+
break;
|
|
43559
|
+
}
|
|
43017
43560
|
default:
|
|
43018
43561
|
reader.skipType(tag & 7);
|
|
43019
43562
|
break;
|
|
@@ -43070,6 +43613,15 @@
|
|
|
43070
43613
|
return "metrics." + error;
|
|
43071
43614
|
}
|
|
43072
43615
|
}
|
|
43616
|
+
if (message.comparisons != null && message.hasOwnProperty("comparisons")) {
|
|
43617
|
+
if (!Array.isArray(message.comparisons))
|
|
43618
|
+
return "comparisons: array expected";
|
|
43619
|
+
for (var i = 0; i < message.comparisons.length; ++i) {
|
|
43620
|
+
var error = $root.google.analytics.data.v1beta.ComparisonMetadata.verify(message.comparisons[i]);
|
|
43621
|
+
if (error)
|
|
43622
|
+
return "comparisons." + error;
|
|
43623
|
+
}
|
|
43624
|
+
}
|
|
43073
43625
|
return null;
|
|
43074
43626
|
};
|
|
43075
43627
|
|
|
@@ -43107,6 +43659,16 @@
|
|
|
43107
43659
|
message.metrics[i] = $root.google.analytics.data.v1beta.MetricMetadata.fromObject(object.metrics[i]);
|
|
43108
43660
|
}
|
|
43109
43661
|
}
|
|
43662
|
+
if (object.comparisons) {
|
|
43663
|
+
if (!Array.isArray(object.comparisons))
|
|
43664
|
+
throw TypeError(".google.analytics.data.v1beta.Metadata.comparisons: array expected");
|
|
43665
|
+
message.comparisons = [];
|
|
43666
|
+
for (var i = 0; i < object.comparisons.length; ++i) {
|
|
43667
|
+
if (typeof object.comparisons[i] !== "object")
|
|
43668
|
+
throw TypeError(".google.analytics.data.v1beta.Metadata.comparisons: object expected");
|
|
43669
|
+
message.comparisons[i] = $root.google.analytics.data.v1beta.ComparisonMetadata.fromObject(object.comparisons[i]);
|
|
43670
|
+
}
|
|
43671
|
+
}
|
|
43110
43672
|
return message;
|
|
43111
43673
|
};
|
|
43112
43674
|
|
|
@@ -43126,6 +43688,7 @@
|
|
|
43126
43688
|
if (options.arrays || options.defaults) {
|
|
43127
43689
|
object.dimensions = [];
|
|
43128
43690
|
object.metrics = [];
|
|
43691
|
+
object.comparisons = [];
|
|
43129
43692
|
}
|
|
43130
43693
|
if (options.defaults)
|
|
43131
43694
|
object.name = "";
|
|
@@ -43141,6 +43704,11 @@
|
|
|
43141
43704
|
}
|
|
43142
43705
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
43143
43706
|
object.name = message.name;
|
|
43707
|
+
if (message.comparisons && message.comparisons.length) {
|
|
43708
|
+
object.comparisons = [];
|
|
43709
|
+
for (var j = 0; j < message.comparisons.length; ++j)
|
|
43710
|
+
object.comparisons[j] = $root.google.analytics.data.v1beta.ComparisonMetadata.toObject(message.comparisons[j], options);
|
|
43711
|
+
}
|
|
43144
43712
|
return object;
|
|
43145
43713
|
};
|
|
43146
43714
|
|
|
@@ -43193,6 +43761,7 @@
|
|
|
43193
43761
|
* @property {google.analytics.data.v1beta.ICohortSpec|null} [cohortSpec] RunReportRequest cohortSpec
|
|
43194
43762
|
* @property {boolean|null} [keepEmptyRows] RunReportRequest keepEmptyRows
|
|
43195
43763
|
* @property {boolean|null} [returnPropertyQuota] RunReportRequest returnPropertyQuota
|
|
43764
|
+
* @property {Array.<google.analytics.data.v1beta.IComparison>|null} [comparisons] RunReportRequest comparisons
|
|
43196
43765
|
*/
|
|
43197
43766
|
|
|
43198
43767
|
/**
|
|
@@ -43209,6 +43778,7 @@
|
|
|
43209
43778
|
this.dateRanges = [];
|
|
43210
43779
|
this.metricAggregations = [];
|
|
43211
43780
|
this.orderBys = [];
|
|
43781
|
+
this.comparisons = [];
|
|
43212
43782
|
if (properties)
|
|
43213
43783
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43214
43784
|
if (properties[keys[i]] != null)
|
|
@@ -43327,6 +43897,14 @@
|
|
|
43327
43897
|
*/
|
|
43328
43898
|
RunReportRequest.prototype.returnPropertyQuota = false;
|
|
43329
43899
|
|
|
43900
|
+
/**
|
|
43901
|
+
* RunReportRequest comparisons.
|
|
43902
|
+
* @member {Array.<google.analytics.data.v1beta.IComparison>} comparisons
|
|
43903
|
+
* @memberof google.analytics.data.v1beta.RunReportRequest
|
|
43904
|
+
* @instance
|
|
43905
|
+
*/
|
|
43906
|
+
RunReportRequest.prototype.comparisons = $util.emptyArray;
|
|
43907
|
+
|
|
43330
43908
|
/**
|
|
43331
43909
|
* Creates a new RunReportRequest instance using the specified properties.
|
|
43332
43910
|
* @function create
|
|
@@ -43387,6 +43965,9 @@
|
|
|
43387
43965
|
writer.uint32(/* id 13, wireType 0 =*/104).bool(message.keepEmptyRows);
|
|
43388
43966
|
if (message.returnPropertyQuota != null && Object.hasOwnProperty.call(message, "returnPropertyQuota"))
|
|
43389
43967
|
writer.uint32(/* id 14, wireType 0 =*/112).bool(message.returnPropertyQuota);
|
|
43968
|
+
if (message.comparisons != null && message.comparisons.length)
|
|
43969
|
+
for (var i = 0; i < message.comparisons.length; ++i)
|
|
43970
|
+
$root.google.analytics.data.v1beta.Comparison.encode(message.comparisons[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
43390
43971
|
return writer;
|
|
43391
43972
|
};
|
|
43392
43973
|
|
|
@@ -43492,6 +44073,12 @@
|
|
|
43492
44073
|
message.returnPropertyQuota = reader.bool();
|
|
43493
44074
|
break;
|
|
43494
44075
|
}
|
|
44076
|
+
case 15: {
|
|
44077
|
+
if (!(message.comparisons && message.comparisons.length))
|
|
44078
|
+
message.comparisons = [];
|
|
44079
|
+
message.comparisons.push($root.google.analytics.data.v1beta.Comparison.decode(reader, reader.uint32()));
|
|
44080
|
+
break;
|
|
44081
|
+
}
|
|
43495
44082
|
default:
|
|
43496
44083
|
reader.skipType(tag & 7);
|
|
43497
44084
|
break;
|
|
@@ -43611,6 +44198,15 @@
|
|
|
43611
44198
|
if (message.returnPropertyQuota != null && message.hasOwnProperty("returnPropertyQuota"))
|
|
43612
44199
|
if (typeof message.returnPropertyQuota !== "boolean")
|
|
43613
44200
|
return "returnPropertyQuota: boolean expected";
|
|
44201
|
+
if (message.comparisons != null && message.hasOwnProperty("comparisons")) {
|
|
44202
|
+
if (!Array.isArray(message.comparisons))
|
|
44203
|
+
return "comparisons: array expected";
|
|
44204
|
+
for (var i = 0; i < message.comparisons.length; ++i) {
|
|
44205
|
+
var error = $root.google.analytics.data.v1beta.Comparison.verify(message.comparisons[i]);
|
|
44206
|
+
if (error)
|
|
44207
|
+
return "comparisons." + error;
|
|
44208
|
+
}
|
|
44209
|
+
}
|
|
43614
44210
|
return null;
|
|
43615
44211
|
};
|
|
43616
44212
|
|
|
@@ -43740,6 +44336,16 @@
|
|
|
43740
44336
|
message.keepEmptyRows = Boolean(object.keepEmptyRows);
|
|
43741
44337
|
if (object.returnPropertyQuota != null)
|
|
43742
44338
|
message.returnPropertyQuota = Boolean(object.returnPropertyQuota);
|
|
44339
|
+
if (object.comparisons) {
|
|
44340
|
+
if (!Array.isArray(object.comparisons))
|
|
44341
|
+
throw TypeError(".google.analytics.data.v1beta.RunReportRequest.comparisons: array expected");
|
|
44342
|
+
message.comparisons = [];
|
|
44343
|
+
for (var i = 0; i < object.comparisons.length; ++i) {
|
|
44344
|
+
if (typeof object.comparisons[i] !== "object")
|
|
44345
|
+
throw TypeError(".google.analytics.data.v1beta.RunReportRequest.comparisons: object expected");
|
|
44346
|
+
message.comparisons[i] = $root.google.analytics.data.v1beta.Comparison.fromObject(object.comparisons[i]);
|
|
44347
|
+
}
|
|
44348
|
+
}
|
|
43743
44349
|
return message;
|
|
43744
44350
|
};
|
|
43745
44351
|
|
|
@@ -43762,6 +44368,7 @@
|
|
|
43762
44368
|
object.dateRanges = [];
|
|
43763
44369
|
object.metricAggregations = [];
|
|
43764
44370
|
object.orderBys = [];
|
|
44371
|
+
object.comparisons = [];
|
|
43765
44372
|
}
|
|
43766
44373
|
if (options.defaults) {
|
|
43767
44374
|
object.property = "";
|
|
@@ -43831,6 +44438,11 @@
|
|
|
43831
44438
|
object.keepEmptyRows = message.keepEmptyRows;
|
|
43832
44439
|
if (message.returnPropertyQuota != null && message.hasOwnProperty("returnPropertyQuota"))
|
|
43833
44440
|
object.returnPropertyQuota = message.returnPropertyQuota;
|
|
44441
|
+
if (message.comparisons && message.comparisons.length) {
|
|
44442
|
+
object.comparisons = [];
|
|
44443
|
+
for (var j = 0; j < message.comparisons.length; ++j)
|
|
44444
|
+
object.comparisons[j] = $root.google.analytics.data.v1beta.Comparison.toObject(message.comparisons[j], options);
|
|
44445
|
+
}
|
|
43834
44446
|
return object;
|
|
43835
44447
|
};
|
|
43836
44448
|
|
|
@@ -44429,6 +45041,7 @@
|
|
|
44429
45041
|
* @property {google.analytics.data.v1beta.ICohortSpec|null} [cohortSpec] RunPivotReportRequest cohortSpec
|
|
44430
45042
|
* @property {boolean|null} [keepEmptyRows] RunPivotReportRequest keepEmptyRows
|
|
44431
45043
|
* @property {boolean|null} [returnPropertyQuota] RunPivotReportRequest returnPropertyQuota
|
|
45044
|
+
* @property {Array.<google.analytics.data.v1beta.IComparison>|null} [comparisons] RunPivotReportRequest comparisons
|
|
44432
45045
|
*/
|
|
44433
45046
|
|
|
44434
45047
|
/**
|
|
@@ -44444,6 +45057,7 @@
|
|
|
44444
45057
|
this.metrics = [];
|
|
44445
45058
|
this.dateRanges = [];
|
|
44446
45059
|
this.pivots = [];
|
|
45060
|
+
this.comparisons = [];
|
|
44447
45061
|
if (properties)
|
|
44448
45062
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44449
45063
|
if (properties[keys[i]] != null)
|
|
@@ -44538,6 +45152,14 @@
|
|
|
44538
45152
|
*/
|
|
44539
45153
|
RunPivotReportRequest.prototype.returnPropertyQuota = false;
|
|
44540
45154
|
|
|
45155
|
+
/**
|
|
45156
|
+
* RunPivotReportRequest comparisons.
|
|
45157
|
+
* @member {Array.<google.analytics.data.v1beta.IComparison>} comparisons
|
|
45158
|
+
* @memberof google.analytics.data.v1beta.RunPivotReportRequest
|
|
45159
|
+
* @instance
|
|
45160
|
+
*/
|
|
45161
|
+
RunPivotReportRequest.prototype.comparisons = $util.emptyArray;
|
|
45162
|
+
|
|
44541
45163
|
/**
|
|
44542
45164
|
* Creates a new RunPivotReportRequest instance using the specified properties.
|
|
44543
45165
|
* @function create
|
|
@@ -44588,6 +45210,9 @@
|
|
|
44588
45210
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.keepEmptyRows);
|
|
44589
45211
|
if (message.returnPropertyQuota != null && Object.hasOwnProperty.call(message, "returnPropertyQuota"))
|
|
44590
45212
|
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.returnPropertyQuota);
|
|
45213
|
+
if (message.comparisons != null && message.comparisons.length)
|
|
45214
|
+
for (var i = 0; i < message.comparisons.length; ++i)
|
|
45215
|
+
$root.google.analytics.data.v1beta.Comparison.encode(message.comparisons[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
44591
45216
|
return writer;
|
|
44592
45217
|
};
|
|
44593
45218
|
|
|
@@ -44674,6 +45299,12 @@
|
|
|
44674
45299
|
message.returnPropertyQuota = reader.bool();
|
|
44675
45300
|
break;
|
|
44676
45301
|
}
|
|
45302
|
+
case 12: {
|
|
45303
|
+
if (!(message.comparisons && message.comparisons.length))
|
|
45304
|
+
message.comparisons = [];
|
|
45305
|
+
message.comparisons.push($root.google.analytics.data.v1beta.Comparison.decode(reader, reader.uint32()));
|
|
45306
|
+
break;
|
|
45307
|
+
}
|
|
44677
45308
|
default:
|
|
44678
45309
|
reader.skipType(tag & 7);
|
|
44679
45310
|
break;
|
|
@@ -44772,6 +45403,15 @@
|
|
|
44772
45403
|
if (message.returnPropertyQuota != null && message.hasOwnProperty("returnPropertyQuota"))
|
|
44773
45404
|
if (typeof message.returnPropertyQuota !== "boolean")
|
|
44774
45405
|
return "returnPropertyQuota: boolean expected";
|
|
45406
|
+
if (message.comparisons != null && message.hasOwnProperty("comparisons")) {
|
|
45407
|
+
if (!Array.isArray(message.comparisons))
|
|
45408
|
+
return "comparisons: array expected";
|
|
45409
|
+
for (var i = 0; i < message.comparisons.length; ++i) {
|
|
45410
|
+
var error = $root.google.analytics.data.v1beta.Comparison.verify(message.comparisons[i]);
|
|
45411
|
+
if (error)
|
|
45412
|
+
return "comparisons." + error;
|
|
45413
|
+
}
|
|
45414
|
+
}
|
|
44775
45415
|
return null;
|
|
44776
45416
|
};
|
|
44777
45417
|
|
|
@@ -44850,6 +45490,16 @@
|
|
|
44850
45490
|
message.keepEmptyRows = Boolean(object.keepEmptyRows);
|
|
44851
45491
|
if (object.returnPropertyQuota != null)
|
|
44852
45492
|
message.returnPropertyQuota = Boolean(object.returnPropertyQuota);
|
|
45493
|
+
if (object.comparisons) {
|
|
45494
|
+
if (!Array.isArray(object.comparisons))
|
|
45495
|
+
throw TypeError(".google.analytics.data.v1beta.RunPivotReportRequest.comparisons: array expected");
|
|
45496
|
+
message.comparisons = [];
|
|
45497
|
+
for (var i = 0; i < object.comparisons.length; ++i) {
|
|
45498
|
+
if (typeof object.comparisons[i] !== "object")
|
|
45499
|
+
throw TypeError(".google.analytics.data.v1beta.RunPivotReportRequest.comparisons: object expected");
|
|
45500
|
+
message.comparisons[i] = $root.google.analytics.data.v1beta.Comparison.fromObject(object.comparisons[i]);
|
|
45501
|
+
}
|
|
45502
|
+
}
|
|
44853
45503
|
return message;
|
|
44854
45504
|
};
|
|
44855
45505
|
|
|
@@ -44871,6 +45521,7 @@
|
|
|
44871
45521
|
object.metrics = [];
|
|
44872
45522
|
object.dateRanges = [];
|
|
44873
45523
|
object.pivots = [];
|
|
45524
|
+
object.comparisons = [];
|
|
44874
45525
|
}
|
|
44875
45526
|
if (options.defaults) {
|
|
44876
45527
|
object.property = "";
|
|
@@ -44915,6 +45566,11 @@
|
|
|
44915
45566
|
object.keepEmptyRows = message.keepEmptyRows;
|
|
44916
45567
|
if (message.returnPropertyQuota != null && message.hasOwnProperty("returnPropertyQuota"))
|
|
44917
45568
|
object.returnPropertyQuota = message.returnPropertyQuota;
|
|
45569
|
+
if (message.comparisons && message.comparisons.length) {
|
|
45570
|
+
object.comparisons = [];
|
|
45571
|
+
for (var j = 0; j < message.comparisons.length; ++j)
|
|
45572
|
+
object.comparisons[j] = $root.google.analytics.data.v1beta.Comparison.toObject(message.comparisons[j], options);
|
|
45573
|
+
}
|
|
44918
45574
|
return object;
|
|
44919
45575
|
};
|
|
44920
45576
|
|
|
@@ -52409,6 +53065,300 @@
|
|
|
52409
53065
|
return Metric;
|
|
52410
53066
|
})();
|
|
52411
53067
|
|
|
53068
|
+
v1beta.Comparison = (function() {
|
|
53069
|
+
|
|
53070
|
+
/**
|
|
53071
|
+
* Properties of a Comparison.
|
|
53072
|
+
* @memberof google.analytics.data.v1beta
|
|
53073
|
+
* @interface IComparison
|
|
53074
|
+
* @property {string|null} [name] Comparison name
|
|
53075
|
+
* @property {google.analytics.data.v1beta.IFilterExpression|null} [dimensionFilter] Comparison dimensionFilter
|
|
53076
|
+
* @property {string|null} [comparison] Comparison comparison
|
|
53077
|
+
*/
|
|
53078
|
+
|
|
53079
|
+
/**
|
|
53080
|
+
* Constructs a new Comparison.
|
|
53081
|
+
* @memberof google.analytics.data.v1beta
|
|
53082
|
+
* @classdesc Represents a Comparison.
|
|
53083
|
+
* @implements IComparison
|
|
53084
|
+
* @constructor
|
|
53085
|
+
* @param {google.analytics.data.v1beta.IComparison=} [properties] Properties to set
|
|
53086
|
+
*/
|
|
53087
|
+
function Comparison(properties) {
|
|
53088
|
+
if (properties)
|
|
53089
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
53090
|
+
if (properties[keys[i]] != null)
|
|
53091
|
+
this[keys[i]] = properties[keys[i]];
|
|
53092
|
+
}
|
|
53093
|
+
|
|
53094
|
+
/**
|
|
53095
|
+
* Comparison name.
|
|
53096
|
+
* @member {string|null|undefined} name
|
|
53097
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53098
|
+
* @instance
|
|
53099
|
+
*/
|
|
53100
|
+
Comparison.prototype.name = null;
|
|
53101
|
+
|
|
53102
|
+
/**
|
|
53103
|
+
* Comparison dimensionFilter.
|
|
53104
|
+
* @member {google.analytics.data.v1beta.IFilterExpression|null|undefined} dimensionFilter
|
|
53105
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53106
|
+
* @instance
|
|
53107
|
+
*/
|
|
53108
|
+
Comparison.prototype.dimensionFilter = null;
|
|
53109
|
+
|
|
53110
|
+
/**
|
|
53111
|
+
* Comparison comparison.
|
|
53112
|
+
* @member {string|null|undefined} comparison
|
|
53113
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53114
|
+
* @instance
|
|
53115
|
+
*/
|
|
53116
|
+
Comparison.prototype.comparison = null;
|
|
53117
|
+
|
|
53118
|
+
// OneOf field names bound to virtual getters and setters
|
|
53119
|
+
var $oneOfFields;
|
|
53120
|
+
|
|
53121
|
+
/**
|
|
53122
|
+
* Comparison _name.
|
|
53123
|
+
* @member {"name"|undefined} _name
|
|
53124
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53125
|
+
* @instance
|
|
53126
|
+
*/
|
|
53127
|
+
Object.defineProperty(Comparison.prototype, "_name", {
|
|
53128
|
+
get: $util.oneOfGetter($oneOfFields = ["name"]),
|
|
53129
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
53130
|
+
});
|
|
53131
|
+
|
|
53132
|
+
/**
|
|
53133
|
+
* Comparison oneComparison.
|
|
53134
|
+
* @member {"dimensionFilter"|"comparison"|undefined} oneComparison
|
|
53135
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53136
|
+
* @instance
|
|
53137
|
+
*/
|
|
53138
|
+
Object.defineProperty(Comparison.prototype, "oneComparison", {
|
|
53139
|
+
get: $util.oneOfGetter($oneOfFields = ["dimensionFilter", "comparison"]),
|
|
53140
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
53141
|
+
});
|
|
53142
|
+
|
|
53143
|
+
/**
|
|
53144
|
+
* Creates a new Comparison instance using the specified properties.
|
|
53145
|
+
* @function create
|
|
53146
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53147
|
+
* @static
|
|
53148
|
+
* @param {google.analytics.data.v1beta.IComparison=} [properties] Properties to set
|
|
53149
|
+
* @returns {google.analytics.data.v1beta.Comparison} Comparison instance
|
|
53150
|
+
*/
|
|
53151
|
+
Comparison.create = function create(properties) {
|
|
53152
|
+
return new Comparison(properties);
|
|
53153
|
+
};
|
|
53154
|
+
|
|
53155
|
+
/**
|
|
53156
|
+
* Encodes the specified Comparison message. Does not implicitly {@link google.analytics.data.v1beta.Comparison.verify|verify} messages.
|
|
53157
|
+
* @function encode
|
|
53158
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53159
|
+
* @static
|
|
53160
|
+
* @param {google.analytics.data.v1beta.IComparison} message Comparison message or plain object to encode
|
|
53161
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53162
|
+
* @returns {$protobuf.Writer} Writer
|
|
53163
|
+
*/
|
|
53164
|
+
Comparison.encode = function encode(message, writer) {
|
|
53165
|
+
if (!writer)
|
|
53166
|
+
writer = $Writer.create();
|
|
53167
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
53168
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
53169
|
+
if (message.dimensionFilter != null && Object.hasOwnProperty.call(message, "dimensionFilter"))
|
|
53170
|
+
$root.google.analytics.data.v1beta.FilterExpression.encode(message.dimensionFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
53171
|
+
if (message.comparison != null && Object.hasOwnProperty.call(message, "comparison"))
|
|
53172
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.comparison);
|
|
53173
|
+
return writer;
|
|
53174
|
+
};
|
|
53175
|
+
|
|
53176
|
+
/**
|
|
53177
|
+
* Encodes the specified Comparison message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.Comparison.verify|verify} messages.
|
|
53178
|
+
* @function encodeDelimited
|
|
53179
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53180
|
+
* @static
|
|
53181
|
+
* @param {google.analytics.data.v1beta.IComparison} message Comparison message or plain object to encode
|
|
53182
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53183
|
+
* @returns {$protobuf.Writer} Writer
|
|
53184
|
+
*/
|
|
53185
|
+
Comparison.encodeDelimited = function encodeDelimited(message, writer) {
|
|
53186
|
+
return this.encode(message, writer).ldelim();
|
|
53187
|
+
};
|
|
53188
|
+
|
|
53189
|
+
/**
|
|
53190
|
+
* Decodes a Comparison message from the specified reader or buffer.
|
|
53191
|
+
* @function decode
|
|
53192
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53193
|
+
* @static
|
|
53194
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53195
|
+
* @param {number} [length] Message length if known beforehand
|
|
53196
|
+
* @returns {google.analytics.data.v1beta.Comparison} Comparison
|
|
53197
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53198
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53199
|
+
*/
|
|
53200
|
+
Comparison.decode = function decode(reader, length) {
|
|
53201
|
+
if (!(reader instanceof $Reader))
|
|
53202
|
+
reader = $Reader.create(reader);
|
|
53203
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.Comparison();
|
|
53204
|
+
while (reader.pos < end) {
|
|
53205
|
+
var tag = reader.uint32();
|
|
53206
|
+
switch (tag >>> 3) {
|
|
53207
|
+
case 1: {
|
|
53208
|
+
message.name = reader.string();
|
|
53209
|
+
break;
|
|
53210
|
+
}
|
|
53211
|
+
case 2: {
|
|
53212
|
+
message.dimensionFilter = $root.google.analytics.data.v1beta.FilterExpression.decode(reader, reader.uint32());
|
|
53213
|
+
break;
|
|
53214
|
+
}
|
|
53215
|
+
case 3: {
|
|
53216
|
+
message.comparison = reader.string();
|
|
53217
|
+
break;
|
|
53218
|
+
}
|
|
53219
|
+
default:
|
|
53220
|
+
reader.skipType(tag & 7);
|
|
53221
|
+
break;
|
|
53222
|
+
}
|
|
53223
|
+
}
|
|
53224
|
+
return message;
|
|
53225
|
+
};
|
|
53226
|
+
|
|
53227
|
+
/**
|
|
53228
|
+
* Decodes a Comparison message from the specified reader or buffer, length delimited.
|
|
53229
|
+
* @function decodeDelimited
|
|
53230
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53231
|
+
* @static
|
|
53232
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53233
|
+
* @returns {google.analytics.data.v1beta.Comparison} Comparison
|
|
53234
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53235
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53236
|
+
*/
|
|
53237
|
+
Comparison.decodeDelimited = function decodeDelimited(reader) {
|
|
53238
|
+
if (!(reader instanceof $Reader))
|
|
53239
|
+
reader = new $Reader(reader);
|
|
53240
|
+
return this.decode(reader, reader.uint32());
|
|
53241
|
+
};
|
|
53242
|
+
|
|
53243
|
+
/**
|
|
53244
|
+
* Verifies a Comparison message.
|
|
53245
|
+
* @function verify
|
|
53246
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53247
|
+
* @static
|
|
53248
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
53249
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
53250
|
+
*/
|
|
53251
|
+
Comparison.verify = function verify(message) {
|
|
53252
|
+
if (typeof message !== "object" || message === null)
|
|
53253
|
+
return "object expected";
|
|
53254
|
+
var properties = {};
|
|
53255
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
53256
|
+
properties._name = 1;
|
|
53257
|
+
if (!$util.isString(message.name))
|
|
53258
|
+
return "name: string expected";
|
|
53259
|
+
}
|
|
53260
|
+
if (message.dimensionFilter != null && message.hasOwnProperty("dimensionFilter")) {
|
|
53261
|
+
properties.oneComparison = 1;
|
|
53262
|
+
{
|
|
53263
|
+
var error = $root.google.analytics.data.v1beta.FilterExpression.verify(message.dimensionFilter);
|
|
53264
|
+
if (error)
|
|
53265
|
+
return "dimensionFilter." + error;
|
|
53266
|
+
}
|
|
53267
|
+
}
|
|
53268
|
+
if (message.comparison != null && message.hasOwnProperty("comparison")) {
|
|
53269
|
+
if (properties.oneComparison === 1)
|
|
53270
|
+
return "oneComparison: multiple values";
|
|
53271
|
+
properties.oneComparison = 1;
|
|
53272
|
+
if (!$util.isString(message.comparison))
|
|
53273
|
+
return "comparison: string expected";
|
|
53274
|
+
}
|
|
53275
|
+
return null;
|
|
53276
|
+
};
|
|
53277
|
+
|
|
53278
|
+
/**
|
|
53279
|
+
* Creates a Comparison message from a plain object. Also converts values to their respective internal types.
|
|
53280
|
+
* @function fromObject
|
|
53281
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53282
|
+
* @static
|
|
53283
|
+
* @param {Object.<string,*>} object Plain object
|
|
53284
|
+
* @returns {google.analytics.data.v1beta.Comparison} Comparison
|
|
53285
|
+
*/
|
|
53286
|
+
Comparison.fromObject = function fromObject(object) {
|
|
53287
|
+
if (object instanceof $root.google.analytics.data.v1beta.Comparison)
|
|
53288
|
+
return object;
|
|
53289
|
+
var message = new $root.google.analytics.data.v1beta.Comparison();
|
|
53290
|
+
if (object.name != null)
|
|
53291
|
+
message.name = String(object.name);
|
|
53292
|
+
if (object.dimensionFilter != null) {
|
|
53293
|
+
if (typeof object.dimensionFilter !== "object")
|
|
53294
|
+
throw TypeError(".google.analytics.data.v1beta.Comparison.dimensionFilter: object expected");
|
|
53295
|
+
message.dimensionFilter = $root.google.analytics.data.v1beta.FilterExpression.fromObject(object.dimensionFilter);
|
|
53296
|
+
}
|
|
53297
|
+
if (object.comparison != null)
|
|
53298
|
+
message.comparison = String(object.comparison);
|
|
53299
|
+
return message;
|
|
53300
|
+
};
|
|
53301
|
+
|
|
53302
|
+
/**
|
|
53303
|
+
* Creates a plain object from a Comparison message. Also converts values to other types if specified.
|
|
53304
|
+
* @function toObject
|
|
53305
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53306
|
+
* @static
|
|
53307
|
+
* @param {google.analytics.data.v1beta.Comparison} message Comparison
|
|
53308
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
53309
|
+
* @returns {Object.<string,*>} Plain object
|
|
53310
|
+
*/
|
|
53311
|
+
Comparison.toObject = function toObject(message, options) {
|
|
53312
|
+
if (!options)
|
|
53313
|
+
options = {};
|
|
53314
|
+
var object = {};
|
|
53315
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
53316
|
+
object.name = message.name;
|
|
53317
|
+
if (options.oneofs)
|
|
53318
|
+
object._name = "name";
|
|
53319
|
+
}
|
|
53320
|
+
if (message.dimensionFilter != null && message.hasOwnProperty("dimensionFilter")) {
|
|
53321
|
+
object.dimensionFilter = $root.google.analytics.data.v1beta.FilterExpression.toObject(message.dimensionFilter, options);
|
|
53322
|
+
if (options.oneofs)
|
|
53323
|
+
object.oneComparison = "dimensionFilter";
|
|
53324
|
+
}
|
|
53325
|
+
if (message.comparison != null && message.hasOwnProperty("comparison")) {
|
|
53326
|
+
object.comparison = message.comparison;
|
|
53327
|
+
if (options.oneofs)
|
|
53328
|
+
object.oneComparison = "comparison";
|
|
53329
|
+
}
|
|
53330
|
+
return object;
|
|
53331
|
+
};
|
|
53332
|
+
|
|
53333
|
+
/**
|
|
53334
|
+
* Converts this Comparison to JSON.
|
|
53335
|
+
* @function toJSON
|
|
53336
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53337
|
+
* @instance
|
|
53338
|
+
* @returns {Object.<string,*>} JSON object
|
|
53339
|
+
*/
|
|
53340
|
+
Comparison.prototype.toJSON = function toJSON() {
|
|
53341
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
53342
|
+
};
|
|
53343
|
+
|
|
53344
|
+
/**
|
|
53345
|
+
* Gets the default type url for Comparison
|
|
53346
|
+
* @function getTypeUrl
|
|
53347
|
+
* @memberof google.analytics.data.v1beta.Comparison
|
|
53348
|
+
* @static
|
|
53349
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
53350
|
+
* @returns {string} The default type url
|
|
53351
|
+
*/
|
|
53352
|
+
Comparison.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
53353
|
+
if (typeUrlPrefix === undefined) {
|
|
53354
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
53355
|
+
}
|
|
53356
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.Comparison";
|
|
53357
|
+
};
|
|
53358
|
+
|
|
53359
|
+
return Comparison;
|
|
53360
|
+
})();
|
|
53361
|
+
|
|
52412
53362
|
v1beta.FilterExpression = (function() {
|
|
52413
53363
|
|
|
52414
53364
|
/**
|
|
@@ -61798,6 +62748,256 @@
|
|
|
61798
62748
|
return MetricMetadata;
|
|
61799
62749
|
})();
|
|
61800
62750
|
|
|
62751
|
+
v1beta.ComparisonMetadata = (function() {
|
|
62752
|
+
|
|
62753
|
+
/**
|
|
62754
|
+
* Properties of a ComparisonMetadata.
|
|
62755
|
+
* @memberof google.analytics.data.v1beta
|
|
62756
|
+
* @interface IComparisonMetadata
|
|
62757
|
+
* @property {string|null} [apiName] ComparisonMetadata apiName
|
|
62758
|
+
* @property {string|null} [uiName] ComparisonMetadata uiName
|
|
62759
|
+
* @property {string|null} [description] ComparisonMetadata description
|
|
62760
|
+
*/
|
|
62761
|
+
|
|
62762
|
+
/**
|
|
62763
|
+
* Constructs a new ComparisonMetadata.
|
|
62764
|
+
* @memberof google.analytics.data.v1beta
|
|
62765
|
+
* @classdesc Represents a ComparisonMetadata.
|
|
62766
|
+
* @implements IComparisonMetadata
|
|
62767
|
+
* @constructor
|
|
62768
|
+
* @param {google.analytics.data.v1beta.IComparisonMetadata=} [properties] Properties to set
|
|
62769
|
+
*/
|
|
62770
|
+
function ComparisonMetadata(properties) {
|
|
62771
|
+
if (properties)
|
|
62772
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62773
|
+
if (properties[keys[i]] != null)
|
|
62774
|
+
this[keys[i]] = properties[keys[i]];
|
|
62775
|
+
}
|
|
62776
|
+
|
|
62777
|
+
/**
|
|
62778
|
+
* ComparisonMetadata apiName.
|
|
62779
|
+
* @member {string} apiName
|
|
62780
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62781
|
+
* @instance
|
|
62782
|
+
*/
|
|
62783
|
+
ComparisonMetadata.prototype.apiName = "";
|
|
62784
|
+
|
|
62785
|
+
/**
|
|
62786
|
+
* ComparisonMetadata uiName.
|
|
62787
|
+
* @member {string} uiName
|
|
62788
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62789
|
+
* @instance
|
|
62790
|
+
*/
|
|
62791
|
+
ComparisonMetadata.prototype.uiName = "";
|
|
62792
|
+
|
|
62793
|
+
/**
|
|
62794
|
+
* ComparisonMetadata description.
|
|
62795
|
+
* @member {string} description
|
|
62796
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62797
|
+
* @instance
|
|
62798
|
+
*/
|
|
62799
|
+
ComparisonMetadata.prototype.description = "";
|
|
62800
|
+
|
|
62801
|
+
/**
|
|
62802
|
+
* Creates a new ComparisonMetadata instance using the specified properties.
|
|
62803
|
+
* @function create
|
|
62804
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62805
|
+
* @static
|
|
62806
|
+
* @param {google.analytics.data.v1beta.IComparisonMetadata=} [properties] Properties to set
|
|
62807
|
+
* @returns {google.analytics.data.v1beta.ComparisonMetadata} ComparisonMetadata instance
|
|
62808
|
+
*/
|
|
62809
|
+
ComparisonMetadata.create = function create(properties) {
|
|
62810
|
+
return new ComparisonMetadata(properties);
|
|
62811
|
+
};
|
|
62812
|
+
|
|
62813
|
+
/**
|
|
62814
|
+
* Encodes the specified ComparisonMetadata message. Does not implicitly {@link google.analytics.data.v1beta.ComparisonMetadata.verify|verify} messages.
|
|
62815
|
+
* @function encode
|
|
62816
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62817
|
+
* @static
|
|
62818
|
+
* @param {google.analytics.data.v1beta.IComparisonMetadata} message ComparisonMetadata message or plain object to encode
|
|
62819
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62820
|
+
* @returns {$protobuf.Writer} Writer
|
|
62821
|
+
*/
|
|
62822
|
+
ComparisonMetadata.encode = function encode(message, writer) {
|
|
62823
|
+
if (!writer)
|
|
62824
|
+
writer = $Writer.create();
|
|
62825
|
+
if (message.apiName != null && Object.hasOwnProperty.call(message, "apiName"))
|
|
62826
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.apiName);
|
|
62827
|
+
if (message.uiName != null && Object.hasOwnProperty.call(message, "uiName"))
|
|
62828
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.uiName);
|
|
62829
|
+
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
62830
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
|
|
62831
|
+
return writer;
|
|
62832
|
+
};
|
|
62833
|
+
|
|
62834
|
+
/**
|
|
62835
|
+
* Encodes the specified ComparisonMetadata message, length delimited. Does not implicitly {@link google.analytics.data.v1beta.ComparisonMetadata.verify|verify} messages.
|
|
62836
|
+
* @function encodeDelimited
|
|
62837
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62838
|
+
* @static
|
|
62839
|
+
* @param {google.analytics.data.v1beta.IComparisonMetadata} message ComparisonMetadata message or plain object to encode
|
|
62840
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62841
|
+
* @returns {$protobuf.Writer} Writer
|
|
62842
|
+
*/
|
|
62843
|
+
ComparisonMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62844
|
+
return this.encode(message, writer).ldelim();
|
|
62845
|
+
};
|
|
62846
|
+
|
|
62847
|
+
/**
|
|
62848
|
+
* Decodes a ComparisonMetadata message from the specified reader or buffer.
|
|
62849
|
+
* @function decode
|
|
62850
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62851
|
+
* @static
|
|
62852
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62853
|
+
* @param {number} [length] Message length if known beforehand
|
|
62854
|
+
* @returns {google.analytics.data.v1beta.ComparisonMetadata} ComparisonMetadata
|
|
62855
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62856
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62857
|
+
*/
|
|
62858
|
+
ComparisonMetadata.decode = function decode(reader, length) {
|
|
62859
|
+
if (!(reader instanceof $Reader))
|
|
62860
|
+
reader = $Reader.create(reader);
|
|
62861
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1beta.ComparisonMetadata();
|
|
62862
|
+
while (reader.pos < end) {
|
|
62863
|
+
var tag = reader.uint32();
|
|
62864
|
+
switch (tag >>> 3) {
|
|
62865
|
+
case 1: {
|
|
62866
|
+
message.apiName = reader.string();
|
|
62867
|
+
break;
|
|
62868
|
+
}
|
|
62869
|
+
case 2: {
|
|
62870
|
+
message.uiName = reader.string();
|
|
62871
|
+
break;
|
|
62872
|
+
}
|
|
62873
|
+
case 3: {
|
|
62874
|
+
message.description = reader.string();
|
|
62875
|
+
break;
|
|
62876
|
+
}
|
|
62877
|
+
default:
|
|
62878
|
+
reader.skipType(tag & 7);
|
|
62879
|
+
break;
|
|
62880
|
+
}
|
|
62881
|
+
}
|
|
62882
|
+
return message;
|
|
62883
|
+
};
|
|
62884
|
+
|
|
62885
|
+
/**
|
|
62886
|
+
* Decodes a ComparisonMetadata message from the specified reader or buffer, length delimited.
|
|
62887
|
+
* @function decodeDelimited
|
|
62888
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62889
|
+
* @static
|
|
62890
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62891
|
+
* @returns {google.analytics.data.v1beta.ComparisonMetadata} ComparisonMetadata
|
|
62892
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62893
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62894
|
+
*/
|
|
62895
|
+
ComparisonMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
62896
|
+
if (!(reader instanceof $Reader))
|
|
62897
|
+
reader = new $Reader(reader);
|
|
62898
|
+
return this.decode(reader, reader.uint32());
|
|
62899
|
+
};
|
|
62900
|
+
|
|
62901
|
+
/**
|
|
62902
|
+
* Verifies a ComparisonMetadata message.
|
|
62903
|
+
* @function verify
|
|
62904
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62905
|
+
* @static
|
|
62906
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62907
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62908
|
+
*/
|
|
62909
|
+
ComparisonMetadata.verify = function verify(message) {
|
|
62910
|
+
if (typeof message !== "object" || message === null)
|
|
62911
|
+
return "object expected";
|
|
62912
|
+
if (message.apiName != null && message.hasOwnProperty("apiName"))
|
|
62913
|
+
if (!$util.isString(message.apiName))
|
|
62914
|
+
return "apiName: string expected";
|
|
62915
|
+
if (message.uiName != null && message.hasOwnProperty("uiName"))
|
|
62916
|
+
if (!$util.isString(message.uiName))
|
|
62917
|
+
return "uiName: string expected";
|
|
62918
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
62919
|
+
if (!$util.isString(message.description))
|
|
62920
|
+
return "description: string expected";
|
|
62921
|
+
return null;
|
|
62922
|
+
};
|
|
62923
|
+
|
|
62924
|
+
/**
|
|
62925
|
+
* Creates a ComparisonMetadata message from a plain object. Also converts values to their respective internal types.
|
|
62926
|
+
* @function fromObject
|
|
62927
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62928
|
+
* @static
|
|
62929
|
+
* @param {Object.<string,*>} object Plain object
|
|
62930
|
+
* @returns {google.analytics.data.v1beta.ComparisonMetadata} ComparisonMetadata
|
|
62931
|
+
*/
|
|
62932
|
+
ComparisonMetadata.fromObject = function fromObject(object) {
|
|
62933
|
+
if (object instanceof $root.google.analytics.data.v1beta.ComparisonMetadata)
|
|
62934
|
+
return object;
|
|
62935
|
+
var message = new $root.google.analytics.data.v1beta.ComparisonMetadata();
|
|
62936
|
+
if (object.apiName != null)
|
|
62937
|
+
message.apiName = String(object.apiName);
|
|
62938
|
+
if (object.uiName != null)
|
|
62939
|
+
message.uiName = String(object.uiName);
|
|
62940
|
+
if (object.description != null)
|
|
62941
|
+
message.description = String(object.description);
|
|
62942
|
+
return message;
|
|
62943
|
+
};
|
|
62944
|
+
|
|
62945
|
+
/**
|
|
62946
|
+
* Creates a plain object from a ComparisonMetadata message. Also converts values to other types if specified.
|
|
62947
|
+
* @function toObject
|
|
62948
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62949
|
+
* @static
|
|
62950
|
+
* @param {google.analytics.data.v1beta.ComparisonMetadata} message ComparisonMetadata
|
|
62951
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62952
|
+
* @returns {Object.<string,*>} Plain object
|
|
62953
|
+
*/
|
|
62954
|
+
ComparisonMetadata.toObject = function toObject(message, options) {
|
|
62955
|
+
if (!options)
|
|
62956
|
+
options = {};
|
|
62957
|
+
var object = {};
|
|
62958
|
+
if (options.defaults) {
|
|
62959
|
+
object.apiName = "";
|
|
62960
|
+
object.uiName = "";
|
|
62961
|
+
object.description = "";
|
|
62962
|
+
}
|
|
62963
|
+
if (message.apiName != null && message.hasOwnProperty("apiName"))
|
|
62964
|
+
object.apiName = message.apiName;
|
|
62965
|
+
if (message.uiName != null && message.hasOwnProperty("uiName"))
|
|
62966
|
+
object.uiName = message.uiName;
|
|
62967
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
62968
|
+
object.description = message.description;
|
|
62969
|
+
return object;
|
|
62970
|
+
};
|
|
62971
|
+
|
|
62972
|
+
/**
|
|
62973
|
+
* Converts this ComparisonMetadata to JSON.
|
|
62974
|
+
* @function toJSON
|
|
62975
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62976
|
+
* @instance
|
|
62977
|
+
* @returns {Object.<string,*>} JSON object
|
|
62978
|
+
*/
|
|
62979
|
+
ComparisonMetadata.prototype.toJSON = function toJSON() {
|
|
62980
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62981
|
+
};
|
|
62982
|
+
|
|
62983
|
+
/**
|
|
62984
|
+
* Gets the default type url for ComparisonMetadata
|
|
62985
|
+
* @function getTypeUrl
|
|
62986
|
+
* @memberof google.analytics.data.v1beta.ComparisonMetadata
|
|
62987
|
+
* @static
|
|
62988
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
62989
|
+
* @returns {string} The default type url
|
|
62990
|
+
*/
|
|
62991
|
+
ComparisonMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
62992
|
+
if (typeUrlPrefix === undefined) {
|
|
62993
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
62994
|
+
}
|
|
62995
|
+
return typeUrlPrefix + "/google.analytics.data.v1beta.ComparisonMetadata";
|
|
62996
|
+
};
|
|
62997
|
+
|
|
62998
|
+
return ComparisonMetadata;
|
|
62999
|
+
})();
|
|
63000
|
+
|
|
61801
63001
|
v1beta.DimensionCompatibility = (function() {
|
|
61802
63002
|
|
|
61803
63003
|
/**
|