@google-analytics/data 4.8.0 → 4.10.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 +59 -5
- package/build/protos/google/analytics/data/v1alpha/data.proto +23 -3
- package/build/protos/protos.d.ts +250 -0
- package/build/protos/protos.js +613 -0
- package/build/protos/protos.json +85 -0
- package/build/src/v1alpha/alpha_analytics_data_client.d.ts +49 -3
- package/build/src/v1alpha/alpha_analytics_data_client.js +44 -0
- package/build/src/v1alpha/alpha_analytics_data_client_config.json +5 -0
- package/package.json +1 -1
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
|
/**
|
|
@@ -19802,6 +20326,7 @@
|
|
|
19802
20326
|
* @property {string|null} [currencyCode] ReportDefinition currencyCode
|
|
19803
20327
|
* @property {google.analytics.data.v1alpha.ICohortSpec|null} [cohortSpec] ReportDefinition cohortSpec
|
|
19804
20328
|
* @property {boolean|null} [keepEmptyRows] ReportDefinition keepEmptyRows
|
|
20329
|
+
* @property {google.analytics.data.v1alpha.SamplingLevel|null} [samplingLevel] ReportDefinition samplingLevel
|
|
19805
20330
|
*/
|
|
19806
20331
|
|
|
19807
20332
|
/**
|
|
@@ -19920,6 +20445,28 @@
|
|
|
19920
20445
|
*/
|
|
19921
20446
|
ReportDefinition.prototype.keepEmptyRows = false;
|
|
19922
20447
|
|
|
20448
|
+
/**
|
|
20449
|
+
* ReportDefinition samplingLevel.
|
|
20450
|
+
* @member {google.analytics.data.v1alpha.SamplingLevel|null|undefined} samplingLevel
|
|
20451
|
+
* @memberof google.analytics.data.v1alpha.ReportTask.ReportDefinition
|
|
20452
|
+
* @instance
|
|
20453
|
+
*/
|
|
20454
|
+
ReportDefinition.prototype.samplingLevel = null;
|
|
20455
|
+
|
|
20456
|
+
// OneOf field names bound to virtual getters and setters
|
|
20457
|
+
var $oneOfFields;
|
|
20458
|
+
|
|
20459
|
+
/**
|
|
20460
|
+
* ReportDefinition _samplingLevel.
|
|
20461
|
+
* @member {"samplingLevel"|undefined} _samplingLevel
|
|
20462
|
+
* @memberof google.analytics.data.v1alpha.ReportTask.ReportDefinition
|
|
20463
|
+
* @instance
|
|
20464
|
+
*/
|
|
20465
|
+
Object.defineProperty(ReportDefinition.prototype, "_samplingLevel", {
|
|
20466
|
+
get: $util.oneOfGetter($oneOfFields = ["samplingLevel"]),
|
|
20467
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20468
|
+
});
|
|
20469
|
+
|
|
19923
20470
|
/**
|
|
19924
20471
|
* Creates a new ReportDefinition instance using the specified properties.
|
|
19925
20472
|
* @function create
|
|
@@ -19976,6 +20523,8 @@
|
|
|
19976
20523
|
$root.google.analytics.data.v1alpha.CohortSpec.encode(message.cohortSpec, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
19977
20524
|
if (message.keepEmptyRows != null && Object.hasOwnProperty.call(message, "keepEmptyRows"))
|
|
19978
20525
|
writer.uint32(/* id 13, wireType 0 =*/104).bool(message.keepEmptyRows);
|
|
20526
|
+
if (message.samplingLevel != null && Object.hasOwnProperty.call(message, "samplingLevel"))
|
|
20527
|
+
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.samplingLevel);
|
|
19979
20528
|
return writer;
|
|
19980
20529
|
};
|
|
19981
20530
|
|
|
@@ -20073,6 +20622,10 @@
|
|
|
20073
20622
|
message.keepEmptyRows = reader.bool();
|
|
20074
20623
|
break;
|
|
20075
20624
|
}
|
|
20625
|
+
case 14: {
|
|
20626
|
+
message.samplingLevel = reader.int32();
|
|
20627
|
+
break;
|
|
20628
|
+
}
|
|
20076
20629
|
default:
|
|
20077
20630
|
reader.skipType(tag & 7);
|
|
20078
20631
|
break;
|
|
@@ -20108,6 +20661,7 @@
|
|
|
20108
20661
|
ReportDefinition.verify = function verify(message) {
|
|
20109
20662
|
if (typeof message !== "object" || message === null)
|
|
20110
20663
|
return "object expected";
|
|
20664
|
+
var properties = {};
|
|
20111
20665
|
if (message.dimensions != null && message.hasOwnProperty("dimensions")) {
|
|
20112
20666
|
if (!Array.isArray(message.dimensions))
|
|
20113
20667
|
return "dimensions: array expected";
|
|
@@ -20186,6 +20740,18 @@
|
|
|
20186
20740
|
if (message.keepEmptyRows != null && message.hasOwnProperty("keepEmptyRows"))
|
|
20187
20741
|
if (typeof message.keepEmptyRows !== "boolean")
|
|
20188
20742
|
return "keepEmptyRows: boolean expected";
|
|
20743
|
+
if (message.samplingLevel != null && message.hasOwnProperty("samplingLevel")) {
|
|
20744
|
+
properties._samplingLevel = 1;
|
|
20745
|
+
switch (message.samplingLevel) {
|
|
20746
|
+
default:
|
|
20747
|
+
return "samplingLevel: enum value expected";
|
|
20748
|
+
case 0:
|
|
20749
|
+
case 1:
|
|
20750
|
+
case 2:
|
|
20751
|
+
case 3:
|
|
20752
|
+
break;
|
|
20753
|
+
}
|
|
20754
|
+
}
|
|
20189
20755
|
return null;
|
|
20190
20756
|
};
|
|
20191
20757
|
|
|
@@ -20311,6 +20877,30 @@
|
|
|
20311
20877
|
}
|
|
20312
20878
|
if (object.keepEmptyRows != null)
|
|
20313
20879
|
message.keepEmptyRows = Boolean(object.keepEmptyRows);
|
|
20880
|
+
switch (object.samplingLevel) {
|
|
20881
|
+
default:
|
|
20882
|
+
if (typeof object.samplingLevel === "number") {
|
|
20883
|
+
message.samplingLevel = object.samplingLevel;
|
|
20884
|
+
break;
|
|
20885
|
+
}
|
|
20886
|
+
break;
|
|
20887
|
+
case "SAMPLING_LEVEL_UNSPECIFIED":
|
|
20888
|
+
case 0:
|
|
20889
|
+
message.samplingLevel = 0;
|
|
20890
|
+
break;
|
|
20891
|
+
case "LOW":
|
|
20892
|
+
case 1:
|
|
20893
|
+
message.samplingLevel = 1;
|
|
20894
|
+
break;
|
|
20895
|
+
case "MEDIUM":
|
|
20896
|
+
case 2:
|
|
20897
|
+
message.samplingLevel = 2;
|
|
20898
|
+
break;
|
|
20899
|
+
case "UNSAMPLED":
|
|
20900
|
+
case 3:
|
|
20901
|
+
message.samplingLevel = 3;
|
|
20902
|
+
break;
|
|
20903
|
+
}
|
|
20314
20904
|
return message;
|
|
20315
20905
|
};
|
|
20316
20906
|
|
|
@@ -20396,6 +20986,11 @@
|
|
|
20396
20986
|
object.cohortSpec = $root.google.analytics.data.v1alpha.CohortSpec.toObject(message.cohortSpec, options);
|
|
20397
20987
|
if (message.keepEmptyRows != null && message.hasOwnProperty("keepEmptyRows"))
|
|
20398
20988
|
object.keepEmptyRows = message.keepEmptyRows;
|
|
20989
|
+
if (message.samplingLevel != null && message.hasOwnProperty("samplingLevel")) {
|
|
20990
|
+
object.samplingLevel = options.enums === String ? $root.google.analytics.data.v1alpha.SamplingLevel[message.samplingLevel] === undefined ? message.samplingLevel : $root.google.analytics.data.v1alpha.SamplingLevel[message.samplingLevel] : message.samplingLevel;
|
|
20991
|
+
if (options.oneofs)
|
|
20992
|
+
object._samplingLevel = "samplingLevel";
|
|
20993
|
+
}
|
|
20399
20994
|
return object;
|
|
20400
20995
|
};
|
|
20401
20996
|
|
|
@@ -41804,6 +42399,24 @@
|
|
|
41804
42399
|
return values;
|
|
41805
42400
|
})();
|
|
41806
42401
|
|
|
42402
|
+
/**
|
|
42403
|
+
* SamplingLevel enum.
|
|
42404
|
+
* @name google.analytics.data.v1alpha.SamplingLevel
|
|
42405
|
+
* @enum {number}
|
|
42406
|
+
* @property {number} SAMPLING_LEVEL_UNSPECIFIED=0 SAMPLING_LEVEL_UNSPECIFIED value
|
|
42407
|
+
* @property {number} LOW=1 LOW value
|
|
42408
|
+
* @property {number} MEDIUM=2 MEDIUM value
|
|
42409
|
+
* @property {number} UNSAMPLED=3 UNSAMPLED value
|
|
42410
|
+
*/
|
|
42411
|
+
v1alpha.SamplingLevel = (function() {
|
|
42412
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
42413
|
+
values[valuesById[0] = "SAMPLING_LEVEL_UNSPECIFIED"] = 0;
|
|
42414
|
+
values[valuesById[1] = "LOW"] = 1;
|
|
42415
|
+
values[valuesById[2] = "MEDIUM"] = 2;
|
|
42416
|
+
values[valuesById[3] = "UNSAMPLED"] = 3;
|
|
42417
|
+
return values;
|
|
42418
|
+
})();
|
|
42419
|
+
|
|
41807
42420
|
return v1alpha;
|
|
41808
42421
|
})();
|
|
41809
42422
|
|