@google-analytics/data 4.11.0 → 4.12.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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.12.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.11.0...data-v4.12.0) (2024-12-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* [analytics-data] add the `EmptyFilter` type to the Data API v1alpha ([#5845](https://github.com/googleapis/google-cloud-node/issues/5845)) ([1bcd241](https://github.com/googleapis/google-cloud-node/commit/1bcd2412bd72ce3c3d9b03128c44138964c8a0e6))
|
|
9
|
+
|
|
3
10
|
## [4.11.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.10.0...data-v4.11.0) (2024-11-21)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -201,6 +201,9 @@ message Filter {
|
|
|
201
201
|
|
|
202
202
|
// A filter for between two values.
|
|
203
203
|
BetweenFilter between_filter = 5;
|
|
204
|
+
|
|
205
|
+
// A filter for empty values such as "(not set)" and "" values.
|
|
206
|
+
EmptyFilter empty_filter = 6;
|
|
204
207
|
}
|
|
205
208
|
}
|
|
206
209
|
|
|
@@ -341,6 +344,9 @@ message BetweenFilter {
|
|
|
341
344
|
NumericValue to_value = 2;
|
|
342
345
|
}
|
|
343
346
|
|
|
347
|
+
// Filter for empty values.
|
|
348
|
+
message EmptyFilter {}
|
|
349
|
+
|
|
344
350
|
// To represent a number.
|
|
345
351
|
message NumericValue {
|
|
346
352
|
// One of a numeric value
|
|
@@ -554,6 +560,16 @@ message ResponseMetaData {
|
|
|
554
560
|
// Demographics and
|
|
555
561
|
// Interests](https://support.google.com/analytics/answer/2799357).
|
|
556
562
|
optional bool subject_to_thresholding = 8;
|
|
563
|
+
|
|
564
|
+
// If this report's results are
|
|
565
|
+
// [sampled](https://support.google.com/analytics/answer/13331292), this
|
|
566
|
+
// describes the percentage of events used in this report. One
|
|
567
|
+
// `samplingMetadatas` is populated for each date range. Each
|
|
568
|
+
// `samplingMetadatas` corresponds to a date range in the order that date
|
|
569
|
+
// ranges were specified in the request.
|
|
570
|
+
//
|
|
571
|
+
// However if the results are not sampled, this field will not be defined.
|
|
572
|
+
repeated SamplingMetadata sampling_metadatas = 9;
|
|
557
573
|
}
|
|
558
574
|
|
|
559
575
|
// Describes a dimension column in the report. Dimensions requested in a report
|
|
@@ -1472,8 +1488,8 @@ message FunnelResponseMetadata {
|
|
|
1472
1488
|
// [sampled](https://support.google.com/analytics/answer/13331292), this
|
|
1473
1489
|
// describes what percentage of events were used in this funnel report. One
|
|
1474
1490
|
// `samplingMetadatas` is populated for each date range. Each
|
|
1475
|
-
// `samplingMetadatas` corresponds to a date range in order that date
|
|
1476
|
-
// were specified in the request.
|
|
1491
|
+
// `samplingMetadatas` corresponds to a date range in the order that date
|
|
1492
|
+
// ranges were specified in the request.
|
|
1477
1493
|
//
|
|
1478
1494
|
// However if the results are not sampled, this field will not be defined.
|
|
1479
1495
|
repeated SamplingMetadata sampling_metadatas = 1;
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -9518,6 +9518,9 @@ export namespace google {
|
|
|
9518
9518
|
|
|
9519
9519
|
/** Filter betweenFilter */
|
|
9520
9520
|
betweenFilter?: (google.analytics.data.v1alpha.IBetweenFilter|null);
|
|
9521
|
+
|
|
9522
|
+
/** Filter emptyFilter */
|
|
9523
|
+
emptyFilter?: (google.analytics.data.v1alpha.IEmptyFilter|null);
|
|
9521
9524
|
}
|
|
9522
9525
|
|
|
9523
9526
|
/** Represents a Filter. */
|
|
@@ -9544,8 +9547,11 @@ export namespace google {
|
|
|
9544
9547
|
/** Filter betweenFilter. */
|
|
9545
9548
|
public betweenFilter?: (google.analytics.data.v1alpha.IBetweenFilter|null);
|
|
9546
9549
|
|
|
9550
|
+
/** Filter emptyFilter. */
|
|
9551
|
+
public emptyFilter?: (google.analytics.data.v1alpha.IEmptyFilter|null);
|
|
9552
|
+
|
|
9547
9553
|
/** Filter oneFilter. */
|
|
9548
|
-
public oneFilter?: ("stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter");
|
|
9554
|
+
public oneFilter?: ("stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|"emptyFilter");
|
|
9549
9555
|
|
|
9550
9556
|
/**
|
|
9551
9557
|
* Creates a new Filter instance using the specified properties.
|
|
@@ -10396,6 +10402,97 @@ export namespace google {
|
|
|
10396
10402
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
10397
10403
|
}
|
|
10398
10404
|
|
|
10405
|
+
/** Properties of an EmptyFilter. */
|
|
10406
|
+
interface IEmptyFilter {
|
|
10407
|
+
}
|
|
10408
|
+
|
|
10409
|
+
/** Represents an EmptyFilter. */
|
|
10410
|
+
class EmptyFilter implements IEmptyFilter {
|
|
10411
|
+
|
|
10412
|
+
/**
|
|
10413
|
+
* Constructs a new EmptyFilter.
|
|
10414
|
+
* @param [properties] Properties to set
|
|
10415
|
+
*/
|
|
10416
|
+
constructor(properties?: google.analytics.data.v1alpha.IEmptyFilter);
|
|
10417
|
+
|
|
10418
|
+
/**
|
|
10419
|
+
* Creates a new EmptyFilter instance using the specified properties.
|
|
10420
|
+
* @param [properties] Properties to set
|
|
10421
|
+
* @returns EmptyFilter instance
|
|
10422
|
+
*/
|
|
10423
|
+
public static create(properties?: google.analytics.data.v1alpha.IEmptyFilter): google.analytics.data.v1alpha.EmptyFilter;
|
|
10424
|
+
|
|
10425
|
+
/**
|
|
10426
|
+
* Encodes the specified EmptyFilter message. Does not implicitly {@link google.analytics.data.v1alpha.EmptyFilter.verify|verify} messages.
|
|
10427
|
+
* @param message EmptyFilter message or plain object to encode
|
|
10428
|
+
* @param [writer] Writer to encode to
|
|
10429
|
+
* @returns Writer
|
|
10430
|
+
*/
|
|
10431
|
+
public static encode(message: google.analytics.data.v1alpha.IEmptyFilter, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10432
|
+
|
|
10433
|
+
/**
|
|
10434
|
+
* Encodes the specified EmptyFilter message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.EmptyFilter.verify|verify} messages.
|
|
10435
|
+
* @param message EmptyFilter message or plain object to encode
|
|
10436
|
+
* @param [writer] Writer to encode to
|
|
10437
|
+
* @returns Writer
|
|
10438
|
+
*/
|
|
10439
|
+
public static encodeDelimited(message: google.analytics.data.v1alpha.IEmptyFilter, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10440
|
+
|
|
10441
|
+
/**
|
|
10442
|
+
* Decodes an EmptyFilter message from the specified reader or buffer.
|
|
10443
|
+
* @param reader Reader or buffer to decode from
|
|
10444
|
+
* @param [length] Message length if known beforehand
|
|
10445
|
+
* @returns EmptyFilter
|
|
10446
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10447
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10448
|
+
*/
|
|
10449
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.data.v1alpha.EmptyFilter;
|
|
10450
|
+
|
|
10451
|
+
/**
|
|
10452
|
+
* Decodes an EmptyFilter message from the specified reader or buffer, length delimited.
|
|
10453
|
+
* @param reader Reader or buffer to decode from
|
|
10454
|
+
* @returns EmptyFilter
|
|
10455
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10456
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10457
|
+
*/
|
|
10458
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.data.v1alpha.EmptyFilter;
|
|
10459
|
+
|
|
10460
|
+
/**
|
|
10461
|
+
* Verifies an EmptyFilter message.
|
|
10462
|
+
* @param message Plain object to verify
|
|
10463
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
10464
|
+
*/
|
|
10465
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
10466
|
+
|
|
10467
|
+
/**
|
|
10468
|
+
* Creates an EmptyFilter message from a plain object. Also converts values to their respective internal types.
|
|
10469
|
+
* @param object Plain object
|
|
10470
|
+
* @returns EmptyFilter
|
|
10471
|
+
*/
|
|
10472
|
+
public static fromObject(object: { [k: string]: any }): google.analytics.data.v1alpha.EmptyFilter;
|
|
10473
|
+
|
|
10474
|
+
/**
|
|
10475
|
+
* Creates a plain object from an EmptyFilter message. Also converts values to other types if specified.
|
|
10476
|
+
* @param message EmptyFilter
|
|
10477
|
+
* @param [options] Conversion options
|
|
10478
|
+
* @returns Plain object
|
|
10479
|
+
*/
|
|
10480
|
+
public static toObject(message: google.analytics.data.v1alpha.EmptyFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
10481
|
+
|
|
10482
|
+
/**
|
|
10483
|
+
* Converts this EmptyFilter to JSON.
|
|
10484
|
+
* @returns JSON object
|
|
10485
|
+
*/
|
|
10486
|
+
public toJSON(): { [k: string]: any };
|
|
10487
|
+
|
|
10488
|
+
/**
|
|
10489
|
+
* Gets the default type url for EmptyFilter
|
|
10490
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
10491
|
+
* @returns The default type url
|
|
10492
|
+
*/
|
|
10493
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
10494
|
+
}
|
|
10495
|
+
|
|
10399
10496
|
/** Properties of a NumericValue. */
|
|
10400
10497
|
interface INumericValue {
|
|
10401
10498
|
|
|
@@ -10957,6 +11054,9 @@ export namespace google {
|
|
|
10957
11054
|
|
|
10958
11055
|
/** ResponseMetaData subjectToThresholding */
|
|
10959
11056
|
subjectToThresholding?: (boolean|null);
|
|
11057
|
+
|
|
11058
|
+
/** ResponseMetaData samplingMetadatas */
|
|
11059
|
+
samplingMetadatas?: (google.analytics.data.v1alpha.ISamplingMetadata[]|null);
|
|
10960
11060
|
}
|
|
10961
11061
|
|
|
10962
11062
|
/** Represents a ResponseMetaData. */
|
|
@@ -10986,6 +11086,9 @@ export namespace google {
|
|
|
10986
11086
|
/** ResponseMetaData subjectToThresholding. */
|
|
10987
11087
|
public subjectToThresholding?: (boolean|null);
|
|
10988
11088
|
|
|
11089
|
+
/** ResponseMetaData samplingMetadatas. */
|
|
11090
|
+
public samplingMetadatas: google.analytics.data.v1alpha.ISamplingMetadata[];
|
|
11091
|
+
|
|
10989
11092
|
/** ResponseMetaData _schemaRestrictionResponse. */
|
|
10990
11093
|
public _schemaRestrictionResponse?: "schemaRestrictionResponse";
|
|
10991
11094
|
|
package/build/protos/protos.js
CHANGED
|
@@ -25420,6 +25420,7 @@
|
|
|
25420
25420
|
* @property {google.analytics.data.v1alpha.IInListFilter|null} [inListFilter] Filter inListFilter
|
|
25421
25421
|
* @property {google.analytics.data.v1alpha.INumericFilter|null} [numericFilter] Filter numericFilter
|
|
25422
25422
|
* @property {google.analytics.data.v1alpha.IBetweenFilter|null} [betweenFilter] Filter betweenFilter
|
|
25423
|
+
* @property {google.analytics.data.v1alpha.IEmptyFilter|null} [emptyFilter] Filter emptyFilter
|
|
25423
25424
|
*/
|
|
25424
25425
|
|
|
25425
25426
|
/**
|
|
@@ -25477,17 +25478,25 @@
|
|
|
25477
25478
|
*/
|
|
25478
25479
|
Filter.prototype.betweenFilter = null;
|
|
25479
25480
|
|
|
25481
|
+
/**
|
|
25482
|
+
* Filter emptyFilter.
|
|
25483
|
+
* @member {google.analytics.data.v1alpha.IEmptyFilter|null|undefined} emptyFilter
|
|
25484
|
+
* @memberof google.analytics.data.v1alpha.Filter
|
|
25485
|
+
* @instance
|
|
25486
|
+
*/
|
|
25487
|
+
Filter.prototype.emptyFilter = null;
|
|
25488
|
+
|
|
25480
25489
|
// OneOf field names bound to virtual getters and setters
|
|
25481
25490
|
var $oneOfFields;
|
|
25482
25491
|
|
|
25483
25492
|
/**
|
|
25484
25493
|
* Filter oneFilter.
|
|
25485
|
-
* @member {"stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|undefined} oneFilter
|
|
25494
|
+
* @member {"stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|"emptyFilter"|undefined} oneFilter
|
|
25486
25495
|
* @memberof google.analytics.data.v1alpha.Filter
|
|
25487
25496
|
* @instance
|
|
25488
25497
|
*/
|
|
25489
25498
|
Object.defineProperty(Filter.prototype, "oneFilter", {
|
|
25490
|
-
get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter", "numericFilter", "betweenFilter"]),
|
|
25499
|
+
get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter", "numericFilter", "betweenFilter", "emptyFilter"]),
|
|
25491
25500
|
set: $util.oneOfSetter($oneOfFields)
|
|
25492
25501
|
});
|
|
25493
25502
|
|
|
@@ -25525,6 +25534,8 @@
|
|
|
25525
25534
|
$root.google.analytics.data.v1alpha.NumericFilter.encode(message.numericFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
25526
25535
|
if (message.betweenFilter != null && Object.hasOwnProperty.call(message, "betweenFilter"))
|
|
25527
25536
|
$root.google.analytics.data.v1alpha.BetweenFilter.encode(message.betweenFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
25537
|
+
if (message.emptyFilter != null && Object.hasOwnProperty.call(message, "emptyFilter"))
|
|
25538
|
+
$root.google.analytics.data.v1alpha.EmptyFilter.encode(message.emptyFilter, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
25528
25539
|
return writer;
|
|
25529
25540
|
};
|
|
25530
25541
|
|
|
@@ -25579,6 +25590,10 @@
|
|
|
25579
25590
|
message.betweenFilter = $root.google.analytics.data.v1alpha.BetweenFilter.decode(reader, reader.uint32());
|
|
25580
25591
|
break;
|
|
25581
25592
|
}
|
|
25593
|
+
case 6: {
|
|
25594
|
+
message.emptyFilter = $root.google.analytics.data.v1alpha.EmptyFilter.decode(reader, reader.uint32());
|
|
25595
|
+
break;
|
|
25596
|
+
}
|
|
25582
25597
|
default:
|
|
25583
25598
|
reader.skipType(tag & 7);
|
|
25584
25599
|
break;
|
|
@@ -25656,6 +25671,16 @@
|
|
|
25656
25671
|
return "betweenFilter." + error;
|
|
25657
25672
|
}
|
|
25658
25673
|
}
|
|
25674
|
+
if (message.emptyFilter != null && message.hasOwnProperty("emptyFilter")) {
|
|
25675
|
+
if (properties.oneFilter === 1)
|
|
25676
|
+
return "oneFilter: multiple values";
|
|
25677
|
+
properties.oneFilter = 1;
|
|
25678
|
+
{
|
|
25679
|
+
var error = $root.google.analytics.data.v1alpha.EmptyFilter.verify(message.emptyFilter);
|
|
25680
|
+
if (error)
|
|
25681
|
+
return "emptyFilter." + error;
|
|
25682
|
+
}
|
|
25683
|
+
}
|
|
25659
25684
|
return null;
|
|
25660
25685
|
};
|
|
25661
25686
|
|
|
@@ -25693,6 +25718,11 @@
|
|
|
25693
25718
|
throw TypeError(".google.analytics.data.v1alpha.Filter.betweenFilter: object expected");
|
|
25694
25719
|
message.betweenFilter = $root.google.analytics.data.v1alpha.BetweenFilter.fromObject(object.betweenFilter);
|
|
25695
25720
|
}
|
|
25721
|
+
if (object.emptyFilter != null) {
|
|
25722
|
+
if (typeof object.emptyFilter !== "object")
|
|
25723
|
+
throw TypeError(".google.analytics.data.v1alpha.Filter.emptyFilter: object expected");
|
|
25724
|
+
message.emptyFilter = $root.google.analytics.data.v1alpha.EmptyFilter.fromObject(object.emptyFilter);
|
|
25725
|
+
}
|
|
25696
25726
|
return message;
|
|
25697
25727
|
};
|
|
25698
25728
|
|
|
@@ -25733,6 +25763,11 @@
|
|
|
25733
25763
|
if (options.oneofs)
|
|
25734
25764
|
object.oneFilter = "betweenFilter";
|
|
25735
25765
|
}
|
|
25766
|
+
if (message.emptyFilter != null && message.hasOwnProperty("emptyFilter")) {
|
|
25767
|
+
object.emptyFilter = $root.google.analytics.data.v1alpha.EmptyFilter.toObject(message.emptyFilter, options);
|
|
25768
|
+
if (options.oneofs)
|
|
25769
|
+
object.oneFilter = "emptyFilter";
|
|
25770
|
+
}
|
|
25736
25771
|
return object;
|
|
25737
25772
|
};
|
|
25738
25773
|
|
|
@@ -27619,6 +27654,181 @@
|
|
|
27619
27654
|
return BetweenFilter;
|
|
27620
27655
|
})();
|
|
27621
27656
|
|
|
27657
|
+
v1alpha.EmptyFilter = (function() {
|
|
27658
|
+
|
|
27659
|
+
/**
|
|
27660
|
+
* Properties of an EmptyFilter.
|
|
27661
|
+
* @memberof google.analytics.data.v1alpha
|
|
27662
|
+
* @interface IEmptyFilter
|
|
27663
|
+
*/
|
|
27664
|
+
|
|
27665
|
+
/**
|
|
27666
|
+
* Constructs a new EmptyFilter.
|
|
27667
|
+
* @memberof google.analytics.data.v1alpha
|
|
27668
|
+
* @classdesc Represents an EmptyFilter.
|
|
27669
|
+
* @implements IEmptyFilter
|
|
27670
|
+
* @constructor
|
|
27671
|
+
* @param {google.analytics.data.v1alpha.IEmptyFilter=} [properties] Properties to set
|
|
27672
|
+
*/
|
|
27673
|
+
function EmptyFilter(properties) {
|
|
27674
|
+
if (properties)
|
|
27675
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27676
|
+
if (properties[keys[i]] != null)
|
|
27677
|
+
this[keys[i]] = properties[keys[i]];
|
|
27678
|
+
}
|
|
27679
|
+
|
|
27680
|
+
/**
|
|
27681
|
+
* Creates a new EmptyFilter instance using the specified properties.
|
|
27682
|
+
* @function create
|
|
27683
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27684
|
+
* @static
|
|
27685
|
+
* @param {google.analytics.data.v1alpha.IEmptyFilter=} [properties] Properties to set
|
|
27686
|
+
* @returns {google.analytics.data.v1alpha.EmptyFilter} EmptyFilter instance
|
|
27687
|
+
*/
|
|
27688
|
+
EmptyFilter.create = function create(properties) {
|
|
27689
|
+
return new EmptyFilter(properties);
|
|
27690
|
+
};
|
|
27691
|
+
|
|
27692
|
+
/**
|
|
27693
|
+
* Encodes the specified EmptyFilter message. Does not implicitly {@link google.analytics.data.v1alpha.EmptyFilter.verify|verify} messages.
|
|
27694
|
+
* @function encode
|
|
27695
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27696
|
+
* @static
|
|
27697
|
+
* @param {google.analytics.data.v1alpha.IEmptyFilter} message EmptyFilter message or plain object to encode
|
|
27698
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27699
|
+
* @returns {$protobuf.Writer} Writer
|
|
27700
|
+
*/
|
|
27701
|
+
EmptyFilter.encode = function encode(message, writer) {
|
|
27702
|
+
if (!writer)
|
|
27703
|
+
writer = $Writer.create();
|
|
27704
|
+
return writer;
|
|
27705
|
+
};
|
|
27706
|
+
|
|
27707
|
+
/**
|
|
27708
|
+
* Encodes the specified EmptyFilter message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.EmptyFilter.verify|verify} messages.
|
|
27709
|
+
* @function encodeDelimited
|
|
27710
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27711
|
+
* @static
|
|
27712
|
+
* @param {google.analytics.data.v1alpha.IEmptyFilter} message EmptyFilter message or plain object to encode
|
|
27713
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27714
|
+
* @returns {$protobuf.Writer} Writer
|
|
27715
|
+
*/
|
|
27716
|
+
EmptyFilter.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27717
|
+
return this.encode(message, writer).ldelim();
|
|
27718
|
+
};
|
|
27719
|
+
|
|
27720
|
+
/**
|
|
27721
|
+
* Decodes an EmptyFilter message from the specified reader or buffer.
|
|
27722
|
+
* @function decode
|
|
27723
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27724
|
+
* @static
|
|
27725
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27726
|
+
* @param {number} [length] Message length if known beforehand
|
|
27727
|
+
* @returns {google.analytics.data.v1alpha.EmptyFilter} EmptyFilter
|
|
27728
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27729
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27730
|
+
*/
|
|
27731
|
+
EmptyFilter.decode = function decode(reader, length) {
|
|
27732
|
+
if (!(reader instanceof $Reader))
|
|
27733
|
+
reader = $Reader.create(reader);
|
|
27734
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1alpha.EmptyFilter();
|
|
27735
|
+
while (reader.pos < end) {
|
|
27736
|
+
var tag = reader.uint32();
|
|
27737
|
+
switch (tag >>> 3) {
|
|
27738
|
+
default:
|
|
27739
|
+
reader.skipType(tag & 7);
|
|
27740
|
+
break;
|
|
27741
|
+
}
|
|
27742
|
+
}
|
|
27743
|
+
return message;
|
|
27744
|
+
};
|
|
27745
|
+
|
|
27746
|
+
/**
|
|
27747
|
+
* Decodes an EmptyFilter message from the specified reader or buffer, length delimited.
|
|
27748
|
+
* @function decodeDelimited
|
|
27749
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27750
|
+
* @static
|
|
27751
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27752
|
+
* @returns {google.analytics.data.v1alpha.EmptyFilter} EmptyFilter
|
|
27753
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27754
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27755
|
+
*/
|
|
27756
|
+
EmptyFilter.decodeDelimited = function decodeDelimited(reader) {
|
|
27757
|
+
if (!(reader instanceof $Reader))
|
|
27758
|
+
reader = new $Reader(reader);
|
|
27759
|
+
return this.decode(reader, reader.uint32());
|
|
27760
|
+
};
|
|
27761
|
+
|
|
27762
|
+
/**
|
|
27763
|
+
* Verifies an EmptyFilter message.
|
|
27764
|
+
* @function verify
|
|
27765
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27766
|
+
* @static
|
|
27767
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
27768
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27769
|
+
*/
|
|
27770
|
+
EmptyFilter.verify = function verify(message) {
|
|
27771
|
+
if (typeof message !== "object" || message === null)
|
|
27772
|
+
return "object expected";
|
|
27773
|
+
return null;
|
|
27774
|
+
};
|
|
27775
|
+
|
|
27776
|
+
/**
|
|
27777
|
+
* Creates an EmptyFilter message from a plain object. Also converts values to their respective internal types.
|
|
27778
|
+
* @function fromObject
|
|
27779
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27780
|
+
* @static
|
|
27781
|
+
* @param {Object.<string,*>} object Plain object
|
|
27782
|
+
* @returns {google.analytics.data.v1alpha.EmptyFilter} EmptyFilter
|
|
27783
|
+
*/
|
|
27784
|
+
EmptyFilter.fromObject = function fromObject(object) {
|
|
27785
|
+
if (object instanceof $root.google.analytics.data.v1alpha.EmptyFilter)
|
|
27786
|
+
return object;
|
|
27787
|
+
return new $root.google.analytics.data.v1alpha.EmptyFilter();
|
|
27788
|
+
};
|
|
27789
|
+
|
|
27790
|
+
/**
|
|
27791
|
+
* Creates a plain object from an EmptyFilter message. Also converts values to other types if specified.
|
|
27792
|
+
* @function toObject
|
|
27793
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27794
|
+
* @static
|
|
27795
|
+
* @param {google.analytics.data.v1alpha.EmptyFilter} message EmptyFilter
|
|
27796
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27797
|
+
* @returns {Object.<string,*>} Plain object
|
|
27798
|
+
*/
|
|
27799
|
+
EmptyFilter.toObject = function toObject() {
|
|
27800
|
+
return {};
|
|
27801
|
+
};
|
|
27802
|
+
|
|
27803
|
+
/**
|
|
27804
|
+
* Converts this EmptyFilter to JSON.
|
|
27805
|
+
* @function toJSON
|
|
27806
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27807
|
+
* @instance
|
|
27808
|
+
* @returns {Object.<string,*>} JSON object
|
|
27809
|
+
*/
|
|
27810
|
+
EmptyFilter.prototype.toJSON = function toJSON() {
|
|
27811
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27812
|
+
};
|
|
27813
|
+
|
|
27814
|
+
/**
|
|
27815
|
+
* Gets the default type url for EmptyFilter
|
|
27816
|
+
* @function getTypeUrl
|
|
27817
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27818
|
+
* @static
|
|
27819
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
27820
|
+
* @returns {string} The default type url
|
|
27821
|
+
*/
|
|
27822
|
+
EmptyFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
27823
|
+
if (typeUrlPrefix === undefined) {
|
|
27824
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
27825
|
+
}
|
|
27826
|
+
return typeUrlPrefix + "/google.analytics.data.v1alpha.EmptyFilter";
|
|
27827
|
+
};
|
|
27828
|
+
|
|
27829
|
+
return EmptyFilter;
|
|
27830
|
+
})();
|
|
27831
|
+
|
|
27622
27832
|
v1alpha.NumericValue = (function() {
|
|
27623
27833
|
|
|
27624
27834
|
/**
|
|
@@ -28928,6 +29138,7 @@
|
|
|
28928
29138
|
* @property {string|null} [timeZone] ResponseMetaData timeZone
|
|
28929
29139
|
* @property {string|null} [emptyReason] ResponseMetaData emptyReason
|
|
28930
29140
|
* @property {boolean|null} [subjectToThresholding] ResponseMetaData subjectToThresholding
|
|
29141
|
+
* @property {Array.<google.analytics.data.v1alpha.ISamplingMetadata>|null} [samplingMetadatas] ResponseMetaData samplingMetadatas
|
|
28931
29142
|
*/
|
|
28932
29143
|
|
|
28933
29144
|
/**
|
|
@@ -28939,6 +29150,7 @@
|
|
|
28939
29150
|
* @param {google.analytics.data.v1alpha.IResponseMetaData=} [properties] Properties to set
|
|
28940
29151
|
*/
|
|
28941
29152
|
function ResponseMetaData(properties) {
|
|
29153
|
+
this.samplingMetadatas = [];
|
|
28942
29154
|
if (properties)
|
|
28943
29155
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28944
29156
|
if (properties[keys[i]] != null)
|
|
@@ -28993,6 +29205,14 @@
|
|
|
28993
29205
|
*/
|
|
28994
29206
|
ResponseMetaData.prototype.subjectToThresholding = null;
|
|
28995
29207
|
|
|
29208
|
+
/**
|
|
29209
|
+
* ResponseMetaData samplingMetadatas.
|
|
29210
|
+
* @member {Array.<google.analytics.data.v1alpha.ISamplingMetadata>} samplingMetadatas
|
|
29211
|
+
* @memberof google.analytics.data.v1alpha.ResponseMetaData
|
|
29212
|
+
* @instance
|
|
29213
|
+
*/
|
|
29214
|
+
ResponseMetaData.prototype.samplingMetadatas = $util.emptyArray;
|
|
29215
|
+
|
|
28996
29216
|
// OneOf field names bound to virtual getters and setters
|
|
28997
29217
|
var $oneOfFields;
|
|
28998
29218
|
|
|
@@ -29087,6 +29307,9 @@
|
|
|
29087
29307
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.emptyReason);
|
|
29088
29308
|
if (message.subjectToThresholding != null && Object.hasOwnProperty.call(message, "subjectToThresholding"))
|
|
29089
29309
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.subjectToThresholding);
|
|
29310
|
+
if (message.samplingMetadatas != null && message.samplingMetadatas.length)
|
|
29311
|
+
for (var i = 0; i < message.samplingMetadatas.length; ++i)
|
|
29312
|
+
$root.google.analytics.data.v1alpha.SamplingMetadata.encode(message.samplingMetadatas[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
29090
29313
|
return writer;
|
|
29091
29314
|
};
|
|
29092
29315
|
|
|
@@ -29145,6 +29368,12 @@
|
|
|
29145
29368
|
message.subjectToThresholding = reader.bool();
|
|
29146
29369
|
break;
|
|
29147
29370
|
}
|
|
29371
|
+
case 9: {
|
|
29372
|
+
if (!(message.samplingMetadatas && message.samplingMetadatas.length))
|
|
29373
|
+
message.samplingMetadatas = [];
|
|
29374
|
+
message.samplingMetadatas.push($root.google.analytics.data.v1alpha.SamplingMetadata.decode(reader, reader.uint32()));
|
|
29375
|
+
break;
|
|
29376
|
+
}
|
|
29148
29377
|
default:
|
|
29149
29378
|
reader.skipType(tag & 7);
|
|
29150
29379
|
break;
|
|
@@ -29212,6 +29441,15 @@
|
|
|
29212
29441
|
if (typeof message.subjectToThresholding !== "boolean")
|
|
29213
29442
|
return "subjectToThresholding: boolean expected";
|
|
29214
29443
|
}
|
|
29444
|
+
if (message.samplingMetadatas != null && message.hasOwnProperty("samplingMetadatas")) {
|
|
29445
|
+
if (!Array.isArray(message.samplingMetadatas))
|
|
29446
|
+
return "samplingMetadatas: array expected";
|
|
29447
|
+
for (var i = 0; i < message.samplingMetadatas.length; ++i) {
|
|
29448
|
+
var error = $root.google.analytics.data.v1alpha.SamplingMetadata.verify(message.samplingMetadatas[i]);
|
|
29449
|
+
if (error)
|
|
29450
|
+
return "samplingMetadatas." + error;
|
|
29451
|
+
}
|
|
29452
|
+
}
|
|
29215
29453
|
return null;
|
|
29216
29454
|
};
|
|
29217
29455
|
|
|
@@ -29242,6 +29480,16 @@
|
|
|
29242
29480
|
message.emptyReason = String(object.emptyReason);
|
|
29243
29481
|
if (object.subjectToThresholding != null)
|
|
29244
29482
|
message.subjectToThresholding = Boolean(object.subjectToThresholding);
|
|
29483
|
+
if (object.samplingMetadatas) {
|
|
29484
|
+
if (!Array.isArray(object.samplingMetadatas))
|
|
29485
|
+
throw TypeError(".google.analytics.data.v1alpha.ResponseMetaData.samplingMetadatas: array expected");
|
|
29486
|
+
message.samplingMetadatas = [];
|
|
29487
|
+
for (var i = 0; i < object.samplingMetadatas.length; ++i) {
|
|
29488
|
+
if (typeof object.samplingMetadatas[i] !== "object")
|
|
29489
|
+
throw TypeError(".google.analytics.data.v1alpha.ResponseMetaData.samplingMetadatas: object expected");
|
|
29490
|
+
message.samplingMetadatas[i] = $root.google.analytics.data.v1alpha.SamplingMetadata.fromObject(object.samplingMetadatas[i]);
|
|
29491
|
+
}
|
|
29492
|
+
}
|
|
29245
29493
|
return message;
|
|
29246
29494
|
};
|
|
29247
29495
|
|
|
@@ -29258,6 +29506,8 @@
|
|
|
29258
29506
|
if (!options)
|
|
29259
29507
|
options = {};
|
|
29260
29508
|
var object = {};
|
|
29509
|
+
if (options.arrays || options.defaults)
|
|
29510
|
+
object.samplingMetadatas = [];
|
|
29261
29511
|
if (options.defaults)
|
|
29262
29512
|
object.dataLossFromOtherRow = false;
|
|
29263
29513
|
if (message.dataLossFromOtherRow != null && message.hasOwnProperty("dataLossFromOtherRow"))
|
|
@@ -29287,6 +29537,11 @@
|
|
|
29287
29537
|
if (options.oneofs)
|
|
29288
29538
|
object._subjectToThresholding = "subjectToThresholding";
|
|
29289
29539
|
}
|
|
29540
|
+
if (message.samplingMetadatas && message.samplingMetadatas.length) {
|
|
29541
|
+
object.samplingMetadatas = [];
|
|
29542
|
+
for (var j = 0; j < message.samplingMetadatas.length; ++j)
|
|
29543
|
+
object.samplingMetadatas[j] = $root.google.analytics.data.v1alpha.SamplingMetadata.toObject(message.samplingMetadatas[j], options);
|
|
29544
|
+
}
|
|
29290
29545
|
return object;
|
|
29291
29546
|
};
|
|
29292
29547
|
|
package/build/protos/protos.json
CHANGED
|
@@ -2878,7 +2878,8 @@
|
|
|
2878
2878
|
"stringFilter",
|
|
2879
2879
|
"inListFilter",
|
|
2880
2880
|
"numericFilter",
|
|
2881
|
-
"betweenFilter"
|
|
2881
|
+
"betweenFilter",
|
|
2882
|
+
"emptyFilter"
|
|
2882
2883
|
]
|
|
2883
2884
|
}
|
|
2884
2885
|
},
|
|
@@ -2902,6 +2903,10 @@
|
|
|
2902
2903
|
"betweenFilter": {
|
|
2903
2904
|
"type": "BetweenFilter",
|
|
2904
2905
|
"id": 5
|
|
2906
|
+
},
|
|
2907
|
+
"emptyFilter": {
|
|
2908
|
+
"type": "EmptyFilter",
|
|
2909
|
+
"id": 6
|
|
2905
2910
|
}
|
|
2906
2911
|
}
|
|
2907
2912
|
},
|
|
@@ -3039,6 +3044,9 @@
|
|
|
3039
3044
|
}
|
|
3040
3045
|
}
|
|
3041
3046
|
},
|
|
3047
|
+
"EmptyFilter": {
|
|
3048
|
+
"fields": {}
|
|
3049
|
+
},
|
|
3042
3050
|
"NumericValue": {
|
|
3043
3051
|
"oneofs": {
|
|
3044
3052
|
"oneValue": {
|
|
@@ -3193,6 +3201,11 @@
|
|
|
3193
3201
|
"options": {
|
|
3194
3202
|
"proto3_optional": true
|
|
3195
3203
|
}
|
|
3204
|
+
},
|
|
3205
|
+
"samplingMetadatas": {
|
|
3206
|
+
"rule": "repeated",
|
|
3207
|
+
"type": "SamplingMetadata",
|
|
3208
|
+
"id": 9
|
|
3196
3209
|
}
|
|
3197
3210
|
},
|
|
3198
3211
|
"nested": {
|