Skip to content

Commit f4d1743

Browse files
Google APIscopybara-github
authored andcommitted
feat: add the EmptyFilter type to the Data API v1alpha
feat: add the `empty_filter` field to the `Filter` type feat: add `sampling_metadatas` field to the `ResponseMetaData` type PiperOrigin-RevId: 700547721
1 parent 898125d commit f4d1743

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

google/analytics/data/v1alpha/data.proto

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ message Filter {
201201

202202
// A filter for between two values.
203203
BetweenFilter between_filter = 5;
204+
205+
// A filter for empty values such as "(not set)" and "" values.
206+
EmptyFilter empty_filter = 6;
204207
}
205208
}
206209

@@ -341,6 +344,9 @@ message BetweenFilter {
341344
NumericValue to_value = 2;
342345
}
343346

347+
// Filter for empty values.
348+
message EmptyFilter {}
349+
344350
// To represent a number.
345351
message NumericValue {
346352
// One of a numeric value
@@ -554,6 +560,16 @@ message ResponseMetaData {
554560
// Demographics and
555561
// Interests](https://support.google.com/analytics/answer/2799357).
556562
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;
557573
}
558574

559575
// Describes a dimension column in the report. Dimensions requested in a report
@@ -1472,8 +1488,8 @@ message FunnelResponseMetadata {
14721488
// [sampled](https://support.google.com/analytics/answer/13331292), this
14731489
// describes what percentage of events were used in this funnel report. One
14741490
// `samplingMetadatas` is populated for each date range. Each
1475-
// `samplingMetadatas` corresponds to a date range in order that date ranges
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.
14771493
//
14781494
// However if the results are not sampled, this field will not be defined.
14791495
repeated SamplingMetadata sampling_metadatas = 1;

0 commit comments

Comments
 (0)